/* ============================================================
   PULSE — a planetary vitals observatory
   Light editorial data journalism. Paper, ink, anomaly ramps.
   ============================================================ */

:root {
  --paper: #fbfaf7;
  --paper-deep: #f4f1ea;
  --ink: #1c1a15;
  --ink-soft: #57534a;
  --ink-faint: #8a8478;
  --hairline: #e2ddd1;
  --hairline-strong: #cfc8b8;
  --hot: #bc3f33;
  --hot-deep: #6e1a1a;
  --cold: #2f6da3;
  --cold-deep: #153a69;
  --amber: #d9a13b;
  --font-display: "Sora", "Instrument Sans", sans-serif;
  --font-text: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
  --measure: 44rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

a { color: inherit; }
canvas { display: block; }
strong { font-weight: 600; }

::selection { background: #efa87e; color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--hot);
  outline-offset: 3px;
}

.section { scroll-margin-top: 3.6rem; }

/* ---------------- Masthead ---------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.85rem var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.34em;
  font-size: 0.95rem;
  text-decoration: none;
}
.wordmark-pip {
  width: 0.85rem;
  height: 0.85rem;
  flex: none;
}
.wordmark-pip circle {
  fill: none;
  stroke: var(--hot);
  stroke-width: 2.5;
}
@media (prefers-reduced-motion: no-preference) {
  .wordmark-pip { animation: pip 2.4s ease-in-out infinite; transform-origin: center; }
  @keyframes pip {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.78); opacity: 0.55; }
  }
}

.masthead-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.masthead-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.masthead-nav a:hover,
.masthead-nav a.active { color: var(--ink); border-color: var(--hot); }

.masthead-tag {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
  overflow: hidden;
}
#scroll-progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, #153a69, #6faccd 30%, #dceaf2 44%, #f3c9a9 56%, #d55c44 75%, #6e1a1a);
}

/* ---------------- Hero ---------------- */
.hero {
  padding: clamp(3.5rem, 9vh, 7rem) var(--gutter) clamp(3rem, 7vh, 5rem);
  max-width: 82rem;
  margin: 0 auto;
}
.hero-inner { max-width: 56rem; }

.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--hot);
  margin-bottom: 1.6rem;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 2.4rem;
  height: 1px;
  background: var(--hot);
  vertical-align: middle;
  margin-right: 0.9rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 1.8rem;
}
.hero-title span { display: block; }

