/* =========================================================
   Mara Duallo — a career map you walk through.

   Two worlds in one file:

   · THE WORLD  — the pixel landscape she walks. Square edges,
                  crisp pixels, arcade face. Nothing here rounds.
   · THE UI     — everything that frames it. Soft radii, warm
                  black, one gold, glow instead of shadow.

   Dark is the luxury face: near-black, ivory type, a single
   gold that runs from pale champagne to deep bronze.
   Light is the same build in ivory and antique gold.

   Every colour is a token. The switch swaps the set on
   <html data-theme> and nothing else in this file changes.
   ========================================================= */

/* ─────────────────────────────────────────────────────────
   1. TOKENS — dark
   ───────────────────────────────────────────────────────── */
:root[data-theme="dark"] {
  --bg:        #0a0a0b;
  --bg-2:      #050506;
  --surface:   #121215;
  --surface-2: #17171b;
  --surface-3: #1d1d22;

  --line:      rgba(212,169,90,.16);
  --line-soft: rgba(212,169,90,.08);
  --line-cool: rgba(245,240,230,.07);

  --text:      #f5f0e6;
  --text-dim:  #cfc8ba;
  --muted:     #938d82;

  /* the one accent, three stops */
  --gold-1:    #efd59a;
  --gold:      #d4a95a;
  --gold-2:    #a2762c;
  --gold-ink:  #100d07;
  --gold-glow: rgba(212,169,90,.22);
  --gold-wash: rgba(212,169,90,.06);

  /* gold as TYPE, not as fill. On black the fill gold already
     reads as text, so these point straight back at it. */
  --gold-type:    #d4a95a;
  --gold-type-hi: #efd59a;

  /* the one non-gold accent: available / growing / alive */
  --go:      #86ad7f;
  --go-soft: rgba(134,173,127,.14);

  /* legacy names kept so the pixel SVGs need no edits */
  --brass:     var(--gold);
  --brass-dim: #8a6726;
  --brass-ink: var(--gold-ink);

  --card:      linear-gradient(168deg, #17171b 0%, #121215 46%, #0d0d10 100%);
  --card-edge: inset 0 1px 0 rgba(245,240,230,.045);
  --lift:      0 28px 60px -34px rgba(0,0,0,.95), 0 2px 10px -6px rgba(0,0,0,.6);
  --lift-gold: 0 18px 44px -22px rgba(212,169,90,.38);

  --sky-a: #09090b;  --sky-b: #0f0f12;  --sky-c: #17161a;
  --cloud:   rgba(245,240,230,.045);
  --cloud-2: rgba(245,240,230,.032);
  --cloud-3: rgba(245,240,230,.022);

  --grass: #211d19;  --grass-2: #191614;
  --dirt:  #100f0e;  --dirt-2:  #1b1815;
  --tree:  #2b2620;
  --roof:  #3a2d1d;
  --house: #221d17;

  --orb:      #e3c179;
  --orb-glow: rgba(212,169,90,.13);

  --sign-bg: linear-gradient(135deg, #efd59a 0%, #d4a95a 46%, #a2762c 100%);
  --sign-ink: #100d07;

  --skin: #e8d9c5;   --skin-2: #d3bda2;
  --hair: #16120d;
  --shirt: #f5f0e6;  --shirt-2: #cfc6b5;
  --trouser: #2a251e;

  --svg-hills: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='150'%3E%3Cpath fill='%23141317' d='M0 150 L0 104 Q54 62 118 100 Q170 128 214 96 Q272 54 320 98 Q352 126 380 112 L380 150 Z'/%3E%3Cpath fill='%231b1a1f' d='M0 150 L0 126 Q70 100 132 124 Q196 150 246 124 Q306 94 380 130 L380 150 Z'/%3E%3C/svg%3E");
  --svg-peak-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='460' height='230'%3E%3Cpath fill='%231d1b20' d='M0 230 L78 96 L126 150 L196 54 L268 148 L330 100 L392 162 L460 230 Z'/%3E%3Cpath fill='%2326232a' d='M196 54 L232 101 L268 148 L330 100 L392 162 L460 230 L268 230 Z'/%3E%3C/svg%3E");
  --svg-peak-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='230'%3E%3Cpath fill='%2318171b' d='M0 230 L52 128 L110 178 L168 110 L232 182 L300 230 Z'/%3E%3C/svg%3E");
}

/* ─────────────────────────────────────────────────────────
   2. TOKENS — light
   ───────────────────────────────────────────────────────── */
:root[data-theme="light"] {
  /* Champagne on ivory. The gold here is a FILL: pale, warm, and
     far too light to set type in, so --gold-type carries a deep
     bronze for every word, rule and icon that sits on the page. */
  --bg:        #faf6ec;
  --bg-2:      #f3ebda;
  --surface:   #fffefb;
  --surface-2: #fdf9f0;
  --surface-3: #f7f0e2;

  --line:      rgba(138,102,31,.22);
  --line-soft: rgba(138,102,31,.11);
  --line-cool: rgba(31,25,17,.08);

  --text:      #1f1911;
  --text-dim:  #433a2c;
  --muted:     #6e6557;

  --gold-1:    #efdbb0;
  --gold:      #d6b473;
  --gold-2:    #ab8440;
  --gold-ink:  #2b2219;
  --gold-type:    #8a661f;
  --gold-type-hi: #6b4e12;

  --go:      #43713e;
  --go-soft: rgba(67,113,62,.12);
  --gold-glow: rgba(171,132,64,.26);
  --gold-wash: rgba(214,180,115,.14);

  --brass:     var(--gold);
  --brass-dim: #bda16c;
  --brass-ink: var(--gold-ink);

  --card:      linear-gradient(168deg, #fffefb 0%, #fefbf4 50%, #faf5e9 100%);
  --card-edge: inset 0 1px 0 rgba(255,255,255,.95);
  --lift:      0 24px 50px -32px rgba(94,70,26,.34), 0 2px 8px -6px rgba(94,70,26,.18);
  --lift-gold: 0 18px 40px -24px rgba(171,132,64,.5);

  --sky-a: #fffdf8;  --sky-b: #fbf4e5;  --sky-c: #f4ead5;
  --cloud:   rgba(255,255,255,.62);
  --cloud-2: rgba(255,255,255,.44);
  --cloud-3: rgba(255,255,255,.3);

  --grass: #e2cda2;  --grass-2: #d6be8e;
  --dirt:  #cdb787;  --dirt-2:  #c0a873;
  --tree:  #bda87a;
  --roof:  #cba977;
  --house: #fbf6ea;

  --orb:      #f0dca9;
  --orb-glow: rgba(214,180,115,.34);

  --sign-bg: linear-gradient(135deg, #efdbb0 0%, #d6b473 46%, #ab8440 100%);
  --sign-ink: #2b2219;

  --skin: #ead9c2;   --skin-2: #d2b998;
  --hair: #3c3220;
  --shirt: #f3ead6;  --shirt-2: #dccfb3;
  --trouser: #4e4433;

  --svg-hills: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='150'%3E%3Cpath fill='%23e0d0ab' d='M0 150 L0 104 Q54 62 118 100 Q170 128 214 96 Q272 54 320 98 Q352 126 380 112 L380 150 Z'/%3E%3Cpath fill='%23e9dcbc' d='M0 150 L0 126 Q70 100 132 124 Q196 150 246 124 Q306 94 380 130 L380 150 Z'/%3E%3C/svg%3E");
  --svg-peak-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='460' height='230'%3E%3Cpath fill='%23ebdfc3' d='M0 230 L78 96 L126 150 L196 54 L268 148 L330 100 L392 162 L460 230 Z'/%3E%3Cpath fill='%23e3d5b4' d='M196 54 L232 101 L268 148 L330 100 L392 162 L460 230 L268 230 Z'/%3E%3C/svg%3E");
  --svg-peak-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='230'%3E%3Cpath fill='%23f2e8d2' d='M0 230 L52 128 L110 178 L168 110 L232 182 L300 230 Z'/%3E%3C/svg%3E");
}

/* ─────────────────────────────────────────────────────────
   3. SHARED
   ───────────────────────────────────────────────────────── */
:root {
  --ground-h: 150px;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-pixel: "Press Start 2P", monospace;

  --r-lg: 20px;
  --r:    14px;
  --r-sm: 10px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --t:    .6s var(--ease);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Lenis drives the scroll; it needs the native smoothing off */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.7 var(--font-text);
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}

/* a warm vignette under everything below the world, so the
   black reads as depth and not as an empty box */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120vw 70vh at 50% -10%, var(--gold-wash), transparent 62%),
    radial-gradient(90vw 60vh at 85% 108%, var(--gold-wash), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

/* a whisper of grain. It dithers the near-black gradients so they
   stop banding, and it gives the whole surface a little tooth. */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="light"] body::after { opacity: .035; }

::selection { background: var(--gold); color: var(--gold-ink); }

:where(a, button, [tabindex]):focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── the arcade face, kept to the game world only ──
   Signposts, the route bar, the coin count, the walk hint.
   Everything else speaks in wide-tracked caps, which carries
   the same "system readout" feeling without the noise. */
.hud__coins, .swap i, .sign__board, .dialog__tab,
.route__labels span, .walkhint, .skipwalk,
.approach li::before, .steps li::before {
  font-family: var(--font-pixel);
}

/* the refined micro-caps that replaced the pixel font */
.eyebrow, .panel__title, .modal__h, .branch__name, .limb__name,
.profile__h, .opento__h, .outro__cta-line, .btn,
.dialog__teaser span, .stop__teaser span,
.dialog__go, .stop__open, .stacked__eyebrow {
  font-family: var(--font-text);
  font-weight: 500;
  text-transform: uppercase;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: .34em;
  color: var(--gold-type);
  margin: 0 0 22px;
}

/* the hairline that sits under a gold label */
.rule {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-type), transparent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.1s var(--ease) var(--d, 0ms);
}
.rv-in .rule, .rule.rv-in { transform: scaleX(1); }

/* ─────────────────────────────────────────────────────────
   4. MOTION — reveal primitives
   ───────────────────────────────────────────────────────── */
/* Opacity and transform only. An animated filter: blur() looked nice
   on one heading and shredded the frame rate across forty-seven of
   them, because every frame re-rasterises the element at full size.
   These two properties run on the compositor and cost nothing. */
[data-rv] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity .85s var(--ease) var(--d, 0ms),
    transform .95s var(--ease) var(--d, 0ms);
}
[data-rv="fade"]   { transform: none; }
[data-rv="left"]   { transform: translate3d(-30px, 0, 0); }
[data-rv="right"]  { transform: translate3d(30px, 0, 0); }
[data-rv="scale"]  { transform: scale(.982); }
/* Promoted only for the ~1.5s it is actually moving. Promoting all
   of them up front put sixty-odd permanent layers on the page, which
   is the other half of the stutter. .rv-live is added by the observer
   as each one crosses, and taken off once it lands. */
.rv-live { will-change: opacity, transform; }
.rv-words.rv-live .rv-word > i { will-change: transform; }
[data-rv].rv-in {
  opacity: 1;
  transform: none;
}

/* word-by-word rise for the display headings */
.rv-line { display: block; }
.rv-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}
.rv-word > i {
  display: inline-block;
  font-style: inherit;
  transform: translate3d(0, 110%, 0);
  transition: transform 1s var(--ease) var(--d, 0ms);
}
.rv-words.rv-in .rv-word > i { transform: none; }

