@font-face{font-family:"Fraunces";font-style:normal;font-weight:300 900;font-display:swap;src:url(fonts/Fraunces-display.woff2) format("woff2")}
@font-face{font-family:"Atkinson Next";font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/AtkinsonHyperlegibleNext.woff2) format("woff2")}

/* ------------------------------------------------------------------ tokens */
:root{
  color-scheme:light;
  --bg:#f7f0e1; --bg-2:#efe5d0; --surface:#fffaf0; --surface-2:#f3e9d4;
  --text:#14201f; --text-2:#2f3d3a; --muted:#3c4945;
  --line:#c9bda0; --line-soft:#ded3b8;
  --accent:#07443f; --accent-ink:#ffffff; --accent-soft:#d9ece5;
  --hot:#7a260d; --hot-soft:#f6dccf;
  --gold:#6b4a00; --gold-soft:#f5e3b3;
  --ok:#14532d; --ok-soft:#d7eedd; --no:#8a1c1c; --no-soft:#f7d9d6;
  --sky-1:#f9d9a8; --sky-2:#f4b98a; --sky-3:#e58f72; --sun:#fff3cf;
  --sea-1:#5fa7a4; --sea-2:#2f7c7e; --isle-far:#7d9a86; --isle-mid:#47705c; --isle-near:#1f3f37;
  --sil:#16302b; --sil-soft:#2c4a43; --flyer:#2a1c16;
  --map-sea:#cfe3e0; --map-land:#eadfc6; --map-ro:#fbf5e6; --map-ro-line:#7a6d4c; --map-river:#6fa5ad;
  --dot:#7a260d; --dot-ring:#fffaf0; --dot-old:#0a5a55;
  --stage-sky:#fdf6e6; --stage-ground:#d9c9a3; --stage-grid:#d8ccb0; --stage-you:#7a260d; --stage-animal:#123b36; --stage-cousin:#6f6450;
  --shadow:0 1px 2px rgba(60,40,10,.08),0 8px 30px rgba(60,40,10,.10);
  --bar-h:3.25rem;
  --serif:"Fraunces",Georgia,"Times New Roman",serif;
  --sans:"Atkinson Next","Atkinson Hyperlegible",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#0b1716; --bg-2:#0f1f1d; --surface:#132623; --surface-2:#19312d;
  --text:#f6eedc; --text-2:#dcd3be; --muted:#b9c2b4;
  --line:#35504a; --line-soft:#24403a;
  --accent:#7fe0c3; --accent-ink:#06201b; --accent-soft:#173a33;
  --hot:#ffab8f; --hot-soft:#3b2119;
  --gold:#ffd27a; --gold-soft:#3a2f14;
  --ok:#9be7b4; --ok-soft:#14352a; --no:#ffb0a8; --no-soft:#3d1c1a;
  --sky-1:#0b1d2b; --sky-2:#16324a; --sky-3:#3a4a66; --sun:#f7efd2;
  --sea-1:#1d4a57; --sea-2:#0e2c38; --isle-far:#1f3a3c; --isle-mid:#13292a; --isle-near:#08181a;
  --sil:#040d0d; --sil-soft:#0a1a1a; --flyer:#02080a;
  --map-sea:#0e2a30; --map-land:#15302c; --map-ro:#21443d; --map-ro-line:#8fb5a6; --map-river:#4f9aa8;
  --dot:#ffab8f; --dot-ring:#0b1716; --dot-old:#7fe0c3;
  --stage-sky:#10231f; --stage-ground:#2b463f; --stage-grid:#24403a; --stage-you:#ffab8f; --stage-animal:#bfe9da; --stage-cousin:#8a9a92;
  --shadow:0 1px 2px rgba(0,0,0,.4),0 10px 34px rgba(0,0,0,.45);
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;
    --bg:#0b1716; --bg-2:#0f1f1d; --surface:#132623; --surface-2:#19312d;
    --text:#f6eedc; --text-2:#dcd3be; --muted:#b9c2b4;
    --line:#35504a; --line-soft:#24403a;
    --accent:#7fe0c3; --accent-ink:#06201b; --accent-soft:#173a33;
    --hot:#ffab8f; --hot-soft:#3b2119;
    --gold:#ffd27a; --gold-soft:#3a2f14;
    --ok:#9be7b4; --ok-soft:#14352a; --no:#ffb0a8; --no-soft:#3d1c1a;
    --sky-1:#0b1d2b; --sky-2:#16324a; --sky-3:#3a4a66; --sun:#f7efd2;
    --sea-1:#1d4a57; --sea-2:#0e2c38; --isle-far:#1f3a3c; --isle-mid:#13292a; --isle-near:#08181a;
    --sil:#040d0d; --sil-soft:#0a1a1a; --flyer:#02080a;
    --map-sea:#0e2a30; --map-land:#15302c; --map-ro:#21443d; --map-ro-line:#8fb5a6; --map-river:#4f9aa8;
    --dot:#ffab8f; --dot-ring:#0b1716; --dot-old:#7fe0c3;
    --stage-sky:#10231f; --stage-ground:#2b463f; --stage-grid:#24403a; --stage-you:#ffab8f; --stage-animal:#bfe9da; --stage-cousin:#8a9a92;
    --shadow:0 1px 2px rgba(0,0,0,.4),0 10px 34px rgba(0,0,0,.45);
  }
}

