@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Schibsted+Grotesk:wght@400;500;600;700;800;900&display=swap");

:root {
  /* =================================================================
     CANONICAL RYZE COLOR RAMPS (Figma "Ryze Brand / Website 2026").
     Note: `lavendar` spelling preserved from the Figma variable.
     ================================================================= */
  --ryze-blue-100: #e3e3ff;
  --ryze-blue-200: #b6b7ff;
  --ryze-blue-300: #898bff;
  --ryze-blue-500: #001aff;
  --ryze-blue-600: #000ca2;
  --ryze-blue-700: #00034d;

  --ryze-lavendar-100: #f6edfe;
  --ryze-lavendar-200: #debafb;
  --ryze-lavendar-300: #ca84f9;
  --ryze-lavendar-500: #8c1cbc;
  --ryze-lavendar-600: #5a0e7b;
  --ryze-lavendar-700: #2e0440;
  --ryze-lavendar-base: #b93df5;

  --ryze-magenta-200: #fbbcc7;
  --ryze-magenta-300: #f9809b;
  --ryze-magenta-base: #f4256d; /* magenta-400 */

  --ryze-orange-200: #fb9b8d;
  --ryze-orange-base: #f95823; /* orange-300 */

  --ryze-pink-100: #fad2fc;
  --ryze-pink-200: #f494f9;
  --ryze-pink-400: #b725bd;
  --ryze-pink-base: #ee3df5;

  --ryze-yellow-100: #ffeacb;
  --ryze-yellow-base: #f3bd1a; /* yellow-200 */

  --ryze-black-100: #d6d6d6;
  --ryze-black-500: #434343;
  --ryze-black-600: #242424;
  --ryze-black-700: #000000;

  /* Semantic aliases (canonical) */
  --ink: var(--ryze-black-700);
  --ink-soft: var(--ryze-black-600);
  --cosmos: #020846;
  --electric: var(--ryze-blue-500);
  --electric-deep: var(--ryze-blue-600);
  --electric-soft: var(--ryze-blue-100);
  --lavender: var(--ryze-lavendar-base);
  --ember: var(--ryze-orange-base);
  --magenta: var(--ryze-magenta-base);
  --pink: var(--ryze-pink-base);
  --sun: var(--ryze-yellow-base);
  --cream: #f3efeb;
  --paper: #ffffff;
  --ash: var(--ryze-black-500);
  --smoke: var(--ryze-black-100);

  /* Surface / text neutrals for this deck (dark glass cards) */
  --bg: #050505;
  --panel: #0d0d0d;
  --panel-soft: rgba(13, 13, 13, 0.72);
  --text: #f4f1ea;
  --muted: #b0a99d;
  --line: rgba(244, 241, 234, 0.16);
  --line-strong: rgba(244, 241, 234, 0.28);

  /* Legacy aliases still referenced throughout — mapped to canonical ramps */
  --blue: var(--ryze-blue-500);
  --purple: var(--ryze-lavendar-base);
  --orange: var(--ryze-orange-base);
  --gold: var(--ryze-yellow-base);
  /* lighter blue for UI lines/outlines that need contrast on the dark cards */
  --blue-ui: var(--ryze-blue-300);
  --title: var(--ryze-yellow-base);
  --violet: var(--purple);
  --amber: var(--orange);
  --red: var(--ryze-magenta-base);
  --green: var(--magenta);

  /* =================================================================
     GRADIENTS — built from the canonical ramps
     ================================================================= */
  --grad-mango: linear-gradient(160deg, #ffeacb 0%, #f3bd1a 60%, #f95823 100%);
  --grad-lavender: linear-gradient(160deg, #f6edfe 0%, #debafb 40%, #ca84f9 100%);
  --grad-tomato: linear-gradient(160deg, #fb9b8d 0%, #f95823 60%, #f4256d 100%);
  --grad-rose: linear-gradient(160deg, #fad2fc 0%, #f494f9 50%, #b725bd 100%);
  --grad-sky: linear-gradient(160deg, #e3e3ff 0%, #b6b7ff 50%, #001aff 100%);
  --grad-electric: linear-gradient(180deg, #001aff 0%, #000ca2 100%);
  --grad-chrome: linear-gradient(180deg, #ffffff 0%, #e3e3ff 35%, #898bff 65%, #00034d 100%);

  /* Title-fade — tint at the BOTTOM, white at the TOP (signature H1 glow) */
  --grad-title-cream: linear-gradient(0deg, #efe8d9 0%, #ffffff 100%);
  --grad-title-sky: linear-gradient(0deg, #b6b7ff 0%, #ffffff 100%);
  --grad-title-rose: linear-gradient(0deg, #f494f9 0%, #ffffff 100%);
  --grad-title-sun: linear-gradient(0deg, #f3bd1a 0%, #ffffff 100%);
  --grad-title-ember: linear-gradient(0deg, #f95823 0%, #ffffff 100%);

  /* =================================================================
     GLOWS (preferred over drop shadows on dark)
     ================================================================= */
  --glow-electric: 0 0 40px rgba(0, 26, 255, 0.45), 0 0 120px rgba(0, 26, 255, 0.25);
  --glow-lavender: 0 0 40px rgba(185, 61, 245, 0.4), 0 0 120px rgba(185, 61, 245, 0.2);
  --glow-magenta: 0 0 40px rgba(244, 37, 109, 0.4), 0 0 120px rgba(244, 37, 109, 0.2);
  --glow-ember: 0 0 30px rgba(249, 88, 35, 0.45);
  --glow-sun: 0 0 30px rgba(243, 189, 26, 0.45);

  /* =================================================================
     RADII
     ================================================================= */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 9999px;

  /* Motion — canonical ease-out, with --ease kept as alias */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease: var(--ease-out);
  --slide-pad-x: clamp(1.25rem, 4vw, 5.5rem);
  --slide-pad-y: clamp(1rem, 4vh, 3.25rem);

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2.25rem;

  /* Type families — Instrument Serif is reserved for titles ONLY.
     Schibsted Grotesk handles everything else: subtitles, descriptions,
     body copy, and display numbers. */
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --display: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* =================================================================
     ROLE-BASED TYPE SCALE — one source of truth for hierarchy.
     Narrative (left): eyebrow < body < lead < title.
     Data (right): label < num-sm < num-md < num-lg < hero.
     ================================================================= */
  --fs-eyebrow:  clamp(0.72rem, 0.45vw + 0.62rem, 0.82rem);
  --fs-title:    clamp(2.55rem, 5.4vw + 0.5rem, 6.2rem);
  --fs-lead:     clamp(1.18rem, 1.4vw + 0.7rem, 1.65rem);
  --fs-body:     clamp(0.95rem, 0.6vw + 0.78rem, 1.12rem);
  --fs-caption:  clamp(0.76rem, 0.4vw + 0.66rem, 0.88rem);

  --fs-hero-num: clamp(3.4rem, 7vw + 0.5rem, 6.4rem);
  --fs-num-lg:   clamp(1.7rem, 2.4vw + 0.6rem, 2.6rem);
  --fs-num-md:   clamp(1.15rem, 1.3vw + 0.6rem, 1.5rem);
  --fs-num-sm:   clamp(0.92rem, 0.7vw + 0.7rem, 1.08rem);
  --fs-label:    clamp(0.82rem, 0.55vw + 0.7rem, 0.95rem);

  /* Weights — keep the set small for a tidy hierarchy */
  --w-regular: 400;
  --w-medium:  500;
  --w-semi:    600;
  --w-bold:    700;
  --w-black:   800;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  /* Fully dark cinematic base — near-black with only the faintest cool lift at
     the very top so it doesn't read as a flat void. Visual motion comes from the
     ambient particle field, not from the background colour. */
  background:
    radial-gradient(130% 105% at 50% -12%, #0c0c16 0%, #050507 48%, #000 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
.slide-dot:focus-visible,
.slides:focus-visible {
  outline: 2px solid var(--blue-ui);
  outline-offset: 4px;
}

/* ===== Ambient dark backdrop (drifting glow orbs + twinkling particles) ===== */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Brighter, light-emitting aurora: blurred brand-coloured glows that both drift
   and breathe (scale + brightness) so the dark page feels alive. They pool in
   the gutter around the card, which stays dark and readable. */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
.orb-a {
  width: 34vw;
  height: 34vw;
  left: 2vw;
  top: 6vh;
  background: radial-gradient(circle, var(--electric), transparent 64%);
  animation: orb-drift-a 17s ease-in-out infinite;
}
.orb-b {
  width: 32vw;
  height: 32vw;
  right: 2vw;
  bottom: 6vh;
  background: radial-gradient(circle, var(--lavender), transparent 64%);
  animation: orb-drift-b 21s ease-in-out infinite;
}
.orb-c {
  width: 28vw;
  height: 28vw;
  right: 8vw;
  top: 0vh;
  background: radial-gradient(circle, var(--magenta), transparent 64%);
  animation: orb-drift-c 15s ease-in-out infinite;
}
.orb-d {
  width: 26vw;
  height: 26vw;
  left: 10vw;
  bottom: 0vh;
  background: radial-gradient(circle, var(--pink), transparent 64%);
  animation: orb-drift-d 19s ease-in-out infinite;
}
@keyframes orb-drift-a {
  0%   { transform: translate(0, 0) scale(1);          opacity: 0.35; }
  25%  { transform: translate(16vw, 9vh) scale(1.3);   opacity: 0.7; }
  50%  { transform: translate(8vw, 22vh) scale(0.75);  opacity: 0.32; }
  75%  { transform: translate(22vw, 6vh) scale(1.15);  opacity: 0.62; }
  100% { transform: translate(0, 0) scale(1);          opacity: 0.35; }
}
@keyframes orb-drift-b {
  0%   { transform: translate(0, 0) scale(1);          opacity: 0.38; }
  30%  { transform: translate(-18vw, -10vh) scale(1.3); opacity: 0.7; }
  60%  { transform: translate(-6vw, -22vh) scale(0.78); opacity: 0.34; }
  100% { transform: translate(0, 0) scale(1);          opacity: 0.38; }
}
@keyframes orb-drift-c {
  0%   { transform: translate(0, 0) scale(0.85);        opacity: 0.28; }
  35%  { transform: translate(-16vw, 16vh) scale(1.28); opacity: 0.62; }
  70%  { transform: translate(-24vw, 5vh) scale(0.8);   opacity: 0.3; }
  100% { transform: translate(0, 0) scale(0.85);        opacity: 0.28; }
}
@keyframes orb-drift-d {
  0%   { transform: translate(0, 0) scale(0.88);       opacity: 0.28; }
  40%  { transform: translate(18vw, -14vh) scale(1.3);  opacity: 0.64; }
  70%  { transform: translate(6vw, -22vh) scale(0.82);  opacity: 0.32; }
  100% { transform: translate(0, 0) scale(0.88);       opacity: 0.28; }
}

.particles {
  position: absolute;
  inset: 0;
}
.particle {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--pcolor, rgba(255, 255, 255, 0.95));
  box-shadow: 0 0 var(--glow, 8px) var(--pcolor, rgba(255, 255, 255, 0.8));
  opacity: 0;
  will-change: transform, opacity;
  animation: twinkle var(--dur, 8s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
  50% { opacity: var(--maxop, 0.9); transform: translateY(var(--drift, -20px)) scale(1); }
}

.slides {
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.slides::-webkit-scrollbar {
  width: 10px;
}

.slides::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--r-pill);
}

.report-slide,
.loading-slide {
  min-height: 100vh;
  scroll-snap-align: start;
}

.loading-slide {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: var(--slide-pad-y) var(--slide-pad-x);
}

.loading-slide h1 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 12vw, 9rem);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.02em;
  background: var(--grad-title-cream);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.loading-slide p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.report-slide {
  display: grid;
  place-items: center;
  /* Padding is the gutter where the glowing field frames the card. */
  padding: clamp(1.6rem, 4vh, 3.25rem) clamp(2.5rem, 7vw, 8rem);
}

.slide-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(22rem, 2fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: stretch;
  width: min(100%, 84rem);
  min-width: min(100%, 68rem);
  min-height: 42rem;
  height: min(82vh, 52rem);
  max-height: min(82vh, 52rem);
  margin-inline: auto;
  padding: clamp(1.4rem, 3vw, 3rem);
  border-radius: var(--r-xl);
  isolation: isolate;
}

/* Frosted glass on a separate layer behind the content: waves stay faintly
   visible behind it. Keeping backdrop-filter here (not on .slide-card itself)
   avoids the Chrome bug where a translucent backdrop-filtered element paints
   opaque dark boxes behind its text. */
.slide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid rgba(244, 241, 234, 0.14);
  background: rgba(8, 8, 11, 0.62);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.copy-panel,
.chart-panel {
  position: relative;
  min-width: 0;
}

.copy-panel {
  display: grid;
  align-content: center;
  gap: clamp(0.78rem, 1.7vh, 1.2rem);
  padding-right: clamp(0rem, 2vw, 2rem);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.eyebrow,
.source-chip,
.source-micro,
.caveat,
.stat-caption,
.mode-note {
  font-size: var(--fs-caption);
  line-height: 1.3;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--lavender);
  text-transform: uppercase;
  font-weight: var(--w-bold);
  letter-spacing: 0.14em;
}

.source-chip,
.caveat,
.source-micro {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line-strong);
  background: rgba(244, 241, 234, 0.07);
  color: #cfc8ba;
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  text-decoration: none;
}

.source-chip:hover,
.source-micro:hover {
  color: var(--text);
  border-color: rgba(137, 139, 255, 0.55);
}

.source-chip.medium {
  border-color: rgba(245, 158, 11, 0.48);
  color: #e6c98d;
}

/* Signature Ryze title treatment: Instrument Serif clipped to a vertical
   title-fade gradient — a tint of brand blue at the bottom fading up to pure
   white. line-height >=1 + padding-bottom keeps descenders (g, y, p) from
   clipping when the gradient is clipped to the text. */
.slide-title {
  max-width: 14ch;
  margin: clamp(0.25rem, 0.7vh, 0.55rem) 0 clamp(0.35rem, 1vh, 0.8rem);
  font-family: var(--serif);
  font-size: var(--fs-title);
  line-height: 1.0;
  padding-bottom: 0.08em;
  font-weight: var(--w-medium);
  letter-spacing: -0.015em;
  background: var(--grad-title-sky);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  overflow: visible;
}

.panic {
  max-width: 40ch;
  margin: clamp(0.35rem, 1vh, 0.7rem) 0 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-lead);
  font-weight: var(--w-medium);
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.comfort {
  max-width: 46ch;
  margin: clamp(0.3rem, 0.8vh, 0.55rem) 0 0;
  color: #cbc4b6;
  font-size: var(--fs-body);
  font-weight: var(--w-regular);
  line-height: 1.55;
}

.caveat {
  border-radius: 8px;
  max-width: 46rem;
  color: #e8dcbf;
  background: rgba(245, 158, 11, 0.08);
}

.chart-panel {
  display: grid;
  align-content: center;
  min-height: 100%;
  padding: clamp(1rem, 3vw, 2rem) 0;
}

.chart-stage {
  position: relative;
  display: grid;
  gap: clamp(0.85rem, 1.6vw, 1.2rem);
  align-content: center;
  min-height: min(70vh, 46rem);
  padding: clamp(0.75rem, 1.8vw, 1.5rem);
  overflow: hidden;
}

.chart-layer {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1rem;
}

.stat-caption {
  position: relative;
  z-index: 2;
  max-width: 40ch;
  color: #dcd4c5;
  font-size: var(--fs-body);
  font-weight: var(--w-semi);
  line-height: 1.45;
}

.source-micro {
  position: relative;
  z-index: 2;
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
}

.big-number {
  font-family: var(--display);
  font-size: var(--fs-hero-num);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--magenta);
  font-weight: var(--w-black);
  font-variant-numeric: tabular-nums;
  text-shadow: var(--glow-magenta);
}

/* Shared caption beneath big numbers / rings */
.big-number small,
.ring-center small {
  display: block;
  max-width: 22ch;
  margin-top: var(--space-3);
  color: var(--muted);
  font-family: var(--sans);
  font-weight: var(--w-medium);
  font-size: var(--fs-body);
  line-height: 1.45;
  letter-spacing: 0;
  text-shadow: none;
}

.bars,
.stacked-group,
.role-grid,
.gauge-grid,
.slope-wrap,
.dot-grid-wrap,
.dependency-wrap,
.rising-wrap {
  display: grid;
  gap: 0.85rem;
}

.bar-row {
  display: grid;
  gap: 0.42rem;
}

.bar-topline {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: baseline;
  color: #e5dece;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
}

.bar-label {
  min-width: 0;
}

.bar-value {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.bar-track {
  position: relative;
  height: clamp(0.8rem, 1.7vw, 1.15rem);
  background: rgba(244, 241, 234, 0.08);
  border: 1px solid rgba(244, 241, 234, 0.1);
  overflow: hidden;
}

.bar-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 64%, white));
  transition:
    width 1100ms var(--ease),
    transform 1100ms var(--ease),
    opacity 600ms ease;
  transition-delay: var(--delay, 0ms);
}

.report-slide.is-active .bar-fill {
  width: var(--bar-width);
}

.stacked-bar {
  display: flex;
  width: 100%;
  min-height: clamp(2.5rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  background: rgba(244, 241, 234, 0.05);
  overflow: hidden;
}

.stack-segment {
  width: 0;
  min-width: 0;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--ink);
  font-size: clamp(0.65rem, 0.95vw, 0.78rem);
  font-weight: 850;
  transition: width 1150ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

.report-slide.is-active .stack-segment {
  width: var(--seg-width);
}

.stack-labels {
  display: grid;
  gap: 0.42rem;
}

.stack-label {
  display: grid;
  grid-template-columns: 0.8rem minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  color: #d9d2c5;
  font-size: clamp(0.75rem, 1vw, 0.88rem);
}

.swatch {
  width: 0.65rem;
  height: 0.65rem;
  background: var(--accent);
}

.slope-svg,
.gauge-svg,
.dependency-svg,
.rising-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.slope-axis {
  stroke: rgba(244, 241, 234, 0.18);
  stroke-width: 1;
}

.slope-line {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1250ms var(--ease);
}

.slope-line.alt {
  stroke: var(--blue-ui);
}

.report-slide.is-active .slope-line {
  stroke-dashoffset: 0;
}

.slope-point,
.slope-label,
.svg-label {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 600ms ease,
    transform 600ms var(--ease);
  transition-delay: var(--delay, 500ms);
}

.report-slide.is-active .slope-point,
.report-slide.is-active .slope-label,
.report-slide.is-active .svg-label {
  opacity: 1;
  transform: translateY(0);
}

.slope-point {
  fill: var(--panel);
  stroke: var(--accent);
  stroke-width: 3;
}

.slope-label,
.svg-label {
  fill: #e7dfd0;
  font-size: 13px;
  font-weight: 700;
}

.gauge-grid {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  align-items: center;
}

.gauge-card {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
}

.gauge-bg {
  fill: none;
  stroke: rgba(244, 241, 234, 0.11);
  stroke-width: 14;
}

.gauge-value {
  fill: none;
  stroke: var(--accent);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1150ms var(--ease);
}

.report-slide.is-active .gauge-value {
  stroke-dashoffset: var(--gauge-offset);
}

.gauge-text {
  fill: var(--text);
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
}

.gauge-label {
  max-width: 12rem;
  color: #d9d2c5;
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.3;
}

.dot-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: clamp(0.28rem, 0.8vw, 0.48rem);
  max-width: 31rem;
}

.dot-cell {
  aspect-ratio: 1;
  border: 1px solid rgba(244, 241, 234, 0.12);
  background: rgba(244, 241, 234, 0.05);
  opacity: 0.7;
  transform: scale(0.82);
  transition:
    background 320ms ease,
    border-color 320ms ease,
    transform 520ms var(--ease),
    opacity 320ms ease;
  transition-delay: var(--delay, 0ms);
}

.report-slide.is-active .dot-cell.is-lit {
  background: var(--accent);
  border-color: transparent;
  opacity: 1;
  transform: scale(1);
}

.dependency-line,
.rising-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1300ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

.dependency-line.alt,
.rising-line.alt {
  stroke: var(--blue-ui);
}

.report-slide.is-active .dependency-line,
.report-slide.is-active .rising-line {
  stroke-dashoffset: 0;
}

.node-box,
.request-card {
  fill: rgba(244, 241, 234, 0.07);
  stroke: rgba(244, 241, 234, 0.2);
}

.request-card {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 500ms ease,
    transform 900ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

.report-slide.is-active .request-card {
  opacity: 1;
  transform: translateY(0);
}

.stamp-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
}

.stamp-pulse::after {
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.12), transparent 62%);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.12);
  transform: scale(0.8);
}

.report-slide.is-active .stamp-pulse::after {
  animation: stamp-pulse 950ms var(--ease) 580ms both;
}

@keyframes stamp-pulse {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(-1deg);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.08) rotate(0.5deg);
  }
}

/* ===== Bespoke chart modules ===== */

/* S1 — flow-ribbon stacked columns */
.flow-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.flow-seg {
  fill: var(--accent);
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: bottom;
  transition: transform 900ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .flow-seg {
  transform: scaleY(1);
}
.flow-ribbon {
  fill: var(--accent);
  opacity: 0;
  transition: opacity 800ms ease;
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .flow-ribbon {
  opacity: 0.26;
}
.flow-val {
  fill: var(--ink);
  font: 800 12px var(--display);
  opacity: 0;
  transition: opacity 400ms ease;
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .flow-val {
  opacity: 1;
}
.flow-group {
  fill: #e7dfd0;
  font: 700 13px var(--display);
}
.dcol-rem-swatch {
  background: rgba(244, 241, 234, 0.2);
}

/* S2 — type-scale bars (number size encodes value) */
.typescale {
  display: grid;
  gap: var(--space-3);
}
.ts-row {
  display: grid;
  gap: 3px;
}
.ts-label {
  font-size: clamp(0.72rem, 1vw, 0.85rem);
  color: #cfc8ba;
  font-weight: 600;
}
.ts-bar {
  width: 0;
  display: flex;
  align-items: center;
  min-height: 1.55em;
  padding: 0.1rem 0.7rem;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 58%, white));
  transition: width 1000ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .ts-bar {
  width: var(--w);
}
.ts-val {
  font: 800 var(--fs) / 1 var(--display);
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

/* S3 — packed quadrant of value-sized cards */
.quad {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: clamp(220px, 40vh, 340px);
}
.quad-row {
  display: flex;
  gap: var(--space-2);
  flex: 1;
}
.quad-card {
  flex: var(--g) 1 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-2);
  padding: clamp(0.7rem, 1.6vw, 1.1rem);
  border-radius: 16px;
  background: var(--accent);
  color: var(--ink);
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 600ms ease,
    transform 700ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .quad-card {
  opacity: 1;
  transform: scale(1);
}
.quad-cat {
  font-weight: 700;
  font-size: clamp(0.74rem, 1vw, 0.9rem);
  max-width: 18ch;
}
.quad-val {
  align-self: flex-end;
  font: 800 clamp(1.6rem, 3.4vw, 2.8rem) / 1 var(--display);
  letter-spacing: -0.02em;
}
.quad-rem {
  background: rgba(244, 241, 234, 0.1);
  color: var(--muted);
}

/* S4 — big number over a halftone dot disc */
.dotdisc {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(220px, 38vh, 320px);
}
.dotdisc-circle {
  width: clamp(190px, 32vw, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  background-image: radial-gradient(var(--accent) 30%, transparent 33%);
  background-size: 15px 15px;
  -webkit-mask: radial-gradient(circle at center, #000 98%, transparent 100%);
  mask: radial-gradient(circle at center, #000 98%, transparent 100%);
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 700ms ease,
    transform 800ms var(--ease) 150ms;
}
.report-slide.is-active .dotdisc-circle {
  opacity: 0.85;
  transform: scale(1);
}
.dotdisc-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
}
.dotdisc-num .count-up {
  font: 800 clamp(3.4rem, 9vw, 6rem) / 1 var(--display);
  letter-spacing: -0.03em;
  color: var(--accent);
  text-shadow: 0 0 30px color-mix(in srgb, var(--accent) 45%, transparent);
}
.dotdisc-cap {
  position: absolute;
  bottom: 0;
  margin: 0;
  max-width: 22ch;
  text-align: center;
  color: var(--muted);
  font-size: clamp(0.85rem, 1.3vw, 1.05rem);
  line-height: 1.4;
}

/* S5 — ranked glowing spheres */
.sphere-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: clamp(200px, 34vh, 280px);
}
.sphere-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}
.sphere-val {
  color: var(--accent);
  font-weight: 800;
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
}
.sphere {
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--accent) 28%, white), var(--accent) 72%);
  box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 50%, transparent);
  transform: scale(0);
  transition: transform 700ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .sphere {
  transform: scale(1);
}
.sphere-cap {
  font-size: clamp(0.66rem, 0.9vw, 0.8rem);
  color: #cfc8ba;
  max-width: 12ch;
  line-height: 1.25;
}

/* S6 — promise hero collapsing into reality insets */
.promise2 {
  display: grid;
  gap: var(--space-3);
}
.promise2-hero .big-number {
  font-size: var(--fs-hero-num);
}
.promise2-hero small {
  display: block;
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: clamp(0.9rem, 1.3vw, 1.1rem);
  line-height: 1.4;
}
.promise-vs {
  margin: 0;
  color: var(--muted);
  font-style: italic;
  font-family: var(--sans);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
}
.promise2-insets {
  display: flex;
  gap: var(--space-3);
}
.inset-card {
  flex: 1;
  display: grid;
  gap: 3px;
  padding: clamp(0.6rem, 1.4vw, 1rem);
  border-radius: 12px;
  border-left: 3px solid var(--accent);
  background: rgba(244, 241, 234, 0.05);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 500ms ease,
    transform 600ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .inset-card {
  opacity: 1;
  transform: translateY(0);
}
.inset-val {
  font: 800 clamp(1.6rem, 3.2vw, 2.4rem) / 1 var(--display);
  letter-spacing: -0.02em;
  color: var(--accent);
}
.inset-cap {
  font-size: clamp(0.7rem, 0.95vw, 0.84rem);
  color: #cfc8ba;
  line-height: 1.3;
}

/* S7 — big number on a textured gradient disc */
.cxcircle {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(220px, 38vh, 320px);
}
.cxcircle-disc {
  width: clamp(200px, 34vw, 290px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--accent) 35%, white), var(--accent) 72%);
  box-shadow: 0 0 50px color-mix(in srgb, var(--accent) 45%, transparent);
  opacity: 0;
  transform: scale(0.88);
  transition:
    opacity 700ms ease,
    transform 800ms var(--ease);
}
.report-slide.is-active .cxcircle-disc {
  opacity: 1;
  transform: scale(1);
}
.cxcircle-num {
  position: absolute;
  display: grid;
  justify-items: center;
  text-align: center;
}
.cxcircle-num .count-up {
  font: 800 clamp(3rem, 8vw, 5rem) / 1 var(--display);
  letter-spacing: -0.03em;
  color: #fff;
}
.cxcircle-num small {
  margin-top: var(--space-2);
  max-width: 16ch;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  line-height: 1.35;
}

/* S8 — ripple-growth circles */
.ripple-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1.5rem, 6vw, 4rem);
  min-height: clamp(220px, 38vh, 300px);
}
.ripple-cell {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
}
.ripple {
  width: var(--size);
  aspect-ratio: 1;
  min-width: 90px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: repeating-radial-gradient(circle, var(--accent) 0 2px, transparent 2px 13px);
  -webkit-mask: radial-gradient(circle, #000 99%, transparent);
  mask: radial-gradient(circle, #000 99%, transparent);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 700ms ease,
    transform 800ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .ripple {
  opacity: 1;
  transform: scale(1);
}
.ripple-num {
  font: 800 clamp(2rem, 5vw, 3.4rem) / 1 var(--display);
  color: var(--accent);
}
.ripple-year {
  color: #cfc8ba;
  font-weight: 700;
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
}

/* S9 — chevron ranked flow */
.chev-list {
  display: grid;
  gap: var(--space-2);
}
.chev {
  width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: clamp(2.4rem, 5vw, 3.2rem);
  padding: 0 clamp(1rem, 3vw, 2rem) 0 1rem;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, white));
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
  transition: width 950ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .chev {
  width: var(--w);
}
.chev-cat {
  font-weight: 700;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  white-space: nowrap;
}
.chev-val {
  font: 800 clamp(1rem, 1.8vw, 1.4rem) / 1 var(--display);
}

/* S10 — nested quarter-circle arcs */
.arc-svg {
  width: 100%;
  max-width: 360px;
  height: auto;
  overflow: visible;
}
.arc-wedge {
  fill: var(--accent);
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: bottom left;
  transition: transform 900ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .arc-wedge {
  transform: scale(1);
}
.arc-big {
  font: 800 30px var(--display);
  letter-spacing: -0.02em;
  opacity: 0;
  transition: opacity 600ms ease 500ms;
}
.report-slide.is-active .arc-big {
  opacity: 1;
}

/* S11 — barcode-stroke bars */
.barcode-list {
  display: grid;
  gap: var(--space-3);
}
.bc-row {
  display: grid;
  gap: var(--space-2);
}
.bc-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: #e5dece;
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
}
.bc-top strong {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.bc-track {
  height: clamp(1.5rem, 3vw, 2rem);
  background: repeating-linear-gradient(90deg, rgba(244, 241, 234, 0.16) 0 2px, transparent 2px 7px);
}
.bc-fill {
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 7px);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 50%, transparent));
  transition: width 1050ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .bc-fill {
  width: var(--w);
}

/* S12 — ten tool tiles, AI ones lit */
.glyphs {
  display: grid;
  gap: var(--space-5);
}
.glyph-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.5rem, 1.5vw, 0.9rem);
}
.glyph {
  aspect-ratio: 1;
  border-radius: 12px;
  background: rgba(244, 241, 234, 0.08);
  transform: scale(0);
  transition: transform 500ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.glyph.lit {
  background: var(--accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 50%, transparent);
}
.report-slide.is-active .glyph {
  transform: scale(1);
}
.glyph-cap {
  margin: 0;
  color: #cfc8ba;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
}
.glyph-cap strong {
  color: var(--pink);
  font-size: 1.3em;
}

/* S13 — three proportional circles */
.circles3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.4rem);
  min-height: clamp(200px, 36vh, 300px);
}
.c3 {
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  padding: 0.4rem;
  text-align: center;
  background: var(--accent);
  color: var(--ink);
  transform: scale(0);
  transition: transform 700ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .c3 {
  transform: scale(1);
}
.c3-val {
  font: 800 clamp(1.3rem, 3vw, 2.2rem) / 1 var(--display);
  letter-spacing: -0.02em;
}
.c3-cat {
  font-size: clamp(0.6rem, 0.85vw, 0.74rem);
  font-weight: 600;
  max-width: 11ch;
  line-height: 1.2;
}

/* S14 — paired comparison columns */
.duo-cols {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1.5rem, 6vw, 3.5rem);
  height: clamp(220px, 40vh, 320px);
}
.duo-slot {
  flex: 0 1 clamp(80px, 16vw, 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  height: 100%;
}
.duo-val {
  color: var(--accent);
  font: 800 clamp(1.2rem, 2.4vw, 1.9rem) / 1 var(--display);
  letter-spacing: -0.02em;
}
.duo-col {
  width: 100%;
  height: 0;
  border-radius: 8px 8px 0 0;
  background:
    radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.4px) 0 0 / 6px 6px,
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 72%, white), var(--accent));
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: height 1000ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .duo-col {
  height: var(--h);
}
.duo-cap {
  max-width: 14ch;
  text-align: center;
  color: #cfc8ba;
  font-size: clamp(0.72rem, 1vw, 0.88rem);
  line-height: 1.3;
}

