/* =========================================================
   Animals Fund — styles
   Look: a friendly shelter on adoption day. Shelter teal is the main colour,
   shiba orange the accent, cream and ink the neutrals. Shrikhand (a fat
   retro italic, like a hand-painted pet-shop sign) for headlines and the
   shelter sign, Karla for everything else. Flat colour, thin rules, no glows,
   no tiny spaced-out capitals.
   Motion: the page is a stack of full-screen scenes; each one slides up over
   the last. Playful motion is kept for the opening, the dancers and new
   money coming in; everyday controls settle quickly.
   ========================================================= */
:root {
  --teal: #0e6b68;
  --teal-dark: #0a4f4d;
  --teal-deep: #083d3b;
  --orange: #ec7a2c;
  --orange-dark: #c95f17;
  --sky: #d3eae3;
  --paper: #fbf6ec;
  --paper-2: #f2eadb;
  --white: #fff;
  --ink: #1c1714;
  --ink-2: #3f3631;
  --muted: #6c625a;
  --rule: rgba(28, 23, 20, .15);
  --cream-rule: rgba(251, 246, 236, .24);
  --live: #2f8a4c;

  --f-display: "Shrikhand", "Cooper Black", Georgia, serif;
  --f-body: "Karla", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --radius: 10px;
  --out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--paper); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-family: var(--f-display); font-weight: 400; line-height: 1.04; letter-spacing: .005em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); }