/* ------------------------------------------------------------------ base */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);font-size:1.125rem;line-height:1.62;overflow-x:clip;text-rendering:optimizeLegibility}
img,svg{max-width:100%}
img{height:auto;display:block}
a{color:var(--accent);text-underline-offset:.18em;text-decoration-thickness:.08em}
a:hover{text-decoration-thickness:.14em}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:4px}
button{font:inherit;color:inherit}
[hidden]{display:none !important}
.defs{position:absolute;width:0;height:0;overflow:hidden}
.skip{position:absolute;left:-999px;top:0;background:var(--accent);color:var(--accent-ink);padding:.6rem 1rem;z-index:100;border-radius:0 0 .5rem 0}
.skip:focus{left:0}
.vh{position:absolute !important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

h1,h2,h3{font-family:var(--serif);font-variation-settings:"SOFT" 100;line-height:1.04;letter-spacing:-.015em;margin:0;text-wrap:balance}
h1{font-weight:850;font-size:clamp(2.5rem,7.6vw,5.9rem)}
h2{font-weight:800;font-size:clamp(2rem,5vw,3.6rem)}
h3{font-weight:750;font-size:clamp(1.35rem,2.6vw,1.8rem);line-height:1.15}
p{margin:0 0 1.1em}
.wrap{width:min(100% - 2.5rem,41rem);margin-inline:auto}
.wide{width:min(100% - 2.5rem,74rem);margin-inline:auto}
section{scroll-margin-top:calc(var(--bar-h) + .75rem)}
.chapter{padding:clamp(4rem,10vw,8rem) 0 clamp(2rem,5vw,4rem)}
.chapter-head{margin-bottom:clamp(1.5rem,3vw,2.5rem)}
.kicker{font-family:var(--sans);font-weight:700;font-size:.82rem;letter-spacing:.14em;text-transform:uppercase;color:var(--hot);margin:0 0 .9rem}
.lede{font-size:clamp(1.2rem,2.2vw,1.45rem);line-height:1.5;color:var(--text-2)}
.note{font-size:.95rem;color:var(--muted)}
strong{font-weight:700}
.num{font-variant-numeric:tabular-nums}

/* ------------------------------------------------------------------ top bar */
.topbar{position:sticky;top:0;z-index:50;height:var(--bar-h);display:flex;align-items:center;gap:.4rem;padding:0 max(.75rem,env(safe-area-inset-left)) 0 max(.9rem,env(safe-area-inset-left));background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line-soft)}
.topbar .home{font-weight:700;font-size:.95rem;color:var(--text);text-decoration:none;white-space:nowrap;padding:.7rem .3rem}
.topnav{display:flex;gap:.1rem;overflow-x:auto;scrollbar-width:none;min-width:0;flex:0 1 auto;margin-left:.5rem}
.topnav::-webkit-scrollbar{display:none}
.topnav a{white-space:nowrap;text-decoration:none;color:var(--text-2);font-size:.95rem;padding:.7rem .6rem;border-radius:.5rem}
.topnav a[aria-current="true"]{color:var(--accent);font-weight:700}
.spacer{flex:1 1 0}
.chip{display:inline-flex;align-items:center;min-height:2.75rem;padding:0 .8rem;border:1px solid var(--line);border-radius:999px;color:var(--text);text-decoration:none;font-size:.9rem;font-weight:600;white-space:nowrap}
.icon-btn{display:inline-grid;place-items:center;width:2.75rem;height:2.75rem;border-radius:50%;border:1px solid var(--line);background:transparent;cursor:pointer;flex:none}
.icon-btn svg{display:block}
.icon-btn svg[hidden]{display:none}

/* ------------------------------------------------------------------ reading rail */
.rail{display:none}
@media (min-width:76rem){
  .rail{display:flex;flex-direction:column;gap:.15rem;position:fixed;right:1.1rem;top:50%;transform:translateY(-50%);z-index:40}
  .rail-dot{display:flex;align-items:center;justify-content:flex-end;gap:.55rem;min-height:1.6rem;text-decoration:none;color:var(--text)}
  .rail-dot .dot{width:7px;height:7px;border-radius:50%;background:var(--line);transition:transform .2s,background .2s}
  .rail-dot[aria-current="true"] .dot{background:var(--hot);transform:scale(1.6)}
  .rail-label{font-size:.8rem;font-weight:600;opacity:0;transform:translateX(6px);transition:opacity .15s,transform .15s;background:var(--surface);border:1px solid var(--line-soft);padding:.1rem .5rem;border-radius:.4rem;pointer-events:none}
  .rail-dot:hover .rail-label,.rail-dot:focus-visible .rail-label{opacity:1;transform:none}
}

