:root {
  --ink: #151515;
  --muted: #62615c;
  --paper: #fff9ef;
  --paper-strong: #fff3d8;
  --cyan: #0ea5b7;
  --teal: #087f75;
  --coral: #ef5a3c;
  --pink: #d63b82;
  --yellow: #f6c445;
  --green: #5aa650;
  --violet: #6d5bd0;
  --line: rgba(21, 21, 21, 0.16);
  --shadow: 0 18px 50px rgba(21, 21, 21, 0.14);
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

a {
  color: inherit;
}

code {
  padding: 0.08rem 0.28rem;
  border: 1px solid rgba(21, 21, 21, 0.13);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
  font-family: var(--mono);
  font-size: 0.92em;
}

.site-shell {
  min-height: 100vh;
  overflow: clip;
}

.topbar {
  position: fixed;
  inset: 18px 22px auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(21, 21, 21, 0.18);
  border-radius: 8px;
  background: rgba(255, 249, 239, 0.88);
  box-shadow: 0 10px 30px rgba(21, 21, 21, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.slider-row,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--cyan) 0 38%, transparent 39%),
    linear-gradient(315deg, var(--coral) 0 42%, transparent 43%),
    var(--yellow);
  box-shadow: inset 0 0 0 3px rgba(255, 249, 239, 0.68);
}

