/* ============================================================
   THE PIVOT — editorial feature stylesheet
   Dark ink canvas · Fraunces display · Inter body · Plex Mono data
   ============================================================ */

:root {
  --ink: #05060b;
  --ink-2: #090b13;
  --surface: #0e1120;
  --surface-2: #141828;
  --surface-3: #1b2036;
  --line: rgba(158, 170, 210, 0.14);
  --line-strong: rgba(158, 170, 210, 0.28);
  --text: #eceef7;
  --muted: #a6adc6;
  --faint: #7d85a3;
  --gem-1: #4796e3;
  --gem-2: #9177c7;
  --gem-3: #d96570;
  --grad: linear-gradient(120deg, var(--gem-1), var(--gem-2) 52%, var(--gem-3));
  --verified: #3ddc97;
  --reported: #f5b83d;
  --speculation: #b18cff;
  --danger: #ff5d5d;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
  --measure: 68ch;
  --radius: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --masthead-h: 58px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: #9ec2ff; text-underline-offset: 3px; }
a:hover { color: #c3d8ff; }
::selection { background: rgba(145, 119, 199, 0.45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gem-1);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ---------- typography helpers ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.9em;
}
.kicker::after {
  content: "";
  height: 1px;
  flex: 0 0 56px;
  background: var(--line-strong);
}
.kicker__num {
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1.4rem;
  max-width: 22ch;
}
.h2 em, .hero__line--em {
  font-style: italic;
  font-weight: 420;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(1.12rem, 1.6vw, 1.32rem);
  line-height: 1.62;
  color: #c9cddf;
  max-width: var(--measure);
  margin: 0 0 1.2rem;
}
.fine {
  font-size: 0.8rem;
  color: var(--faint);
  font-style: normal;
  display: inline-block;
}
.prose { max-width: var(--measure); margin: 0 auto; }
.prose p { margin: 0 0 1.35rem; color: #c3c8da; }
.prose b, .lede b { color: var(--text); font-weight: 600; }

/* ---------- progress bar ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 120;
  background: rgba(255, 255, 255, 0.04);
}
.progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad);
  transition: width 0.08s linear;
}

/* ---------- masthead ---------- */
.masthead {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  z-index: 110;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 6, 11, 0.72);
  border-bottom: 1px solid var(--line);
}
.masthead__inner {
  max-width: 1280px;
  margin: 0 auto;
  height: var(--masthead-h);
  padding: 0 clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand__mark { transform: translateY(3px); }
.brand__mark path { fill: #9db8f5; }
.brand__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 480;
  font-size: 1.22rem;
  letter-spacing: 0.01em;
}
.brand__tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.nav { margin-left: auto; overflow: hidden; min-width: 0; }
.nav__list {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.nav__list::-webkit-scrollbar { display: none; }
.nav__list a {
  display: block;
  padding: 7px 11px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-radius: 99px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav__list a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__list a[aria-current="true"] {
  color: var(--text);
  background: rgba(145, 119, 199, 0.16);
  box-shadow: inset 0 0 0 1px rgba(145, 119, 199, 0.35);
}
.masthead__status {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--reported);
  border: 1px solid rgba(245, 184, 61, 0.35);
  background: rgba(245, 184, 61, 0.08);
  padding: 6px 12px;
  border-radius: 99px;
  white-space: nowrap;
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--reported);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 184, 61, 0.5); }
  55% { box-shadow: 0 0 0 7px rgba(245, 184, 61, 0); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--masthead-h) + 8vh) clamp(20px, 6vw, 80px) 12vh;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(71, 150, 227, 0.13), transparent 55%),
    radial-gradient(90% 80% at 10% 110%, rgba(145, 119, 199, 0.12), transparent 55%),
    var(--ink);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}
