/* =============================================================
   CARETTA — Alanya. Natural-history plate meets the Mediterranean.
   ============================================================= */

:root {
  /* sea */
  --abyss: #03222B;
  --abyss-2: #021A21;
  --current: #0C4650;
  --glint: #CFEFE6;
  --glint-dim: rgba(207, 239, 230, .64);
  --glint-line: rgba(207, 239, 230, .16);
  /* plastic murk */
  --murk: #0E211F;
  --murk-2: #0A1716;
  /* shore */
  --sand: #D6BF94;
  --sand-2: #C9AF80;
  --paper: #F1E6CD;
  --shell: #5B2E16;
  --shell-dim: rgba(91, 46, 22, .72);
  --shell-line: rgba(91, 46, 22, .16);
  /* accents */
  --plastron: #F2B53A;
  --synthetic: #FF4D8D;
  --male: #008A9E;
  --female: #C0501A;
  --indigo: #5552D6;
  /* night */
  --night: #0A0F24;
  --night-2: #121A3A;
  --moon: #F4EEDC;
  --moon-dim: rgba(244, 238, 220, .7);

  --serif: 'Piazzolla', 'Georgia', serif;
  --sans: 'Geologica', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ks-orange: #F05A22;
  --ks-ink: #1B1712;
  --ks-paper: #F3EADB;
  --tab-h: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --gutter: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 76px;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.2 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --sand-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .33 0 0 0 0 .2 0 0 0 0 .09 0 0 0 2.4 -1.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--glint);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }
img, svg, canvas, video { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure, dl, dd { margin: 0; }
ol, ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--plastron); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: fixed; left: 16px; top: -64px; z-index: 300;
  background: var(--plastron); color: #22160A; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip:focus { top: 16px; }

/* ---------- type ---------- */
.h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3.4rem, 9vw, 8.4rem); line-height: .9; letter-spacing: -.012em;
}
.h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.5rem, 5.2vw, 4.7rem); line-height: .98; letter-spacing: -.006em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem); line-height: 1.06;
  text-wrap: balance;
}
.kicker {
  display: flex; align-items: center; gap: .75rem;
  font-size: .875rem; font-weight: 500; color: var(--glint-dim);
  margin-bottom: 1.6rem;
}
.kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; }
i { font-style: italic; }

/* ---------- logo mark ---------- */
.mark { width: 100%; height: auto; overflow: visible; }
.mark__fill { fill: currentColor; }
.mark__stroke { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- loader / curtain / grain ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--abyss);
  display: grid; place-items: center;
}
.loader__mark { width: 84px; color: var(--glint); }
.curtain {
  position: fixed; inset: 0; z-index: 190;
  background: var(--plastron);
  display: grid; place-items: center;
  clip-path: inset(100% 0 0 0);
  pointer-events: none;
}
.curtain__word {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(3.4rem, 11vw, 10rem); line-height: 1; color: #22160A;
}
.grain {
  position: fixed; inset: -60%; z-index: 150; pointer-events: none;
  background-image: var(--noise); background-size: 220px;
  opacity: .055;
  animation: grain 1s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* nav, tab bar, sheet: see chrome.css */

/* =============================================================
   HERO + PLATE
   ============================================================= */
.hero {
  --tw: min(74vh, 50vw);
  position: relative; height: 100vh; height: 100svh;
  overflow: hidden; background: var(--abyss);
}
.water { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.hero__stage { position: absolute; inset: 0; }

.hero__copy {
  position: absolute; left: var(--gutter); bottom: clamp(24px, 5vh, 56px); z-index: 1;
  pointer-events: none;
}
.hero__place { font-size: .875rem; color: var(--glint-dim); margin-bottom: .6rem; padding-left: .3rem; }
.hero__title {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(5rem, 16.5vw, 17rem); line-height: .78; letter-spacing: -.025em;
  color: var(--glint);
  display: flex; flex-direction: column;
}
.hero__line { display: block; overflow: hidden; padding: .02em .08em .1em 0; }
.hero__line--2 { padding-left: .9em; }
.hero__line .ch { display: inline-block; will-change: transform; }

.hero__sub {
  position: absolute; left: var(--gutter); top: calc(var(--nav-h) + 7vh); z-index: 3;
  width: min(24rem, 32vw);
}
.hero__name { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--plastron); margin-bottom: .5rem; }
.hero__lead { font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.5; color: var(--glint); }

.hero__scroll {
  position: absolute; right: calc(var(--gutter) + 28px); bottom: clamp(24px, 5vh, 56px); z-index: 3;
  display: flex; align-items: center; gap: .9rem; font-size: .8125rem; color: var(--glint-dim);
}
.hero__scroll-line { position: relative; width: 56px; height: 1px; background: var(--glint-line); overflow: hidden; }
.hero__scroll-line::after {
  content: ''; position: absolute; inset: 0; background: var(--glint);
  animation: scrollhint 2.4s var(--ease-out) infinite;
}
@keyframes scrollhint { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

.turtle-wrap {
  position: absolute; left: 50%; top: 53%;
  width: var(--tw); height: var(--tw);
  margin-left: calc(var(--tw) / -2); margin-top: calc(var(--tw) / -2);
  z-index: 2;
}
.turtle-drift { position: relative; width: 100%; height: 100%; }
.turtle { position: relative; width: 100%; height: 100%; overflow: visible; opacity: 0; }
.turtle-shadow {
  position: absolute; left: 22%; right: 18%; top: 26%; bottom: 10%;
  background: radial-gradient(closest-side, rgba(0, 8, 12, .55), rgba(0, 8, 12, 0));
  transform: translate(5%, 9%);
  opacity: 0;
}
.turtle .ln { fill: none; stroke: var(--glint); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.turtle .ln--soft { stroke-opacity: .5; stroke-width: .9; }
.turtle .ln--bold { stroke-width: 1.6; }
.turtle .fill { opacity: 0; }
.turtle .eye { fill: var(--glint); opacity: 0; }
.turtle .ring { fill: none; stroke: var(--plastron); stroke-width: 1.6; opacity: 0; }
.turtle .ring-dot { fill: var(--plastron); opacity: 0; }

.plate__leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; overflow: visible; }
.plate__leaders path { fill: none; stroke: var(--glint-dim); stroke-width: 1; stroke-dasharray: 1 1; stroke-dashoffset: 1; }

.plate__head {
  position: absolute; left: var(--gutter); top: calc(var(--nav-h) + 3vh); z-index: 3;
  opacity: 0; visibility: hidden;
}
.plate__fig { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1; }
.plate__cap { margin-top: .5rem; font-size: .875rem; color: var(--glint-dim); line-height: 1.5; }

.plate__parts { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.part { position: absolute; width: min(300px, 23vw); opacity: 0; visibility: hidden; }
.part[data-part="head"] { left: var(--gutter); top: 30%; }
.part[data-part="shell"] { right: calc(var(--gutter) + 28px); top: 22%; }
.part[data-part="front"] { left: var(--gutter); top: 62%; }
.part[data-part="rear"] { right: calc(var(--gutter) + 28px); top: 64%; }
.part__dot { position: absolute; top: .6rem; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--plastron); }
.part--l .part__dot { right: -18px; }
.part--r .part__dot { left: -18px; }
.part__n { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.2rem; color: var(--plastron); }
.part__t { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1.05; margin: .2rem 0 .5rem; }
.part__d { font-size: .9375rem; line-height: 1.5; color: var(--glint-dim); }

/* =============================================================
   SYMBOL
   ============================================================= */
.symbol {
  position: relative;
  padding: clamp(110px, 18vh, 200px) var(--gutter) clamp(100px, 16vh, 180px);
  background: linear-gradient(var(--abyss), var(--abyss-2));
}
.symbol__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.symbol .kicker { grid-column: 1 / -1; }
.symbol__text {
  grid-column: 1 / span 8; grid-row: 2;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 3.7vw, 3.75rem); line-height: 1.1; letter-spacing: -.004em;
  text-wrap: pretty;
}
.motion .symbol__text .w { opacity: .16; }
.symbol__slot { grid-column: 10 / span 3; grid-row: 2 / span 2; align-self: start; margin-top: .6rem; }
.symbol__note { grid-column: 1 / span 5; grid-row: 3; margin-top: 3rem; color: var(--glint-dim); max-width: 32em; font-size: 1.05rem; }

/* ---------- placeholder slot ---------- */
.slot { position: relative; }
.slot__frame {
  position: relative; aspect-ratio: var(--ratio, 4 / 3);
  border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem;
  color: var(--glint-dim);
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(207, 239, 230, .12), transparent 60%),
    repeating-linear-gradient(135deg, rgba(207, 239, 230, .05) 0 1px, transparent 1px 11px),
    rgba(2, 26, 33, .6);
  box-shadow: inset 0 0 0 1px rgba(207, 239, 230, .16);
}
.slot__frame::before {
  content: ''; position: absolute; inset: 10px;
  border: 1px dashed rgba(207, 239, 230, .14); border-radius: 2px; pointer-events: none;
}
.slot__frame::after {
  content: ''; position: absolute; inset: -40%;
  background: radial-gradient(30% 30% at 50% 50%, rgba(207, 239, 230, .09), transparent 70%);
  animation: slotdrift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes slotdrift { from { transform: translate(-18%, -10%); } to { transform: translate(18%, 14%); } }
.slot__icon { width: 30px; height: 30px; color: inherit; }
.slot__kind { font-size: .8125rem; font-weight: 500; }
.slot figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin-top: .7rem; font-size: .8125rem; color: var(--glint-dim);
}
.slot__later { font-family: var(--serif); font-style: italic; font-size: .95rem; opacity: .8; white-space: nowrap; }
.slot--light .slot__frame {
  color: var(--shell-dim);
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255, 250, 238, .5), transparent 60%),
    repeating-linear-gradient(135deg, rgba(91, 46, 22, .06) 0 1px, transparent 1px 11px),
    rgba(241, 230, 205, .55);
  box-shadow: inset 0 0 0 1px rgba(91, 46, 22, .2);
}
.slot--light .slot__frame::before { border-color: rgba(91, 46, 22, .18); }
.slot--light .slot__frame::after { background: radial-gradient(30% 30% at 50% 50%, rgba(255, 252, 244, .5), transparent 70%); }
.slot--light figcaption { color: var(--shell-dim); }