/* ─────────────────────────────────────────────────────────
   5. BUTTONS
   ───────────────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-block;
  font-size: 10px;
  letter-spacing: .26em;
  text-decoration: none;
  color: var(--text);
  background: var(--surface-2);
  padding: 16px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .4s var(--ease), color .4s var(--ease),
              background .4s var(--ease), box-shadow .4s var(--ease),
              transform .4s var(--ease);
}
.btn:hover {
  border-color: var(--gold);
  color: var(--gold-type-hi);
  box-shadow: 0 0 0 1px var(--gold-wash), var(--lift-gold);
  transform: translateY(-2px);
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold) 46%, var(--gold-2) 100%);
  border-color: transparent;
  color: var(--gold-ink);
  font-weight: 600;
  box-shadow: var(--lift-gold);
}
.btn--primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,.55) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 1.1s var(--ease);
}
.btn--primary:hover {
  color: var(--gold-ink);
  transform: translateY(-2px);
  box-shadow: 0 22px 48px -18px var(--gold-glow);
}
.btn--primary:hover::after { transform: translateX(130%); }
.btn--sm { font-size: 9px; padding: 12px 18px; letter-spacing: .22em; }

/* ─────────────────────────────────────────────────────────
   6. HUD
   ───────────────────────────────────────────────────────── */