/* ------------------------------------------------------------------ hero */
.hero{position:relative;min-height:calc(100svh - var(--bar-h));display:grid;align-items:end;overflow:clip;isolation:isolate}
.scene{position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,var(--sky-1) 0%,var(--sky-2) 42%,var(--sky-3) 66%,var(--sea-1) 66.2%,var(--sea-2) 100%)}
.scene .layer{position:absolute;inset:0;will-change:transform;transform:translate3d(0,calc(var(--sy,0) * var(--depth,0) * 1px),0)}
.scene svg{position:absolute;display:block;max-width:none}
.sun{position:absolute;left:68%;top:30%;width:min(34vw,18rem);aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(circle,var(--sun) 0 34%,color-mix(in srgb,var(--sun) 35%,transparent) 36%,transparent 70%)}
.stars{position:absolute;inset:0 0 40% 0;opacity:0;background-image:radial-gradient(1.2px 1.2px at 12% 22%,#fff 50%,transparent 51%),radial-gradient(1px 1px at 28% 64%,#fff 50%,transparent 51%),radial-gradient(1.4px 1.4px at 44% 14%,#fff 50%,transparent 51%),radial-gradient(1px 1px at 57% 48%,#fff 50%,transparent 51%),radial-gradient(1.2px 1.2px at 83% 18%,#fff 50%,transparent 51%),radial-gradient(1px 1px at 91% 58%,#fff 50%,transparent 51%),radial-gradient(1px 1px at 7% 78%,#fff 50%,transparent 51%),radial-gradient(1.3px 1.3px at 36% 38%,#fff 50%,transparent 51%)}
:root[data-theme="dark"] .stars{opacity:.85}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .stars{opacity:.85}}
.isle{left:0;right:0;width:100%;bottom:0}
.isle.far{bottom:30%;height:16%;fill:var(--isle-far)}
.isle.mid{bottom:12%;height:28%;fill:var(--isle-mid)}
.isle.near{bottom:-1px;height:24%;fill:var(--isle-near)}
.herd use,.herd path{fill:var(--sil)}
.herd .soft{fill:var(--sil-soft)}
.flyer{fill:var(--flyer)}
.flyer-wrap{position:absolute;left:0;top:14%;width:min(46vw,30rem);animation:glide 38s linear infinite}
.flyer-wrap svg{position:static;width:100%;height:auto;animation:bob 5s ease-in-out infinite}
@keyframes glide{from{transform:translateX(-50vw)}to{transform:translateX(120vw)}}
@keyframes bob{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-14px) rotate(1.5deg)}}
.hero-copy{position:relative;padding:clamp(1.5rem,5vw,4rem) 0 clamp(2rem,6vw,4.5rem);width:min(100% - 2.5rem,74rem);margin-inline:auto}
.hero-copy .panel{max-width:46rem;background:color-mix(in srgb,var(--bg) 84%,transparent);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid var(--line-soft);border-radius:1.4rem;padding:clamp(1.2rem,3vw,2.2rem);box-shadow:var(--shadow)}
.hero h1{margin-bottom:.9rem}
.hero .deck{font-size:clamp(1.15rem,2.1vw,1.4rem);line-height:1.45;color:var(--text-2);margin:0 0 1.3rem;max-width:38rem}
.byline{font-size:.92rem;color:var(--muted);margin:1rem 0 0}
.cta{display:inline-flex;align-items:center;gap:.6rem;min-height:3rem;padding:.2rem 1.3rem;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-weight:700;text-decoration:none;border:0;cursor:pointer}
.cta:hover{filter:brightness(1.08)}
.cta svg{transition:transform .2s}
.cta:hover svg{transform:translateY(3px)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:3rem;padding:.2rem 1.15rem;border-radius:999px;border:2px solid var(--accent);background:transparent;color:var(--accent);font-weight:700;text-decoration:none;cursor:pointer}
.btn[aria-pressed="true"],.btn.solid{background:var(--accent);color:var(--accent-ink)}
.btn:disabled{opacity:.5;cursor:default}

/* ------------------------------------------------------------------ share */
.share{padding:1.2rem 0 0}
.share-row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.share-row .lab{font-size:.92rem;color:var(--muted);margin-right:.2rem}
.share-row a,.share-row button{display:inline-flex;align-items:center;min-height:3rem;padding:0 1rem;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--text);font-size:.95rem;font-weight:600;text-decoration:none;cursor:pointer}
.share-status{font-size:.92rem;color:var(--ok);min-height:1.2em;margin:.4rem 0 0}
.share-field{width:100%;margin-top:.5rem;padding:.6rem;border:1px solid var(--line);border-radius:.5rem;background:var(--surface);color:var(--text);font:inherit;font-size:.9rem}