/* S15 — donut */
.donut-svg {
  width: 100%;
  max-width: 300px;
  height: auto;
  transform: rotate(-90deg);
  display: block;
  margin: 0 auto;
}
.donut-seg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 26;
  opacity: 0;
  transition: opacity 600ms ease;
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .donut-seg {
  opacity: 1;
}
.donut-c1 {
  fill: var(--text);
  font: 800 26px var(--display);
  transform: rotate(90deg);
  transform-origin: 100px 100px;
}
.donut-c2 {
  fill: var(--muted);
  font: 600 12px var(--display);
  transform: rotate(90deg);
  transform-origin: 100px 100px;
}

/* S16 — trust ladder */
.ladder {
  display: flex;
  align-items: flex-end;
  gap: clamp(0.5rem, 2vw, 1.2rem);
  height: clamp(210px, 38vh, 300px);
}
.ladder-slot {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-1);
  height: 100%;
}
.ladder-bar {
  position: relative;
  width: 100%;
  height: 0;
  border-radius: 6px 6px 0 0;
  background: repeating-linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 78%, white) 0 8px,
    var(--accent) 8px 16px
  );
  transition: height 1000ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .ladder-bar {
  height: var(--h);
}
.ladder-dot {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent);
}
.ladder-val {
  color: var(--accent);
  font-weight: 800;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
}
.ladder-cap {
  max-width: 10ch;
  text-align: center;
  color: #cfc8ba;
  font-size: clamp(0.6rem, 0.82vw, 0.72rem);
  line-height: 1.2;
}