.hud {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 44px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  /* the bar repaints on every scroll frame, so keep the blur cheap */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
/* the read-progress hairline */
.hud::after {
  content: "";
  position: absolute; left: 0; bottom: -1px;
  height: 1px; width: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold-2), var(--gold), var(--gold-1));
}
/* the walking character, cropped to a bust, in a little frame.
   Same sprite and the same colour tokens as the player in the world,
   so a theme switch repaints both. */
.hud__brand { display: flex; align-items: center; gap: 11px; }
.hud__face {
  flex: none;
  width: 36px; height: 36px;
  padding: 3px 3px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 20%, transparent);
  overflow: hidden;
}
.hud__face svg { display: block; width: 100%; height: 100%; }

.hud__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .1em;
  background: linear-gradient(100deg, var(--text) 10%, var(--gold-type-hi) 54%, var(--text) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hud__stats { display: flex; align-items: center; gap: 12px; }
.hud__coins {
  font-size: 9px; letter-spacing: .12em; color: var(--gold-type);
  display: inline-flex; align-items: center; gap: 8px;
}
.coin {
  width: 7px; height: 7px; display: inline-block;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--gold-glow);
}

/* the light / dark switch */
.swap {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  padding: 2px;
  cursor: pointer;
  overflow: hidden;
}
.swap i {
  display: grid; place-items: center;
  width: 46px; height: 26px;
  border-radius: 999px;
  font-size: 7px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
  transition: background .45s var(--ease), color .45s var(--ease);
}
:root[data-theme="dark"]  .swap i[data-for="dark"],
:root[data-theme="light"] .swap i[data-for="light"] {
  background: linear-gradient(135deg, var(--gold-1), var(--gold) 50%, var(--gold-2));
  color: var(--gold-ink);
  box-shadow: 0 2px 10px -2px var(--gold-glow);
}

/* =========================================================
   7. THE WORLD — square edges, crisp pixels
   ========================================================= */
.world { position: relative; background: var(--sky-c); }
.world__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }

.sky {
  position: absolute; inset: 0;
  background-image:
    var(--svg-hills),
    var(--svg-peak-a),
    var(--svg-peak-b),
    radial-gradient(58px 22px at 60px 26px, var(--cloud) 99%, transparent 100%),
    radial-gradient(40px 15px at 46px 20px, var(--cloud-2) 99%, transparent 100%),
    radial-gradient(74px 26px at 80px 30px, var(--cloud-3) 99%, transparent 100%),
    linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 58%, var(--sky-c) 100%);
  background-size:
    380px 150px, 460px 230px, 300px 230px,
    520px 60px, 380px 46px, 700px 70px,
    100% 100%;
  background-position:
    0 calc(100% - var(--ground-h)),
    0 calc(100% - var(--ground-h)),
    160px calc(100% - var(--ground-h)),
    0 80px, 320px 148px, 620px 196px,
    0 0;
  background-repeat:
    repeat-x, repeat-x, repeat-x,
    repeat-x, repeat-x, repeat-x,
    no-repeat;
  transition: background-color .5s var(--ease);
}
/* gold haze on the horizon — the thing that makes the black warm */
.world__stage::before {
  content: "";
  position: absolute; left: 0; right: 0;
  bottom: var(--ground-h);
  height: 46vh;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(70% 100% at 76% 100%, var(--gold-glow), transparent 68%);
  opacity: .8;
}
/* a gold disc with a long soft bloom — the one light source */
.sun {
  position: absolute; top: 11%; right: 9%;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: radial-gradient(circle at 36% 32%, var(--gold-1), var(--orb) 46%, var(--gold-2) 100%);
  box-shadow: 0 0 60px 6px var(--gold-glow);
}
.sun::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 460px; height: 460px;
  transform: translate(-50%, -54%);
  border-radius: 999px;
  background: radial-gradient(circle, var(--orb-glow) 0%, transparent 62%);
  pointer-events: none;
}