/* =============================================================
   LIFE CYCLE
   ============================================================= */
.cycle { position: relative; background: var(--abyss-2); }
.cycle__pin {
  position: relative; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav-h);
}
.cycle__head {
  padding: 0 var(--gutter);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  margin-bottom: clamp(20px, 5vh, 56px);
}
.cycle__lead { max-width: 22em; color: var(--glint-dim); font-size: 1.05rem; }
.cycle__viewport { position: relative; }
.cycle__track { position: relative; width: max-content; padding: 0 var(--gutter); }
.cycle__list { position: relative; z-index: 1; display: flex; gap: clamp(40px, 7vw, 130px); }
.cycle__route { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; }
.cycle__route path { fill: none; stroke: rgba(242, 181, 58, .5); stroke-width: 1.2; stroke-dasharray: 2 7; stroke-linecap: round; }
.stage { width: clamp(270px, 27vw, 420px); }
.stage__n { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--plastron); }
.stage__art { height: clamp(130px, 25vh, 230px); margin: .4rem 0 1.4rem; }
.stage__art svg { height: 100%; width: auto; max-width: 100%; overflow: visible; }
.stage__art path, .stage__art ellipse { fill: none; stroke: var(--glint); stroke-width: 1.3; stroke-linecap: round; }
.stage__art .grains circle, .stage__art .bubbles circle { fill: var(--glint-dim); stroke: none; }
.stage__art .bubbles circle { fill: none; stroke: var(--glint-dim); stroke-width: 1; }
.stage__art .eggs circle { fill: rgba(244, 238, 220, .92); stroke: var(--abyss); stroke-width: 1; }
.stage__art .chamber { stroke-dasharray: 3 5; stroke: var(--glint-dim); }
.stage__art .depth { stroke-dasharray: 2 4; stroke: var(--glint-dim); }
.stage__art .sea-line.faint { stroke-opacity: .4; }
.stage__art .tracks path { stroke: var(--glint-dim); }
.stage__art .tracks.wide path { stroke-width: 2.2; }
.stage__art .drag { stroke-dasharray: 1 6; }
.stage__art .weed path { stroke: #7DA88E; stroke-width: 2; }
.stage__art .floor path { stroke: var(--glint-dim); }
.stage__art .floor circle { fill: var(--glint-line); stroke: none; }
.stage__art .nest { fill: none; stroke: var(--plastron); stroke-width: 1.3; stroke-dasharray: 3 4; }
.stage__art .glyph { fill: var(--glint); }
.stage__art .glyph.dim { fill: var(--glint-dim); }
.stage__when { font-size: .875rem; font-weight: 500; color: var(--plastron); }
.stage__t { font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 3.3vw, 3.2rem); line-height: 1; margin: .3rem 0 .8rem; }
.stage__d { max-width: 25em; color: var(--glint-dim); }
.cycle__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 32px; height: 1px; background: var(--glint-line); }
.cycle__progress span { position: absolute; inset: 0; background: var(--plastron); transform-origin: left; transform: scaleX(0); }

/* =============================================================
   ODDS — 1 in 1000
   ============================================================= */
