/* =====================================================================
   Odd Peaks — the page is a dig site: surface → topsoil → sandstone →
   fossil bed → bedrock → gem core.
   ===================================================================== */
:root {
  --night: #0c1b16;
  --pine: #12291f;
  --moss: #2c5a47;
  --lime: #c4f563;
  --lime-deep: #8fbf2e;
  --bone: #f7efd9;
  --sand: #e0b67a;
  --sand-2: #d2a066;
  --sand-3: #c08a55;
  --clay: #8c6040;
  --ink: #23180f;
  --ink-soft: #5b4430;
  --gem: #55ddff;
  --ember: #ff9a4f;
  --rock: #161e1b;
  --core: #05161d;

  --font: 'Bricolage', 'Arial Narrow', system-ui, sans-serif;
  --gutter: clamp(18px, 6vw, 110px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 3px solid var(--gem); outline-offset: 4px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 800; }
p { margin: 0; }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link { position: fixed; top: -80px; left: 16px; z-index: 200; background: var(--lime); color: var(--pine); padding: 12px 18px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 16px; }

/* ---------------------------------------------------------------- buttons */
.button {
  --face: var(--lime); --edge: var(--lime-deep); --text: var(--pine);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 26px;
  background: var(--face); color: var(--text);
  border-radius: 14px;
  font-size: 16px; font-weight: 700; letter-spacing: -.01em;
  box-shadow: 0 6px 0 var(--edge), 0 14px 28px -10px rgb(0 0 0 / .45);
  transition: box-shadow .18s var(--ease-out), translate .18s var(--ease-out), background .2s;
  will-change: transform;
}
.button:hover { background: color-mix(in srgb, var(--face) 88%, #fff); }
.button:active { translate: 0 5px; box-shadow: 0 1px 0 var(--edge), 0 6px 14px -8px rgb(0 0 0 / .45); }
.button-ink { --face: var(--pine); --edge: #050f0b; --text: var(--bone); }
.button-ink:hover { background: #1b3a2d; }
.ext { width: 12px; height: 12px; flex: none; }

.text-link {
  font-weight: 700; font-size: 16px;
  background: linear-gradient(currentColor 0 0) 0 100% / 100% 2px no-repeat;
  padding-bottom: 4px; transition: background-size .3s var(--ease-out);
}
.text-link:hover { background-size: 100% 6px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 14px 0 auto; z-index: 100;
  padding-inline: max(14px, calc(var(--gutter) - 22px));
  transition: translate .45s var(--ease-out);
}
.site-header.is-hidden { translate: 0 calc(-100% - 20px); }
.header-inner {
  max-width: 1290px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 10px 10px 16px;
  border-radius: 20px; border: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
.site-header.is-scrolled .header-inner {
  background: rgb(10 24 19 / .72);
  border-color: rgb(247 239 217 / .1);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 21px; letter-spacing: -.03em; font-stretch: 90%; }
.brand-mark { width: 42px; height: 42px; color: var(--pine); background: var(--lime); border-radius: 11px; display: grid; place-items: center; rotate: -7deg; transition: rotate .4s var(--ease-spring); box-shadow: 0 4px 0 var(--lime-deep); }
.brand:hover .brand-mark { rotate: 6deg; }
.brand-mark svg { width: 30px; height: 30px; }
.site-header nav { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.site-header nav a:not(.nav-cta) { padding: 10px 14px; border-radius: 10px; transition: background .2s, color .2s; }
.site-header nav a:not(.nav-cta):hover { background: rgb(247 239 217 / .08); color: var(--lime); }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; margin-left: 8px; padding: 11px 16px; border-radius: 12px; background: var(--lime); color: var(--pine); font-weight: 700; box-shadow: 0 4px 0 var(--lime-deep); }
.menu-toggle { display: none; }

/* ---------------------------------------------------------------- depth meter */
.depth {
  position: fixed; left: 22px; top: 50%; z-index: 50; translate: 0 -50%;
  display: none; flex-direction: column; align-items: flex-start; gap: 10px;
  color: var(--bone); transition: color .4s, opacity .4s;
  pointer-events: none; opacity: 0;
}
.depth.is-on { opacity: 1; }
.depth.is-on.is-tucked { opacity: 0; }
.depth[data-tone='light'] { color: var(--ink); }
.depth-track { position: relative; width: 4px; height: 150px; border-radius: 4px; }
.depth-track::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: .22; }
.depth-fill { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--p, 0) * 100%); background: currentColor; border-radius: 4px; }
.depth-marker { position: absolute; left: 50%; top: calc(var(--p, 0) * 100%); width: 14px; height: 14px; translate: -50% -50%; background: var(--lime); border: 3px solid currentColor; rotate: 45deg; border-radius: 3px; }
.depth-read { font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; font-stretch: 80%; }
.depth-read small { font-size: 13px; margin-left: 2px; font-weight: 600; }
.depth-layer { font-size: 12px; font-weight: 600; opacity: .75; writing-mode: vertical-rl; rotate: 180deg; }
@media (min-width: 1280px) { .depth { display: flex; } }

/* ---------------------------------------------------------------- HERO */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100svh, 680px);
  background: var(--pine);
}
.hero-scene { position: absolute; inset: 0; z-index: 0; }
.sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 40% at 76% 66%, rgb(255 178 102 / .5), transparent 60%),
    linear-gradient(180deg, #06110d 0%, #0b1d17 26%, #163a2e 44%, #3a6b4f 56%, #c98d55 66%, #f0bd7a 74%, #f0bd7a 100%);
}
.sky-canvas, .dust-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sun {
  position: absolute; left: 84%; top: 21%; width: clamp(90px, 9vw, 150px); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6dc 0 40%, rgb(255 236 190 / .25) 41% 55%, rgb(255 236 190 / .08) 56% 70%, transparent 71%);
  filter: blur(.4px);
}
.layer { position: absolute; left: -4%; right: -4%; pointer-events: none; }
.hero-scene::after { content: ''; position: absolute; inset: auto 0 0; height: 16%; background: #183a2f; }
.layer svg { width: 100%; height: 100%; }
.layer-far { bottom: 10%; height: 54%; }
.layer-mid { bottom: -20px; height: calc(50% + 20px); }
.layer-near { bottom: -40px; height: calc(30% + 40px); z-index: 5; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 34%; z-index: 5; pointer-events: none; background: linear-gradient(rgb(8 20 15 / 0), rgb(8 20 15 / .55)); }

.hero-title {
  position: absolute; z-index: 2; left: 0; right: 0; top: clamp(96px, 15vh, 160px);
  text-align: center; line-height: .82; pointer-events: none;
}
.t-small { display: block; font-size: clamp(20px, 2vw, 30px); font-weight: 600; letter-spacing: -.01em; color: var(--lime); margin-bottom: .5em; font-stretch: 100%; }
.t-big {
  display: block; white-space: nowrap;
  font-size: clamp(64px, 12.4vw, 230px);
  font-weight: 800; font-stretch: 78%; letter-spacing: -.018em;
  color: var(--bone);
  text-shadow: 0 .04em 0 rgb(0 0 0 / .18);
}
.t-big .char { display: inline-block; will-change: transform; }
.t-big .space { display: inline-block; width: .22em; }

.island-wrap {
  position: absolute; z-index: 3; left: 50%; top: clamp(200px, 30vh, 300px);
  width: min(640px, 48vw, 80vh); translate: -50% 0;
}
.island { margin: 0; perspective: 1000px; }
.island-svg { width: 100%; height: auto; overflow: visible; transform-style: preserve-3d; filter: drop-shadow(0 40px 40px rgb(3 10 8 / .5)); }
.island-svg { animation: bob 7s ease-in-out infinite; }
.isl-bob { animation: bob-small 5s ease-in-out infinite; animation-delay: calc(var(--b) * -0.8s); transform-box: fill-box; }
.isl-eye { animation: eye 3.2s ease-in-out infinite; }
.isl-eye-aura { animation: eye-aura 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.isl-gem { animation: gem-glint 4s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -14px; } }
@keyframes bob-small { 50% { translate: 0 -9px; } }
@keyframes eye { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.25) drop-shadow(0 0 6px #d4ff7a); } }
@keyframes eye-aura { 0%, 100% { opacity: .55; scale: 1; } 50% { opacity: 1; scale: 1.25; } }
@keyframes gem-glint { 0%, 100% { filter: none; } 50% { filter: brightness(1.2) drop-shadow(0 0 10px #7fe9ff); } }

.floaters { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.floater { position: absolute; width: var(--s, 40px); aspect-ratio: 66 / 70; }
.floater::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 70'%3E%3Cpath d='m3 20 30-17 30 17-30 17Z' fill='%23c9df82'/%3E%3Cpath d='m3 20 30 17v31L3 50Z' fill='%2378a75c'/%3E%3Cpath d='m33 37 30-17v30L33 68Z' fill='%23416f4c'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: bob-small 6s ease-in-out infinite, spin-soft 18s linear infinite; animation-delay: var(--d, 0s);
}
@keyframes spin-soft { to { rotate: 360deg; } }
.f1 { --s: 46px; left: 12%; top: 40%; --d: -1s; }
.f2 { --s: 28px; left: 24%; top: 62%; --d: -3s; }
.f3 { --s: 64px; right: 9%; top: 30%; --d: -2s; }
.f4 { --s: 22px; right: 22%; top: 70%; --d: -4s; }
.f5 { --s: 34px; left: 6%; top: 76%; --d: -5s; filter: blur(1.5px); }
.f3 { filter: blur(.5px); }

.hero-copy {
  position: absolute; z-index: 6; left: 0; right: 0; bottom: clamp(26px, 5vh, 56px);
  width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
}
.hero-lede { max-width: 30em; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: #d9e2d3; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex: none; }
.dig-hint { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; color: #cbd6c5; }
.dig-icon { width: 26px; height: 40px; border: 2px solid currentColor; border-radius: 14px; position: relative; }
.dig-icon i { position: absolute; left: 50%; top: 7px; width: 6px; height: 6px; margin-left: -3px; background: var(--lime); border-radius: 1px; animation: dig 1.8s var(--ease-out) infinite; }
@keyframes dig { 0% { translate: 0 0; opacity: 0; } 25% { opacity: 1; } 80% { translate: 0 16px; opacity: 0; } 100% { opacity: 0; } }

/* ---------------------------------------------------------------- TOPSOIL */
.topsoil { position: relative; z-index: 2; background: var(--lime); color: var(--pine); margin-top: -1px; }
.grass { position: absolute; left: 0; right: 0; bottom: 100%; height: 26px; color: var(--lime); }
.grass-edge { width: 100%; height: 100%; }
.marquee { overflow: hidden; padding: 18px 0 22px; }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; will-change: transform; }
.marquee-track span { font-size: clamp(26px, 3.6vw, 52px); font-weight: 800; font-stretch: 78%; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.mq-block {
  width: 34px; aspect-ratio: 66/70; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 70'%3E%3Cpath d='m3 20 30-17 30 17-30 17Z' fill='%23f7efd9'/%3E%3Cpath d='m3 20 30 17v31L3 50Z' fill='%232c5a47'/%3E%3Cpath d='m33 37 30-17v30L33 68Z' fill='%2312291f'/%3E%3C/svg%3E") center / contain no-repeat;
}
.soil-edge {
  height: 22px;
  background:
    linear-gradient(90deg, #5d3f29 0 18%, transparent 18% 22%, #5d3f29 22% 51%, transparent 51% 57%, #5d3f29 57% 83%, transparent 83%) 0 0 / 220px 11px repeat-x,
    linear-gradient(#5d3f29 0 0) 0 11px / 100% 11px no-repeat;
  background-color: var(--lime);
}

/* stepped tops shared by strata and bedrock */
.stepped-top { position: relative; }

/* ---------------------------------------------------------------- SANDSTONE / FOSSIL RUSH */
.sandstone {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(#7a5236 0 22px, var(--sand) 22px);
  color: var(--ink);
  padding: clamp(90px, 9vw, 130px) 0 clamp(120px, 12vw, 180px);
}
.strata { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.stratum { position: absolute; left: -2%; right: -2%; bottom: -30%; background: var(--c); }
.stratum-edge { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: 44px; color: var(--c); }
.s1 { --c: #d6a765; top: 30%; }
.s2 { --c: #cb9759; top: 52%; }
.s3 { --c: #c28c53; top: 74%; }
.s4 { --c: #b9824d; top: 93%; }
.buried { position: absolute; color: rgb(255 244 220 / .32); width: 120px; }
.b1 { left: 4%; top: 36%; rotate: -24deg; width: 140px; }
.b2 { right: 6%; top: 82%; rotate: 16deg; width: 110px; }
.b3 { left: 46%; top: 95%; rotate: 70deg; width: 90px; }

.fr-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(30px, 5vw, 80px); }
.pill { display: inline-flex; align-items: center; gap: 10px; background: var(--pine); color: var(--bone); border-radius: 999px; padding: 8px 16px 8px 12px; font-size: 14px; font-weight: 600; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgb(196 245 99 / .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgb(196 245 99 / 0); } 100% { box-shadow: 0 0 0 0 rgb(196 245 99 / 0); } }

.fr-wordmark {
  margin: 26px 0 30px; line-height: .8; font-weight: 800; font-stretch: 75%;
  font-size: clamp(88px, 13vw, 210px); letter-spacing: -.045em;
  color: var(--bone);
  transform-style: preserve-3d;
  transition: transform .2s linear;
}
.wm-line { display: block; transform: rotate(-6deg); transform-origin: left; }
.wm-2 { color: #ffc570; margin-left: .32em; }
.fr-wordmark .char { display: inline-block; }
.fr-wordmark .wm-line {
  text-shadow:
    1px 1px 0 #3f2a1a, 2px 2px 0 #3f2a1a, 3px 3px 0 #3f2a1a, 4px 4px 0 #3f2a1a,
    5px 5px 0 #3f2a1a, 6px 6px 0 #3f2a1a, 7px 7px 0 #3f2a1a, 8px 8px 0 #3f2a1a,
    9px 9px 0 #3f2a1a, 10px 10px 0 #3f2a1a, 14px 22px 26px rgb(63 42 26 / .35);
}
.fr-lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; max-width: 31em; color: var(--ink); text-wrap: pretty; }

.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 clamp(22px, 4vw, 54px); margin: 34px 0 30px; }
.facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.facts dt { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.facts dd { margin: 0; font-size: clamp(48px, 5vw, 72px); font-weight: 800; font-stretch: 75%; line-height: .95; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }

.rarity { padding: 18px 20px 14px; background: rgb(255 248 230 / .45); border-radius: 18px; box-shadow: inset 0 0 0 2px rgb(63 42 26 / .12); max-width: 560px; }
.rarity-label { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.rarity-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rarity-row li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rarity-row svg { width: 100%; max-width: 54px; overflow: visible; transition: translate .4s var(--ease-spring), filter .4s; }
.rarity-row li:hover svg { translate: 0 -6px; filter: drop-shadow(0 6px 10px var(--c)); }
.rarity-row span { font-size: 12px; font-weight: 700; min-height: 1.4em; }

.fr-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.fine { margin-top: 18px; font-size: 13px; color: var(--ink-soft); }

.guardian { margin: 0; position: relative; perspective: 900px; }
.guardian svg { width: 100%; overflow: visible; filter: drop-shadow(22px 30px 0 rgb(63 42 26 / .25)); transform-style: preserve-3d; }
.guardian figcaption { position: absolute; left: 6%; bottom: 2%; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.guardian .isl-eye { animation-duration: 2.2s; }

/* ---------------------------------------------------------------- RUN (pinned horizontal) */
.run {
  position: relative; color: var(--ink);
  background: linear-gradient(#b9824d, #a8754a 60%, #8c6040);
  height: 420vh;
}
.run-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3vh, 36px); padding-top: 80px; }
.run-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.run-head h2 { font-size: clamp(40px, 5vw, 76px); font-stretch: 78%; letter-spacing: -.035em; line-height: .9; }
.run-progress { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; font-size: 14px; font-weight: 700; }
.run-progress li { display: flex; flex-direction: column; gap: 8px; width: clamp(64px, 7vw, 110px); opacity: .55; transition: opacity .3s; }
.run-progress li.is-on { opacity: 1; }
.run-progress i { display: block; height: 6px; border-radius: 3px; background: rgb(35 24 15 / .2); overflow: hidden; position: relative; }
.run-progress i::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--f, 0)); }

.run-track { list-style: none; margin: 0; padding: 0 0 0 max(var(--gutter), calc((100vw - 1200px) / 2)); display: flex; gap: 3vw; width: max-content; will-change: transform; }
.run-panel {
  width: min(1040px, 80vw); flex: none;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(20px, 3vw, 48px);
  background: var(--bone); border-radius: 28px; padding: clamp(18px, 2.4vw, 34px);
  box-shadow: 0 10px 0 #6f4a30, 0 40px 60px -30px rgb(40 20 5 / .6);
  min-height: min(60vh, 520px);
}
.run-art { background: radial-gradient(circle at 50% 60%, #f4dcae, #e7c48b); border-radius: 20px; height: 100%; min-height: 280px; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 2px rgb(63 42 26 / .1); }
.scene { width: 100%; height: auto; max-height: 52vh; overflow: visible; }
.run-text { padding-right: clamp(4px, 2vw, 30px); }
.run-step { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--pine); color: var(--lime); font-weight: 800; font-size: 22px; margin-bottom: 20px; box-shadow: 0 4px 0 #050f0b; }
.run-text h3 { font-size: clamp(30px, 3.2vw, 50px); font-stretch: 80%; letter-spacing: -.03em; line-height: .95; margin-bottom: 16px; }
.run-text p { font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-soft); max-width: 26em; }

/* scene micro-motion (runs only while the panel is in view) */
.sc-dust { animation: dust 2.2s ease-out infinite; animation-delay: var(--d); transform-box: fill-box; }
@keyframes dust { 0% { translate: 0 0; opacity: 0; } 20% { opacity: 1; } 100% { translate: 10px -60px; opacity: 0; rotate: 90deg; } }
.sc-pick { animation: pick 1.6s var(--ease-out) infinite; transform-box: view-box; transform-origin: 372px 214px; }
@keyframes pick { 0%, 100% { rotate: 0deg; } 40% { rotate: -22deg; } 55% { rotate: 6deg; } }
.sc-bone { animation: bone-peek 3.2s ease-in-out infinite; }
@keyframes bone-peek { 50% { translate: 0 -6px; } }
.sc-runner { animation: run-bounce .45s ease-in-out infinite alternate; }
@keyframes run-bounce { to { translate: 0 -10px; } }
.sc-skull { animation: chase 1.8s ease-in-out infinite; }
@keyframes chase { 50% { translate: 18px -6px; } }
.sc-speed { animation: speed 1s linear infinite; animation-delay: var(--d); }
@keyframes speed { 0% { translate: 60px 0; opacity: 0; } 30% { opacity: 1; } 100% { translate: -60px 0; opacity: 0; } }
.sc-rays { animation: rays 6s linear infinite; transform-origin: 240px 220px; opacity: .8; }
@keyframes rays { to { rotate: 360deg; } }
.sc-shell-l { animation: crack-l 2.8s var(--ease-out) infinite; transform-origin: 240px 330px; }
.sc-shell-r { animation: crack-r 2.8s var(--ease-out) infinite; transform-origin: 240px 330px; }
@keyframes crack-l { 0%, 30% { rotate: 0deg; } 55%, 85% { rotate: -14deg; translate: -10px 0; } 100% { rotate: 0deg; } }
@keyframes crack-r { 0%, 30% { rotate: 0deg; } 55%, 85% { rotate: 14deg; translate: 10px 0; } 100% { rotate: 0deg; } }
.sc-arc { animation: arc-pop 2.8s var(--ease-spring) infinite; animation-delay: calc(var(--i) * .08s); transform-box: fill-box; transform-origin: center; }
@keyframes arc-pop { 0%, 35% { scale: .6; opacity: .35; } 55%, 90% { scale: 1.08; opacity: 1; } 100% { scale: .6; opacity: .35; } }
.sc-item { animation: bob-small 4s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
.sc-stars path { animation: star 2.6s var(--ease-spring) infinite; animation-delay: calc(var(--i) * .12s); transform-box: fill-box; transform-origin: center; }
@keyframes star { 0%, 10% { scale: 0; } 30%, 85% { scale: 1; } 100% { scale: 0; } }
.run-panel:not(.is-live) .scene * { animation-play-state: paused; }

/* ---------------------------------------------------------------- BEDROCK / STUDIO */
.bedrock { position: relative; isolation: isolate; background: var(--rock); padding: clamp(110px, 12vw, 170px) 0 clamp(100px, 12vw, 170px); }
.bedrock-edge {
  position: absolute; left: 0; right: 0; bottom: 100%; height: 30px;
  background:
    linear-gradient(90deg, var(--rock) 0 14%, transparent 14% 24%, var(--rock) 24% 49%, transparent 49% 55%, var(--rock) 55% 80%, transparent 80% 88%, var(--rock) 88%) 0 0 / 360px 15px repeat-x,
    linear-gradient(var(--rock) 0 0) 0 15px / 100% 15px no-repeat;
}
.bedrock-grid {
  position: absolute; inset: -20% 0; z-index: -1; opacity: .5;
  background:
    repeating-linear-gradient(30deg, transparent 0 46px, rgb(196 245 99 / .05) 46px 48px),
    repeating-linear-gradient(-30deg, transparent 0 46px, rgb(196 245 99 / .05) 46px 48px),
    repeating-linear-gradient(90deg, transparent 0 78px, rgb(196 245 99 / .035) 78px 80px);
  -webkit-mask-image: radial-gradient(70% 60% at 30% 40%, #000, transparent);
  mask-image: radial-gradient(70% 60% at 30% 40%, #000, transparent);
}
.studio { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.studio-intro { position: sticky; top: 130px; }
.studio-intro h2 { font-size: clamp(46px, 5.6vw, 88px); font-stretch: 78%; letter-spacing: -.035em; line-height: .9; margin-bottom: 30px; color: var(--bone); }
.studio-intro h2 .w { display: inline-block; }
.studio-intro p { color: #b8c4b6; font-size: 18px; max-width: 30em; }
.studio-intro p + p { margin-top: 14px; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.principles li {
  display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 22px;
  padding: 22px 26px 22px 14px; border-radius: 24px;
  background: linear-gradient(135deg, rgb(255 255 255 / .045), rgb(255 255 255 / .01));
  box-shadow: inset 0 0 0 1px rgb(247 239 217 / .07);
  transition: background .3s, translate .4s var(--ease-out);
}
.principles li:nth-child(2) { margin-left: clamp(0px, 4vw, 60px); }
.principles li:nth-child(3) { margin-left: clamp(0px, 8vw, 120px); }
.principles li:hover { background: linear-gradient(135deg, rgb(196 245 99 / .09), rgb(255 255 255 / .01)); }
.p-icon { width: 150px; height: auto; overflow: visible; }
.principles h3 { font-size: clamp(22px, 2vw, 28px); font-stretch: 85%; letter-spacing: -.02em; margin-bottom: 8px; line-height: 1.05; }
.principles p { color: #aab7ab; font-size: 16px; }
.icon-gem { animation: bob-small 3.6s ease-in-out infinite; }

/* ---------------------------------------------------------------- CORE */
.core {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 45%, #0b3a48 0%, #072530 40%, var(--core) 75%);
  padding: clamp(120px, 14vw, 200px) 0 clamp(100px, 10vw, 150px);
  text-align: center;
}
.core::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 60px; z-index: 1;
  background: linear-gradient(var(--rock), transparent);
}
.core-glow {
  position: absolute; z-index: -1; width: 70vmax; aspect-ratio: 1; left: var(--gx, 50%); top: var(--gy, 40%);
  translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgb(85 221 255 / .28), rgb(85 221 255 / 0) 60%);
  transition: left .8s var(--ease-out), top .8s var(--ease-out);
}
.core-gem-wrap { position: relative; width: clamp(220px, 30vw, 420px); margin: 0 auto -10px; }
.orbit { position: absolute; left: 50%; top: 45%; width: 14px; height: 14px; margin: -7px; background: #bff4ff; border-radius: 3px; box-shadow: 0 0 14px #55ddff; animation: orbit var(--t, 9s) linear infinite; animation-delay: var(--d, 0s); }
.o1 { --t: 9s; --rx: 230px; }
.o2 { --t: 12s; --d: -4s; --rx: 280px; width: 9px; height: 9px; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.o3 { --t: 15s; --d: -9s; --rx: 200px; width: 7px; height: 7px; }
.o4 { --t: 11s; --d: -2s; --rx: 310px; width: 11px; height: 11px; background: #ffc14d; box-shadow: 0 0 12px #ffc14d; }
@keyframes orbit {
  0% { transform: rotate(0deg) translateX(var(--rx)) rotate(0deg) scale(1); z-index: 1; }
  50% { transform: rotate(180deg) translateX(var(--rx)) rotate(-180deg) scale(.6); }
  100% { transform: rotate(360deg) translateX(var(--rx)) rotate(-360deg) scale(1); }
}
.orbit { transform-origin: center; translate: 0 0; }
@media (max-width: 760px) { .o1 { --rx: 150px; } .o2 { --rx: 175px; } .o3 { --rx: 130px; } .o4 { --rx: 185px; } }
.core-gem { width: 100%; overflow: visible; filter: drop-shadow(0 0 40px rgb(85 221 255 / .45)); animation: core-float 6s ease-in-out infinite; }
.core-gem .facet { animation: facet 4s ease-in-out infinite; animation-delay: calc(var(--i) * .35s); }
.core-gem .glint { animation: glint 4s ease-in-out infinite; }
@keyframes core-float { 50% { translate: 0 -16px; rotate: 2deg; } }
@keyframes facet { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }
@keyframes glint { 0%, 70%, 100% { opacity: .2; } 80% { opacity: 1; } }
.core-copy { position: relative; }
.core-kicker { color: #8fd6e6; font-weight: 600; font-size: 17px; margin-bottom: 18px; }
.core h2 { font-size: clamp(54px, 9vw, 150px); font-stretch: 76%; letter-spacing: -.04em; line-height: .86; }
.core h2 span { display: block; }
.core h2 span + span { color: var(--lime); }
.core-actions { display: flex; align-items: center; justify-content: center; gap: 30px; margin-top: 44px; flex-wrap: wrap; }
.text-link.light { color: var(--bone); }

/* ---------------------------------------------------------------- FOOTER */
.site-footer { background: var(--core); color: #9fb4b8; padding: 40px 0 28px; border-top: 1px solid rgb(143 214 230 / .12); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.footer-brand { font-weight: 800; font-size: 22px; font-stretch: 85%; letter-spacing: -.03em; color: var(--bone); }
.footer-inner > p { margin-right: auto; font-size: 14px; line-height: 1.7; }
.footer-email { color: var(--lime); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.footer-email:hover { color: var(--bone); }
.back-top { font-size: 14px; font-weight: 600; display: inline-flex; gap: 10px; color: var(--bone); }
.back-top span { transition: translate .3s var(--ease-spring); }
.back-top:hover span { translate: 0 -4px; }
.footer-bottom { width: 100%; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; padding-top: 22px; border-top: 1px solid rgb(143 214 230 / .1); }

/* ---------------------------------------------------------------- reveal states (JS only) */
.js [data-reveal] { opacity: 0; translate: 0 40px; transition: opacity .9s var(--ease-out), translate .9s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
.js .principles .blk { opacity: 0; translate: 0 -40px; transition: opacity .4s, translate .7s var(--ease-spring); transition-delay: calc(var(--i, 0) * 70ms + 200ms); }
.js .principles li.is-in .blk { opacity: 1; translate: 0 0; }
.js .rarity-row svg { scale: .2; opacity: 0; transition: scale .6s var(--ease-spring), opacity .3s, translate .4s var(--ease-spring), filter .4s; transition-delay: calc(var(--i) * 90ms + 200ms); }
.js .rarity.is-in .rarity-row svg { scale: 1; opacity: 1; }
.js .studio-intro h2 .w { opacity: .12; transition: opacity .5s; }
.js .studio-intro h2 .w.is-lit { opacity: 1; }

/* intro sequence */
.js .t-big .char { translate: 0 -120vh; rotate: var(--r, 0deg); }
.js .t-small { opacity: 0; translate: 0 12px; }
.js .hero-copy { opacity: 0; translate: 0 20px; }
.is-loaded .t-big .char { translate: 0 0; rotate: 0deg; transition: translate 1s cubic-bezier(.3, 1.35, .5, 1), rotate 1s cubic-bezier(.3, 1.35, .5, 1); transition-delay: calc(var(--ci) * 45ms + 250ms); }
.is-loaded .t-small { opacity: 1; translate: 0 0; transition: opacity .7s .1s, translate .7s .1s var(--ease-out); }
.is-loaded .hero-copy { opacity: 1; translate: 0 0; transition: opacity .9s 1.1s, translate .9s 1.1s var(--ease-out); }
.js .island { opacity: 0; translate: 0 120px; scale: .92; }
.is-loaded .island { opacity: 1; translate: 0 0; scale: 1; transition: opacity 1s .5s, translate 1.6s .5s var(--ease-out), scale 1.6s .5s var(--ease-out); }
.js .layer-far svg, .js .layer-mid svg { translate: 0 60px; transition: translate 1.8s var(--ease-out); }
.is-loaded .layer-far svg, .is-loaded .layer-mid svg { translate: 0 0; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .fr-grid { grid-template-columns: 1fr; }
  .guardian { max-width: 460px; margin-inline: auto; order: -1; margin-bottom: -40px; }
  .studio { grid-template-columns: 1fr; }
  .studio-intro { position: static; }
  .principles li:nth-child(n) { margin-left: 0; }
  .hero-copy { flex-direction: column; align-items: flex-start; gap: 22px; }
  .island-wrap { width: min(560px, 66vw, 62vh); }
}
@media (max-width: 860px) {
  .run { height: auto; }
  .run-sticky { position: static; height: auto; padding: 100px 0 110px; }
  .run-track { flex-direction: column; width: auto; padding: 0; margin-inline: auto; width: min(1200px, 100% - 2 * var(--gutter)); gap: 22px; transform: none !important; }
  .run-panel { width: 100%; grid-template-columns: 1fr; min-height: 0; }
  .run-art { min-height: 0; aspect-ratio: 480 / 330; }
  .run-progress { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 46px; height: 46px; padding: 12px; background: rgb(247 239 217 / .08); border: 1px solid rgb(247 239 217 / .14); border-radius: 12px; }
  .menu-toggle span { width: 20px; height: 2px; background: var(--bone); border-radius: 2px; transition: rotate .3s, translate .3s; }
  .menu-toggle[aria-expanded='true'] span:first-child { rotate: 45deg; translate: 0 4px; }
  .menu-toggle[aria-expanded='true'] span:last-child { rotate: -45deg; translate: 0 -4px; }
  .header-inner { background: rgb(10 24 19 / .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: rgb(247 239 217 / .1); position: relative; }
  .site-header nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; background: #11271f; border-radius: 18px; border: 1px solid rgb(247 239 217 / .12); box-shadow: 0 24px 40px -10px rgb(0 0 0 / .6); }
  .site-header nav.is-open { display: flex; }
  .site-header nav a:not(.nav-cta) { padding: 14px; font-size: 17px; }
  .nav-cta { margin: 6px 0 0; justify-content: space-between; padding: 15px 16px; }

  .hero { min-height: max(100svh, 640px); }
  .hero-title { top: 104px; }
  .t-big { font-size: clamp(54px, 19vw, 120px); white-space: normal; line-height: .84; }
  .t-big .space { display: block; height: 0; }
  .island-wrap { top: auto; bottom: calc(clamp(26px, 5vh, 56px) + 230px); width: min(92vw, 52vh); }
  .layer-far { bottom: 6%; height: 50%; left: -60%; right: -60%; }
  .layer-mid { height: 36%; left: -50%; right: -50%; }
  .layer-near { height: calc(36% + 40px); left: -40%; right: -40%; }
  .sun { left: 86%; top: 16%; width: 64px; }
  .hero-copy { gap: 18px; }
  .hero-lede { font-size: 16px; }
  .dig-hint { display: none; }
  .f1, .f4, .f5 { display: none; }

  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts dt { font-size: 12px; line-height: 1.3; }
  .rarity { padding: 14px 12px 10px; }
  .rarity-row span { font-size: 10px; }
  .wm-2 { margin-left: .2em; }
  .guardian { margin-bottom: 18px; }
  .guardian figcaption { position: static; text-align: center; margin-top: 4px; }
  .sandstone { padding-bottom: 70px; }
  .run-sticky { padding: 70px 0 90px; }
  .f3 { --s: 40px; right: 4%; top: 52%; }

  .principles li { grid-template-columns: 96px 1fr; padding: 18px 18px 18px 8px; gap: 12px; }
  .p-icon { width: 96px; }

  .footer-bottom { flex-direction: column; }
}
@media (max-width: 380px) {
  .hero-actions .button { padding: 0 20px; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html:not(.lenis) { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .run { height: auto; }
  .run-sticky { position: static; height: auto; padding: 100px 0 110px; }
  .run-track { flex-direction: column; padding: 0; margin-inline: auto; width: min(1200px, 100% - 2 * var(--gutter)); transform: none !important; }
  .run-panel { width: 100%; }
  .run-progress { display: none; }
}

.fr-wordmark .char { transition: translate .35s var(--ease-spring); }
.fr-wordmark .char:hover { translate: 0 -.07em; }