/* ── ground ── */
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: var(--ground-h); z-index: 2; }
.ground__grass {
  height: 22px;
  background-image: repeating-linear-gradient(90deg,
    var(--grass) 0 13px, var(--grass-2) 13px 26px);
  border-top: 1px solid var(--brass-dim);
  box-shadow: 0 -1px 24px -6px var(--gold-glow);
}
.ground__dirt {
  height: calc(var(--ground-h) - 22px);
  background-color: var(--dirt);
  background-image: radial-gradient(circle, var(--dirt-2) 2px, transparent 2px);
  background-size: 26px 26px;
}

/* ── scenery that travels 1:1 with the walk ── */
.props, .signs {
  position: absolute; left: 0; bottom: var(--ground-h);
  width: 100%; height: 0;
  will-change: transform;
}
.props { z-index: 1; }
.signs { z-index: 3; }

.prop { position: absolute; bottom: 0; }
.prop--tree { width: 34px; }
.prop--tree::before {
  content: ""; display: block; height: 48px; width: 34px;
  background: var(--tree);
  clip-path: polygon(50% 0,100% 52%,76% 52%,100% 100%,0 100%,24% 52%,0 52%);
}
.prop--tree::after {
  content: ""; display: block; height: 11px; width: 7px; margin: 0 auto;
  background: var(--tree);
}
.prop--bush {
  width: 48px; height: 18px;
  background: var(--tree);
  border-radius: 24px 24px 0 0;
}
.prop--house { width: 64px; }
.prop--house::before {
  content: ""; display: block; height: 26px;
  background: var(--roof);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.prop--house::after {
  content: ""; display: block; height: 36px;
  background: var(--house);
  box-shadow: inset 0 0 0 1px var(--brass-dim);
}
.prop--coin {
  width: 9px; height: 9px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--gold-glow);
  animation: coinbob 2.6s var(--ease) infinite alternate;
}
@keyframes coinbob { to { transform: rotate(45deg) translateY(-7px); } }

/* ── signposts ── */
.sign {
  position: absolute; bottom: 0;
  transform: translateX(40px);
  display: flex; flex-direction: column; align-items: center;
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit;
}
.sign__board {
  font-size: 8px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sign-ink);
  background: var(--sign-bg);
  padding: 12px 16px;
  white-space: nowrap;
  box-shadow: 0 10px 26px -14px rgba(0,0,0,.9);
  transition: transform .45s var(--ease), letter-spacing .45s var(--ease),
              box-shadow .45s var(--ease);
}
.sign__post {
  width: 3px; height: 158px;
  background: linear-gradient(180deg, var(--brass-dim), transparent 92%);
}
.sign:hover .sign__board,
.sign.is-active .sign__board {
  transform: translateY(-8px);
  letter-spacing: .22em;
  box-shadow: 0 16px 34px -14px var(--gold-glow);
}
.sign.is-read .sign__board::after { content: " ◆"; }

/* ── the player ── */
.player {
  position: absolute; bottom: calc(var(--ground-h) - 2px);
  width: 60px; height: 86px;
  z-index: 4;
  will-change: transform;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.55));
}
.player svg { width: 100%; height: 100%; display: block; }
.player .leg-b, .player .arm-b { display: none; }
.player.is-step .leg-a, .player.is-step .arm-a { display: none; }
.player.is-step .leg-b, .player.is-step .arm-b { display: block; }

