/* ============================================================================
   THE DARK TIDES — design system
   An ancient moon rising over a futuristic dark ocean.

   01  Tokens
   02  Reset & base
   03  Layout utilities
   04  Section headings
   05  Atmosphere
   06  Buttons
   07  Cards
   08  Navbar
   09  Counter
   10  Hero & waves
   11  Games
   12  Timeline / changelog
   13  Why choose
   14  Community
   15  About pillars
   16  Tools
   17  Staff
   18  Spotlight (developer & Luna)
   19  FAQ
   20  Socials
   21  Final CTA
   22  Footer
   23  Reveal animations
   24  Responsive
   25  Reduced motion
   ========================================================================= */

/* ============================================================
   01 — TOKENS
   ============================================================ */
:root {
  /* palette */
  --bg:            #030A14;
  --bg-2:          #061522;
  --card:          #0A1D2A;
  --card-hover:    #0D2938;
  --cyan:          #00C7E8;
  --moon:          #7DEBFF;
  --gold:          #A88A52;
  --text:          #E8F7FA;
  --text-dim:      #8BA6B3;
  --border:        #123847;

  /* derived */
  --border-soft:   rgba(18, 56, 71, .7);
  --border-bright: rgba(0, 199, 232, .38);
  --cyan-08:       rgba(0, 199, 232, .08);
  --cyan-14:       rgba(0, 199, 232, .14);
  --cyan-24:       rgba(0, 199, 232, .24);
  --moon-10:       rgba(125, 235, 255, .10);
  --gold-30:       rgba(168, 138, 82, .30);
  --gold-55:       rgba(168, 138, 82, .55);

  /* typography — see the @font-face block below for the licensed faces */
  --font-display: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* THE DARK TIDES wordmark */
  --font-title:   "Unbounded", "Cinzel", Georgia, serif;
  /* major section headings */
  --font-heading: "Orange Vintage", "Cinzel", "Trajan Pro", Georgia, serif;
  /* staff / character names only */
  --font-name:    "Gafiya", "Cinzel", Georgia, serif;
  /* FAQ questions only */
  --font-faq:     "Capella", "Inter", system-ui, sans-serif;

  --fs-eyebrow:  clamp(.68rem, .62rem + .18vw, .78rem);
  --fs-small:    clamp(.84rem, .8rem + .2vw,  .92rem);
  --fs-body:     clamp(.96rem, .92rem + .22vw, 1.05rem);
  --fs-lead:     clamp(1.05rem, .98rem + .4vw, 1.22rem);
  --fs-h4:       clamp(1.05rem, 1rem + .3vw,  1.2rem);
  --fs-h3:       clamp(1.25rem, 1.1rem + .7vw, 1.7rem);
  --fs-h2:       clamp(1.9rem, 1.4rem + 2.3vw, 3.35rem);
  --fs-h1:       clamp(2.5rem, 1.5rem + 4.6vw, 5.4rem);
  --fs-counter:  clamp(3.2rem, 1.8rem + 6.4vw, 7.2rem);

  /* spacing */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --shell:     1200px;
  --shell-narrow: 860px;
  --gutter:    clamp(1.15rem, .6rem + 2.6vw, 2.5rem);

  /* radii */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-pill: 999px;

  /* elevation — deep, never luminous */
  --shadow-sm:  0 4px 16px rgba(1, 6, 12, .5);
  --shadow-md:  0 12px 32px rgba(1, 6, 12, .55), 0 2px 8px rgba(1, 6, 12, .4);
  --shadow-lg:  0 26px 60px rgba(1, 6, 12, .62), 0 6px 18px rgba(1, 6, 12, .45);
  --shadow-cyan: 0 0 0 1px var(--border-bright), 0 18px 42px rgba(0, 199, 232, .10);

  /* motion */
  --t-fast: 180ms;
  --t-ui:   240ms;
  --t-slow: 320ms;
  --ease:   cubic-bezier(.22, .68, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --header-h: 96px;
}

/* ============================================================
   01b — LICENSED FONT FACES
   Unbounded loads from Google Fonts in index.html.

   Orange Vintage (Funtype Co.), Gafiya and Capella are commercial
   fonts and are not bundled here. Drop the files into assets/fonts/
   using the names below and they take effect immediately — every
   rule already points at them. Until then each one falls back to
   the closest face already on the site, so nothing looks broken.

     assets/fonts/orange-vintage.woff2
     assets/fonts/gafiya.woff2
     assets/fonts/capella.woff2

   `font-display: swap` keeps text visible while they load, and a
   missing file simply falls through to the next family in the stack.
   ============================================================ */
@font-face {
  font-family: "Orange Vintage";
  src: url("../fonts/orange-vintage.woff2") format("woff2"),
       url("../fonts/orange-vintage.woff")  format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gafiya";
  src: url("../fonts/gafiya.woff2") format("woff2"),
       url("../fonts/gafiya.woff")  format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Capella";
  src: url("../fonts/capella.woff2") format("woff2"),
       url("../fonts/capella.woff")  format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   02 — RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: .005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--moon);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection { background: var(--cyan-24); color: var(--text); }

/* keep anchored sections clear of the floating navbar */
section[id], [id="top"] { scroll-margin-top: calc(var(--header-h) + 16px); }

.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  padding: .7rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--border-bright);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  transition: top var(--t-ui) var(--ease);
}
.skip-link:focus { top: 14px; }

/* ============================================================
   03 — LAYOUT UTILITIES
   ============================================================ */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: var(--shell-narrow); }

.section {
  position: relative;
  padding-block: var(--section-y);
}

/* alternating ocean depth between sections */
.section--alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(6, 21, 34, .72) 14%,
      rgba(6, 21, 34, .72) 86%,
      transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.grid { display: grid; gap: clamp(1rem, .6rem + 1.4vw, 1.75rem); }