.hero-dek {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* Reveal choreography */
.reveal { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
  .reveal.d1 { animation-delay: 0.08s; }
  .reveal.d2 { animation-delay: 0.18s; }
  .reveal.d3 { animation-delay: 0.32s; }
  .reveal.d4 { animation-delay: 0.5s; }
  .reveal.d5 { animation-delay: 0.72s; }
  .reveal.d6 { animation-delay: 0.95s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* Warming stripes */
.stripes-block { margin-top: clamp(2.5rem, 6vh, 4.5rem); }
.stripes-frame {
  position: relative;
  border: 1px solid var(--hairline-strong);
  background: var(--paper-deep);
  overflow: hidden;
}
#stripes {
  width: 100%;
  height: clamp(180px, 30vh, 280px);
  cursor: crosshair;
}
.stripes-cursor {
  position: absolute;
  top: 0.6rem;
  left: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
  padding: 0.3rem 0.55rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.stripes-frame:hover .stripes-cursor { opacity: 1; }

.chart-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
  line-height: 1.5;
}
.chart-caption .mono { font-size: 0.7rem; letter-spacing: 0.14em; color: var(--ink-soft); }

.stripes-scale {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  color: var(--ink-soft);
}
.stripes-scale i {
  display: inline-block;
  width: 1.1rem;
  height: 0.6rem;
}

/* Vitals bar */
.vitals-bar {
  margin-top: clamp(2.5rem, 5vh, 3.75rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.vital {
  padding: 1.3rem 1.4rem 1.3rem 0;
  border-right: 1px solid var(--hairline);
  margin-right: 1.4rem;
}
.vital:last-child { border-right: none; margin-right: 0; }
.vital-label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.55rem;
}
.vital-value {
  display: block;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 500;
  color: var(--hot-deep);
  letter-spacing: -0.01em;
}
.vital:first-child .vital-value { color: var(--hot); }
.vital-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.scroll-hint {
  margin-top: 3rem;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-arrow { display: inline-block; animation: bob 1.8s ease-in-out infinite; }
  @keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
}

/* ---------------- Sections ---------------- */
.section {
  max-width: 82rem;
  margin: 0 auto;
  padding: clamp(4.5rem, 11vh, 8.5rem) var(--gutter) 0;
}

.section-head {
  border-top: 1px solid var(--ink);
  padding-top: 1.1rem;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.5rem 2rem;
  align-items: baseline;
}
.section-no {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--hot);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-standfirst {
  grid-column: 2;
  max-width: var(--measure);
  margin-top: 0.9rem;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  color: var(--ink-soft);
}

/* Big stat moments */
.bigstat {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem 4rem;
  align-items: center;
  padding: clamp(1.5rem, 4vh, 3rem) 0;
  margin: 0 0 clamp(2.5rem, 6vh, 4rem);
}
.bigstat-figure {
  font-size: clamp(4.5rem, 12vw, 10.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--hot-deep);
  white-space: nowrap;
}
.bigstat-sign { color: var(--hot); }
.bigstat-unit {
  font-size: 0.32em;
  color: var(--ink-faint);
  letter-spacing: 0;
  margin-left: 0.15em;
  font-weight: 400;
}
.bigstat-context p {
  max-width: 34rem;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--ink-soft);
}
.bigstat-context strong { color: var(--ink); }
.bigstat-energy .bigstat-figure { color: var(--cold-deep); }

/* Stat cards */
.statgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline-strong);
}
.statcard {
  padding: 1.8rem 1.8rem 1.8rem 0;
  border-right: 1px solid var(--hairline);
  margin-right: 1.8rem;
}
.statcard:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.statcard-label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
}
.statcard-value {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.statcard-unit {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--hot);
  margin: 0.5rem 0 0.9rem;
}
.statcard p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }

/* ---------------- Keeling scrollytelling ---------------- */
.scrolly {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.scrolly-graphic {
  position: sticky;
  top: 5.2rem;
  height: calc(100vh - 6.5rem);
  display: flex;
  align-items: center;
  min-width: 0;
}
.keeling-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--hairline-strong);
  padding: 1.4rem 1.5rem 1.1rem;
  box-shadow: 0 1px 0 var(--hairline);
}
.keeling-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.keeling-title { font-size: 0.68rem; letter-spacing: 0.18em; color: var(--ink-faint); }
.keeling-readout {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--hot-deep);
  white-space: nowrap;
}
#keeling-svg { width: 100%; height: auto; }
.keeling-foot {
  margin-top: 0.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.scrolly-steps { padding: 38vh 0 45vh; }
.step {
  margin-bottom: 65vh;
  padding: 1.6rem 1.7rem;
  background: var(--paper);
  border-left: 3px solid var(--hairline-strong);
  opacity: 0.35;
  transition: opacity 0.45s, border-color 0.45s, transform 0.45s;
  transform: translateY(6px);
}
.step:last-child { margin-bottom: 8vh; }
.step.active {
  opacity: 1;
  border-left-color: var(--hot);
  transform: none;
}
.step-no {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--hot);
  margin-bottom: 0.6rem;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem;
}
.step p { font-size: 0.95rem; color: var(--ink-soft); }
.step strong.mono { color: var(--hot-deep); font-weight: 500; }