.odds { position: relative; background: linear-gradient(var(--abyss-2), #06191A); }
.odds__pin {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: calc(var(--nav-h) + 4vh) calc(var(--gutter) + 20px) 6vh var(--gutter);
}
.odds__title { font-family: var(--serif); font-weight: 500; font-size: clamp(3.2rem, 7vw, 6.6rem); line-height: .92; letter-spacing: -.01em; }
.odds__text { margin-top: 1.6rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); max-width: 26em; color: var(--glint); }
.odds__hint { margin-top: 1.6rem; font-family: var(--serif); font-style: italic; font-size: 1.45rem; color: var(--plastron); }
.motion .odds__hint { opacity: 0; }
.odds__field { position: relative; width: 100%; aspect-ratio: 50 / 20; }
.odds__field canvas { width: 100%; height: 100%; }

/* =============================================================
   MARQUEE
   ============================================================= */
.marquee { overflow: hidden; padding: 5vh 0; background: linear-gradient(#06191A, var(--murk)); }
.marquee__row {
  display: flex; align-items: center; gap: 3.5vw; width: max-content;
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 7vw, 6.4rem); line-height: 1.1;
  white-space: nowrap; color: rgba(207, 239, 230, .86);
  will-change: transform;
}
.marquee__row > span:nth-of-type(odd) { font-style: italic; }
.marquee__g { width: .5em; height: .5em; fill: var(--plastron); transform: rotate(90deg); flex: none; }

/* =============================================================
   PLASTIC
   ============================================================= */
.plastic { position: relative; background: var(--murk); }
.plastic__pin {
  position: relative; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #17302B 0%, var(--murk) 55%, var(--murk-2) 100%);
}
.plastic__dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.plastic__head { position: absolute; left: var(--gutter); top: calc(var(--nav-h) + 4vh); z-index: 4; max-width: 38rem; pointer-events: none; }
.plastic__lead { margin-top: 1.2rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); max-width: 26em; }
.scan { position: absolute; inset: 0; z-index: 2; }
.scan__layer { position: absolute; inset: 0; }
.scan__layer--truth {
  clip-path: inset(0 calc(100% - var(--scan, 0%)) 0 0);
  background:
    linear-gradient(90deg, rgba(255, 77, 141, 0) 0%, rgba(255, 77, 141, .06) 100%),
    repeating-linear-gradient(0deg, rgba(207, 239, 230, .05) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(207, 239, 230, .05) 0 1px, transparent 1px 48px),
    rgba(4, 12, 12, .72);
}
.scan__line {
  position: absolute; top: 0; bottom: 0; left: var(--scan, 0%); width: 1px;
  background: var(--synthetic); box-shadow: 0 0 18px 1px rgba(255, 77, 141, .7);
  opacity: 0; z-index: 3;
}
.scan__tag {
  position: absolute; bottom: 14vh; white-space: nowrap;
  font-size: .8125rem; font-weight: 500; padding: .35rem .75rem; border-radius: 99px;
}
.scan__tag--real { right: 14px; background: rgba(255, 77, 141, .16); color: #FFD0E0; }
.scan__tag--her { left: 14px; background: rgba(207, 239, 230, .08); color: var(--glint-dim); }
.form { position: absolute; left: var(--x); top: var(--y); width: calc(var(--w) * 1vw); transform: translate(-50%, -50%); }
.form__bob { position: relative; transform-origin: 50% 20%; animation: bob var(--dur, 7s) ease-in-out var(--delay, 0s) infinite; }
.form svg { width: 100%; height: auto; overflow: visible; }
.scan__layer--ghost .form svg { filter: blur(4px); }
.scan__layer--ghost .form path, .scan__layer--ghost .form ellipse { fill: rgba(207, 239, 230, .2); stroke: rgba(207, 239, 230, .35); stroke-width: 2; }
.scan__layer--truth .form path, .scan__layer--truth .form ellipse { fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.scan__layer--truth .form--jelly path, .scan__layer--truth .form--jelly ellipse { stroke: var(--glint); }
.scan__layer--truth .form--jelly .bell { fill: rgba(207, 239, 230, .08); }
.scan__layer--truth .form--bag path { stroke: var(--synthetic); }
.scan__layer--truth .form--bag .body { fill: rgba(255, 77, 141, .12); }
.form .bell { transform-box: fill-box; transform-origin: 50% 0%; }
.form--jelly .bell { animation: pulse 2.6s ease-in-out var(--delay, 0s) infinite; }
.form__tag {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, .4rem);
  font-size: .75rem; font-weight: 500; white-space: nowrap;
  padding: .2rem .55rem; border-radius: 99px; border: 1px solid;
}
.form--bag .form__tag { color: #FFC2D7; border-color: rgba(255, 77, 141, .6); background: rgba(255, 77, 141, .14); }
.form--jelly .form__tag { color: var(--glint); border-color: rgba(207, 239, 230, .35); }
@keyframes bob {
  0%, 100% { transform: translateY(-12px) rotate(-3deg); }
  50% { transform: translateY(12px) rotate(3deg); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1, 1); }
  45% { transform: scale(1.07, .88); }
}
.plastic__after {
  position: absolute; right: calc(var(--gutter) + 28px); top: calc(var(--nav-h) + 4vh); z-index: 4;
  max-width: 12em; text-align: right;
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.3vw, 3.1rem); line-height: 1.02;
}
.motion .plastic__after { opacity: 0; }

/* =============================================================
   STATS
   ============================================================= */
.stats {
  background: var(--murk-2);
  padding: clamp(100px, 16vh, 180px) calc(var(--gutter) + 20px) clamp(60px, 10vh, 120px) var(--gutter);
}
.stats__title { margin-bottom: clamp(48px, 9vh, 96px); max-width: 12em; }
.stat {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px);
  align-items: start;
  padding: clamp(28px, 4vh, 48px) 0 clamp(56px, 10vh, 110px);
  border-top: 1px solid var(--glint-line);
}
.stat--turtles .stat__num { order: 2; text-align: right; }
.stat__num {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(5rem, 15vw, 13.5rem); line-height: .82; letter-spacing: -.03em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--glint);
}
.stat--flow .stat__num { font-size: clamp(3.4rem, 9.4vw, 9rem); line-height: .9; }
.stat__text { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.45; max-width: 26em; text-wrap: pretty; }
.stat__src { margin-top: 1.6rem; font-size: .8125rem; color: var(--glint-dim); }
.stat__legend { margin-top: .8rem; font-size: .875rem; color: var(--glint-dim); max-width: 28em; }
.share { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 2rem; }
.share .cells { display: grid; grid-template-columns: repeat(10, 10px); gap: 3px; }
.cell { width: 10px; height: 10px; border-radius: 2px; background: rgba(207, 239, 230, .13); transition: background .4s; }
.share__grid--water .cell.on { background: #4FB7C3; }
.share__grid--plastic .cell.on { background: var(--synthetic); }
.share figcaption { margin-top: .7rem; font-size: .875rem; color: var(--glint-dim); }
.share figcaption b { color: var(--glint); font-weight: 600; margin-left: .2rem; }
.hatch-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2rem; max-width: 460px; }
.hatch-grid svg { width: 28px; height: 28px; fill: rgba(207, 239, 230, .32); transition: fill .5s; }
.hatch-grid svg.ate { fill: var(--synthetic); }
.live {
  margin-top: 2rem; padding: 1.1rem 1.4rem;
  border-left: 2px solid var(--synthetic); background: rgba(255, 77, 141, .07);
}
.live__label { font-size: .875rem; color: var(--glint-dim); }
.live__num { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.live__unit { font-size: .55em; color: var(--glint-dim); font-family: var(--sans); font-weight: 400; }

/* =============================================================
   THREATS
   ============================================================= */
.threats { background: var(--murk-2); padding: clamp(40px, 6vh, 80px) calc(var(--gutter) + 20px) clamp(100px, 16vh, 180px) var(--gutter); }
.threats__title { margin-bottom: clamp(40px, 7vh, 72px); max-width: 13em; }
.threat {
  position: relative;
  display: grid; grid-template-columns: 52px minmax(0, 5fr) minmax(0, 5fr); gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: clamp(20px, 3vh, 32px) 0;
}
.threat::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--glint-line);
}
.motion .threat::before { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out) var(--d, 0s); }
.motion .threat.is-in::before { transform: scaleX(1); }
.threat::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--glint); transform-origin: left; transform: scaleX(0);
  transition: transform .9s var(--ease-out);
}
.threat:hover::after { transform: scaleX(1); }
.threat__icon { width: 44px; height: 44px; fill: none; stroke: var(--glint-dim); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.threat__icon circle { fill: var(--glint-dim); stroke: none; }
.threat__icon .pink { fill: var(--synthetic); stroke: none; }
.threat:hover .threat__icon { stroke: var(--plastron); }
.threat__t { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; transition: transform .6s var(--ease-out); }
.threat:hover .threat__t { transform: translateX(10px); }
.threat__d { color: var(--glint-dim); font-size: 1.05rem; max-width: 30em; }

/* =============================================================
   DECAY
   ============================================================= */
.decay { background: linear-gradient(var(--murk-2), #0D1D1A); padding: clamp(80px, 12vh, 140px) calc(var(--gutter) + 20px) clamp(60px, 8vh, 100px) var(--gutter); }
.decay__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(40px, 7vh, 72px); }
.decay__lead { max-width: 25em; color: var(--glint-dim); font-size: 1.05rem; }
.decay__chart { --label: clamp(140px, 19vw, 250px); --val: 6.5em; }
.bar {
  display: grid; grid-template-columns: var(--label) minmax(0, 1fr) var(--val);
  align-items: center; gap: 1rem; padding: .55rem 0;
}
.bar__label { font-size: 1rem; }
.bar__track { position: relative; height: 14px; }
.bar__track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(207, 239, 230, .07); }
.bar__fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: calc(var(--v) / 600 * 100%); min-width: 4px;
  border-radius: 0 4px 4px 0;
  background: rgba(207, 239, 230, .78);
  transform-origin: left; transform: scaleX(var(--grow, 1));
}
.bar--turtle .bar__label, .bar--turtle .bar__value { color: var(--plastron); }
.bar--turtle .bar__fill { background: var(--plastron); }
.bar__glyph {
  position: absolute; left: calc(var(--v) / 600 * 100%); top: 50%;
  width: 22px; height: 22px; fill: var(--plastron);
  transform: translate(6px, -50%) rotate(90deg); opacity: var(--grow, 1);
}
.bar__value { font-size: .9375rem; color: var(--glint-dim); font-variant-numeric: tabular-nums; }
.decay__axis {
  position: relative; height: 1.4rem;
  margin: .8rem calc(var(--val) + 1rem) 0 calc(var(--label) + 1rem);
  border-top: 1px solid var(--glint-line);
  font-size: .75rem; color: var(--glint-dim); font-variant-numeric: tabular-nums;
}
.decay__axis span { position: absolute; top: .4rem; transform: translateX(-50%); }
.decay__axis span:nth-child(1) { left: 0; transform: none; }
.decay__axis span:nth-child(2) { left: 16.667%; }
.decay__axis span:nth-child(3) { left: 33.333%; }
.decay__axis span:nth-child(4) { left: 50%; }
.decay__axis span:nth-child(5) { left: 66.667%; }
.decay__axis span:nth-child(6) { left: 83.333%; }
.decay__axis span:nth-child(7) { left: 100%; }
.decay__src { margin-top: 3rem; font-size: .8125rem; color: var(--glint-dim); }