/* ============================================================
   04 — SECTION HEADINGS
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: var(--space-4);
  color: var(--cyan);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: clamp(18px, 4vw, 34px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-55));
}
.eyebrow::after { background: linear-gradient(270deg, transparent, var(--gold-55)); }

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.25rem, 1.5rem + 2.4vw, 3.75rem);
}
.section-head--center { margin-inline: auto; text-align: center; }

.section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--text);
  text-shadow: 0 0 46px rgba(0, 199, 232, .14);
}

.section-sub {
  margin-top: var(--space-4);
  max-width: 40rem;
  color: var(--text-dim);
  font-size: var(--fs-lead);
  line-height: 1.6;
}

.subsection-title {
  margin: clamp(2rem, 1.4rem + 1.6vw, 3rem) 0 var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text);
}
.subsection-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}
.grid--people + .subsection-title { margin-top: clamp(2.75rem, 2rem + 2vw, 4rem); }

/* ============================================================
   05 — ATMOSPHERE
   ============================================================ */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 50% -10%, #0A2739 0%, transparent 62%),
    radial-gradient(900px 700px at 88% 22%, #072030 0%, transparent 58%),
    radial-gradient(1000px 900px at 8% 78%, #061A29 0%, transparent 60%),
    linear-gradient(180deg, #030A14 0%, #051220 45%, #030A14 100%);
}

/* stars — two layers, one static, one slowly twinkling */
.atmosphere__stars {
  position: absolute;
  inset: -10%;
  opacity: .5;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(232, 247, 250, .85) 50%, transparent 51%),
    radial-gradient(1px 1px   at 27% 46%, rgba(232, 247, 250, .6)  50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 43% 12%, rgba(125, 235, 255, .7) 50%, transparent 51%),
    radial-gradient(1px 1px   at 58% 63%, rgba(232, 247, 250, .5)  50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 72% 28%, rgba(232, 247, 250, .7) 50%, transparent 51%),
    radial-gradient(1px 1px   at 86% 54%, rgba(125, 235, 255, .55) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 91% 15%, rgba(232, 247, 250, .6) 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 34% 82%, rgba(232, 247, 250, .5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 64% 88%, rgba(168, 138, 82, .55) 50%, transparent 51%),
    radial-gradient(1px 1px   at 8% 66%, rgba(232, 247, 250, .45) 50%, transparent 51%);
  background-size: 100% 100%;
  animation: twinkle 11s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: .34; }
  50%      { opacity: .62; }
}

/* the distant moon glow that lights the whole page */
.atmosphere__moon {
  position: absolute;
  top: -18vh;
  left: 50%;
  width: min(120vw, 1400px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%,
    rgba(125, 235, 255, .10) 0%,
    rgba(0, 199, 232, .055) 26%,
    rgba(0, 199, 232, .018) 48%,
    transparent 68%);
  animation: moon-breathe 26s ease-in-out infinite;
}

@keyframes moon-breathe {
  0%, 100% { opacity: .8;  transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.06); }
}

/* ocean mist */
.atmosphere__mist {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
}
.atmosphere__mist--a {
  top: 34%;
  left: -18%;
  width: 62vw;
  height: 34vh;
  background: radial-gradient(ellipse at center, rgba(10, 62, 84, .55), transparent 70%);
  animation: mist-a 44s ease-in-out infinite;
}
.atmosphere__mist--b {
  bottom: 6%;
  right: -14%;
  width: 56vw;
  height: 30vh;
  background: radial-gradient(ellipse at center, rgba(7, 44, 62, .5), transparent 70%);
  animation: mist-b 58s ease-in-out infinite;
}

@keyframes mist-a {
  0%, 100% { transform: translate3d(0, 0, 0)      scale(1); }
  50%      { transform: translate3d(7vw, -3vh, 0) scale(1.1); }
}
@keyframes mist-b {
  0%, 100% { transform: translate3d(0, 0, 0)       scale(1.05); }
  50%      { transform: translate3d(-6vw, 2vh, 0)  scale(1); }
}

/* drifting particles (created in JS) — small stars falling like a light snow of starlight */
.atmosphere__particles { position: absolute; inset: 0; }
.atmosphere__particles span {
  position: absolute;
  top: -12px;
  width: var(--size, 2px);
  height: var(--size, 2px);
  border-radius: 50%;
  background: var(--moon);
  opacity: 0;
  box-shadow: 0 0 6px rgba(125, 235, 255, .5);
  animation: star-fall var(--dur, 30s) linear var(--delay, 0s) infinite;
}

@keyframes star-fall {
  0%   { transform: translate3d(0, 0, 0);                    opacity: 0; }
  12%  {                                                     opacity: var(--peak, .5); }
  85%  {                                                     opacity: var(--peak, .5); }
  100% { transform: translate3d(var(--drift, 20px), 104vh, 0); opacity: 0; }
}

.atmosphere__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 42%, rgba(2, 7, 14, .55) 100%);
}

/* ============================================================
   06 — BUTTONS
   ============================================================ */
.btn {
  --btn-py: .92rem;
  --btn-px: 2rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: var(--btn-py) var(--btn-px);
  min-height: 48px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  transition:
    transform var(--t-ui) var(--ease),
    box-shadow var(--t-ui) var(--ease),
    border-color var(--t-ui) var(--ease),
    background-color var(--t-ui) var(--ease),
    color var(--t-ui) var(--ease);
}
.btn--sm { --btn-py: .62rem; --btn-px: 1.25rem; min-height: 42px; font-size: var(--fs-eyebrow); }
.btn--lg { --btn-py: 1.08rem; --btn-px: 2.6rem; min-height: 56px; }

/* primary — cyan/ocean gradient with real depth */
.btn--primary {
  color: #02141C;
  background: linear-gradient(160deg, #7DEBFF 0%, #22C4E4 42%, #0A93B4 100%);
  border: 1px solid rgba(125, 235, 255, .7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -2px 6px rgba(3, 46, 61, .35),
    0 10px 26px rgba(0, 132, 158, .28),
    0 2px 6px rgba(1, 6, 12, .5);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -2px 6px rgba(3, 46, 61, .3),
    0 16px 34px rgba(0, 154, 184, .34),
    0 3px 8px rgba(1, 6, 12, .5);
}
.btn--primary:active { transform: translateY(-1px); }

/* secondary — dark glass with a cyan edge */
.btn--secondary {
  color: var(--text);
  background:
    linear-gradient(160deg, rgba(18, 56, 71, .55), rgba(10, 29, 42, .8));
  border: 1px solid var(--border-bright);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(125, 235, 255, .14),
    0 8px 24px rgba(1, 6, 12, .5);
}
.btn--secondary:hover {
  transform: translateY(-3px);
  color: var(--moon);
  border-color: rgba(125, 235, 255, .55);
  background: linear-gradient(160deg, rgba(24, 72, 90, .6), rgba(13, 41, 56, .85));
  box-shadow:
    inset 0 1px 0 rgba(125, 235, 255, .2),
    0 14px 32px rgba(1, 6, 12, .55),
    0 0 22px rgba(0, 199, 232, .12);
}
.btn--secondary:active { transform: translateY(-1px); }

/* ghost — quietest tier, used inside cards */
.btn--ghost {
  color: var(--cyan);
  background: linear-gradient(160deg, rgba(18, 56, 71, .3), rgba(10, 29, 42, .5));
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(125, 235, 255, .07), 0 4px 14px rgba(1, 6, 12, .4);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  color: var(--moon);
  border-color: var(--border-bright);
  box-shadow: inset 0 1px 0 rgba(125, 235, 255, .12), 0 8px 20px rgba(1, 6, 12, .48);
}
.btn--ghost:active { transform: translateY(0); }

.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .55;
  filter: saturate(.7);
}
.btn[aria-disabled="true"]:hover {
  transform: none;
  color: var(--cyan);
  border-color: var(--border);
  box-shadow: inset 0 1px 0 rgba(125, 235, 255, .07), 0 4px 14px rgba(1, 6, 12, .4);
}

/* ============================================================
   07 — CARDS
   ============================================================ */
.card {
  position: relative;
  background: linear-gradient(165deg, rgba(13, 41, 56, .55) 0%, var(--card) 46%, #081924 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition:
    transform var(--t-ui) var(--ease),
    border-color var(--t-ui) var(--ease),
    box-shadow var(--t-ui) var(--ease),
    background-color var(--t-ui) var(--ease);
}

/* thin light line along the top edge — reads as moonlight on glass */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 235, 255, .28), transparent);
  opacity: .7;
  transition: opacity var(--t-ui) var(--ease);
}

