/* =========================================================
   Knock on Wood Studios
   Palette derived from the carved-wood crest:
   deep bark ground, parchment text, moss-green + brass accents.
   ========================================================= */

:root {
  --ground:    #14110B;   /* deep warm bark, near-black */
  --ground-2:  #1E1810;   /* raised bark / surface */
  --ground-3:  #2A2114;   /* card / inset */
  --text:      #ECE1C8;   /* warm parchment */
  --text-dim:  #B6A988;   /* faded parchment */
  --text-faint:#7C6F55;   /* low-contrast labels */
  --accent:    #84AB4E;   /* moss / forest green */
  --accent-lo: #5C7C37;   /* deeper moss */
  --brass:     #C99A4C;   /* brass / bronze banner */
  --brass-lo:  #9C7332;

  --line:      rgba(201, 154, 76, 0.22);   /* hairline = aged brass */
  --line-soft: rgba(236, 225, 200, 0.10);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --maxw: 1180px;
  --pad: clamp(1.25rem, 5vw, 4rem);

  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.9rem);
  --step-0:  clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  --step-1:  clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem);
  --step-2:  clamp(1.8rem, 1.4rem + 1.9vw, 2.9rem);
  --step-3:  clamp(2rem, 1.3rem + 3.4vw, 4.6rem);
  --step-4:  clamp(2.4rem, 1.3rem + 5.4vw, 6.6rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* subtle woodgrain stripes + warm depth */
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(132, 171, 78, 0.10), transparent 55%),
    repeating-linear-gradient(92deg,
      rgba(0,0,0,0) 0px, rgba(0,0,0,0) 5px,
      rgba(0,0,0,0.05) 6px, rgba(0,0,0,0) 9px),
    repeating-linear-gradient(89deg,
      rgba(255, 230, 180, 0.012) 0px, rgba(255,230,180,0.012) 22px,
      rgba(0,0,0,0.05) 26px, rgba(0,0,0,0) 60px);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: #11140a; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--brass); color: #1a1305; padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0; font-family: var(--font-mono); font-size: 0.8rem;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---------- atmosphere layers ---------- */
.embers {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(140% 110% at 50% 38%, transparent 55%, rgba(0,0,0,0.30) 100%);
  mix-blend-mode: multiply;
}
main, .nav, .foot { position: relative; z-index: 2; }

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.1rem;
}
.eyebrow--center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: var(--step-3);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 0.9rem;
  overflow-wrap: break-word;
}
.section-sub {
  color: var(--text-dim);
  max-width: 46ch;
  margin: 0;
  font-size: var(--step-1);
  line-height: 1.4;
}
.section-head { max-width: var(--maxw); margin: 0 auto; }

.ink { color: var(--accent); font-style: italic; }

/* buttons */
.btn {
  --b: var(--brass);
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 0.85em 1.5em;
  border-radius: 100px;
  border: 1.5px solid var(--b);
  color: var(--text);
  transition: transform .25s cubic-bezier(.2,.7,.3,1), background-color .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--brass); border-color: var(--brass); color: #1a1305; font-weight: 700; }
.btn--solid:hover { box-shadow: 0 10px 30px -8px rgba(201,154,76,.5); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: rgba(236,225,200,.06); }
.btn--lg { font-size: var(--step-0); padding: 1em 1.8em; }
.btn--knock {
  --b: var(--accent);
  color: var(--accent);
}
.btn--knock:hover { background: var(--accent); color: #11140a; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--pad);
  transition: background-color .3s, backdrop-filter .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(15, 12, 7, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  padding-top: 0.65rem; padding-bottom: 0.65rem;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--text);
}
.nav__knock { color: var(--brass); display: grid; place-items: center; transition: transform .4s; }
.nav__brand:hover .nav__knock { transform: rotate(-12deg); }
.nav__name {
  font-family: var(--font-display); font-weight: 900; font-size: 1.15rem;
  line-height: 0.95; letter-spacing: -0.01em; display: flex; flex-direction: column;
}
.nav__name-sub {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.58rem;
  letter-spacing: 0.45em; color: var(--brass); text-transform: uppercase; margin-top: 2px;
}
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav__links > a:not(.btn) {
  color: var(--text-dim); text-decoration: none;
  font-size: var(--step--1); letter-spacing: 0.02em;
  transition: color .2s;
}
.nav__links > a:not(.btn):hover { color: var(--text); }

.nav__toggle {
  display: none;
  min-width: 48px; min-height: 44px;
  align-items: center; justify-content: center; gap: .55rem;
  color: var(--text); background: rgba(30,24,16,.86);
  border: 1px solid var(--line); border-radius: 100px;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em;
  text-transform: uppercase; cursor: pointer;
}
.nav__toggle-icon { position: relative; width: 16px; height: 12px; display: block; }
.nav__toggle-icon span {
  position: absolute; left: 0; width: 16px; height: 1px;
  background: currentColor; transition: transform .25s ease, top .25s ease;
}
.nav__toggle-icon span:first-child { top: 3px; }
.nav__toggle-icon span:last-child { top: 9px; }
.nav__toggle.is-open .nav__toggle-icon span:first-child { top: 6px; transform: rotate(45deg); }
.nav__toggle.is-open .nav__toggle-icon span:last-child { top: 6px; transform: rotate(-45deg); }