/* ---------------- Radial clock ---------------- */
.section-clock { padding-bottom: 0; }
.clock-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.clock-stage {
  position: relative;
  background: #14130f;
  border: 1px solid #2a2820;
}
#clock-canvas {
  width: 100%;
  aspect-ratio: 1;
  max-height: 82vh;
  margin: 0 auto;
}
.clock-replay {
  position: absolute;
  left: 0.9rem;
  top: 0.9rem;
  background: rgba(251, 250, 247, 0.08);
  color: #d8d3c6;
  border: 1px solid rgba(251, 250, 247, 0.25);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.clock-replay:hover { background: rgba(251, 250, 247, 0.18); color: #fff; }

.clock-readout {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1rem;
  margin-bottom: 1.4rem;
}
.clock-year {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.clock-anom {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--hot);
}
.clock-note { font-size: 0.95rem; color: var(--ink-soft); max-width: 30rem; }
.clock-note .mono { font-size: 0.85em; color: var(--hot-deep); }
.clock-note-sub {
  margin-top: 1.2rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.clock-note-sub .mono { color: var(--ink-soft); letter-spacing: 0.14em; font-size: 0.68rem; }

/* ---------------- Streamgraph ---------------- */
.stream-block { margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.stream-frame {
  position: relative;
  border: 1px solid var(--hairline-strong);
  background: #fff;
}
#stream {
  width: 100%;
  height: clamp(300px, 52vh, 460px);
  cursor: crosshair;
}
.stream-tip {
  position: absolute;
  pointer-events: none;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  padding: 0.5rem 0.7rem;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 12px));
  z-index: 5;
}
.stream-tip .tip-share { color: #d9c9a0; }
.stream-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
  margin-top: 0.8rem;
}
.stream-legend button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
}
.stream-legend button i {
  width: 0.85rem;
  height: 0.85rem;
  display: inline-block;
  flex: none;
}
.stream-legend button:hover, .stream-legend button.hot { color: var(--ink); }

/* ---------------- Signals ---------------- */
.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.signal-card {
  border: 1px solid var(--hairline-strong);
  background: #fff;
  padding: 1.5rem 1.5rem 1.4rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.signal-card:hover {
  border-color: var(--ink-faint);
  box-shadow: 0 6px 18px -12px rgba(28, 26, 21, 0.35);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .signal-card:hover { transform: none; }
}
.signal-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.signal-label {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.signal-value {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--hot-deep);
  white-space: nowrap;
}
.signal-spark { width: 100%; height: 120px; margin-bottom: 1rem; }
.signal-card p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6; }

/* Keeling head-dot pulse */
@media (prefers-reduced-motion: no-preference) {
  .keel-pulse { animation: keelpulse 2.2s ease-out infinite; }
  @keyframes keelpulse {
    0% { r: 5; opacity: 0.8; }
    70% { r: 15; opacity: 0; }
    100% { r: 15; opacity: 0; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .keel-pulse { display: none; }
}

/* ---------------- Coda ---------------- */
.coda {
  margin-top: clamp(5rem, 12vh, 9rem);
  background: var(--ink);
  color: var(--paper);
  padding: clamp(5rem, 14vh, 9rem) var(--gutter);
}
.coda-inner { max-width: 82rem; margin: 0 auto; }
.coda-ecg {
  display: block;
  width: min(34rem, 100%);
  height: 3.2rem;
  margin-bottom: 2.6rem;
  opacity: 0.9;
}
@media (prefers-reduced-motion: no-preference) {
  .coda-inner.io-rise #coda-ecg-path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
  }
  .coda-inner.io-rise.in #coda-ecg-path {
    animation: ecgdraw 2.8s cubic-bezier(0.4, 0, 0.3, 1) 0.2s forwards;
  }
  @keyframes ecgdraw { to { stroke-dashoffset: 0; } }
}
.coda-line {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #b8b2a4;
}
.coda-em { color: var(--paper); font-weight: 600; }
.coda-body {
  margin-top: 2.2rem;
  max-width: 42rem;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: #a39d90;
  line-height: 1.7;
}