.card:hover {
  border-color: var(--border-bright);
  background-color: var(--card-hover);
  box-shadow: var(--shadow-lg), 0 0 26px rgba(0, 199, 232, .08);
}
.card:hover::before { opacity: 1; }

.card__body { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }

/* glass variant — larger, more atmospheric panels */
.card--glass {
  background:
    linear-gradient(160deg, rgba(19, 62, 82, .5) 0%, rgba(10, 29, 42, .82) 55%, rgba(6, 21, 34, .9) 100%);
  border-color: var(--border-bright);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}

/* badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .28rem .68rem;
  border-radius: var(--r-pill);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.badge--featured {
  color: var(--moon);
  background: rgba(0, 199, 232, .12);
  border-color: var(--border-bright);
}
.badge--fix {
  color: #F0B08A;
  background: rgba(196, 106, 62, .13);
  border-color: rgba(196, 106, 62, .34);
}

/* ============================================================
   08 — NAVBAR
   ============================================================ */
.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 120;
  padding-inline: var(--gutter);
  pointer-events: none;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  max-width: var(--shell);
  margin-inline: auto;
  padding: .6rem .7rem .6rem 1.1rem;
  pointer-events: auto;
  background: linear-gradient(160deg, rgba(13, 41, 56, .72), rgba(6, 21, 34, .82));
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 10px 34px rgba(1, 6, 12, .5), inset 0 1px 0 rgba(125, 235, 255, .09);
  transition: border-color var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease),
              background-color var(--t-slow) var(--ease);
}

.site-header.is-scrolled .nav {
  border-color: var(--border-bright);
  box-shadow: 0 14px 40px rgba(1, 6, 12, .62), inset 0 1px 0 rgba(125, 235, 255, .13),
              0 0 24px rgba(0, 199, 232, .07);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
  transition: opacity var(--t-ui) var(--ease);
}
.nav__brand:hover { opacity: .82; }

.nav__brand-mark { width: 34px; height: 34px; }

.nav__brand-text {
  font-family: var(--font-title);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-left: auto;
}

.nav__links { display: flex; align-items: center; gap: clamp(.4rem, .1rem + 1vw, 1.1rem); }

.nav__link {
  position: relative;
  display: block;
  padding: .55rem .7rem;
  color: var(--text-dim);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: color var(--t-ui) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: .7rem;
  right: .7rem;
  bottom: .28rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: scaleX(0);
  transition: transform var(--t-ui) var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--moon); }

.nav__cta { flex-shrink: 0; }

.nav__toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  background: rgba(10, 29, 42, .6);
  transition: border-color var(--t-ui) var(--ease), background-color var(--t-ui) var(--ease);
}
.nav__toggle:hover { border-color: var(--border-bright); background: rgba(13, 41, 56, .8); }

.nav__toggle-bars { display: grid; gap: 5px; width: 20px; }
.nav__toggle-bars i {
  display: block;
  height: 1.6px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-ui) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bars i:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars i:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars i:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.nav__scrim {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(2, 7, 14, .6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease);
}
.nav__scrim.is-visible { opacity: 1; }

/* ============================================================
   09 — COUNTER
   ============================================================ */
.counter {
  padding-top: calc(var(--header-h) + clamp(2rem, 1rem + 4vw, 4.5rem));
  padding-bottom: clamp(1.5rem, 1rem + 2vw, 3rem);
  text-align: center;
}

.counter__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero variant — the counter sits under the headline as supporting
   information, so it is dialled down from the display size it had
   when it was its own section. */
.counter--hero {
  --fs-counter: clamp(2.1rem, 1.3rem + 3.6vw, 4.1rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin-top: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
}

.counter--hero .eyebrow { margin-bottom: clamp(.5rem, .4rem + .5vw, .85rem); }

.counter--hero .counter__rule {
  width: min(240px, 52%);
  margin: clamp(.7rem, .5rem + .7vw, 1.1rem) 0 clamp(.6rem, .5rem + .5vw, .9rem);
}

.counter--hero .counter__note { font-size: var(--fs-eyebrow); letter-spacing: .1em; }

.counter__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-counter);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--text);
  text-shadow:
    0 0 40px rgba(0, 199, 232, .22),
    0 0 90px rgba(0, 199, 232, .10);
  font-variant-numeric: tabular-nums;
}
.counter__suffix { color: var(--cyan); }

.counter__rule {
  width: min(340px, 62%);
  height: 1px;
  margin: clamp(1rem, .7rem + 1vw, 1.6rem) 0 clamp(.9rem, .7rem + .8vw, 1.3rem);
  background: linear-gradient(90deg, transparent, var(--cyan-24) 22%, var(--cyan) 50%, var(--cyan-24) 78%, transparent);
  opacity: .8;
}
.counter__rule::after {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  margin: -2.5px auto 0;
  border-radius: 50%;
  background: var(--gold);
  opacity: .8;
}

.counter__note {
  color: var(--cyan);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: .08em;
}

/* ============================================================
   10 — HERO & WAVES
   ============================================================ */
.hero {
  position: relative;
  /* the hero is now the first thing under the floating navbar */
  padding-block:
    calc(var(--header-h) + clamp(1.5rem, 1rem + 3vw, 3.5rem))
    clamp(7rem, 5rem + 8vw, 12rem);
  text-align: center;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: 6%;
  left: 50%;
  width: min(900px, 105vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 42%,
    rgba(125, 235, 255, .16) 0%,
    rgba(0, 199, 232, .10) 22%,
    rgba(0, 199, 232, .035) 44%,
    transparent 66%);
  pointer-events: none;
  animation: hero-glow 18s ease-in-out infinite;
}

@keyframes hero-glow {
  0%, 100% { opacity: .85; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.05); }
}

.hero__inner { position: relative; z-index: 1; }

/* The hero has no entrance animation — it renders immediately at its
   final position on load. Only the slow idle float remains. */
.hero__logo {
  width: clamp(160px, 12rem + 12vw, 300px);
  margin: 0 auto clamp(1rem, .6rem + 1.6vw, 1.8rem);
  animation: hero-float 9s ease-in-out infinite;
}
.hero__logo img { width: 100%; height: auto; filter: drop-shadow(0 10px 40px rgba(0, 199, 232, .22)); }

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

.hero__wordmark {
  margin-bottom: clamp(.6rem, .4rem + .8vw, 1rem);
  font-family: var(--font-title);
  font-size: clamp(.78rem, .7rem + .34vw, .98rem);
  font-weight: 500;
  letter-spacing: .3em;
  text-indent: .3em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.02;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--text) 42%, #9FD4E2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 50px rgba(0, 199, 232, .2));
}