@media (max-width: 720px) {
  .nav { padding: .65rem 1rem; }
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: calc(100% + .5rem); left: 1rem; right: 1rem;
    display: flex; flex-direction: column; align-items: stretch; gap: .2rem;
    padding: .7rem;
    background: rgba(20,17,11,.97);
    border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 24px 70px -28px rgba(0,0,0,.95);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav__links.is-open {
    opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  }
  .nav__links > a:not(.btn) {
    display: flex; align-items: center; min-height: 48px;
    padding: .7rem .9rem; border-radius: 11px;
    color: var(--text); font-size: .92rem;
  }
  .nav__links > a:not(.btn):hover,
  .nav__links > a:not(.btn):focus-visible { background: rgba(236,225,200,.06); }
  .nav__links .btn { min-height: 48px; justify-content: center; margin-top: .35rem; }
  .nav__name-sub { display: none; }
  body.nav-menu-open { overflow: hidden; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 7rem var(--pad) 5rem;
}
.hero__glow {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%);
  width: min(900px, 92vw); aspect-ratio: 1; z-index: -1;
  background: radial-gradient(circle, rgba(132,171,78,.20), rgba(201,154,76,.10) 35%, transparent 68%);
  filter: blur(10px);
}
.hero__inner { max-width: 940px; display: flex; flex-direction: column; align-items: center; }
.hero__crest {
  margin: 0 0 2.2rem; width: min(720px, 90vw);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.65));
}
.hero__crest img { border-radius: 18px; }
.hero__headline {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 900;
  font-size: var(--step-4);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 1.4rem;
  max-width: min(16ch, 100%);
  overflow-wrap: break-word;
}
.hero__headline em { color: var(--accent); font-style: italic; font-weight: 500; }
.hero__lede {
  color: var(--text-dim); font-size: var(--step-1); line-height: 1.45;
  max-width: 52ch; margin: 0 0 2.2rem;
}
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.hero__scroll {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--line);
  border-radius: 14px; display: grid; place-items: start center; padding-top: 7px;
}
.hero__scroll span {
  width: 4px; height: 8px; background: var(--brass); border-radius: 2px;
  animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot { 0%,100% { transform: translateY(0); opacity:.4 } 50% { transform: translateY(8px); opacity:1 } }

/* ---------- manifesto ---------- */
.manifesto {
  max-width: 1000px; margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) var(--pad);
  text-align: center;
}
.manifesto__quote {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: var(--step-2); line-height: 1.32; letter-spacing: -0.01em;
  color: var(--text);
}
.manifesto__quote .ink { font-weight: 600; }

