/* Typefaces (SIL Open Font License), embedded as Latin subsets.
   National Park: sturdy and human, for display. Tektur: the machine voice, for small labels.
   Crimson Pro: reading text. Young Serif: the promise. */
@font-face { font-family: "CL National Park"; src: url(../fonts/NationalPark-Regular.woff) format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "CL National Park"; src: url(../fonts/NationalPark-Bold.woff) format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "CL Tektur"; src: url(../fonts/Tektur-Regular.woff) format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "CL Tektur"; src: url(../fonts/Tektur-Medium.woff) format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "CL Crimson Pro"; src: url(../fonts/CrimsonPro-Regular.woff) format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "CL Crimson Pro"; src: url(../fonts/CrimsonPro-Italic.woff) format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "CL Crimson Pro"; src: url(../fonts/CrimsonPro-Bold.woff) format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "CL Young Serif"; src: url(../fonts/YoungSerif-Regular.woff) format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
/* =========================================================================
   CROSSLAND AI · hero, pass 1 (art direction)
   Tokens first. The scene is a night sky by design, so both themes share it.
   ========================================================================= */
:root {
  --void: #070A1C;        /* deep indigo space, the base */
  --nebula: #1B1440;      /* violet depth in the sky gradient */
  --reentry: #FF6A2B;     /* fire, the heat of impact */
  --plasma: #FFD27A;      /* white-gold, the hottest part of the flame */
  --aurora: #7FE3FF;      /* Earth's atmosphere, star lines, focus rings */
  --starlight: #F2EEFF;   /* text */
  --dim: rgba(242, 238, 255, .8);      /* secondary text: bright enough to read comfortably on the dark sky */

  --display: "CL National Park", "National Park", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --serif: "CL Crimson Pro", "Crimson Pro", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --accent: "CL Young Serif", "Young Serif", Rockwell, Georgia, serif;
  --tech: "CL Tektur", "Tektur", "Bahnschrift", "Segoe UI", sans-serif;
  /* Depth: a solid extruded body under the letters, then a soft cast shadow. Sized in em, so it scales with the type. */
  --x-warm: 0 .012em 0 #F0B060, 0 .024em 0 #E39A45, 0 .036em 0 #D2823A, 0 .048em 0 #BC6C30, 0 .06em 0 #A35827, 0 .072em 0 #874620, 0 .084em 0 #6B361A, 0 .16em .1em rgba(0, 0, 0, .55);
  --x-ember: 0 .012em 0 #E8792F, 0 .024em 0 #D46826, 0 .036em 0 #BD5820, 0 .048em 0 #A2491C, 0 .06em 0 #873B18, 0 .072em 0 #6D3015, 0 .084em 0 #542612, 0 .16em .1em rgba(0, 0, 0, .55);
  --x-cool: 0 .012em 0 #C9C3EE, 0 .024em 0 #ABA4DD, 0 .036em 0 #8E86C8, 0 .048em 0 #7169B0, 0 .06em 0 #585096, 0 .072em 0 #433C7A, 0 .084em 0 #312B5E, 0 .16em .1em rgba(0, 0, 0, .6);
  --x-small: 0 .04em 0 #5A5391, 0 .08em 0 #37325F, 0 .14em .08em rgba(0, 0, 0, .5);

  --pad: 48px;            /* bleed around the stage so the screen can shake; JS reads this */
  --cy: 46%;              /* where the cross arms meet; JS reads this */
  --earth: .2;            /* share of the viewport height Earth fills; JS reads this */
  --gap: clamp(10px, 1.8vh, 22px);
  --tagroom: clamp(16px, 2.6vh, 28px);   /* extra space below the crossing for the tagline */
  --logo-size: clamp(40px, min(8.6vw, 15vh), 140px);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --void: #070A1C; --nebula: #1B1440; --reentry: #FF6A2B;
    --plasma: #FFD27A; --aurora: #7FE3FF; --starlight: #F2EEFF;
  }
}
:root[data-theme="dark"] {
  --void: #070A1C; --nebula: #1B1440; --reentry: #FF6A2B;
  --plasma: #FFD27A; --aurora: #7FE3FF; --starlight: #F2EEFF;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--starlight);
  font-family: var(--serif);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- stage ---------- */
.scene { position: fixed; inset: 0; overflow: hidden; background: var(--void); }
.shake { position: absolute; inset: calc(var(--pad) * -1); will-change: transform; }
.shake > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.frame { position: absolute; inset: var(--pad); }
.frame main { position: absolute; inset: 0; }

.veil {
  position: absolute; left: 50%; top: var(--cy);
  width: min(1180px, 116vw); height: min(620px, 78vh);
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(7, 10, 28, .8), rgba(7, 10, 28, .5) 55%, rgba(7, 10, 28, 0));
  pointer-events: none;
}