.hero__subtitle {
  margin: clamp(1rem, .8rem + .8vw, 1.5rem) auto 0;
  max-width: 34rem;
  color: var(--text-dim);
  font-size: var(--fs-lead);
  letter-spacing: .07em;
}
.hero__subtitle span { color: var(--cyan); padding-inline: .3rem; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: clamp(1.8rem, 1.2rem + 2vw, 2.75rem);
}

/* waves */
.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(90px, 12vw, 170px);
  pointer-events: none;
  overflow: hidden;
}
.wave__svg { width: 100%; height: 100%; }

.wave__path { transform-origin: center; }
.wave__path--back  { fill: rgba(10, 45, 62, .5);  animation: swell 15s ease-in-out infinite; }
.wave__path--mid   { fill: rgba(7, 32, 46, .68);  animation: swell 11s ease-in-out -3s infinite reverse; }
.wave__path--front { fill: rgba(4, 18, 28, .92);  animation: swell 19s ease-in-out -6s infinite; }

@keyframes swell {
  0%, 100% { transform: translateX(0)    translateY(0); }
  50%      { transform: translateX(-2.5%) translateY(6px); }
}

.wave--footer {
  position: relative;
  height: clamp(70px, 9vw, 130px);
}
.wave--footer .wave__path--back  { fill: rgba(10, 45, 62, .38); }
.wave--footer .wave__path--front { fill: var(--bg-2); }

/* ============================================================
   11 — GAMES
   ============================================================ */
.grid--games { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.game { display: flex; flex-direction: column; }

.game__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
}
.game__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms var(--ease);
}
.game__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 18, 28, .82) 100%);
}
.game:hover .game__media img { transform: scale(1.06); }

.game__badge {
  position: absolute;
  top: .9rem;
  left: .9rem;
  z-index: 1;
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
  background: rgba(3, 12, 20, .72);
  border: 1px solid var(--border-bright);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--moon);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.game .card__body { display: flex; flex-direction: column; flex: 1; gap: .6rem; }

.game__genre {
  color: var(--cyan);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.game__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.game__text {
  flex: 1;
  color: var(--text-dim);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.game .btn { align-self: flex-start; margin-top: var(--space-3); }

/* sub-page header clears the floating navbar */
.page-head { padding-top: calc(var(--header-h) + clamp(2rem, 1.4rem + 3vw, 4rem)); }

/* centred "view more" action below a card grid */
.section-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 1.4rem + 2vw, 3rem);
}
.section-more .btn { min-width: min(100%, 220px); }

/* ============================================================
   12 — TIMELINE / CHANGELOG
   ============================================================ */
.timeline {
  position: relative;
  display: grid;
  gap: clamp(1rem, .7rem + 1vw, 1.6rem);
  padding-left: clamp(1.75rem, 1rem + 2vw, 2.75rem);

  /* Compact and centred rather than stretched across the section.
     Only the width is constrained — the cards keep their own height. */
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
}
.timeline::before {
  content: "";
  position: absolute;
  top: .5rem;
  bottom: .5rem;
  left: clamp(.4rem, .1rem + .9vw, .8rem);
  width: 1px;
  background: linear-gradient(180deg,
    transparent,
    var(--border) 8%,
    var(--cyan-24) 50%,
    var(--border) 92%,
    transparent);
}

.timeline__item { position: relative; }

.timeline__marker {
  position: absolute;
  top: 1.9rem;
  left: calc(clamp(1.75rem, 1rem + 2vw, 2.75rem) * -1 + clamp(.4rem, .1rem + .9vw, .8rem) - 5px);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(3, 10, 20, .9), 0 0 12px rgba(0, 199, 232, .35);
  transition: box-shadow var(--t-ui) var(--ease), background-color var(--t-ui) var(--ease),
              border-color var(--t-ui) var(--ease);
}

.timeline__card { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }

.timeline__item:hover .timeline__card { transform: translateY(-3px); }
.timeline__item:hover .timeline__marker {
  background: var(--moon);
  border-color: var(--moon);
  box-shadow: 0 0 0 4px rgba(3, 10, 20, .9), 0 0 18px rgba(125, 235, 255, .6);
}

.timeline__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.timeline__date {
  color: var(--text-dim);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.timeline__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
  line-height: 1.22;
}

.timeline__text {
  margin-top: var(--space-3);
  color: var(--text-dim);
  font-size: var(--fs-small);
  line-height: 1.68;
}

/* bullet-point patch notes */
.timeline__list {
  margin-top: var(--space-3);
  display: grid;
  gap: .38rem;
  color: var(--text-dim);
  font-size: var(--fs-small);
  line-height: 1.6;
}
.timeline__list li {
  position: relative;
  padding-left: 1.05rem;
}
.timeline__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: .75;
}

/* ============================================================
   13 — WHY CHOOSE
   ============================================================ */
.why {
  display: grid;
  gap: clamp(1.25rem, .8rem + 2vw, 2.5rem);
  align-items: start;
}

.why__feature {
  padding: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
  overflow: hidden;
}
.why__feature::after {
  content: "";
  position: absolute;
  top: -35%;
  right: -25%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(0, 199, 232, .13), transparent 68%);
  pointer-events: none;
}

.why__feature-title {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.2;
}

.why__feature-text {
  position: relative;
  margin-top: var(--space-4);
  color: var(--text-dim);
  line-height: 1.7;
}

.why__cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: linear-gradient(150deg, rgba(18, 56, 71, .38), rgba(6, 21, 34, .6));
  transition: transform var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease),
              background-color var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease);
}
.why__cta:hover {
  transform: translateY(-3px);
  border-color: var(--border-bright);
  background: linear-gradient(150deg, rgba(24, 74, 92, .45), rgba(10, 29, 42, .7));
  box-shadow: 0 12px 28px rgba(1, 6, 12, .5), 0 0 20px rgba(0, 199, 232, .08);
}

.why__cta-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(0, 199, 232, .1);
  border: 1px solid var(--border-bright);
  color: var(--cyan);
  transition: color var(--t-ui) var(--ease), background-color var(--t-ui) var(--ease);
}
.why__cta:hover .why__cta-icon { color: var(--moon); background: rgba(0, 199, 232, .16); }

.why__cta-copy { display: flex; flex-direction: column; min-width: 0; }
.why__cta-title { font-weight: 600; letter-spacing: .04em; }
.why__cta-sub {
  color: var(--text-dim);
  font-size: var(--fs-small);
  letter-spacing: .04em;
}

.why__cta-arrow {
  margin-left: auto;
  color: var(--cyan);
  font-size: 1.15rem;
  transition: transform var(--t-ui) var(--ease), color var(--t-ui) var(--ease);
}
.why__cta:hover .why__cta-arrow { transform: translateX(4px); color: var(--moon); }

.why__list-title {
  margin-bottom: var(--space-5);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--text);
}

.reasons { display: grid; }

.reason {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  padding: clamp(1.1rem, .9rem + .8vw, 1.5rem) var(--space-4);
  border-top: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  transition: background-color var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease);
}
.reason:last-child { border-bottom: 1px solid var(--border-soft); }
.reason:hover {
  background: rgba(13, 41, 56, .45);
  box-shadow: inset 0 0 0 1px rgba(0, 199, 232, .12), 0 0 20px rgba(0, 199, 232, .05);
}