/* ------------------------------------------------------------------ descent through time */
.descent{position:relative;background:var(--bg-2)}
.descent-sticky{position:sticky;top:var(--bar-h);height:calc(100svh - var(--bar-h));display:grid;place-items:center;overflow:clip}
.strata{position:absolute;inset:0;display:flex;flex-direction:column}
.strata i{flex:1 1 0;display:block;opacity:.5}
.strata i:nth-child(1){background:var(--bg-2)}
.strata i:nth-child(2){background:color-mix(in srgb,var(--gold-soft) 70%,var(--bg-2))}
.strata i:nth-child(3){background:color-mix(in srgb,var(--accent-soft) 80%,var(--bg-2))}
.strata i:nth-child(4){background:color-mix(in srgb,var(--hot-soft) 80%,var(--bg-2))}
.strata i:nth-child(5){background:color-mix(in srgb,var(--surface-2) 90%,var(--bg-2))}
.strata-move{position:absolute;left:0;right:0;top:0;height:300%;transform:translate3d(0,calc(var(--p,1) * -66.6%),0);display:flex;flex-direction:column}
.clock{position:relative;text-align:center;padding:0 1rem}
.clock .lab{font-weight:700;letter-spacing:.14em;text-transform:uppercase;font-size:.85rem;color:var(--muted);margin:0}
.clock .years{font-family:var(--serif);font-variation-settings:"SOFT" 100;font-weight:850;font-size:clamp(2.6rem,11vw,8.5rem);line-height:1;margin:.1em 0;font-variant-numeric:tabular-nums;color:var(--text)}
.clock .unit{font-size:clamp(1.1rem,2.4vw,1.6rem);color:var(--text-2);margin:0}
.descent-steps{position:relative;list-style:none;margin:0;padding:0 0 40vh;margin-top:calc(-100svh + var(--bar-h))}
.descent-steps li{min-height:85svh;display:grid;align-items:end;padding:0 1.25rem}
.descent-steps li:first-child{min-height:100svh}
.step-card{width:min(100%,30rem);margin:0 auto;background:var(--surface);border:1px solid var(--line-soft);border-radius:1.1rem;padding:1.1rem 1.3rem;box-shadow:var(--shadow)}
.step-card p{margin:0}
.step-card .when{font-weight:700;color:var(--hot);font-size:.95rem;margin-bottom:.3rem}
@media (min-width:60rem){.descent-steps li{justify-items:end;padding-right:max(1.25rem,calc((100vw - 74rem)/2))}.step-card{margin:0}}

/* ------------------------------------------------------------------ figures */
figure{margin:clamp(1.8rem,4vw,3rem) 0}
figure img{border-radius:1rem;border:1px solid var(--line-soft);background:var(--surface-2);width:100%}
figcaption{font-size:.93rem;line-height:1.5;color:var(--text-2);margin-top:.7rem}
figcaption .credit{display:block;color:var(--muted);font-size:.85rem;margin-top:.25rem}
.fig-wide{width:min(100% - 2.5rem,62rem);margin-inline:auto}
.fig-full{width:min(100% - 1.5rem,88rem);margin-inline:auto}
.fig-full img{border-radius:1.4rem}
.duo{display:grid;gap:1.2rem}
@media (min-width:52rem){.duo{grid-template-columns:1fr 1fr;align-items:start}}