/* ── title screen ── */
.intro {
  position: absolute; left: 50%; top: 50%;
  /* a true centre. The old -58% nudge pushed a tall block off the
     top of the viewport and clipped the availability badge. */
  transform: translate(-50%, -54%);
  /* wide enough for the name to run edge to edge; the lines under it
     keep their own narrower measures so the hierarchy still reads */
  width: min(1560px, 94vw);
  text-align: center;
  z-index: 5;
  pointer-events: none;
}
.intro__title {
  font-family: var(--font-display);
  font-weight: 300;
  /* one line, always, spanning the viewport. It scales with the width
     rather than wrapping, so it stays the loudest thing on the page. */
  /* Big, but it has to share the screen. Sized against the viewport
     HEIGHT as well as its width: on a wide, short window a name that
     spans the full width is taller than everything else put together,
     which is what was pushing the badge off the top. */
  font-size: clamp(40px, min(14vw, 24vh), 230px);
  line-height: .98;
  letter-spacing: -.01em;
  margin: 0 0 26px;
  display: block;
  white-space: nowrap;
  background: linear-gradient(174deg, var(--text) 4%, var(--gold-type-hi) 52%, var(--gold-2) 118%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.intro__role {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1.4;
  letter-spacing: .005em;
  color: var(--text-dim);
  margin: 0 auto 20px;
  /* two lines on purpose: the break gives the hero a shape, and the
     shorter second line sits better over the italic line below it. */
  max-width: 20em;
}
/* Italic, so it reads as an aside to the serif line above rather than
   a second block of the same grey. Inter's real italic is requested in
   index.html; without it the browser would fake the slant. */
.speech {
  /* 640px of text at this size, so 760 keeps it on ONE line on any
     desktop. It is a percentage below that, so phones still wrap it
     instead of running it off the side. */
  max-width: min(760px, 92%);
  margin: 0 auto;
  color: var(--muted);
  font-size: 15.5px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: .004em;
}
.speech p { margin: 0 0 18px; }
.speech p:last-child { margin: 0; }

/* ── the signpost dialog ── */
.dialog {
  position: absolute;
  left: 58%; bottom: 34px;
  transform: translateX(-50%);
  width: min(620px, 78vw);
  z-index: 6;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--card-edge), var(--lift);
  animation: dlgIn .5s var(--ease);
}
.dialog[hidden] { display: none; }
@keyframes dlgIn {
  from { transform: translate(-50%, 16px); opacity: 0; }
}
.dialog__tab {
  position: absolute; top: -1px; left: 16px;
  transform: translateY(-100%);
  font-size: 8px;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-1), var(--gold) 50%, var(--gold-2));
  color: var(--gold-ink);
  padding: 10px 16px;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  max-width: 86%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  box-shadow: 0 -6px 22px -10px var(--gold-glow);
}
.dialog__body { padding: 24px 26px 20px; }
.dialog__role {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--text);
}
.dialog__meta { margin: 0 0 16px; font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.dialog__lesson {
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid var(--gold);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-dim);
}
.dialog__go {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%;
  padding: 16px 26px;
  border: 0;
  border-radius: 0 0 var(--r) var(--r);
  background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold) 46%, var(--gold-2) 100%);
  color: var(--gold-ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .4s var(--ease), box-shadow .4s var(--ease);
}
.dialog__go:hover { filter: brightness(1.08); box-shadow: 0 -8px 30px -12px var(--gold-glow); }
.dialog__go .arrow { transition: transform .45s var(--ease); }
.dialog__go:hover .arrow { transform: translateX(7px); }

/* ── route bar ── */
.route {
  position: absolute; top: 84px; left: 50%;
  transform: translateX(-50%);
  width: min(880px, 86vw);
  z-index: 7;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.route.is-on { opacity: 1; }
.route__track { position: relative; height: 1px; background: var(--line); }
.route__fill {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold-2), var(--gold-1));
  box-shadow: 0 0 12px var(--gold-glow);
}
.route__pin {
  position: absolute; top: 50%; left: 0;
  width: 7px; height: 7px;
  margin-left: -3.5px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--gold-1);
  box-shadow: 0 0 14px var(--gold-glow);
}
.route__labels { display: flex; margin-top: 13px; }
.route__labels span {
  flex: 1 1 0;
  text-align: center;
  font-size: 7px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0 2px;
  transition: color .45s var(--ease);
}
.route__labels span.is-on { color: var(--gold-type-hi); }

.walkhint {
  /* the element is gone from the hero: the button says it now. Kept
     only so the mouse glyph below still has a home if it comes back. */
  margin: 22px 0 0;
  justify-content: center;
  font-size: 8px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  animation: bob 2.4s var(--ease) infinite alternate;
  transition: opacity .5s var(--ease);
}
@keyframes bob { to { transform: translateY(5px); } }
.walkhint.is-off { opacity: 0; }

.skipwalk {
  position: absolute; left: 22px; bottom: 22px;
  z-index: 7;
  font-size: 8px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  /* no backdrop-filter: it sits over the moving world and would
     re-sample the blur on every frame of the walk */
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.skipwalk:hover { color: var(--gold-type-hi); border-color: var(--gold); }

/* =========================================================
   8. MOBILE fallback — the same stops, stacked
   ========================================================= */
.stacked { display: none; padding: 0 clamp(16px, 5vw, 32px) 80px; }
.stacked__head { text-align: center; padding: 64px 0 36px; }
.stacked__title {
  font-family: var(--font-display);
  font-weight: 300; font-size: 38px; line-height: 1.1; margin: 0 0 16px;
}
.stacked__sub { margin: 0; color: var(--muted); font-size: 14.5px; font-weight: 300; }
.stacked__list { display: grid; gap: 22px; }

.stop {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--card-edge), var(--lift);
  padding: 0;
  overflow: hidden;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.stop:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--card-edge), var(--lift-gold); }
.stop__screen { padding: 26px 24px 22px; }
.stop__company {
  font-family: var(--font-display);
  font-weight: 400; font-size: 29px; line-height: 1.12; margin: 0 0 8px;
}
.stop__role { margin: 0 0 4px; font-size: 14px; font-weight: 500; color: var(--text); }
.stop__meta { margin: 0 0 18px; font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.stop__lesson {
  margin: 0; padding-left: 14px;
  border-left: 1px solid var(--gold);
  font-family: var(--font-display); font-size: 19px; line-height: 1.5;
  color: var(--text-dim);
}
.stop__open {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold) 46%, var(--gold-2) 100%);
  color: var(--gold-ink);
  font-size: 10px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
}
.stop.is-read .stop__open::after { content: " ◆"; }

/* ───── result teaser, shown BEFORE a card is opened ───── */
.dialog__teaser, .stop__teaser {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
}
.dialog__teaser[hidden], .stop__teaser[hidden] { display: none; }
.dialog__teaser span, .stop__teaser span {
  flex: 0 0 auto;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .22em;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: var(--gold-ink);
}
.dialog__teaser em, .stop__teaser em { font-style: normal; font-weight: 500; }

