:root {
  color-scheme: dark;
  --bg: #06100f;
  --bg-deep: #020706;
  --surface: #0c1816;
  --surface-soft: #12211e;
  --paper: #efe9dd;
  --paper-muted: #bcb8ae;
  --ink: #17211f;
  --ink-muted: #59615e;
  --line: rgb(239 233 221 / 15%);
  --line-dark: rgb(23 33 31 / 15%);
  --mint: #73dec8;
  --mint-soft: #b8eadf;
  --coral: #ff826e;
  --blue: #68a9ff;
  --gold: #d8b56f;
  --magenta: #d85f9b;
  --shadow: 0 30px 90px rgb(0 0 0 / 35%);
  --gutter: clamp(24px, 5vw, 84px);
  --masthead-height: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  background: var(--bg-deep);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--paper);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

a {
  color: inherit;
}

.report {
  position: relative;
}

.slide {
  position: relative;
  display: grid;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 650px;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background:
    radial-gradient(circle at 80% 15%, rgb(115 222 200 / 8%), transparent 30%),
    linear-gradient(145deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.slide.is-supplementary-locked {
  display: none;
}

.slide::after {
  position: absolute;
  inset: auto var(--gutter) 0;
  height: 1px;
  background: var(--line);
  content: "";
}

.slide-accent {
  background:
    radial-gradient(circle at 10% 90%, rgb(104 169 255 / 9%), transparent 32%),
    linear-gradient(135deg, #e9e3d7 0%, #f3eee4 48%, #e7e1d6 100%);
  color: var(--ink);
}

.slide-accent::after {
  background: var(--line-dark);
}

.slide-inner {
  position: relative;
  z-index: 2;
  width: min(1440px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: calc(var(--masthead-height) + 28px) var(--gutter) 54px;
}

.masthead {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--masthead-height);
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgb(239 233 221 / 9%);
  background: linear-gradient(180deg, rgb(2 7 6 / 80%), rgb(2 7 6 / 8%));
  backdrop-filter: blur(10px);
  transition: opacity 300ms ease;
}

.is-loading .masthead,
.is-loading .viewport-nav,
.is-loading .slide-dots {
  opacity: 0;
  pointer-events: none;
}

.masthead-title {
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.masthead p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

body.on-light .masthead {
  border-bottom-color: rgb(23 33 31 / 10%);
  background: linear-gradient(180deg, rgb(239 233 221 / 90%), rgb(239 233 221 / 18%));
}

body.on-light .masthead-title {
  color: var(--ink);
}

body.on-light .masthead p {
  color: var(--ink-muted);
}

body.on-light .slide-dots button {
  border-color: rgb(23 33 31 / 38%);
}

body.on-light .slide-dots button[aria-current="true"] {
  border-color: #236b5e;
  background: #236b5e;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.slide-accent .eyebrow {
  color: #236b5e;
}

h1,
h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 1000px;
  font-size: clamp(52px, 7.1vw, 108px);
  line-height: 0.92;
}

h2 {
  max-width: 760px;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.97;
}

p {
  color: var(--paper-muted);
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.65;
}

.slide-accent p {
  color: var(--ink-muted);
}

.lead {
  max-width: 680px;
  color: var(--paper);
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.48;
}

.slide-accent .lead {
  color: var(--ink);
}

.preloader {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 45%, rgb(115 222 200 / 10%), transparent 24%),
    var(--bg-deep);
  opacity: 1;
  transition: opacity 650ms ease, visibility 650ms ease;
}

body.report-ready .preloader {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.preloader-mark {
  position: relative;
  width: 74px;
  height: 74px;
  margin-bottom: 28px;
}

.preloader-mark span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 25px rgb(115 222 200 / 42%);
}

.preloader-mark span:nth-child(1) {
  transform: translate(-50%, -50%);
}

.preloader-mark span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(120deg) translateX(26px);
}

.preloader-mark span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(240deg) translateX(26px);
}

.preloader-kicker {
  margin: 0 0 10px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.preloader-status {
  margin: 0 0 24px;
  color: var(--paper);
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 24px;
}

.preloader-progress {
  width: min(420px, 80vw);
  height: 3px;
  overflow: hidden;
  background: rgb(239 233 221 / 14%);
}

.preloader-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--blue));
  transition: width 160ms ease-out;
}

.preloader-detail {
  margin: 12px 0 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.slide-hero {
  isolation: isolate;
  background:
    linear-gradient(90deg, rgb(2 7 6 / 98%) 0%, rgb(2 7 6 / 72%) 54%, transparent 84%),
    radial-gradient(circle at 78% 50%, #183a32 0%, #091613 32%, #020706 70%);
}

.slide-hero h1 {
  max-width: min(660px, 53vw);
  font-size: clamp(52px, 5.6vw, 86px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--masthead-height);
  pointer-events: none;
}

.hero-thesis {
  max-width: 760px;
  margin: 34px 0 0;
  color: #cbc7bd;
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.55;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 220px));
  gap: 28px;
  margin: 46px 0 0;
}