.hero__static { display: none; }
.hero__glow {
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 70%;
  background: radial-gradient(50% 60% at 50% 100%, rgba(145, 119, 199, 0.16), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 1080px; margin: 0 auto; width: 100%; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 320;
  font-size: clamp(3rem, 9.2vw, 7.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 2.2rem;
}
.hero__line { display: block; }
.hero__standfirst {
  max-width: 60ch;
  font-size: clamp(1.08rem, 1.55vw, 1.3rem);
  line-height: 1.65;
  color: #c9cddf;
  margin: 0 0 2.4rem;
}
.hero__standfirst strong { color: var(--text); }
.hero__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 0;
  margin: 0 0 3rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--faint);
  text-transform: uppercase;
}
.hero__meta b { color: var(--muted); font-weight: 500; }
.hero__cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.hero__cue:hover { color: var(--text); border-color: var(--gem-2); background: rgba(145, 119, 199, 0.1); }
.hero__cue svg { animation: cue 2.4s infinite var(--ease-out); }
@keyframes cue { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

.hero__ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid var(--line);
  background: rgba(5, 6, 11, 0.6);
  backdrop-filter: blur(6px);
  overflow: hidden;
  padding: 10px 0;
}
.hero__ticker-track {
  display: flex;
  gap: 34px;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  animation: ticker 36s linear infinite;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- tags & chips ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid;
  white-space: nowrap;
}
.tag--verified { color: var(--verified); border-color: rgba(61, 220, 151, 0.4); background: rgba(61, 220, 151, 0.07); }
.tag--reported { color: var(--reported); border-color: rgba(245, 184, 61, 0.4); background: rgba(245, 184, 61, 0.07); }
.tag--speculation { color: var(--speculation); border-color: rgba(177, 140, 255, 0.4); background: rgba(177, 140, 255, 0.07); }

.chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 9px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.chip.is-on { color: var(--text); border-color: var(--gem-2); background: rgba(145, 119, 199, 0.14); }
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chip--verified i { background: var(--verified); }
.chip--reported i { background: var(--reported); }
.chip--speculation i { background: var(--speculation); }

/* ---------- sections ---------- */
.section {
  position: relative;
  padding: clamp(5rem, 12vh, 9rem) clamp(20px, 6vw, 80px);
  max-width: 1280px;
  margin: 0 auto;
}
.section__head { max-width: var(--measure); margin: 0 auto 3.5rem; }
.section + .section { border-top: 1px solid var(--line); }

/* ---------- known vs rumored ---------- */
.kr__filters {
  max-width: 1100px;
  margin: 0 auto 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.kr__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.kr__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: opacity 0.35s, filter 0.35s, transform 0.35s var(--ease-out), border-color 0.25s;
}
.kr__card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.kr__card header { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.kr__card h3 {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0;
}
.kr__card p { margin: 0; font-size: 0.94rem; color: var(--muted); line-height: 1.65; }
.kr__card p b { color: var(--text); font-weight: 600; }
.kr__card.is-dim { opacity: 0.18; filter: grayscale(0.8); pointer-events: none; }
.kr__card--artifact { grid-column: 1 / -1; }
.kr__artifact { margin: 4px 0 0; }
.kr__artifact img {
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  width: 100%;
  max-width: 560px;
}
.kr__artifact figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.6;
}
.kr__credit { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.img-failed {
  min-height: 120px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.img-failed::before {
  content: "Source thumbnail unavailable — described in caption above.";
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--faint);
  padding: 20px;
}

/* ---------- interstitial ---------- */
.interstitial {
  padding: clamp(6rem, 16vh, 11rem) clamp(20px, 6vw, 80px);
  text-align: center;
  background:
    radial-gradient(60% 100% at 50% 50%, rgba(145, 119, 199, 0.07), transparent 70%);
}
.interstitial__line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #d8dcee;
  max-width: 24ch;
  margin: 0 auto;
}