/* =============================================================
   SHORE transition
   ============================================================= */
.shore {
  position: relative; height: clamp(200px, 38vh, 400px); margin-top: -1px;
  background-color: var(--sand); background-image: var(--sand-noise); background-size: 260px;
}
.shore__svg { width: 100%; height: 100%; }
.shore__sand { fill: none; }
.shore__wet { fill: rgba(120, 92, 56, .42); }
.shore__water { fill: #0D1D1A; }
.shore__foam { fill: none; stroke: rgba(244, 238, 220, .9); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.shore__foam.f2 { stroke-opacity: .5; stroke-width: 1.6; }
.shore__foam.f3 { stroke-opacity: .35; stroke-width: 1.2; stroke-dasharray: 2 10; }

/* =============================================================
   SAND LAB (shared light surface)
   ============================================================= */
.sand, .method, .map, .results {
  background-color: var(--sand);
  background-image: var(--sand-noise);
  background-size: 260px;
  color: var(--shell);
}
.sand .kicker, .method .kicker, .map .kicker, .results .kicker { color: var(--shell-dim); }
.sand { padding: clamp(40px, 6vh, 80px) calc(var(--gutter) + 20px) clamp(100px, 14vh, 160px) var(--gutter); }
.sand__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-bottom: clamp(80px, 14vh, 160px); }
.sand__head .kicker { grid-column: 1 / -1; }
.sand__title { grid-column: 1 / -1; font-size: clamp(4.2rem, 14vw, 13rem); line-height: .82; letter-spacing: -.025em; }
.sand__intro { grid-column: 7 / span 6; margin-top: clamp(24px, 5vh, 48px); }
.sand__lead { font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.5; text-wrap: pretty; }
.status {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.6rem;
  padding: .5rem .95rem; border-radius: 99px; background: rgba(91, 46, 22, .09);
  font-size: .875rem; font-weight: 500;
}
.status__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--female); }
.status__dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--female); animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3.2); opacity: 0; } }