.hero-stats div,
.inline-findings div,
.large-findings div {
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.hero-stats dt,
.inline-findings dt,
.large-findings dt,
.scene-metrics dt {
  margin-bottom: 7px;
  color: var(--paper-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-stats dd,
.inline-findings dd,
.large-findings dd,
.scene-metrics dd {
  margin: 0;
  color: var(--paper);
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(22px, 2.1vw, 34px);
  font-variant-numeric: tabular-nums;
}

.scroll-cue {
  position: absolute;
  bottom: 42px;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #9e9b92;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.scroll-cue span {
  color: var(--mint);
  font-size: 18px;
}

.hero-cell-stage {
  position: absolute;
  z-index: 0;
  top: 14%;
  right: 0;
  bottom: 20%;
  width: min(70vw, 1080px);
  overflow: visible;
  pointer-events: auto;
}

.hero-cell-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
  mask-image: linear-gradient(90deg, transparent, #000 40%);
}

.hero-cell-stage canvas.is-dragging {
  cursor: grabbing;
}

.hero-time-control {
  position: absolute;
  right: clamp(42px, 6vw, 100px);
  bottom: -16px;
  width: min(330px, 42vw);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.hero-cell-stage:hover .hero-time-control,
.hero-cell-stage:focus-within .hero-time-control {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-time-control label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #b8b4ab;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-time-control output {
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.hero-time-control input {
  display: block;
  width: 100%;
  height: 18px;
  margin: 0;
  accent-color: var(--mint);
  cursor: ew-resize;
}

@media (hover: none) {
  .hero-time-control {
    opacity: 0.82;
    pointer-events: auto;
    transform: none;
  }
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(500px, 1.18fr);
  align-items: center;
  gap: clamp(54px, 7vw, 112px);
}

.copy-block p:not(.eyebrow) {
  max-width: 610px;
}

.copy-block .lead {
  margin: 30px 0 18px;
}

.formula {
  display: inline-block;
  margin: 0 3px;
  color: var(--mint-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  white-space: nowrap;
}

.annotation {
  margin-top: 28px;
  padding-left: 18px;
  border-left: 1px solid var(--mint);
  font-size: 13px;
}

.chart-layout {
  display: grid;
  grid-template-rows: auto minmax(300px, 1fr) auto;
  align-content: center;
  gap: 22px;
}

.chart-heading {
  display: grid;
  grid-template-columns: minmax(480px, 0.95fr) minmax(390px, 0.65fr);
  align-items: end;
  gap: 70px;
}

.chart-heading .lead {
  margin: 0 0 3px;
}

.chart-figure {
  min-width: 0;
  margin: 0;
}

.chart-figure-wide {
  width: 100%;
}

.chart {
  position: relative;
  width: 100%;
  height: min(52vh, 470px);
  min-height: 330px;
}

.chart-large {
  height: min(43vh, 410px);
  min-height: 290px;
}

.chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-readout {
  position: absolute;
  top: 0;
  right: 0;
  max-width: 72%;
  margin: 0;
  color: var(--paper);
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
  pointer-events: none;
}

.slide-accent .chart-readout {
  color: var(--ink);
}

.chart-figure figcaption {
  margin-top: 12px;
  color: var(--paper-muted);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.slide-accent .chart-figure figcaption {
  color: var(--ink-muted);
}

.chart .axis-line,
.chart .grid-line {
  stroke: rgb(239 233 221 / 16%);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.chart .reference-line {
  stroke: var(--gold);
  stroke-dasharray: 4 6;
  opacity: 0.55;
}

.slide-accent .chart .axis-line,
.slide-accent .chart .grid-line {
  stroke: rgb(23 33 31 / 16%);
}

.chart .grid-line {
  stroke-dasharray: 2 7;
}

.chart .axis-label,
.chart .tick-label,
.chart .series-label {
  fill: var(--paper-muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
}

.slide-accent .chart .axis-label,
.slide-accent .chart .tick-label,
.slide-accent .chart .series-label {
  fill: var(--ink-muted);
}

.chart .line-force,
.chart .line-primary {
  fill: none;
  stroke: var(--mint);
  stroke-width: 2.5;
}

.slide-accent .chart .line-force,
.slide-accent .chart .line-primary {
  stroke: #236b5e;
}

.chart .line-displacement,
.chart .line-secondary {
  fill: none;
  stroke: var(--coral);
  stroke-width: 2;
}

.chart .line-tertiary {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.7;
}

.chart .hover-rule {
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.35;
  pointer-events: none;
}

.chart .hover-point {
  stroke: var(--bg-deep);
  stroke-width: 2;
  pointer-events: none;
}

.slide-accent .chart .hover-point {
  stroke: #efe9dd;
}

.chart .interaction-layer {
  fill: transparent;
  cursor: crosshair;
}

.chart .plateau-band {
  fill: rgb(35 107 94 / 11%);
  stroke: rgb(35 107 94 / 35%);
  stroke-width: 1;
}

.chart .pattern-band {
  fill: rgb(216 181 111 / 22%);
}

.inline-findings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin: 0;
}

.slide-accent .inline-findings div {
  border-color: var(--line-dark);
}

.slide-accent .inline-findings dt {
  color: var(--ink-muted);
}

.slide-accent .inline-findings dd {
  color: var(--ink);
}

.series-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  color: var(--paper-muted);
  font-size: 11px;
}

.series-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--mint);
}

.swatch-displacement { background: var(--coral); }
.swatch-pattern { height: 8px; background: rgb(216 181 111 / 55%); }

.scene-slide {
  background:
    radial-gradient(circle at 65% 45%, rgb(24 58 50 / 65%), transparent 42%),
    var(--bg-deep);
}

.scene-stage {
  display: grid;
  grid-template-columns: minmax(330px, 0.72fr) minmax(600px, 1.35fr);
  align-items: center;
  gap: clamp(34px, 5vw, 80px);
  width: min(1540px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: calc(var(--masthead-height) + 20px) var(--gutter) 36px;
}

.scene-stage-reverse {
  grid-template-columns: minmax(600px, 1.35fr) minmax(330px, 0.72fr);
}

.scene-stage-reverse .scene-copy {
  grid-column: 2;
  grid-row: 1;
}

.scene-stage-reverse .viewer-frame {
  grid-column: 1;
  grid-row: 1;
}

.scene-copy {
  position: relative;
  z-index: 4;
}

.scene-copy h2 {
  font-size: clamp(42px, 4.3vw, 70px);
}

.scene-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin: 28px 0 0;
}

.scene-metrics {
  display: grid;
  gap: 16px;
  margin: 34px 0 0;
}

.scene-metrics div {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.scene-metrics [data-metric-help] {
  cursor: help;
}

.scene-metrics [data-metric-help] dt::after {
  display: inline-grid;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  place-items: center;
  border: 1px solid rgb(219 96 83 / 55%);
  border-radius: 50%;
  color: var(--coral);
  content: "i";
  font-family: var(--font-sans);
  font-size: 10px;
  font-style: normal;
  line-height: 1;
  vertical-align: 1px;
}

.scene-metrics [data-metric-help]::after {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, 80vw);
  padding: 13px 15px;
  border: 1px solid rgb(219 96 83 / 34%);
  background: rgb(15 16 20 / 96%);
  box-shadow: 0 14px 36px rgb(0 0 0 / 42%);
  color: #e6e0d5;
  content: attr(data-metric-help);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 420;
  letter-spacing: 0.01em;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.scene-metrics [data-metric-help]:hover::after,
.scene-metrics [data-metric-help]:focus::after {
  opacity: 1;
  transform: translateY(0);
}

.scene-metrics [data-metric-help]:focus-visible {
  outline: 1px solid rgb(219 96 83 / 65%);
  outline-offset: 4px;
}

.scene-metrics dt {
  margin: 0;
}

.scene-metrics dd {
  font-size: 22px;
  text-align: right;
}

.viewer-shell {
  position: relative;
  min-width: 0;
}

.viewer-shell .viewer-frame {
  width: 100%;
}

.viewer-frame {
  position: relative;
  height: min(78vh, 760px);
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgb(239 233 221 / 13%);
  border-radius: 2px;
  background: #030304;
  box-shadow: var(--shadow);
}

.viewer-frame canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.viewer-frame::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(115 222 200 / 5%);
  pointer-events: none;
  content: "";
}

.viewer-settings-toggle {
  position: absolute;
  z-index: 8;
  top: 16px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgb(239 233 221 / 16%);
  border-radius: 50%;
  background: rgb(2 7 6 / 70%);
  color: var(--paper-muted);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.viewer-settings-toggle svg {
  width: 17px;
  height: 17px;
  fill: currentcolor;
}

.viewer-settings-toggle:hover,
.viewer-settings-toggle:focus-visible,
.viewer-settings-toggle[aria-expanded="true"] {
  border-color: rgb(255 130 110 / 58%);
  background: rgb(54 22 20 / 88%);
  color: var(--paper);
}

.viewer-settings-toggle[aria-expanded="true"] { transform: rotate(22.5deg); }

.viewer-toolbar {
  position: absolute;
  z-index: 5;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 7px;
}

.viewer-frame[data-scene] .viewer-toolbar {
  left: 58px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.viewer-toolbar button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgb(239 233 221 / 16%);
  border-radius: 99px;
  background: rgb(2 7 6 / 70%);
  color: var(--paper-muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.viewer-toolbar button[aria-pressed="true"] {
  border-color: rgb(115 222 200 / 48%);
  color: var(--paper);
  background: rgb(18 42 37 / 84%);
}

.fiber-controls {
  position: absolute;
  z-index: 6;
  top: 60px;
  left: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
  width: min(430px, calc(100% - 32px));
  padding: 9px 12px 8px;
  border: 1px solid rgb(239 233 221 / 13%);
  border-radius: 2px;
  background: rgb(2 7 6 / 78%);
  color: var(--paper-muted);
  backdrop-filter: blur(10px);
}

.viewer-frame[data-scene] .fiber-controls {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.viewer-frame[data-scene][data-settings-open="true"] .viewer-toolbar,
.viewer-frame[data-scene][data-settings-open="true"] .fiber-controls {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.fiber-controls label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.fiber-controls label:nth-of-type(1) { grid-column: 1; grid-row: 1; }
.fiber-controls label:nth-of-type(2) { grid-column: 2; grid-row: 1; }

.fiber-controls output {
  color: var(--paper);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fiber-controls input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--mint);
}

.fiber-controls input[data-fiber-filter="signal"] { grid-column: 1; grid-row: 2; }
.fiber-controls input[data-fiber-filter="size"] { grid-column: 2; grid-row: 2; }

.fiber-filter-status {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 1px 0 0;
  color: rgb(239 233 221 / 48%);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.view-angle {
  position: absolute;
  z-index: 6;
  right: 18px;
  bottom: 43px;
  min-width: 220px;
  padding: 6px 9px;
  border: 1px solid rgb(239 233 221 / 13%);
  border-radius: 2px;
  background: rgb(2 7 6 / 78%);
  color: var(--paper);
  font: inherit;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  text-align: center;
  white-space: nowrap;
  cursor: text;
  pointer-events: auto;
  user-select: text;
  -webkit-user-select: text;
  backdrop-filter: blur(10px);
}

.view-presets {
  position: absolute;
  z-index: 7;
  top: 50%;
  right: calc(100% + 16px);
  display: flex;
  flex-direction: column;
  gap: 7px;
  transform: translateY(-50%);
}

.view-presets[hidden] {
  display: none;
}

.view-presets button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(239 233 221 / 24%);
  border-radius: 50%;
  background: rgb(2 7 6 / 78%);
  color: var(--paper-muted);
  font: inherit;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.view-presets button:hover {
  border-color: rgb(115 222 200 / 72%);
  background: rgb(18 42 37 / 92%);
  color: var(--paper);
}

.view-presets button[aria-pressed="true"] {
  border-color: var(--coral);
  background: rgb(255 130 110 / 20%);
  box-shadow: 0 0 0 0 rgb(255 130 110 / 42%);
  color: var(--paper);
  animation: view-preset-pulse 3.2s ease-in-out infinite;
}

@keyframes view-preset-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgb(255 130 110 / 38%); }
  50% { box-shadow: 0 0 0 9px rgb(255 130 110 / 0%); }
}

.traction-legend {
  position: absolute;
  z-index: 5;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  color: var(--paper-muted);
  font-size: 10px;
}

.traction-legend i {
  height: 7px;
  border: 1px solid rgb(239 233 221 / 14%);
  background: linear-gradient(90deg, #347de8, #d9dde2 49%, #ff6658);
}

.legend-pull { color: #8bb8ff; }
.legend-push { color: #ff9d93; text-align: right; }

.viewer-hint {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 18px;
  margin: 0;
  color: rgb(239 233 221 / 52%);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.interpretation-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: 80px;
}

.mechanism {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.mechanism-phase {
  text-align: center;
}

.phase-label {
  display: block;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phase-cell {
  position: relative;
  width: 100%;
  height: 90px;
  margin: 0 auto;
}

.phase-cell b {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82%;
  height: 42px;
  border: 1px solid rgb(23 33 31 / 34%);
  border-radius: 46% 54% 48% 52%;
  background: rgb(216 95 155 / 20%);
  transform: translate(-50%, -50%) rotate(-5deg);
}

.phase-cell i::before,
.phase-cell i::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  color: #236b5e;
  font-size: 32px;
  font-style: normal;
  transform: translateY(-52%);
}

.pull-left::before { left: 1%; content: "→"; }
.pull-left::after { left: 22%; content: "←"; }
.pull-right::before { right: 22%; content: "→"; }
.pull-right::after { right: 1%; content: "←"; }

.phase-center i::before { left: 25%; color: var(--coral); content: "←"; }
.phase-center i::after { right: 25%; color: var(--coral); content: "→"; }

.mechanism-phase p {
  margin: 12px 0 0;
  font-size: 11px;
}

.phase-arrow {
  color: rgb(23 33 31 / 35%);
  font-size: 25px;
}

.large-findings {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin: 0;
}

.large-findings div {
  border-color: var(--line-dark);
}

.large-findings dt { color: var(--ink-muted); }
.large-findings dd { color: var(--ink); font-size: clamp(30px, 3.5vw, 52px); }

.slide-closing {
  background:
    radial-gradient(circle at 12% 86%, rgb(216 95 155 / 10%), transparent 26%),
    radial-gradient(circle at 85% 20%, rgb(115 222 200 / 9%), transparent 28%),
    #030908;
}

.closing-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(500px, 1.1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 40px 90px;
}

.closing-heading .lead {
  margin-top: 30px;
}

.method-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.method-list li:first-child {
  border-top: 1px solid var(--line);
}

.method-list span {
  color: var(--mint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.method-list p {
  margin: 0;
  font-size: 14px;
}

.method-list strong {
  color: var(--paper);
  font-weight: 600;
}

.closing-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.closing-actions a {
  color: var(--paper-muted);
  font-size: 12px;
  text-decoration: none;
}

.closing-actions a:hover {
  color: var(--paper);
}

.closing-actions .primary-link {
  padding: 12px 18px;
  border-radius: 99px;
  background: var(--mint);
  color: var(--ink);
  font-weight: 650;
}

.closing-actions .primary-link:hover {
  color: var(--ink);
  background: var(--mint-soft);
}

.closing-note {
  position: absolute;
  right: var(--gutter);
  bottom: 22px;
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.viewport-nav {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: 42px auto 42px;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgb(239 233 221 / 15%);
  border-radius: 99px;
  background: rgb(2 7 6 / 78%);
  box-shadow: 0 15px 45px rgb(0 0 0 / 28%);
  backdrop-filter: blur(12px);
  transition: opacity 300ms ease;
}

.viewport-nav button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}

.viewport-nav button:hover:not(:disabled) {
  background: rgb(239 233 221 / 10%);
}

.viewport-nav button:disabled {
  color: rgb(239 233 221 / 23%);
  cursor: default;
}

.viewport-nav p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 5px;
  color: var(--paper-muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.viewport-nav i {
  display: block;
  width: 16px;
  height: 1px;
  background: rgb(239 233 221 / 24%);
}

.slide-dots {
  position: fixed;
  z-index: 90;
  top: 50%;
  left: 24px;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
  transition: opacity 300ms ease;
}

.slide-dots button {
  display: block;
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid rgb(239 233 221 / 35%);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.slide-dots button[aria-current="true"] {
  background: var(--mint);
  border-color: var(--mint);
  transform: scale(1.4);
}

.chart-tooltip {
  position: fixed;
  z-index: 250;
  min-width: 168px;
  max-width: 260px;
  padding: 11px 13px;
  border: 1px solid rgb(239 233 221 / 16%);
  background: rgb(2 7 6 / 92%);
  box-shadow: 0 18px 45px rgb(0 0 0 / 35%);
  color: var(--paper);
  font-size: 11px;
  line-height: 1.5;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.chart-tooltip strong {
  display: block;
  margin-bottom: 5px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chart-tooltip span {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--paper-muted);
}

.chart-tooltip b {
  color: var(--paper);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1000px) {
  :root {
    --gutter: clamp(26px, 6vw, 60px);
  }

  .split-layout,
  .chart-heading,
  .interpretation-layout,
  .closing-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .split-layout {
    grid-template-rows: auto 1fr;
    align-content: center;
  }

  .copy-block .lead,
  .copy-block p:not(.eyebrow) {
    max-width: 760px;
  }

  .chart {
    min-height: 270px;
  }

  .scene-stage,
  .scene-stage-reverse {
    grid-template-columns: minmax(270px, 0.75fr) minmax(440px, 1.25fr);
    gap: 30px;
  }

  .scene-stage-reverse .scene-copy,
  .scene-stage-reverse .viewer-frame {
    grid-column: auto;
    grid-row: auto;
  }

  .interpretation-layout {
    align-content: center;
  }

  .large-findings {
    grid-column: auto;
  }

  .closing-actions {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --masthead-height: 58px;
  }

  .slide {
    min-height: 620px;
  }

  .slide-inner {
    padding-top: calc(var(--masthead-height) + 22px);
    padding-bottom: 70px;
  }

  .masthead p,
  .slide-dots {
    display: none;
  }

  h1 {
    font-size: clamp(46px, 13vw, 74px);
  }

  h2 {
    font-size: clamp(36px, 9vw, 54px);
  }

  .hero-cell-stage {
    top: 12%;
    right: -28vw;
    bottom: auto;
    width: 104vw;
    height: 56vh;
    opacity: 0.5;
  }

  .hero-cell-stage canvas {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 54%);
    mask-image: linear-gradient(90deg, transparent, #000 54%);
  }

  .hero-time-control {
    right: 32vw;
    bottom: 4px;
    width: min(260px, 55vw);
  }

  .slide-hero h1 {
    max-width: none;
    font-size: clamp(46px, 13vw, 74px);
  }

  .hero-thesis {
    max-width: 90%;
    margin-top: 44px;
    font-size: 16px;
  }

  .hero-stats,
  .inline-findings,
  .large-findings {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .hero-stats {
    margin-top: 8px;
  }

  .hero-stats dd,
  .inline-findings dd,
  .large-findings dd {
    font-size: 20px;
  }

  .chart-layout {
    gap: 12px;
  }

  .chart-heading .lead {
    font-size: 15px;
  }

  .chart,
  .chart-large {
    height: 37vh;
    min-height: 240px;
  }

  .scene-stage,
  .scene-stage-reverse {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
    gap: 14px;
    padding-top: calc(var(--masthead-height) + 18px);
    padding-bottom: 58px;
    min-height: 0;
  }

  .scene-stage-reverse .scene-copy,
  .scene-stage-reverse .viewer-frame {
    grid-column: 1;
  }

  .scene-stage-reverse .scene-copy { grid-row: 1; }
  .scene-stage-reverse .viewer-frame { grid-row: 2; }

  .scene-copy h2 {
    font-size: 38px;
  }

  .scene-copy > p:not(.eyebrow) {
    display: none;
  }

  #rear-pull .scene-copy > p[data-preset-description] {
    display: block;
    max-width: none;
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.45;
  }

  .scene-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
  }

  .scene-metrics div {
    display: block;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }

  .scene-metrics dd {
    font-size: 17px;
    text-align: left;
  }

  .viewer-frame {
    height: 100%;
    min-height: 0;
  }

  .viewer-shell {
    height: 100%;
    min-height: 0;
  }

  .fiber-controls {
    top: 58px;
    right: 12px;
    left: 12px;
    width: auto;
    gap: 3px 10px;
    padding: 7px 9px 6px;
  }

  .fiber-controls label {
    font-size: 8px;
  }

  .traction-legend {
    right: 12px;
    bottom: 64px;
    left: 12px;
    gap: 6px;
    font-size: 8px;
  }

  .view-angle {
    right: 12px;
    bottom: 88px;
    min-width: 190px;
    padding: 5px 7px;
    font-size: 8px;
  }

  .view-presets {
    top: 138px;
    right: auto;
    left: 12px;
    bottom: auto;
    flex-direction: column;
    gap: 6px;
    transform: none;
  }

  .view-presets button {
    width: 28px;
    height: 28px;
    font-size: 9px;
  }

  .viewer-hint {
    display: none;
  }

  .mechanism {
    gap: 4px;
  }

  .phase-label {
    margin-bottom: 8px;
    font-size: 9px;
  }

  .phase-cell {
    height: 64px;
  }

  .mechanism-phase p {
    display: none;
  }

  .closing-layout {
    align-content: center;
  }

  .method-list li {
    padding: 11px 0;
  }

  .closing-actions {
    gap: 13px;
  }

  .closing-note {
    display: none;
  }

  .viewport-nav {
    right: 12px;
    bottom: 12px;
  }
}

@media (max-height: 740px) and (min-width: 761px) {
  :root {
    --masthead-height: 56px;
  }

  .slide-inner,
  .scene-stage {
    padding-top: calc(var(--masthead-height) + 14px);
    padding-bottom: 28px;
  }

  h1 { font-size: clamp(50px, 6.5vw, 82px); }
  h2 { font-size: clamp(38px, 4.5vw, 62px); }
  .hero-thesis { margin-top: 22px; }
  .hero-stats { margin-top: 26px; }
  .chart, .chart-large { height: 38vh; min-height: 250px; }
  .viewer-frame { height: 72vh; min-height: 430px; }
  .scene-copy > p:not(.eyebrow) { margin-top: 18px; }
  .scene-metrics { margin-top: 20px; gap: 10px; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .view-presets button[aria-pressed="true"] {
    animation-duration: 3.2s !important;
    animation-iteration-count: infinite !important;
  }
}

/* Persistent slide authoring layer */
.masthead-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

#edit-mode-toggle,
.editor-toolbar button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgb(239 233 221 / 24%);
  border-radius: 999px;
  background: rgb(5 14 13 / 68%);
  color: var(--paper);
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

#edit-mode-toggle:hover,
.editor-toolbar button:hover:not(:disabled) {
  border-color: var(--mint);
  background: rgb(18 33 30 / 92%);
}

#edit-mode-toggle[aria-pressed="true"] {
  border-color: var(--coral);
  background: var(--coral);
  color: var(--bg-deep);
}

body.on-light #edit-mode-toggle:not([aria-pressed="true"]) {
  border-color: rgb(23 33 31 / 25%);
  background: rgb(239 233 221 / 80%);
  color: var(--ink);
}

body.share-mode .masthead,
body.share-mode .viewer-settings-toggle,
body.share-mode .viewer-toolbar button,
body.share-mode .fiber-controls,
body.share-mode .view-angle,
body.share-mode .view-presets button,
body.share-mode .viewport-nav {
  backdrop-filter: none;
}

body.share-mode .view-presets button[aria-pressed="true"] {
  animation: none;
}

.editor-toolbar {
  position: fixed;
  z-index: 180;
  top: calc(var(--masthead-height) + 12px);
  right: 24px;
  left: 244px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  pointer-events: none;
}

.editor-toolbar[hidden] {
  display: none;
}

.editor-toolbar button,
.editor-toolbar span {
  pointer-events: auto;
}

.editor-toolbar button:disabled {
  opacity: 0.35;
  cursor: default;
}

#editor-status {
  max-width: 220px;
  margin-left: 7px;
  color: var(--paper-muted);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.report {
  transition: width 240ms ease, margin-left 240ms ease;
}

body.edit-mode .report {
  width: calc(100% - 232px);
  margin-left: 232px;
}

body.edit-mode .slide-dots {
  top: calc(var(--masthead-height) + 12px);
  bottom: 14px;
  left: 12px;
  display: block;
  width: 208px;
  padding: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgb(239 233 221 / 13%);
  border-radius: 16px;
  background: rgb(2 7 6 / 88%);
  box-shadow: 0 22px 60px rgb(0 0 0 / 34%);
  transform: none;
  backdrop-filter: blur(18px);
  scrollbar-color: rgb(239 233 221 / 24%) transparent;
  scrollbar-width: thin;
}

.editor-slide-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.editor-slide-item {
  position: relative;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.editor-slide-item[aria-current="true"] {
  border-color: var(--coral);
  background: rgb(255 130 110 / 11%);
  box-shadow: 0 0 0 1px rgb(255 130 110 / 18%);
}

.editor-slide-item.is-dragging {
  opacity: 0.42;
}

.editor-slide-item.is-drop-target {
  border-color: var(--mint);
  background: rgb(115 222 200 / 9%);
}

.slide-dots .editor-slide-select {
  display: block;
  width: 184px;
  height: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background: var(--surface);
  color: var(--paper);
  text-align: left;
  transform: none;
}

.slide-dots .editor-slide-select:hover {
  transform: none;
}

.editor-slide-preview {
  position: relative;
  display: block;
  width: 184px;
  overflow: hidden;
  background: var(--bg-deep);
  pointer-events: none;
}

.editor-preview-clone {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  pointer-events: none;
}

.editor-preview-clone *,
.editor-preview-canvas {
  pointer-events: none !important;
}

.editor-preview-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor-slide-label {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  padding: 8px 8px 9px;
  color: var(--paper-muted);
  font-size: 9px;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.editor-slide-label b {
  color: var(--coral);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.editor-slide-label span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.editor-slide-actions {
  position: absolute;
  top: 7px;
  right: 7px;
  display: flex;
  gap: 3px;
}

.slide-dots .editor-slide-actions button {
  display: grid;
  width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(239 233 221 / 23%);
  border-radius: 50%;
  background: rgb(2 7 6 / 82%);
  color: var(--paper);
  font-size: 13px;
  cursor: pointer;
  transform: none;
  backdrop-filter: blur(8px);
}

.slide-dots .editor-slide-actions button:hover:not(:disabled) {
  border-color: var(--mint);
  background: var(--surface-soft);
}

.slide-dots .editor-slide-actions button:disabled {
  opacity: 0.28;
  cursor: default;
}

body.edit-mode [data-editor-editable="true"] {
  pointer-events: auto;
  border-radius: 3px;
  outline: 1px dashed rgb(115 222 200 / 42%);
  outline-offset: 5px;
  cursor: text;
}

body.edit-mode [data-edit-key] {
  pointer-events: auto;
}

body.edit-mode [data-editor-editable="true"]:hover,
body.edit-mode [data-editor-editable="true"]:focus {
  outline-color: var(--mint);
  background: rgb(115 222 200 / 5%);
}

body.edit-mode .edit-selected {
  outline: 2px solid var(--coral) !important;
  outline-offset: 7px !important;
}

@media (max-width: 760px) {
  .hero-inner { padding-bottom: 38px; }
  body.edit-mode .report {
    width: calc(100% - 160px);
    margin-left: 160px;
  }

  body.edit-mode .slide-dots {
    display: block;
    width: 160px;
    padding: 5px;
  }

  .slide-dots .editor-slide-select,
  .editor-slide-preview {
    width: 144px;
  }

  .editor-toolbar {
    top: calc(var(--masthead-height) + 8px);
    right: 8px;
    left: auto;
    display: grid;
    width: 144px;
    gap: 5px;
  }

  .editor-toolbar button {
    width: 100%;
    min-height: 31px;
    padding: 0 8px;
    font-size: 9px;
  }

  #editor-status {
    max-width: 144px;
    margin: 2px 4px 0;
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  body.edit-mode .report {
    width: 100%;
    margin-left: 0;
  }

  body.edit-mode .slide-dots {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    height: 154px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .editor-slide-list {
    display: flex;
    width: max-content;
  }

  .editor-slide-item {
    flex: 0 0 152px;
  }

  body.edit-mode .viewport-nav {
    bottom: 172px;
  }

  body.edit-mode .masthead-title,
  body.edit-mode #editor-status {
    display: none;
  }
}

/* Main scientific narrative added after the initial report draft. */
.contractility-layout {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: center;
  gap: 14px;
}

.contractility-layout .chart-heading {
  grid-template-columns: minmax(430px, 0.95fr) minmax(340px, 0.65fr);
  gap: 46px;
}

.contractility-layout .chart-heading h2 { font-size: clamp(42px, 4vw, 62px); }

.contractility-visual {
  position: relative;
  min-width: 0;
  min-height: 0;
}

.contractility-figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
}

.contractility-figure .chart-large {
  height: 100%;
  min-height: 410px;
}

.contractility-scenes {
  position: absolute;
  z-index: 3;
  inset: 0 0 30px;
  pointer-events: none;
}

.contractility-scenes figure {
  position: absolute;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: clamp(185px, 16vw, 245px);
  height: clamp(145px, 19vh, 190px);
  margin: 0;
  pointer-events: auto;
}

.contractility-scenes figure:first-child { top: 46%; left: 7%; }
.contractility-scenes figure:last-child { top: 2%; right: 4%; }

.contractility-scenes figcaption {
  margin-top: -2px;
  color: var(--paper-muted);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.compact-viewer { width: 100%; height: 100%; min-height: 130px; box-shadow: none; }
.compact-viewer .fiber-controls,
.compact-viewer .view-angle,
.compact-viewer .viewer-hint,
.compact-viewer .traction-legend { display: none; }
.compact-viewer .viewer-settings-toggle { top: 8px; left: 8px; width: 30px; height: 30px; }
.compact-viewer .viewer-toolbar { top: 8px; left: 46px; }
.compact-viewer .viewer-toolbar button { min-height: 27px; padding: 0 9px; font-size: 9px; }

.inline-viewer {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.inline-viewer::after,
.inline-viewer .viewer-settings-toggle,
.inline-viewer .viewer-toolbar,
.inline-viewer .fiber-controls,
.inline-viewer .view-presets { display: none; }

.inline-viewer canvas { cursor: grab; }
.inline-viewer canvas:active { cursor: grabbing; }

.chart .line-inward,
.chart .line-outward,
.chart .line-net { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chart .line-inward { stroke: var(--blue); stroke-width: 2.7; }
.chart .line-outward { stroke: var(--coral); stroke-width: 2.7; }
.chart .line-net { stroke: var(--mint); stroke-width: 1.25; opacity: 0.78; }
.chart .zero-line { stroke: rgb(239 233 221 / 45%); stroke-width: 1.2; }
.chart .key-frame-line { stroke: rgb(255 130 110 / 30%); stroke-width: 1; stroke-dasharray: 3 6; }
.chart .facet-title { fill: var(--paper); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 11px; letter-spacing: 0.03em; }
.chart .quality-gate { stroke: var(--coral); stroke-width: 1; stroke-dasharray: 4 5; opacity: 0.72; }

.dipole-stage .viewer-frame { height: min(76vh, 740px); }
.dipole-legend {
  position: absolute;
  z-index: 5;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  color: var(--paper-muted);
  font-size: 10px;
}
.dipole-legend i { height: 7px; border: 1px solid rgb(239 233 221 / 14%); background: linear-gradient(90deg, #3e7ed6, #e0ebec 50%, #ef525c); }

.method-explainer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  align-content: center;
  gap: clamp(7px, 1.25vh, 14px);
}
.method-explainer .chart-heading h2 { font-size: clamp(36px, 3.55vw, 56px); }
.method-explainer .chart-heading .lead { font-size: clamp(12px, 1vw, 15px); line-height: 1.48; }
.method-main {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(500px, 1.28fr);
  min-height: 0;
  gap: clamp(34px, 4.5vw, 70px);
}
.method-stage-list {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  min-height: 0;
  border-bottom: 1px solid var(--line-dark);
}
.method-stage-list article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-content: center;
  gap: 12px;
  min-height: 0;
  padding: clamp(8px, 1.1vh, 13px) 4px;
  border-top: 1px solid var(--line-dark);
}
.method-stage-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgb(216 90 81 / 52%);
  border-radius: 50%;
  color: var(--coral);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}
.method-stage-list h3,
.method-loss-copy h3 { margin: 0; color: var(--ink); font-size: clamp(17px, 1.45vw, 22px); }
.method-stage-list p { margin: 3px 0 0; color: var(--ink-muted); font-size: clamp(10px, 0.86vw, 12px); line-height: 1.38; }
.method-stage-list .method-stage-parameter {
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(9px, 0.78vw, 11px);
  letter-spacing: -0.015em;
}
.method-loss-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  gap: clamp(5px, 1vh, 10px);
}
.method-loss-copy { display: grid; grid-template-columns: minmax(180px, 0.55fr) minmax(280px, 1fr); align-items: baseline; gap: 22px; }
.method-loss-copy p { margin: 0; color: var(--ink-muted); font-size: clamp(10px, 0.88vw, 12px); line-height: 1.42; }
.method-loss-figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.method-loss-figure .chart { height: 100%; min-height: 190px; }
.method-loss-figure .chart-readout { top: 5px; max-width: 66%; font-size: 10px; }
.method-loss-figure figcaption { margin-top: 3px; font-size: 9.5px; }
.chart .loss-regime-band { stroke-width: 0; }
.chart .loss-regime-band-1 { fill: rgb(216 90 81 / 7%); }
.chart .loss-regime-band-2 { fill: rgb(104 169 255 / 9%); }
.chart .loss-regime-band-3 { fill: rgb(35 107 94 / 8%); }
.chart .loss-regime-line { fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.chart .loss-regime-line-1 { stroke: var(--coral); }
.chart .loss-regime-line-2 { stroke: var(--blue); }
.chart .loss-regime-line-3 { stroke: #236b5e; }
.chart .loss-boundary { stroke: rgb(23 33 31 / 34%); stroke-width: 1; stroke-dasharray: 4 5; }
.chart .loss-reset { stroke: rgb(23 33 31 / 48%); stroke-width: 1.2; stroke-dasharray: 2 4; }
.chart .loss-regime-number { fill: var(--ink); font-size: 10px; font-weight: 600; }
.method-equation { margin: 0; padding: 10px 18px; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); color: var(--ink); font-family: "SFMono-Regular", Consolas, monospace; font-size: clamp(10px, 1vw, 14px); line-height: 1.5; text-align: center; }
.method-caption { margin: 0; color: var(--ink-muted); font-size: 12px; text-align: center; }

.parameter-layout { display: grid; grid-template-columns: minmax(350px, 0.72fr) minmax(620px, 1.28fr); align-items: center; gap: clamp(34px, 5vw, 76px); }
.parameter-copy h2 { font-size: clamp(42px, 4.2vw, 68px); }
.parameter-list { display: grid; gap: 9px; margin: 26px 0 0; }
.parameter-list div { display: grid; grid-template-columns: 118px 1fr; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.parameter-list dt { color: var(--paper-muted); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.parameter-list dd { font-size: 13px; line-height: 1.45; }
.parameter-figure .chart-large { height: min(60vh, 560px); min-height: 410px; }
.parameter-figure .chart-readout { top: -30px; }

.slide-divider {
  background:
    radial-gradient(circle at 50% 48%, rgb(255 130 110 / 8%), transparent 30%),
    var(--bg-deep);
}

.divider-inner {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.divider-inner h2 {
  max-width: 920px;
}

.divider-copy {
  max-width: 680px;
  margin: 28px 0 0;
}

.supplementary-reveal {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
  padding: 15px 20px 15px 24px;
  border: 1px solid rgb(255 130 110 / 48%);
  border-radius: 99px;
  background: rgb(255 130 110 / 8%);
  color: var(--paper);
  font: inherit;
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0.035em;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.supplementary-reveal i {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  place-items: center;
  background: var(--coral);
  color: #180b09;
  font-size: 14px;
  font-style: normal;
}

.supplementary-reveal:hover {
  border-color: var(--coral);
  background: rgb(255 130 110 / 14%);
  transform: translateY(-2px);
}

body.edit-mode .supplementary-reveal {
  pointer-events: none;
  opacity: 0.48;
}

@media (max-width: 1100px) {
  .parameter-layout { grid-template-columns: 1fr; align-content: center; gap: 18px; }
  .parameter-copy h2 { font-size: clamp(34px, 5vw, 52px); }
  .parameter-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parameter-figure .chart-large { height: 40vh; min-height: 300px; }
}

@media (max-width: 760px) {
  .contractility-layout { grid-template-rows: auto minmax(190px, 1fr); gap: 6px; }
  .contractility-layout .chart-heading { grid-template-columns: 1fr; gap: 8px; }
  .contractility-layout .chart-heading h2 { font-size: clamp(34px, 8vw, 46px); }
  .contractility-layout .chart-heading .lead { font-size: 13px; line-height: 1.45; }
  .contractility-figure .chart-large { height: 100%; min-height: 260px; }
  .contractility-scenes { display: none; }
  .compact-viewer .viewer-toolbar button:nth-child(-n+2) { display: none; }
  #mechanics .split-layout { gap: 8px; }
  #mechanics .copy-block h2 { font-size: 40px; }
  #mechanics .copy-block .lead { margin: 10px 0 7px; font-size: 14px; }
  #mechanics .copy-block p:not(.eyebrow, .lead) { font-size: 13px; line-height: 1.45; }
  #mechanics .annotation { display: none; }
  #mechanics .chart { height: 29vh; min-height: 185px; }
  #mechanics .chart-figure figcaption { margin-top: 5px; }
  .method-explainer { grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 6px; }
  .method-explainer .chart-heading { grid-template-columns: 1fr; gap: 7px; }
  .method-explainer .chart-heading h2 { font-size: 32px; }
  .method-explainer .chart-heading .lead { font-size: 12px; line-height: 1.4; }
  .method-main { grid-template-columns: minmax(145px, 0.64fr) minmax(0, 1.36fr); gap: 14px; }
  .method-stage-list article { grid-template-columns: 24px 1fr; gap: 7px; padding: 5px 0; }
  .method-stage-index { width: 21px; height: 21px; font-size: 8px; }
  .method-stage-list h3 { font-size: 14px; }
  .method-stage-list p:not(.method-stage-parameter) { display: none; }
  .method-stage-list .method-stage-parameter { font-size: 7.5px; line-height: 1.28; }
  .method-loss-copy { grid-template-columns: 1fr; gap: 2px; }
  .method-loss-copy h3 { font-size: 16px; }
  .method-loss-copy p { font-size: 8.5px; line-height: 1.3; }
  .method-loss-figure .chart { min-height: 150px; }
  .method-loss-figure .chart-readout { max-width: 68%; font-size: 7.5px; }
  .method-loss-figure figcaption { display: none; }
  .method-equation { padding: 8px; font-size: 8.5px; }
  .method-caption { font-size: 10px; }
  .parameter-layout { align-content: center; gap: 8px; }
  .parameter-copy h2 { font-size: 36px; }
  .parameter-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 14px; margin-top: 10px; }
  .parameter-list div { grid-template-columns: 76px 1fr; gap: 7px; padding-bottom: 4px; }
  .parameter-list dt { font-size: 8px; }
  .parameter-list dd { font-size: 9px; line-height: 1.25; }
  .parameter-figure .chart-large { height: 28vh; min-height: 180px; }
  .parameter-figure .chart-readout { top: -20px; max-width: 95%; font-size: 8px; }
  .parameter-figure figcaption { display: none; }
  .dipole-stage .viewer-frame { height: 100%; }
}

@media (max-width: 480px) {
  .parameter-list { grid-template-columns: 1fr; }
}