/* ---------- world gateway ---------- */
.worlds {
  position: relative;
  isolation: isolate;
  overflow: clip;
  scroll-margin-top: 4rem;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(100% 90% at 84% 50%, rgba(132,171,78,.08), transparent 62%),
    linear-gradient(180deg, #110f0a, var(--ground) 45%, #100e09);
}
.worlds::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1; pointer-events: none;
  opacity: .28;
  background:
    repeating-linear-gradient(92deg, transparent 0 54px, rgba(236,225,200,.025) 55px, transparent 56px 112px);
}
.worlds__sticky {
  max-width: calc(var(--maxw) + var(--pad) * 2);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) var(--pad);
}
.worlds__frame { width: 100%; margin: 0 auto; }
.worlds__header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.worlds__header .eyebrow { margin-bottom: .8rem; }
.worlds__header .section-title { max-width: 15ch; margin-bottom: 0; }
.worlds__lede {
  max-width: 45ch;
  margin: 0;
  color: var(--text-dim);
  font-size: var(--step-0);
  line-height: 1.55;
}
.worlds__panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
}
.world-panel {
  --world-color: var(--accent);
  position: relative;
  min-width: 0;
  min-height: 100%;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(42,33,20,.92), rgba(20,17,11,.96));
}
.world-panel::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1; pointer-events: none;
  background: radial-gradient(80% 70% at 100% 0, color-mix(in srgb, var(--world-color) 20%, transparent), transparent 65%);
}
.world-panel--outbreak { --world-color: #D76155; }
.world-panel--formation { --world-color: var(--accent); }
.world-panel--imagination { --world-color: #91A9CC; }
.world-panel__status {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
  margin: 0 0 1.35rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.world-panel__status span {
  color: var(--world-color);
  border: 1px solid color-mix(in srgb, var(--world-color) 55%, transparent);
  border-radius: 100px;
  padding: .28em .7em;
}
.world-panel__title {
  margin: 0 0 .8rem;
  max-width: 13ch;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 2rem + 2vw, 4.7rem);
  font-weight: 900;
  line-height: .94;
  letter-spacing: -.035em;
}
.world-panel__promise {
  max-width: 37ch;
  margin: 0 0 1rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-style: italic;
  line-height: 1.35;
}
.world-panel__copy {
  max-width: 52ch;
  margin: 0 0 1.35rem;
  color: var(--text-dim);
  font-size: var(--step--1);
  line-height: 1.6;
}
.world-panel__doors {
  display: flex; flex-wrap: wrap; gap: .5rem;
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
}
.world-panel__doors li {
  border: 1px solid color-mix(in srgb, var(--world-color) 42%, transparent);
  border-radius: 100px;
  padding: .38em .8em;
  color: color-mix(in srgb, var(--world-color) 78%, var(--text));
  font-family: var(--font-mono);
  font-size: .67rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.world-panel__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn--world {
  --b: var(--world-color);
  color: var(--text);
  background: color-mix(in srgb, var(--world-color) 13%, transparent);
}
.btn--world:hover {
  color: #fff8ed;
  background: color-mix(in srgb, var(--world-color) 25%, transparent);
  box-shadow: 0 12px 34px -16px color-mix(in srgb, var(--world-color) 70%, transparent);
}
.world-panel__signal {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: .25rem 0 0;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.world-panel__signal::before {
  content: "";
  width: 7px; height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--world-color);
  box-shadow: 0 0 14px var(--world-color);
}
.worlds__visuals, .worlds__index, .worlds__scroll-cue { display: none; }

/* Enhanced desktop state: CSS performs the pin; ScrollTrigger selects each world. */
.worlds.is-enhanced { height: 320svh; padding: 0; }
.worlds.is-enhanced .worlds__sticky {
  position: sticky;
  top: 0;
  display: flex;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100svh;
  padding: clamp(4.8rem, 7.2vh, 6.2rem) var(--pad) clamp(1.25rem, 2.6vh, 2rem);
  overflow: hidden;
}
.worlds.is-enhanced .worlds__frame {
  display: flex;
  flex-direction: column;
  max-width: var(--maxw);
}
.worlds.is-enhanced .worlds__header {
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .62fr);
  margin-bottom: clamp(1.2rem, 2.5vh, 2rem);
}
.worlds.is-enhanced .worlds__header .section-title {
  font-size: clamp(2rem, 1.4rem + 2.1vw, 3.7rem);
  max-width: 17ch;
}
.worlds.is-enhanced .worlds__stage {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: minmax(0, .85fr) minmax(360px, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;
}
.worlds.is-enhanced .worlds__panels {
  position: relative;
  display: block;
  min-height: 0;
}
.worlds.is-enhanced .world-panel {
  position: absolute; inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(.5rem, 2vh, 1.5rem) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.worlds.is-enhanced .world-panel::before { display: none; }
.worlds.is-enhanced .world-panel.is-active { visibility: visible; opacity: 1; pointer-events: auto; }
.worlds.is-enhanced .world-panel__title { font-size: clamp(3rem, 3.5vw, 5.4rem); }
.worlds.is-enhanced .worlds__visuals {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: clamp(20px, 3vw, 34px);
  background: #0d0b08;
  box-shadow: 0 32px 90px -42px rgba(0,0,0,.92);
}
.world-visual {
  position: absolute; inset: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  will-change: transform, opacity;
}
.world-visual.is-active { visibility: visible; opacity: 1; }
.world-visual::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,7,5,.35), transparent 35%),
    radial-gradient(100% 80% at 50% 40%, transparent 50%, rgba(0,0,0,.62));
}
.world-visual__readout {
  position: absolute; left: clamp(1.2rem, 3vw, 2rem); right: 1rem; bottom: clamp(1rem, 2vw, 1.5rem);
  z-index: 3;
  color: rgba(236,225,200,.72);
  font-family: var(--font-mono);
  font-size: clamp(.58rem, .5rem + .15vw, .7rem);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Outbreak visual: a growing containment network. */
.world-visual--outbreak {
  background:
    radial-gradient(70% 60% at 58% 44%, rgba(135,28,27,.28), transparent 66%),
    linear-gradient(145deg, #180d0c, #0d0b08 58%, #160c0b);
}
.world-network { position: absolute; inset: 3% 2% 7%; width: 96%; height: 90%; z-index: 1; }
.world-network__paths path {
  fill: none;
  stroke: rgba(215,97,85,.38);
  stroke-width: 2;
  stroke-dasharray: 5 12;
  vector-effect: non-scaling-stroke;
  animation: networkFlow 12s linear infinite;
}
.world-network__nodes circle {
  fill: #D76155;
  stroke: rgba(255,229,214,.55);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: networkPulse 3.6s ease-in-out infinite;
}
.world-network__nodes circle:nth-child(3n) { animation-delay: -1.2s; }
.world-network__nodes circle:nth-child(4n) { animation-delay: -2.4s; }
.world-visual__ghost {
  position: absolute; left: 6%; top: 9%; z-index: 0;
  color: rgba(215,97,85,.075);
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .8;
}
@keyframes networkFlow { to { stroke-dashoffset: -136; } }
@keyframes networkPulse { 0%,100% { transform: scale(.78); opacity:.55 } 50% { transform: scale(1.3); opacity:1 } }

/* Formation visual: rings and roots orbit an unresolved seed. */
.world-visual--formation {
  background:
    radial-gradient(60% 65% at 52% 49%, rgba(132,171,78,.18), transparent 65%),
    linear-gradient(145deg, #11160d, #0d0b08 62%, #16120b);
}
.formation-ring {
  position: absolute; left: 50%; top: 50%;
  width: var(--size); aspect-ratio: 1;
  border: 1px solid rgba(132,171,78,var(--alpha));
  border-radius: 42% 58% 48% 52% / 57% 43% 57% 43%;
  transform: translate(-50%,-50%) rotate(var(--rotation));
  animation: formationTurn var(--speed) linear infinite;
}
.formation-ring--one { --size: 50%; --alpha:.6; --rotation:12deg; --speed:18s; }
.formation-ring--two { --size: 70%; --alpha:.35; --rotation:76deg; --speed:27s; }
.formation-ring--three { --size: 88%; --alpha:.18; --rotation:148deg; --speed:38s; }
.formation-root {
  position: absolute; left: 50%; top: 50%;
  width: 2px; height: 42%;
  border-radius: 100%;
  background: linear-gradient(to bottom, rgba(201,154,76,.75), transparent);
  transform-origin: 50% 0;
}
.formation-root--one { transform: rotate(24deg); }
.formation-root--two { transform: rotate(142deg); height: 36%; }
.formation-root--three { transform: rotate(248deg); height: 32%; }
.formation-seed {
  position: absolute; left: 50%; top: 50%;
  width: clamp(50px, 8vw, 90px); aspect-ratio: .78;
  border-radius: 62% 38% 55% 45% / 67% 52% 48% 33%;
  transform: translate(-50%,-50%) rotate(24deg);
  background: radial-gradient(circle at 35% 25%, #a7c86c, #506c30 48%, #222b18 80%);
  box-shadow: 0 0 70px rgba(132,171,78,.32), 0 30px 50px rgba(0,0,0,.5);
  animation: seedBreathe 4.8s ease-in-out infinite;
}
@keyframes formationTurn { to { transform: translate(-50%,-50%) rotate(calc(var(--rotation) + 360deg)); } }
@keyframes seedBreathe { 0%,100% { scale:.94 } 50% { scale:1.05 } }

/* Imagination visual: unmapped orbits around a bright possibility. */
.world-visual--imagination {
  background:
    radial-gradient(70% 72% at 54% 48%, rgba(92,119,162,.22), transparent 64%),
    linear-gradient(145deg, #0c1018, #0d0b08 68%, #15101a);
}
.imagination-orbit {
  position: absolute; left: 50%; top: 50%;
  width: var(--width); height: var(--height);
  border: 1px solid rgba(145,169,204,var(--alpha));
  border-radius: 50%;
  transform: translate(-50%,-50%) rotate(var(--rotation));
  animation: imaginationTurn var(--speed) linear infinite;
}
.imagination-orbit--one { --width:72%; --height:26%; --alpha:.55; --rotation:18deg; --speed:20s; }
.imagination-orbit--two { --width:82%; --height:42%; --alpha:.32; --rotation:112deg; --speed:29s; }
.imagination-orbit--three { --width:58%; --height:76%; --alpha:.2; --rotation:54deg; --speed:36s; }
.imagination-core {
  position: absolute; left: 50%; top: 50%;
  width: clamp(56px, 7vw, 96px); aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle at 38% 32%, #fff4cc 0 5%, #b8cceb 18%, #6f82aa 46%, rgba(70,54,101,.4) 70%);
  box-shadow: 0 0 30px rgba(181,205,235,.7), 0 0 100px rgba(89,112,161,.45);
  animation: coreDrift 5.2s ease-in-out infinite;
}
.imagination-spark {
  position: absolute;
  width: 7px; aspect-ratio: 1;
  border-radius: 50%;
  background: #dbe7ff;
  box-shadow: 0 0 18px rgba(181,205,235,.9);
  animation: sparkBlink 3.4s ease-in-out infinite;
}
.imagination-spark--one { left:24%; top:29%; }
.imagination-spark--two { right:19%; top:36%; animation-delay:-1.1s; }
.imagination-spark--three { left:34%; bottom:21%; animation-delay:-2.2s; }
@keyframes imaginationTurn { to { transform: translate(-50%,-50%) rotate(calc(var(--rotation) + 360deg)); } }
@keyframes coreDrift { 0%,100% { transform:translate(-50%,-50%) scale(.92) } 50% { transform:translate(-50%,-52%) scale(1.06) } }
@keyframes sparkBlink { 0%,100% { opacity:.25; transform:scale(.6) } 50% { opacity:1; transform:scale(1.35) } }

.worlds.is-enhanced .worlds__index {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  list-style: none;
  margin: clamp(.8rem, 1.8vh, 1.4rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}
.worlds__index li { min-width: 0; }
.worlds__index button {
  position: relative;
  width: 100%; min-height: 46px;
  padding: .75rem .7rem;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-mono);
  font-size: clamp(.65rem, .58rem + .18vw, .76rem);
  letter-spacing: .06em;
  transition: color .25s, background-color .25s;
}
.worlds__index button::before {
  content: "";
  position: absolute; top: -1px; left: 0;
  width: 100%; height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.7,.3,1);
}
.worlds__index button span { color: var(--text-dim); margin-right: .45rem; }
.worlds__index button:hover { color: var(--text); background: rgba(236,225,200,.035); }
.worlds__index button.is-active { color: var(--text); }
.worlds__index button.is-active::before { transform: scaleX(1); }
.worlds.is-enhanced .worlds__scroll-cue {
  display: block;
  flex: 0 0 auto;
  margin: .25rem 0 0;
  color: var(--text-dim);
  text-align: center;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.worlds__scroll-cue span { color: var(--brass); }

/* ---------- concise homepage worlds gateway ---------- */
.worlds-preview {
  max-width: calc(var(--maxw) + var(--pad) * 2);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) var(--pad);
}
.worlds-preview__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.worlds-preview__intro .section-title { max-width: 12ch; margin-bottom: 0; }
.worlds-preview__copy { max-width: 47ch; }
.worlds-preview__copy p {
  margin: 0 0 1.5rem; color: var(--text-dim);
  font-size: var(--step-0); line-height: 1.55;
}
.worlds-preview__feature {
  --world-color: #D76155;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(340px, 1.08fr);
  min-height: min(660px, 72svh);
  overflow: hidden;
  border: 1px solid rgba(215,97,85,.24);
  border-radius: clamp(22px, 3vw, 34px);
  background: linear-gradient(145deg, #21110f, #14110b 60%);
  box-shadow: 0 35px 90px -48px rgba(0,0,0,.92);
}
.worlds-preview__world-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
}
.worlds-preview__world-copy h3 {
  margin: 0 0 .8rem;
  font-family: var(--font-display); font-size: var(--step-4);
  font-weight: 900; line-height: .94; letter-spacing: -.035em;
}
.worlds-preview__promise {
  max-width: 32ch; margin: 0 0 1rem;
  color: var(--text); font-family: var(--font-display);
  font-size: var(--step-1); font-style: italic; line-height: 1.35;
}
.worlds-preview__world-copy > p:not(.world-panel__status):not(.worlds-preview__promise) {
  max-width: 48ch; margin: 0 0 1.35rem;
  color: var(--text-dim); font-size: var(--step--1);
}
.worlds-preview__more {
  align-self: center; color: var(--text-dim); text-decoration: none;
  font-family: var(--font-mono); font-size: var(--step--1);
}
.worlds-preview__more:hover { color: var(--text); }
.worlds-preview__signal {
  position: relative; min-height: 420px; overflow: hidden;
  border-left: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 52% 48%, rgba(215,97,85,.25), transparent 8%),
    radial-gradient(circle at 35% 62%, rgba(215,97,85,.18), transparent 4%),
    radial-gradient(circle at 72% 35%, rgba(215,97,85,.2), transparent 5%),
    radial-gradient(80% 70% at 50% 50%, rgba(215,97,85,.1), transparent 70%),
    #0d0b08;
}
.worlds-preview__signal::before,
.worlds-preview__signal::after {
  content: ""; position: absolute; inset: 18% 16%;
  border: 1px dashed rgba(215,97,85,.22); border-radius: 50%;
  transform: rotate(24deg);
}
.worlds-preview__signal::after { inset: 31% 24%; transform: rotate(-19deg); }
.worlds-preview__pulse {
  position: absolute; left: 52%; top: 48%; width: 18px; height: 18px;
  border-radius: 50%; background: #D76155;
  box-shadow: 0 0 0 12px rgba(215,97,85,.08), 0 0 44px rgba(215,97,85,.72);
  animation: worldPulse 2.8s ease-in-out infinite;
}
.worlds-preview__ghost {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(215,97,85,.08); font-family: var(--font-display);
  font-size: clamp(5rem, 11vw, 10rem); font-weight: 900;
  letter-spacing: -.08em;
}
.worlds-preview__readout {
  position: absolute; left: 1.8rem; bottom: 1.35rem;
  color: var(--text-faint); font-family: var(--font-mono);
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
}
@keyframes worldPulse { 50% { transform: scale(1.22); opacity: .78; } }

/* ---------- dedicated Worlds page ---------- */
.worlds-body { background-color: var(--ground); }
.worlds-page-hero {
  min-height: 82svh;
  padding: clamp(8rem, 15vh, 11rem) var(--pad) clamp(5rem, 9vh, 7rem);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background:
    radial-gradient(55% 60% at 50% 50%, rgba(132,171,78,.12), transparent 72%),
    linear-gradient(180deg, rgba(20,17,11,.15), var(--ground));
}
.worlds-page-hero h1 {
  max-width: 12ch; margin: 0 0 1.4rem;
  font-family: var(--font-display); font-size: var(--step-4);
  font-weight: 900; line-height: .95; letter-spacing: -.035em;
}
.worlds-page-hero > p:not(.eyebrow) {
  max-width: 50ch; margin: 0 0 2rem;
  color: var(--text-dim); font-size: var(--step-1); line-height: 1.45;
}
.worlds-page-cta {
  max-width: 900px; margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) var(--pad);
  text-align: center;
}
.worlds-page-cta h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display); font-size: var(--step-3);
  line-height: 1; letter-spacing: -.025em;
}
.worlds-page-cta > p:not(.eyebrow) {
  max-width: 52ch; margin: 0 auto 2rem;
  color: var(--text-dim); font-size: var(--step-1); line-height: 1.45;
}
.nav__links [aria-current="page"] { color: var(--text) !important; }
.nav__links [aria-current="page"]::after {
  content: ""; display: block; height: 2px;
  margin-top: 3px; background: var(--brass);
}

@media (max-width: 840px) {
  .worlds-preview__intro,
  .worlds-preview__feature { grid-template-columns: 1fr; }
  .worlds-preview__feature { min-height: 0; }
  .worlds-preview__signal { min-height: 330px; border-left: 0; border-top: 1px solid var(--line-soft); }
  .worlds-preview__world-copy { padding: clamp(2rem, 8vw, 3.5rem); }
}

@media (max-width: 560px) {
  .worlds-preview { padding-left: 1.25rem; padding-right: 1.25rem; }
  .worlds-preview__signal { min-height: 260px; }
  .worlds-preview__world-copy h3 { font-size: clamp(3rem, 16vw, 4.8rem); }
  .worlds-preview__more { width: 100%; margin-top: .35rem; }
  .worlds-page-hero { min-height: 76svh; padding-left: 1.25rem; padding-right: 1.25rem; }
}

@media (max-width: 840px) {
  .worlds__header { grid-template-columns: 1fr; gap: 1.2rem; }
  .worlds__header .section-title { max-width: 18ch; }
  .worlds__lede { max-width: 52ch; }
  .worlds__panels { grid-template-columns: 1fr; }
  .world-panel { min-height: min(620px, 78svh); display: flex; flex-direction: column; justify-content: center; }
  .world-panel--outbreak { background:
    radial-gradient(80% 65% at 100% 0, rgba(215,97,85,.18), transparent 66%),
    linear-gradient(150deg, #21110f, #14110b 70%); }
  .world-panel--formation { background:
    radial-gradient(80% 65% at 100% 0, rgba(132,171,78,.18), transparent 66%),
    linear-gradient(150deg, #172012, #14110b 70%); }
  .world-panel--imagination { background:
    radial-gradient(80% 65% at 100% 0, rgba(145,169,204,.18), transparent 66%),
    linear-gradient(150deg, #101722, #14110b 70%); }
}

@media (prefers-reduced-motion: reduce) {
  .world-network__paths path,
  .world-network__nodes circle,
  .formation-ring,
  .formation-seed,
  .imagination-orbit,
  .imagination-core,
  .imagination-spark { animation: none !important; }
}

/* ---------- section rhythm ---------- */
.forge, .work, .workshop {
  padding: clamp(4rem, 9vw, 7.5rem) var(--pad);
  max-width: calc(var(--maxw) + var(--pad) * 2);
  margin: 0 auto;
}
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }

/* ---------- forge / crafts ---------- */
.forge__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(1rem, 2vw, 1.4rem);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.craft {
  position: relative;
  background: linear-gradient(160deg, var(--ground-2), var(--ground));
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 1.8rem 1.6rem 2rem;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), border-color .35s, box-shadow .35s;
}
.craft::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-lo), var(--brass));
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.craft:hover {
  transform: translateY(-6px);
  border-color: var(--line);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.8);
}
.craft:hover::before { transform: scaleX(1); }
.craft__num {
  font-family: var(--font-mono); font-size: var(--step--1);
  color: var(--text-faint); letter-spacing: 0.1em;
}
.craft__icon {
  display: block; color: var(--accent); margin: 1rem 0 1.1rem; width: 48px;
}
.craft__icon svg { width: 48px; height: 48px; }
.craft:hover .craft__icon { color: var(--brass); }
.craft__icon { transition: color .35s; }
.craft__title {
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1);
  margin: 0 0 0.6rem; letter-spacing: -0.01em;
}
.craft__copy { margin: 0; color: var(--text-dim); font-size: var(--step--1); line-height: 1.55; }

/* ---------- work ---------- */
.work__grid {
  display: grid; gap: clamp(1rem, 2vw, 1.4rem);
  grid-template-columns: repeat(2, 1fr);
}
.piece {
  background: var(--ground-2);
  border: 1px solid var(--line-soft);
  border-radius: 16px; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), border-color .35s;
}
.piece:hover { transform: translateY(-5px); border-color: var(--line); }
.piece--feature { grid-column: 1 / -1; }
.piece__thumb {
  aspect-ratio: 16 / 7; width: 100%;
  background: var(--ground-3);
  position: relative; overflow: hidden;
}
.piece--feature .piece__thumb { aspect-ratio: 21 / 7; }
/* generative thumb tints — each piece its own mood */
.piece__thumb[data-art="hollowwood"] { background:
  radial-gradient(80% 120% at 20% 10%, rgba(132,171,78,.35), transparent 60%),
  radial-gradient(60% 100% at 90% 90%, rgba(201,154,76,.22), transparent 55%),
  linear-gradient(160deg, #1c2415, #120f0a); }
.piece__thumb[data-art="saints"] { background:
  radial-gradient(70% 100% at 80% 20%, rgba(201,154,76,.4), transparent 60%),
  linear-gradient(160deg, #251a10, #120f0a); }
.piece__thumb[data-art="knocking"] { background:
  radial-gradient(90% 120% at 50% 120%, rgba(132,171,78,.22), transparent 60%),
  linear-gradient(200deg, #1a130d, #0b0906); }
.piece__thumb[data-art="fieldnotes"] { background:
  repeating-linear-gradient(135deg, rgba(236,225,200,.04) 0 10px, transparent 10px 20px),
  linear-gradient(160deg, #20180f, #120f0a); }
.piece__thumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at center, transparent 60%, rgba(0,0,0,.4));
}
.piece__body { padding: 1.4rem 1.5rem 1.6rem; }
.piece__meta { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.7rem; }
.chip {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--accent-lo); border-radius: 100px; padding: 0.25em 0.8em;
}
.piece__year { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); }
.piece__title {
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1);
  margin: 0 0 0.4rem;
}
.piece--feature .piece__title { font-size: var(--step-2); }
.piece__copy { margin: 0; color: var(--text-dim); font-size: var(--step--1); }
.work__note {
  text-align: center; margin: 2rem 0 0; color: var(--text-faint);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
}
@media (max-width: 640px) { .work__grid { grid-template-columns: 1fr; } }

/* ---------- workshop ---------- */
.workshop { border-top: 1px solid var(--line-soft); }
.workshop__grid {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1.1fr 0.9fr; align-items: start;
}
.workshop__copy { color: var(--text-dim); max-width: 50ch; margin: 0 0 1.1rem; }
.workshop__values { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.workshop__values li {
  display: grid; gap: 0.3rem; padding: 1.3rem 0;
  border-top: 1px solid var(--line-soft);
}
.workshop__values li:last-child { border-bottom: 1px solid var(--line-soft); }
.value__k {
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1);
  color: var(--text);
}
.value__v { color: var(--text-dim); font-size: var(--step--1); }
@media (max-width: 820px) { .workshop__grid { grid-template-columns: 1fr; } }

/* ---------- knock / contact ---------- */
.knock {
  text-align: center;
  padding: clamp(5rem, 12vw, 9rem) var(--pad) clamp(4rem, 9vw, 7rem);
  position: relative;
}
.knock::before {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: min(700px, 80vw); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.knock__inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.knock__door {
  background: none; border: none; cursor: pointer; color: var(--brass);
  margin: 0 0 1.5rem; padding: 0; line-height: 0;
  transition: color .3s;
}
.knock__door:hover { color: var(--accent); }
.knock__door.is-knocking { animation: knock 0.5s ease; transform-origin: 50% 10%; }
@keyframes knock {
  0%,100% { transform: rotate(0) }
  20% { transform: rotate(-9deg) }
  45% { transform: rotate(7deg) }
  70% { transform: rotate(-4deg) }
}
.knock__title {
  font-family: var(--font-display); font-weight: 900; font-size: var(--step-3);
  letter-spacing: -0.02em; margin: 0 0 0.8rem; line-height: 1;
}
.knock__copy { color: var(--text-dim); font-size: var(--step-1); line-height: 1.4; margin: 0 0 2rem; max-width: 40ch; }
.knock__social {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; justify-content: center;
  margin: 2rem 0 0; padding: 0;
}
.knock__social a {
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.06em;
  color: var(--text-dim); text-decoration: none; position: relative;
}
.knock__social a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.knock__social a:hover { color: var(--text); }
.knock__social a:hover::after { transform: scaleX(1); }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line-soft);
  padding: 2.5rem var(--pad);
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
  align-items: baseline; justify-content: space-between;
}
.foot__brand { font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; }
.foot__tag { color: var(--text-faint); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; }
.foot__year { color: var(--text-faint); font-family: var(--font-mono); font-size: 0.72rem; }

/* ---------- reveal (JS-driven; safe default visible) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero__scroll span { animation: none; }
}

/* =========================================================
   3D SCROLL JOURNEY  (added for the interactive build)
   ========================================================= */

.scene {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; display: block;
}
.has-3d .embers { display: none; }   /* 2D embers only used in fallback */

/* the tall scroll region that drives the tree's growth */
.experience {
  position: relative;
  height: 300vh;
  z-index: 2;
}
.experience__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
}
.experience .stage {
  position: absolute;
  left: 0; right: 0;
  margin: 0 auto;
  max-width: 920px;
  padding: 5.5rem var(--pad) 4rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  opacity: 0;                 /* JS scrubs this; hero starts visible below */
  will-change: opacity, transform;
}
.experience .stage--hero { opacity: 1; }

.stage--hero .hero__headline {
  font-family: var(--font-display); font-weight: 900;
  font-size: var(--step-4); line-height: 0.98; letter-spacing: -0.03em;
  margin: 0; max-width: 15ch; overflow-wrap: break-word;
}

/* "what we make": full-width header; tiles over a large, faded crest backdrop (right) */
.forge .section-head { max-width: none; margin-bottom: clamp(2rem, 5vw, 3.5rem); position: relative; z-index: 2; }
.forge .section-sub { max-width: 60ch; }

.forge__body { position: relative; }
.forge__crest {
  /* anchored to the right; the wide tile column (below) reaches across to overlap it */
  position: absolute; inset: 0;
  z-index: 0; margin: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: flex-end;
}
.forge__crest img {
  height: auto; width: min(520px, 46vw); object-fit: contain;
  opacity: 1; transform: translateX(4%);
  filter: drop-shadow(0 0 60px rgba(132,171,78,.14));
}
.forge__grid {
  position: relative; z-index: 1; min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 60%;
}
.forge .craft { min-width: 0; }

@media (max-width: 900px) {
  .forge__grid { max-width: 100%; }
  .forge__crest { top: 0; bottom: 0; left: 0; right: 0; align-items: center; justify-content: center; }
  .forge__crest img { height: auto; width: min(560px, 112%); max-width: none; opacity: 0.2; transform: none; }
}
@media (max-width: 560px) {
  .forge__grid { grid-template-columns: minmax(0, 1fr); }
}
.stage--hero .hero__headline em { color: var(--accent); font-style: italic; font-weight: 500; }

.stage__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: var(--step-3); line-height: 1.0; letter-spacing: -0.02em;
  margin: 0.5rem 0 0.9rem; max-width: 16ch; overflow-wrap: break-word;
  text-shadow: 0 4px 40px rgba(0,0,0,.6);
}
.stage__title--big { font-size: var(--step-4); }
.stage__crest { margin: 0 0 1.4rem; filter: drop-shadow(0 22px 50px rgba(0,0,0,.6)) drop-shadow(0 0 55px rgba(132,171,78,.22)); }
.stage__crest img { width: auto; height: auto; max-width: min(680px, 90vw); max-height: 56vh; }
.stage__title em { color: var(--accent); font-style: italic; font-weight: 500; }
.stage__copy {
  color: var(--text); font-size: var(--step-1); line-height: 1.4;
  max-width: 42ch; margin: 0 0 1.4rem; text-shadow: 0 2px 20px rgba(0,0,0,.7);
}
.scroll-cue {
  font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing: 0.14em; color: var(--brass); margin: 1.6rem 0 0;
  animation: cuePulse 2.4s ease-in-out infinite;
}
@keyframes cuePulse { 0%,100% { opacity: .5; transform: translateY(0) } 50% { opacity: 1; transform: translateY(4px) } }