/* ---------- pull quote ---------- */
.pull {
  max-width: var(--measure);
  margin: 4rem auto 0;
  padding: 0 0 0 28px;
  border-left: 2px solid;
  border-image: linear-gradient(var(--gem-1), var(--gem-3)) 1;
}
.pull p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 380;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.35;
  color: #dde1f0;
  margin: 0 0 0.8rem;
}
.pull cite {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- spec sheet ---------- */
.spec-wrap { max-width: var(--measure); margin: 3.5rem auto 0; }
.spec {
  position: relative;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 26px 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.spec__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.spec__name {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.spec__rows { margin: 0; display: grid; gap: 0; }
.spec__rows > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.spec__rows dt { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); padding-top: 4px; }
.spec__rows dd { margin: 0; color: #c9cddf; }
.spec__rows dd span { color: var(--faint); }
.spec__status { color: var(--danger); font-weight: 600; }
.spec__status span { color: var(--faint); font-weight: 400; }
.spec__stamp {
  position: absolute;
  right: 18px;
  top: 52%;
  transform: rotate(-12deg);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
  color: var(--danger);
  border: 3px solid var(--danger);
  border-radius: 10px;
  padding: 10px 18px;
  opacity: 0.85;
  background: rgba(5, 6, 11, 0.55);
  box-shadow: 0 0 40px rgba(255, 93, 93, 0.15);
  pointer-events: none;
}
.spec__caption { margin-top: 12px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }

/* ---------- timeline ---------- */
.tl { max-width: 1100px; margin: 0 auto; }
.tl__controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}
.tl__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
}
.tl__btn:hover { color: var(--text); border-color: var(--gem-2); transform: scale(1.06); }
.tl__btn:disabled { opacity: 0.35; cursor: default; transform: none; }
.tl__counter {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--faint);
  min-width: 76px;
  text-align: center;
}
.tl__track-wrap { position: relative; }
.tl__line {
  position: absolute;
  top: 13px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.tl__line-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad);
  transition: width 0.45s var(--ease-out);
}
.tl__track {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0 8px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  outline-offset: 6px;
}
.tl__track::-webkit-scrollbar { display: none; }
.tl__card {
  position: relative;
  flex: 0 0 min(340px, 82vw);
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 24px 24px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out), opacity 0.3s;
  opacity: 0.55;
}
.tl__card.is-active {
  opacity: 1;
  border-color: rgba(145, 119, 199, 0.55);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8);
}
.tl__dot {
  position: absolute;
  top: 7px;
  left: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--faint);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.tl__card.is-active .tl__dot {
  border-color: var(--gem-2);
  background: var(--gem-2);
  box-shadow: 0 0 16px rgba(145, 119, 199, 0.8);
}
.tl__date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gem-1);
  margin: 0 0 10px;
}
.tl__head {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: 1.5rem;
  margin: 0 0 10px;
}
.tl__body { font-size: 0.92rem; color: var(--muted); margin: 0 0 16px; line-height: 1.62; }
.tl__body b { color: var(--text); }