/* =========================================================
   9. PANELS — profile, skill tree, what I'm open to
   ========================================================= */
.panelwrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(60px, 9vw, 120px) clamp(16px, 5vw, 48px);
}
.panel {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--card-edge), var(--lift);
  overflow: hidden;
}
/* a one-pixel gold seam along the top edge */
.panel::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-type), transparent);
  opacity: .5;
}
.panel__bar {
  display: flex; align-items: center; gap: 18px;
  padding: 20px clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line-soft);
}
.panel__dots {
  flex: 0 0 auto;
  width: 44px; height: 1px;
  background: linear-gradient(90deg, var(--gold-type), transparent);
}
.panel__title {
  font-size: 10px;
  letter-spacing: .34em;
  color: var(--gold-type);
  margin: 0;
}

/* ── player profile ── */
.profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(28px, 4vw, 52px);
  padding: clamp(28px, 4vw, 48px);
}
.profile__card {
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--surface-2);
  padding: 22px;
  text-align: center;
  align-self: start;
  box-shadow: var(--card-edge);
}
.profile__portrait {
  background: linear-gradient(180deg, var(--sky-a), var(--sky-c));
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  padding: 18px 0 0;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}
.profile__portrait::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 60%;
  background: radial-gradient(60% 100% at 50% 100%, var(--gold-glow), transparent 70%);
  pointer-events: none;
}
.profile__portrait svg { width: 104px; height: 150px; display: block; margin: 0 auto; position: relative; z-index: 1; }
.profile__name {
  font-family: var(--font-display);
  font-weight: 400; font-size: 27px; margin: 0 0 7px;
}
.profile__class {
  font-size: 11px; color: var(--gold-type); margin: 0 0 20px;
  letter-spacing: .1em;
}
.profile__tags {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 7px; justify-content: center;
}
.profile__tags li {
  font-size: 11px; letter-spacing: .07em;
  color: var(--muted);
  padding: 7px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.profile__tags li:hover { color: var(--gold-type-hi); border-color: var(--gold); }
.profile__text > p { margin: 0 0 20px; color: var(--muted); font-weight: 300; font-size: 16.5px; }
.profile__h, .opento__h {
  font-size: 10px;
  letter-spacing: .34em;
  color: var(--gold-type);
  margin: 38px 0 22px;
}
.approach { list-style: none; counter-reset: a; padding: 0; margin: 0; display: grid; gap: 1px; }
.approach li {
  counter-increment: a;
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  transition: color .4s var(--ease), padding-left .4s var(--ease);
}
.approach li:hover { color: var(--text-dim); }
.approach li::before {
  content: counter(a, decimal-leading-zero);
  flex: 0 0 auto;
  font-size: 8px;
  color: var(--gold-type);
  letter-spacing: .1em;
}
.approach span { color: var(--text); margin-right: .35em; font-weight: 500; }

/* ── skill tree ── */
.tree {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.5vw, 34px);
  padding: clamp(28px, 4vw, 48px);
}
.branch__name {
  display: flex; align-items: center;
  min-height: 46px;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .26em;
  color: var(--gold-type);
  border-bottom: 1px solid var(--line);
  padding: 0 0 16px;
  margin: 0 0 22px;
}
/* ── the limbs and the leaves ──
   A trunk runs down each branch. Every limb hangs off it with a
   gold elbow, and every leaf hangs off the limb the same way, so
   the hierarchy is drawn rather than indented. */
.limb { position: relative; padding: 0 0 22px 16px; }
.limb::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--line-soft) 100%);
}
.limb:last-child { padding-bottom: 0; }
.limb:last-child::before { bottom: auto; height: 22px; }

.limb__name {
  position: relative;
  font-size: 8px;
  letter-spacing: .28em;
  color: var(--gold-type);
  margin: 0 0 13px;
}
.limb__name::before {
  content: "";
  position: absolute; left: -19px; top: 50%;
  width: 6px; height: 6px;
  margin-top: -3px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--gold-glow);
}

.leaves { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.leaves li {
  position: relative;
  padding-left: 15px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  transition: color .35s var(--ease), transform .35s var(--ease);
}
.leaves li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 9px; height: 1px;
  background: var(--gold);
  opacity: .6;
  transition: width .35s var(--ease), opacity .35s var(--ease);
}
.leaves li:hover { color: var(--text-dim); transform: translateX(3px); }
.leaves li:hover::before { width: 13px; opacity: 1; }

/* ── what I'm open to ── */
.opento__lead {
  margin: 0;
  padding: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.75;
}
.opento__h { padding: 0 clamp(28px, 4vw, 48px); }
.opento__grid {
  list-style: none;
  padding: 0 clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px);
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
}
.opento__grid li {
  padding: 18px 0 18px 20px;
  border-left: 1px solid var(--gold);
  color: var(--text);
  font-size: 15.5px;
  transition: padding-left .4s var(--ease), color .4s var(--ease);
}
.opento__grid li:hover { padding-left: 26px; color: var(--gold-type-hi); }

/* =========================================================
   10. FINAL BOSS / OUTRO
   ========================================================= */