/* ---------------- Colophon ---------------- */
.colophon { padding-bottom: clamp(4rem, 9vh, 6.5rem); }
.colophon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.colophon-col h3 {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--hot);
  margin-bottom: 1.2rem;
}
.colophon-col ul { list-style: none; }
.colophon-col li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--hairline);
  line-height: 1.55;
}
.colophon-col li strong { color: var(--ink); font-weight: 600; }
.colophon-note {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
  line-height: 1.6;
}
.colophon-note .mono { font-size: 0.9em; }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid var(--hairline-strong); }
.footer-stripes { height: 10px; overflow: hidden; }
#footer-stripes { width: 100%; height: 10px; }
.footer-inner {
  max-width: 82rem;
  margin: 0 auto;
  padding: 3rem var(--gutter) 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.footer-mark { font-size: 0.85rem; }
.footer-line { font-size: 0.92rem; color: var(--ink-soft); }
.footer-line a { color: var(--hot-deep); text-decoration-color: var(--hairline-strong); text-underline-offset: 3px; }
.footer-line a:hover { text-decoration-color: var(--hot); }
.footer-fine { font-size: 0.68rem; letter-spacing: 0.18em; color: var(--ink-faint); text-transform: uppercase; }

/* ---------------- In-view rise for section content ---------------- */
@media (prefers-reduced-motion: no-preference) {
  .io-rise { opacity: 0; transform: translateY(26px); transition: opacity 0.85s cubic-bezier(0.22,1,0.36,1), transform 0.85s cubic-bezier(0.22,1,0.36,1); }
  .io-rise.in { opacity: 1; transform: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 940px) {
  .masthead-tag { display: none; }
}

@media (max-width: 1020px) {
  .vitals-bar { grid-template-columns: 1fr 1fr; }
  .vital { border-bottom: 1px solid var(--hairline); }
  .vital:nth-child(2n) { border-right: none; margin-right: 0; }
  .vital:nth-child(n+3) { border-bottom: none; }
  .statgrid { grid-template-columns: 1fr; }
  .statcard { border-right: none; margin-right: 0; padding-right: 0; border-bottom: 1px solid var(--hairline); }
  .statcard:last-child { border-bottom: none; }
  .signal-grid { grid-template-columns: 1fr; }
  .bigstat { grid-template-columns: 1fr; gap: 1.5rem; }
  .clock-layout { grid-template-columns: 1fr; }
  .scrolly { grid-template-columns: 1fr; gap: 0; }
  .scrolly-graphic {
    top: 3.4rem;
    height: auto;
    z-index: 10;
    background: var(--paper);
    padding: 0.6rem 0;
  }
  .scrolly-steps { padding: 6vh 0 10vh; }
  .step { margin-bottom: 45vh; background: rgba(251,250,247,0.96); }
  .colophon-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .masthead { gap: 1rem; padding: 0.75rem var(--gutter); }
  .masthead-nav {
    gap: 0.9rem;
    overflow-x: auto;
    scrollbar-width: none;
    min-width: 0;
    padding-right: 1.6rem;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 1.6rem), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 1.6rem), transparent);
  }
  .masthead-nav::-webkit-scrollbar { display: none; }
  .masthead-nav a { font-size: 0.72rem; white-space: nowrap; }
  .vitals-bar { grid-template-columns: 1fr 1fr; }
  .vital { padding: 1rem 0.8rem 1rem 0; margin-right: 0.8rem; }
  .section-head { grid-template-columns: 1fr; gap: 0.4rem; }
  .section-standfirst { grid-column: 1; }
  .bigstat-figure { font-size: clamp(3.6rem, 17vw, 5.5rem); }
  .keeling-card { padding: 1rem 0.9rem 0.8rem; }
  .keeling-readout { font-size: 0.8rem; }
  .stripes-scale { display: none; }
  .step { padding: 1.2rem 1.1rem; }
  .clock-readout { gap: 0.8rem; }
}