/* ------------------------------------------------------------------ the size stage */
.stage{background:var(--surface);border:1px solid var(--line-soft);border-radius:1.6rem;box-shadow:var(--shadow);overflow:clip}
.stage-pick{display:flex;gap:.5rem;overflow-x:auto;padding:1rem 1rem .3rem;scrollbar-width:thin}
.pick{flex:none;display:grid;grid-template-rows:2.6rem auto;justify-items:center;gap:.15rem;min-width:6.4rem;min-height:4.6rem;padding:.5rem .7rem;border:2px solid var(--line-soft);border-radius:1rem;background:var(--bg);cursor:pointer;font-size:.88rem;font-weight:700;color:var(--text)}
.pick svg{height:2.4rem;width:5rem;fill:var(--stage-animal)}
.pick[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft)}
.stage-view{position:relative;background:linear-gradient(180deg,var(--stage-sky) 0 78%,var(--stage-ground) 78% 100%)}
.stage-svg{display:block;width:100%;height:auto;aspect-ratio:1000/520}
@media (max-width:40rem){.stage-svg{aspect-ratio:1000/760}}
.stage-svg .grid line{stroke:var(--stage-grid);stroke-width:1}
.stage-svg .grid text{fill:var(--muted);font-family:var(--sans);font-variant-numeric:tabular-nums}
.stage-svg .you{fill:var(--stage-you)}
.stage-svg .animal{fill:var(--stage-animal)}
.stage-svg .cousin{fill:var(--stage-cousin)}
.stage-svg .tag{font-family:var(--sans);font-weight:700;fill:var(--text)}
.stage-svg .tag.small{font-weight:600;fill:var(--text-2)}
.stage-svg .ruler line{stroke:var(--text);stroke-width:2}
.stage-hud{display:grid;gap:1rem;padding:1.1rem 1.2rem 1.4rem}
@media (min-width:56rem){.stage-hud{grid-template-columns:1.25fr 1fr;gap:2rem;padding:1.4rem 1.8rem 1.8rem}}
.stage-name{font-family:var(--serif);font-variation-settings:"SOFT" 100;font-weight:800;font-size:clamp(1.6rem,3.4vw,2.3rem);line-height:1.05;margin:0 0 .2rem;font-style:italic}
.stage-means{color:var(--muted);font-size:.98rem;margin:0 0 .8rem}
.stage-say{font-size:1.12rem;margin:0 0 .8rem}
.stage-say b{color:var(--hot)}
.facts{list-style:none;margin:0;padding:0;display:grid;gap:.35rem;font-size:.98rem}
.facts li{display:grid;grid-template-columns:7.2rem 1fr;gap:.6rem}
.facts .k{color:var(--muted)}
.controls{display:grid;gap:.9rem;align-content:start}
.slider label{display:flex;justify-content:space-between;font-weight:700;font-size:1rem}
.slider output{color:var(--hot);font-variant-numeric:tabular-nums}
input[type=range]{width:100%;height:2.75rem;accent-color:var(--hot);margin:0;background:transparent}
.cousin-say{font-size:1rem;color:var(--text-2);margin:0;min-height:3.2em}

/* ------------------------------------------------------------------ the giant */
.giant{position:relative;background:var(--bg-2)}
.giant-sticky{position:sticky;top:var(--bar-h);height:calc(100svh - var(--bar-h));display:grid;grid-template-rows:auto 1fr auto;overflow:clip;padding:1rem 0}
.giant-meter{text-align:center}
.giant-meter .m{font-family:var(--serif);font-variation-settings:"SOFT" 100;font-weight:850;font-size:clamp(3rem,12vw,8rem);line-height:1;color:var(--hot);font-variant-numeric:tabular-nums}
.giant-meter p{margin:0;color:var(--text-2)}
.giant-wing{display:grid;place-items:center;min-height:0}
.giant{--full:min(94vw,calc((100svh - var(--bar-h) - 17rem) / .82))}
.giant-wing svg{width:calc(var(--g,1) * var(--full));max-width:none;height:auto;fill:var(--text)}
.giant-you{display:flex;justify-content:center;opacity:calc((var(--g,1) - .55) * 4)}
.giant-you svg{width:var(--full);height:auto;fill:var(--stage-you);overflow:hidden}
.giant-track{height:320svh}
.giant-caption{text-align:center;padding:0 1.25rem;margin:0;font-size:1rem;color:var(--text-2)}

/* ------------------------------------------------------------------ two-state compare (Balaur) */
.switch{display:inline-flex;border:2px solid var(--accent);border-radius:999px;padding:3px;gap:3px;flex-wrap:wrap}
.switch button{min-height:2.75rem;padding:0 1.1rem;border:0;border-radius:999px;background:transparent;color:var(--accent);font-weight:700;cursor:pointer}
.switch button[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink)}
.versus{display:grid;gap:1.4rem;margin-top:1.4rem}
@media (min-width:56rem){.versus{grid-template-columns:1fr 1fr;align-items:center}}
.foot{background:var(--surface);border:1px solid var(--line-soft);border-radius:1.4rem;padding:1rem;box-shadow:var(--shadow)}
.foot svg{display:block;width:100%;height:auto}
.foot .bone{fill:var(--surface-2);stroke:var(--text);stroke-width:2.5;stroke-linejoin:round}
.foot .claw{fill:var(--text);transition:fill .25s,transform .35s;transform-box:fill-box;transform-origin:0% 50%}
.foot .claw.hi{fill:var(--hot)}
.foot .lbl{font-family:var(--sans);font-size:17px;font-weight:700;fill:var(--text)}
.foot .ground{stroke:var(--line);stroke-width:2}
.view-text h3{margin-bottom:.6rem}