.boss, .outro {
  position: relative;
  max-width: 780px; margin: 0 auto;
  padding: clamp(96px, 14vw, 180px) clamp(16px, 5vw, 48px);
  text-align: center;
}
.boss__title, .outro__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 5.4vw, 58px);
  line-height: 1.12;
  letter-spacing: .005em;
  margin: 0 0 44px;
  background: linear-gradient(170deg, var(--text) 10%, var(--gold-type-hi) 108%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.boss__list { list-style: none; padding: 0; margin: 0 0 44px; display: grid; gap: 1px; text-align: left; }
.boss__list li {
  border-top: 1px solid var(--line-soft);
  padding: 22px 0;
  color: var(--muted);
  font-weight: 300;
  font-size: 16.5px;
  /* colour only. Animating padding on hover re-runs layout, and these
     rows slide under a stationary cursor on the way past. */
  transition: color .4s var(--ease);
}
.boss__list li:hover { color: var(--text-dim); }
.boss__close, .outro p { color: var(--muted); font-weight: 300; font-size: 16.5px; }
.outro__cta-line {
  font-size: 11px;
  letter-spacing: .34em;
  color: var(--gold-type) !important;
  line-height: 1.9;
  margin: 38px 0;
}

/* =========================================================
   11. MODAL
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: clamp(12px, 4vw, 48px); }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--bg-2) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fade .4s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
.modal__panel {
  position: relative;
  width: min(780px, 100%);
  max-height: 88svh;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--card-edge), 0 40px 100px -40px rgba(0,0,0,.95), var(--lift-gold);
  overflow: hidden;
  animation: pop .5s var(--ease);
}
@keyframes pop { from { transform: translateY(18px) scale(.985); opacity: 0; filter: blur(8px); } }
.modal__scroll { max-height: 88svh; overflow-y: auto; padding: clamp(32px, 4vw, 56px); scrollbar-width: thin; }
.modal__scroll::-webkit-scrollbar { width: 6px; }
.modal__scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2); color: var(--gold-type);
  font-size: 18px; line-height: 1; cursor: pointer; z-index: 2;
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.modal__close:hover {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: var(--gold-ink);
  transform: rotate(90deg);
}
.modal__head { border-bottom: 1px solid var(--line-soft); padding-bottom: 28px; margin-bottom: 38px; }
.modal__company {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.08;
  margin: 0 0 14px;
  padding-right: 48px;
  background: linear-gradient(168deg, var(--text) 16%, var(--gold-type-hi) 112%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.modal__role { margin: 0 0 4px; color: var(--text); font-size: 14.5px; font-weight: 500; letter-spacing: .02em; }
.modal__meta { margin: 0 0 20px; font-size: 12px; letter-spacing: .07em; color: var(--muted); }
.modal__lesson {
  margin: 0; padding-left: 18px;
  border-left: 1px solid var(--gold);
  font-family: var(--font-display);
  font-size: 21px; line-height: 1.5;
  color: var(--text-dim);
}
.modal__h {
  font-size: 10px;
  letter-spacing: .34em;
  color: var(--gold-type);
  margin: 0 0 26px;
}
.modal__journey, .modal__result, .modal__learned { margin-bottom: 44px; }
.modal__result[hidden] { display: none; }
.modal__result .result__body {
  border-left: 1px solid var(--gold);
  padding: 4px 0 4px 20px;
  color: var(--muted);
  font-weight: 300;
}
.modal__result .result__body p { margin: 0 0 14px; }
.modal__result .result__body p:last-child { margin: 0; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 32px 48px;
  border-left: 1px solid var(--line-soft);
  margin-left: 10px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: -12px; top: 0;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--line-soft);
  color: var(--gold-type);
  font-size: 7px;
  letter-spacing: .04em;
}
.steps h5 { margin: 2px 0 10px; font-size: 17px; font-weight: 500; color: var(--text); }
.steps p { margin: 0 0 12px; color: var(--muted); font-weight: 300; }
.steps p:last-child { margin: 0; }
.modal__learned ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; }
.modal__learned li {
  padding: 18px 0 18px 20px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-weight: 300;
  transition: border-color .4s var(--ease), color .4s var(--ease);
}
.modal__learned li:hover { border-color: var(--gold); color: var(--text-dim); }

body.modal-open { overflow: hidden; }

/* =========================================================
   12. Small screens — drop the walk, stack the stops
   ========================================================= */
@media (max-width: 900px) {
  .world { background: none; }
  .world__stage {
    position: static; height: auto; min-height: 100svh;
    padding: 130px 0 calc(var(--ground-h) + 40px);
    display: grid; align-items: center;
  }
  .props, .signs, .player, .dialog, .route, .walkhint, .skipwalk { display: none !important; }
  .intro {
    position: static; transform: none; width: auto;
    margin: 0 auto; padding: 0 clamp(16px, 5vw, 32px);
    opacity: 1 !important;
  }
  .sun { top: 104px; right: 7%; width: 40px; height: 40px; }
  .hud { padding: 11px 14px; gap: 10px; }
  /* the walking character, cropped to a bust, in a little frame.
   Same sprite and the same colour tokens as the player in the world,
   so a theme switch repaints both. */
.hud__brand { display: flex; align-items: center; gap: 11px; }
.hud__face {
  flex: none;
  width: 36px; height: 36px;
  padding: 3px 3px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 20%, transparent);
  overflow: hidden;
}
.hud__face svg { display: block; width: 100%; height: 100%; }

.hud__name { font-size: 17px; white-space: nowrap; letter-spacing: .06em; }
  .hud__stats { gap: 8px; }
  .swap i { width: 38px; height: 24px; font-size: 6px; letter-spacing: .1em; }
  .btn--sm { font-size: 8px; padding: 10px 13px; letter-spacing: .18em; }
  .profile { grid-template-columns: 1fr; }
  .profile__card { max-width: 330px; margin: 0 auto; }
  .tree { grid-template-columns: repeat(2, 1fr); }
  .stacked { display: block; }
}
@media (max-width: 560px) {
  :root { --ground-h: 96px; }
  .tree { grid-template-columns: 1fr; }
  .hud__coins { display: none; }
  .world__stage { padding-top: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; }
  [data-rv], .rv-word > i, .rule {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}

/* =========================================================
   13. Native chrome — scrollbars follow the theme
   ========================================================= */
:root[data-theme="dark"]  { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

.modal__scroll { scrollbar-color: var(--gold-2) transparent; }
.modal__scroll::-webkit-scrollbar { width: 8px; }
.modal__scroll::-webkit-scrollbar-track { background: transparent; }
.modal__scroll::-webkit-scrollbar-thumb {
  background: var(--line);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}
.modal__scroll::-webkit-scrollbar-thumb:hover { background: var(--gold-2); background-clip: padding-box; }

/* =========================================================
   14. THE GO SIGNAL
   One green, used only where something is alive: availability
   on the availability badge in the hero.
   ========================================================= */
.eyebrow--go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  /* a long sentence in caps: ease the tracking so it holds one line */
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--go);
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--go-soft);
  border-radius: 999px;
  background: var(--go-soft);
}
.go-dot {
  position: relative;
  flex: 0 0 auto;
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--go);
}
.go-dot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 999px;
  background: var(--go);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0%   { transform: scale(1);   opacity: .7; }
  70%  { transform: scale(3.2); opacity: 0; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* =========================================================
   15. THE SCROLL AFFORDANCE
   Three signals, because one was not landing: the pointer
   becomes a mouse with a down arrow over the map, the hint
   shows the wheel gesture, and app.js walks her a few steps
   on its own if you have not scrolled after a moment.
   ========================================================= */
.world__stage {
  cursor:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='36'%3E%3Crect x='7.5' y='1.5' width='13' height='20' rx='6.5' fill='rgba(0,0,0,.5)' stroke='%23fff' stroke-width='1.6'/%3E%3Crect x='13' y='6' width='2' height='5' rx='1' fill='%23fff'/%3E%3Cpath d='M10 27 L14 32 L18 27' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 14 11,
    ns-resize;
}
.world__stage .sign,
.world__stage .dialog,
.world__stage .skipwalk { cursor: pointer; }

.walkhint__mouse {
  position: relative;
  flex: 0 0 auto;
  width: 15px; height: 23px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: .85;
}
.walkhint__mouse i {
  position: absolute;
  left: 50%; top: 4px;
  width: 2px; height: 5px;
  margin-left: -1px;
  border-radius: 999px;
  background: var(--gold-type);
  animation: wheel 1.9s var(--ease) infinite;
}
@keyframes wheel {
  0%   { transform: translateY(0);   opacity: 0; }
  28%  { opacity: 1; }
  70%  { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(8px); opacity: 0; }
}
.walkhint__text { white-space: nowrap; }
/* while the page is demonstrating the walk, the hint stays put */
.walkhint.is-demo { opacity: 1 !important; }

/* =========================================================
   17. Result lists inside the journey card
   ========================================================= */
.result__list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 1px;
}
.result__list[hidden] { display: none; }
.result__list li {
  position: relative;
  padding: 14px 0 14px 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-weight: 300;
}
.result__list li:first-child { border-top: 0; }
.result__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 1.35em;
  width: 5px; height: 5px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  transform: rotate(45deg);
}
.result__body[hidden] { display: none; }
.result__note {
  margin: 18px 0 0;
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
  color: var(--muted);
  opacity: .85;
}
.result__note[hidden] { display: none; }