.reason__num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--cyan);
  transition: color var(--t-ui) var(--ease), text-shadow var(--t-ui) var(--ease);
}
.reason:hover .reason__num { color: var(--moon); text-shadow: 0 0 14px rgba(0, 199, 232, .5); }

.reason__title {
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: .02em;
  transition: color var(--t-ui) var(--ease);
}

.reason__text {
  margin-top: .35rem;
  color: var(--text-dim);
  font-size: var(--fs-small);
  line-height: 1.65;
}

/* ============================================================
   15 — ABOUT PILLARS
   ============================================================ */
.grid--about { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.pillar { padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }

.pillar__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-5);
  border-radius: var(--r-md);
  background: linear-gradient(150deg, rgba(0, 199, 232, .14), rgba(0, 199, 232, .04));
  border: 1px solid var(--border-bright);
  color: var(--cyan);
  transition: color var(--t-ui) var(--ease), transform var(--t-ui) var(--ease),
              box-shadow var(--t-ui) var(--ease);
}
.pillar:hover .pillar__icon {
  color: var(--moon);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 199, 232, .16);
}

.pillar__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pillar__text {
  margin-top: var(--space-3);
  color: var(--text-dim);
  font-size: var(--fs-small);
  line-height: 1.65;
}

.pillar:hover { transform: translateY(-3px); }

/* ============================================================
   16 — TOOLS
   ============================================================ */
.grid--tools { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.tool { padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); }
.tool::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(0, 199, 232, .10), transparent 66%);
  pointer-events: none;
  opacity: .8;
  transition: opacity var(--t-ui) var(--ease);
}
.tool:hover { transform: translateY(-3px); }
.tool:hover::after { opacity: 1; }

.tool__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-5);
  border-radius: var(--r-md);
  background: linear-gradient(150deg, rgba(0, 199, 232, .15), rgba(0, 199, 232, .04));
  border: 1px solid var(--border-bright);
  color: var(--cyan);
  transition: color var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease);
}
.tool:hover .tool__icon { color: var(--moon); box-shadow: 0 0 22px rgba(0, 199, 232, .18); }

.tool__icon-arrow { transition: transform var(--t-slow) var(--ease); }
.tool:hover .tool__icon-arrow { transform: translateY(2.5px); }

/* an uploaded icon image sits inside the same box, contained and undistorted */
.tool__icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20%;
  border-radius: inherit;
  transition: transform var(--t-slow) var(--ease);
}
.tool:hover .tool__icon-img { transform: translateY(-2px) scale(1.04); }

.tool__title {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tool__text {
  position: relative;
  margin-top: var(--space-3);
  color: var(--text-dim);
  font-size: var(--fs-small);
  line-height: 1.65;
}

.tool__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: var(--space-5);
  color: var(--cyan);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .1em;
  transition: color var(--t-ui) var(--ease);
}
.tool:hover .tool__cta { color: var(--moon); }
.tool__cta span { transition: transform var(--t-ui) var(--ease); }
.tool:hover .tool__cta span { transform: translateX(3px); }
a.tool__cta:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   17 — STAFF
   ============================================================ */
.grid--people { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

.person {
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  text-align: center;
}
.person:hover { transform: translateY(-3px); }

.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(74px, 5rem + 2vw, 92px);
  height: clamp(74px, 5rem + 2vw, 92px);
  margin: 0 auto var(--space-5);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #143D51, #08202E 72%);
  border: 1px solid var(--border-bright);
  box-shadow: inset 0 1px 0 rgba(125, 235, 255, .16), 0 6px 18px rgba(1, 6, 12, .5);
  overflow: hidden;
  transition: box-shadow var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease);
}
.avatar::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(0, 199, 232, .22);
  transition: border-color var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease);
}
.avatar--owner::after { border-color: var(--gold-30); }

.person:hover .avatar {
  border-color: rgba(125, 235, 255, .55);
  box-shadow: inset 0 1px 0 rgba(125, 235, 255, .22), 0 8px 24px rgba(1, 6, 12, .55),
              0 0 20px rgba(0, 199, 232, .16);
}
.person:hover .avatar::after {
  border-color: rgba(125, 235, 255, .5);
  box-shadow: 0 0 16px rgba(0, 199, 232, .2);
}

.avatar__mono {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + .9vw, 1.95rem);
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--moon);
  text-shadow: 0 0 18px rgba(0, 199, 232, .3);
  user-select: none;
}

.avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.person__name {
  font-family: var(--font-name);
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.person__role {
  margin-top: .4rem;
  color: var(--cyan);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.person__text {
  margin-top: var(--space-4);
  color: var(--text-dim);
  font-size: var(--fs-small);
  line-height: 1.65;
}

/* owners sit one step higher in the hierarchy */
.person--owner {
  background: linear-gradient(165deg, rgba(17, 54, 72, .6) 0%, var(--card) 48%, #081924 100%);
  border-color: var(--border-bright);
}
.person--owner .person__role { color: var(--moon); }
.person--owner::before {
  background: linear-gradient(90deg, transparent, rgba(168, 138, 82, .38), transparent);
}

/* ---- Flip: hover turns the card over (tap on touch), see main.js PersonFlip ---- */
.card.person { cursor: pointer; }

.person-flip { perspective: 1400px; }

.person-flip__inner {
  display: grid;
  transform-style: preserve-3d;
  transition: transform 700ms var(--ease-out);
}
.card.person:hover .person-flip__inner,
.card.person:focus-within .person-flip__inner,
.card.person.is-flipped .person-flip__inner {
  transform: rotateY(180deg);
}

.person-flip__face {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(216px, 190px + 6vw, 248px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.person-flip__face--back { transform: rotateY(180deg); }
.person-flip__face--back .person__text { margin-top: var(--space-3); }

.person-flip__hint {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: var(--space-4);
  border-radius: 50%;
  border: 1px solid var(--border-bright);
  color: var(--text-dim);
  opacity: .6;
  transition: opacity var(--t-ui) var(--ease), transform var(--t-ui) var(--ease), color var(--t-ui) var(--ease);
}
.card.person:hover .person-flip__hint,
.card.person:focus-within .person-flip__hint {
  opacity: 1;
  color: var(--moon);
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  /* no spin — both sides shown stacked instead */
  .person-flip__inner        { display: block; transform: none !important; }
  .person-flip__face {
    display: block;
    min-height: 0;
    backface-visibility: visible;
    text-align: center;
  }
  .person-flip__face--back {
    transform: none;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-soft);
  }
  .person-flip__face--back .person__name { display: none; }
  .person-flip__hint                     { display: none; }
}

/* ============================================================
   18 — SPOTLIGHT (developer & Luna)
   ============================================================ */
.spotlight {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(1.5rem, 1rem + 3vw, 3.25rem);
  padding: clamp(1.75rem, 1.2rem + 3vw, 3.25rem);
}
.spotlight:hover { transform: translateY(-3px); }

.spotlight__light {
  position: absolute;
  top: -60%;
  left: 8%;
  width: min(620px, 78%);
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 60%,
    rgba(0, 199, 232, .16) 0%,
    rgba(0, 199, 232, .06) 32%,
    transparent 64%);
  pointer-events: none;
  opacity: .85;
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.spotlight:hover .spotlight__light { opacity: 1; transform: scale(1.06); }

.spotlight__avatar {
  position: relative;
  width: clamp(120px, 8rem + 6vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(150deg, rgba(125, 235, 255, .5), rgba(0, 199, 232, .12) 55%, rgba(18, 56, 71, .5));
  box-shadow: 0 14px 36px rgba(1, 6, 12, .55);
  transition: box-shadow var(--t-ui) var(--ease);
}
.spotlight:hover .spotlight__avatar {
  box-shadow: 0 14px 36px rgba(1, 6, 12, .55), 0 0 30px rgba(0, 199, 232, .22);
}
.spotlight__avatar .avatar__img {
  border: 1px solid rgba(3, 12, 20, .6);
  background: var(--bg-2);
}

.spotlight__body { position: relative; min-width: 0; }

.spotlight__name {
  font-family: var(--font-name);
  font-size: clamp(1.6rem, 1.2rem + 1.9vw, 2.6rem);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.1;
}

.spotlight__role {
  margin-top: .5rem;
  color: var(--cyan);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.spotlight__meta {
  margin-top: .6rem;
  color: var(--text-dim);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.spotlight__meta .dot { color: var(--gold); padding-inline: .25rem; }
.spotlight__meta .est { color: var(--gold); }

.spotlight__text {
  margin-top: var(--space-5);
  max-width: 46rem;
  color: var(--text-dim);
  font-size: var(--fs-lead);
  line-height: 1.68;
}

.spotlight__signoff {
  margin-top: var(--space-4);
  color: var(--moon);
  font-size: var(--fs-body);
  letter-spacing: .03em;
}

.spotlight--luna {
  background:
    linear-gradient(150deg, rgba(24, 74, 96, .48) 0%, rgba(10, 29, 42, .84) 52%, rgba(6, 21, 34, .92) 100%);
}

/* Dreamleak → Developer → Luna → Community */
.lineage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .55rem .8rem;
  margin-top: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  font-size: var(--fs-eyebrow);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.lineage__node {
  padding: .38rem .85rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  background: rgba(10, 29, 42, .55);
}
.lineage__link { color: var(--cyan); }

/* ============================================================
   19 — FAQ
   ============================================================ */
.faq { border-top: 1px solid var(--border-soft); }

.faq__item {
  border-bottom: 1px solid var(--border-soft);
  transition: background-color var(--t-ui) var(--ease);
}
.faq__item.is-open {
  background: linear-gradient(90deg, rgba(0, 199, 232, .05), transparent 65%);
}

.faq__heading { margin: 0; font: inherit; }

.faq__trigger {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  width: 100%;
  padding: clamp(1.1rem, .9rem + .9vw, 1.6rem) var(--space-4);
  text-align: left;
  border-radius: var(--r-sm);
  transition: color var(--t-ui) var(--ease);
}
.faq__trigger:hover { color: var(--moon); }

.faq__question {
  flex: 1;
  min-width: 0;
  font-family: var(--font-faq);
  font-size: var(--fs-h4);
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.4;
  overflow-wrap: break-word;
}

/* the + / − control, built from two bars so it can rotate smoothly */
.faq__icon {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10, 29, 42, .6);
  transition: border-color var(--t-ui) var(--ease), background-color var(--t-ui) var(--ease),
              transform var(--t-slow) var(--ease);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--cyan);
  border-radius: 2px;
  transition: transform var(--t-slow) var(--ease), opacity var(--t-ui) var(--ease),
              background-color var(--t-ui) var(--ease);
}
.faq__icon::before { width: 13px; height: 1.6px; }
.faq__icon::after  { width: 1.6px; height: 13px; }

.faq__trigger:hover .faq__icon { border-color: var(--border-bright); background: rgba(13, 41, 56, .8); }

.faq__trigger[aria-expanded="true"] .faq__icon {
  border-color: var(--border-bright);
  transform: rotate(180deg);
}
.faq__trigger[aria-expanded="true"] .faq__icon::after { transform: scaleY(0); opacity: 0; }
.faq__trigger[aria-expanded="true"] .faq__icon::before { background: var(--moon); }

/* `hidden` keeps a closed panel out of the a11y tree; the height
   animation is driven from JS so it can start from a real value. */
.faq__panel {
  overflow: hidden;
  transition: height var(--t-slow) var(--ease);
}
.faq__panel[hidden] { display: block; height: 0; }

.faq__answer {
  padding: 0 var(--space-4) clamp(1.2rem, 1rem + 1vw, 1.75rem);
  padding-right: clamp(1rem, .5rem + 3vw, 4.25rem);
  color: var(--text-dim);
  line-height: 1.72;
}

.faq__item--placeholder .faq__question { color: var(--text-dim); font-style: italic; }

/* ============================================================
   20 — SOCIALS
   ============================================================ */
.grid--socials { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

.social {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: clamp(1.25rem, 1rem + 1vw, 1.7rem);
}
.social:hover { transform: translateY(-3px); }

.social__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, rgba(0, 199, 232, .13), rgba(0, 199, 232, .03));
  border: 1px solid var(--border-bright);
  color: var(--cyan);
  transition: color var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease);
}
.social:hover .social__icon { color: var(--moon); box-shadow: 0 0 18px rgba(0, 199, 232, .16); }

.social__body { display: flex; flex-direction: column; min-width: 0; }

.social__name {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.social__handle {
  margin-top: .18rem;
  color: var(--text-dim);
  font-size: var(--fs-small);
  letter-spacing: .02em;
  overflow-wrap: anywhere;
  transition: color var(--t-ui) var(--ease);
}
.social:hover .social__handle { color: var(--text); }

.social__arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--cyan);
  opacity: .55;
  transition: transform var(--t-ui) var(--ease), opacity var(--t-ui) var(--ease),
              color var(--t-ui) var(--ease);
}
.social:hover .social__arrow { transform: translateX(4px); opacity: 1; color: var(--moon); }

/* ============================================================
   22 — FOOTER
   ============================================================ */
.footer {
  position: relative;
  background: var(--bg-2);
}
.footer .wave--footer {
  position: absolute;
  top: 1px;
  left: 0;
  right: 0;
  transform: translateY(-100%);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  padding-block: clamp(2.5rem, 2rem + 2.6vw, 4rem) clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  text-align: center;
}

.footer__brand { display: flex; flex-direction: column; align-items: center; }

.footer__mark { width: 46px; height: 46px; opacity: .9; margin-bottom: var(--space-4); }

.footer__name {
  font-family: var(--font-title);
  font-size: clamp(1rem, .92rem + .5vw, 1.32rem);
  font-weight: 600;
  letter-spacing: .22em;
  text-indent: .22em;
  text-transform: uppercase;
}

.footer__est {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
  color: var(--gold);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .34em;
  text-indent: .34em;
  text-transform: uppercase;
}
.footer__est .rule {
  display: block;
  width: clamp(24px, 6vw, 44px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-55));
}
.footer__est .rule:last-child { background: linear-gradient(270deg, transparent, var(--gold-55)); }

.footer__tagline {
  margin-top: var(--space-4);
  color: var(--text-dim);
  font-size: var(--fs-small);
  letter-spacing: .1em;
}
.footer__tagline span { color: var(--cyan); padding-inline: .25rem; }

.footer__socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-soft);
  width: min(100%, 520px);
}