.flash {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(circle at 50% var(--cy), #FFFFFF 0%, var(--plasma) 22%, rgba(255, 106, 43, .55) 48%, rgba(255, 106, 43, 0) 78%);
  mix-blend-mode: screen;
}

/* ---------- the four words that fly in along the cross ---------- */
.word {
  position: absolute; left: 50%; top: var(--cy);
  translate: -50% -50%;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(24px, min(5.8vw, 9.5vh), 100px);
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #FFF3DF;
  /* a thin dark edge first, so the letters stay readable against bright fire */
  text-shadow: 0 0 1px rgba(30, 8, 0, .95), 0 0 3px rgba(30, 8, 0, .85), 0 0 20px rgba(255, 140, 50, .75), 0 0 52px rgba(255, 90, 30, .5);
  pointer-events: none;
  will-change: transform, opacity;
}
html:not(.js) .word { display: none; }

/* ---------- wordmark: sits on top of the horizontal arm ---------- */
.logo {
  position: absolute; left: 50%;
  bottom: calc(100% - var(--cy) + var(--gap) - .14em);
  translate: calc(-50% + var(--logo-shift, 0px)) 0;   /* nudged so the vertical arm falls between CROSS and LAND */
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--logo-size);
  line-height: 1.1;
  letter-spacing: .015em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* The wordmark's glow is drawn on the fx canvas (see fx.logoGlow), which is far cheaper than a CSS filter. */
.logo .ch {
  display: inline-block;
  /* a highlight band sweeps across the gold; each letter is delayed a little, so it travels along the word */
  background:
    linear-gradient(112deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.95) 50%, rgba(255,255,255,0) 62%) no-repeat,
    linear-gradient(180deg, #FFFFFF 6%, #FFF3D6 24%, var(--plasma) 52%, var(--reentry) 100%);
  background-size: 260% 100%, 100% 100%;
  background-position: 240% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  will-change: transform, opacity;
}
/* Each letter is two layers: the body (its own text, drawn only as an extrusion that falls away from the light)
   and the shiny face on top (::after). --lx/--ly follow the wordmark as it turns. */
.logo .ch {
  position: relative;
  background: none;
  text-shadow:
    calc(var(--lx, .2) * .014em) calc(var(--ly, 1) * .014em) 0 #F3B560, calc(var(--lx, .2) * .028em) calc(var(--ly, 1) * .028em) 0 #E69D46,
    calc(var(--lx, .2) * .042em) calc(var(--ly, 1) * .042em) 0 #D5853B, calc(var(--lx, .2) * .056em) calc(var(--ly, 1) * .056em) 0 #BF6E31,
    calc(var(--lx, .2) * .07em) calc(var(--ly, 1) * .07em) 0 #A55A28, calc(var(--lx, .2) * .084em) calc(var(--ly, 1) * .084em) 0 #894821,
    calc(var(--lx, .2) * .098em) calc(var(--ly, 1) * .098em) 0 #6C371B, calc(var(--lx, .2) * .112em) calc(var(--ly, 1) * .112em) 0 #522915,
    calc(var(--lx, .2) * .2em) calc(var(--ly, 1) * .2em) .14em rgba(0, 0, 0, .6);
}
.logo .ch::after {
  content: attr(data-c);
  position: absolute; left: 0; top: 0;
  background:
    linear-gradient(112deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.95) 50%, rgba(255,255,255,0) 62%) no-repeat,
    linear-gradient(180deg, #FFFFFF 4%, #FFF1D2 26%, var(--plasma) 56%, #FF8A3A 100%);
  background-size: 260% 100%, 100% 100%;
  background-position: 240% 0, 0 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.logo { pointer-events: auto; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.logo.grabbed { cursor: grabbing; }
.intro-done .logo .ch::after {
  animation: logo-shine 16s cubic-bezier(.4, 0, .2, 1) infinite;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes logo-shine {                      /* one slow pass, then a long rest */
  0%       { background-position: 240% 0, 0 0; }
  20%, 100% { background-position: -160% 0, 0 0; }
}
.logo .sp { display: inline-block; width: .26em; }
.logo .ch.split { margin-right: .08em; }   /* a clean channel for the beam */

/* ---------- the promise: sits below the horizontal arm ---------- */
/* ---------- the tagline: split around the crossing, so the glowing center sits where the words meet ---------- */
.tagline {
  position: absolute; left: 50%; top: var(--cy);
  translate: -50% -50%;
  margin: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  width: max-content;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(15px, 1.45vw, 22px);
  line-height: 1.2;
  letter-spacing: .01em;
  color: #FFE6B8;
  white-space: nowrap;
  pointer-events: none;
}
.tag-l, .tag-r {
  position: relative;
  text-shadow: 0 0 3px rgba(7, 10, 28, .9);
}
.tag-l { text-align: right; transform-origin: 100% 50%; }
.tag-r { text-align: left; transform-origin: 0 50%; }
.tag-l::before, .tag-r::before {           /* the beam fades behind the words */
  content: ""; position: absolute; inset: -12px -18px; z-index: -1;
  background: radial-gradient(closest-side, rgba(7, 10, 28, .9), rgba(7, 10, 28, 0));
}
.tag-gap { width: clamp(30px, 3vw, 44px); }

.motto {
  position: absolute; left: 50%;
  top: calc(var(--cy) + var(--gap) + var(--tagroom));
  translate: -50% 0;
  margin: 0;
  width: max-content; max-width: 94vw;
  text-align: center;
  color: var(--starlight);
  text-shadow: 0 2px 24px rgba(7, 10, 28, .9);
}
.motto-a {
  display: block;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, min(3.6vw, 6vh), 58px);
  line-height: 1.15;
  letter-spacing: -.005em;
  will-change: transform, opacity;
}
.motto-b {
  display: block;
  font-weight: 900;
  font-size: clamp(30px, min(4.8vw, 8vh), 80px);
  line-height: 1.04;
  letter-spacing: -.02em;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

/* ---------- navigation: one destination at the end of each arm ---------- */
/* ---------- the portal: one door at the foot of the cross ---------- */
.crossnav { position: absolute; inset: 0; pointer-events: none; }
.portal {
  pointer-events: auto;
  position: absolute; left: 50%; top: calc(var(--cy) + min(27vh, 270px));
  translate: -50% -50%;
  width: max-content; max-width: 92vw;       /* never squeezed to half the screen */
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: var(--starlight);
  text-decoration: none;
  text-align: center;
  text-shadow: 0 1px 14px rgba(7, 10, 28, .95);
  will-change: transform, opacity;
}
.portal-ring {
  position: relative;
  scale: calc(1 + var(--pull, 0) * .45);   /* grows as a deliberate scroll builds up */
  width: 64px; height: 64px;
  border-radius: 50%;
  /* a way through: light at the center, a dark throat around it, then the turning ring */
  background: radial-gradient(circle, #FFFFFF 0%, #FFF3D2 14%, #FFD27A 30%, #FF8A3A 46%, #5A2A6E 62%, #150B2E 78%, #07051A 100%);
  box-shadow: 0 0 0 1px rgba(255, 214, 122, .25), 0 0 30px 6px rgba(255, 150, 70, .5), inset 0 0 14px rgba(255, 190, 110, .35);
  transition: scale .3s cubic-bezier(.2, .8, .3, 1.4), box-shadow .3s;
}
.portal-ring::before {                     /* the accretion ring, turning */
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 244, 220, 0) 0%, var(--plasma) 18%, var(--reentry) 40%, rgba(255, 106, 43, 0) 58%, rgba(127, 227, 255, .8) 80%, rgba(255, 244, 220, 0) 100%);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 62%, #000 100%);
  mask: radial-gradient(circle, transparent 60%, #000 62%, #000 100%);
  animation: ring-turn 5s linear infinite;
  will-change: transform;                  /* rotate the finished ring as a layer instead of redrawing it */
}
.portal-ring::after {                      /* a thin lensing halo */
  content: ""; position: absolute; inset: -14px -22px; border-radius: 50%;
  border: 1px solid rgba(127, 227, 255, .35);
  transform: rotate(-18deg);
}
@keyframes ring-turn { to { transform: rotate(360deg); } }
.portal-label {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  letter-spacing: .03em;
  transition: color .25s;
}
.portal-hint { font-style: italic; font-size: 15px; color: var(--dim); margin-top: -6px; }
.portal-ring.gulp { animation: gulp .5s ease-out; }
@keyframes gulp {
  35% { box-shadow: 0 0 0 1px rgba(255, 214, 122, .6), 0 0 38px 10px rgba(255, 170, 80, .7), inset 0 0 22px rgba(255, 180, 90, .5); }
}
.portal.charged .portal-ring { animation: charged 1s ease-in-out 3; }
@keyframes charged {
  50% { scale: 1.25; box-shadow: 0 0 0 1px rgba(255, 214, 122, .75), 0 0 60px 18px rgba(255, 170, 80, .75), inset 0 0 26px rgba(255, 190, 100, .6); }
}
.portal-label { transition: color .25s, text-shadow .6s; }
.portal.charged .portal-label { color: var(--plasma); text-shadow: 0 0 18px rgba(255, 190, 100, .85), 0 1px 14px rgba(7, 10, 28, .95); }
.portal:hover .portal-ring, .portal:focus-visible .portal-ring {
  scale: 1.18;
  box-shadow: 0 0 0 1px rgba(255, 214, 122, .5), 0 0 40px 10px rgba(255, 150, 60, .6), inset 0 0 22px rgba(255, 180, 90, .5);
}
.portal:hover .portal-label, .portal:focus-visible .portal-label { color: var(--plasma); }
.portal:focus-visible { outline: 2px solid var(--aurora); outline-offset: 10px; border-radius: 8px; }


/* ---------- top bar ---------- */
/* ---------- the black hole transition and the pages behind it ---------- */
.warp { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 15; pointer-events: none; display: none; }
.warp.on { display: block; }
.scene.warping { pointer-events: none; }
.scene.warping .shake { will-change: transform, filter; }

.page {
  position: fixed; inset: 0; z-index: 20;
  background: var(--void);
  color: var(--starlight);
  visibility: hidden; opacity: 0;
  transform: scale(1.06);
  transition: opacity .7s ease, transform .7s ease, visibility 0s .7s;
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}
.page.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.page:focus { outline: none; }
.page-body {
  position: relative;
  min-height: 100%;
  /* the descent: space at the top, sky at the bottom */
  z-index: 1;
  /* the descent: open space at the top (the live sky shows through), dawn at the bottom */
  background:
    radial-gradient(ellipse 60% 30% at var(--hx, 50%) 0%, rgba(255, 106, 43, .18), rgba(255, 106, 43, 0) 70%),
    linear-gradient(180deg, rgba(7, 10, 28, 0) 0%, rgba(10, 11, 36, .1) 55%, rgba(18, 18, 58, .6) 80%, rgba(26, 42, 92, .92) 94%, #274A86 100%);
}
/* the same universe continues behind the page: calmer, dimmer, drifting as you scroll */
.page-sky { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 0; }
.mini-ring.gulp { animation: miniGulp .5s ease-out; }
@keyframes miniGulp { 35% { box-shadow: 0 0 0 2px var(--plasma), 0 0 18px 4px rgba(255, 170, 80, .85); } }
.scroll-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 44px;
  color: var(--dim); text-decoration: none; font-style: italic; font-size: 15px;
}
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(180deg, var(--plasma), rgba(255, 214, 122, 0)); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.scroll-cue:hover { color: var(--starlight); }
.scroll-cue:focus-visible { outline: 2px solid var(--aurora); outline-offset: 6px; border-radius: 4px; }
.h-quote {
  margin: 0 0 26px; max-width: 18ch;
  font-family: var(--accent); font-weight: 400;
  font-size: clamp(34px, 5vw, 72px); line-height: 1.1; letter-spacing: -.01em;
  color: #F4F1FF; text-shadow: var(--x-cool);
}
.h-quote em { font-style: normal; color: #FFE0A6; text-shadow: var(--x-warm); }
.proof-band { margin-top: clamp(56px, 9vh, 104px); }
.ways { margin-top: clamp(64px, 11vh, 128px); }
.ways .doors { margin-top: 28px; }
@media (prefers-reduced-motion: reduce) { .scroll-cue i { animation: none; } }

/* ---------- sticky bar ---------- */
.pagebar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 3vw, 40px);
  background: rgba(7, 10, 28, .72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(242, 238, 255, .08);
}
.pagebar-home {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 20px/1 var(--display); letter-spacing: .05em; text-transform: uppercase;
  color: var(--starlight); background: none; border: 0; padding: 6px 0; cursor: pointer;
}
.mini-ring {
  width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, #FFFFFF 0%, #FFD27A 32%, #FF8A3A 50%, #2A1450 72%, #07051A 100%);
  box-shadow: 0 0 0 2px var(--reentry), 0 0 10px rgba(255, 106, 43, .7);
}
.pagebar-home:hover .mini-ring { box-shadow: 0 0 0 2px var(--plasma), 0 0 16px 2px rgba(255, 190, 100, .8); }
.pagebar-nav { display: flex; gap: clamp(12px, 2vw, 28px); }
.pagebar-nav a { color: var(--dim); text-decoration: none; font-size: 16px; font-style: italic; }
.pagebar-nav a:hover { color: var(--starlight); }
.pagebar-right { display: flex; align-items: center; gap: 16px; }
.pagebar .sound-label { display: none; }
.pagebar-book, .btn-fill {
  font: 800 17px/1 var(--display); letter-spacing: .03em;
  color: var(--void); background: var(--plasma); text-decoration: none;
  border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.pagebar-book { white-space: nowrap; }
@media (max-width: 420px) { .pagebar-book { font-size: 15px; padding: 10px 14px; } .pagebar-right { gap: 10px; } }
@media (max-width: 360px) { .pagebar-home span:last-child { display: none; } }
.pagebar-book:hover, .btn-fill:hover { background: #FFE3A6; transform: translateY(-1px); }
.page a:focus-visible, .page button:focus-visible, .page input:focus-visible, .page summary:focus-visible { outline: 2px solid var(--aurora); outline-offset: 3px; }

/* ---------- layout and type ---------- */
.sec { position: relative; padding: clamp(72px, 11vh, 140px) clamp(16px, 4vw, 48px); }
.wrap { max-width: 1120px; margin: 0 auto; }
.wrap.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.wrap.two.wide-demo { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.copy.narrow { max-width: 640px; }
.h-display {
  margin: 0 0 24px;
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(40px, 6.6vw, 96px); line-height: 1.02; letter-spacing: .005em;
  background: linear-gradient(180deg, #FFFFFF 6%, var(--plasma) 52%, var(--reentry) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  width: max-content; max-width: 100%;
}
.h-display.small { font-size: clamp(34px, 4.8vw, 68px); }
.h-display em { font-style: normal; }
.h-chapter {
  margin: 0 0 18px;
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(32px, 4.4vw, 60px); line-height: 1.04; letter-spacing: .01em;
  color: var(--starlight);
}
.chapter-n { margin: 0 0 8px; font-style: italic; color: var(--plasma); font-size: 18px; }
.lead { margin: 0 0 24px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; max-width: 60ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.h-display.center, .h-chapter.center { text-align: center; width: auto; }
.fineprint { font-style: italic; font-size: 14px; color: var(--dim); margin: 16px 0 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; }
.ticks li { position: relative; padding-left: 26px; margin: 10px 0; font-size: 17px; line-height: 1.4; }
.ticks li::before { content: "✦"; position: absolute; left: 0; color: var(--plasma); }
.btn-line {
  display: inline-block; font: 800 18px/1 var(--display); letter-spacing: .03em;
  color: var(--plasma); text-decoration: none; border-bottom: 2px solid var(--reentry); padding: 6px 0;
}
.btn-line:hover { color: #FFE3A6; }

/* arrival */
.arrival { padding-top: clamp(80px, 14vh, 180px); }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.door {
  display: grid; gap: 6px; padding: 22px 22px 24px;
  border: 1px solid rgba(242, 238, 255, .12); border-radius: 14px;
  background: rgba(27, 20, 64, .35);
  color: var(--starlight); text-decoration: none;
  transition: border-color .25s, transform .25s, background-color .25s;
}
.door:hover { border-color: var(--reentry); transform: translateY(-3px); background: rgba(27, 20, 64, .55); }
.door-n { font-style: italic; color: var(--plasma); }
.door-t { font: 800 26px/1 var(--display); letter-spacing: .02em; }
.door-d { color: var(--dim); font-size: 15px; line-height: 1.4; }

/* proof */
.proof-band .stats { margin: 0; }
.stats { list-style: none; margin: 0; padding: 28px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-top: 1px solid rgba(242, 238, 255, .12); border-bottom: 1px solid rgba(242, 238, 255, .12); }
.stats li { text-align: center; }
.stats strong { display: block; font: 900 clamp(40px, 5vw, 64px)/1 var(--display); color: var(--plasma); }
.stats span { display: block; margin-top: 8px; color: var(--dim); font-size: 15px; line-height: 1.35; }

/* demos */
.demo {
  border: 1px solid rgba(242, 238, 255, .14); border-radius: 16px;
  background: rgba(7, 10, 28, .6);
  padding: 18px 20px 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
/* Solutions: two demos in one card, one after the other */
.demo-deck { position: relative; }
.deck-bar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-bottom: 10px; }
.deck-count { font: italic 400 15px/1 var(--serif); color: var(--dim); }
.deck-count b { font-style: normal; color: var(--starlight); }
.deck-arrows { display: flex; gap: 8px; }
.deck-arrow {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(7, 10, 28, .6); color: var(--starlight); border: 1px solid rgba(242, 238, 255, .22);
  transition: border-color .2s, background-color .2s, opacity .2s;
}
.deck-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.deck-arrow:hover:not(:disabled) { border-color: var(--plasma); background: rgba(27, 20, 64, .7); }
.deck-arrow:disabled { opacity: .35; cursor: default; }
.deck-arrow:focus-visible, .deck-link:focus-visible, .clip-btn:focus-visible, .clip-close:focus-visible { outline: 2px solid var(--aurora); outline-offset: 3px; }
.deck-arrow.pulse { animation: deckPulse 2.4s ease-in-out infinite; }
@keyframes deckPulse { 50% { border-color: var(--plasma); box-shadow: 0 0 0 4px rgba(255, 214, 122, .14), 0 0 18px rgba(255, 170, 80, .35); } }
.deck-track { display: grid; }
.deck-slide { grid-area: 1 / 1; transition: opacity .45s ease, transform .45s ease, visibility 0s; }
.deck-slide:not(.is-on) { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .45s ease, transform .45s ease, visibility 0s .45s; }
.deck-slide.before { transform: translateX(-28px); }
.deck-slide.after { transform: translateX(28px); }
.deck-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 0; cursor: pointer;
  background: none; border: 0; color: var(--plasma); font: 700 16px/1.2 var(--display); letter-spacing: .03em;
}
.deck-link i { font-style: normal; display: inline-block; transition: transform .2s; }
.deck-link:hover i { transform: translateX(4px); }
.deck-link.back:hover i { transform: translateX(-4px); }
.demo-tag { font: 700 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #0B2A1A; background: #3DDC84; border-radius: 999px; padding: 6px 10px; }
.clip { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid rgba(242, 238, 255, .12); background: #0d1120; }
.clip video { display: block; width: 100%; height: auto; aspect-ratio: 1328 / 940; }
.clip-btn {
  position: absolute; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(7, 10, 28, .78); color: var(--starlight); border: 1px solid rgba(242, 238, 255, .25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.clip-btn svg { width: 18px; height: 18px; fill: currentColor; }
.clip-play { left: 10px; }
.clip-expand { right: 10px; }
.clip-expand svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.clip-play .i-pause { display: none; }
.clip-play.playing .i-play { display: none; }
.clip-play.playing .i-pause { display: inline; }
.clip-box {
  width: min(96vw, 1400px); max-height: 94vh; padding: 0; border: 1px solid rgba(242, 238, 255, .2); border-radius: 14px;
  background: #0d1120; color: var(--starlight); overflow: hidden;
}
.clip-box::backdrop { background: rgba(3, 5, 16, .82); backdrop-filter: blur(4px); }
.clip-box video { display: block; width: 100%; max-height: 94vh; }
.clip-close {
  position: absolute; top: 10px; right: 10px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  font: 400 28px/1 var(--serif); color: var(--starlight); background: rgba(7, 10, 28, .8); border: 1px solid rgba(242, 238, 255, .3);
}
@media (prefers-reduced-motion: reduce) { .deck-arrow.pulse { animation: none; } .deck-slide, .deck-slide:not(.is-on) { transition: none; } .deck-slide.before, .deck-slide.after { transform: none; } }
.demo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.demo-act { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.try-note { font: italic 400 15px/1 var(--serif); color: var(--plasma); white-space: nowrap; transition: opacity .3s; }
.try-note i { display: inline-block; font-style: normal; animation: nudge 1.4s ease-in-out infinite; }
.try-note.gone { opacity: 0; }
@keyframes nudge { 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .try-note i { animation: none; } }
.demo-title { font: 800 20px/1 var(--display); letter-spacing: .03em; }
.btn-small {
  font: 800 15px/1 var(--display); letter-spacing: .03em;
  color: var(--void); background: var(--plasma); border: 0; border-radius: 999px; padding: 9px 14px; cursor: pointer;
}
.btn-small:disabled { opacity: .5; cursor: default; }
.demo-foot { margin: 14px 0 0; font-size: 15px; color: var(--dim); font-style: italic; }
.inbox { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.inbox li {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 10px; background: rgba(242, 238, 255, .05);
  transition: background-color .4s;
}
.inbox .from { font-weight: 700; font-size: 15px; }
.inbox .subj { display: block; color: var(--dim); font-size: 14px; }
.inbox .tag { opacity: 0; transform: translateX(8px); transition: opacity .35s, transform .35s; }
.inbox li.done .tag { opacity: 1; transform: none; }
.inbox li.human { background: rgba(255, 106, 43, .16); }
@media (max-width: 560px) {                  /* phones: the label sits under the message, so the message keeps the full width */
  .inbox li { grid-template-columns: 1fr; gap: 6px; }
  .inbox .tag { justify-self: start; transform: translateY(-4px); }
}
.tag {
  display: inline-block; font: 700 12px/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 999px; background: rgba(127, 227, 255, .16); color: var(--aurora);
}
.tag.human { background: var(--reentry); color: var(--void); }

/* academy */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 22px; }
.chip {
  font: 700 15px/1 var(--display); letter-spacing: .03em;
  color: var(--starlight); background: none; border: 1px solid rgba(242, 238, 255, .22); border-radius: 999px;
  padding: 9px 14px; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--plasma); }
.chip.is-on { background: var(--plasma); color: var(--void); border-color: var(--plasma); }
.courses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.courses li {
  padding: 18px; border-radius: 14px; border: 1px solid rgba(242, 238, 255, .12); background: rgba(27, 20, 64, .35);
  display: grid; gap: 8px; align-content: start;
  transition: opacity .3s, transform .3s;
}
.courses li.hide { display: none; }
.courses .lvl { font-size: 13px; font-style: italic; color: var(--plasma); }
.courses h3 { margin: 0; font: 800 21px/1.05 var(--display); letter-spacing: .02em; }
.courses p { margin: 0; font-size: 14px; color: var(--dim); line-height: 1.4; }
.courses .len { font-size: 13px; color: var(--dim); }
.courses .bar { height: 3px; background: rgba(242, 238, 255, .12); border-radius: 2px; overflow: hidden; }
.courses .bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--plasma), var(--reentry)); }

/* consulting */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.phase {
  font: 800 15px/1 var(--display); letter-spacing: .03em; color: var(--dim);
  background: rgba(242, 238, 255, .05); border: 1px solid transparent; border-radius: 10px; padding: 12px 6px; cursor: pointer;
  text-align: center;
}
.phase small { display: block; font: italic 400 12px/1.2 var(--serif); margin-top: 6px; }
.phase.is-on { color: var(--void); background: var(--plasma); }
.phase-detail { min-height: 96px; font-size: 15px; line-height: 1.5; color: var(--starlight); }
.phase-detail strong { color: var(--plasma); }
.slider { display: grid; gap: 8px; margin-top: 14px; font-size: 15px; }
.slider input { width: 100%; accent-color: var(--reentry); }

/* human */
.pull {
  margin: 8px auto 28px; max-width: 900px; padding: 0; text-align: center;
}
.pull p {
  margin: 0;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(28px, 3.4vw, 46px); line-height: 1.2; letter-spacing: -.01em;
  color: var(--starlight);
}
.pull::before, .pull::after {               /* short beams above and below, echoing the cross */
  content: ""; display: block; width: 72px; height: 2px; margin: 0 auto 22px;
  background: linear-gradient(90deg, rgba(255,106,43,0), var(--plasma), rgba(255,106,43,0));
}
.pull::after { margin: 22px auto 0; }
.human .split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.human .col { padding: 26px 28px; border-radius: 16px; border: 1px solid rgba(242, 238, 255, .12); }
.human .col:first-child { background: rgba(127, 227, 255, .06); }
.human .col:last-child { background: rgba(255, 106, 43, .1); border-color: rgba(255, 106, 43, .4); }
.human h3 { margin: 0 0 14px; font: 800 24px/1 var(--display); letter-spacing: .02em; }
.human ul { margin: 0; padding-left: 20px; line-height: 1.6; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.card { padding: 24px; border-radius: 16px; border: 1px solid rgba(242, 238, 255, .12); background: rgba(27, 20, 64, .3); }
.card-n { display: inline-block; font: 900 40px/1 var(--display); color: var(--plasma); margin-bottom: 10px; }
.card h3 { margin: 0 0 10px; font: 800 23px/1.05 var(--display); letter-spacing: .02em; }
.card p { margin: 0; color: var(--dim); line-height: 1.5; }
.story .tag { margin-bottom: 12px; }
.story footer { margin-top: 14px; font-style: italic; color: var(--dim); font-size: 14px; }

/* industries and faq */
.industries { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.industries li { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(242, 238, 255, .18); font-size: 15px; }
.faqs details { border-bottom: 1px solid rgba(242, 238, 255, .12); padding: 14px 0; }
.faqs summary { cursor: pointer; font: 800 20px/1.2 var(--display); letter-spacing: .02em; list-style: none; position: relative; padding-right: 28px; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; position: absolute; right: 0; top: 0; color: var(--plasma); font-size: 22px; }
.faqs details[open] summary::after { content: "–"; }
.faqs p { margin: 10px 0 0; color: var(--dim); line-height: 1.55; }

/* booking, back on Earth */
.book { padding-bottom: clamp(220px, 32vh, 360px); overflow: hidden; }
.book .wrap { position: relative; z-index: 1; }
.booking {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  max-width: 820px; margin: 36px auto 0;
  border-radius: 18px; overflow: hidden;
  background: rgba(7, 10, 28, .75);
  border: 1px solid rgba(242, 238, 255, .14);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .45);
}
.cal { padding: 20px; border-right: 1px solid rgba(242, 238, 255, .1); }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 17px; }
.cal-nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(242, 238, 255, .2); background: none; color: var(--starlight); font-size: 22px; line-height: 1; cursor: pointer; }
.cal-nav:hover { border-color: var(--plasma); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .dow { text-align: center; font-size: 12px; color: var(--dim); padding: 6px 0; }
.day { aspect-ratio: 1; border-radius: 8px; border: 0; background: none; color: var(--starlight); font: 600 15px/1 var(--serif); cursor: pointer; }
.day:hover:not(:disabled) { background: rgba(255, 214, 122, .18); }
.day:disabled { color: rgba(242, 238, 255, .22); cursor: default; }
.day.is-on { background: var(--plasma); color: var(--void); }
.day.today { box-shadow: inset 0 0 0 1px var(--aurora); }
.slots { padding: 20px; display: grid; gap: 8px; align-content: start; }
.slots-empty { margin: 0; font-style: italic; color: var(--dim); }
.slots h3 { margin: 0 0 6px; font: 800 20px/1.1 var(--display); letter-spacing: .02em; }
.slot { border: 1px solid rgba(242, 238, 255, .2); background: none; color: var(--starlight); border-radius: 10px; padding: 10px; font: 600 15px/1 var(--serif); cursor: pointer; }
.slot:hover { border-color: var(--plasma); }
.slot.is-on { background: var(--plasma); color: var(--void); border-color: var(--plasma); }
.confirm { display: grid; gap: 8px; margin-top: 6px; }
.confirm input { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(242, 238, 255, .2); background: rgba(242, 238, 255, .06); color: var(--starlight); font: 400 15px var(--serif); }
.confirm p { margin: 0; font-size: 14px; color: var(--dim); }
.booked { color: var(--plasma); font-weight: 700; }

.horizon { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(220px, 30vh, 360px); pointer-events: none; overflow: hidden; }
.horizon .earth {
  position: absolute; left: 50%; top: 48%;
  width: 240vw; height: 240vw; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0%, #2C6C8C 0%, #16405E 18%, #0E2A48 40%, #07152C 70%);
  box-shadow: 0 -14px 40px rgba(127, 227, 255, .55), 0 -40px 120px rgba(80, 160, 255, .3);
}
.horizon .sun {
  position: absolute; left: 18%; top: 44%;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; translate: -50% -50%;
  background: radial-gradient(circle, rgba(255, 250, 235, 1) 0%, rgba(255, 214, 122, .8) 5%, rgba(255, 150, 70, .35) 16%, rgba(255, 106, 43, .08) 36%, rgba(255, 106, 43, 0) 60%);
  mix-blend-mode: screen;
}

.foot-region { flex-basis: 100%; font-size: 13px; }
.foot-region a { color: var(--dim); }
.wa { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin: 22px auto 0; max-width: 820px; }
.wa > span { font-style: italic; color: var(--dim); }
.wa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 800 17px/1 var(--display); letter-spacing: .03em;
  color: #0B2A1A; background: #3DDC84; border: 0; border-radius: 999px; padding: 11px 18px; cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.wa-btn:hover { background: #6BE8A3; transform: translateY(-1px); }
.wa-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.wa-note { flex-basis: 100%; margin: 0; text-align: center; font-size: 14px; font-style: italic; color: var(--dim); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; font-size: 13px; line-height: 1.4; color: var(--dim); }
.consent input { margin-top: 2px; accent-color: var(--reentry); }
.pagefoot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 22px clamp(16px, 4vw, 48px);
  background: #07152C; color: var(--dim); font-size: 14px;
}
.foot-mark { font: 800 18px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--starlight); }
.foot-motto { font-style: italic; }
.foot-links a { color: var(--dim); margin-left: 14px; }

/* reveal on scroll */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .wrap.two, .wrap.two.wide-demo { grid-template-columns: 1fr; }
  .doors, .cards, .courses { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .pagebar-nav { display: none; }
  .booking { grid-template-columns: 1fr; }
  .cal { border-right: 0; border-bottom: 1px solid rgba(242, 238, 255, .1); }
  .human .split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .doors, .cards, .courses { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr 1fr; }
  .h-display { font-size: clamp(28px, 9.2vw, 52px); }
  .h-display.small { font-size: clamp(24px, 7.2vw, 40px); }
}

.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 8;
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(14px, 2.2vw, 28px) clamp(16px, 2.6vw, 36px);
}
.mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--starlight);
  text-decoration: none;
}
.intro-toggle {
  font: italic 400 16px/1.2 var(--serif);
  color: var(--dim);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(242, 238, 255, .3);
  padding: 4px 0;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.lang-link {
  font: italic 400 16px/1.2 var(--serif); color: var(--dim); text-decoration: none;
  border-bottom: 1px solid rgba(242, 238, 255, .3); padding: 4px 0; transition: color .2s, border-color .2s;
}
.lang-link:hover { color: var(--starlight); border-color: var(--plasma); }
.lang-link:focus-visible { outline: 2px solid var(--aurora); outline-offset: 4px; border-radius: 2px; }
.topbar-controls { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.topbar-book {
  font: 700 15px/1 var(--display); letter-spacing: .02em; white-space: nowrap;
  color: var(--void); text-decoration: none; border-radius: 999px; padding: 10px 16px;
  background: linear-gradient(180deg, #FFEBB8 0%, var(--plasma) 46%, #F2A33E 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 3px 0 #B5611D, 0 7px 14px rgba(0, 0, 0, .45);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s, opacity .3s;
}
.topbar-book:hover { filter: brightness(1.06); transform: translateY(-1px); }
.topbar-book:active { transform: translateY(2px); box-shadow: inset 0 2px 6px rgba(150, 70, 10, .35), 0 1px 0 #B5611D; }
.topbar-book:focus-visible { outline: 2px solid var(--aurora); outline-offset: 3px; }
.lang-link .short { display: none; }
/* phones: during the intro the bar offers Skip; afterwards it offers Book a call instead of Replay */
@media (max-width: 520px) {
  .topbar-controls { gap: 12px; }
  .lang-link .full { display: none; }
  .lang-link .short { display: inline; font-style: normal; letter-spacing: .06em; }
  html:not(.intro-done) .topbar-book { display: none; }
  .intro-done .intro-toggle { display: none; }
  .mark { font-size: 18px; }
}
@media (max-width: 360px) {
  .topbar-controls { gap: 10px; }
  .mark { font-size: 15px; }
  .topbar-book { font-size: 13px; padding: 8px 11px; }
}
.sound-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font: italic 400 16px/1.2 var(--serif);
  color: var(--dim); background: none; border: 0; padding: 4px 0; cursor: pointer;
  transition: color .2s;
}
.sound-toggle[hidden] { display: none; }
.sound-toggle:hover { color: var(--starlight); }
.sound-toggle[data-state="on"], .sound-toggle[data-state="locked"] { color: var(--plasma); }
.sound-toggle:focus-visible { outline: 2px solid var(--aurora); outline-offset: 4px; border-radius: 2px; }
.sound-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sound-icon .spk { fill: currentColor; stroke: none; }
.sound-icon .wave { display: none; }
.sound-toggle[data-state="on"] .wave { display: inline; }
.sound-toggle[data-state="on"] .mute { display: none; }
.sound-toggle.nudge .sound-icon { animation: sound-nudge 1.8s ease-in-out 2s 3; }
@keyframes sound-nudge { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 6px rgba(255, 210, 122, .95)); } }
@media (max-width: 520px) { .topbar .sound-label { display: none; } }
@media (max-width: 400px) { .topbar-controls { gap: 12px; } .lang-link, .intro-toggle { font-size: 14px; } }
.intro-toggle:hover { color: var(--starlight); border-color: var(--plasma); }
.intro-toggle:focus-visible, .mark:focus-visible { outline: 2px solid var(--aurora); outline-offset: 4px; border-radius: 2px; }

/* Hidden until the intro reveals them (only when JS is running). */
.js .logo .ch, .js .tag-l, .js .tag-r, .js .motto-a, .js .motto-b, .js .portal, .js .mark, .js .veil, .js .word { opacity: 0; }

/* ---------- smaller screens: the destinations become a grid under the motto ---------- */
@media (max-width: 1099px), (max-height: 639px) {
  :root { --cy: 36%; --earth: .14; }
  .portal { top: calc(var(--cy) + min(33vh, 300px)); }
  .portal-label { font-size: 22px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .portal { top: calc(var(--cy) + 38vh); gap: 8px; }
  .portal-ring { width: 46px; height: 46px; }
  .portal-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-ring, .portal-label, .intro-toggle { transition: none; }
  .portal-ring::before { animation: none; }
  .intro-done .logo .ch { animation: none; }
  .sound-toggle.nudge .sound-icon { animation: none; }
  .page { transition: opacity .3s, visibility 0s .3s; transform: none; }
  .page.is-open { transition: opacity .3s; }
}

/* =========================================================================
   Tactile layer: type with a body, buttons with an edge, cards that lean toward you
   ========================================================================= */
.word {
  font-weight: 700; letter-spacing: .02em;
  text-shadow: 0 0 1px rgba(30, 8, 0, .95), var(--x-warm), 0 0 22px rgba(255, 140, 50, .55), 0 0 56px rgba(255, 90, 30, .4);
}
.tagline { font-family: var(--serif); font-size: clamp(16px, 1.55vw, 24px); }
.tag-l, .tag-r { text-shadow: 0 0 3px rgba(7, 10, 28, .9), 0 0 12px rgba(7, 10, 28, .7); }
.motto-a { font-family: var(--serif); font-weight: 400; color: #ECE7FF; text-shadow: 0 2px 24px rgba(7, 10, 28, .9); }
.motto-b { font-family: var(--accent); font-weight: 400; letter-spacing: -.01em; color: #F4F1FF; text-shadow: var(--x-cool), 0 2px 30px rgba(7, 10, 28, .8); }
.portal-label { font-weight: 700; text-shadow: 0 1px 14px rgba(7, 10, 28, .95); }
.portal.charged .portal-label { text-shadow: 0 0 18px rgba(255, 190, 100, .85); }
.mark, .foot-mark, .pagebar-home { font-weight: 700; letter-spacing: .03em; }
.h-display {
  background: none; color: #FFE6B0; -webkit-text-fill-color: currentColor;
  text-shadow: var(--x-warm);
  padding-bottom: .12em;
}
.h-display em { color: #FF9A4D; text-shadow: var(--x-ember); }
.h-chapter { text-shadow: var(--x-cool); padding-bottom: .1em; }
.stats strong { font-weight: 700; color: #FFD58A; text-shadow: var(--x-warm); }
.card-n { font-weight: 700; color: #FFD58A; }
/* small headings stay flat, so the big ones stand out */
.door-t, .demo-title, .card h3, .courses h3, .human h3, .faqs summary, .slots h3 { font-weight: 700; text-shadow: none; }
/* the machine voice: small technical labels */
.chapter-n, .deck-count, .door-n, .demo-tag, .tag, .courses .lvl, .courses .len, .phase small, .card-n {
  font-family: var(--tech); font-style: normal;
}
.chapter-n { font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.door-n { font-size: 13px; letter-spacing: .14em; }
.deck-count { font-size: 14px; letter-spacing: .08em; }
.deck-count b { font-weight: 500; }
.phase small { letter-spacing: .04em; }

/* buttons with a real edge: they sit up off the page and press down */
.pagebar-book, .btn-fill, .btn-small {
  background: linear-gradient(180deg, #FFEBB8 0%, var(--plasma) 46%, #F2A33E 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -2px 0 rgba(150, 70, 10, .22), 0 4px 0 #B5611D, 0 9px 18px rgba(0, 0, 0, .45);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s;
  font-weight: 700;
}
.pagebar-book:hover, .btn-fill:hover, .btn-small:hover:not(:disabled) {
  background: linear-gradient(180deg, #FFEBB8 0%, var(--plasma) 46%, #F2A33E 100%);
  filter: brightness(1.06); transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -2px 0 rgba(150, 70, 10, .22), 0 5px 0 #B5611D, 0 12px 22px rgba(0, 0, 0, .5);
}
.pagebar-book:active, .btn-fill:active, .btn-small:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 2px 6px rgba(150, 70, 10, .35), 0 1px 0 #B5611D, 0 3px 8px rgba(0, 0, 0, .4);
}
.btn-small:disabled { transform: translateY(3px); box-shadow: inset 0 2px 6px rgba(150, 70, 10, .35), 0 1px 0 #B5611D; }
.wa-btn {
  background: linear-gradient(180deg, #7DF0AE 0%, #3DDC84 50%, #26B866 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 4px 0 #17803F, 0 9px 18px rgba(0, 0, 0, .45);
  transition: transform .12s ease, box-shadow .12s ease;
}
.wa-btn:hover { background: linear-gradient(180deg, #8FF5BB 0%, #4BE08D 50%, #2BC06C 100%); }
.wa-btn:active { transform: translateY(3px); box-shadow: inset 0 2px 6px rgba(10, 70, 30, .35), 0 1px 0 #17803F, 0 3px 8px rgba(0, 0, 0, .4); }
.chip, .deck-arrow, .slot, .phase {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 3px 0 rgba(3, 5, 16, .75), 0 6px 12px rgba(0, 0, 0, .3);
  transition: transform .12s ease, box-shadow .12s ease, border-color .2s, background-color .2s, opacity .2s;
}
.chip:active, .deck-arrow:active:not(:disabled), .slot:active, .phase:active { transform: translateY(2px); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .4), 0 1px 0 rgba(3, 5, 16, .75); }
.chip.is-on, .slot.is-on, .phase.is-on { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 0 #B5611D, 0 6px 12px rgba(0, 0, 0, .3); }
.deck-arrow.pulse { animation: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 3px 0 rgba(3, 5, 16, .75), 0 0 0 4px rgba(255, 214, 122, .12), 0 0 18px rgba(255, 170, 80, .3); border-color: var(--plasma); }

/* cards: a slab with an edge, leaning toward the pointer, with light that follows it */
.door, .card, .demo, .courses li {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 5px 0 rgba(3, 5, 16, .7), 0 26px 50px rgba(0, 0, 0, .38);
}
.door, .card {
  background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(255, 236, 200, .09), rgba(255, 236, 200, 0) 60%);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .2s, background-color .2s, box-shadow .3s;
  will-change: transform;
}
.door.leaning, .card.leaning { transition: transform .08s linear, border-color .2s, background-color .2s, box-shadow .3s; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 9px 0 rgba(3, 5, 16, .6), 0 36px 60px rgba(0, 0, 0, .45); }
@media (prefers-reduced-motion: reduce) {
  .door, .card { transition: none; }
  .pagebar-book, .btn-fill, .btn-small, .wa-btn, .chip, .deck-arrow, .slot, .phase { transition: none; }
}