/* ---------- org diagram ---------- */
.org {
  max-width: 1100px;
  margin: 3.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1.4fr;
  gap: 28px;
  align-items: center;
}
.org__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 14px;
}
.org__label span { text-transform: none; letter-spacing: 0.06em; }
.org__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}
.org__card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.org__avatar {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
  background: linear-gradient(135deg, #c9d4ee, #8fa1c8);
  margin-bottom: 14px;
}
.org__card h3 { font-family: var(--font-display); font-weight: 450; font-size: 1.3rem; margin: 0 0 4px; }
.org__role { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gem-1); margin: 0 0 10px; }
.org__note { font-size: 0.88rem; color: var(--muted); margin: 0; line-height: 1.55; }
.org__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.org__pair { display: grid; gap: 14px; }
.org__card--kept { border-color: rgba(245, 184, 61, 0.35); }
.org__card--kept .org__role { color: var(--reported); }
.org__card--new { border-color: rgba(61, 220, 151, 0.35); }
.org__card--new .org__role { color: var(--verified); }
.org__card--new .org__avatar { background: linear-gradient(135deg, var(--gem-1), var(--gem-2)); color: #fff; }

/* ---------- chart ---------- */
.chart { max-width: 1100px; margin: 0 auto 3rem; }
.chart__bar-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.chart__note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--faint);
  max-width: 76ch;
  margin: 0 0 20px;
  line-height: 1.5;
}
.chart__note svg { flex-shrink: 0; margin-top: 3px; }
.chart__stage {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(14px, 3vw, 34px);
}
.chart__svg { width: 100%; height: auto; display: block; }
.bar-row { cursor: default; outline: none; }
.bar-row:focus-visible .bar-track { stroke: var(--gem-1); stroke-width: 2; }
.bar-name { font-family: var(--font-body); font-weight: 600; font-size: 15px; fill: var(--text); }
.bar-org { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--faint); }
.bar-track { fill: rgba(255, 255, 255, 0.04); stroke: var(--line); }
.bar-fill { transition: width 0.9s var(--ease-out); }
.bar-fill--rival1 { fill: #d8dce8; }
.bar-fill--rival2 { fill: #5ea0f5; }
.bar-fill--google { fill: url(#chartGoogleGrad); }
.bar-fill--ghost { fill: transparent; stroke: var(--danger); stroke-dasharray: 6 5; stroke-width: 1.5; }
.bar-val { font-family: var(--font-mono); font-weight: 500; font-size: 15px; fill: var(--text); text-anchor: start; }
.bar-val--ghost { fill: var(--danger); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; text-anchor: start; }
.rank-grid line { stroke: var(--line); stroke-dasharray: 3 5; }
.rank-y { font-family: var(--font-mono); font-size: 12px; fill: var(--faint); text-anchor: end; }
.rank-x { font-family: var(--font-mono); font-size: 11px; fill: var(--muted); text-anchor: middle; }
.rank-line { stroke: url(#rankLineGrad); stroke-width: 2.5; stroke-linejoin: round; }
.rank-pt circle { fill: var(--ink); stroke: var(--gem-2); stroke-width: 2.5; transition: r 0.2s, fill 0.2s; }
.rank-pt:hover circle, .rank-pt:focus-visible circle { fill: var(--gem-2); r: 9; }
.rank-pt { outline: none; cursor: default; }
.chart__tooltip {
  position: absolute;
  z-index: 5;
  max-width: 240px;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s, transform 0.18s;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8);
}
.chart__tooltip.is-on { opacity: 1; transform: translateY(0); }
.chart__tooltip b { display: block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gem-1); margin-bottom: 4px; }
.chart__tooltip span { color: var(--muted); }

/* ---------- fractures ---------- */
.fractures {
  max-width: 1100px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.fracture {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.fracture:hover { transform: translateY(-4px); border-color: rgba(217, 101, 112, 0.4); }
.fracture__crack {
  position: absolute;
  right: 10px;
  top: -6px;
  height: 130%;
  color: rgba(217, 101, 112, 0.22);
  transition: color 0.3s;
}
.fracture:hover .fracture__crack { color: rgba(217, 101, 112, 0.45); }
.fracture__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--danger);
  display: block;
  margin-bottom: 14px;
}
.fracture h3 {
  font-family: var(--font-display);
  font-weight: 430;
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 0 0 12px;
  max-width: 14ch;
}
.fracture p { font-size: 0.92rem; color: var(--muted); margin: 0; line-height: 1.62; max-width: 92%; }

/* ---------- fork ---------- */
.fork {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.fork__card {
  position: relative;
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.fork__card:hover { transform: translateY(-4px); }
.fork__card--flash:hover { border-color: rgba(177, 140, 255, 0.5); }
.fork__card--four {
  background: linear-gradient(165deg, rgba(71, 150, 227, 0.1), rgba(145, 119, 199, 0.08) 50%, var(--surface) 85%);
  border-color: rgba(145, 119, 199, 0.35);
}
.fork__card--four:hover { border-color: rgba(145, 119, 199, 0.65); }
.fork__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 18px;
}
.fork__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.fork__card--four .fork__name {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fork__body { color: #c3c8da; font-size: 0.98rem; margin: 0 0 16px; }
.fork__body b { color: var(--text); }
.fork__fine { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin: 0; }

/* ---------- the bet ---------- */
.bet { text-align: center; padding: clamp(4rem, 12vh, 8rem) 0 0; }
.bet__over {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0;
}
.bet__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(9rem, 26vw, 19rem);
  line-height: 0.9;
  margin: 0.5rem 0;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 60px rgba(145, 119, 199, 0.35));
}
.bet__under {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 380;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  color: #d8dcee;
  margin: 0;
  line-height: 1.35;
}

/* ---------- dial ---------- */
.dial { max-width: 900px; margin: 0 auto; }
.dial__controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 8px; }
.dial__btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 10px 18px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.dial__btn:hover { color: var(--text); border-color: var(--line-strong); }
.dial__btn.is-on { color: var(--text); border-color: var(--gem-2); background: rgba(145, 119, 199, 0.14); }
.dial__stage {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 40px);
  margin-top: 18px;
}
.dial__svg { width: 100%; height: auto; }
.dial__arc { stroke: var(--line-strong); stroke-width: 3; }
.dial__arc-seg { stroke-width: 3; opacity: 0.7; }
.dial__arc-seg--skep { stroke: var(--danger); }
.dial__arc-seg--opt { stroke: var(--verified); }
.dial__needle { transition: transform 0.7s var(--ease-out); }
.dial__needle line { stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.dial__needle circle { fill: var(--surface-3); stroke: var(--text); stroke-width: 2.5; }
.dial__lab { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; fill: var(--faint); }
.dial__panel { display: none; }
.dial__panel.is-active { display: block; animation: panelIn 0.45s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dial__panel h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 420;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin: 0 0 12px;
}
.dial__panel p { color: var(--muted); font-size: 0.95rem; margin: 0; line-height: 1.66; }
html.no-js .dial__panel { display: block; margin-bottom: 1.5rem; }
.dial .fine { display: block; text-align: center; margin-top: 14px; }

/* ---------- takeaways ---------- */
.takeaways {
  list-style: none;
  counter-reset: tk;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.takeaway {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.takeaway:hover { transform: translateY(-4px); border-color: rgba(71, 150, 227, 0.45); }
.takeaway__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  font-size: 2.6rem;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 14px;
}
.takeaway h3 { font-family: var(--font-display); font-weight: 440; font-size: 1.3rem; margin: 0 0 10px; line-height: 1.25; }
.takeaway p { font-size: 0.92rem; color: var(--muted); margin: 0; line-height: 1.62; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding: clamp(4rem, 9vh, 6rem) clamp(20px, 6vw, 80px) 3rem;
}
.footer__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
}
.footer__h {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 1.4rem;
}
.footer__list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 14px; }
.footer__list li {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}
.footer__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gem-2);
  opacity: 0.6;
}
.footer__list b { color: var(--text); font-weight: 600; }
.footer__colophon {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  line-height: 1.7;
  margin: 0 0 1.4rem;
}
.footer__top {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 9px 16px;
  display: inline-block;
  transition: color 0.2s, border-color 0.2s;
}
.footer__top:hover { color: var(--text); border-color: var(--gem-2); }

/* ---------- reveal choreography ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(4px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out),
    filter 0.8s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.js [data-reveal].in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .masthead__status { display: none; }
}
@media (max-width: 1000px) {
  .org { grid-template-columns: 1fr; gap: 18px; }
  .org__arrow { flex-direction: row; transform: rotate(90deg); height: 40px; }
  .org__arrow span { transform: rotate(-90deg); }
  .dial__stage { grid-template-columns: 1fr; }
  .dial__svg { max-width: 300px; margin: 0 auto; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .brand__tag { display: none; }
  .nav__list a { padding: 7px 9px; font-size: 0.62rem; }
  .hero { padding-bottom: 16vh; }
  .hero__meta { gap: 8px 18px; }
  .spec__rows > div { grid-template-columns: 1fr; gap: 4px; }
  .spec__stamp { top: auto; bottom: 16px; right: 12px; font-size: 0.95rem; padding: 7px 12px; }
  .kr__card--artifact { grid-column: auto; }
  .section__head { margin-bottom: 2.5rem; }
  .bet__br { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .hero__canvas { display: none; }
  .hero__static {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .hero__sparkle {
    position: absolute;
    width: min(40vw, 480px);
    right: -5%;
    top: 8%;
    opacity: 0.3;
    filter: blur(1px);
  }
  .hero__ticker-track { animation: none; }
  .pulse { animation: none; }
  .hero__cue svg { animation: none; }
}