.footer__social {
  padding: .4rem .6rem;
  color: var(--text-dim);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: color var(--t-ui) var(--ease);
}
.footer__social:hover { color: var(--moon); }
.footer__sep { color: var(--border); }

.footer__legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  color: #5D7885;
  font-size: .78rem;
  letter-spacing: .08em;
}

/* creator credit — deliberately no louder than the copyright beside it */
.footer__credit {
  color: #5D7885;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: inherit;
}

/* ============================================================
   23 — REVEAL ANIMATIONS
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 720ms var(--ease-out) var(--reveal-delay, 0ms),
    transform 720ms var(--ease-out) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ============================================================
   24 — RESPONSIVE
   ============================================================ */

/* two-column layouts unlock on tablet landscape and up */
@media (min-width: 900px) {
  .why { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 1rem + 3vw, 3.5rem); }
  .grid--games   { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--people  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--socials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--about   { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--tools   { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

/* tablet portrait */
@media (min-width: 620px) and (max-width: 899.98px) {
  .grid--games   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--people  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--socials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--about   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- mobile navigation ---- */
@media (max-width: 979.98px) {
  :root { --header-h: 84px; }

  .nav { padding: .55rem .6rem .55rem .9rem; border-radius: var(--r-xl); }

  .nav__toggle { display: grid; }

  .nav__menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 5;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    margin-left: 0;
    padding: var(--space-5);
    background: linear-gradient(165deg, rgba(13, 41, 56, .96), rgba(5, 17, 28, .97));
    border: 1px solid var(--border-soft);
    border-radius: var(--r-xl);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(.98);
    transform-origin: top center;
    transition:
      opacity var(--t-slow) var(--ease),
      transform var(--t-slow) var(--ease),
      visibility 0s linear var(--t-slow);
  }

  .nav__menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition:
      opacity var(--t-slow) var(--ease),
      transform var(--t-slow) var(--ease),
      visibility 0s;
  }

  .nav__links { flex-direction: column; align-items: stretch; gap: 2px; }

  .nav__link {
    padding: .95rem 1rem;
    font-size: 1rem;
    border-radius: var(--r-md);
    border-bottom: 1px solid rgba(18, 56, 71, .45);
  }
  .nav__links li:last-child .nav__link { border-bottom: 0; }
  .nav__link::after { display: none; }
  .nav__link.is-active {
    background: rgba(0, 199, 232, .08);
    box-shadow: inset 2px 0 0 var(--cyan);
  }

  .nav__cta { width: 100%; }
}

@media (min-width: 980px) {
  .nav__scrim { display: none; }
}

/* ---- phones ---- */
@media (max-width: 619.98px) {
  .hero__actions .btn { width: 100%; }
  .hero__actions { flex-direction: column; align-items: stretch; }

  .spotlight {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .spotlight__text { margin-inline: auto; }

  .lineage { font-size: .62rem; letter-spacing: .14em; }
  .lineage__node { padding: .32rem .6rem; }

  .reason { grid-template-columns: 1fr; gap: var(--space-2); padding-inline: var(--space-3); }
  .reason__num { font-size: 1rem; }

  .timeline { padding-left: 1.5rem; }
  .timeline::before { left: .3rem; }
  .timeline__marker { left: -1.5rem; top: 1.6rem; }

  .why__cta { flex-wrap: wrap; }
  .why__cta-arrow { margin-left: 0; }

  .faq__trigger { gap: var(--space-4); padding-inline: var(--space-2); }
  .faq__answer { padding-inline: var(--space-2) var(--space-4); }

  .social { flex-wrap: wrap; }

  .footer__socials { gap: var(--space-2); }
}

/* very small phones */
@media (max-width: 380px) {
  .nav__brand-text { font-size: .8rem; letter-spacing: .12em; }
  .nav__brand-mark { width: 30px; height: 30px; }
}

/* four social cards fit on one row once there is room for them */
@media (min-width: 1100px) {
  .grid--socials { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* wide screens get a touch more air */
@media (min-width: 1440px) {
  :root { --shell: 1280px; }
}

/* ============================================================
   25 — REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  /* atmospheric movement is removed entirely, not just shortened */
  .atmosphere__particles,
  .atmosphere__mist { display: none; }
  .atmosphere__stars { animation: none; opacity: .45; }
  .atmosphere__moon,
  .hero__glow,
  .wave__path { animation: none; }

  /* final content is visible immediately */
  .js .reveal { opacity: 1; transform: none; }
  .counter--hero,
  .hero__logo,
  .hero__wordmark,
  .hero__title,
  .hero__subtitle,
  .hero__actions { animation: none; opacity: 1; transform: none; }

  /* hover lift is motion too — keep the colour shift, drop the movement */
  .btn:hover,
  .card:hover,
  .person:hover,
  .social:hover,
  .tool:hover,
  .pillar:hover,
  .spotlight:hover,
  .why__cta:hover,
  .timeline__item:hover .timeline__card { transform: none; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .atmosphere, .site-header, .wave, .hero__glow { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: 1px solid #ccc; box-shadow: none; }
  .js .reveal { opacity: 1; transform: none; }
  .faq__panel[hidden] { height: auto; }
}

/* ============================================================
   26 — 3D ENHANCEMENTS
   Perspective card tilt · glare overlay · depth orbs ·
   hero grid · typographic depth filters
   ============================================================ */

/* ---- 3D tilt base ---- */
[data-tilt] { will-change: transform; }

/* Neutralise CSS hover lifts — JS owns the transform */
[data-tilt]:hover {
  transform: translateZ(0);
  box-shadow:
    0 0 0 1px var(--border-bright),
    0 24px 64px rgba(1,6,12,.78),
    0 8px 22px rgba(1,6,12,.62),
    0 0 72px rgba(0,199,232,.12);
}

/* ---- Glare overlay ---- */
.card__glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 300ms ease;
}

/* ---- Counter depth ---- */
.counter__value {
  filter: drop-shadow(0 0 36px rgba(0,199,232,.26));
}

/* ---- Section title depth ---- */
.section-title {
  filter: drop-shadow(0 0 44px rgba(0,199,232,.18));
}

/* ---- 3D-flavoured scroll reveal ---- */
.js .reveal {
  transform: translateY(28px) perspective(560px) rotateX(7deg);
}
.js .reveal.is-visible {
  transform: translateY(0) perspective(560px) rotateX(0deg);
}

/* ---- Floating depth orbs (injected by JS) ---- */
.atm-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  filter: blur(var(--orb-blur, 72px));
  animation: atm-orb-drift var(--orb-dur, 68s) ease-in-out var(--orb-delay, 0s) infinite;
}

@keyframes atm-orb-drift {
  0% {
    opacity: 0;
    transform: translate(var(--orb-x0, 20vw), var(--orb-y0, 60vh)) scale(.88);
  }
  15% { opacity: var(--orb-peak, .11); }
  50% {
    opacity: var(--orb-peak, .11);
    transform: translate(
      calc(var(--orb-x0, 20vw) + var(--orb-dx, 8vw)),
      calc(var(--orb-y0, 60vh) + var(--orb-dy, -20vh))
    ) scale(1.1);
  }
  85% { opacity: var(--orb-peak, .11); }
  100% {
    opacity: 0;
    transform: translate(
      calc(var(--orb-x0, 20vw) + var(--orb-dx, 8vw) * 2),
      calc(var(--orb-y0, 60vh) + var(--orb-dy, -20vh) * 2)
    ) scale(.88);
  }
}

/* ---- Reduced motion: strip all 3D additions ---- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal            { transform: translateY(26px); }
  .js .reveal.is-visible { transform: none; }
  [data-tilt]:hover      { transform: none; }
  .card__glare           { display: none; }
  .atm-orb               { display: none; }
}

/* ============================================================
   27 — CURSOR · RIPPLE · SCROLL BAR · HERO WAVE
   ============================================================ */

/* ---- Custom cursor ---- */
.js-cursor, .js-cursor * { cursor: none !important; }

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--moon);
  box-shadow: 0 0 10px rgba(125,235,255,.9), 0 0 26px rgba(0,199,232,.6);
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  will-change: left, top;
  transition:
    width .18s var(--ease), height .18s var(--ease),
    background .18s var(--ease), transform .1s var(--ease);
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,199,232,.55);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: left, top, width, height;
  transition:
    width .28s var(--ease-out), height .28s var(--ease-out),
    border-color .28s var(--ease);
}

.cursor-dot.is-hovering {
  width: 12px; height: 12px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(0,199,232,1), 0 0 38px rgba(0,199,232,.6);
}
.cursor-ring.is-hovering { width: 58px; height: 58px; border-color: rgba(125,235,255,.75); }
.cursor-dot.is-clicking  { transform: translate(-50%, -50%) scale(.6); }
.cursor-ring.is-clicking { transform: translate(-50%, -50%) scale(.82); }

/* ---- Click ripples ---- */
.click-ripple {
  position: fixed;
  width: 0; height: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(0,199,232, var(--ripple-op, .85));
  box-shadow: 0 0 20px rgba(0,199,232,.38), inset 0 0 10px rgba(125,235,255,.16);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9980;
  animation: ripple-out var(--ripple-dur, 700ms) cubic-bezier(.16,1,.3,1) forwards;
}

@keyframes ripple-out {
  to { width: 420px; height: 420px; opacity: 0; }
}

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2.5px;
  width: 0%;
  z-index: 10001;
  pointer-events: none;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--moon) 50%, var(--gold) 100%);
  box-shadow: 0 0 14px rgba(0,199,232,.9), 0 0 32px rgba(0,199,232,.4);
  border-radius: 0 2px 2px 0;
  transition: width .1s linear;
}