/* the opening line of the profile, set a size up */
.profile__lead {
  font-family: var(--font-display);
  font-size: 26px !important;
  line-height: 1.4;
  color: var(--text) !important;
  margin: 0 0 22px !important;
}

/* =========================================================
   18. Small screens — the new sections
   ========================================================= */
@media (max-width: 900px) {
  .intro__title { white-space: normal; font-size: clamp(38px, 11vw, 64px); }
  .intro__role { font-size: clamp(19px, 5vw, 24px); }
}
@media (max-width: 560px) {
  .eyebrow--go { font-size: 9px; letter-spacing: .18em; text-align: left; }
}

/* =========================================================
   19. HERO ACTIONS
   The reference site never asks you to work the scroll out:
   it hands you a button. So does this one. The hint below
   them is now a footnote, not the only way in.
   ========================================================= */
.intro__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 0;
  /* .intro itself ignores the pointer so the walk stays scrollable */
  pointer-events: auto;
}
.intro__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.intro__actions .arrow { transition: transform .45s var(--ease); }
.intro__actions .btn:hover .arrow { transform: translateX(5px); }

.walkhint { pointer-events: none; }
.walkhint__text { color: var(--muted); }

@media (max-width: 560px) {
  .intro__actions { gap: 10px; }
  .intro__actions .btn { font-size: 9px; padding: 14px 20px; }
}

/* the mouse glyph now lives inside the primary button */
.intro__actions .walkhint__mouse {
  width: 13px; height: 20px;
  border-color: currentColor;
  opacity: .75;
}
.intro__actions .walkhint__mouse i { background: currentColor; top: 3px; }