.tsd {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3.4fr) minmax(0, 4.6fr);
  gap: clamp(24px, 4vw, 64px); align-items: start;
}
.tsd__copy p { margin-top: 1.1rem; max-width: 25em; font-size: 1.05rem; line-height: 1.6; }
.tsd__core { --heat: #E7B35A; }
.tsd__core svg { width: 100%; height: auto; }
.core__sky { fill: rgba(255, 252, 240, .22); }
.core__sand { fill: #CFB485; }
.core__heat { transition: opacity .4s; }
#grainPat circle { fill: rgba(91, 46, 22, .42); }
.core__surface { fill: none; stroke: var(--shell); stroke-width: 1.5; }
.core__ruler path { stroke: var(--shell); fill: none; stroke-width: 1.2; }
.core__ruler text, .core__label { font: 500 13px var(--sans); fill: var(--shell); }
.core__ruler .em { fill: var(--female); font-weight: 700; }
.core__nest .chamber { fill: rgba(91, 46, 22, .1); stroke: var(--shell); stroke-dasharray: 3 4; }
.core__nest .eggs circle { fill: #F7F0E0; stroke: var(--shell); stroke-width: 1; }
.core__nest .neck { fill: none; stroke: rgba(91, 46, 22, .35); stroke-dasharray: 2 5; }
.core__probe path { stroke: var(--shell); stroke-width: 2; }
.core__probe circle { fill: var(--female); }
.core__probe rect { fill: var(--shell); }

.tsd__panel {
  background: var(--paper); border-radius: 16px;
  padding: clamp(20px, 2.4vw, 34px);
  box-shadow: 0 1px 0 rgba(91, 46, 22, .08), 0 40px 70px -40px rgba(91, 46, 22, .45);
}
.tsd__label { display: block; font-size: .875rem; color: var(--shell-dim); }
.tsd__temp {
  display: flex; align-items: flex-start; gap: .08em;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(4rem, 6.4vw, 6rem); line-height: .95;
  font-variant-numeric: lining-nums tabular-nums;
}
.tsd__temp span { font-size: .38em; margin-top: .3em; }
.thermo { margin-top: 1rem; }
.thermo input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; margin: 0; }
.thermo input[type="range"]::-webkit-slider-runnable-track {
  height: 10px; border-radius: 99px;
  background: linear-gradient(90deg, var(--male) 0%, #6FA7A0 30%, #E2C27A 40%, var(--plastron) 55%, var(--female) 78%, #7A220A 100%);
}
.thermo input[type="range"]::-moz-range-track {
  height: 10px; border-radius: 99px;
  background: linear-gradient(90deg, var(--male) 0%, #6FA7A0 30%, #E2C27A 40%, var(--plastron) 55%, var(--female) 78%, #7A220A 100%);
}
.thermo input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -9px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--shell);
  box-shadow: 0 4px 12px rgba(91, 46, 22, .3);
  transition: transform .3s var(--ease-out);
}
.thermo input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--shell);
  box-shadow: 0 4px 12px rgba(91, 46, 22, .3);
}
.thermo input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.thermo input[type="range"]:focus-visible { outline: none; }
.thermo input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--female); outline-offset: 3px; }
.thermo__scale { display: flex; justify-content: space-between; margin: .3rem 12px 0; font-size: .75rem; color: var(--shell-dim); font-variant-numeric: tabular-nums; }
.thermo__scale span { width: 0; display: flex; justify-content: center; }
.thermo__scale .pivot { color: var(--shell); font-weight: 700; }
.ratio { margin-top: 1.6rem; }
.ratio__bar { display: flex; gap: 2px; height: 12px; border-radius: 4px; overflow: hidden; }
.ratio__m { background: var(--male); flex: 0 0 50%; transition: flex-basis .45s var(--ease-out); border-radius: 4px 0 0 4px; }
.ratio__f { background: var(--female); flex: 1 1 auto; border-radius: 0 4px 4px 0; }
.ratio__legend { display: flex; justify-content: space-between; margin-top: .6rem; font-size: .875rem; }
.ratio__legend b { font-variant-numeric: tabular-nums; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .45rem; vertical-align: -1px; }
.sw--m { background: var(--male); }
.sw--f { background: var(--female); }
.tsd__hatch { margin-top: 1.6rem; }
.tsd__sub { font-size: .8125rem; color: var(--shell-dim); display: flex; justify-content: space-between; gap: 1rem; }
.hatch-row { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin-top: .6rem; }
.hatch-row svg { width: 100%; height: auto; aspect-ratio: 1; transition: fill .4s, opacity .4s, transform .5s var(--ease-out); }
.hatch-row .m { fill: var(--male); }
.hatch-row .f { fill: var(--female); }
.hatch-row .lost { fill: none; }
.hatch-row svg .egg { display: none; fill: none; stroke: var(--shell-dim); stroke-width: 1.2; stroke-dasharray: 2 2; }
.hatch-row .lost .egg { display: inline; }
.hatch-row .lost use { display: none; }
.tsd__facts { display: flex; gap: 2rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--shell-line); }
.tsd__facts dt { font-size: .8125rem; color: var(--shell-dim); }
.tsd__facts dd { font-family: var(--serif); font-weight: 500; font-size: 2.1rem; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.tsd__state { margin-top: 1rem; font-weight: 500; min-height: 3.1em; }
.tsd__note { font-size: .8125rem; color: var(--shell-dim); font-family: var(--serif); font-style: italic; font-size: .95rem; }

/* ---------- method ---------- */
.method {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px);
  padding: clamp(60px, 10vh, 120px) calc(var(--gutter) + 20px) clamp(80px, 12vh, 140px) var(--gutter);
}
.method__aside { position: sticky; top: calc(var(--nav-h) + 6vh); align-self: start; }
.method__lead { margin-top: 1.1rem; max-width: 22em; color: var(--shell-dim); font-size: 1.05rem; }
.method__dots { display: flex; gap: 8px; margin-top: 2rem; }
.method__dots li { width: 38px; height: 3px; border-radius: 2px; background: rgba(91, 46, 22, .2); transition: background .4s; }
.method__dots li.on { background: var(--shell); }
.step { padding-bottom: clamp(64px, 12vh, 140px); }
.step:last-child { padding-bottom: 0; }
.step__n { font-size: .875rem; font-weight: 500; color: var(--female); }
.step__t { font-family: var(--serif); font-weight: 500; font-size: clamp(2.3rem, 4vw, 3.7rem); line-height: 1; margin: .4rem 0 1rem; }
.step__d { max-width: 30em; font-size: 1.1rem; margin-bottom: 1.8rem; }
.step .slot { max-width: 680px; }