/* ------------------------------------------------------------------ bone proof */
.bones{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1.5rem 0 1rem}
.bone-card{display:grid;gap:.6rem;justify-items:center;padding:1rem .8rem 1.1rem;border:2px solid var(--line-soft);border-radius:1.3rem;background:var(--surface);cursor:pointer;font-weight:700;color:var(--text);min-height:3rem}
.bone-card svg{width:100%;max-width:13rem;height:auto}
.bone-card .ring{fill:none;stroke:var(--text);stroke-width:1.2;opacity:.75}
.bone-card .cortex{fill:var(--gold-soft);stroke:var(--text);stroke-width:2}
.bone-card .marrow{fill:var(--bg-2);stroke:var(--text);stroke-width:1.5}
.bone-card .canal{fill:var(--hot)}
.bone-card .osteon{fill:none;stroke:var(--accent);stroke-width:1.4}
.bone-card.right{border-color:var(--ok);background:var(--ok-soft)}
.bone-card.wrong{border-color:var(--no);background:var(--no-soft)}
.verdict{border-left:5px solid var(--accent);background:var(--surface);padding:1rem 1.2rem;border-radius:0 1rem 1rem 0}

/* ------------------------------------------------------------------ map */
.atlas{position:relative}
.atlas-grid{display:grid}
.atlas-map{position:sticky;top:var(--bar-h);height:min(56svh,30rem);z-index:2;background:var(--map-sea);border-block:1px solid var(--line-soft);overflow:clip}
.atlas-map svg{display:block;width:100%;height:100%}
.atlas-steps{list-style:none;margin:0;padding:1rem 1.25rem 3rem;display:grid;gap:55svh}
.atlas-steps li{background:var(--surface);border:1px solid var(--line-soft);border-radius:1.2rem;padding:1.2rem 1.3rem;box-shadow:var(--shadow);opacity:.55;transition:opacity .3s}
.atlas-steps li.on,.no-js .atlas-steps li{opacity:1}
.atlas-steps li:last-child{margin-bottom:30svh}
.atlas-steps h3{margin-bottom:.4rem}
.atlas-steps .count{font-weight:700;color:var(--hot);font-size:.95rem;margin:0 0 .4rem}
.atlas-steps p:last-child{margin-bottom:0}
@media (min-width:60rem){
  .atlas-grid{grid-template-columns:minmax(0,1.5fr) minmax(20rem,1fr);gap:2rem;width:min(100% - 2.5rem,84rem);margin-inline:auto;align-items:start}
  .atlas-map{height:calc(100svh - var(--bar-h) - 2rem);top:calc(var(--bar-h) + 1rem);border:1px solid var(--line-soft);border-radius:1.5rem}
  .atlas-steps{padding:30svh 0 10svh;gap:70svh}
}
.m-sea{fill:var(--map-sea)}.m-land{fill:var(--map-land)}.m-ro{fill:var(--map-ro);stroke:var(--map-ro-line);stroke-width:1.4;vector-effect:non-scaling-stroke}
.m-river{fill:none;stroke:var(--map-river);stroke-width:1.3;vector-effect:non-scaling-stroke;stroke-linecap:round}
.site{fill:var(--dot);stroke:var(--dot-ring);stroke-width:1.2;vector-effect:non-scaling-stroke;cursor:pointer;transition:opacity .3s}
.site.old{fill:var(--dot-old)}
.site.dim{opacity:.25}
.site.sel{stroke:var(--text);stroke-width:3}
.m-label{font-family:var(--sans);font-weight:700;fill:var(--text);paint-order:stroke;stroke:var(--map-ro);stroke-linejoin:round}
.m-label.city{font-weight:500;fill:var(--muted)}
.city-dot{fill:var(--muted)}
.site-tip{position:absolute;left:.7rem;right:.7rem;bottom:.7rem;background:var(--surface);border:1px solid var(--line);border-radius:.9rem;padding:.7rem 2.8rem .7rem .9rem;font-size:.92rem;line-height:1.4;box-shadow:var(--shadow)}
.site-tip b{display:block}
.site-tip .x{position:absolute;right:.2rem;top:.2rem;width:2.75rem;height:2.75rem;border:0;background:transparent;font-size:1.3rem;cursor:pointer;color:var(--text)}
@media (min-width:60rem){.site-tip{right:auto;max-width:24rem}}

/* ------------------------------------------------------------------ dig */
.dig{position:relative;border-radius:1.4rem;overflow:clip;border:1px solid var(--line-soft);background:var(--surface-2);touch-action:pan-y}
.dig img{width:100%;border:0;border-radius:0}
.dig canvas{position:absolute;inset:0;width:100%;height:100%;cursor:grab;touch-action:none}
.dig-bar{display:flex;flex-wrap:wrap;gap:.7rem;align-items:center;margin-top:.8rem}
.dig-meter{flex:1 1 10rem;height:.7rem;border-radius:999px;background:var(--surface-2);border:1px solid var(--line-soft);overflow:hidden}
.dig-meter i{display:block;height:100%;width:calc(var(--done,0) * 100%);background:var(--hot);transition:width .2s}

