/* history-story.css — the History of Deuterium page as one continuous scroll.

   Production, plain CSS, no build. Paired with history-story.js, which draws
   the backdrop (a fixed canvas: hyperspace jump, the Big Bang, snow, vapour…)
   and publishes each chapter's scroll progress as --p (0 → 1 as the chapter
   passes through the window) in a <style> it owns, keyed by chapter id.

   Shopify: every chapter is one <section class="hs-ch"> with its look set by
   data attributes (data-scene, data-bg, data-tone), so each maps onto one
   theme section; this file and the script go in as theme assets unchanged.

   Type follows the live pages: Litewater Heavy for headings, Litewater Text
   for body and labels. No monospace and no italic serif (Joey's rule). */

.hs {
  --hs-gut: clamp(20px, 5vw, 88px);
  --hs-cyan: #00AEEF;
  --hs-royal: #0824B0;
  --hs-navy: #0E0D45;
  --hs-orange: #F7931E;
  --hs-red: #D9342B;
  --hs-ease: cubic-bezier(.22, .61, .36, 1);
  position: relative;
  isolation: isolate;
  /* clip, not hidden: keeps the sticky backdrop from painting past the end
     of the story over the footer, without making .hs a scroll container */
  overflow: clip;
  color: #fff;
  font-family: var(--font-ui);
}

/* ---------------------------------------------------------------- backdrop
   One viewport-sized layer that rides the whole story: sticky, with a
   negative margin so it takes no room. It is confined to .hs, so the footer
   and header are never painted over. */
.hs-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  margin-bottom: -100vh;
  margin-bottom: -100svh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--hs-bg, #04041a);
}
.hs-cosmos { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hs-flash {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, #fff 0%, #fff 35%, rgba(255, 244, 226, .92) 60%, rgba(247, 147, 30, .25) 100%);
  opacity: var(--hs-flash, 0);
}
.hs > section { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- type */
.hs-eye {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--hs-cyan);
}
.hs h1, .hs h2, .hs h3 { color: inherit; font-family: var(--font-grotesk); margin: 0; text-wrap: balance; }
.hs-h2 { font-size: clamp(2.1rem, 4.2vw, 4rem); line-height: 1.02; letter-spacing: -.02em; margin: 16px 0 28px !important; max-width: 17ch; }
.hs p { font-size: clamp(1.06rem, 1.22vw, 1.2rem); line-height: 1.72; margin: 0 0 1.15em; text-wrap: pretty; color: inherit; opacity: .9; }
.hs em { font-style: italic; }
.hs .lwname { font-size: 1.22em; }
.hs-note { font-size: .86rem !important; line-height: 1.6 !important; opacity: .62 !important; max-width: 62ch; }
.hs a { color: inherit; }

/* tones: each chapter says whether it sits on a dark or a light part of the
   backdrop, and its ink follows */
.hs-ch[data-tone="light"] { color: var(--hs-navy); }
.hs-ch[data-tone="light"] .hs-eye { color: #0086bd; }

/* ---------------------------------------------------------------- reveal
   Elements marked data-reveal rise in once, the first time they reach the
   lower part of the window. The script adds .is-in; without the script the
   html element never gets .hs-js, so nothing is hidden. */
.hs-js .hs [data-reveal] { opacity: 0; transform: translateY(34px); filter: blur(6px); transition: opacity .9s var(--hs-ease), transform .9s var(--hs-ease), filter .9s var(--hs-ease); }
.hs-js .hs [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.hs-js .hs [data-reveal="2"] { transition-delay: .08s; }
.hs-js .hs [data-reveal="3"] { transition-delay: .16s; }

/* ---------------------------------------------------------------- hero
   300vh tall, its content pinned for the jump: the scroll through it drives
   the warp (hp, 0 → 1). The title rushes past the viewer as the stars
   stretch into streaks, and the odometer runs the clock back. */
.hs-hero { height: 300vh; }
.hs-hero-pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  padding: 0 var(--hs-gut);
}
.hs-hero-copy {
  max-width: 1100px; text-align: center;
  transform: translateZ(0) scale(calc(1 + var(--hp, 0) * var(--hp, 0) * 3.2));
  opacity: calc(1 - var(--hp, 0) * 2.4);
  filter: blur(calc(var(--hp, 0) * 14px));
  will-change: transform, opacity;
}
.hs-h1 { font-size: clamp(2.6rem, 7vw, 7rem); line-height: .98; letter-spacing: -.03em; margin: 22px auto 26px !important; max-width: 14ch; }
.hs-lede { font-size: clamp(1.1rem, 1.6vw, 1.45rem) !important; line-height: 1.55 !important; max-width: 56ch; margin: 0 auto 30px !important; opacity: .86 !important; }
.hs-byline { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.hs-odo {
  position: absolute; left: 0; right: 0; bottom: clamp(28px, 7vh, 70px);
  text-align: center;
  opacity: clamp(0, calc((var(--hp, 0) - .12) * 6), 1);
}
.hs-odo-n { display: block; font-family: var(--font-grotesk); font-size: clamp(2.2rem, 5.4vw, 4.8rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hs-odo-l { display: block; margin-top: 8px; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--hs-cyan); }
.hs-down {
  position: absolute; left: 50%; bottom: clamp(26px, 5vh, 48px); width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px;
  opacity: calc(1 - var(--hp, 0) * 8);
}
.hs-down::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: hs-wheel 1.8s var(--hs-ease) infinite; }
@keyframes hs-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------------------------------------------------------------- chapters */
.hs-ch { padding: clamp(110px, 22vh, 240px) var(--hs-gut); }
/* keep the copy clear of the chapter rail on the right */
@media (min-width: 901px) { .hs-ch { padding-right: max(var(--hs-gut), 120px); } }
.hs-ch.is-tight { padding-top: clamp(40px, 8vh, 90px); }
.hs-year {
  position: absolute; left: 0; right: 0; top: clamp(40px, 10vh, 110px);
  text-align: center; pointer-events: none; user-select: none;
  font-family: var(--font-grotesk); font-size: clamp(7rem, 24vw, 26rem); line-height: .8; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px currentColor; opacity: .14;
  transform: translateY(calc((var(--p, .5) - .5) * -38vh));
  white-space: nowrap; overflow: hidden;
}
.hs-grid {
  position: relative; max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 110px); align-items: start;
}
.hs-grid.is-flip > .hs-text { order: 2; }
.hs-text { max-width: 640px; }
.hs-vis { position: relative; min-height: 100%; }
.hs-sticky { position: sticky; top: 18vh; }
.hs-wide { position: relative; max-width: 1280px; margin: 0 auto; }

/* stat tiles */
.hs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-top: 30px; }
.hs-stat { padding: 22px 22px 20px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hs-ch[data-tone="light"] .hs-stat { background: rgba(255, 255, 255, .62); border-color: rgba(14, 13, 69, .1); }
.hs-stat b { display: block; font-family: var(--font-grotesk); font-weight: 400; font-size: clamp(2.2rem, 3.4vw, 3.2rem); line-height: 1; color: var(--hs-cyan); font-variant-numeric: tabular-nums; }
.hs-stat span { display: block; margin-top: 10px; font-size: .98rem; line-height: 1.5; opacity: .82; }

/* names (no archival portraits: the people are real, so they get typeset
   cards rather than invented likenesses) */
.hs-names { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hs-name { padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); font-size: .9rem; }
.hs-name small { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin-top: 2px; }

/* photographs (generated stand-ins, captioned as illustrations) */
.hs-photo { margin: 0; border-radius: 22px; overflow: hidden; position: relative; box-shadow: 0 40px 80px rgba(4, 4, 26, .35); }
.hs-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.12 - var(--p, .5) * .12)); }
.hs-photo figcaption { position: absolute; left: 16px; bottom: 14px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }

/* ---------------------------------------------------------------- c1 six drops */
.hs-glass { width: min(320px, 70vw); margin: 0 auto; display: block; overflow: visible; }
.hs-drop { transform-box: fill-box; transform-origin: center; }
.hs-figure-cap { text-align: center; margin-top: 18px; }
.hs-figure-cap b { display: block; font-family: var(--font-grotesk); font-weight: 400; font-size: clamp(3rem, 6vw, 5rem); line-height: 1; color: var(--hs-cyan); }
.hs-figure-cap span { display: block; margin-top: 8px; font-size: 1rem; opacity: .8; }

/* ---------------------------------------------------------------- c2 atom */
.hs-atom { width: min(420px, 82vw); aspect-ratio: 1; margin: 0 auto; position: relative; }
.hs-atom svg { width: 100%; height: 100%; overflow: visible; }
.hs-orbit { transform-origin: 210px 210px; animation: hs-spin 7s linear infinite; }
.hs-orbit.is-b { animation-duration: 11s; animation-direction: reverse; }
@keyframes hs-spin { to { transform: rotate(360deg); } }
.hs-atom-label { position: absolute; left: 0; right: 0; bottom: -10px; text-align: center; }
.hs-atom-label b { font-family: var(--font-grotesk); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.hs-atom-label span { display: block; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--hs-cyan); margin-top: 6px; }