/* ---------- map ---------- */
.map { padding: clamp(40px, 6vh, 80px) calc(var(--gutter) + 20px) clamp(80px, 12vh, 140px) var(--gutter); }
.map__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(28px, 5vh, 48px); }
.map__note { max-width: 24em; color: var(--shell-dim); font-size: .95rem; }
.map__layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 22vw, 320px); gap: 20px; align-items: stretch; }
.map__scroll { overflow-x: auto; border-radius: 16px; scrollbar-width: thin; }
.map__wrap { position: relative; aspect-ratio: 1200 / 520; min-width: 720px; border-radius: 16px; overflow: hidden; }
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__svg .sea { fill: url(#seaGrad); }
.map__svg .land { fill: #CCB283; }
.map__svg .contour { fill: none; stroke: rgba(91, 46, 22, .2); stroke-width: 1; }
.map__svg .coast { fill: none; stroke: var(--shell); stroke-width: 1.6; }
.map__svg .surf { fill: none; stroke: rgba(207, 239, 230, .35); stroke-width: 1; stroke-dasharray: 4 10; animation: surf 6s linear infinite; }
.map__svg .surf.s2 { stroke-opacity: .5; animation-duration: 9s; }
@keyframes surf { to { stroke-dashoffset: -140; } }
.map__svg .sea-label { font: italic 500 30px var(--serif); fill: rgba(207, 239, 230, .7); letter-spacing: .02em; }
.map__svg .castle { fill: var(--shell); }
.map__svg .castle-label { font: 500 13px var(--sans); fill: var(--shell); }
.map__svg .compass text { font: 600 12px var(--sans); fill: var(--shell); }
.map__svg .compass path { fill: none; stroke: var(--shell); stroke-width: 1.2; }
.map__pins { position: absolute; inset: 0; }
.pin { position: absolute; left: var(--x); top: var(--y); width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; }
.pin::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(242, 181, 58, .35); animation: ping 2.6s var(--ease-out) infinite; animation-delay: var(--d, 0s); }
.pin::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--plastron); box-shadow: 0 0 0 2px var(--shell);
  transition: transform .35s var(--ease-out), background .3s;
}
.pin.is-planned::after { background: var(--paper); }
.pin[aria-pressed="true"]::after { transform: scale(1.45); background: var(--female); }
.pin__label {
  position: absolute; left: 50%; bottom: calc(100% + 2px); transform: translateX(-50%);
  white-space: nowrap; font-size: .8125rem; font-weight: 500; color: var(--shell);
  background: rgba(241, 230, 205, .92); padding: .12rem .5rem; border-radius: 4px; pointer-events: none;
}
.pin--below .pin__label { bottom: auto; top: calc(100% + 2px); }
.map__card { background: var(--paper); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 1rem; }
.map__pick { color: var(--shell-dim); font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.map__card h3 { font-family: var(--serif); font-weight: 500; font-size: 2rem; line-height: 1; }
.map__card .chip { align-self: flex-start; font-size: .75rem; font-weight: 600; padding: .25rem .6rem; border-radius: 99px; background: rgba(91, 46, 22, .1); }
.map__card .chip.is-done { background: rgba(192, 80, 26, .16); color: #8A3510; }
.map__card dl { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.map__card dt { font-size: .75rem; color: var(--shell-dim); }
.map__card dd { font-family: var(--serif); font-size: 1.8rem; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.map__card .demo { font-size: .75rem; color: var(--shell-dim); margin-top: auto; }

/* ---------- results ---------- */
.results { padding: clamp(40px, 6vh, 80px) calc(var(--gutter) + 20px) clamp(100px, 16vh, 180px) var(--gutter); }
.results__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 2rem; align-items: end; margin-bottom: clamp(28px, 5vh, 48px); }
.results__lead { color: var(--shell-dim); font-size: 1.05rem; max-width: 26em; justify-self: end; }
.badge {
  grid-column: 1 / -1; justify-self: start;
  display: inline-flex; flex-wrap: wrap; gap: .3rem .7rem; align-items: baseline;
  padding: .55rem 1rem; border-radius: 8px; font-size: .875rem;
  background: repeating-linear-gradient(135deg, rgba(192, 80, 26, .13) 0 8px, rgba(192, 80, 26, .04) 8px 16px);
  box-shadow: inset 0 0 0 1px rgba(192, 80, 26, .45);
}
.badge b { font-weight: 700; color: #8A3510; }
.sheet {
  background: var(--paper); border-radius: 20px;
  padding: clamp(20px, 3vw, 44px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 48px) clamp(20px, 3vw, 40px);
  box-shadow: 0 1px 0 rgba(91, 46, 22, .08), 0 50px 90px -50px rgba(91, 46, 22, .5);
}
.kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-bottom: clamp(20px, 3vh, 32px); border-bottom: 1px solid var(--shell-line); }
.kpi { padding-right: 1rem; }
.kpi + .kpi { padding-left: clamp(12px, 2vw, 28px); border-left: 1px solid var(--shell-line); }
.kpi dt { font-size: .8125rem; color: var(--shell-dim); min-height: 2.6em; }
.kpi dd { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1; margin-top: .3rem; font-variant-numeric: lining-nums tabular-nums; }
#chartBars { grid-column: 1 / span 5; }
#chartLines { grid-column: 6 / span 7; }
.chart__cap { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-bottom: .9rem; }
.chart__title { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.chart__toggle { font-size: .8125rem; color: var(--shell-dim); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.chart__toggle:hover { color: var(--shell); }
.chart__legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .8125rem; margin-bottom: .4rem; }
.chart__legend span { display: inline-flex; align-items: center; gap: .45rem; }
.chart__legend i { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.chart__legend .thr i { height: 0; border-top: 1.5px dashed var(--shell); background: none; }
.chart__body { position: relative; }
.chart__body svg { width: 100%; height: auto; overflow: visible; }
.chart text { font: 12px var(--sans); fill: var(--shell-dim); font-variant-numeric: tabular-nums; }
.chart .lbl { fill: var(--shell); font-size: 13px; }
.chart .val { fill: var(--shell); font-weight: 600; }
.chart .gridline { stroke: rgba(91, 46, 22, .1); }
.chart .axis { stroke: rgba(91, 46, 22, .3); }
.chart .bar-rect { fill: var(--female); }
.chart .bar-hit { fill: transparent; }
.chart .bar-hit:hover + .bar-rect, .chart .bar-rect.is-hover { fill: #9E3D10; }
.chart .series { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .threshold { stroke: var(--shell); stroke-width: 1.2; stroke-dasharray: 4 4; }
.chart .hot-zone { fill: rgba(192, 80, 26, .07); }
.chart .hot-label { fill: #8A3510; font-weight: 600; }
.chart .cross { stroke: var(--shell); stroke-width: 1; opacity: 0; }
.chart .dot { stroke: var(--paper); stroke-width: 2; opacity: 0; }
.tip {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none;
  background: var(--shell); color: var(--paper);
  font-size: .8125rem; line-height: 1.45; padding: .55rem .75rem; border-radius: 8px;
  transform: translate(-50%, calc(-100% - 14px)); white-space: nowrap;
  opacity: 0; transition: opacity .15s;
  box-shadow: 0 10px 24px -10px rgba(40, 20, 8, .5);
}
.tip.is-on { opacity: 1; }
.tip b { font-weight: 600; }
.tip .row { display: flex; align-items: center; gap: .45rem; }
.tip .row i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th, .data-table td { text-align: left; padding: .45rem .3rem; border-bottom: 1px solid var(--shell-line); }
.data-table th { font-weight: 600; font-size: .8125rem; color: var(--shell-dim); }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { max-height: 360px; overflow: auto; }
.sheet__extras {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 3vw, 40px);
  align-items: start; padding-top: clamp(20px, 3vh, 32px); border-top: 1px solid var(--shell-line);
}
.report { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(91, 46, 22, .3); }
.report__icon {
  width: 46px; height: 58px; flex: none; border: 1.5px solid var(--shell); border-radius: 4px 12px 4px 4px;
  display: grid; place-items: end center; padding-bottom: 7px; font-size: .6875rem; font-weight: 700; letter-spacing: .04em;
}
.report__t { font-weight: 600; }
.report__d { font-size: .875rem; color: var(--shell-dim); }

/* =============================================================
   DUSK transition
   ============================================================= */
.dusk {
  position: relative; height: clamp(320px, 70vh, 720px); overflow: hidden;
  background: linear-gradient(180deg, var(--sand) 0%, #D7AE7E 18%, #C98A6E 36%, #8F6474 54%, #4A4366 70%, #1D2446 84%, var(--night) 100%);
}
.dusk__sun {
  position: absolute; left: 50%; top: 30%;
  width: clamp(120px, 18vmin, 200px); aspect-ratio: 1; margin-left: calc(clamp(120px, 18vmin, 200px) / -2);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #FFF0C8 0%, #FFD27A 45%, #F29A4A 100%);
  box-shadow: 0 0 120px 40px rgba(255, 190, 110, .25);
}
.dusk__sea {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background:
    repeating-linear-gradient(180deg, rgba(255, 200, 140, .0) 0 9px, rgba(255, 200, 140, .07) 9px 10px),
    linear-gradient(#262B4E, var(--night));
}

/* =============================================================
   CAMPAIGN
   ============================================================= */
.campaign { position: relative; overflow: hidden; background: var(--night); color: var(--moon); padding: clamp(60px, 10vh, 120px) calc(var(--gutter) + 20px) clamp(80px, 12vh, 140px) var(--gutter); }
.campaign .kicker { color: var(--moon-dim); justify-content: center; }
.campaign .kicker::after { content: ''; width: 28px; height: 1px; background: currentColor; }
.moon {
  position: absolute; top: 8vh; right: 11vw;
  width: clamp(70px, 9vw, 130px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #FFFBF0, #F4EEDC 55%, #D8CFB6);
  box-shadow: 0 0 70px 16px rgba(244, 238, 220, .14), 0 0 220px 90px rgba(244, 238, 220, .05);
}
.campaign__inner { position: relative; max-width: 1200px; margin: 0 auto; }
.logo-reveal { display: flex; flex-direction: column; align-items: center; margin: clamp(24px, 6vh, 64px) auto clamp(36px, 7vh, 72px); }
.logo-reveal__mark { width: clamp(150px, 22vw, 290px); color: var(--moon); }
.logo-reveal__word { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(3.4rem, 8vw, 7rem); line-height: 1; margin-top: 1.2rem; overflow: hidden; padding: 0 .08em .12em; }
.logo-reveal__word .ch { display: inline-block; }
.campaign__copy { max-width: 38rem; margin: 0 auto; text-align: center; }
.campaign__text { margin-top: 1.1rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--moon-dim); text-wrap: pretty; }
.variants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(48px, 9vh, 96px); }
.variant {
  position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: .7rem;
}
.variant__mark { width: clamp(40px, 4.4vw, 60px); }
.variant__word { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(1.8rem, 2.8vw, 2.6rem); line-height: 1; padding-bottom: .1em; }
.variant p { position: absolute; left: 16px; bottom: 12px; font-size: .8125rem; opacity: .75; }
.variant--sea { background: var(--abyss); color: var(--glint); box-shadow: inset 0 0 0 1px var(--glint-line); }
.variant--sand { background-color: var(--sand); background-image: var(--sand-noise); background-size: 260px; color: var(--shell); }
.variant--ochre { background: var(--plastron); color: #2A1607; }

/* ---------- posters ---------- */
.posters { background: var(--night); color: var(--moon); padding: clamp(40px, 6vh, 80px) 0 clamp(80px, 12vh, 140px); }
.posters__head { padding: 0 calc(var(--gutter) + 20px) 0 var(--gutter); display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(28px, 5vh, 52px); }
.posters__lead { margin-top: 1.1rem; max-width: 30em; color: var(--moon-dim); font-size: 1.05rem; }
.posters__nav { display: flex; gap: 10px; flex: none; }
.round-btn {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(244, 238, 220, .3); transition: background .3s, box-shadow .3s;
}
.round-btn:hover { background: rgba(244, 238, 220, .08); box-shadow: inset 0 0 0 1px rgba(244, 238, 220, .6); }
.round-btn svg { width: 20px; height: 20px; }
.round-btn:disabled { opacity: .35; cursor: default; }
.posters__rail { overflow: hidden; padding: 20px var(--gutter) 40px; cursor: grab; touch-action: pan-y; }
.posters__rail.is-dragging { cursor: grabbing; }
.posters__rail:focus-visible { outline-offset: -4px; }
.posters__track { display: flex; gap: clamp(16px, 2.2vw, 32px); width: max-content; will-change: transform; }
.poster { width: clamp(270px, 29vw, 420px); aspect-ratio: 3 / 4; flex: none; perspective: 1000px; user-select: none; -webkit-user-select: none; }
.poster__inner {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: 6px; padding: 8% 8% 7%;
  display: flex; flex-direction: column;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease-out);
  box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .7);
}
.poster__art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.poster__t { position: relative; font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 3.3vw, 3.4rem); line-height: .94; letter-spacing: -.01em; max-width: 8.5em; text-wrap: balance; }
.poster__s { position: relative; margin-top: auto; padding-right: 56px; font-size: .9375rem; line-height: 1.45; max-width: 19em; }
.poster__mark { position: absolute; right: 8%; bottom: 7%; width: 38px; }
.poster--1 .poster__inner { background: linear-gradient(170deg, #0C3D47 0%, #03222B 70%); color: var(--glint); }
.bagfish .body { fill: rgba(207, 239, 230, .08); stroke: var(--glint); stroke-width: 1.6; }
.bagfish .crease, .bagfish .handle, .bagfish .strand { fill: none; stroke: var(--glint); stroke-width: 1.4; stroke-linecap: round; }
.bagfish .strand { stroke-opacity: .55; }
.poster--1 .poster__art { transform: translateY(6%); }
.poster--2 .poster__inner { background-color: var(--sand); background-image: var(--sand-noise); background-size: 260px; color: var(--shell); }
.tracks-art path { fill: none; stroke: rgba(91, 46, 22, .55); stroke-width: 3.2; stroke-linecap: round; }
.tracks-art .drag { stroke-width: 1.4; stroke-dasharray: 2 6; stroke-opacity: .6; }
.poster--3 .poster__inner { background: linear-gradient(180deg, #0D1433 0%, #182352 37.4%, #2A2740 37.6%, #1E1C30 100%); color: var(--moon); }
.poster--3 .horizon { stroke: rgba(244, 238, 220, .5); stroke-width: 1; }
.poster--3 .h { fill: var(--moon); }
.poster--3 .poster__s { color: var(--moon-dim); }
.poster--4 .poster__inner { background: var(--plastron); color: #2A1607; }
.capturtle .limb { fill: #2A1607; }
.capturtle .cap { fill: var(--synthetic); }
.capturtle .cap-ridge { fill: none; stroke: #C21F60; stroke-width: 9; stroke-dasharray: 3 5; }
.capturtle .cap-inner { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 2; }

/* ---------- cursor label (drag) ---------- */
.cursor-label {
  position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none;
  width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--plastron); color: #22160A; font-size: .8125rem; font-weight: 600;
  transform: scale(0); transition: transform .4s var(--ease-out);
}
.cursor-label.is-on { transform: scale(1); }

/* ---------- film ---------- */
.film {
  background: var(--night); color: var(--moon);
  padding: clamp(20px, 4vh, 40px) calc(var(--gutter) + 20px) clamp(80px, 14vh, 160px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); align-items: end;
}
.film__frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  background:
    radial-gradient(70% 90% at 75% 15%, rgba(244, 238, 220, .16), transparent 60%),
    linear-gradient(180deg, #172150 0%, #0E1534 55%, #26223A 56%, #16152A 100%);
  box-shadow: inset 0 0 0 1px rgba(244, 238, 220, .12);
}
.film__frame::before, .film__frame::after {
  content: ''; position: absolute; left: 0; right: 0; height: 9%; background: #05070F; z-index: 1;
}
.film__frame::before { top: 0; }
.film__frame::after { bottom: 0; }
.film__screen { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.film__play {
  width: clamp(72px, 8vw, 104px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; color: var(--moon);
  box-shadow: inset 0 0 0 1px rgba(244, 238, 220, .45);
  background: rgba(244, 238, 220, .06); backdrop-filter: blur(4px);
}
.film__play svg { width: 38%; height: 38%; margin-left: 6%; }
.film__tc { position: absolute; left: 20px; bottom: calc(9% + 14px); font-size: .8125rem; font-variant-numeric: tabular-nums; color: var(--moon-dim); }
.film__soon { position: absolute; left: 20px; top: calc(9% + 14px); font-size: .8125rem; font-weight: 500; padding: .3rem .75rem; border-radius: 99px; background: rgba(244, 238, 220, .12); }
.film__copy p { margin-top: 1.1rem; color: var(--moon-dim); font-size: 1.05rem; max-width: 22em; }

/* ---------- pledge ---------- */
.pledge {
  position: relative; overflow: hidden; color: var(--moon);
  background: linear-gradient(180deg, var(--night) 0%, #0F1736 26%, #1F2140 27%, #2B2838 60%, #3A3343 100%);
  padding: 0 calc(var(--gutter) + 20px) clamp(100px, 16vh, 180px) var(--gutter);
}
.pledge__sea { position: relative; height: clamp(160px, 26vh, 260px); margin: 0 calc(-1 * var(--gutter) - 20px) 0 calc(-1 * var(--gutter)); overflow: hidden; }
.pledge__sea::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(244, 238, 220, .55) 0 30px, transparent 30px 44px);
  animation: foam 6s linear infinite;
}
@keyframes foam { to { background-position: 440px 0; } }
.pledge__moonpath {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 240px; margin-left: -120px;
  background: repeating-linear-gradient(180deg, transparent 0 10px, rgba(244, 238, 220, .32) 10px 12px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent);
  animation: shimmer 3s ease-in-out infinite alternate;
}
@keyframes shimmer { from { opacity: .55; transform: scaleX(.85); } to { opacity: 1; transform: scaleX(1.1); } }
.pledge__inner { position: relative; z-index: 2; max-width: 46rem; margin: clamp(48px, 9vh, 100px) auto 0; }
.rules { margin-top: 2.4rem; }
.rules li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.05rem 0; border-top: 1px solid rgba(244, 238, 220, .14);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.4;
}
.rules__g { width: 24px; height: 24px; fill: var(--plastron); flex: none; margin-top: .08em; }
.pledge__btn {
  margin-top: 2.6rem; display: inline-flex; align-items: center; gap: .8rem;
  padding: 1.15rem 2.2rem; border-radius: 99px;
  background: var(--plastron); color: #22160A; font-weight: 600; font-size: 1.05rem;
  transition: transform .4s var(--ease-out), background .3s, color .3s, box-shadow .3s;
}
.pledge__btn:hover { transform: translateY(-2px); }
.pledge__btn[aria-pressed="true"] { background: transparent; color: var(--plastron); box-shadow: inset 0 0 0 1px var(--plastron); }
.pledge__done { margin-top: 1.2rem; min-height: 1.6em; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--moon); }
.pledge__run { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }

/* footer: see chrome.css */

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1100px) {
  .hero__scroll, .part[data-part="shell"], .part[data-part="rear"] { right: var(--gutter); }
  .odds__pin, .stats, .threats, .decay, .sand, .method, .map, .results, .campaign, .film, .pledge { padding-right: var(--gutter); }
  .posters__head { padding-right: var(--gutter); }
  .plastic__after { right: var(--gutter); }
}

@media (max-width: 900px) {

  .hero { --tw: min(88vw, 52vh); }
  .turtle-wrap { top: 40%; }
  .hero__copy { bottom: auto; top: calc(var(--nav-h) + 10px); }
  .hero__title { font-size: clamp(4.4rem, 22vw, 9rem); }
  .hero__sub { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: 76px; }
  .hero__scroll { right: auto; left: var(--gutter); bottom: 28px; }
  .plate__head { top: calc(var(--nav-h) + 8px); }
  .plate__leaders { display: none; }
  .plate__parts { top: auto; bottom: 0; height: 40%; }
  .part, .part[data-part] { left: var(--gutter); right: var(--gutter); top: auto; bottom: 28px; width: auto; }
  .part__dot { display: none; }

  .symbol__text { grid-column: 1 / -1; }
  .symbol__slot { grid-column: 1 / span 8; grid-row: auto; margin-top: 3rem; }
  .symbol__note { grid-column: 1 / -1; grid-row: auto; }

  .cycle__pin { height: auto; padding: clamp(80px, 12vh, 120px) 0; overflow: visible; }
  .cycle__head { flex-direction: column; align-items: flex-start; }
  .cycle__track { width: auto; }
  .cycle__list { flex-direction: column; gap: 64px; }
  .stage { width: auto; }
  .cycle__route, .cycle__progress { display: none; }

  .odds__pin { grid-template-columns: 1fr; align-content: center; }
  .odds__field { aspect-ratio: 25 / 40; max-height: 54vh; justify-self: center; width: auto; height: 54vh; }

  .plastic__head { right: var(--gutter); }
  .form { width: calc(var(--w) * 2.1vw); }
  .plastic__after { left: var(--gutter); right: var(--gutter); top: auto; bottom: 8vh; text-align: left; max-width: none; }
  .scan__tag { bottom: auto; top: 46%; }

  .stat, .stat--turtles { grid-template-columns: 1fr; }
  .stat--turtles .stat__num { order: 0; text-align: left; }

  .threat { grid-template-columns: 40px minmax(0, 1fr); }
  .threat__icon { width: 36px; height: 36px; }
  .threat__d { grid-column: 2; }

  .decay__head { flex-direction: column; align-items: flex-start; }
  .decay__chart { --label: 100%; --val: 4.2em; }
  .bar { grid-template-columns: minmax(0, 1fr) var(--val); gap: .3rem 1rem; }
  .bar__label { grid-column: 1 / -1; font-size: .9375rem; }
  .decay__axis { margin-left: 0; }

  .sand__intro { grid-column: 1 / -1; }
  .tsd { grid-template-columns: 1fr; }
  .tsd__core { max-width: 360px; }
  .method { grid-template-columns: 1fr; }
  .method__aside { position: static; }
  .map__head, .posters__head { flex-direction: column; align-items: flex-start; }
  .map__layout { grid-template-columns: 1fr; }
  .results__head { grid-template-columns: 1fr; }
  .results__lead { justify-self: start; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.4rem; }
  .kpi:nth-child(3) { padding-left: 0; border-left: 0; }
  #chartBars, #chartLines { grid-column: 1 / -1; }
  .sheet__extras { grid-template-columns: 1fr; }

  .variants { grid-template-columns: 1fr; }
  .variant { aspect-ratio: 16 / 7; }
  .film { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .moon { right: 8vw; }
}

@media (max-width: 560px) {
  .hero__line--2 { padding-left: .5em; }
  .footer__cols { grid-template-columns: 1fr; }
  .share { gap: 1.6rem; }
  .poster { width: 78vw; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html:not(.force-motion) .grain { display: none; }
}