.nav-links {
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 0.38rem 0.55rem;
  border-radius: 6px;
  color: #2b2a27;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(14, 165, 183, 0.15);
  outline: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 520px);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: 92svh;
  padding: 9rem clamp(1.2rem, 5vw, 5rem) 5rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(255, 249, 239, 0.92) 0 34%, rgba(255, 249, 239, 0.5) 34% 62%, rgba(255, 230, 190, 0.68) 62%),
    linear-gradient(180deg, #fffdf6 0%, #ffe9c4 100%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(21, 21, 21, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}

.hero-content,
.hero-showcase,
.scroll-cue {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker,
.site-footer span {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(21, 21, 21, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 1.1rem;
  font-size: clamp(3rem, 6.2vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.subtitle {
  max-width: 760px;
  margin-bottom: 1.55rem;
  color: #2d2921;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
}

.hero-showcase {
  align-self: stretch;
  display: grid;
  align-content: center;
  min-height: min(70svh, 700px);
}

.hero-showcase canvas {
  width: 100%;
  height: min(60svh, 620px);
  min-height: 420px;
  border-radius: 8px;
  cursor: grab;
  touch-action: none;
}

.hero-figure {
  overflow: hidden;
  align-self: center;
  justify-self: end;
  width: min(100%, 520px);
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.9);
  box-shadow: 8px 8px 0 var(--ink);
}

.figure-label,
.figure-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.figure-label,
.figure-legend {
  padding: 0.8rem 0.95rem;
  background: rgba(255, 255, 255, 0.82);
}

.figure-label {
  border-bottom: 1px solid rgba(21, 21, 21, 0.14);
}

.figure-label span,
.figure-legend span {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
}

.figure-label span {
  color: var(--teal);
  text-transform: uppercase;
}

.figure-label strong {
  line-height: 1.2;
}

.figure-legend {
  border-top: 1px solid rgba(21, 21, 21, 0.14);
}

.figure-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #3c3831;
}

.figure-legend i {
  width: 10px;
  height: 10px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.teal-dot {
  background: var(--cyan);
}

.violet-dot {
  background: var(--violet);
}

.coral-dot {
  background: var(--coral);
}

#hero-canvas {
  display: block;
  width: 100%;
  height: min(48svh, 460px);
  min-height: 360px;
  background:
    linear-gradient(rgba(21, 21, 21, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, rgba(14, 165, 183, 0.08), rgba(246, 196, 69, 0.16));
  background-size: 30px 30px, 30px 30px, auto;
}

.hero-actions {
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
  outline: none;
}

.button.primary {
  background: var(--coral);
  color: #fff9ef;
}

.button.secondary {
  background: var(--yellow);
}

.button.ghost {
  background: #fffdf6;
  color: var(--ink);
}

.button.small {
  min-height: 38px;
  padding: 0.52rem 0.72rem;
  border-width: 2px;
  border-radius: 7px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  font: 800 0.9rem/1 var(--sans);
}

.scroll-cue {
  position: absolute;
  bottom: 1.2rem;
  left: clamp(1.2rem, 5vw, 5rem);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.band {
  scroll-margin-top: 96px;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.intro-band {
  background: #fffdf6;
}

.primer-band {
  background:
    linear-gradient(90deg, rgba(214, 59, 130, 0.12), transparent 38%),
    #fff8f4;
}

.paper-band {
  background:
    linear-gradient(90deg, rgba(14, 165, 183, 0.12), transparent 36%),
    #fbf1dc;
}

.lab-band {
  background:
    linear-gradient(180deg, #e9fbf7 0%, #fff9ef 70%),
    #e9fbf7;
}

.interactive-band {
  background:
    linear-gradient(90deg, rgba(14, 165, 183, 0.14), transparent 42%),
    #f5fff9;
  padding-top: clamp(3rem, 5vw, 4.5rem);
}

.result-band {
  background:
    linear-gradient(90deg, rgba(239, 90, 60, 0.14), transparent 34%),
    #fff6ea;
}

.discussion-band {
  background:
    linear-gradient(90deg, rgba(246, 196, 69, 0.2), transparent 42%),
    #f9f4ff;
}

.references-band {
  background: #17221f;
  color: #fff9ef;
}

.reproducibility-band {
  background:
    linear-gradient(90deg, rgba(90, 166, 80, 0.14), transparent 44%),
    #fffdf6;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(130px, 0.28fr) minmax(0, 820px);
  gap: clamp(1rem, 5vw, 4rem);
  max-width: 1180px;
  margin: 0 auto;
}

.content-grid > * {
  min-width: 0;
}

.section-kicker {
  color: var(--coral);
  text-transform: uppercase;
}

.references-band .section-kicker {
  color: var(--yellow);
}

.article-copy {
  min-width: 0;
  font-size: 1.05rem;
  overflow-wrap: break-word;
}

.article-copy h2 {
  margin-bottom: 1rem;
  font-size: 3.35rem;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.article-copy h3 {
  margin: 2.2rem 0 0.7rem;
  font-size: 1.28rem;
  line-height: 1.2;
}

.article-copy p {
  color: #34312c;
}

.inline-cite {
  color: var(--teal);
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.14em;
}

.references-band .article-copy p,
.references-band .article-copy li {
  color: rgba(255, 249, 239, 0.86);
}

.references-band .inline-cite {
  color: #9ee7e5;
}

.lede {
  font-size: 1.24rem;
  font-weight: 650;
  line-height: 1.48;
}

.pull-quote {
  margin: 2rem 0;
  padding: 1.2rem 1.35rem;
  border-left: 6px solid var(--coral);
  background: rgba(255, 255, 255, 0.7);
  color: #241f1a;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.38;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.6rem 0 1.9rem;
}

.stat-strip div {
  min-height: 118px;
  padding: 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.92);
  box-shadow: 5px 5px 0 var(--yellow);
}

.stat-strip strong,
.stat-strip span {
  display: block;
}

.stat-strip strong {
  color: var(--teal);
  font-family: var(--mono);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1;
}

.stat-strip span {
  margin-top: 0.55rem;
  color: #403a33;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.22;
}

.discussion-band .pull-quote {
  background: rgba(255, 249, 239, 0.78);
  border-left-color: var(--violet);
}

.equation {
  margin: 1.45rem 0;
  padding: 1.1rem 1.2rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 5px 5px 0 var(--cyan);
  font-family: var(--mono);
  font-size: clamp(0.88rem, 2vw, 1.02rem);
  line-height: 1.65;
  overflow-x: auto;
}

.equation.compact {
  box-shadow: 5px 5px 0 var(--yellow);
}

.benchmark-chip {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.55rem 0.7rem;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--cyan);
  color: var(--ink) !important;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 800;
}

.definition-grid,
.metric-definitions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.6rem 0 2rem;
}

.definition-grid div,
.metric-definitions div {
  padding: 0.85rem 0.95rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.86);
  box-shadow: 4px 4px 0 rgba(246, 196, 69, 0.52);
}

.definition-grid strong,
.definition-grid span,
.metric-definitions strong,
.metric-definitions span {
  display: block;
}

.definition-grid strong,
.metric-definitions strong {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.definition-grid span,
.metric-definitions span {
  margin-top: 0.35rem;
  color: #403a33;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.primer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: min(1100px, 100%);
  margin: 3rem auto 0;
}

.primer-grid figure {
  overflow: hidden;
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
  box-shadow: 4px 4px 0 rgba(21, 21, 21, 0.88);
}

.primer-grid canvas {
  display: block;
  width: 100%;
  height: 230px;
  background:
    linear-gradient(rgba(21, 21, 21, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, rgba(14, 165, 183, 0.08), rgba(246, 196, 69, 0.08));
  background-size: 24px 24px, 24px 24px, auto;
}

.primer-grid figcaption {
  min-height: 132px;
  padding: 0.8rem 0.9rem 0.95rem;
  border-top: 1px solid rgba(21, 21, 21, 0.14);
}

.primer-grid strong,
.primer-grid span,
.primer-grid em {
  display: block;
}

.primer-grid strong {
  margin-bottom: 0.34rem;
  line-height: 1.1;
}

.primer-grid span {
  color: #4b453c;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.25;
}

.primer-grid em {
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin-top: 0.58rem;
  padding: 0.28rem 0.42rem;
  border: 1px solid rgba(21, 21, 21, 0.18);
  border-radius: 6px;
  background: rgba(14, 165, 183, 0.09);
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.7rem 0 2rem;
}

.method-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.protocol-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.6rem 0 2rem;
}

.protocol-list div {
  min-height: 118px;
  padding: 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 4px 4px 0 var(--cyan);
}

.protocol-list strong,
.protocol-list span {
  display: block;
}

.protocol-list strong {
  margin-bottom: 0.35rem;
  color: var(--teal);
  font-family: var(--mono);
  text-transform: uppercase;
}

.protocol-list span {
  color: #403a33;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.32;
}

.edit-operator-table {
  display: grid;
  gap: 0.8rem;
  margin: 1.6rem 0 2rem;
}

.edit-operator-table div {
  padding: 0.95rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.86);
  box-shadow: 4px 4px 0 rgba(14, 165, 183, 0.32);
}

.edit-operator-table strong,
.edit-operator-table span {
  display: block;
}

.edit-operator-table strong {
  margin-bottom: 0.55rem;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.edit-operator-table span {
  margin-top: 0.42rem;
  color: #3f3932;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.method-grid div {
  min-height: 150px;
  padding: 1rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--yellow);
}

.method-grid strong,
.method-grid span {
  display: block;
}

.method-grid strong {
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.method-grid span {
  color: #4b453c;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.doppel-lab {
  display: grid;
  gap: 1rem;
  width: min(1320px, 100%);
  margin: 3.2rem auto 0;
}

.object-switcher {
  order: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.object-switcher button {
  min-height: 40px;
  padding: 0.55rem 0.78rem;
  border: 2px solid rgba(21, 21, 21, 0.78);
  border-radius: 7px;
  background: #fffdf6;
  color: var(--ink);
  cursor: pointer;
  font: 800 0.92rem/1 var(--sans);
}

.object-switcher button.active {
  background: var(--ink);
  color: #fff9ef;
}

.reveal-controls {
  order: 2;
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(320px, 1fr) minmax(260px, 0.58fr) auto;
  align-items: center;
  gap: 0.8rem 1.1rem;
  padding: 1rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.88);
  box-shadow: 5px 5px 0 rgba(21, 21, 21, 0.9);
}

.reveal-controls .slider-row {
  grid-column: 1;
}

.reveal-controls input[type="range"] {
  grid-column: 2;
}

.reveal-controls .view-control-copy {
  grid-column: 3;
}

.reveal-controls .button.small {
  grid-column: 4;
  justify-self: end;
  white-space: nowrap;
}

.view-control-copy {
  display: grid;
  gap: 0.18rem;
}

.view-control-copy strong,
.view-control-copy span {
  display: block;
}

.view-control-copy strong {
  font-weight: 900;
}

.view-control-copy span {
  color: #4b453c;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

.scene-grid {
  order: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.scene-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scene-card {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
  box-shadow: var(--shadow);
}

.scene-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(21, 21, 21, 0.14);
  background: rgba(255, 255, 255, 0.8);
}

.scene-heading strong {
  font-size: 0.95rem;
}

.scene-heading span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
}

.scene-card canvas {
  display: block;
  width: 100%;
  height: 460px;
  background:
    linear-gradient(rgba(21, 21, 21, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, rgba(14, 165, 183, 0.08), rgba(246, 196, 69, 0.12));
  background-size: 28px 28px, 28px 28px, auto;
  cursor: grab;
  touch-action: none;
}

.scene-card canvas:active,
.hero-showcase canvas:active,
.primer-grid canvas:active {
  cursor: grabbing;
}

.lab-readout {
  order: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1rem;
  align-items: stretch;
}

.readout-copy,
.metric-comparison {
  padding: 1rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
}

.readout-copy span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.readout-copy h3 {
  margin: 0 0 0.45rem;
  font-size: 1.5rem;
  line-height: 1.15;
}

.readout-copy p {
  margin-bottom: 0;
  color: #36312b;
}

.readout-copy .outcome-line {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(21, 21, 21, 0.14);
  color: #151515;
  font-weight: 800;
}

.readout-copy .edit-label-line {
  margin-bottom: 0.55rem;
  color: #4b453c;
  font-size: 0.92rem;
  font-weight: 800;
}

.edit-label-line strong {
  color: var(--teal);
}

.metric-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 0.65rem;
}

.metric-comparison div {
  padding: 0.75rem;
  border: 1px solid rgba(21, 21, 21, 0.14);
  border-radius: 7px;
  background: rgba(14, 165, 183, 0.08);
}

.metric-comparison span,
.metric-comparison strong {
  display: block;
}

.metric-comparison span {
  color: #4b453c;
  font-size: 0.78rem;
  font-weight: 800;
}

.metric-comparison strong {
  margin-top: 0.3rem;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 1.28rem;
}

input[type="range"]:focus-visible {
  outline: 3px solid rgba(14, 165, 183, 0.45);
  outline-offset: 3px;
}

.slider-row {
  justify-content: space-between;
  gap: 1rem;
  font-weight: 800;
}

.slider-row output {
  color: var(--teal);
  font-family: var(--mono);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--coral);
}

.insight-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.5rem 0 2rem;
}

.insight-list section {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(21, 21, 21, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.insight-list h3 {
  margin-top: 0;
}

.insight-list p {
  margin-bottom: 0;
}

.reference-list {
  display: grid;
  gap: 1rem;
  padding-left: 1.25rem;
}

.reference-list a {
  color: #9ee7e5;
  font-weight: 800;
}

.site-footer {
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem clamp(1.2rem, 5vw, 5rem);
  background: #111;
  color: #fff9ef;
}

.site-footer strong {
  font-size: 1rem;
}

@media (max-width: 900px) {
  .topbar {
    position: absolute;
    inset: 12px 12px auto;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .scene-grid,
  .scene-grid.three-up,
  .lab-readout,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 94svh;
    padding-top: 7.2rem;
  }

  .hero-showcase {
    min-height: auto;
  }

  .hero-showcase canvas {
    min-height: 360px;
    height: 46svh;
  }

  .section-kicker {
    margin-bottom: 0.5rem;
  }

  .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-grid.two-up,
  .definition-grid,
  .metric-definitions,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .protocol-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-comparison {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scene-card canvas {
    height: 360px;
  }

}

@media (max-width: 640px) {
  .hero {
    padding-inline: 1rem;
  }

  .band {
    padding-inline: 1rem;
  }

  .article-copy h2 {
    font-size: 2.4rem;
  }

  .definition-grid,
  .metric-definitions,
  .method-grid,
  .method-grid.two-up,
  .protocol-list,
  .primer-grid,
  .reveal-controls,
  .metric-comparison,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .reveal-controls .slider-row,
  .reveal-controls input[type="range"],
  .reveal-controls .view-control-copy,
  .reveal-controls .button.small {
    grid-column: 1;
  }

  .reveal-controls .button.small {
    justify-self: start;
  }

  .hero-showcase canvas {
    min-height: 320px;
  }

  .site-footer {
    display: grid;
  }
}

/* 2026 editorial redesign ------------------------------------------------- */
:root {
  --ink: #111311;
  --muted: #626760;
  --paper: #f4f3ec;
  --paper-strong: #e9e8df;
  --cyan: #51d0c7;
  --teal: #0d7771;
  --coral: #ff6542;
  --yellow: #dfff55;
  --violet: #7767e8;
  --line: rgba(17, 19, 17, 0.14);
  --shadow: 0 24px 70px rgba(17, 19, 17, 0.18);
  --mono: "Space Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
}

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

body {
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.topbar {
  inset: 16px auto auto 50%;
  width: min(1180px, calc(100% - 32px));
  padding: 0.58rem 0.7rem 0.58rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(15, 18, 16, 0.84);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
  color: #f6f5ed;
  transform: translateX(-50%);
  backdrop-filter: blur(18px) saturate(130%);
}

.brand {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 0;
  background: conic-gradient(from 210deg, var(--yellow), var(--cyan), var(--coral), var(--yellow));
  box-shadow: inset 0 0 0 5px rgba(17, 19, 17, 0.75);
}

.nav-links {
  display: flex;
  gap: 0.1rem;
}

.nav-links a {
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="location"] {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  min-height: 100svh;
  padding: 8.5rem max(32px, calc((100vw - 1180px) / 2)) 6.2rem;
  border: 0;
  background:
    radial-gradient(circle at 86% 18%, rgba(119, 103, 232, 0.32), transparent 27%),
    radial-gradient(circle at 68% 82%, rgba(81, 208, 199, 0.16), transparent 30%),
    #101311;
  color: #f7f6ef;
}

.hero-noise {
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.eyebrow {
  margin-bottom: 1.6rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow span {
  margin-inline: 0.35rem;
  color: var(--yellow);
}

h1 {
  max-width: 680px;
  margin-bottom: 1.25rem;
  font-family: var(--display);
  font-size: clamp(4.8rem, 8.1vw, 8.6rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.045em;
}

h1 em {
  color: var(--yellow);
  font-weight: 400;
}

.hero-claim {
  margin: -0.15rem 0 1rem;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: clamp(0.76rem, 1.15vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-claim em {
  font-style: normal;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.subtitle {
  max-width: 650px;
  margin-bottom: 1.8rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  font-weight: 400;
  line-height: 1.5;
}

.hero-thesis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 650px;
  margin: 2rem 0;
  border-block: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-thesis div {
  padding: 1rem 1rem 1rem 0;
}

.hero-thesis div + div {
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-thesis span,
.hero-thesis strong {
  display: block;
}

.hero-thesis span {
  margin-bottom: 0.18rem;
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
}

.hero-thesis strong {
  font-size: 1rem;
}

.hero-actions {
  gap: 0.65rem;
}

.button {
  min-height: 48px;
  padding: 0.75rem 1.05rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  box-shadow: none;
  font-size: 0.86rem;
  font-weight: 650;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--ink);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
}

.hero-figure {
  width: min(100%, 540px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: #eeeee7;
  box-shadow: 18px 20px 0 rgba(223, 255, 85, 0.9), 0 40px 100px rgba(0, 0, 0, 0.38);
  transform: rotate(1.2deg);
}

.figure-label,
.figure-legend {
  background: #f7f6ef;
}

.figure-label {
  padding: 0.85rem 1rem;
}

.figure-label span {
  color: var(--teal);
  font-size: 0.61rem;
}

.figure-label strong {
  color: var(--ink);
  font-size: 0.86rem;
}

#hero-canvas {
  height: min(54svh, 500px);
  min-height: 390px;
  background:
    linear-gradient(rgba(17, 19, 17, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 17, 0.05) 1px, transparent 1px),
    #e9ebe4;
  background-size: 36px 36px;
}

.comparison-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
}

.comparison-legend span {
  min-height: 58px;
  padding: 0.75rem 0.9rem;
}

.comparison-legend span + span {
  border-left: 1px solid var(--line);
}

.comparison-legend b {
  color: #9a9e96;
  font-weight: 400;
}

.comparison-legend .target-key {
  grid-column: 1 / -1;
  min-height: auto;
  padding-block: 0.52rem;
  border-top: 1px solid var(--line);
  border-left: 0;
  color: #646961;
}

.scroll-cue {
  bottom: 1.4rem;
  left: max(32px, calc((100vw - 1180px) / 2));
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.65rem;
}

.scroll-cue span {
  color: var(--yellow);
}

.band {
  scroll-margin-top: 84px;
  padding: clamp(5.5rem, 9vw, 9rem) max(24px, calc((100vw - 1180px) / 2));
  border-color: var(--line);
}

.intro-band,
.paper-band,
.lab-band,
.result-band,
.discussion-band,
.reproducibility-band,
.primer-band {
  background-image: none;
}

.intro-band {
  background: var(--yellow);
}

.primer-band {
  background: #f4f3ec;
}

.paper-band {
  background: #e8e7df;
}

.lab-band {
  background: #f4f3ec;
}

.content-grid {
  grid-template-columns: 170px minmax(0, 790px);
  gap: clamp(2rem, 6vw, 6.5rem);
  max-width: 1160px;
}

.section-kicker {
  align-self: start;
  padding-top: 0.75rem;
  color: #656a62;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.section-kicker span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 0.45rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.intro-band .section-kicker {
  color: rgba(17, 19, 17, 0.62);
}

.article-copy {
  font-size: 1.08rem;
  line-height: 1.72;
}

.article-copy h2 {
  max-width: 900px;
  margin-bottom: 1.25rem;
  font-family: var(--display);
  font-size: clamp(3.5rem, 6.4vw, 6.3rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.article-copy h3 {
  font-size: 1.18rem;
  letter-spacing: -0.015em;
}

.article-copy p {
  max-width: 720px;
  color: #3f433d;
}

.intro-band .article-copy p {
  color: rgba(17, 19, 17, 0.8);
}

.lede {
  max-width: 760px !important;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.02em;
}

.inline-cite {
  color: var(--teal);
  font-size: 0.9em;
  font-weight: 650;
}

.argument-map {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
  margin: 2.5rem 0;
  padding: 1.4rem;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
}

.argument-map div {
  padding: 0.35rem;
}

.argument-map strong,
.argument-map p,
.argument-step {
  display: block;
}

.argument-map strong {
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 400;
}

.argument-map p {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.56) !important;
  font-size: 0.82rem;
}

.argument-step {
  margin-bottom: 0.35rem;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
}

.argument-arrow {
  color: var(--yellow);
  font-size: 1.5rem;
}

.stat-strip {
  gap: 0;
  margin: 2.4rem 0;
  border-block: 1px solid rgba(17, 19, 17, 0.3);
}

.stat-strip div {
  min-height: 136px;
  padding: 1.1rem 1.1rem 1.1rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.stat-strip div + div {
  padding-left: 1.1rem;
  border-left: 1px solid rgba(17, 19, 17, 0.3);
}

.stat-strip strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 400;
}

.stat-strip span {
  color: rgba(17, 19, 17, 0.68);
  font-size: 0.76rem;
  font-weight: 650;
}

.stat-strip em {
  font-weight: 400;
}

.pull-quote {
  margin: 2.5rem 0 0;
  padding: 1.4rem 0 0 1.4rem;
  border: 0;
  border-left: 1px solid rgba(17, 19, 17, 0.4);
  background: transparent;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 400;
  line-height: 1.15;
}

.thesis-quote span {
  display: block;
  margin-bottom: 0.55rem;
  color: rgba(17, 19, 17, 0.55);
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
}

.thesis-quote em {
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.12em;
}

.definition-grid,
.metric-definitions {
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.definition-grid div,
.metric-definitions div {
  min-height: 130px;
  padding: 1rem;
  border: 0;
  border-radius: 0;
  background: #faf9f3;
  box-shadow: none;
}

.definition-grid strong,
.metric-definitions strong {
  color: var(--ink);
  font-size: 0.69rem;
  letter-spacing: 0.04em;
}

.definition-grid span,
.metric-definitions span {
  color: #666b64;
  font-size: 0.86rem;
  font-weight: 500;
}

.primer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  width: min(1160px, 100%);
  margin-top: 4rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
}

.primer-grid figure {
  border: 0;
  border-radius: 0;
  background: #faf9f3;
  box-shadow: none;
}

.primer-grid canvas {
  height: 250px;
  background:
    radial-gradient(circle at 50% 48%, rgba(81, 208, 199, 0.14), transparent 42%),
    #ecece5;
}

.primer-grid figcaption {
  min-height: 140px;
  padding: 1rem;
}

.primer-grid strong {
  font-size: 0.92rem;
}

.primer-grid span {
  color: #666b64;
  font-weight: 500;
}

.primer-grid em {
  border: 0;
  border-radius: 999px;
  background: #e6e6df;
  color: #62675f;
  font-size: 0.61rem;
}

.technical-detail {
  margin: 2rem 0;
  border-block: 1px solid var(--line);
}

.technical-detail summary {
  position: relative;
  padding: 1rem 2.5rem 1rem 0;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 700;
  list-style: none;
  text-transform: uppercase;
}

.technical-detail summary::-webkit-details-marker {
  display: none;
}

.technical-detail summary::after {
  content: "+";
  position: absolute;
  top: 0.72rem;
  right: 0;
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 400;
}

.technical-detail[open] summary::after {
  content: "−";
}

.technical-detail[open] {
  padding-bottom: 1.2rem;
}

.equation {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.equation.compact {
  padding: 1.2rem 1.4rem;
  border: 0;
  border-left: 5px solid var(--coral);
  border-radius: 0;
  background: #faf9f3;
  box-shadow: none;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.15;
}

.protocol-list,
.method-grid.two-up,
.edit-operator-table,
.insight-list {
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.protocol-list div,
.method-grid div,
.edit-operator-table div,
.insight-list section {
  border: 0;
  border-radius: 0;
  background: #faf9f3;
  box-shadow: none;
}

.protocol-list strong::before {
  border-radius: 50%;
}

.benchmark-chip {
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: none;
  color: #fff !important;
}

.interactive-band {
  padding-top: clamp(5.5rem, 9vw, 9rem);
  background:
    radial-gradient(circle at 14% 12%, rgba(81, 208, 199, 0.16), transparent 24%),
    #111411;
  color: #f7f6ef;
}

.interactive-band .section-kicker {
  color: var(--cyan);
}

.interactive-band .article-copy p {
  color: rgba(255, 255, 255, 0.62);
}

.doppel-lab {
  width: min(1320px, calc(100vw - 32px));
  margin-top: 3.5rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: #e9e9e2;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.38);
  color: var(--ink);
}

.object-switcher {
  gap: 0.3rem;
  padding: 0.2rem 0.2rem 0.8rem;
}

.object-switcher button,
.state-button {
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(17, 19, 17, 0.18);
  border-radius: 999px;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 650;
  cursor: pointer;
}

.object-switcher button.active,
.state-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.reveal-controls {
  grid-template-columns: auto minmax(200px, 0.9fr) minmax(180px, 1fr) minmax(170px, 0.8fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8f7f1;
}

.state-toggle {
  display: flex;
  gap: 0.25rem;
}

.reveal-controls .slider-row,
.reveal-controls input[type="range"],
.reveal-controls .view-control-copy,
.reveal-controls .button.small {
  grid-column: auto;
}

input[type="range"] {
  accent-color: var(--coral);
}

.button.small {
  min-height: 40px;
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.scene-grid.three-up {
  order: 3;
  gap: 1px;
  overflow: hidden;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.scene-card {
  border: 0;
  border-radius: 0;
  background: #f9f8f2;
  box-shadow: none;
}

.scene-heading {
  min-height: 66px;
  border-color: var(--line);
}

.scene-heading strong {
  font-size: 0.82rem;
}

.scene-heading span {
  color: #737870;
  font-size: 0.58rem;
}

.scene-card canvas {
  height: 390px;
  background: #ecece5;
}

.lab-readout {
  order: 4;
  gap: 1px;
  overflow: hidden;
  margin-top: 1rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.readout-copy,
.metric-comparison {
  border: 0;
  border-radius: 0;
  background: #f9f8f2;
}

.readout-copy {
  padding: 1.3rem;
}

.readout-copy h3 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
}

.readout-copy p {
  color: #555a53;
  font-weight: 500;
}

.readout-copy .outcome-line {
  border-radius: 10px;
  background: #e8f3d0;
}

.metric-comparison {
  gap: 1px;
  padding: 0;
  background: var(--line);
}

.metric-comparison div {
  border: 0;
  border-radius: 0;
  background: #f9f8f2;
}

.metric-comparison strong {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
}

.result-band {
  background: #ff704f;
}

.result-band .section-kicker,
.result-band .article-copy p {
  color: rgba(17, 19, 17, 0.7);
}

.discussion-band {
  background: #ecebe4;
}

.discussion-band .pull-quote {
  border-left: 1px solid var(--violet);
  background: transparent;
}

.reproducibility-band {
  background: #dfe9e3;
}

.references-band {
  background: #111411;
}

.references-band .section-kicker {
  color: var(--yellow);
}

.site-footer {
  padding: 2rem max(24px, calc((100vw - 1180px) / 2));
  background: var(--yellow);
  color: var(--ink);
}

.site-footer span,
.site-footer a {
  color: rgba(17, 19, 17, 0.62);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer strong {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 400;
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    padding-inline: 28px;
  }

  .hero-content {
    max-width: 780px;
  }

  .hero-figure {
    justify-self: start;
    width: min(720px, 100%);
    transform: none;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section-kicker {
    margin-bottom: 1rem;
  }

  .reveal-controls {
    grid-template-columns: auto 1fr auto;
  }

  .reveal-controls .state-toggle {
    grid-column: 1;
  }

  .reveal-controls .slider-row {
    grid-column: 2;
  }

  .reveal-controls input[type="range"] {
    grid-column: 1 / -1;
  }

  .reveal-controls .view-control-copy {
    grid-column: 1 / 3;
  }

  .reveal-controls .button.small {
    grid-column: 3;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .topbar {
    position: fixed;
    inset: 10px auto auto 50%;
    align-items: center;
    width: calc(100% - 20px);
    overflow: hidden;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-links {
    display: flex;
    flex: 1;
    flex-wrap: nowrap;
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links a {
    padding-inline: 0.52rem;
    white-space: nowrap;
  }

  .nav-links a:nth-child(2),
  .nav-links a:nth-child(5) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 7.4rem 18px 5rem;
  }

  h1 {
    font-size: clamp(4.2rem, 22vw, 6.4rem);
  }

  .hero-thesis,
  .stat-strip,
  .argument-map {
    grid-template-columns: 1fr;
  }

  .hero-thesis div + div {
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .argument-arrow {
    transform: rotate(90deg);
  }

  .hero-figure {
    box-shadow: 8px 10px 0 var(--yellow);
  }

  #hero-canvas {
    min-height: 330px;
    height: 44svh;
  }

  .comparison-legend {
    grid-template-columns: 1fr;
  }

  .comparison-legend span + span,
  .comparison-legend .target-key {
    grid-column: auto;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .scroll-cue {
    display: none;
  }

  .band {
    padding: 5rem 18px;
  }

  .article-copy h2 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .stat-strip div,
  .stat-strip div + div {
    min-height: auto;
    padding: 1rem 0;
    border-top: 1px solid rgba(17, 19, 17, 0.3);
    border-left: 0;
  }

  .stat-strip div:first-child {
    border-top: 0;
  }

  .primer-grid,
  .definition-grid,
  .metric-definitions,
  .protocol-list,
  .method-grid.two-up,
  .scene-grid.three-up,
  .lab-readout {
    grid-template-columns: 1fr;
  }

  .primer-grid canvas {
    height: 230px;
  }

  .doppel-lab {
    width: calc(100vw - 20px);
    padding: 0.6rem;
  }

  .object-switcher {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .object-switcher button {
    white-space: nowrap;
  }

  .reveal-controls {
    grid-template-columns: 1fr;
  }

  .reveal-controls .state-toggle,
  .reveal-controls .slider-row,
  .reveal-controls input[type="range"],
  .reveal-controls .view-control-copy,
  .reveal-controls .button.small {
    grid-column: 1;
  }

  .state-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .scene-card canvas {
    height: 330px;
  }

  .site-footer {
    gap: 0.65rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Palette reconciliation: retain the original warm research-blog identity. */
:root {
  --ink: #151515;
  --muted: #62615c;
  --paper: #fff9ef;
  --paper-strong: #fff3d8;
  --cyan: #0ea5b7;
  --teal: #087f75;
  --coral: #ef5a3c;
  --pink: #d63b82;
  --yellow: #f6c445;
  --green: #5aa650;
  --violet: #6d5bd0;
  --line: rgba(21, 21, 21, 0.16);
  --shadow: 0 18px 50px rgba(21, 21, 21, 0.14);
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --display: Inter, ui-sans-serif, system-ui, sans-serif;
}

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

body {
  background: var(--paper);
  color: var(--ink);
}

.reading-progress span {
  background: var(--coral);
}

:focus-visible {
  outline-color: var(--cyan);
}

.topbar {
  border: 1px solid rgba(21, 21, 21, 0.18);
  border-radius: 10px;
  background: rgba(255, 249, 239, 0.9);
  box-shadow: 0 10px 30px rgba(21, 21, 21, 0.08);
  color: var(--ink);
}

.brand {
  color: var(--ink);
}

.brand-mark {
  border: 2px solid var(--ink);
  background:
    linear-gradient(135deg, var(--cyan) 0 38%, transparent 39%),
    linear-gradient(315deg, var(--coral) 0 42%, transparent 43%),
    var(--yellow);
  box-shadow: inset 0 0 0 3px rgba(255, 249, 239, 0.68);
}

.nav-links a {
  color: #2b2a27;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="location"] {
  background: rgba(14, 165, 183, 0.15);
  color: var(--ink);
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(255, 249, 239, 0.94) 0 34%, rgba(255, 249, 239, 0.6) 34% 62%, rgba(255, 230, 190, 0.72) 62%),
    linear-gradient(180deg, #fffdf6 0%, #ffe9c4 100%);
  color: var(--ink);
}

.hero-noise {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(21, 21, 21, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(21, 21, 21, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
}

.eyebrow span {
  color: var(--teal);
}

h1 {
  max-width: 760px;
  margin-bottom: 0.9rem;
  font-family: var(--sans);
  font-size: clamp(3.6rem, 6.4vw, 6.2rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.hero-claim {
  color: var(--teal);
}

.subtitle {
  color: #2d2921;
  font-weight: 600;
}

.hero-thesis {
  border-color: rgba(21, 21, 21, 0.2);
}

.hero-thesis div + div {
  border-color: rgba(21, 21, 21, 0.2);
}

.hero-thesis span {
  color: #74716b;
}

.hero-thesis strong {
  color: var(--ink);
}

.button {
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 800;
}

.button:hover,
.button:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.button.primary {
  border-color: var(--ink);
  background: var(--coral);
  color: #fff9ef;
}

.button.secondary {
  border-color: var(--ink);
  background: var(--yellow);
  color: var(--ink);
}

.hero-figure {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.92);
  box-shadow: 8px 8px 0 var(--ink);
  transform: none;
}

.figure-label,
.figure-legend {
  background: rgba(255, 255, 255, 0.82);
}

#hero-canvas {
  background:
    linear-gradient(rgba(21, 21, 21, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, rgba(14, 165, 183, 0.08), rgba(246, 196, 69, 0.16));
  background-size: 30px 30px, 30px 30px, auto;
}

.scroll-cue {
  color: #55514b;
}

.scroll-cue span {
  color: var(--coral);
}

.intro-band {
  background: #fffdf6;
}

.primer-band {
  background:
    linear-gradient(90deg, rgba(214, 59, 130, 0.1), transparent 38%),
    #fff8f4;
}

.paper-band {
  background:
    linear-gradient(90deg, rgba(14, 165, 183, 0.12), transparent 36%),
    #fbf1dc;
}

.lab-band {
  background: linear-gradient(180deg, #e9fbf7 0%, #fff9ef 70%);
}

.section-kicker {
  color: var(--coral);
}

.article-copy h2 {
  font-family: var(--sans);
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
}

.article-copy h3 {
  font-weight: 850;
}

.argument-map {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
  box-shadow: 5px 5px 0 var(--cyan);
  color: var(--ink);
}

.argument-map strong {
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 900;
}

.argument-map p {
  color: #5d5851 !important;
}

.argument-step {
  color: var(--teal);
}

.argument-arrow {
  color: var(--coral);
}

.stat-strip {
  border-color: rgba(21, 21, 21, 0.2);
}

.stat-strip div + div {
  border-color: rgba(21, 21, 21, 0.2);
}

.stat-strip strong {
  color: var(--teal);
  font-family: var(--mono);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
}

.pull-quote {
  border-left: 6px solid var(--coral);
  background: rgba(255, 255, 255, 0.7);
  font-family: var(--sans);
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.38;
}

.definition-grid div,
.metric-definitions div,
.primer-grid figure,
.protocol-list div,
.method-grid div,
.edit-operator-table div,
.insight-list section {
  background: #fffdf6;
}

.definition-grid strong,
.metric-definitions strong {
  color: var(--teal);
}

.primer-grid {
  gap: 1rem;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.primer-grid figure {
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(21, 21, 21, 0.88);
}

.primer-grid canvas {
  background:
    linear-gradient(rgba(21, 21, 21, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, rgba(14, 165, 183, 0.08), rgba(246, 196, 69, 0.08));
  background-size: 24px 24px, 24px 24px, auto;
}

.technical-detail summary {
  color: var(--teal);
}

.equation {
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--cyan);
}

.equation.compact {
  border: 2px solid var(--ink);
  border-left-width: 2px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 5px 5px 0 var(--yellow);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.65;
}

.interactive-band {
  background:
    linear-gradient(90deg, rgba(14, 165, 183, 0.14), transparent 42%),
    #f5fff9;
  color: var(--ink);
}

.interactive-band .section-kicker {
  color: var(--coral);
}

.interactive-band .article-copy p {
  color: #34312c;
}

.doppel-lab {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.object-switcher button,
.state-button {
  border: 2px solid rgba(21, 21, 21, 0.78);
  border-radius: 7px;
  background: #fffdf6;
}

.object-switcher button.active,
.state-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff9ef;
}

.reveal-controls {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.9);
  box-shadow: 5px 5px 0 var(--ink);
}

.scene-grid.three-up,
.lab-readout {
  gap: 1rem;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.scene-card,
.readout-copy,
.metric-comparison {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
  box-shadow: var(--shadow);
}

.scene-card canvas {
  background:
    linear-gradient(rgba(21, 21, 21, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, rgba(14, 165, 183, 0.08), rgba(246, 196, 69, 0.12));
  background-size: 28px 28px, 28px 28px, auto;
}

.readout-copy h3 {
  font-family: var(--sans);
  font-weight: 900;
}

.metric-comparison {
  gap: 0.65rem;
  padding: 1rem;
  background: #fffdf6;
}

.metric-comparison div {
  border: 1px solid rgba(21, 21, 21, 0.14);
  border-radius: 7px;
  background: rgba(14, 165, 183, 0.08);
}

.metric-comparison strong {
  color: var(--coral);
  font-family: var(--mono);
  font-size: 1.28rem;
  font-weight: 700;
}

.result-band {
  background:
    linear-gradient(90deg, rgba(239, 90, 60, 0.14), transparent 34%),
    #fff6ea;
}

.result-band .section-kicker {
  color: var(--coral);
}

.result-band .article-copy p {
  color: #34312c;
}

.discussion-band {
  background:
    linear-gradient(90deg, rgba(246, 196, 69, 0.2), transparent 42%),
    #f9f4ff;
}

.reproducibility-band {
  background:
    linear-gradient(90deg, rgba(90, 166, 80, 0.14), transparent 44%),
    #fffdf6;
}

.references-band,
.site-footer {
  background: #17221f;
  color: #fff9ef;
}

.site-footer span,
.site-footer a {
  color: rgba(255, 249, 239, 0.7);
}

.site-footer strong {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 800;
}

@media (max-width: 1000px) {
  .hero {
    background:
      linear-gradient(135deg, rgba(255, 249, 239, 0.96), rgba(255, 230, 190, 0.78)),
      #fff9ef;
  }
}

@media (max-width: 700px) {
  .topbar {
    background: rgba(255, 249, 239, 0.94);
  }

  h1 {
    font-size: clamp(3.35rem, 17vw, 5rem);
  }

  .hero-thesis div + div {
    border-color: rgba(21, 21, 21, 0.2);
  }

  .argument-map {
    box-shadow: 4px 4px 0 var(--cyan);
  }
}

.readout-copy .outcome-line {
  margin-top: 1rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid rgba(90, 166, 80, 0.28);
  border-radius: 10px;
  background: #e8f3d0;
  line-height: 1.45;
}

/* 2026-08 quality pass: responsive containment, fallbacks, and data clarity. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  inset: 0.8rem auto auto 0.8rem;
  z-index: 200;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  transform: translateY(-180%);
}

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

.hero,
.hero-content,
.hero-showcase,
.hero-figure,
.content-grid,
.article-copy {
  min-width: 0;
}

.hero-figure-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 249, 239, 0.88);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-state-toggle {
  display: flex;
  gap: 0.3rem;
}

.hero-state-toggle button {
  min-height: 34px;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(21, 21, 21, 0.45);
  border-radius: 5px;
  background: #fffdf6;
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.hero-state-toggle button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.webgl-fallback[hidden] {
  display: none;
}

.webgl-fallback {
  display: grid;
  gap: 0;
  background: #fffdf6;
}

.webgl-fallback img {
  display: block;
  width: 100%;
  height: auto;
}

.webgl-fallback p {
  margin: 0;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.webgl-unavailable #hero-canvas {
  display: none;
}

.render-unavailable canvas {
  display: none;
}

.scope-note {
  margin-top: 1.2rem;
  padding: 0.8rem 0.95rem;
  border-left: 4px solid var(--cyan);
  background: rgba(14, 165, 183, 0.08);
  color: #484943;
  font-size: 0.84rem;
}

.mobile-swipe-hint {
  display: none;
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

canvas {
  touch-action: pan-y !important;
}

.button.primary {
  color: var(--ink);
}

.scene-heading span {
  color: #4d514c;
  font-size: 0.68rem;
}

.section-kicker {
  color: #9a361f;
}

.pattern-badge,
.result-pattern {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.22rem 0.45rem;
  border: 1px solid rgba(21, 21, 21, 0.28);
  border-radius: 999px;
  background: #fffdf6;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pattern-badge[data-pattern="inversion"],
.result-inversion .result-pattern {
  border-color: rgba(239, 90, 60, 0.55);
  background: rgba(239, 90, 60, 0.13);
}

.pattern-badge[data-pattern="tie-split"],
.result-tie-split .result-pattern {
  border-color: rgba(14, 165, 183, 0.52);
  background: rgba(14, 165, 183, 0.12);
}

.pattern-badge[data-pattern="compounded-gap"],
.result-compounded-gap .result-pattern {
  border-color: rgba(109, 91, 208, 0.48);
  background: rgba(109, 91, 208, 0.11);
}

.table-scroll {
  margin: 1.6rem 0 2rem;
  overflow-x: auto;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
  box-shadow: 6px 6px 0 var(--cyan);
  -webkit-overflow-scrolling: touch;
}

.comparison-table.doppel-table {
  display: table;
  width: 100%;
  min-width: 760px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.74rem;
  table-layout: fixed;
}

.doppel-table thead,
.doppel-table tbody {
  display: table-row-group;
}

.doppel-table tr {
  display: table-row;
  background: transparent;
}

.doppel-table th,
.doppel-table td {
  display: table-cell;
  padding: 0.72rem 0.55rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.doppel-table th:last-child,
.doppel-table td:last-child {
  border-right: 0;
}

.doppel-table tbody tr:last-child th,
.doppel-table tbody tr:last-child td {
  border-bottom: 0;
}

.doppel-table thead th {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.64rem;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
}

.doppel-table thead th:first-child,
.doppel-table tbody th {
  width: 155px;
  text-align: left;
}

.doppel-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 155px;
  background: #fffdf6;
  font-family: var(--sans);
  font-size: 0.82rem;
  white-space: normal;
}

.doppel-table tbody th .result-pattern {
  display: flex;
  margin: 0.38rem 0 0;
}

.doppel-table .result-inversion th {
  box-shadow: inset 5px 0 0 var(--coral);
}

.doppel-table .result-tie-split th {
  box-shadow: inset 5px 0 0 var(--cyan);
}

.doppel-table .result-compounded-gap th {
  box-shadow: inset 5px 0 0 var(--violet);
}

.artifact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.45rem 2rem;
}

.site-footer > div {
  display: grid;
  gap: 0.2rem;
}

.site-footer p {
  grid-column: 1;
  margin: 0;
  color: rgba(255, 249, 239, 0.7);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.site-footer nav {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: #fff;
}

.primer-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem 0.8rem;
  padding: 0.75rem 0.85rem 0.9rem;
  border-top: 1px solid var(--line);
  background: rgba(14, 165, 183, 0.07);
  color: #3f423e;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
}

.primer-control output {
  color: var(--teal);
  font-size: 0.75rem;
}

.primer-control input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  accent-color: var(--coral);
  touch-action: pan-y;
}

.primer-stepper {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 0 0.85rem 0.8rem;
  background: rgba(14, 165, 183, 0.07);
}

.primer-stepper button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(21, 21, 21, 0.55);
  border-radius: 5px;
  background: #fffdf6;
  color: var(--ink);
  font: 800 1rem/1 var(--mono);
  cursor: pointer;
}

.primer-stepper button:hover,
.primer-stepper button:focus-visible {
  border-color: var(--ink);
  background: var(--yellow);
}

.lab-webgl-fallback {
  display: none;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
  box-shadow: 5px 5px 0 var(--yellow);
}

.lab-webgl-fallback strong,
.lab-webgl-fallback span {
  display: block;
}

.lab-webgl-fallback span {
  color: var(--muted);
  font-size: 0.82rem;
}

.noscript-lab {
  padding: 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
  box-shadow: 5px 5px 0 var(--yellow);
}

.noscript-lab p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.webgl-unavailable .lab-webgl-fallback {
  display: grid;
}

.webgl-unavailable .reveal-controls,
.webgl-unavailable .scene-grid,
.webgl-unavailable .mobile-swipe-hint {
  display: none;
}

.render-unavailable::before {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 1rem;
  color: var(--muted);
  content: "3D preview unavailable";
  font-family: var(--mono);
  font-size: 0.7rem;
  text-align: center;
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-swipe-hint {
    display: block;
  }

  .scene-grid.three-up {
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 0.7rem;
    max-width: 100%;
    overflow-x: auto;
    padding: 0.25rem 0.1rem 0.8rem;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .scene-grid.three-up .scene-card {
    scroll-snap-align: center;
  }
}

@media (max-width: 700px) {
  .topbar {
    overflow: visible;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-links a:nth-child(2),
  .nav-links a:nth-child(5) {
    display: block;
  }

  .hero {
    width: 100%;
    padding-inline: 18px;
  }

  .hero-content,
  .hero-figure,
  .hero-showcase,
  .eyebrow,
  .subtitle {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .eyebrow {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.8rem, 13vw, 3.55rem);
    line-height: 0.95;
    overflow-wrap: normal;
  }

  .article-copy h2 {
    max-width: 100%;
    font-size: clamp(2.25rem, 11vw, 3.3rem);
    overflow-wrap: anywhere;
  }

  .hero-figure-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-state-toggle {
    width: 100%;
  }

  .hero-state-toggle button {
    flex: 1;
  }

  .mobile-swipe-hint {
    display: block;
  }

  .scene-grid.three-up {
    display: flex;
    gap: 0.7rem;
    max-width: 100%;
    overflow-x: auto;
    padding: 0.25rem 0.1rem 0.8rem;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .scene-grid.three-up .scene-card {
    flex: 0 0 calc(100vw - 58px);
    max-width: calc(100vw - 58px);
    scroll-snap-align: center;
  }

  .table-scroll {
    margin-inline: -4px;
    box-shadow: 4px 4px 0 var(--cyan);
  }

  .artifact-actions {
    display: grid;
  }

  .artifact-actions .button {
    justify-content: center;
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-footer p,
  .site-footer nav {
    grid-column: 1;
    grid-row: auto;
  }

  .site-footer nav {
    justify-content: flex-start;
    margin-top: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reading-progress span {
    transition: none;
  }
}