/* ------------------------------------------------------------------ cast cards */
.cast{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(16.5rem,1fr));margin-top:1.5rem}
.cast-card{background:var(--surface);border:1px solid var(--line-soft);border-radius:1.2rem;padding:1.1rem 1.2rem 1.2rem;display:grid;gap:.4rem;align-content:start}
.cast-card svg{height:3.4rem;width:100%;fill:var(--stage-animal)}
.cast-card h3{font-style:italic;font-size:1.3rem}
.cast-card p{margin:0;font-size:.98rem}
.cast-card .what{color:var(--muted);font-size:.88rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}

/* ------------------------------------------------------------------ game */
.game{background:var(--surface);border:1px solid var(--line-soft);border-radius:1.6rem;box-shadow:var(--shadow);padding:clamp(1.2rem,3vw,2.2rem)}
.game-progress{display:flex;gap:.35rem;margin:0 0 1.2rem;padding:0;list-style:none}
.game-progress li{flex:1;height:.5rem;border-radius:999px;background:var(--surface-2);border:1px solid var(--line-soft)}
.game-progress li.ok{background:var(--ok);border-color:var(--ok)}
.game-progress li.no{background:var(--no);border-color:var(--no)}
.game-progress li.now{border-color:var(--text)}
.q{font-family:var(--serif);font-variation-settings:"SOFT" 100;font-weight:750;font-size:clamp(1.45rem,3.2vw,2.1rem);line-height:1.15;margin:0 0 1.2rem;text-wrap:balance}
.answers{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;max-width:30rem}
.answers button{min-height:3.6rem;border-radius:1rem;border:2px solid var(--line);background:var(--bg);font-weight:800;font-size:1.1rem;cursor:pointer}
.answers button:hover:not(:disabled){border-color:var(--accent)}
.answers button.picked.ok{background:var(--ok-soft);border-color:var(--ok);color:var(--ok)}
.answers button.picked.no{background:var(--no-soft);border-color:var(--no);color:var(--no)}
.answers button.truth{border-color:var(--ok)}
.explain{margin-top:1.2rem;padding:1rem 1.2rem;border-radius:1rem;background:var(--bg);border:1px solid var(--line-soft)}
.explain .tag{font-weight:800}
.explain .tag.ok{color:var(--ok)}.explain .tag.no{color:var(--no)}
.explain p{margin:.2rem 0 .8rem}
.result h3{font-size:clamp(1.8rem,4vw,2.8rem);margin-bottom:.5rem}
.result .score{font-weight:800;color:var(--hot);font-size:1.2rem}
.all-answers{margin:1.5rem 0 0;padding:0;list-style:none;display:grid;gap:.9rem}
.all-answers li{padding:.9rem 1.1rem;border:1px solid var(--line-soft);border-radius:1rem;background:var(--surface)}
.all-answers .tag{font-weight:800;margin-right:.4rem}
.confetti{position:fixed;inset:0;pointer-events:none;z-index:80}

/* ------------------------------------------------------------------ visit + sources */
.places{list-style:none;margin:1.5rem 0 0;padding:0;display:grid;gap:1rem}
.places li{padding:1rem 1.2rem;border-left:5px solid var(--accent);background:var(--surface);border-radius:0 1rem 1rem 0}
.places b{display:block;font-size:1.08rem}
.sources{font-size:.97rem}
.sources h3{margin:2rem 0 .6rem;font-size:1.25rem}
.sources ul{padding-left:1.1rem;margin:0}
.sources li{margin-bottom:.55rem;overflow-wrap:anywhere}
.site-footer{border-top:1px solid var(--line-soft);padding:2rem 1.25rem 3rem;text-align:center;font-size:.95rem;color:var(--text-2);margin-top:4rem}
.site-footer p{margin:0}

/* ------------------------------------------------------------------ reveal on scroll (only when scripts run) */
.js .reveal{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
.js .reveal.in{opacity:1;transform:none}
.pop{animation:pop .45s cubic-bezier(.2,1.4,.4,1)}
@keyframes pop{0%{transform:scale(.92)}60%{transform:scale(1.04)}100%{transform:scale(1)}}

.nf{min-height:100svh;display:grid;place-items:center;text-align:center}
.nf-main h1{font-size:clamp(2rem,6vw,3.5rem);margin-bottom:1rem}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .flyer-wrap{animation:none;left:8%}
  .flyer-wrap svg{animation:none}
  .scene .layer{transform:none !important}
  .js .reveal,.js .reveal.in{opacity:1 !important;transform:none !important;transition:none !important}
  .pop{animation:none}
  .cta svg,.foot .claw,.dig-meter i,.atlas-steps li{transition:none}
}
@media print{.topbar,.rail,.share,.scene,.confetti{display:none}}