/* ---- Hero 3D canvas wave ---- */
.hero__wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
}

/* ---- Reduced motion: strip new additions ---- */
@media (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none; }
  .click-ripple             { display: none; }
  .hero__wave-canvas        { display: none; }
}

/* ============================================================
   28 — CURSOR TRAIL · SHOOTING STARS ·
        CLICK EXPLOSIONS · HERO DIVE · LIQUID GLASS
   ============================================================ */

/* ---- Cursor particle trail ---- */
.cursor-particle {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190,240,255,.95) 0%, rgba(0,199,232,.55) 55%, transparent 75%);
  pointer-events: none;
  z-index: 9970;
  transform: translate(-50%, -50%);
  animation: trail-fade var(--trail-dur, 700ms) ease-out forwards;
}
@keyframes trail-fade {
  0%   { opacity: .95; transform: translate(-50%, -50%) translate(0, 0) scale(1); }
  100% { opacity: 0;   transform: translate(-50%, -50%) translate(var(--drift-x, 0px), -26px) scale(.3); }
}

/* ---- Shooting stars ----
   The head is the element itself; the tail is its ::before child, so
   the tail is carried along by the head's translation and can never
   drift out of sync with it.

   --star-rot is the direction of travel. The tail is rotated to
   --star-rot + 180deg around its own left edge, which is pinned to the
   centre of the head — so it always points back along the flight path
   and can never swing out in front. */
.shooting-star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px 1px rgba(255,255,255,.9), 0 0 16px 3px rgba(125,235,255,.55);
  opacity: 0;
  pointer-events: none;
  animation: shoot var(--star-dur, 1200ms) linear forwards;
}

.shooting-star::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--star-len, 90px);
  height: 2px;
  margin-top: -1px;                                   /* centre the bar on the head */
  transform-origin: 0 50%;                            /* pivot at the head */
  transform: rotate(calc(var(--star-rot, 120deg) + 180deg));
  background: linear-gradient(90deg,
    rgba(255,255,255,.85) 0%,
    rgba(190,242,255,.45) 28%,
    rgba(125,235,255,.16) 62%,
    transparent 100%);
  border-radius: 999px;
  filter: blur(.3px);
}

@keyframes shoot {
  0%   { opacity: 0; transform: translate(0, 0); }
  12%  { opacity: var(--star-bright, 1); }
  72%  { opacity: var(--star-bright, 1); }
  100% { opacity: 0; transform: translate(var(--star-dx, -300px), var(--star-dy, 120px)); }
}

/* ---- Click explosion sparks (paired with .click-ripple) ---- */
.explosion-particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9985;
  transform: translate(-50%, -50%);
  animation: explode-out var(--ex-dur, 600ms) cubic-bezier(.15,.7,.3,1) forwards;
}
@keyframes explode-out {
  0%   { opacity: 1; transform: translate(-50%, -50%) translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) translate(var(--ex-dx, 40px), var(--ex-dy, 40px)) scale(.2); }
}

/* ---- Liquid glass sheen — navbar + glass cards ---- */
.nav::after,
.card--glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(115deg,
    transparent 30%, rgba(255,255,255,.08) 45%, rgba(255,255,255,.16) 50%,
    rgba(255,255,255,.08) 55%, transparent 70%);
  background-size: 240% 240%;
  background-position: -70% 0;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: liquid-sheen 10s ease-in-out infinite;
}
.card--glass::after { animation-duration: 13s; animation-delay: -4s; }

@keyframes liquid-sheen {
  0%, 100% { background-position: -70% 0%; }
  50%      { background-position: 170% 0%; }
}

/* ---- Reduced motion: strip wave-3 additions ---- */
@media (prefers-reduced-motion: reduce) {
  .cursor-particle                 { display: none; }
  .shooting-star                   { display: none; }
  .explosion-particle              { display: none; }
  .nav::after, .card--glass::after { animation: none; }
}