/* S17 — glowing squircle blobs */
.blob-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.6rem, 2vw, 1.6rem);
  min-height: clamp(200px, 34vh, 280px);
}
.blob-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}
.blob-val {
  color: var(--accent);
  font: 800 clamp(1.1rem, 2vw, 1.6rem) / 1 var(--display);
}
.blob {
  width: clamp(80px, 14vw, 130px);
  aspect-ratio: 1;
  border-radius: 38%;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 55%, black) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 60%, black) 100%);
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 55%, transparent);
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 600ms ease,
    transform 800ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .blob {
  opacity: 1;
  transform: scale(1);
}
.blob-cap {
  max-width: 13ch;
  color: #cfc8ba;
  font-size: clamp(0.68rem, 0.92vw, 0.82rem);
  line-height: 1.3;
}

/* S18 — offset color-block index list */
.index-list {
  display: grid;
  gap: var(--space-2);
}
.index-row {
  width: 0;
  margin-left: var(--indent);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: clamp(2.1rem, 4.5vw, 2.9rem);
  padding: 0 1rem;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 62%, white));
  color: var(--ink);
  overflow: hidden;
  transition: width 950ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .index-row {
  width: var(--w);
}
.index-num {
  font: 800 clamp(1rem, 1.7vw, 1.35rem) / 1 var(--display);
  letter-spacing: -0.02em;
}
.index-cat {
  font-weight: 700;
  font-size: clamp(0.74rem, 1vw, 0.9rem);
  white-space: nowrap;
}