/* ------------------------------------------------------------------ hero depths and herd (no inline styles: the CSP forbids them) */
.layer.d1{--depth:.10}.layer.d2{--depth:.18}.layer.d3{--depth:.05}.layer.d4{--depth:.30}.layer.d5{--depth:.46}
.herd{position:absolute}
.herd svg{position:static;display:block;width:100%;height:auto;fill:var(--isle-mid)}
.herd.h1{left:8%;bottom:31%;width:min(24vw,15rem)}
.herd.h2{left:30%;bottom:34%;width:min(15vw,9rem)}
.herd.h3{right:9%;bottom:30%;width:min(19vw,12rem)}
.herd.h4{right:33%;bottom:33%;width:min(9vw,5.5rem)}
@media (max-width:40rem){.herd.h1{width:38vw;bottom:33%}.herd.h2{display:none}.herd.h3{width:30vw;right:4%}.herd.h4{right:40%;width:14vw}.flyer-wrap{width:70vw;top:9%}}

/* ------------------------------------------------------------------ the archipelago map */
.paleo{display:block;width:100%;height:auto;aspect-ratio:1985/893;border-radius:1.4rem;border:1px solid var(--line-soft)}
.p-shallow{fill:var(--sea-1)}.p-deep{fill:var(--sea-2)}
.p-land{fill:var(--map-ro);stroke:var(--map-ro-line);stroke-width:2}
.p-label{font-family:var(--sans);font-weight:700;font-size:34px;fill:var(--text);paint-order:stroke;stroke:var(--map-ro);stroke-width:7px;stroke-linejoin:round}
.p-label.here{font-size:40px;fill:var(--hot)}
.p-mark .core{fill:var(--hot);stroke:var(--map-ro);stroke-width:4}
.p-mark .halo{fill:var(--hot);opacity:.35;transform-origin:center;transform-box:fill-box;animation:pulse 2.4s ease-out infinite}
@keyframes pulse{from{transform:scale(.4);opacity:.6}to{transform:scale(1.5);opacity:0}}
.p-scale line{stroke:var(--text);stroke-width:5}.p-scale text{font-family:var(--sans);font-size:30px;font-weight:700;fill:var(--text);paint-order:stroke;stroke:var(--sea-2);stroke-width:6px}
@media (prefers-reduced-motion:reduce){.p-mark .halo{animation:none}}
.fig-narrow{width:min(100% - 2.5rem,30rem);margin-inline:auto}

/* ------------------------------------------------------------------ phone corrections after the first visual review */
@media (max-width:40rem){
  .stage-svg{aspect-ratio:1000/640}
  .stage-hud .controls{order:-1}
  .hero{min-height:calc(100svh - var(--bar-h))}
  .hero-copy{padding:42svh 0 1.2rem}
  .hero-copy .panel{padding:1.1rem 1.1rem 1.2rem;border-radius:1.2rem}
  .hero h1{font-size:clamp(2rem,9vw,2.6rem)}
  .hero .deck{font-size:1.05rem;margin-bottom:1rem}
  .byline{font-size:.85rem}
  .herd.h1{bottom:auto;top:27%}.herd.h3{bottom:auto;top:29%}.herd.h4{bottom:auto;top:31%}
  .isle.far{bottom:auto;top:24%;height:14%}.isle.mid{bottom:auto;top:31%;height:30%}.isle.near{display:none}
  .scene{background:linear-gradient(180deg,var(--sky-1) 0%,var(--sky-2) 16%,var(--sky-3) 30%,var(--sea-1) 30.2%,var(--sea-2) 100%)}
  .sun{top:15%;left:74%;width:30vw}
  .paleo{aspect-ratio:1/1}
  .p-label{font-size:40px}.p-label.edge{display:none}.p-label.here{font-size:48px}.p-scale text{font-size:38px}
}
.flyer-wrap{animation-delay:-12s}

.flyer-wrap{width:min(30vw,17rem);top:6%}
.flyer-wrap svg{transform-origin:50% 50%;animation-name:bob2}
@keyframes bob2{0%,100%{transform:rotate(84deg) translateX(0)}50%{transform:rotate(88deg) translateX(-12px)}}
@media (max-width:40rem){.flyer-wrap{width:40vw;top:3%}}
@media (prefers-reduced-motion:reduce){.flyer-wrap svg{transform:rotate(86deg)}}
@media (min-width:40.01rem){
  .hero h1{font-size:clamp(2.6rem,5.2vw,4.6rem)}
  .hero-copy .panel{max-width:37rem}
  .herd.h1{left:auto;right:26%;width:min(26vw,22rem);bottom:27%}
  .herd.h2{left:auto;right:6%;width:min(14vw,11rem);bottom:33%}
  .herd.h3{right:48%;width:min(11vw,9rem);bottom:35%}
  .herd.h4{right:20%;width:min(8vw,6rem);bottom:25%}
  .flyer-wrap{top:9%;animation-delay:-24s}
}