h3, h4 { font-family: var(--f-body); font-weight: 800; margin: 0; line-height: 1.2; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------- toast + bursts ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 8px; font-weight: 600; font-size: .95rem;
  transition: opacity .2s, transform .2s var(--out); max-width: calc(100% - 32px); text-align: center; word-break: break-word;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.bursts { position: fixed; inset: 0; pointer-events: none; z-index: 55; overflow: hidden; }
.bit { position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.bit svg { width: 100%; height: 100%; overflow: visible; }
.smack { position: absolute; width: 120px; height: 120px; margin: -60px 0 0 -60px; }
.smack path { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .9em 1.4em; border-radius: 6px;
  font: 700 1rem/1 var(--f-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .16s var(--out);
}
.btn:active { transform: scale(.97); }
.btn:focus-visible, .ca-btn:focus-visible, a:focus-visible, .duo-hit:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: #f69047; }
.btn-teal { background: var(--teal); color: var(--paper); }
.btn-teal:hover { background: var(--teal-dark); }
.btn-line { border-color: rgba(251, 246, 236, .7); color: var(--paper); background: transparent; }
.btn-line:hover { background: rgba(251, 246, 236, .12); }
.btn-paper { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-paper:hover { background: var(--paper-2); }
.btn-ink-outline { border-color: rgba(251, 246, 236, .7); color: var(--paper); background: transparent; }
.btn-ink-outline:hover { background: rgba(251, 246, 236, .12); }
.btn-xs { padding: .5em .8em; font-size: .8rem; border-radius: 5px; background: var(--paper); color: var(--ink); }
.btn-xs:hover { background: var(--white); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(20px, calc((100% - 1160px) / 2)); color: var(--ink); transition: background .25s, padding .25s, color .25s;
}
.nav.scrolled { background: var(--ink); color: var(--paper); padding-top: 9px; padding-bottom: 9px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.25rem/1 var(--f-display); }
.brand img { border-radius: 50%; border: 2px solid var(--ink); background: var(--orange); }
.nav.scrolled .brand img { border-color: var(--paper); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.ca-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 6px; cursor: pointer;
  font: 700 .85rem/1 var(--f-body); color: inherit; background: transparent; border: 1.5px solid currentColor;
}
.ca-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.ca-btn.has-ca .dot { background: #59c27a; }

/* =========================================================
   SCENES — a stack of full screens; each slides up over the last
   ========================================================= */
.scene { position: relative; min-height: 100vh; min-height: 100svh; padding: 112px 0 96px; display: flex; flex-direction: column; justify-content: center; }
.scene + .scene { border-radius: 22px 22px 0 0; box-shadow: 0 -14px 40px -18px rgba(10, 20, 18, .55); }
.scene::after { content: ""; position: absolute; inset: 0; background: #071312; opacity: 0; pointer-events: none; z-index: 8; border-radius: inherit; }
.stacked .scene { position: sticky; }
.scene:focus { outline: none; } /* focused by the in-page links (main.js) so keyboard users land there; it is not a control */
.stacked .scene::after { opacity: calc(var(--cover, 0) * .55); }
.stacked .scene:not(.intro) > .wrap { transform: scale(calc(1 - var(--cover, 0) * .07)); transform-origin: 50% 30%; }
.fine { position: relative; }

.scene-head { margin-bottom: 34px; max-width: 780px; }
.kicker { margin: 0 0 12px; font: 400 1.35rem/1 var(--f-display); color: var(--orange-dark); }
.scene-sub { font-size: 1.15rem; margin: 18px 0 0; max-width: 60ch; color: var(--ink-2); }
.scene-sub b { color: var(--teal); }

/* content arrives as its scene comes in: it drops into place */
.js .scene [data-anim] { opacity: 0; transform: translateY(-26px) scale(1.04); transition: opacity .7s ease, transform .9s var(--out); }
.js .scene.in [data-anim] { opacity: 1; transform: none; }
.js .scene [data-anim="2"] { transition-delay: .1s; }
.js .scene [data-anim="3"] { transition-delay: .2s; }
.js .scene [data-anim="4"] { transition-delay: .3s; }
.js .scene [data-anim="5"] { transition-delay: .4s; }

/* =========================================================
   1. OPENING — the shelter on adoption day
   ========================================================= */
.intro { display: grid; grid-template-columns: 100%; grid-template-rows: auto minmax(300px, 1fr) auto; justify-content: stretch; padding: 0; background: var(--sky); overflow: hidden; }
.clouds { position: absolute; left: 0; right: 0; top: 56px; width: 100%; height: 30%; pointer-events: none; }
.cloud path { fill: #fbf6ec; }
.cloud { animation: drift 70s linear infinite; }
.cloud.c2 { animation-duration: 95s; animation-delay: -30s; }
.cloud.c3 { animation-duration: 120s; animation-delay: -60s; }
@keyframes drift { from { transform: translateX(-260px); } to { transform: translateX(1700px); } }

.hero-copy { position: relative; z-index: 3; padding: 82px 20px 6px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.slogan { margin: 0; font: 400 clamp(2.2rem, min(5.6vw, 7.4vh), 4.4rem)/1 var(--f-display); color: var(--teal-deep); max-width: 16ch; }
.slogan em { font-style: normal; color: var(--orange-dark); white-space: nowrap; }
.tagline { margin: 12px 0 0; max-width: 56ch; font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 500; color: var(--ink-2); }
.tagline b { font-weight: 800; color: var(--ink); }

/* the street: the shelter drawing keeps its shape and is cropped at the sides on narrow screens */
.street { position: relative; z-index: 1; }
.street::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16.67%; background: #e6dccb; border-bottom: solid #cdbfa7; border-bottom-width: calc(100% / 45); }
.shelter { position: absolute; bottom: 0; left: 50%; translate: -50% 0; height: 100%; aspect-ratio: 2000 / 720; container-type: inline-size; transform-origin: 50% 100%; }
.shelter-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chalk { font: 400 19px/1 var(--f-display); fill: #f2eadb; letter-spacing: .02em; }
.chalk-o { fill: var(--orange); }

/* the sign's letters sit on the board in the drawing */
.sign { position: absolute; left: 34.8%; top: 34.7%; width: 30.4%; height: 15%; display: flex; align-items: center; justify-content: center; gap: .32em;
  font-size: 3.6cqw; line-height: 1; color: var(--paper); letter-spacing: .03em; white-space: nowrap; }
.sign-word { display: block; }
.sign .letter { display: inline-block; }

.duo { position: absolute; left: 26%; top: 8.33%; width: 48%; height: 91.67%; }   /* x 520-1480, y 60-720 of the drawing */
.duo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s ease; }
.street.is-3d .duo-canvas { opacity: 1; }
.duo-flat { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; display: none; }
.street.is-flat .duo-flat { display: block; animation: flatBounce 1.04s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes flatBounce { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-2%) scaleY(1.02); } }
.duo-hit { position: absolute; left: 12%; right: 12%; top: 12%; bottom: 4%; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.street.is-3d .duo-hit { cursor: grab; touch-action: pan-y; }
.street.is-3d .duo-hit:active { cursor: grabbing; }

.dance-tag { position: absolute; z-index: 4; right: max(16px, calc((100% - 1160px) / 2)); bottom: 3.4%; display: flex; align-items: center; gap: 10px;
  padding: 7px 8px 7px 12px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: .85rem; max-width: calc(100% - 32px); }
.dance-label { color: rgba(251, 246, 236, .7); font-weight: 600; }
.dance-tag b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dance-tag b.swap { animation: swapIn .3s var(--out); }
@keyframes swapIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* the bottom of the opening: who's up and the buttons */
.hero-bar { position: relative; z-index: 3; background: var(--ink); color: var(--paper); padding: 16px 0; }
.bar-row { display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; }
.up-strip { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: baseline; text-decoration: none; min-width: 0; flex: 1 1 380px; }
.up-label { grid-row: span 2; font: 400 1.05rem/1 var(--f-display); color: var(--orange); display: flex; flex-direction: column; gap: 6px; }
.up-for { font: 600 .8rem/1 var(--f-body); color: rgba(251, 246, 236, .7); white-space: nowrap; }
.up-name { font: 400 2rem/1.05 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.up-meta { font-size: .9rem; color: rgba(251, 246, 236, .78); }
.up-meta b { color: var(--paper); font-variant-numeric: tabular-nums; }
.up-strip:hover .up-name { text-decoration: underline; text-underline-offset: 4px; }
.bar-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* "See whose turn it is": a sticker that pops up and points down to the line */
.scroll-cue { --tilt: 6deg; position: absolute; z-index: 5; top: 6%; right: max(3vw, calc((100% - 1300px) / 2)); display: flex; flex-direction: column; align-items: flex-end;
  color: var(--ink); text-decoration: none; }
.scroll-cue span { display: block; font: 400 1.7rem/1.05 var(--f-display); text-align: center; width: 7.6em; padding: 14px 16px 12px;
  background: var(--orange); border: 3px solid var(--ink); border-radius: 12px; transform: rotate(var(--tilt)); transition: background .15s; }
.scroll-cue:hover span { background: var(--paper); }
.scroll-cue svg { width: 96px; height: 112px; overflow: visible; margin-right: 26px; }
.scroll-cue path { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }

/* the drawing moves: flags swing, animals peek out, the fish swims, the trees sway */
.flag { transform-box: fill-box; transform-origin: 50% 0; animation: flagSwing 2.4s ease-in-out infinite alternate; }
@keyframes flagSwing { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.peek { transform: translateY(96px); animation: peek 9s cubic-bezier(.3, 1.4, .5, 1) infinite; }
.p1 { animation-delay: 3.2s; } .p2 { animation-delay: 5.4s; } .p3 { animation-delay: 4.1s; } .p4 { animation-delay: 7.2s; } .p5 { animation-delay: 2.6s; animation-duration: 11s; }
@keyframes peek { 0%, 8% { transform: translateY(96px); } 16%, 52% { transform: translateY(0); } 56% { transform: translateY(-6px); } 64%, 100% { transform: translateY(96px); } }
.fish { animation: swim 6s ease-in-out infinite; }
@keyframes swim { 0%, 100% { transform: translateX(-10px); } 50% { transform: translateX(22px) scaleX(-1); transform-box: fill-box; } }
.canopy { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 5s ease-in-out infinite alternate; }
.t-right .canopy { animation-delay: -2.5s; }
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
.gable-paw { transform-box: fill-box; transform-origin: center; }

/* the opening: it pops out at you, the shelter springs up, the sign's letters drop on */
.js .hero-copy { animation: popOut 1s cubic-bezier(.18, .9, .25, 1.06) both; }
@keyframes popOut { from { opacity: 0; transform: scale(.62); } to { opacity: 1; transform: scale(1); } }
.js .shelter { animation: springUp 1.1s cubic-bezier(.2, 1.25, .35, 1) .2s both; }
@keyframes springUp { from { opacity: 0; transform: translateY(18%) scale(.86); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }
.js .sign .letter { opacity: 0; }
.js.intro-go .sign .letter { animation: drop .8s cubic-bezier(.2, 1.4, .4, 1) forwards; animation-delay: calc(var(--i) * 70ms + 900ms); }
@keyframes drop { from { opacity: 0; transform: translateY(-120%) rotate(-10deg); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
.js .slogan { animation: stamp .6s cubic-bezier(.2, 1.5, .4, 1) .55s both; }
@keyframes stamp { from { opacity: 0; transform: scale(1.8) rotate(-6deg); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
.js .tagline { opacity: 0; animation: rise .7s var(--out) 1s forwards; }
.js .hero-bar { animation: barUp .8s var(--out) 1.5s both; }
@keyframes barUp { from { transform: translateY(100%); } to { transform: none; } }
.js .dance-tag { opacity: 0; animation: rise .6s var(--out) 2.4s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js .gable-paw { animation: pawSpin 1s cubic-bezier(.2, 1.4, .4, 1) 1.6s both; }
@keyframes pawSpin { from { opacity: 0; transform: scale(.2) rotate(-200deg); } to { opacity: 1; transform: none; } }
.js .scroll-cue span { animation: cuePop .75s cubic-bezier(.2, 1.6, .4, 1) 2.6s both, cueNudge 3.2s ease-in-out 5s infinite; }
.js .scroll-cue path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: cueDraw .7s ease-out 3.1s forwards; }
.js .scroll-cue svg { animation: cueBob 1.4s ease-in-out 3.9s infinite; }
@keyframes cueDraw { to { stroke-dashoffset: 0; } }
@keyframes cueBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes cuePop { 0% { opacity: 0; transform: translateY(26px) scale(.3) rotate(-14deg); } 55% { opacity: 1; transform: translateY(-6px) scale(1.15) rotate(calc(var(--tilt) + 6deg)); } 100% { opacity: 1; transform: rotate(var(--tilt)); } }
@keyframes cueNudge { 0%, 80%, 100% { transform: rotate(var(--tilt)); } 86% { transform: translateY(-8px) scale(1.08) rotate(calc(var(--tilt) + 5deg)); } 93% { transform: translateY(0) rotate(calc(var(--tilt) - 3deg)); } }
/* scrolling away from the opening: it zooms past you while the next scene slides up */
.stacked .intro > .street, .stacked .intro > .hero-copy { transform: translateY(calc(var(--cover, 0) * -50px)) scale(calc(1 + var(--cover, 0) * .14)); transform-origin: 50% 70%; }

/* =========================================================
   2. RAISED FOR RESCUE NETWORK
   ========================================================= */
.raised { background: var(--teal); color: var(--paper); padding-bottom: 150px; }
.raised .kicker { color: var(--orange); }
.raised .scene-sub { color: rgba(251, 246, 236, .86); }

/* one wide card: the big total on the left, the three figures stacked on the right */
.meter-card { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 34px);
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); column-gap: 36px; }
.meter-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 700; color: var(--live); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.live.is-idle { color: var(--muted); }
.live.is-error { color: #a36a12; }
.tag { font-size: .85rem; color: var(--muted); }
.meter-main { position: relative; padding: 22px 0 18px; align-self: center; }
.meter-kicker { font-weight: 700; margin-bottom: 6px; }
.meter-big { font: 400 clamp(3.4rem, 9vw, 7rem)/1 var(--f-display); margin: 0; color: var(--teal-deep); }
.meter-sub { margin: 12px 0 0; color: var(--muted); font-size: .95rem; }
.meter-lock { margin: 12px 0 0; font-size: .92rem; font-weight: 700; color: var(--teal); }
.meter-lock[hidden] { display: none; }
.meter-pop { position: absolute; right: 0; top: 14px; font: 400 1.15rem/1 var(--f-display); color: var(--ink); background: var(--orange); padding: 8px 12px; border-radius: 6px; animation: pop 2.4s ease forwards; }
@keyframes pop { 0% { opacity: 0; transform: translateY(12px); } 12% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-18px); } }
.meter-tiles { align-self: center; border-left: 1.5px solid var(--rule); padding-left: 28px; margin: 14px 0; }
.tile { padding: 12px 0; min-width: 0; }
.tile + .tile { border-top: 1.5px solid var(--rule); }
.tile > span { display: block; font-size: .82rem; color: var(--muted); font-weight: 600; }
.tile b { font: 400 1.3rem/1.3 var(--f-display); }
.market { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 14px; border-top: 1.5px solid var(--rule); }
.market[hidden] { display: none; }
.market span { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.market b { font-weight: 800; font-variant-numeric: tabular-nums; }
.market .up { color: var(--live); } .market .down { color: #b3372b; }
.meter-foot { grid-column: 1 / -1; margin: 14px 0 0; padding-top: 12px; border-top: 1.5px solid var(--rule); font-size: .85rem; color: var(--muted); }

/* slogans running along the bottom of the raised scene, a coin between each */
.ticker { position: absolute; left: -2%; right: -2%; bottom: 40px; z-index: 2; overflow: hidden; background: var(--orange); color: var(--ink);
  border-block: 3px solid var(--ink); transform: rotate(-1.2deg); }
.ticker-track { display: flex; width: max-content; animation: tick 50s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker-list li { display: flex; align-items: center; gap: 24px; padding: 13px 0 11px 24px; font: 400 1.35rem/1 var(--f-display); white-space: nowrap; }
.ticker-list li::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink);
  background: var(--teal) url(assets/coin-128.png) center / cover; }
@keyframes tick { to { transform: translateX(-50%); } }

/* =========================================================
   3. THE RESCUE: HOW A STRAY GETS HOME, AND WHY STRAYS NEED THE HELP
   ========================================================= */
.rescue { background: var(--paper-2); }
.rescue-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: start; }
/* the stray's trip, as numbered steps: number, name, what happens */
.does { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); counter-reset: step; display: flex; flex-direction: column; align-self: stretch; }
.does li { flex: 1; counter-increment: step; display: grid; grid-template-columns: 1.4em 5.6em 1fr; gap: 4px 14px; align-items: baseline; align-content: center; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.does li::before { content: counter(step); font: 400 1.4rem/1.15 var(--f-display); color: var(--orange-dark); }
.does h3 { font: 400 1.4rem/1.15 var(--f-display); color: var(--teal); }
.does p { margin: 0; color: var(--ink-2); font-size: 1.05rem; }
.why { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: clamp(22px, 3.4vw, 36px); }
.why h3 { font: 400 1.7rem/1.1 var(--f-display); margin-bottom: 14px; }
/* one shared column for the numbers, so the labels line up */
.why-stats { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1.5px solid var(--cream-rule); display: grid; grid-template-columns: auto 1fr; }
.why-stats li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1.5px solid var(--cream-rule); }
.why-stats b { font: 400 clamp(1.6rem, 3vw, 2.2rem)/1 var(--f-display); color: var(--orange); white-space: nowrap; }
.why-stats span { color: rgba(251, 246, 236, .88); }
.why p { color: rgba(251, 246, 236, .88); }
.why .why-src { font-size: .85rem; color: rgba(251, 246, 236, .6); margin-bottom: 16px; }

/* =========================================================
   4. CONTRACT
   ========================================================= */
.token { background: var(--paper); }
.token .scene-head h2 { color: var(--teal); word-break: break-word; }
.token-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 26px; border-top: 1.5px solid var(--rule); border-bottom: 1.5px solid var(--rule); }
.token-grid div { padding: 14px 16px 14px 0; min-width: 0; }
.token-grid div + div { padding-left: 16px; border-left: 1.5px solid var(--rule); }
.token-grid dt { font-size: .82rem; color: var(--muted); font-weight: 600; }
.token-grid dd { margin: 4px 0 0; font: 400 1.2rem/1.3 var(--f-display); word-break: break-word; }
.ca-box { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); }
.ca-label { font-weight: 700; margin-bottom: 6px; }
.ca-value { display: block; font: 400 clamp(1.3rem, 3vw, 2rem)/1.3 var(--f-display); word-break: break-all; margin: 0 0 22px; }
.ca-value.is-address { font: 600 clamp(.9rem, 2vw, 1.25rem)/1.4 ui-monospace, Consolas, monospace; }
.ca-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ca-warn { margin: 18px 0 0; font-size: .92rem; color: rgba(251, 246, 236, .72); }

/* ---------- fine print + footer ---------- */
.fine { padding: 64px 0; background: var(--paper-2); }
.fine-title { font-size: 1.7rem; margin-bottom: 16px; }
.sources { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.sources a { font-weight: 700; color: var(--teal); text-underline-offset: 4px; }
.disclaimer { font-size: .9rem; color: var(--muted); max-width: 78ch; }
.footer { background: var(--ink); color: rgba(251, 246, 236, .78); padding: 24px 0; font-size: .92rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
.footer a { color: var(--paper); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .rescue-grid { grid-template-columns: minmax(0, 1fr); }
  .token-grid { grid-template-columns: repeat(2, 1fr); }
  .token-grid div:nth-child(3) { padding-left: 0; border-left: 0; }
  .scene { min-height: 0; padding: 96px 0 72px; }
  .intro { min-height: 100vh; min-height: 100svh; padding: 0; }
  .raised { padding-bottom: 140px; }
  .scroll-cue span { font-size: 1.25rem; padding: 10px 12px 9px; }
  .scroll-cue svg { width: 64px; height: 76px; margin-right: 18px; }
}
@media (max-width: 760px) {
  .intro { grid-template-rows: auto minmax(330px, 1fr) auto; }
  .hero-copy { padding-top: 70px; }
  .tagline { font-size: .98rem; margin-top: 10px; }
  .scroll-cue { top: 1%; right: 10px; --tilt: 4deg; }
  .scroll-cue span { font-size: .98rem; width: 7.4em; padding: 7px 8px 6px; border-width: 2.5px; border-radius: 9px; }
  .scroll-cue svg { display: none; }
  /* the dance tag moves up into the sky so it never covers their feet */
  .dance-tag { left: 10px; right: auto; top: 1.5%; bottom: auto; font-size: .78rem; gap: 8px; padding: 5px 5px 5px 10px; max-width: 54%; }
  .dance-label { display: none; }
  .aframe { display: none; }
  .hero-bar { padding: 12px 0 14px; }
  .up-strip { flex-basis: 100%; }
  .up-name { font-size: 1.7rem; }
  .bar-cta { width: 100%; }
  .bar-cta .btn { flex: 1; padding: .8em 1em; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand span { font-size: 1.1rem; }
  .does li { grid-template-columns: 1.4em 1fr; }
  .does p { grid-column: 2; }
  .why-stats li { grid-template-columns: 1fr; gap: 2px; }
  .meter-card { grid-template-columns: minmax(0, 1fr); }
  .meter-tiles { border-left: 0; padding-left: 0; margin: 0; border-top: 1.5px solid var(--rule); }
  .market { grid-template-columns: repeat(2, 1fr); }
  .token-grid { grid-template-columns: 1fr; }
  .token-grid div + div, .token-grid div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1.5px solid var(--rule); }
  .scene + .scene { border-radius: 16px 16px 0 0; }
  .ticker { bottom: 30px; transform: rotate(-2deg); }
  .ticker-list li { gap: 18px; padding: 11px 0 9px 18px; font-size: 1.1rem; }
  .ticker-list li::after { width: 26px; height: 26px; }
  .kicker { font-size: 1.15rem; }
}

/* Devices that ask for reduced motion (for example Windows with "Animation effects"
   off) still get the show, just calmer: shorter moves, no overshoot, slower loops. */
.calm .scene [data-anim] { transform: translateY(-10px); transition-duration: .8s; transition-timing-function: ease; }
.calm .hero-copy { animation: popCalm .9s ease both; }
@keyframes popCalm { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.calm .shelter { animation: riseCalm 1s ease .15s both; }
@keyframes riseCalm { from { opacity: 0; transform: translateY(6%); } to { opacity: 1; transform: none; } }
.calm.intro-go .sign .letter { animation: dropCalm .6s ease forwards; animation-delay: calc(var(--i) * 60ms + 700ms); }
@keyframes dropCalm { from { opacity: 0; transform: translateY(-30%); } to { opacity: 1; transform: none; } }
.calm .slogan { animation: stampCalm .7s ease .45s both; }
@keyframes stampCalm { from { opacity: 0; transform: scale(1.2); } to { opacity: 1; transform: none; } }
.calm .scroll-cue span { animation: cuePop .8s cubic-bezier(.3, 1.3, .5, 1) 2.2s both, cueNudge 4.5s ease-in-out 5s infinite; }
.calm .ticker-track { animation-duration: 85s; }
.calm .flag { animation-duration: 3.6s; }
.calm .peek { animation-duration: 12s; animation-timing-function: ease-in-out; }

/* ---------- 404 ---------- */
.lost { text-align: center; align-items: center; background: var(--sky); }
.lost img { margin: 0 auto 10px; }
.lost h1 { font-size: clamp(4rem, 14vw, 8rem); color: var(--teal-deep); }
.lost p { font-size: 1.15rem; }