/* S19 — diverging butterfly bars */
.bfly {
  display: grid;
  gap: var(--space-4);
}
.bfly-head {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: clamp(0.74rem, 1vw, 0.9rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.bfly-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.6rem;
}
.bfly-side {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bfly-side.left {
  justify-content: flex-end;
}
.bfly-bar {
  height: clamp(1.3rem, 2.6vw, 1.8rem);
  width: 0;
  border-radius: 5px;
  background: var(--accent);
  transition: width 950ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .bfly-bar {
  width: var(--w);
}
.bfly-num {
  font-weight: 800;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  font-variant-numeric: tabular-nums;
  color: #e7dfd0;
}
.bfly-role {
  min-width: clamp(5.5rem, 12vw, 9rem);
  text-align: center;
  font-weight: 700;
  font-size: clamp(0.74rem, 1vw, 0.9rem);
  color: #e7dfd0;
}

/* S20 — pill bars with ghost comparison */
.pill-list {
  display: grid;
  gap: var(--space-4);
}
.pill-row {
  display: grid;
  gap: var(--space-2);
}
.pill-cap {
  font-weight: 700;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  color: #e5dece;
}
.pill-track {
  position: relative;
  height: clamp(2.2rem, 4.5vw, 3rem);
}
.pill-ghost {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(244, 241, 234, 0.08);
}
.pill-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, white));
  transition: width 1000ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .pill-fill {
  width: var(--w);
}
.pill-fill span {
  font: 800 clamp(0.95rem, 1.6vw, 1.3rem) / 1 var(--display);
  color: var(--ink);
}

/* S21 — radial score needles */
.needle-row {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 5vw, 3rem);
  flex-wrap: wrap;
}
.needle-cell {
  display: grid;
  justify-items: center;
  gap: var(--space-1);
}
.needle-svg {
  width: clamp(150px, 22vw, 210px);
  height: auto;
  overflow: visible;
}
.needle-track {
  fill: none;
  stroke: rgba(244, 241, 234, 0.12);
  stroke-width: 12;
  stroke-linecap: round;
}
.needle-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 12;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 55%, transparent));
  stroke-dashoffset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .needle-fill {
  opacity: 1;
}
.needle {
  stroke: var(--text);
  stroke-width: 3;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 100px 110px;
  transition: transform 1000ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .needle {
  transform: rotate(var(--ang));
}
.needle-hub {
  fill: var(--text);
}
.needle-val {
  font: 800 clamp(1.6rem, 3.2vw, 2.4rem) / 1 var(--display);
  color: var(--accent);
  letter-spacing: -0.02em;
}
.needle-val small {
  font-size: 0.45em;
  color: var(--muted);
  font-weight: 600;
}
.needle-cap {
  max-width: 14ch;
  text-align: center;
  color: #cfc8ba;
  font-size: clamp(0.72rem, 1vw, 0.86rem);
  line-height: 1.3;
}

/* S22 — spheres orbiting on rings */
.orbit {
  position: relative;
  width: 100%;
  aspect-ratio: 1.3 / 1;
  max-height: clamp(220px, 38vh, 320px);
  margin-bottom: var(--space-4);
}
.orbit-ring {
  position: absolute;
  top: 46%;
  left: 18%;
  border-radius: 50%;
  border: 1px dashed rgba(244, 241, 234, 0.16);
  transform: translate(-50%, -50%);
}
.orbit-ring.r1 {
  width: 46%;
  aspect-ratio: 1;
}
.orbit-ring.r2 {
  width: 78%;
  aspect-ratio: 1;
}
.orbit-node {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--sz);
  height: var(--sz);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--accent) 30%, white), var(--accent) 72%);
  box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 55%, transparent);
  transition: transform 700ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .orbit-node {
  transform: translate(-50%, -50%) scale(1);
}
.orbit-node span {
  font: 800 clamp(0.9rem, 1.6vw, 1.3rem) / 1 var(--display);
  color: #fff;
}