/* ---------------------------------------------------------------- isotopes */
.hs-iso { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); margin-top: 46px; }
.hs-mol { text-align: center; padding: 30px 18px 26px; border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); }
.hs-mol-art { height: 110px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.hs-ball { border-radius: 50%; flex: 0 0 auto; }
.hs-ball.is-o { width: 58px; height: 58px; background: radial-gradient(circle at 34% 30%, #bfeeff 0%, #00AEEF 38%, #0824B0 100%); box-shadow: 0 10px 24px rgba(0, 174, 239, .35); z-index: 1; }
.hs-ball.is-h { width: 34px; height: 34px; background: radial-gradient(circle at 34% 30%, #fff 0%, #dfe7f2 50%, #8f9bb3 100%); margin: 0 -8px; }
.hs-ball.is-d { width: 46px; height: 46px; background: radial-gradient(circle at 34% 30%, #ffd2cb 0%, #D9342B 45%, #7a1410 100%); margin: 0 -10px; box-shadow: 0 8px 20px rgba(217, 52, 43, .35); }
.hs-mol-art .hs-ball:first-child { transform: translateY(14px); }
.hs-mol-art .hs-ball:last-child { transform: translateY(14px); }
.hs-mol h3 { font-size: 1.7rem; margin-top: 18px !important; }
.hs-mol p { font-size: 1rem !important; margin: 8px 0 0 !important; opacity: .78 !important; }
.hs-scale { width: min(560px, 90%); margin: 60px auto 0; display: block; overflow: visible; }
.hs-scale { --tip: clamp(0, (var(--p, 1) - .25) * 2.6, 1); }
.hs-beam { transform-box: view-box; transform-origin: 280px 60px; transform: rotate(calc(var(--tip) * -8deg)); }
/* the pans hang plumb: counter-rotate them about their hook so they stay
   upright while the beam tips (deuterium's side goes down) */
.hs-pan-l { transform-box: view-box; transform-origin: 90px 60px; transform: rotate(calc(var(--tip) * 8deg)); }
.hs-pan-r { transform-box: view-box; transform-origin: 470px 60px; transform: rotate(calc(var(--tip) * 8deg)); }
.hs-center { margin-left: auto !important; margin-right: auto !important; text-align: center; }

/* ---------------------------------------------------------------- c3 ice */
.hs-tumbler { width: min(300px, 70vw); margin: 0 auto; display: block; overflow: visible; }
.hs-ice-light { transform: translateY(calc(sin(var(--p, 0) * 12rad) * 3px)); }
.hs-ice-heavy { transform: translateY(calc(clamp(0, (var(--p, 0) - .15) * 1.8, 1) * 168px)); }
.hs-tumbler-cap { display: flex; justify-content: space-between; gap: 18px; max-width: 320px; margin: 14px auto 0; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }

/* ---------------------------------------------------------------- c4 Siberia */
.hs-band { position: relative; margin: clamp(40px, 7vh, 80px) auto 0; max-width: 1280px; aspect-ratio: 21 / 9; }
.hs-band .hs-photo { position: absolute; inset: 0; }
.hs-compare { display: grid; gap: 14px; margin-top: 30px; max-width: 520px; }
.hs-bar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 70px; gap: 14px; align-items: center; font-size: .95rem; }
.hs-bar i { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, #0824B0, #00AEEF); width: calc(var(--w) * clamp(0, (var(--p, 0) - .12) * 2.6, 1)); }
.hs-bar b { font-family: var(--font-grotesk); font-weight: 400; text-align: right; }

/* ---------------------------------------------------------------- quote */
.hs-quote { max-width: 1080px; margin: 0 auto; text-align: center; }
.hs-quote blockquote { margin: 0; font-family: var(--font-grotesk); font-size: clamp(1.8rem, 3.8vw, 3.6rem); line-height: 1.12; letter-spacing: -.02em; }
.hs-quote .w { opacity: .14; transition: opacity .35s ease; }
.hs-quote .w.is-on { opacity: 1; }
.hs-quote .w.is-hi { color: #0086bd; }
.hs-quote footer { margin-top: 26px; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }

/* ---------------------------------------------------------------- c5 experiments */
.hs-exp { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.hs-exp > div { padding: 26px; border-radius: 20px; background: rgba(255, 255, 255, .68); border: 1px solid rgba(14, 13, 69, .08); }
.hs-exp > div:first-child { border-top: 4px solid var(--hs-red); transform: translateX(calc((1 - clamp(0, (var(--p, 0) - .1) * 3, 1)) * -60px)); opacity: clamp(0, (var(--p, 0) - .1) * 3, 1); }
.hs-exp > div:last-child { border-top: 4px solid var(--hs-cyan); transform: translateX(calc((1 - clamp(0, (var(--p, 0) - .16) * 3, 1)) * 60px)); opacity: clamp(0, (var(--p, 0) - .16) * 3, 1); }
.hs-exp .hs-eye { font-size: .68rem; }
.hs-exp > div:first-child .hs-eye { color: var(--hs-red); }
.hs-exp b { display: block; font-family: var(--font-grotesk); font-weight: 400; font-size: clamp(2rem, 3vw, 2.6rem); margin: 12px 0 6px; }
.hs-exp span:last-child { font-size: .96rem; line-height: 1.5; opacity: .8; }

/* ---------------------------------------------------------------- c6 survival */
.hs-surv { display: flex; align-items: flex-end; justify-content: center; gap: clamp(28px, 5vw, 70px); height: 340px; margin: 10px auto 0; max-width: 420px; }
.hs-surv > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.hs-surv i { display: block; width: 100%; border-radius: 16px 16px 6px 6px; height: calc(var(--h) * clamp(0, (var(--p, 0) - .12) * 2.4, 1)); }
.hs-surv > div:first-child i { background: linear-gradient(180deg, #00AEEF, #0824B0); box-shadow: 0 20px 40px rgba(0, 174, 239, .3); }
.hs-surv > div:last-child i { background: rgba(14, 13, 69, .18); }
.hs-surv b { font-family: var(--font-grotesk); font-weight: 400; font-size: clamp(2.2rem, 3.6vw, 3.2rem); margin-bottom: 12px; }
.hs-surv span { margin-top: 12px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; opacity: .7; text-align: center; }

/* ---------------------------------------------------------------- c7 motor */
.hs-motor { position: relative; width: 100%; aspect-ratio: 1 / 1.05; border-radius: 26px; overflow: hidden; background: radial-gradient(circle at 50% 45%, rgba(0, 174, 239, .22), rgba(14, 13, 69, 0) 66%); }
.hs-motor iframe { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.hs-motor-read { position: absolute; left: 22px; bottom: 18px; right: 22px; display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.hs-motor-read b { font-family: var(--font-grotesk); font-weight: 400; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.hs-motor-read span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.hs-motor-read .is-jam { color: #ff8a7a; }

/* ---------------------------------------------------------------- c8 column */
.hs-col { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 26px; align-items: center; margin-top: 30px; }
.hs-col svg { width: 120px; height: auto; overflow: visible; }
.hs-col-read b { display: block; font-family: var(--font-grotesk); font-weight: 400; font-size: clamp(3rem, 6vw, 5.4rem); line-height: .95; font-variant-numeric: tabular-nums; }
.hs-col-read span { display: block; margin-top: 8px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; opacity: .78; }

/* ---------------------------------------------------------------- c9 scale */
.hs-ppm { display: grid; gap: 14px; margin-top: 46px; }
.hs-ppm-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) 130px; gap: 20px; align-items: center; font-size: 1.05rem; }
.hs-ppm-row i { display: block; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .9); width: calc(var(--w) * clamp(0, (var(--p, 0) - var(--d, 0) - .08) * 3, 1)); }
.hs-ppm-row.is-ocean i { background: var(--hs-red); }
.hs-ppm-row.is-lw i { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35), 0 0 34px rgba(255, 255, 255, .7); }
.hs-ppm-row b { font-family: var(--font-grotesk); font-weight: 400; font-size: 1.25rem; text-align: right; }
.hs-ppm-big { font-family: var(--font-grotesk); font-size: clamp(4rem, 12vw, 11rem); line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hs-ppm-big small { font-size: .3em; letter-spacing: .06em; margin-left: .2em; opacity: .8; }

/* ---------------------------------------------------------------- c10 + CTA */
.hs-today { max-width: 760px; margin: 0 auto; }
.hs-sign { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(14, 13, 69, .14); font-size: .95rem; line-height: 1.8; opacity: .75; }
.hs-cta { text-align: center; padding-bottom: clamp(90px, 14vh, 160px); }
.hs-cta-bottle { display: block; width: clamp(90px, 9vw, 130px); height: auto; margin: 0 auto 26px; transform: translateY(calc((1 - clamp(0, var(--p, 0) * 2.2, 1)) * 120px)) rotate(calc((1 - clamp(0, var(--p, 0) * 2.2, 1)) * -8deg)); filter: drop-shadow(0 30px 40px rgba(14, 13, 69, .22)); }
.hs-cta h2 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: 1.02; letter-spacing: -.02em; max-width: 16ch; margin: 14px auto 18px !important; }
.hs-cta p { max-width: 52ch; margin: 0 auto 30px !important; }
.hs-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hs-btn { display: inline-flex; align-items: center; gap: 12px; padding: 17px 30px; border-radius: 10px; font-family: var(--font-grotesk); font-size: .88rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: scale .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease, background .25s ease; }
.hs-btn:hover { scale: 1.05; }
.hs-btn.is-primary { color: #fff !important; background: var(--hs-cyan); box-shadow: 0 14px 32px rgba(0, 174, 239, .35); }
.hs-btn.is-primary:hover { background: var(--hs-orange); box-shadow: 0 16px 36px rgba(247, 147, 30, .4); }
.hs-btn.is-ghost { color: var(--hs-navy) !important; background: rgba(255, 255, 255, .8); border: 1px solid rgba(14, 13, 69, .14); }

/* ---------------------------------------------------------------- progress rail
   A thin line down the right edge with the chapter years; the current one is
   lit. Built by the script on <body> so re-renders cannot drop it. */
.hs-rail { position: fixed; right: clamp(12px, 1.6vw, 26px); top: 50%; transform: translateY(-50%); z-index: 60; display: flex; flex-direction: column; gap: 4px; opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.hs-rail.is-on { opacity: 1; pointer-events: auto; }
.hs-rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 4px 0; font-size: 0 !important; font-family: var(--font-ui); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); text-decoration: none; transition: color .3s ease; }
.hs-rail a i { width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: width .3s ease; }
.hs-rail a.is-on, .hs-rail a:hover { color: #00AEEF; font-size: .68rem !important; }
.hs-rail a.is-on i { width: 30px; }
.hs-rail.is-light a { color: rgba(14, 13, 69, .4); }
.hs-rail.is-light a.is-on { color: #0086bd; }

/* ---------------------------------------------------------------- phones */
@media (max-width: 900px) {
  .hs-grid { grid-template-columns: 1fr; }
  .hs-grid.is-flip > .hs-text { order: 0; }
  .hs-sticky { position: relative; top: 0; }
  .hs-ch { padding: clamp(90px, 16vh, 150px) 20px; }
  .hs-year { font-size: 32vw; top: 30px; }
  .hs-iso { grid-template-columns: 1fr; }
  .hs-exp { grid-template-columns: 1fr; }
  .hs-ppm-row { grid-template-columns: 1fr 80px; }
  .hs-ppm-row i { grid-column: 1 / -1; order: 3; height: 26px; }
  .hs-bar { grid-template-columns: 110px minmax(0, 1fr) 56px; font-size: .85rem; }
  .hs-rail { display: none; }
  .hs-hero { height: 240vh; }
  .hs-band { aspect-ratio: 4 / 3; }
  .hs-motor { aspect-ratio: 1 / 1.1; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-hero { height: auto; }
  .hs-hero-pin { position: relative; height: auto; min-height: 90vh; padding: 120px 20px; }
  .hs-hero-copy { transform: none; opacity: 1; filter: none; }
  .hs-odo, .hs-down { display: none; }
  .hs-js .hs [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .hs-orbit { animation: none; }
}

/* ======================================================================
   Digestible chapters (2026-11-18 pass): each chapter leads with one
   sentence that lights up word by word as it scrolls through (.hs-say,
   split into words by the script; <mark> phrases take the homepage hero's
   blue glass), a few numbers, one visual, and the full essay text folded
   into "Read the full story" (still in the page, so still indexed).
   ====================================================================== */
.hs-say { font-family: var(--font-grotesk) !important; font-size: clamp(1.6rem, 2.7vw, 2.55rem) !important; line-height: 1.18 !important; letter-spacing: -.015em; opacity: 1 !important; margin: 0 0 28px !important; max-width: 24ch; text-wrap: balance; }
.hs-say.hs-center { max-width: 28ch; }
.hs-say.is-quote { max-width: none; font-size: clamp(1.8rem, 3.6vw, 3.4rem) !important; }
.hs-say .w { opacity: .18; transition: opacity .4s ease; }
.hs-say .w.is-on { opacity: 1; }
.hs-say mark { background: none; color: inherit; padding: 0; }
.hs-say mark.is-on {
  color: #fff;
  font-style: italic;
  background: linear-gradient(180deg, rgba(0, 174, 239, .82), rgba(0, 174, 239, .58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 18px rgba(14, 13, 69, .18);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: .02em .14em; border-radius: .12em;
  transition: background .4s ease, color .4s ease;
}
.hs-say mark.is-on .w { opacity: 1; }

.hs-chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 26px; }
.hs-chip { padding: 14px 18px 12px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); min-width: 120px; }
.hs-ch[data-tone="light"] .hs-chip { background: rgba(255, 255, 255, .7); border-color: rgba(14, 13, 69, .1); }
.hs-chip b { display: block; font-family: var(--font-grotesk); font-weight: 400; font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1; color: var(--hs-cyan); font-variant-numeric: tabular-nums; }
.hs-chip span { display: block; margin-top: 6px; font-size: .82rem; line-height: 1.35; opacity: .78; }

.hs-more { margin-top: 6px; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 14px; }
.hs-ch[data-tone="light"] .hs-more { border-top-color: rgba(14, 13, 69, .12); }
.hs-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--hs-cyan); padding: 6px 0; }
.hs-ch[data-tone="light"] .hs-more summary { color: #0086bd; }
.hs-more summary::-webkit-details-marker { display: none; }
.hs-more summary::after { content: "+"; font-size: 1.3rem; line-height: 1; transition: transform .3s ease; }
.hs-more[open] summary::after { transform: rotate(45deg); }
.hs-more[open] summary { margin-bottom: 14px; }

/* the scientific renders: bright ivory "inside the cell" images, framed */
.hs-render { position: relative; margin: 0; border-radius: 26px; overflow: hidden; background: #f6f3ec; box-shadow: 0 30px 70px rgba(4, 4, 26, .35), 0 0 0 1px rgba(255, 255, 255, .12); }
.hs-render img { display: block; width: 100%; height: auto; }
.hs-render-tags { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: space-around; pointer-events: none; }
.hs-render-tags span { font-family: var(--font-grotesk); font-size: clamp(1.05rem, 1.5vw, 1.35rem); color: var(--hs-navy); text-align: center; padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hs-render-tags small { display: block; font-family: var(--font-ui); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: #0086bd; margin-top: 2px; }
.hs-render-tags.is-stack { top: 16px; bottom: 16px; flex-direction: column; justify-content: space-between; align-items: center; }
.hs-mol img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; margin-bottom: 4px; }
.hs-mol { padding: 12px 12px 22px; }
.hs-scale-img { max-width: 900px; margin: 46px auto 0; }
.hs-sign { display: flex; align-items: center; gap: 16px; }
.hs-sign img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; flex: 0 0 auto; }

/* the litewater bar on the PPM scale: glowing royal blue, with room below */
.hs-ppm-row.is-lw i { background: linear-gradient(90deg, #0824B0, #0E0D45) !important; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55), 0 0 26px rgba(8, 36, 176, .75), 0 0 60px rgba(255, 255, 255, .55) !important; }
.hs-ppm-row.is-lw b, .hs-ppm-row.is-lw > span { font-weight: 400; color: #0E0D45; }
#c9 .hs-ppm { margin-bottom: 40px; }
#c9 .hs-note { margin-top: 0 !important; }
#c9 { padding-bottom: clamp(140px, 24vh, 260px); }
@media (max-width: 900px) { .hs-say { max-width: none; } .hs-render-tags span { font-size: .95rem; padding: 6px 10px; } }
.hs-ppm-row.is-lw i { min-width: 22px; }
.hs-say.hs-center, .hs-quote .hs-say { margin-left: auto !important; margin-right: auto !important; }
#c9 .hs-say mark.is-on { background: linear-gradient(180deg, rgba(14, 13, 69, .9), rgba(8, 36, 176, .8)); }

/* ======================================================================
   Live 3D (history-3d.js) and the Polpharma-style motion pass.
   ====================================================================== */
/* the 3D canvas sits over the 2D cosmos in the sticky backdrop, under the copy */
.hs-3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
/* anchors: empty boxes the 3D rigs are drawn into; they hold a still render
   as the fallback, hidden once WebGL is running */
.hs-3d { position: relative; width: 100%; aspect-ratio: 1 / 1.05; }
.hs-3d > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.hs-3d-on .hs-3d > img { visibility: hidden; }
.hs-3d.is-mol { aspect-ratio: 1; }
.hs-3d.is-mol > img { border-radius: 16px; }
.hs-3d.is-scale { aspect-ratio: 16 / 9; }
.hs-mol { background: rgba(255, 255, 255, .04); }
.hs-scale-wrap { position: relative; max-width: 960px; margin: 40px auto 0; }
.hs-scale-tags { display: flex; justify-content: space-between; padding: 0 9%; margin-top: -10px; }
.hs-scale-tags span { font-family: var(--font-grotesk); font-size: clamp(1.1rem, 1.6vw, 1.45rem); }
.hs-scale-tags small { display: block; font-family: var(--font-ui); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--hs-cyan); margin-top: 4px; }
.hs-atom-label { position: relative; text-align: center; margin-top: 6px; }
.hs-atom-label b { font-family: var(--font-grotesk); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.hs-atom-label span { display: block; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--hs-cyan); margin-top: 6px; }

/* headlines rise word by word out of a mask, like the Polpharma statements */
.hs-js .hs .hs-h2[data-reveal] { opacity: 1; transform: none; filter: none; }
.hs-mw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hs-mi { display: inline-block; transform: translateY(108%); transition: transform 1s cubic-bezier(.19, 1, .22, 1); transition-delay: calc(var(--i, 0) * 55ms); }
.hs-h2.is-in .hs-mi { transform: none; }

/* the blue glass highlight: its padding and slant are there from the start,
   so lighting it only fades the glass in and never moves a word */
.hs-say mark { font-style: italic; padding: .02em .14em; border-radius: .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: rgba(0, 174, 239, 0); color: inherit; transition: background .5s ease, color .5s ease, box-shadow .5s ease; }
.hs-say mark.is-on { padding: .02em .14em; }

/* pinned stretches: the content holds still in the window while the scroll
   runs on, so a 3D piece can turn or tip with it (history-3d.js reads the
   progress through the pin) */
.hs-pin { position: relative; height: 230vh; }
.hs-pin-in { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.hs-pin[data-pin="scale"] { height: 200vh; }
@media (max-width: 900px) { .hs-pin { height: 190vh; } .hs-iso { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .hs-mol p { display: none; } }
.hs-3d:empty { background: none; }
.hs-3d.is-wide { aspect-ratio: 4 / 3; }
.hs-3d.is-tall { aspect-ratio: 3 / 4.2; max-height: 78vh; margin: 0 auto; }
.hs-surv-tags { display: flex; justify-content: space-around; text-align: center; margin-top: 4px; }
.hs-surv-tags b { display: block; font-family: var(--font-grotesk); font-weight: 400; font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1; }
.hs-surv-tags div:first-child b { color: #0086bd; }
.hs-surv-tags span { display: block; margin-top: 8px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.hs-exp { margin-top: 14px; }
/* the 5 PPM seal turns into place beside the counter */
.hs-ppm-hero { display: flex; align-items: center; gap: clamp(24px, 4vw, 60px); flex-wrap: wrap; }
.hs-seal { width: clamp(130px, 15vw, 210px); height: auto; filter: drop-shadow(0 18px 30px rgba(14, 13, 69, .25));
  transform: perspective(800px) rotateY(calc((1 - clamp(0, (var(--p, 1) - .2) * 3.2, 1)) * 180deg)) scale(calc(.7 + clamp(0, (var(--p, 1) - .2) * 3.2, 1) * .3)); }
/* the litewater bar in the brand blue; a white ring and glow lift it off the
   same-blue chapter behind it */
.hs-ppm-row.is-lw i { background: #00AEEF !important; box-shadow: 0 0 0 3px #fff, 0 0 22px rgba(255, 255, 255, .9), 0 0 48px rgba(0, 174, 239, .9) !important; }
/* the highlight fills word by word: each lit word (and the space before the
   next) takes the glass, so it sweeps along the phrase with the scroll */
.hs-say mark, .hs-say mark.is-on { background: none !important; box-shadow: none !important; padding: 0 !important; color: inherit; }
.hs-say mark .hw, .hs-say mark .ws { padding: .03em 0; transition: background .25s ease, color .25s ease; }
.hs-say mark .hw.is-on, .hs-say mark .ws.is-on { color: #fff; background: linear-gradient(180deg, rgba(0, 174, 239, .85), rgba(0, 174, 239, .6)); }
.hs-say mark .ws { opacity: 1; }
.hs-say mark .hw:first-child { padding-left: .14em; margin-left: -.02em; border-radius: .12em 0 0 .12em; }
.hs-say mark .hw:last-child { padding-right: .14em; border-radius: 0 .12em .12em 0; }
#c9 .hs-say mark .hw.is-on, #c9 .hs-say mark .ws.is-on { background: linear-gradient(180deg, rgba(14, 13, 69, .9), rgba(8, 36, 176, .8)); }
/* the balance, big */
.hs-scale-wrap { max-width: 1280px; width: 100%; }
.hs-3d.is-scale { aspect-ratio: 16 / 10; max-height: 74vh; }
.hs-say mark { transition: none !important; background: none !important; }

/* ======================================================================
   Luxury pass (2026-11-18, after Joey: "ultra luxury, not AI slop"; the
   reference is the Polpharma about-us page): calm, refined, generous space,
   lighter statement type, hairline details, quieter backdrop, slower motion.
   ====================================================================== */

/* the lead statements: large, light, refined, filling continuously with the
   scroll. Each word carries --f (0..1) from history-story.js */
.hs-say { font-family: var(--font-ui) !important; font-weight: 300 !important; font-size: clamp(1.75rem, 2.9vw, 2.9rem) !important; line-height: 1.16 !important; letter-spacing: -.025em !important; max-width: 22ch; }
.hs-say.is-quote { font-size: clamp(1.9rem, 3.6vw, 3.5rem) !important; max-width: 26ch; margin-left: auto !important; margin-right: auto !important; }
.hs-say .w, .hs-say .w.is-on { opacity: calc(.16 + .84 * var(--f, 0)); transition: none !important; }
.hs-say mark .hw, .hs-say mark .ws,
.hs-say mark .hw.is-on, .hs-say mark .ws.is-on {
  color: color-mix(in srgb, #fff calc(var(--f, 0) * 100%), currentColor);
  background: linear-gradient(180deg, rgba(0, 174, 239, .88), rgba(0, 174, 239, .62)) no-repeat 0 0 / calc(var(--f, 0) * 100%) 100% !important;
  font-style: italic; transition: none !important; opacity: calc(.16 + .84 * var(--f, 0));
}
.hs-say mark .ws, .hs-say mark .ws.is-on { opacity: 1; }

/* headlines a touch smaller and quieter, eyebrows on a hairline */
.hs-h2 { font-size: clamp(1.9rem, 3.4vw, 3.3rem) !important; letter-spacing: -.025em !important; }
.hs-eye { display: inline-flex; align-items: center; gap: 14px; font-size: .7rem !important; letter-spacing: .28em !important; }
.hs-eye::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.hs-ch .hs-wide > .hs-eye::before, .hs-cta .hs-eye::before { display: none; }

/* body copy: lighter, narrower, more air */
.hs p:not(.hs-say):not(.hs-note) { font-size: clamp(1rem, 1.08vw, 1.1rem) !important; line-height: 1.85 !important; opacity: .74 !important; max-width: 58ch; }

/* numbers without boxes: a hairline above each, the figure light and large */
.hs-chips { gap: 0 36px; margin: 6px 0 34px; }
.hs-chip, .hs-ch[data-tone="light"] .hs-chip { background: none !important; border: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; padding: 16px 0 0 !important; border-top: 1px solid rgba(255, 255, 255, .22) !important; border-radius: 0 !important; min-width: 110px; }
.hs-ch[data-tone="light"] .hs-chip { border-top-color: rgba(14, 13, 69, .2) !important; }
.hs-chip b { font-family: var(--font-ui) !important; font-weight: 300 !important; font-size: clamp(2rem, 2.8vw, 2.7rem) !important; letter-spacing: -.03em; color: inherit !important; }
.hs-chip span { font-size: .7rem !important; letter-spacing: .16em; text-transform: uppercase; opacity: .6 !important; }

/* cards: barely there */
.hs-mol, .hs-exp > div { background: rgba(255, 255, 255, .025) !important; border: 1px solid rgba(255, 255, 255, .1) !important; border-radius: 28px !important; }
.hs-ch[data-tone="light"] .hs-exp > div { background: rgba(255, 255, 255, .55) !important; border-color: rgba(14, 13, 69, .08) !important; }
.hs-mol h3 { font-family: var(--font-ui) !important; font-weight: 300 !important; letter-spacing: -.02em; }
.hs-names .hs-name { background: none; border-color: rgba(255, 255, 255, .16); }

/* a quieter backdrop: a soft vignette and mist over the cosmos */
.hs-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, rgba(0, 0, 0, 0) 55%, rgba(4, 4, 26, .35) 100%); }
.hs-year { opacity: .07 !important; -webkit-text-stroke-width: 1px !important; }

/* slower, softer reveals */
.hs-js .hs [data-reveal] { transition-duration: 1.4s !important; transform: translateY(24px); filter: blur(4px); }
.hs-mi { transition-duration: 1.3s !important; }

/* chapter 9 sits on deep navy so the blues read */
#c9 .hs-say mark .hw, #c9 .hs-say mark .ws { background: linear-gradient(180deg, rgba(0, 174, 239, .88), rgba(0, 174, 239, .62)) no-repeat 0 0 / calc(var(--f, 0) * 100%) 100% !important; }
#c9 .hs-ppm-row:not(.is-ocean):not(.is-lw) i { background: rgba(255, 255, 255, .85); }
#c9 .hs-ppm-row b, #c9 .hs-ppm-row > span { color: #fff !important; }
.hs-ppm-hero { justify-content: flex-start; margin: 10px 0 18px; }
.hs-seal { width: clamp(150px, 16vw, 230px) !important; }
/* photoreal scroll-scrubbed scenes */
.hs-scrub { position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 28px; overflow: hidden; background: #0b0a35; box-shadow: 0 40px 90px rgba(4, 4, 26, .45), 0 0 0 1px rgba(255, 255, 255, .06); }
.hs-scrub canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hs-scrub { height: min(66vh, 760px); width: auto; max-width: 100%; aspect-ratio: 3 / 4; margin: 0 auto; }
.hs-vis > .hs-sticky:has(.hs-scrub) { top: 14vh; }
.hs-pin.is-scrub { height: 240vh; }
.hs-pin.is-scrub .hs-scrub { height: min(70vh, 780px); }
.hs-pin.is-scrub .hs-figure-cap { margin-top: 14px; }
.hs-pin.is-scrub .hs-figure-cap b { font-size: clamp(2.2rem, 4vw, 3.4rem); }
/* no box: the footage melts into the page, its edges feathered away */
.hs-scrub { background: none !important; box-shadow: none !important; border-radius: 0 !important; overflow: visible !important;
  -webkit-mask-image: radial-gradient(ellipse 72% 78% at 50% 52%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 78% at 50% 52%, #000 55%, transparent 100%); }

/* highlight, final: the hero's blue glass on the whole phrase (rounded, padded,
   white italic), swept in from the left with the scroll; words inside only
   brighten. Each line of a wrapped phrase sweeps with it. */
.hs-say mark .hw, .hs-say mark .ws, .hs-say mark .hw.is-on, .hs-say mark .ws.is-on { background: none !important; padding: 0 !important; border-radius: 0 !important; margin: 0 !important; }
.hs-say mark, .hs-say mark.is-on {
  font-style: italic; color: inherit;
  padding: .04em .18em !important; margin: 0 .04em; border-radius: .14em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(180deg, rgba(0, 174, 239, .9), rgba(0, 174, 239, .64)) no-repeat 0 0 / calc(var(--mf, 0) * 100%) 100% !important;
  box-shadow: none !important; transition: none !important;
}
.hs-say mark .hw { color: color-mix(in srgb, #fff calc(var(--f, 0) * 100%), currentColor) !important; }

/* the 5 PPM seal, rebuilt from the product page: gold disc, white ring text
   turning slowly, the 5 and PPM still in the middle. It flips in with the
   scroll. Scaled ×2 from the PDP's 112px. */
.hs-seal { position: relative; width: clamp(170px, 16vw, 230px) !important; aspect-ratio: 1; flex: 0 0 auto; filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .35));
  transform: perspective(900px) rotateY(calc((1 - clamp(0, (var(--p, 1) - .18) * 3.4, 1)) * 200deg)) scale(calc(.6 + clamp(0, (var(--p, 1) - .18) * 3.4, 1) * .4)); }
.hs-seal-ring { width: 100%; height: 100%; display: block; animation: hs-seal-spin 24s linear infinite; }
@keyframes hs-seal-spin { to { transform: rotate(360deg); } }
.hs-seal-n { position: absolute; left: 41%; top: 47%; transform: translate(-50%, -52%); font-family: var(--font-display, 'Litewater Heavy'); font-weight: 900; font-size: calc(var(--sz, 1) * 6.9rem); line-height: 1; letter-spacing: -.12em; padding-left: .12em; color: #fff; text-shadow: 0 3px 10px rgba(14, 13, 69, .18); }
.hs-seal-ppm { position: absolute; left: 50%; bottom: 22%; transform: translateX(-50%); font-family: var(--font-display, 'Litewater Heavy'); font-weight: 900; font-size: 1.55rem; letter-spacing: .04em; color: #fff; }
@media (max-width: 1300px) { .hs-seal-n { font-size: 5.6rem; } .hs-seal-ppm { font-size: 1.25rem; } }
@media (prefers-reduced-motion: reduce) { .hs-seal-ring { animation: none; } }

/* the PPM bars as glass rods in 3D: the whole chart tilts back and zooms in
   as the chapter scrolls up, settling flat and close */
#c9 .hs-ppm { --k: clamp(0, (var(--p, 1) - .1) * 2.4, 1); perspective: 1400px; transform-style: preserve-3d;
  transform: perspective(1400px) rotateX(calc((1 - var(--k)) * 38deg)) rotateZ(calc((1 - var(--k)) * -4deg)) scale(calc(.82 + var(--k) * .18)); transform-origin: 50% 0; }
#c9 .hs-ppm-row i { height: 34px !important; border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(214, 226, 238, .9) 45%, rgba(150, 168, 190, .9) 100%) !important;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .9), inset 0 -6px 10px rgba(14, 13, 69, .25), 0 14px 26px rgba(0, 0, 0, .35) !important; }
#c9 .hs-ppm-row.is-ocean i { background: linear-gradient(180deg, #ff8f7f 0%, #D9342B 45%, #8a1810 100%) !important; }
/* litewater: glowing brand blue, no outline, its label bigger and blue */
#c9 .hs-ppm-row.is-lw i { background: linear-gradient(180deg, #8fe6ff 0%, #00AEEF 45%, #0077b5 100%) !important;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), 0 0 26px rgba(0, 174, 239, .95), 0 0 60px rgba(0, 174, 239, .6) !important; }
#c9 .hs-ppm-row.is-lw > span .lwname { color: #00AEEF; font-size: 2.1em; }
#c9 .hs-ppm-row.is-lw b { color: #00AEEF !important; font-size: 1.7rem; }
/* the drops frames carry real transparency now: no fade, no frame */
.hs-scrub { -webkit-mask-image: none !important; mask-image: none !important; }
/* seal: the 5 and PPM centred as a block in the disc */
.hs-seal-n { left: 50% !important; top: 44% !important; transform: translate(-50%, -50%) !important; letter-spacing: 0 !important; padding-left: 0 !important; text-align: center; }
.hs-seal-ppm { left: 50% !important; bottom: auto !important; top: 70% !important; transform: translate(-50%, -50%) !important; }

/* "6" under the glass in deuterium red */
#c1 .hs-figure-cap b { color: #D01E1E; text-shadow: 0 0 24px rgba(208, 30, 30, .45); }

/* ---- sideways timeline ---- */
.hs-hz { padding-left: 0 !important; padding-right: 0 !important; }
.hs-hz .hs-pin { height: 320vh; }
.hs-hz .hs-pin-in { overflow: hidden; justify-content: center; gap: 34px; }
.hs-hz-head { padding: 0 var(--hs-gut); }
.hs-hz-track { display: flex; gap: 28px; padding: 0 var(--hs-gut); width: max-content; will-change: transform;
  transform: translateX(calc(var(--pp, 0) * (100vw - 100% - 0px))); }
.hs-hz-card { flex: 0 0 auto; width: clamp(240px, 22vw, 330px); display: block; text-decoration: none; color: #fff;
  transform: translateY(calc(sin(var(--pp, 0) * 6.283rad + var(--i, 0) * 1rad) * 10px)); }
.hs-hz-img { display: block; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: #f6f3ec; margin-bottom: 18px; }
.hs-hz-img img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.08); transition: transform 1.2s cubic-bezier(.19, 1, .22, 1); }
.hs-hz-card:hover .hs-hz-img img { transform: scale(1); }
.hs-hz-card b { display: block; font-family: var(--font-ui); font-weight: 300; font-size: clamp(2.2rem, 3vw, 3rem); letter-spacing: -.03em; line-height: 1; color: #00AEEF; }
.hs-hz-card span:last-child { display: block; margin-top: 8px; font-size: .95rem; opacity: .75; }

/* ---- photo that opens to the full screen ---- */
.hs-open { padding: 0 !important; }
.hs-open .hs-pin { height: 260vh; }
.hs-open .hs-pin-in { padding: 0; }
.hs-open-media { position: absolute; inset: 0; margin: 0;
  clip-path: inset(calc((1 - var(--pp, 1)) * 24%) calc((1 - var(--pp, 1)) * 30%) round calc((1 - var(--pp, 1)) * 30px)); }
.hs-open-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.25 - var(--pp, 1) * .25)); }
.hs-open-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 4, 26, .78) 0%, rgba(4, 4, 26, 0) 55%); opacity: var(--pp, 1); }
.hs-open-copy { position: absolute; left: var(--hs-gut); bottom: 9vh; max-width: 760px; opacity: clamp(0, (var(--pp, 1) - .6) * 3, 1); transform: translateY(calc((1 - clamp(0, (var(--pp, 1) - .6) * 3, 1)) * 30px)); }
.hs-open-line { font-family: var(--font-ui) !important; font-weight: 300 !important; font-size: clamp(1.8rem, 3.2vw, 3.2rem) !important; line-height: 1.12 !important; letter-spacing: -.025em; opacity: 1 !important; margin-top: 14px !important; max-width: 20ch; }

/* ---- the live deuterium meter (built on <body> by the script) ---- */
.hs-meter { position: fixed; left: clamp(12px, 1.6vw, 26px); top: 50%; transform: translateY(-50%); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0; pointer-events: none; transition: opacity .5s ease; font-family: var(--font-ui); color: #fff; }
.hs-meter.is-on { opacity: 1; }
.hs-meter-n { font-size: .95rem; font-weight: 300; letter-spacing: -.01em; font-variant-numeric: tabular-nums; min-width: 4.5ch; text-align: center; }
.hs-meter-l { font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; opacity: .6; }
.hs-meter i { position: relative; display: block; width: 4px; height: 34vh; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.hs-meter i b { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--lvl, 1) * 100%); border-radius: 4px; background: var(--mcol, #D01E1E); box-shadow: 0 0 14px var(--mcol, #D01E1E); }
.hs-meter.is-light { color: #0E0D45; }
.hs-meter.is-light i { background: rgba(14, 13, 69, .12); }
@media (max-width: 900px) { .hs-meter { display: none; } .hs-hz .hs-pin { height: 260vh; } }

/* ---- statement interludes: huge text in front, a visual rising behind ---- */
.hs-stmt { padding: 0 !important; }
.hs-stmt .hs-pin { height: 230vh; }
.hs-stmt .hs-pin-in { align-items: center; justify-content: center; text-align: center; padding: 0 var(--hs-gut); overflow: hidden; }
.hs-stmt-say { position: relative; z-index: 2; font-size: clamp(2.6rem, 6.4vw, 6.4rem) !important; line-height: 1.02 !important; letter-spacing: -.035em !important; max-width: 16ch !important; margin: 0 auto !important; text-shadow: 0 6px 40px rgba(4, 4, 26, .45); }
.hs-ch[data-tone="light"] .hs-stmt-say { text-shadow: 0 6px 40px rgba(255, 255, 255, .6); }
.hs-stmt-vis { position: absolute; left: 50%; top: 50%; width: min(62vh, 640px); aspect-ratio: 1; margin: 0; z-index: 1;
  border-radius: 50%; overflow: hidden;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 72%); mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 72%);
  transform: translate(-50%, calc(-50% + (1 - var(--pp, 1)) * 55vh)) scale(calc(.55 + var(--pp, 1) * .65));
  opacity: clamp(0, var(--pp, 1) * 2.2, .9); }
.hs-stmt-vis img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-stmt.is-wide .hs-stmt-vis { width: min(130vh, 1300px); aspect-ratio: 2.35; border-radius: 0; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 75%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 75%); }
.hs-stmt.is-bottle .hs-stmt-vis { width: auto; height: 82vh; aspect-ratio: 235 / 900; border-radius: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; opacity: 1;
  transform: translate(-50%, calc(-50% + (1 - var(--pp, 1)) * 70vh)) scale(calc(.8 + var(--pp, 1) * .25)); filter: drop-shadow(0 40px 60px rgba(14, 13, 69, .25)); }
.hs-stmt.is-bottle .hs-stmt-vis img { object-fit: contain; }
#cq .hs-say mark { white-space: nowrap; }
.hs-hz-img { aspect-ratio: 4 / 3.4; height: min(40vh, 300px); width: 100%; }
.hs-hz-card { width: clamp(220px, 19vw, 300px); }
.hs-hz-card[href="#c10"] .hs-hz-img { background: radial-gradient(circle at 50% 60%, #12123f, #07072a); }
.hs-hz-card[href="#c10"] .hs-hz-img img { object-fit: contain; padding: 8% 0; }
.hs-hz .hs-pin-in { gap: 22px; }

/* highlight, per line: the mark itself carries nothing; each line is its own
   hero-style pill (blue glass, rounded, a top shine and soft shadow), its
   glass sweeping left to right with --lf; lines fill in reading order */
.hs-say mark, .hs-say mark.is-on { background: none !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; font-style: italic; }
.hs-say mark .hl-line { display: inline; padding: .04em .16em; margin: 0 .02em; border-radius: .14em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(180deg, rgba(0, 174, 239, .82), rgba(0, 174, 239, .58)) no-repeat 0 0 / calc(var(--lf, 0) * 100%) 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, calc(var(--lf, 0) * .5)), 0 6px 18px rgba(14, 13, 69, calc(var(--lf, 0) * .18)); }

/* highlight, like a text selection (Joey: "see how it looks when I just
   highlight the text"): one flat blue band per line, upright, no padding or
   shadow reaching into the next line; the type gets enough line spacing that
   the bands never touch. Still swept per line, in reading order. */
.hs-say { line-height: 1.26 !important; }
.hs-stmt-say { line-height: 1.16 !important; }
.hs-say mark, .hs-say mark.is-on { font-style: normal !important; }
.hs-say mark .hl-line { padding: 0 .06em !important; margin: 0 !important; border-radius: .05em !important; box-shadow: none !important;
  background: linear-gradient(rgba(0, 174, 239, .78), rgba(0, 174, 239, .78)) no-repeat 0 0 / calc(var(--lf, 0) * 100%) 100% !important; }
.hs-say mark .hw, .hs-say mark .ws, .hs-say mark .hl-line { font-style: normal !important; }
/* the band is a touch shorter than the letters' box and centred on them, so
   even the tightest lines (the big statements) never let two bands meet */
.hs-say mark .hl-line { background-position: 0 55% !important; background-size: calc(var(--lf, 0) * 100%) 86% !important; }
.hs-stmt-say { line-height: 1.24 !important; }
.hs-say { line-height: 1.3 !important; }
/* no orphan words: the lead lines and statements balance their lines, and
   the script also ties each sentence's last two words together */
.hs-say, .hs-stmt-say { text-wrap: balance !important; }
.hs-nb { white-space: nowrap; }
.hs-hz-img.is-contain { background: #000; display: flex; align-items: center; }
.hs-hz-img.is-contain img { object-fit: contain; height: auto; }
.hs-hz-img img[src*="tl-1932"] { object-position: 50% 20%; filter: grayscale(1) contrast(1.05); }
/* the plant photo is never cropped: the whole frame shows, a blurred copy of
   itself fills the edges of the screen */
.hs-open-media img { position: absolute; inset: 0; }
.hs-open-media .hs-open-bg { object-fit: cover; filter: blur(28px) brightness(.55) saturate(1.1); transform: scale(1.15); }
.hs-open-media .hs-open-main { object-fit: contain; transform: scale(calc(1.08 - var(--pp, 1) * .08)); }
#c8 .hs-col { margin-bottom: 44px; }

/* the seal as a real gold coin in 3D: a thick milled edge built from stacked
   discs, a bevelled rim, a shine that travels across the face, and a tilt
   that follows the scroll (it still flips in first) */
.hs-seal { transform-style: preserve-3d; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)) !important;
  transform: perspective(900px) rotateY(calc((1 - clamp(0, (var(--p, 1) - .18) * 3.4, 1)) * 200deg + (var(--p, .5) - .5) * 46deg)) rotateX(calc((var(--p, .5) - .5) * -16deg)) scale(calc(.6 + clamp(0, (var(--p, 1) - .18) * 3.4, 1) * .4)) !important; }
.hs-seal-edge { position: absolute; inset: 0; border-radius: 50%; transform: translateZ(calc(var(--z) * -1px));
  background: radial-gradient(circle at 50% 50%, #7a5a18 0 60%, #a8822e 75%, #6b4c12 100%); }
.hs-seal-edge[style*="--z:1"] { background: repeating-conic-gradient(#b8923a 0 2deg, #8a6620 2deg 4deg); }
.hs-seal-face { position: absolute; inset: 0; border-radius: 50%; transform: translateZ(1px); overflow: hidden;
  box-shadow: inset 0 0 0 3px rgba(255, 244, 205, .55), inset 0 -6px 14px rgba(110, 78, 20, .55), inset 0 6px 12px rgba(255, 250, 225, .55); }
.hs-seal-face .hs-seal-ring { position: absolute; inset: 0; }
.hs-seal-shine { position: absolute; inset: -20%; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .85) 48%, transparent 60%);
  transform: translateX(calc((var(--p, .5) - .5) * 140%)); }
/* motor readout: sits under the motor with room to breathe, not squeezed
   over its bottom edge */
.hs-motor-read { position: static !important; margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 28px; padding: 16px 4px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.hs-motor-read b { font-family: var(--font-ui) !important; font-weight: 300 !important; font-size: clamp(2.2rem, 3.2vw, 3rem) !important; letter-spacing: -.03em; }
.hs-motor-read > div > span { font-size: .8rem; letter-spacing: .2em; margin-left: 8px; }
.hs-motor-read [data-rpm-state] { font-size: .76rem !important; letter-spacing: .2em; }
.hs-motor { overflow: hidden; }
/* scale chapter: only the per-line band, never the old per-word fill */
#c9 .hs-say mark .hw, #c9 .hs-say mark .ws, #c9 .hs-say mark .hw.is-on, #c9 .hs-say mark .ws.is-on { background: none !important; }
#c9 .hs-say mark .hl-line { background: linear-gradient(rgba(0, 174, 239, .82), rgba(0, 174, 239, .82)) no-repeat 0 55% / calc(var(--lf, 0) * 100%) 86% !important; }
/* the coin is drawn in 3D when WebGL runs; the CSS coin is its fallback */
.hs-3d-on .hs-seal > * { visibility: hidden; }
.hs-3d-on .hs-seal { filter: none !important; transform: none !important; }

/* ---- "From 155.76 PPM to 5": a chart that draws itself down the years ---- */
.hs-stmt.is-graph .hs-pin-in { justify-content: flex-start; padding-top: 14vh; }
.hs-stmt.is-graph .hs-stmt-say { font-size: clamp(2.2rem, 4.8vw, 4.8rem) !important; max-width: none !important; }
.hs-stmt.is-graph .hs-stmt-vis.hs-graph { position: absolute; left: 50%; top: auto; bottom: 6vh; width: min(1200px, 92vw); height: auto; aspect-ratio: 2; border-radius: 0; overflow: visible; opacity: 1; -webkit-mask-image: none; mask-image: none; transform: translateX(-50%) !important; }
.hs-graph svg { width: 100%; height: 100%; overflow: visible; }
.hs-ggrid line { stroke: rgba(14, 13, 69, .1); stroke-width: 1; }
.hs-gline { stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--pp, 1)); filter: drop-shadow(0 0 8px rgba(0, 174, 239, .55)); }
.hs-garea { opacity: calc(var(--pp, 1) * 1); clip-path: inset(0 calc((1 - var(--pp, 1)) * 100%) 0 0); }
.hs-gpt { --on: clamp(0, (var(--pp, 1) - var(--at) * .96 + .02) * 12, 1); opacity: var(--on); transform-box: fill-box; }
.hs-gpt circle { fill: #fff; stroke: #00AEEF; stroke-width: 3; }
.hs-gpt:last-child circle { fill: #00AEEF; stroke: #fff; filter: drop-shadow(0 0 12px rgba(0, 174, 239, .9)); }
.hs-gv { font-family: var(--font-ui); font-weight: 300; font-size: 26px; fill: #0E0D45; }
.hs-gpt:last-child .hs-gv { fill: #00AEEF; font-size: 36px; font-weight: 400; }
.hs-gy { font-family: var(--font-ui); font-size: 15px; letter-spacing: .14em; fill: #0086bd; }
.hs-gl { font-family: var(--font-ui); font-size: 13px; fill: rgba(14, 13, 69, .6); }
/* motor readout above the motor (Joey: underneath it fell below the fold) */
.hs-motor-read { margin: 0 0 16px !important; padding: 0 4px 14px !important; border-top: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .16); }
#c7 .hs-sticky { top: 12vh; }
@media (min-width: 901px) {
  #c7 .hs-motor { width: min(100%, calc((88vh - 130px) / 1.05)); margin: 0 auto; }
  #c7 .hs-motor-read { width: min(100%, calc((88vh - 130px) / 1.05)); margin-left: auto !important; margin-right: auto !important; }
}
/* statement footage: the scroll plays it while it rises behind the words */
.hs-stmt-vis .hs-scrub { width: 100% !important; height: 100% !important; max-width: none !important; aspect-ratio: auto !important; margin: 0 !important; -webkit-mask-image: none !important; mask-image: none !important; }
#s1 .hs-stmt-vis { width: min(118vh, 1180px); aspect-ratio: 16 / 9; border-radius: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
#s2 .hs-stmt-vis { width: min(50vh, 480px); aspect-ratio: 3 / 4; border-radius: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
/* glacier: shown whole, water and drips included, as a dark film card on the
   pale chapter */
.hs-scrub.is-card { border-radius: 26px !important; overflow: hidden !important; background: #0a1328 !important; -webkit-mask-image: none !important; mask-image: none !important;
  box-shadow: 0 40px 90px rgba(8, 36, 90, .28), 0 0 0 1px rgba(255, 255, 255, .5) !important; height: min(64vh, 700px) !important; }
/* chapter 3: the glass fills its column (frames are already transparent, so
   no feathered edge is needed) */
#c3 .hs-scrub { -webkit-mask-image: none !important; mask-image: none !important; }
#c3 .hs-scrub canvas { transform: scale(1.5); transform-origin: 50% 46%; }
#c3 .hs-tumbler-cap { position: relative; z-index: 1; }
/* molecules: the cards step down by weight as the row turns, so the heavy
   ones visibly sink (H2O lifts, HDO drops a little, D2O drops most) */
#molpin .hs-iso { align-items: start; }
#molpin .hs-mol { --k: clamp(0, (var(--pp, 0) - .12) * 2.5, 1); }
#molpin .hs-mol:nth-child(1) { translate: 0 calc(var(--k) * -34px); }
#molpin .hs-mol:nth-child(2) { translate: 0 calc(var(--k) * 22px); }
#molpin .hs-mol:nth-child(3) { translate: 0 calc(var(--k) * 56px); border-color: rgba(247, 147, 30, calc(.1 + var(--k) * .35)) !important; }
.hs-mass { display: block; margin-top: 6px; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--hs-cyan); }
.hs-mass b { font-family: var(--font-ui); font-weight: 300; font-size: 1.5rem; letter-spacing: -.02em; margin-right: 6px; vertical-align: -2px; }
#molpin .hs-mol:nth-child(3) .hs-mass { color: #F7931E; }
/* rectification chapter: the count from 155.76 down to 5 is the hero of the
   chapter: light, wide-set figures with a soft glow (Joey: stand out more,
   a different face, more space between the digits as it rolls) */
#c8 .hs-col-read b { font-family: var(--font-ui) !important; font-weight: 200 !important; font-size: clamp(4.4rem, 8vw, 7.6rem) !important; letter-spacing: .08em !important; line-height: .9 !important; font-variant-numeric: tabular-nums lining-nums; color: #fff; text-shadow: 0 0 34px rgba(0, 174, 239, .55), 0 0 2px rgba(255, 255, 255, .6); white-space: nowrap; }
#c8 .hs-col-read span { margin-top: 14px; letter-spacing: .26em; }
/* Hunza quote over Mt. Ultar: the valley comes into focus as you arrive
   (blur and a slow pull-back from --p), with a pale veil behind the words */
#cq { position: relative; overflow: hidden; min-height: 112vh; display: flex; align-items: center; justify-content: center; }
#cq .hs-quote { position: relative; z-index: 2; }
.hs-cq-bg { position: absolute; inset: 0; margin: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%); }
.hs-cq-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block;
  filter: blur(calc(max(0, .5 - var(--p, .5)) * 46px)) saturate(calc(.7 + min(var(--p, .5), .5) * .6));
  transform: scale(calc(1.22 - min(var(--p, .5), .5) * .44 + max(0, var(--p, .5) - .5) * .1)); transform-origin: 50% 38%; will-change: transform, filter; }
.hs-cq-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 52% 46% at 50% 50%, rgba(220, 240, 250, .82), rgba(220, 240, 250, .35) 60%, rgba(220, 240, 250, 0) 100%); }
/* the morph panel: brand blue at the block, paling to the next chapter's
   colour as it fills the window */
.hs-morph { position: fixed; z-index: 40; pointer-events: none; opacity: 0; left: 0; top: 0; width: 0; height: 0;
  --q: calc((1 - var(--mk, 0)) * 100%);
  background: linear-gradient(180deg, color-mix(in srgb, #8be3ff var(--q), #f3faff), color-mix(in srgb, #00AEEF var(--q), #f3faff) 42%, color-mix(in srgb, #0067b0 var(--q), #eaf6fd));
  border-radius: calc(13px * (1 - var(--mk, 0)));
  box-shadow: inset 0 0 0 calc(1.5px * (1 - var(--mk, 0))) rgba(255, 255, 255, .75), inset 0 calc(3px * (1 - var(--mk, 0))) 1px rgba(255, 255, 255, .85), 0 0 calc((1 - var(--mk, 0)) * 50px) rgba(0, 174, 239, .6); }
/* PPM chart as glass slabs lying sideways, the glass-button look Joey
   pointed to: saturated glass, a bright rim, a gloss along the top, a few
   bubbles caught inside and a soft glow under each */
#c9 .hs-ppm { gap: 22px; }
#c9 .hs-ppm-row i { --g1: #f4fbff; --g2: #cfe4f3; --g3: #93b6d2; --gl: rgba(160, 205, 235, .45);
  position: relative; height: 46px !important; margin: 0; border-radius: 13px !important; overflow: hidden;
  background: linear-gradient(180deg, var(--g1) 0%, var(--g2) 42%, var(--g3) 100%) !important;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .75), inset 0 3px 1px rgba(255, 255, 255, .85), inset 0 -6px 10px rgba(14, 13, 69, .22),
    inset 6px 0 12px rgba(255, 255, 255, .3), inset -6px 0 12px rgba(255, 255, 255, .22), 0 4px 0 rgba(14, 13, 69, .35), 0 14px 30px var(--gl) !important; }
#c9 .hs-ppm-row i::before { content: ""; position: absolute; left: 10px; right: 10px; top: 4px; height: 42%; border-radius: 9px; transform: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .08)); }
/* (the bubbles that sat inside the bars are gone: Joey, "fix all these dots") */
#c9 .hs-ppm-row i::after { content: none !important; }
#c9 .hs-ppm-row.is-ocean i { --g1: #ff9a8e; --g2: #e2453a; --g3: #9e1c14; --gl: rgba(217, 52, 43, .5); }
#c9 .hs-ppm-row.is-lw i { --g1: #8be3ff; --g2: #00AEEF; --g3: #0067b0; --gl: rgba(0, 174, 239, .7); min-width: 46px; }
/* rectification chapter: real footage pushing along the plant's columns */
.hs-scrub.is-photo { background: #11182e !important; box-shadow: 0 40px 90px rgba(2, 6, 40, .5), 0 0 0 1px rgba(255, 255, 255, .18) !important; height: min(70vh, 720px) !important; }
/* c8 -> cx, one move: the plant chapter overlaps the column chapter's last
   screen and its photo starts exactly on the footage card, then opens out */
@media (min-width: 901px) {
#c8 { padding-bottom: 0 !important; }
#cx { margin-top: -100vh; position: relative; z-index: 3; pointer-events: none; }
#cx .hs-open-copy { pointer-events: auto; }
#cx .hs-open-media { opacity: var(--o-show, 0);
  clip-path: inset(calc(var(--o-t, 24vh) * (1 - var(--pp, 0))) calc(var(--o-r, 30vw) * (1 - var(--pp, 0))) calc(var(--o-b, 24vh) * (1 - var(--pp, 0))) calc(var(--o-l, 30vw) * (1 - var(--pp, 0))) round calc(26px * (1 - var(--pp, 0)))) !important; }
}
/* footage in place of the last 3D rigs: the Urey atom (wide), the three
   turning molecules (one per card, played by the pinned row) and the pure
   water sphere (pale frames melting into the pale chapter) */
.hs-scrub.is-wide16 { width: 100% !important; height: auto !important; aspect-ratio: 16 / 9 !important; }
.hs-scrub.is-mol { width: 100% !important; height: auto !important; aspect-ratio: 1 !important; margin: 0 0 4px !important; }
.hs-scrub.is-soft { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%) !important; mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%) !important; aspect-ratio: 1 !important; height: min(64vh, 640px) !important; }
/* chapter 3: seeds in ordinary vs heavy water (replaces the repeated glass) */
#c3 .hs-scrub.is-seeds { background: #0f1a2e !important; box-shadow: 0 40px 90px rgba(2, 4, 30, .5), 0 0 0 1px rgba(255, 255, 255, .1) !important; }
#c3 .hs-scrub.is-seeds canvas { transform: scale(1.35); transform-origin: 50% 52%; }
#c3 .hs-tumbler-cap { max-width: 360px; }
#c8 .hs-col { grid-template-columns: minmax(0, 1fr); }
#c8 .hs-col-read span { white-space: nowrap; }
/* s4: the rolling number. Huge light figures, red at the ocean standard,
   brand blue by the time they reach 5; a thin line fills beneath; the
   statement lights up underneath once the number lands */
.hs-stmt.is-roll .hs-pin-in { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4vh; }
.hs-roll { position: relative; z-index: 2; width: min(1100px, 90vw); text-align: center; }
.hs-roll-num { display: flex; align-items: baseline; justify-content: center; gap: .18em; line-height: .86; }
.hs-roll-n { font-family: var(--font-ui); font-weight: 200; font-size: clamp(6rem, 17vw, 15rem); letter-spacing: .02em; font-variant-numeric: tabular-nums lining-nums;
  color: color-mix(in srgb, #D01E1E calc((1 - var(--rk, 1)) * 100%), #00AEEF); }
.hs-roll-u { font-family: var(--font-ui); font-weight: 400; font-size: clamp(1rem, 1.8vw, 1.6rem); letter-spacing: .24em; color: #0E0D45; opacity: .7; }
.hs-roll-line { display: block; position: relative; height: 4px; margin: 3.4vh auto 0; border-radius: 4px; background: rgba(14, 13, 69, .1); overflow: hidden; }
.hs-roll-line i { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, #D01E1E, #F7931E 45%, #00AEEF); transform: scaleX(var(--rk, 1)); transform-origin: 0 50%; }
.hs-roll-ends { display: flex; justify-content: space-between; margin-top: 12px; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: #0E0D45; opacity: .6; }
.hs-stmt.is-roll .hs-stmt-say { font-size: clamp(2rem, 4.2vw, 4rem) !important; max-width: none !important; opacity: clamp(0, (var(--rk, 1) - .75) * 6, 1); }
.hs-meter { display: none !important; }
/* "One proton. One neutron.": the same atom scene as the Urey chapter (the
   3D rig with the Higgsfield spheres and the orbiting electron) - Joey liked it */
.hs-stmt-vis .hs-3d.is-stmt-atom { width: 100%; height: 100%; aspect-ratio: auto; }
#s1 .hs-stmt-vis { aspect-ratio: 1 !important; width: min(70vh, 640px) !important; }
/* molecule cards: no slow fade-in (half-faded, only the molecules' brightest
   glints showed, which read as stray white marks above the row) */
.hs-js .hs #molpin .hs-mol[data-reveal] { opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; }
/* ALL rolling numbers: Anybody, ultra-wide and black, digits set close
   (Joey's reference: big, bold, fun, standing out). Colour stays per place:
   red to blue on the big roll, white on dark chapters, blue on light ones */
.hs [data-count]:not([data-frames]), .hs-roll-n, #c8 .hs-col-read b {
  font-family: 'Anybody', var(--font-grotesk) !important; font-stretch: 130% !important; font-weight: 900 !important;
  letter-spacing: -.075em !important; line-height: .86 !important; font-variant-numeric: lining-nums proportional-nums !important; text-shadow: none !important; }
.hs-chip b, .hs-stat b, .hs-figure-cap b { font-size: clamp(2.6rem, 4.4vw, 4rem) !important; }
#c1 .hs-figure-cap b { font-size: clamp(4.4rem, 7vw, 6.4rem) !important; }
#c8 .hs-col-read b { font-size: clamp(6.4rem, 12vw, 10.5rem) !important; color: #fff; }
.hs-roll-n { font-size: clamp(6rem, 16vw, 14rem) !important; }
#c6 [data-count] { font-size: clamp(3rem, 5vw, 4.6rem) !important; }
/* gold leaf on 5 PPM, every time it appears: the same text laid over in
   gold leaf (uploads/history/gold-leaf.webp) with a slow light sweep */
[data-gold] { position: relative; display: inline-block; }
[data-gold]::after { content: attr(data-gold); position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .7s ease;
  font: inherit; letter-spacing: inherit; line-height: inherit; white-space: nowrap; text-align: inherit;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 250, 225, .75) 50%, rgba(255, 255, 255, 0) 62%) no-repeat, url('uploads/history/gold-leaf.webp') center / cover, linear-gradient(160deg, #f6dc8e, #c9973a 55%, #8f6a1c);
  background-size: 260% 100%, cover, cover; background-position: 120% 0, center, center;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(143, 106, 28, .35)); animation: hsGoldSweep 4.5s ease-in-out infinite; }
[data-gold].is-gold::after { opacity: 1; }
[data-gold].is-gold { color: #b8902f !important; transition: color .7s ease; }
@keyframes hsGoldSweep { 0%, 35% { background-position: 120% 0, center, center; } 75%, 100% { background-position: -20% 0, center, center; } }
.hs-roll-num [data-gold] { display: inline-block; }
/* the hero's years-ago counter in the same numerals as every other count */
.hs-odo-n { font-family: 'Anybody', var(--font-grotesk) !important; font-stretch: 130% !important; font-weight: 900 !important; letter-spacing: -.075em !important; line-height: .9 !important; font-variant-numeric: lining-nums proportional-nums !important; font-size: clamp(2.8rem, 6.4vw, 5.6rem) !important; }
/* the jam (s3): the highlight blacks out and stutters for a second when it
   reaches "strikes": the blue band cuts to black, the words shake and split
   red/blue, then it carries on */
.hs-say.is-stutter mark { position: relative; left: var(--st-x, 0); }
.hs-say.is-stutter mark .hl-line { background-image: linear-gradient(rgba(0, 174, 239, calc(.82 * var(--st-band, 1))), rgba(0, 174, 239, calc(.82 * var(--st-band, 1)))) !important;
  background-color: rgba(4, 4, 20, calc(.9 * (1 - var(--st-band, 1)))) !important; }
.hs-say.is-stutter mark .w { text-shadow: calc(var(--st-rgb, 0) * -4px) 0 rgba(208, 30, 30, .85), calc(var(--st-rgb, 0) * 4px) 0 rgba(0, 174, 239, .85) !important; opacity: calc(.55 + .45 * var(--st-band, 1)); }
@media (max-width: 900px) {
  /* the molecule cards are <figure>s: drop the browser's 40px side margins,
     which squeezed each card to ~68px on a phone */
  #molpin .hs-mol { margin: 0 !important; padding: 8px 6px 14px !important; }
  #molpin .hs-mol h3 { font-size: 1.15rem !important; margin-top: 6px !important; }
  #molpin .hs-mass { font-size: .58rem; letter-spacing: .12em; }
  #molpin .hs-mass b { font-size: 1.05rem; display: block; margin: 2px 0 0; }
  #molpin .hs-mol:nth-child(1) { translate: 0 calc(var(--k) * -60px); }
  #molpin .hs-mol:nth-child(2) { translate: 0 calc(var(--k) * 30px); }
  #molpin .hs-mol:nth-child(3) { translate: 0 calc(var(--k) * 120px); }
}
@media (max-width: 900px) { #molpin .hs-scrub.is-mol canvas { transform: scale(1.4); transform-origin: 50% 55%; } }
@media (max-width: 900px) {
  /* the motor's 3D view caught every swipe on a phone (drag to orbit), so
     the page would not scroll past it: on phones it only plays, no touch */
  .hs-motor iframe { pointer-events: none !important; }
}
#c9 .hs-ppm-row b { white-space: nowrap; }
@media (max-width: 900px) { #c9 .hs-ppm-row { grid-template-columns: minmax(0, 1fr) auto; } #c9 .hs-ppm-row b { font-size: 1rem; } }
@media (max-width: 900px) {
  /* the plant photo opening after the column footage does not read on a
     phone (the card it opens out of is not held on screen): phones skip it */
  #cx { display: none !important; }
  /* Today: the water sphere sat at the bottom and forced the column wider
     than the screen (64vh tall, square). On phones it sits centred right
     after the lead sentence, sized to the screen, and the essay continues
     under it */
  #c10 .hs-grid { display: flex !important; flex-direction: column; }
  #c10 .hs-text { display: contents; }
  #c10 .hs-text > * { order: 3; min-width: 0; max-width: 100%; }
  #c10 .hs-text > .hs-eye, #c10 .hs-text > .hs-h2, #c10 .hs-text > .hs-say { order: 1; }
  #c10 .hs-vis { order: 2; width: 100%; margin: 6px 0 22px; }
  #c10 .hs-scrub.is-soft { width: min(86vw, 420px) !important; height: auto !important; aspect-ratio: 1 !important; margin: 0 auto !important; }
  #c10 .hs-figure-cap { text-align: center; }
}
@media (max-width: 900px) {
  /* the desktop sticky offset (top: 12-18vh) turned into a plain relative
     shift on phones, dropping every visual onto the text under it */
  .hs-vis > .hs-sticky, #c7 .hs-sticky, .hs-sticky { top: 0 !important; }
}
/* the last section melts into white so the wave above the footer (white at
   its top edge) joins it without a seam */
#c11 { position: relative; }
#c11::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .85) 70%, #fff); }
#c11 > * { position: relative; z-index: 1; }
/* tighter gaps between chapters (Joey: not too big) */
.hs-ch:not(.hs-stmt):not(.hs-open):not(.hs-hero) { padding-top: clamp(72px, 12vh, 140px); padding-bottom: clamp(72px, 12vh, 140px); }
.hs-ch.is-tight { padding-top: clamp(32px, 6vh, 64px) !important; }
@media (max-width: 900px) {
  .hs-ch:not(.hs-stmt):not(.hs-open):not(.hs-hero) { padding-top: clamp(48px, 8vh, 80px) !important; padding-bottom: clamp(48px, 8vh, 80px) !important; }
}
@media (max-width: 900px) {
  /* nothing may push a chapter wider than the phone: the grid column is
     capped at the screen and the big numbers / no-wrap phrases are sized to
     fit (the page sat off-centre, cut off on the right, at 390px) */
  .hs-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .hs-text, .hs-vis, .hs-wide, .hs-quote, .hs-chips, .hs-col, .hs-compare { min-width: 0 !important; max-width: 100% !important; }
  .hs-chip b, .hs-stat b, .hs-figure-cap b { font-size: clamp(2.2rem, 11vw, 3.2rem) !important; }
  #c1 .hs-figure-cap b { font-size: clamp(3.4rem, 16vw, 5rem) !important; }
  #c8 .hs-col-read b { font-size: clamp(3.2rem, 15vw, 5rem) !important; }
  #c6 [data-count] { font-size: clamp(2.4rem, 11vw, 3.4rem) !important; }
  .hs-roll-n { font-size: clamp(3.6rem, 19vw, 6rem) !important; }
  #cq .hs-say { font-size: clamp(1.4rem, 6.2vw, 2rem) !important; }
  .hs-figure-cap span, .hs-col-read span { white-space: normal !important; }
}
@media (max-width: 900px) {
  /* the experiment cards stack on a phone: no sideways slide (it ran off the
     screen, timed to the whole chapter), they are simply there */
  .hs-exp > div:first-child, .hs-exp > div:last-child { transform: none !important; opacity: 1 !important; }
}
/* key facts in the essays: bold and a touch brighter, so a skim catches them */
.hs-text p strong { font-weight: 700; opacity: 1; }
.hs-ch[data-tone="dark"] .hs-text p strong { color: #fff; }
.hs-ch[data-tone="light"] .hs-text p strong { color: #0E0D45; }
/* closing callout: read more and ask Deupletion.ai */
.hs-ask { display: block; margin: 34px 0 30px; padding: 22px 24px; border-radius: 18px; text-decoration: none; color: #0E0D45;
  background: linear-gradient(135deg, rgba(0, 174, 239, .12), rgba(0, 174, 239, .04)); border: 1px solid rgba(0, 174, 239, .35);
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease; }
.hs-ask:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 174, 239, .18); background: linear-gradient(135deg, rgba(0, 174, 239, .18), rgba(0, 174, 239, .06)); }
.hs-ask-eye { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: #0086bd; }
.hs-ask-line { display: block; margin-top: 8px; font-family: var(--font-grotesk); font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.25; }
.hs-ask-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 18px; border-radius: 999px; background: #00AEEF; color: #fff;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.hs-ask-go i { font-style: normal; transition: transform .3s ease; }
.hs-ask:hover .hs-ask-go i { transform: translateX(4px); }
/* "ATP synthase." in bold, in the exact yellow of the ATP the motor gives off
   (#FFD166, read from the motor's own scene) */
.hs-say .hs-atp { font-weight: 700; color: #FFD166; }
.hs-say .hs-atp .w { color: #FFD166; }
@media (min-width: 901px) {
  /* column footage -> plant photo, smoothed: the photo cross-fades in over
     the card (rather than popping in) and starts pushed in on the card's
     spot, like the end of the footage, easing back out as it opens */
  #cx .hs-open-media { opacity: calc(var(--o-show, 0) * clamp(0, var(--pp, 0) * 7, 1)) !important; }
  #cx .hs-open-media img {
    transform-origin: calc(var(--o-l, 30vw) + (100vw - var(--o-l, 30vw) - var(--o-r, 30vw)) / 2) calc(var(--o-t, 24vh) + (100vh - var(--o-t, 24vh) - var(--o-b, 24vh)) / 2) !important; }
  #cx .hs-open-media .hs-open-main { transform: scale(calc(1 + (1 - min(1, var(--pp, 0) * 1.6)) * .55)) !important; }
  #cx .hs-open-media .hs-open-bg { transform: scale(calc(1.15 + (1 - min(1, var(--pp, 0) * 1.6)) * .55)) !important; }
}