/* floating label shown when a canopy "fruit" is hovered */
.scene-label {
  position: fixed; bottom: 11%; left: 50%; transform: translateX(-50%) translateY(8px);
  z-index: 5; pointer-events: none;
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ground);
  background: var(--brass); padding: 0.5em 1.1em; border-radius: 100px;
  opacity: 0; transition: opacity .25s, transform .25s;
}
.scene-label.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* readable content sits on opaque bark; smooth handoff from the 3D above */
.content { position: relative; z-index: 2; background: var(--ground); }
.content::before {
  content: ""; position: absolute; top: -34vh; left: 0; right: 0; height: 34vh;
  background: linear-gradient(to bottom, transparent, var(--ground) 92%);
  pointer-events: none; z-index: 1;
}

.craft__link {
  display: inline-block; margin-top: 1rem;
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.04em;
  color: var(--accent); text-decoration: none;
}
.craft__link:hover { color: var(--brass); }

/* ---------- fallback: no WebGL / reduced motion ---------- */
.no-3d .scene { display: none; }
.no-3d .experience { height: auto; }
.no-3d .experience__sticky {
  position: relative; height: auto; min-height: 100svh;
  padding: 7rem 0 4rem;
}
.no-3d .experience .stage { position: relative; opacity: 1 !important; transform: none !important; }
.no-3d .experience .stage:not(.stage--hero) { display: none; }

@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
}

@media (max-width: 720px) {
  .experience { height: 240vh; }
  .stage--hero .hero__headline { font-size: clamp(1.6rem, 7.5vw, 2.6rem); max-width: 13ch; }
  .stage__title { font-size: var(--step-2); max-width: 14ch; }
  .stage__title--big { font-size: var(--step-3); }
  .stage__copy { font-size: var(--step-0); max-width: 32ch; }
}

/* mobile nav / CTA polish — keep everything inside the viewport */
@media (max-width: 560px) {
  .nav { padding-left: 1rem; padding-right: 1rem; }
  .nav__name { font-size: 1rem; }
  .nav .btn--knock { display: flex; }
  .hero__cta, .arcade-hero__cta { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__cta .btn, .arcade-hero__cta .btn { justify-content: center; width: 100%; }
  .arcade-hero__title { font-size: clamp(2.2rem, 13vw, 3rem); }
  .eyebrow { letter-spacing: 0.2em; }
  .arcade-hero { padding-left: 1.25rem; padding-right: 1.25rem; }
}