/* S23 — half-gauge */
.halfgauge {
  display: grid;
  justify-items: center;
  position: relative;
  min-height: clamp(200px, 34vh, 280px);
  align-content: center;
}
.hg-svg {
  width: clamp(220px, 40vw, 340px);
  height: auto;
  overflow: visible;
}
.hg-track {
  fill: none;
  stroke: rgba(244, 241, 234, 0.12);
  stroke-width: 16;
  stroke-linecap: round;
}
.hg-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 16;
  stroke-linecap: round;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 60%, transparent)) blur(0.2px);
  opacity: 0;
  transition: opacity 800ms ease;
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .hg-fill {
  opacity: 1;
}
.hg-num {
  margin-top: -2.6rem;
}
.hg-num .count-up {
  font: 800 clamp(2.8rem, 6vw, 4.4rem) / 1 var(--display);
  letter-spacing: -0.03em;
  color: var(--accent);
}
.hg-cap {
  margin: var(--space-2) 0 0;
  max-width: 22ch;
  text-align: center;
  color: var(--muted);
  font-size: clamp(0.82rem, 1.2vw, 1rem);
  line-height: 1.4;
}

/* S24 — floating columns with value tags */
.float-cols {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1.5rem, 6vw, 4rem);
  height: clamp(220px, 40vh, 320px);
  padding-bottom: 1.5rem;
}
.float-cols::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.5rem;
  border-bottom: 2px dashed rgba(244, 241, 234, 0.22);
}
.float-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  height: 100%;
}
.float-tag {
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font: 800 clamp(0.9rem, 1.6vw, 1.25rem) / 1 var(--display);
  white-space: nowrap;
}
.float-arrow {
  font-weight: 700;
}
.float-col {
  width: clamp(70px, 14vw, 120px);
  height: 0;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 68%, white), var(--accent));
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: height 1000ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .float-col {
  height: var(--h);
}
.float-cap {
  max-width: 16ch;
  text-align: center;
  color: #cfc8ba;
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  line-height: 1.3;
}

/* S25 — head-to-head colliding bars */
.clash {
  display: grid;
  gap: var(--space-3);
}
.clash-track {
  position: relative;
  display: grid;
  gap: 0.6rem;
}
.clash-track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  bottom: -4px;
  border-left: 2px dashed rgba(244, 241, 234, 0.3);
}
.clash-bar {
  width: 0;
  height: clamp(2.4rem, 5vw, 3.4rem);
  display: flex;
  align-items: center;
  color: var(--ink);
  background: var(--accent);
  transition: width 1000ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.clash-bar span {
  font: 800 clamp(1rem, 1.8vw, 1.5rem) / 1 var(--display);
}
.cl-left {
  justify-self: start;
  justify-content: flex-end;
  padding-right: 0.7rem;
  border-radius: 0 6px 6px 0;
}
.cl-right {
  justify-self: end;
  justify-content: flex-start;
  padding-left: 0.7rem;
  border-radius: 6px 0 0 6px;
}
.report-slide.is-active .clash-bar {
  width: var(--w);
}
.clash-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
  font-size: clamp(0.72rem, 1vw, 0.86rem);
}
.clash-labels span {
  max-width: 45%;
}
.clash-labels span:last-child {
  text-align: right;
}

/* S26 — interlocking overlapping circles */
.venn {
  position: relative;
  height: clamp(220px, 38vh, 300px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.venn-circle {
  position: absolute;
  top: 50%;
  width: clamp(140px, 26vw, 200px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 40% 38%, color-mix(in srgb, var(--accent) 30%, white), var(--accent) 74%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateY(-50%) scale(0.6);
  transition:
    opacity 600ms ease,
    transform 800ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .venn-circle {
  opacity: 0.92;
  transform: translateY(-50%) scale(1);
}
.vc-a {
  left: 50%;
  margin-left: clamp(-180px, -22vw, -150px);
}
.vc-b {
  left: 50%;
  margin-left: clamp(-30px, -4vw, -50px);
}
.venn-val {
  font: 800 clamp(1.4rem, 2.6vw, 2rem) / 1 var(--display);
  color: #fff;
  mix-blend-mode: normal;
}

/* S27 — big number + coin-stack secondary */
.bigsec {
  display: grid;
  gap: var(--space-5);
}
.bigsec-main small {
  display: block;
  margin-top: var(--space-2);
  max-width: 24ch;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.3vw, 1.1rem);
  line-height: 1.4;
}
.bigsec-sub {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.coins {
  display: grid;
  gap: 3px;
}
.coins span {
  display: block;
  width: 56px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--orange) 70%, white), var(--orange));
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 400ms ease,
    transform 500ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .coins span {
  opacity: 1;
  transform: translateY(0);
}
.bigsec-text strong {
  display: block;
  font: 800 clamp(1.8rem, 3.6vw, 2.8rem) / 1 var(--display);
  letter-spacing: -0.02em;
  color: var(--orange);
}
.bigsec-text span {
  color: #cfc8ba;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  max-width: 22ch;
  display: inline-block;
  line-height: 1.35;
}

/* S28 — two metric tag blocks */
.tags2 {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.tag-block {
  flex: 1;
  min-width: 9rem;
  display: grid;
  gap: var(--space-2);
  padding: clamp(1rem, 3vw, 1.8rem);
  border-radius: 18px;
  background: var(--accent);
  color: var(--ink);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 500ms ease,
    transform 600ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .tag-block {
  opacity: 1;
  transform: translateY(0);
}
.tag-val {
  font: 800 clamp(2.6rem, 6vw, 4.4rem) / 0.9 var(--display);
  letter-spacing: -0.03em;
}
.tag-val small {
  font-size: 0.4em;
  font-weight: 700;
}
.tag-cap {
  font-weight: 700;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  line-height: 1.3;
}

/* S29 — rising stream/area */
.stream-wrap {
  display: grid;
  gap: var(--space-3);
}
.stream-svg {
  width: 100%;
  height: clamp(160px, 28vh, 220px);
  overflow: visible;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1100ms var(--ease) 150ms;
}
.report-slide.is-active .stream-svg {
  transform: scaleX(1);
}
.stream-area {
  fill: var(--accent);
  opacity: 0.32;
}
.stream-area.a1 {
  opacity: 0.5;
}
.stream-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.stream-labels {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  text-align: center;
}
.stream-labels strong {
  display: block;
  font: 800 clamp(1.4rem, 2.8vw, 2.2rem) / 1 var(--display);
  letter-spacing: -0.02em;
}
.stream-labels span {
  color: #cfc8ba;
  font-size: clamp(0.72rem, 1vw, 0.86rem);
  max-width: 18ch;
  display: inline-block;
  line-height: 1.3;
}

/* S30 — giant grainy-gradient headline number */
.giant {
  display: grid;
  align-content: center;
  min-height: clamp(220px, 40vh, 340px);
}
.giant-num {
  font: var(--w-black) clamp(4.5rem, 14vw, 9.5rem) / 0.9 var(--display);
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--pink), var(--orange) 55%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.giant-cap {
  margin: var(--space-3) 0 0;
  max-width: 30ch;
  color: #d9d2c5;
  font-weight: 600;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  line-height: 1.35;
}

/* S31 — dumbbell plot */
.dumbbell {
  display: grid;
  gap: var(--space-5);
}
.db-row {
  display: grid;
  gap: var(--space-3);
}
.db-label {
  font-weight: 700;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  color: #e5dece;
}
.db-track {
  position: relative;
  height: 22px;
  margin: 1.4rem 0 0.2rem;
  background: rgba(244, 241, 234, 0.1);
  border-radius: 999px;
}
.db-line {
  position: absolute;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .db-line {
  transform: translateY(-50%) scaleX(1);
}
.db-dot {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 600ms var(--ease);
  transition-delay: calc(var(--delay, 0ms) + 350ms);
}
.report-slide.is-active .db-dot {
  transform: translate(-50%, -50%) scale(1);
}
.db-old {
  background: var(--panel);
  border: 3px solid var(--accent);
}
.db-new {
  background: var(--accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 60%, transparent);
}
.db-dot em {
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--accent);
}
.db-axis {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: clamp(0.7rem, 1vw, 0.84rem);
  font-weight: 600;
}

/* S32 — 100-dot grid */
.dotgrid100 {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
}
.dg100 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: clamp(4px, 1vw, 8px);
  width: 100%;
  max-width: 360px;
}
.dg-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(244, 241, 234, 0.1);
  transform: scale(0);
  transition: transform 350ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.dg-cell.lit {
  background: var(--pink);
  box-shadow: 0 0 8px color-mix(in srgb, var(--pink) 50%, transparent);
}
.report-slide.is-active .dg-cell {
  transform: scale(1);
}
.dg100-cap {
  margin: 0;
  color: #cfc8ba;
  font-size: clamp(0.9rem, 1.4vw, 1.15rem);
}
.dg100-cap strong {
  color: var(--pink);
  font-size: 1.3em;
}

/* S33 — vertical stacked tower */
.tower-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(1rem, 4vw, 2.5rem);
}
.tower {
  display: flex;
  flex-direction: column-reverse;
  width: clamp(64px, 14vw, 100px);
  height: clamp(220px, 42vh, 340px);
  border-radius: 8px;
  overflow: hidden;
}
.tower-seg {
  height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--accent);
  color: var(--ink);
  font: 800 clamp(0.66rem, 0.95vw, 0.8rem) / 1 var(--display);
  white-space: nowrap;
  transition: height 1000ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .tower-seg {
  height: var(--h);
}

/* ===== Uniform mountain charts ===== */
.mtn-wrap {
  width: 100%;
}
.mtn-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.mtn-layer {
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: bottom;
  transition: transform 1100ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .mtn-layer {
  transform: scaleY(1);
}
.mtn-val {
  font: 800 15px var(--display);
  letter-spacing: -0.01em;
  paint-order: stroke;
  stroke: rgba(8, 8, 11, 0.65);
  stroke-width: 4px;
  opacity: 0;
  transition: opacity 500ms ease;
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .mtn-val {
  opacity: 1;
}
.mtn-axis {
  display: flex;
  justify-content: space-between;
  margin-top: calc(var(--space-2) * -1);
  color: var(--muted);
  font-weight: 700;
  font-size: clamp(0.72rem, 1vw, 0.86rem);
}
.mtn-legend {
  margin-top: var(--space-2);
}
.mtn-hero {
  position: relative;
}
.mtn-hero-num {
  position: absolute;
  top: 0;
  left: 1%;
  display: grid;
  gap: var(--space-2);
}
.mtn-hero-num .count-up {
  font: var(--w-black) var(--fs-hero-num) / 1 var(--display);
  letter-spacing: -0.03em;
  color: var(--magenta);
  text-shadow: var(--glow-magenta);
}
.mtn-hero-num small {
  max-width: 22ch;
  color: var(--muted);
  font-weight: 500;
  font-size: clamp(0.85rem, 1.25vw, 1.05rem);
  line-height: 1.4;
}

/* ===== Gradient bar system =====
   Label-above layout: every row has the same structure, so labels and values
   are always the same size and alignment regardless of bar length. */
.gbars {
  display: grid;
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
}
.gbar-row {
  display: grid;
  gap: 0.5rem;
}
.gbar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.gbar-label {
  min-width: 0;
  color: #e7e0d2;
  font-size: var(--fs-label);
  font-weight: var(--w-medium);
  line-height: 1.25;
}
.gbar-val {
  flex: none;
  font: var(--w-black) var(--fs-num-md) / 1 var(--display);
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--bar-color);
}
.gbar-track {
  position: relative;
  width: 100%;
  height: clamp(0.9rem, 1.6vw, 1.25rem);
  background: rgba(244, 241, 234, 0.08);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.gbar-fill {
  height: 100%;
  width: 0;
  min-width: 0.3rem;
  border-radius: var(--r-pill);
  background-image: var(--grad);
  transition: width 1000ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .gbar-fill {
  width: var(--w);
}
.gbar-fill.blue {
  --grad: linear-gradient(90deg, #001aff, #898bff);
}
.gbar-fill.orange {
  --grad: linear-gradient(90deg, #f9461c, #ffab52);
}
.gbar-fill.pink {
  --grad: linear-gradient(90deg, #f4256d, #ff86b0);
}
/* "Secondary / remainder" tone — a muted brand periwinkle, not flat grey. */
.gbar-fill.grey {
  --grad: linear-gradient(90deg, #5054a0, #9d9fe0);
}

/* Single hero stat */
.stat-hero {
  display: grid;
  gap: var(--space-3);
  align-content: center;
}
.stat-hero .big-number {
  font-size: var(--fs-hero-num);
}
.stat-hero small {
  max-width: 24ch;
  color: #d9d2c5;
  font-weight: 500;
  font-size: clamp(0.9rem, 1.4vw, 1.15rem);
  line-height: 1.4;
}
.stat-hero-bar {
  margin-top: var(--space-2);
  max-width: 80%;
  height: 14px;
  border-radius: 999px;
  background: rgba(244, 241, 234, 0.08);
  overflow: hidden;
}
.stat-hero-bar .gbar-fill {
  height: 100%;
  min-width: 0;
  padding: 0;
  border-radius: 999px;
}

/* Two-state shift */
.stat-shift {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  flex-wrap: wrap;
}
.shift-end {
  display: grid;
  justify-items: start;
  gap: var(--space-1);
}
.shift-num {
  font: 800 clamp(3rem, 9vw, 6rem) / 1 var(--display);
  letter-spacing: -0.03em;
  color: var(--muted);
}
.shift-end.big .shift-num {
  color: var(--blue-ui);
  text-shadow: var(--glow-electric);
}
.shift-yr {
  color: var(--muted);
  font-weight: 700;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
}
.shift-arrow {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--blue-ui);
}
.shift-cap {
  flex-basis: 100%;
  margin: var(--space-2) 0 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
}

/* Full-width dot field: dots top, number + text below */
.dotfield-stage {
  display: grid;
  gap: var(--space-5);
}
.dotfield {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: clamp(3px, 0.6vw, 6px);
  width: 100%;
}
.df-dot {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent, rgba(244, 241, 234, 0.13));
  box-shadow: 0 0 5px color-mix(in srgb, var(--accent, transparent) 30%, transparent);
  transform: scale(0);
  transition: transform 360ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.df-dot.df-rem {
  background: rgba(244, 241, 234, 0.13);
  box-shadow: none;
}
.report-slide.is-active .df-dot {
  transform: scale(1);
}
.df-hero .big-number {
  font-size: var(--fs-hero-num);
}
.df-hero small {
  display: block;
  margin-top: var(--space-2);
  max-width: 28ch;
  color: var(--muted);
  font-weight: 500;
  font-size: clamp(0.85rem, 1.3vw, 1.05rem);
  line-height: 1.4;
}
.df-legend {
  margin-top: var(--space-3);
}

/* ===== Dot system (consistent atom, unique arrangement) ===== */
.dsys-dot {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent, rgba(244, 241, 234, 0.14));
  box-shadow: 0 0 6px color-mix(in srgb, var(--accent, transparent) 35%, transparent);
  transform: scale(0);
  transition: transform 420ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.report-slide.is-active .dsys-dot {
  transform: scale(1);
}
.dsys-dot.dot-rem {
  background: rgba(244, 241, 234, 0.13);
  box-shadow: none;
}
.dsys-dot.dot-void {
  visibility: hidden;
}
.dot-rem-swatch {
  background: rgba(244, 241, 234, 0.2);
}
.swatch-dot {
  border-radius: 50%;
}
.dot-form-label {
  color: #cfc8ba;
  font-weight: 700;
  font-size: clamp(0.72rem, 1vw, 0.88rem);
  text-align: center;
  line-height: 1.25;
}
.dot-scale-note {
  margin: var(--space-2) 0 0;
  color: var(--muted);
  font-size: clamp(0.66rem, 0.9vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* S1 — paired waffle towers */
.dot-towers {
  display: flex;
  justify-content: center;
  gap: clamp(1.6rem, 6vw, 3.5rem);
  margin-bottom: var(--space-4);
}
.dot-tower {
  display: grid;
  gap: var(--space-2);
  justify-items: center;
}
.dot-tower-grid {
  display: grid;
  grid-template-columns: repeat(5, clamp(11px, 2vw, 16px));
  gap: clamp(3px, 0.5vw, 5px);
}

/* S2 — tally rows */
.dot-tally {
  display: grid;
  gap: var(--space-4);
}
.tally-row {
  display: grid;
  gap: var(--space-2);
}
.tally-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  color: #e5dece;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
}
.tally-top strong {
  font: 800 clamp(0.95rem, 1.5vw, 1.25rem) / 1 var(--display);
  font-variant-numeric: tabular-nums;
}
.tally-dots {
  display: grid;
  grid-template-columns: repeat(auto-fill, clamp(13px, 1.9vw, 18px));
  gap: clamp(4px, 0.6vw, 6px);
}

/* S3 — single waffle square */
.dot-waffle {
  display: grid;
  grid-template-columns: repeat(10, clamp(13px, 2.4vw, 22px));
  gap: clamp(4px, 0.7vw, 7px);
  justify-content: start;
  margin-bottom: var(--space-4);
}

/* S4 — halftone disc + number */
.dot-halo {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 4vw, 2.6rem);
  flex-wrap: wrap;
}
.dot-halo-num {
  display: grid;
  gap: var(--space-2);
  min-width: 9rem;
  flex: 1;
}
.dot-halo-num .count-up {
  font: var(--w-black) var(--fs-hero-num) / 1 var(--display);
  letter-spacing: -0.03em;
  color: var(--magenta);
  text-shadow: var(--glow-magenta);
}
.dot-halo-num small {
  max-width: 18ch;
  color: var(--muted);
  font-size: clamp(0.85rem, 1.25vw, 1.05rem);
  line-height: 1.4;
}
.dot-halo-disc {
  display: grid;
  grid-template-columns: repeat(var(--cols), clamp(10px, 1.6vw, 15px));
  gap: clamp(3px, 0.5vw, 5px);
}

/* S5 — bottom-aligned dot columns */
.dot-cols {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(0.6rem, 2vw, 1.4rem);
}
.dot-col {
  flex: 1;
  display: grid;
  gap: var(--space-2);
  justify-items: center;
}
.dot-col-val {
  font: 800 clamp(0.95rem, 1.5vw, 1.25rem) / 1 var(--display);
  font-variant-numeric: tabular-nums;
}
.dot-col-grid {
  display: grid;
  grid-template-columns: repeat(2, clamp(11px, 1.7vw, 15px));
  gap: clamp(3px, 0.5vw, 5px);
  align-content: end;
}
.dot-col .dot-form-label {
  max-width: 12ch;
  min-height: 3.9em;
  align-content: start;
}

.site-chrome {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  transform: translateY(-160%);
  pointer-events: auto;
  background: var(--text);
  color: var(--bg);
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.progress-controls {
  position: absolute;
  top: clamp(0.8rem, 2vw, 1.5rem);
  left: clamp(0.8rem, 2vw, 1.5rem);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  pointer-events: auto;
}

.progress-pill {
  display: flex;
  gap: 0.25rem;
  align-items: baseline;
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.76);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  padding: 0.48rem 0.75rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 850;
}

.progress-divider,
#totalSlides {
  color: var(--muted);
}

.nav-buttons button,
.top-button {
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.76);
  color: var(--text);
  border-radius: 999px;
  padding: 0.46rem 0.68rem;
  cursor: pointer;
}

.top-button[hidden] {
  display: none;
}

.nav-buttons button:hover,
.top-button:hover {
  border-color: rgba(137, 139, 255, 0.55);
}

.nav-buttons button:disabled,
.top-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.nav-buttons {
  position: absolute;
  right: clamp(0.8rem, 2vw, 1.35rem);
  top: clamp(0.8rem, 2vw, 1.35rem);
  display: flex;
  gap: 0.45rem;
  pointer-events: auto;
}

.slide-dots {
  position: absolute;
  right: clamp(0.8rem, 1.8vw, 1.2rem);
  top: 50%;
  display: grid;
  gap: 0.28rem;
  transform: translateY(-50%);
  pointer-events: auto;
}

.slide-dot {
  width: 0.44rem;
  height: 0.44rem;
  border: 0;
  background: rgba(214, 214, 214, 0.32);
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
}

.slide-dot.is-current {
  background: var(--lavender);
  box-shadow: var(--glow-lavender);
  transform: scale(1.22);
}

.noscript {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 20;
  background: var(--text);
  color: var(--bg);
  padding: 1rem;
  border-radius: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.error-state {
  max-width: 44rem;
}

.error-state code {
  color: var(--gold);
}

/* =================================================================
   COVER SLIDE — bold field-report opener
   ================================================================= */
.cover-slide,
.credits-slide {
  place-items: center;
}

.cover-card {
  grid-template-columns: 1fr;
  place-items: center;
  text-align: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  overflow: visible;
}

.cover-inner {
  display: grid;
  justify-items: center;
  gap: clamp(1rem, 2.6vh, 1.9rem);
  max-width: 64rem;
}

.cover-kicker {
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-weight: var(--w-bold);
  color: var(--ryze-lavendar-300);
  border: 1px solid rgba(202, 132, 249, 0.42);
  background: rgba(202, 132, 249, 0.08);
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-pill);
}

.cover-kicker-link {
  color: var(--ryze-lavendar-300);
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.cover-kicker-link:hover {
  color: #f3efe7;
  border-color: rgba(202, 132, 249, 0.6);
  background: rgba(202, 132, 249, 0.12);
}

/* Signature Ryze H1: Instrument Serif clipped to a vertical title-fade, scaled
   up. Two clean tones (cream over sky) read as bold without any 3D extrude;
   the glow is a single soft drop-shadow on the whole headline. */
.cover-title {
  margin: 0;
  display: grid;
  gap: 0.02em;
  font-family: var(--serif);
  font-weight: var(--w-medium);
  font-size: clamp(2.9rem, 10.5vw, 8.8rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  filter: drop-shadow(0 8px 34px rgba(137, 139, 255, 0.3));
}

.cover-title-line {
  display: block;
  padding-bottom: 0.12em;
  background: var(--grad-title-cream);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.cover-title-accent {
  background: var(--grad-title-sky);
  -webkit-background-clip: text;
  background-clip: text;
}

.cover-panic {
  margin: 0;
  max-width: 30ch;
  color: var(--text);
  font-family: var(--sans);
  font-weight: var(--w-semi);
  font-size: var(--fs-lead);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.cover-comfort {
  margin: 0;
  max-width: 56ch;
  color: #cbc4b6;
  font-size: var(--fs-body);
  font-weight: var(--w-regular);
  line-height: 1.55;
}

.cover-foot {
  display: grid;
  justify-items: center;
  gap: clamp(0.85rem, 1.8vh, 1.25rem);
  margin-top: clamp(0.3rem, 1vh, 0.8rem);
}

.cover-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-weight: var(--w-bold);
  font-size: var(--fs-body);
  letter-spacing: 0.01em;
  color: #ffffff;
  background: var(--grad-electric);
  border: 1px solid rgba(137, 139, 255, 0.6);
  border-radius: var(--r-pill);
  padding: 0.88rem 1.7rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--glow-electric);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.cover-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 52px rgba(0, 26, 255, 0.6), 0 0 150px rgba(0, 26, 255, 0.32);
}

.cover-cta-arrow {
  display: inline-block;
  animation: cta-bob 1.8s var(--ease) infinite;
}

@keyframes cta-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.cover-source {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: var(--fs-caption);
  line-height: 1.5;
}

.closing-card .cover-title {
  max-width: 15ch;
  font-size: clamp(2.4rem, 6.8vw, 5.85rem);
}

.closing-card .cover-inner {
  gap: clamp(0.7rem, 1.7vh, 1.15rem);
}

.closing-card .cover-panic {
  max-width: 42ch;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

/* Cover entrance — staggered rise, replayed via .is-active. */
.cover-kicker,
.cover-title-line,
.cover-panic,
.cover-comfort,
.cover-foot {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.cover-slide.is-active .cover-kicker { opacity: 1; transform: none; transition-delay: 0.05s; }
.cover-slide.is-active .cover-title-line:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.16s; }
.cover-slide.is-active .cover-title-line:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.28s; }
.cover-slide.is-active .cover-panic { opacity: 1; transform: none; transition-delay: 0.42s; }
.cover-slide.is-active .cover-comfort { opacity: 1; transform: none; transition-delay: 0.52s; }
.cover-slide.is-active .cover-foot { opacity: 1; transform: none; transition-delay: 0.62s; }

/* =================================================================
   CREDITS / SOURCES SLIDE
   ================================================================= */
.credits-card {
  grid-template-columns: 1fr;
  align-content: center;
  gap: clamp(1.1rem, 2.6vh, 1.9rem);
  padding: clamp(1.6rem, 3.5vw, 3.2rem);
}

.credits-inner {
  display: grid;
  align-content: center;
  gap: clamp(1.1rem, 2.4vh, 1.8rem);
  width: 100%;
}

.credits-head {
  display: grid;
  gap: clamp(0.4rem, 1vh, 0.7rem);
}

.credits-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: var(--w-medium);
  font-size: clamp(2.1rem, 4.8vw, 4.1rem);
  line-height: 1;
  letter-spacing: -0.015em;
  padding-bottom: 0.06em;
  background: var(--grad-title-sky);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.credits-intro {
  margin: 0;
  max-width: 64ch;
  color: #cbc4b6;
  font-size: var(--fs-body);
  line-height: 1.55;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: clamp(0.7rem, 1.4vw, 1rem);
}

.credit-card {
  display: grid;
  gap: 0.55rem;
  height: 100%;
  align-content: start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: rgba(244, 241, 234, 0.04);
  border-radius: var(--r-md);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.3s var(--ease);
  transition-delay: var(--delay, 0ms), var(--delay, 0ms), 0s;
}

.credits-slide.is-active .credit-card {
  opacity: 1;
  transform: none;
}

.credit-card:hover {
  border-color: rgba(137, 139, 255, 0.5);
}

.credit-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.credit-name {
  margin: 0;
  font-family: var(--sans);
  font-weight: var(--w-bold);
  font-size: var(--fs-num-sm);
  line-height: 1.15;
  color: var(--text);
}

.credit-sites {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
}

.credit-link {
  color: var(--ryze-blue-300);
  text-decoration: none;
  font-size: var(--fs-caption);
  line-height: 1.4;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.credit-link:hover {
  color: var(--text);
  border-bottom-color: currentColor;
}

.credit-site {
  color: #cfc8ba;
}

.credit-reports {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.credits-note {
  margin: 0;
  max-width: 72ch;
  color: #9a9384;
  font-size: var(--fs-caption);
  font-style: italic;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .slide-card {
    width: 100%;
    min-width: 0;
    min-height: auto;
    height: auto;
    max-height: none;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: clamp(1.1rem, 4vw, 1.6rem);
  }

  .report-slide {
    padding-top: clamp(4.5rem, 10vh, 6rem);
    /* Tighter side gutter on mobile so content gets more width. */
    padding-inline: clamp(0.85rem, 3.5vw, 1.4rem);
  }

  .report-slide,
  .loading-slide {
    min-height: 100svh;
  }

  .copy-panel {
    align-content: end;
    padding-right: 0;
  }

  .slide-title {
    max-width: 11ch;
    font-size: clamp(2.55rem, 12.5vw, 5rem);
  }

  .panic {
    font-size: clamp(1.2rem, 5.2vw, 2rem);
  }

  .chart-panel {
    padding: 0;
  }

  .chart-stage {
    min-height: 38vh;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-inline: 0;
  }

  .slide-dots {
    display: none;
  }

  /* Cover fills the full mobile viewport, content vertically centred. */
  .cover-slide {
    place-items: stretch;
  }

  .cover-card {
    min-height: 100%;
    align-content: center;
  }
}

@media (max-width: 560px) {
  :root {
    --slide-pad-x: 1rem;
    --slide-pad-y: 1rem;
  }

  .nav-buttons button {
    padding-inline: 0.56rem;
    font-size: 0.78rem;
  }

  .source-chip,
  .source-micro,
  .caveat {
    border-radius: 7px;
  }

  .bar-topline,
  .stack-label {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
