:root {
  --black: #050505;
  --charcoal: #0b0b0a;
  --ink: #15120d;
  --paper: #e6d7b7;
  --paper-2: #cdbb92;
  --gold: #d8a339;
  --hot-gold: #f6c45f;
  --pink: #ff3fb4;
  --bone: #d9d0b7;
  --poison: #9aa36a;
  --red: #ff3b30;
  --line: rgba(230, 215, 183, 0.22);
  --rail: 184px;
  --display: "Inter Tight", Impact, sans-serif;
  --body: "Inter Tight", system-ui, sans-serif;
  --mono: "Space Mono", monospace;
  --mx: 0;
  --my: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

@media (pointer: fine) {
  html,
  body,
  a,
  button,
  input,
  label,
  [role="button"] {
    cursor: url("../assets/brush-cursor.svg") 4 34, auto;
  }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--body);
  font-weight: 300;
  overflow-x: hidden;
}

::selection {
  background: rgba(78, 25, 38, 0.92);
  color: #f2dec1;
  text-shadow: 0 1px 0 rgba(5, 5, 5, 0.42);
}

::-moz-selection {
  background: rgba(78, 25, 38, 0.92);
  color: #f2dec1;
  text-shadow: 0 1px 0 rgba(5, 5, 5, 0.42);
}

a {
  color: inherit;
  text-decoration: none;
}

.paint-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  width: 42px;
  height: 42px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transform-origin: 15px 15px;
  transition: opacity 180ms ease;
  mix-blend-mode: multiply;
}

.paint-cursor.is-visible {
  opacity: 1;
}

.paint-cursor.is-pressed {
  opacity: 0.82;
}

.paint-cursor.is-link {
  opacity: 0.5;
}

.paint-cursor__handle,
.paint-cursor__ferrule,
.paint-cursor__bristles,
.paint-cursor__stain {
  position: absolute;
  display: block;
}

.paint-cursor__handle {
  display: none;
}

.paint-cursor__ferrule {
  display: none;
}

.paint-cursor__bristles {
  left: 4px;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 58% 42% 68% 32%;
  background:
    radial-gradient(circle at 42% 44%, rgba(105, 39, 67, 0.58), transparent 0 28%, transparent 62%),
    radial-gradient(circle, rgba(64, 21, 34, 0.48), rgba(64, 21, 34, 0.02) 70%);
  filter: blur(1.4px);
}

.paint-cursor__stain {
  left: 0;
  top: 18px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 42%, rgba(91, 29, 45, 0.42), rgba(91, 29, 45, 0.1) 46%, transparent 72%),
    radial-gradient(circle at 70% 64%, rgba(216, 163, 57, 0.12), transparent 38%);
  opacity: 0;
  transform: scale(0.62);
  transition: opacity 180ms ease, transform 180ms ease;
}

.paint-cursor.is-pressed .paint-cursor__stain {
  opacity: 1;
  transform: scale(1);
}

@media (pointer: coarse), (max-width: 760px) {
  .paint-cursor {
    display: none;
  }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
}

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--rail);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(216, 163, 57, 0.24);
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(18px);
}

.rail__mark {
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.rail__mark span {
  color: var(--hot-gold);
}

.rail__mark strong {
  font-family: var(--display);
  font-weight: 900;
  font-size: 19px;
  line-height: 0.95;
}

.rail__nav {
  display: grid;
  gap: 10px;
}

.rail__nav a {
  position: relative;
  padding: 9px 0 9px 18px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(230, 215, 183, 0.62);
}

.rail__nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.rail__nav a.is-active {
  color: var(--hot-gold);
}

.rail__status {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  text-transform: uppercase;
}

.rail__status span {
  color: rgba(230, 215, 183, 0.48);
  font-size: 10px;
}

.rail__status strong {
  font-size: 13px;
  color: var(--hot-gold);
}

.mobile-bar {
  display: none;
}

main {
  margin-left: var(--rail);
}

.chapter {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: var(--black);
}

.chapter__veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 58% 44%, transparent 0 24%, rgba(5, 5, 5, 0.44) 48%, rgba(5, 5, 5, 0.96) 88%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.95), transparent 36%, rgba(5, 5, 5, 0.7));
}

.portrait {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-position: center;
  background-size: cover;
  transform: scale(1.05);
}

.portrait--newcomb {
  background-image:
    linear-gradient(90deg, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.18) 44%, rgba(5, 5, 5, 0.9) 100%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.94) 0%, transparent 34%),
    url("../assets/references/simon-newcomb-loc-public-domain.jpg");
  background-position: 53% center;
  filter: sepia(0.55) saturate(0.92) contrast(1.22) brightness(0.74);
}

.portrait--newcomb::after {
  content: "";
  position: absolute;
  inset: 7% 26% 10% 33%;
  border: 1px solid rgba(246, 196, 95, 0.28);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(216, 163, 57, 0.03),
    0 0 120px rgba(216, 163, 57, 0.18);
}

.hero__content,
.chapter__copy {
  position: relative;
  z-index: 5;
  width: min(1040px, calc(100vw - var(--rail) - 64px));
  padding: 0 48px 72px;
}

.hero h1,
.chapter h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(64px, 13vw, 176px);
  line-height: 0.78;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--paper);
  text-shadow: 0 8px 36px rgba(0, 0, 0, 0.55);
}

.chapter h2 {
  font-size: clamp(76px, 18vw, 245px);
}

.kicker {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--hot-gold);
  text-transform: uppercase;
}

.subtitle {
  max-width: 720px;
  margin: 22px 0 0;
  font: italic 300 clamp(24px, 3vw, 44px) / 1.08 var(--body);
  color: rgba(230, 215, 183, 0.88);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid rgba(230, 215, 183, 0.24);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.button svg {
  width: 16px;
  height: 16px;
}

.button--gold {
  background: var(--hot-gold);
  border-color: var(--hot-gold);
  color: var(--black);
}

.button--ghost {
  background: rgba(5, 5, 5, 0.34);
  backdrop-filter: blur(14px);
}

.hero-panel {
  position: absolute;
  z-index: 6;
  right: 40px;
  bottom: 46px;
  width: min(356px, calc(100vw - var(--rail) - 80px));
  padding: 18px;
  border: 1px solid rgba(246, 196, 95, 0.26);
  background: rgba(8, 7, 5, 0.64);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.hero-panel__top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  text-transform: uppercase;
}

.hero-panel__top span {
  color: rgba(230, 215, 183, 0.62);
  font-size: 12px;
}

.hero-panel__top strong {
  color: var(--hot-gold);
  font-size: 24px;
}

.mini-chart {
  height: 126px;
  display: grid;
  align-items: end;
  grid-template-columns: repeat(9, 1fr);
  gap: 6px;
  margin: 22px 0;
  border-bottom: 1px solid rgba(230, 215, 183, 0.18);
}

.mini-chart span {
  display: block;
  height: var(--h);
  background: linear-gradient(180deg, var(--hot-gold), rgba(216, 163, 57, 0.2));
}

.hero-panel dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-family: var(--mono);
}

.hero-panel dt {
  font-size: 10px;
  color: rgba(230, 215, 183, 0.5);
  text-transform: uppercase;
}

.hero-panel dd {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--paper);
}

.manifesto {
  position: relative;
  overflow: hidden;
  padding: 112px clamp(26px, 7vw, 108px);
  background:
    linear-gradient(90deg, rgba(230, 215, 183, 0.95), rgba(230, 215, 183, 0.68) 58%, rgba(230, 215, 183, 0.3)),
    #100d0a;
  color: var(--ink);
}

.manifesto p {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  margin: 0;
  font: 300 clamp(34px, 6vw, 84px) / 0.98 var(--body);
}

.manifesto p + p {
  margin-top: 34px;
  color: rgba(21, 18, 13, 0.68);
}

.detail-band {
  position: relative;
  overflow: hidden;
  padding: 84px clamp(24px, 6vw, 96px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    var(--paper);
  background-size: 52px 52px;
  color: var(--ink);
}

.detail-band > :not(.section-art) {
  position: relative;
  z-index: 2;
}

.detail-band--dark {
  background: #0a0907;
  color: var(--paper);
}

.detail-band--visual {
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.94), rgba(5, 5, 5, 0.72) 44%, rgba(5, 5, 5, 0.88)),
    radial-gradient(circle at calc(62% + var(--mx) * 12%) calc(28% + var(--my) * 10%), rgba(217, 208, 183, 0.08), transparent 20%),
    radial-gradient(circle at calc(70% + var(--mx) * -8%) calc(18% + var(--my) * 8%), rgba(106, 67, 126, 0.18), transparent 26%),
    var(--detail-img) calc(50% + var(--mx) * -18px) calc(50% + var(--my) * -12px) / cover no-repeat,
    #080806;
}

.detail-band--visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at calc(50% + var(--mx) * 18%) calc(42% + var(--my) * 14%), rgba(217, 208, 183, 0.09), transparent 18%),
    repeating-linear-gradient(0deg, rgba(217, 208, 183, 0.035) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, rgba(5, 5, 5, 0.1), rgba(5, 5, 5, 0.46));
  mix-blend-mode: overlay;
}

.detail-band--books {
  --detail-img: url("../assets/generated/newcomb-law-books.png");
}

.detail-band--tribunal {
  --detail-img: url("../assets/generated/newcomb-fraud-tribunal.png");
}

.detail-band--altar {
  --detail-img: url("../assets/generated/newcomb-timing-altar.png");
}

.detail-band--vault {
  --detail-img: url("../assets/generated/newcomb-distribution-vault.png");
}

.detail-band--visual .text-lockup p,
.detail-band--visual .feature-grid p {
  color: rgba(230, 215, 183, 0.68);
}

.detail-band--visual .feature-grid,
.detail-band--visual .wide-panel {
  border-color: rgba(230, 215, 183, 0.18);
  background: rgba(230, 215, 183, 0.12);
}

.detail-band--visual .feature-grid article,
.detail-band--visual .wide-panel div,
.detail-band--visual .flow div {
  background:
    linear-gradient(180deg, rgba(217, 208, 183, 0.06), rgba(217, 208, 183, 0.025)),
    rgba(5, 5, 5, 0.76);
  border-color: rgba(230, 215, 183, 0.12);
  color: var(--paper);
  backdrop-filter: blur(8px);
}

.text-lockup {
  max-width: 1120px;
  margin-bottom: 42px;
  columns: 2;
  column-gap: 52px;
}

.text-lockup p {
  margin: 0 0 18px;
  font-size: clamp(21px, 2.2vw, 34px);
  line-height: 1.1;
  font-weight: 300;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(21, 18, 13, 0.18);
  background: rgba(21, 18, 13, 0.2);
}

.detail-band--dark .feature-grid {
  border-color: rgba(230, 215, 183, 0.18);
  background: rgba(230, 215, 183, 0.18);
}

.feature-grid article {
  min-height: 232px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: rgba(230, 215, 183, 0.96);
}

.detail-band--dark .feature-grid article {
  background: #0d0b08;
}

.feature-grid span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
}

.feature-grid h2,
.feature-grid h3 {
  margin: auto 0 12px;
  font-size: clamp(23px, 2.5vw, 42px);
  line-height: 0.98;
  letter-spacing: 0;
}

.feature-grid p {
  margin: 0;
  max-width: 330px;
  line-height: 1.34;
  color: rgba(21, 18, 13, 0.7);
}

.detail-band--dark .feature-grid p {
  color: rgba(230, 215, 183, 0.62);
}

.chapter__scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.chapter__scene::before {
  content: "";
  position: absolute;
  inset: -7%;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.02), rgba(5, 5, 5, 0.18)),
    var(--scene-img, none) calc(50% + var(--mx) * -24px) calc(50% + var(--my) * -16px) / cover no-repeat;
  transform: translate3d(calc(var(--mx) * 10px), calc(var(--my) * 7px), 0) scale(1.04);
  filter: brightness(0.66) saturate(0.86) contrast(1.16);
  will-change: transform, filter;
}

.chapter__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(circle at calc(50% + var(--mx) * 18%) calc(42% + var(--my) * 12%), rgba(217, 208, 183, 0.08), transparent 19%),
    radial-gradient(circle at 50% 40%, transparent 0 19%, rgba(5, 5, 5, 0.54) 54%, #050505 100%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.98), transparent 48%, rgba(5, 5, 5, 0.72));
  mix-blend-mode: normal;
}

.chapter__scene > * {
  position: absolute;
  z-index: 2;
}

.chapter__copy--right {
  justify-self: end;
  text-align: right;
}

.chapter__copy--right .subtitle {
  margin-left: auto;
}

.scene--law {
  --scene-img: url("../assets/generated/newcomb-law-books.png");
}

.manifesto-art {
  position: absolute;
  z-index: 1;
  width: min(44vw, 560px);
  aspect-ratio: 1.58;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.02), rgba(5, 5, 5, 0.36)),
    var(--art-img) center / cover no-repeat;
  border: 1px solid rgba(21, 18, 13, 0.22);
  box-shadow: 0 34px 90px rgba(5, 5, 5, 0.3);
  opacity: 0.92;
  filter: saturate(0.88) contrast(1.05);
}

.manifesto-art--books {
  --art-img: url("../assets/generated/newcomb-law-books.png");
  right: -8vw;
  top: 38px;
  transform: rotate(3deg);
}

.manifesto-art--altar {
  --art-img: url("../assets/generated/newcomb-timing-altar.png");
  right: 10vw;
  bottom: -98px;
  transform: rotate(-5deg);
  opacity: 0.64;
}

.section-art {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  min-height: clamp(280px, 42vw, 560px);
  margin: 0 0 28px;
  overflow: hidden;
  border: 1px solid rgba(21, 18, 13, 0.22);
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.08), rgba(5, 5, 5, 0.48)),
    radial-gradient(circle at calc(58% + var(--mx) * 10%) calc(35% + var(--my) * 10%), rgba(217, 208, 183, 0.08), transparent 22%),
    var(--art-img) calc(50% + var(--mx) * -22px) calc(50% + var(--my) * -14px) / cover no-repeat;
  box-shadow: 0 42px 120px rgba(5, 5, 5, 0.18);
  transform-origin: center;
}

.detail-band--dark .section-art {
  border-color: rgba(230, 215, 183, 0.18);
  box-shadow: 0 42px 140px rgba(0, 0, 0, 0.42);
}

.section-art::before,
.section-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.section-art::before {
  background:
    radial-gradient(circle at calc(62% + var(--mx) * 12%) calc(36% + var(--my) * 10%), transparent 0 22%, rgba(5, 5, 5, 0.34) 55%, rgba(5, 5, 5, 0.78) 100%),
    repeating-linear-gradient(90deg, rgba(217, 208, 183, 0.035) 0 1px, transparent 1px 7px);
  mix-blend-mode: overlay;
}

.section-art::after {
  inset: auto 22px 22px auto;
  width: min(220px, 34vw);
  height: 1px;
  background: rgba(217, 208, 183, 0.55);
  box-shadow:
    -42px -34px 0 rgba(217, 208, 183, 0.32),
    -110px -86px 0 rgba(217, 208, 183, 0.2);
}

.section-art--books {
  --art-img: url("../assets/generated/newcomb-law-books.png");
}

.section-art--tribunal {
  --art-img: url("../assets/generated/newcomb-fraud-tribunal.png");
}

.section-art--altar {
  --art-img: url("../assets/generated/newcomb-timing-altar.png");
}

.section-art--vault {
  --art-img: url("../assets/generated/newcomb-distribution-vault.png");
}

.book-pages {
  inset: 10% 16% 12% 22%;
  background:
    repeating-linear-gradient(0deg, rgba(217, 208, 183, 0.18) 0 1px, transparent 1px 13px),
    linear-gradient(115deg, transparent, rgba(216, 163, 57, 0.2) 48%, transparent);
  opacity: 0.22;
  transform: rotate(-5deg) scale(0.9);
  filter: blur(0.2px);
  box-shadow: 0 60px 160px rgba(0, 0, 0, 0.28);
  mix-blend-mode: soft-light;
}

.gold-curve,
.fraud-lines,
.surcharge-curve {
  inset: 18% 12%;
  background:
    linear-gradient(120deg, transparent 0 18%, rgba(246, 196, 95, 0.72) 18% 19%, transparent 19% 100%),
    linear-gradient(150deg, transparent 0 38%, rgba(246, 196, 95, 0.52) 38% 39%, transparent 39% 100%);
  filter: drop-shadow(0 0 18px rgba(246, 196, 95, 0.34));
}

.lab-scene {
  --scene-img: url("../assets/generated/newcomb-fraud-tribunal.png");
  background:
    radial-gradient(circle at 66% 42%, rgba(82, 99, 93, 0.42), transparent 24%),
    linear-gradient(120deg, #040504 0%, #0f1512 48%, #050505 100%);
}

.lab-figure {
  right: 15%;
  bottom: 9%;
  width: min(360px, 34vw);
  aspect-ratio: 0.72;
  border-radius: 48% 48% 9% 9%;
  background:
    radial-gradient(circle at 50% 20%, #c9b08a 0 8%, #594533 12%, transparent 18%),
    linear-gradient(180deg, transparent 0 30%, #1a1f1b 31% 100%);
  box-shadow:
    0 0 0 1px rgba(230, 215, 183, 0.12),
    0 40px 130px rgba(0, 0, 0, 0.65);
}

.timing-scene {
  --scene-img: url("../assets/generated/newcomb-timing-altar.png");
  background:
    linear-gradient(90deg, rgba(216, 163, 57, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 26% 50%, rgba(246, 196, 95, 0.14), transparent 20%),
    #050505;
  background-size: 80px 80px, auto, auto;
}

.pulse-row {
  left: 12%;
  right: 12%;
  height: 3px;
  background: rgba(230, 215, 183, 0.16);
}

.pulse-row::before {
  content: "";
  position: absolute;
  inset: -7px 0;
  background:
    radial-gradient(circle, var(--hot-gold) 0 5px, transparent 6px) 2% 50% / 120px 100% repeat-x,
    radial-gradient(circle, rgba(246, 196, 95, 0.7) 0 4px, transparent 5px) 34% 50% / 173px 100% repeat-x;
}

.pulse-row--organic {
  top: 38%;
}

.pulse-row--bot {
  top: 59%;
}

.pulse-row--bot::before {
  background: radial-gradient(circle, var(--red) 0 5px, transparent 6px) 0 50% / 92px 100% repeat-x;
}

.hook-scene {
  --scene-img: url("../assets/generated/newcomb-timing-altar.png");
  background: radial-gradient(circle at 50% 50%, rgba(216, 163, 57, 0.16), transparent 28%), #050505;
}

.ring {
  top: 50%;
  left: 50%;
  width: min(58vw, 680px);
  aspect-ratio: 1;
  border: 1px solid rgba(246, 196, 95, 0.42);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 120px rgba(216, 163, 57, 0.08), 0 0 120px rgba(216, 163, 57, 0.1);
}

.ring::before {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px dashed rgba(230, 215, 183, 0.26);
  border-radius: inherit;
}

.slot-map {
  inset: 22% 20%;
  background:
    repeating-conic-gradient(from 0deg, rgba(246, 196, 95, 0.44) 0deg 1deg, transparent 1deg 5deg);
  border-radius: 50%;
  opacity: 0.34;
}

.benford-panel {
  max-width: 1120px;
  padding: 28px;
  border: 1px solid rgba(21, 18, 13, 0.24);
  background: rgba(21, 18, 13, 0.86);
  color: var(--paper);
}

.benford-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  font-family: var(--mono);
  text-transform: uppercase;
}

.benford-panel__head span {
  color: rgba(230, 215, 183, 0.55);
}

.benford-panel__head em {
  color: var(--hot-gold);
  font-style: normal;
}

.bars {
  height: 320px;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 12px;
  align-items: end;
}

.bars div {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
  align-items: end;
  font-family: var(--mono);
  text-align: center;
}

.bars span {
  display: block;
  height: calc(var(--observed) * 2.7%);
  background: linear-gradient(180deg, var(--hot-gold), rgba(216, 163, 57, 0.16));
  transform-origin: bottom;
  box-shadow: 0 0 28px rgba(216, 163, 57, 0.16);
}

.bars b {
  font-weight: 400;
  color: rgba(230, 215, 183, 0.64);
}

.surcharge-scene {
  --scene-img: url("../assets/generated/newcomb-fraud-tribunal.png");
  background:
    linear-gradient(90deg, rgba(230, 215, 183, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(230, 215, 183, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 72% 34%, rgba(255, 59, 48, 0.13), transparent 22%),
    #050505;
  background-size: 80px 80px, 80px 80px, auto, auto;
}

.surcharge-curve {
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(255, 59, 48, 0.78) 48% 49%, transparent 49%),
    radial-gradient(circle at 78% 24%, rgba(255, 59, 48, 0.42), transparent 12%);
}

.distribution-scene {
  --scene-img: url("../assets/generated/newcomb-distribution-vault.png");
  background: radial-gradient(circle at 50% 48%, rgba(216, 163, 57, 0.18), transparent 28%), #050505;
}

.vault {
  inset: 22% 26%;
  border: 1px solid rgba(246, 196, 95, 0.38);
  background:
    linear-gradient(90deg, transparent 49%, rgba(246, 196, 95, 0.28) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(246, 196, 95, 0.28) 50%, transparent 51%);
  box-shadow: 0 0 120px rgba(216, 163, 57, 0.13);
  transform: perspective(800px) rotateX(58deg) rotateZ(45deg);
}

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-size: clamp(21px, 3vw, 48px);
  text-transform: uppercase;
}

.flow div {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(21, 18, 13, 0.2);
  background: rgba(255, 255, 255, 0.16);
  text-align: center;
}

.flow svg {
  color: var(--gold);
}

.invariant-scene {
  --scene-img: url("../assets/generated/newcomb-distribution-vault.png");
  background:
    radial-gradient(circle at 50% 50%, rgba(246, 196, 95, 0.14), transparent 30%),
    repeating-radial-gradient(circle at 50% 50%, rgba(246, 196, 95, 0.1) 0 1px, transparent 1px 44px),
    #050505;
}

.final-orbit {
  inset: 14%;
  border: 1px solid rgba(246, 196, 95, 0.32);
  border-radius: 50%;
}

.final-orbit::before,
.final-orbit::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(230, 215, 183, 0.18);
  border-radius: 50%;
  transform: rotate(24deg) scaleX(0.62);
}

.final-orbit::after {
  transform: rotate(-24deg) scaleX(0.62);
}

.wide-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(21, 18, 13, 0.2);
  border: 1px solid rgba(21, 18, 13, 0.2);
}

.wide-panel div {
  min-height: 210px;
  padding: 24px;
  display: grid;
  align-content: space-between;
  background: rgba(255, 255, 255, 0.16);
}

.wide-panel span {
  font-family: var(--mono);
  color: var(--gold);
  text-transform: uppercase;
}

.wide-panel strong {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 80px);
  line-height: 0.86;
  text-transform: uppercase;
}

.footer {
  min-height: 58svh;
  display: grid;
  align-content: center;
  gap: 26px;
  padding: 72px clamp(24px, 6vw, 96px);
  background: var(--black);
  color: var(--paper);
}

.footer p {
  max-width: 1040px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(54px, 11vw, 168px);
  line-height: 0.82;
  text-transform: uppercase;
}

.footer span {
  font-family: var(--mono);
  color: rgba(230, 215, 183, 0.52);
  text-transform: uppercase;
}

@media (max-width: 960px) {
  :root {
    --rail: 0px;
  }

  .rail {
    display: none;
  }

  .mobile-bar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 45;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid rgba(216, 163, 57, 0.24);
    background: rgba(5, 5, 5, 0.78);
    backdrop-filter: blur(16px);
    font-family: var(--mono);
    text-transform: uppercase;
    font-size: 12px;
  }

  main {
    margin-left: 0;
  }

  .hero__content,
  .chapter__copy {
    width: 100%;
    padding: 0 20px 92px;
  }

  .hero__content {
    padding-bottom: 344px;
  }

  .hero-panel {
    left: 20px;
    right: 20px;
    bottom: 18px;
    width: auto;
    padding: 14px;
  }

  .hero h1 {
    font-size: clamp(50px, 16vw, 82px);
  }

  .chapter h2 {
    font-size: clamp(58px, 19vw, 118px);
  }

  .subtitle {
    max-width: 92vw;
  }

  .manifesto {
    padding: 72px 20px;
  }

  .detail-band {
    padding: 54px 18px;
  }

  .feature-grid,
  .wide-panel,
  .flow {
    grid-template-columns: 1fr;
  }

  .flow svg {
    transform: rotate(90deg);
    margin: 5px auto;
  }

  .text-lockup {
    columns: 1;
  }

  .bars {
    height: 230px;
    gap: 7px;
  }

  .chapter__copy--right {
    justify-self: start;
    text-align: left;
  }

  .chapter__copy--right .subtitle {
    margin-left: 0;
  }

  .portrait--newcomb {
    background-position: 58% center;
  }
}

/* Renaissance Edition pass */
.top-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 48;
  height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.34);
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}

.nav-button {
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-shadow: inherit;
}

.top-nav__brand,
.top-nav__center,
.top-nav__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-nav__center {
  justify-content: center;
}

.top-nav__right {
  justify-content: flex-end;
}

.top-nav__brand span:last-child {
  opacity: 0.68;
}

.mark-dot {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: #fff;
  color: #171713;
  font-weight: 900;
  text-shadow: none;
}

.top-cta {
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #171713;
  text-shadow: none;
}

.x-link,
.pump-link {
  width: 34px;
  height: 34px;
  justify-content: center;
  border: 1px solid rgba(217, 208, 183, 0.34);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.28);
  color: currentColor;
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.x-link:hover,
.pump-link:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 208, 183, 0.72);
  background: rgba(217, 208, 183, 0.14);
}

.x-link svg,
.pump-link img {
  width: 16px;
  height: 16px;
  display: block;
}

.x-link svg {
  fill: currentColor;
}

.pump-link img {
  width: 21px;
  height: 21px;
  filter: saturate(0.95) contrast(1.02);
}

.editions-popover {
  position: fixed;
  top: 48px;
  left: 50%;
  z-index: 52;
  width: min(430px, calc(100vw - 28px));
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgba(217, 208, 183, 0.22);
  background: rgba(8, 9, 7, 0.86);
  color: var(--bone);
  backdrop-filter: blur(24px);
  transform: translate(-50%, -12px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
  text-shadow: none;
}

body.is-editions-open .editions-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.editions-popover a {
  min-height: 96px;
  display: grid;
  align-content: end;
  padding: 12px;
  border: 1px solid rgba(217, 208, 183, 0.18);
  background:
    radial-gradient(circle at 70% 20%, rgba(141, 28, 83, 0.38), transparent 34%),
    rgba(217, 208, 183, 0.07);
}

.editions-popover strong {
  font-size: 22px;
  line-height: 0.9;
}

.editions-popover span {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.65;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 6, 5, 0.86);
  color: var(--bone);
  backdrop-filter: blur(26px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

body.is-search-open .search-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.is-orb-transition::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  background:
    radial-gradient(circle at 77% 16%, rgba(105, 61, 126, 0.5), rgba(16, 10, 19, 0.88) 24%, rgba(5, 5, 4, 0.98) 64%),
    url("../assets/generated/newcomb-about-story.png") center / cover no-repeat;
  mix-blend-mode: normal;
  animation: orbFlash 980ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body.is-orb-transition .story-orb {
  filter: brightness(1.08) saturate(0.95);
  transform: translate3d(calc(var(--mx) * -14px), calc(var(--my) * -10px), 0) scale(8);
  opacity: 0.18;
}

@keyframes orbFlash {
  0% { opacity: 0; transform: scale(0.62); }
  35% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.22); }
}

.search-overlay button {
  position: absolute;
  top: 22px;
  right: 22px;
  border: 0;
  background: var(--bone);
  color: #11110e;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
}

.search-overlay label {
  width: min(880px, 100%);
  display: grid;
  gap: 22px;
}

.search-overlay span {
  font-size: clamp(54px, 10vw, 140px);
  font-weight: 900;
  line-height: 0.8;
}

.search-overlay input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(217, 208, 183, 0.62);
  background: transparent;
  color: var(--bone);
  padding: 14px 0;
  font: 300 clamp(26px, 4vw, 56px) / 1 var(--body);
  outline: 0;
}

body.is-renaissance .rail {
  display: none;
}

body.is-renaissance main {
  margin-left: 0;
}

.chapter--newcomb {
  background: #687f77;
  align-items: stretch;
  --mx: 0;
  --my: 0;
  --orbX: 0;
  --orbY: 0;
  --scrollDepth: 0;
}

.renaissance-world {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.02), rgba(5, 5, 5, 0.16)),
    url("../assets/generated/newcomb-renaissance-hero.png") center / cover no-repeat;
}

.renaissance-world::before,
.renaissance-world::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.renaissance-world::before {
  background:
    radial-gradient(circle at calc(50% + var(--mx) * 16%) calc(44% + var(--my) * 12%), rgba(217, 208, 183, 0.08), transparent 21%),
    linear-gradient(90deg, rgba(5, 5, 4, 0.42), transparent 30%, transparent 67%, rgba(5, 5, 4, 0.3));
  mix-blend-mode: soft-light;
}

.renaissance-world::after {
  background-image:
    repeating-linear-gradient(0deg, rgba(247, 247, 238, 0.035) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(41, 41, 25, 0.04) 0 1px, transparent 1px 5px);
  opacity: 0.42;
  mix-blend-mode: overlay;
}

.renaissance-world .painted-sky,
.renaissance-world .garden,
.renaissance-world .portrait,
.renaissance-world .benford-apparition,
.renaissance-world .floating {
  display: none;
}

.painted-sky {
  position: absolute;
  inset: -8% -4% 34%;
  background:
    radial-gradient(ellipse at 18% 18%, rgba(245, 217, 204, 0.8) 0 10%, transparent 23%),
    radial-gradient(ellipse at 52% 18%, rgba(246, 221, 206, 0.74) 0 9%, transparent 20%),
    radial-gradient(ellipse at 78% 25%, rgba(244, 221, 205, 0.76) 0 11%, transparent 22%),
    linear-gradient(180deg, #5b7f89 0%, #839489 100%);
  filter: saturate(0.78) contrast(0.92);
}

.garden {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -8%;
  height: 49%;
  background:
    radial-gradient(ellipse at 7% 76%, #e3d9c6 0 7%, transparent 15%),
    radial-gradient(ellipse at 28% 86%, #efe9da 0 8%, transparent 17%),
    radial-gradient(ellipse at 84% 78%, #ddd4c1 0 9%, transparent 18%),
    radial-gradient(ellipse at 3% 18%, #17351e 0 14%, transparent 25%),
    radial-gradient(ellipse at 23% 36%, #274a2d 0 16%, transparent 29%),
    radial-gradient(ellipse at 76% 33%, #19391f 0 16%, transparent 29%),
    linear-gradient(180deg, transparent 0%, #172919 67%, #091108 100%);
  filter: saturate(0.85);
}

.garden--back {
  bottom: 12%;
  height: 34%;
  opacity: 0.72;
  transform: scale(1.08);
}

.garden--front {
  z-index: 3;
}

.chapter--newcomb .chapter__veil {
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.05), rgba(5, 5, 5, 0.12) 58%, rgba(5, 5, 5, 0.24) 100%),
    radial-gradient(ellipse at 52% 48%, transparent 0 39%, rgba(12, 18, 12, 0.18) 65%, rgba(0, 0, 0, 0.38) 100%);
}

.edition-frame {
  position: absolute;
  z-index: 8;
  top: 27%;
  left: 50%;
  width: min(360px, 28vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  display: grid;
  place-content: center;
  border: 2px solid rgba(255, 255, 255, 0.74);
  color: #fff;
  font-weight: 900;
  font-size: clamp(30px, 3.1vw, 48px);
  line-height: 0.82;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.edition-frame span,
.edition-frame strong {
  display: block;
}

.edition-frame strong {
  font-style: italic;
}

.edition-frame::before,
.edition-frame::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.82);
}

.edition-frame::before {
  left: -22px;
  top: 22%;
  width: 44px;
  height: 2px;
}

.edition-frame::after {
  left: 17%;
  bottom: -22px;
  width: 2px;
  height: 44px;
}

.chapter--newcomb .portrait--newcomb {
  z-index: 6;
  inset: auto auto -5% -5%;
  width: min(54vw, 730px);
  height: 90%;
  background-image:
    linear-gradient(0deg, rgba(105, 127, 116, 0.16), rgba(105, 127, 116, 0.04)),
    url("../assets/references/simon-newcomb-loc-public-domain.jpg");
  background-position: center;
  background-size: cover;
  filter: sepia(0.42) saturate(0.82) contrast(1.04) brightness(1.16);
  mix-blend-mode: multiply;
  opacity: 0.96;
  transform: rotate(-4deg) scale(1.02);
}

.chapter--newcomb .portrait--newcomb::after {
  display: none;
}

.benford-apparition {
  position: absolute;
  z-index: 5;
  right: -2%;
  bottom: 2%;
  width: min(47vw, 640px);
  aspect-ratio: 0.82;
  border-radius: 48% 48% 20% 20%;
  background:
    radial-gradient(circle at 50% 14%, #bd9270 0 8%, #251711 13%, transparent 20%),
    radial-gradient(ellipse at 52% 34%, #d87b58 0 23%, transparent 24%),
    linear-gradient(140deg, transparent 0 28%, #ebe1d2 29% 68%, transparent 69%),
    linear-gradient(180deg, transparent 0 28%, #111617 29% 48%, #eadfce 49% 100%);
  filter: saturate(0.88) contrast(0.96);
  transform: rotate(8deg);
}

.floating {
  position: absolute;
  z-index: 9;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.28));
}

.floating--cup {
  left: 6%;
  top: 31%;
  width: 48px;
  height: 88px;
  border-radius: 14px 14px 22px 22px;
  background: linear-gradient(90deg, #ff49c3, #ff8edb 48%, #e6009e);
  transform: rotate(-18deg);
}

.floating--ledger {
  left: 18%;
  bottom: 8%;
  width: min(360px, 27vw);
  height: 76px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, var(--pink) 0 14%, transparent 14% 18%, var(--pink) 18% 34%, transparent 34% 42%, var(--pink) 42% 100%),
    #f5efe0;
  border: 3px solid #f6eee0;
  transform: rotate(-12deg);
}

.floating--coin {
  right: 4%;
  top: 38%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #fff1a3, #f7c843 42%, #ad6d00 100%);
  transform: rotate(18deg);
}

.chapter--newcomb .hero__content {
  display: none;
}

.chapter--newcomb .hero-panel {
  z-index: 10;
  right: 34px;
  bottom: 34px;
  width: min(314px, 28vw);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(9px);
  box-shadow: none;
  color: #fff;
}

.chapter--newcomb .hero-panel__top strong {
  color: #fff;
}

.chapter--newcomb .mini-chart span {
  background: linear-gradient(180deg, #fff, rgba(255, 63, 180, 0.78));
}

@media (max-width: 960px) {
  .top-nav {
    grid-template-columns: 1fr auto;
    height: 52px;
  }

  .top-nav__center,
  .top-nav__right .site-link,
  .top-nav__brand span:last-child,
  .mobile-bar {
    display: none;
  }

  .edition-frame {
    top: 20%;
    width: 50vw;
    font-size: 30px;
  }

  .chapter--newcomb .portrait--newcomb {
    left: -32%;
    bottom: 7%;
    width: 98vw;
    height: 66%;
  }

  .benford-apparition {
    right: -45%;
    bottom: 5%;
    width: 92vw;
    opacity: 0.86;
  }

  .floating--ledger {
    width: 64vw;
    left: 13%;
    bottom: 6%;
  }

  .floating--cup,
  .floating--coin {
    display: none;
  }

  .chapter--newcomb .hero-panel {
    width: auto;
    left: 18px;
    right: 18px;
    bottom: 22px;
  }

  .chapter--newcomb .mini-chart {
    height: 88px;
  }

  .chapter--newcomb .hero-panel dl {
    display: none;
  }
}

/* Dark/twisted motion polish */
.top-nav {
  color: var(--bone);
}

.top-cta {
  background: var(--bone);
  color: #11110e;
}

body.is-light-section .top-nav {
  color: #292919;
  text-shadow: none;
}

body.is-light-section .mark-dot,
body.is-light-section .top-cta,
body.is-light-section .x-link,
body.is-light-section .pump-link {
  background: #292919;
  color: #f3efe0;
}

body.is-renaissance .rail {
  inset: 62px auto 0 0;
  width: 168px;
  padding: 0 12px 20px;
  display: flex;
  pointer-events: none;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  color: var(--bone);
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 500ms ease, transform 500ms ease, color 400ms ease;
}

body.is-renaissance.is-index-visible .rail {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

body.is-renaissance.is-light-section .rail {
  color: #292919;
}

body.is-renaissance .rail__mark {
  display: block;
  font-family: var(--body);
  text-transform: none;
  color: currentColor;
}

body.is-renaissance .rail__mark strong {
  font-family: var(--body);
  font-size: 22px;
  font-weight: 900;
  line-height: 0.82;
}

body.is-renaissance .rail__mark em {
  font-style: italic;
  font-weight: 300;
}

body.is-renaissance .rail__nav {
  gap: 0;
  margin-top: auto;
  margin-bottom: 34px;
}

body.is-renaissance .rail__nav a {
  display: grid;
  grid-template-columns: 1fr 22px;
  gap: 6px;
  align-items: baseline;
  padding: 0;
  font-family: var(--body);
  font-size: 19px;
  font-weight: 900;
  line-height: 0.85;
  color: currentColor;
  opacity: 0.48;
  text-transform: none;
}

body.is-renaissance .rail__nav a::before {
  display: none;
}

body.is-renaissance .rail__nav a::after {
  content: "";
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 350ms ease, opacity 350ms ease;
}

body.is-renaissance .rail__nav a b {
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 400;
  opacity: 0.72;
}

body.is-renaissance .rail__nav a.is-active {
  opacity: 1;
  color: currentColor;
}

body.is-renaissance .rail__nav a.is-active::after {
  opacity: 0.72;
  transform: scaleX(1);
}

body.is-renaissance .rail__status {
  display: none;
}

.renaissance-world {
  background: #070806;
}

.dark-hero-art {
  position: absolute;
  inset: -2%;
  background:
    linear-gradient(180deg, rgba(3, 4, 3, 0), rgba(3, 4, 3, 0.16)),
    url("../assets/generated/newcomb-renaissance-hero-dark.png") center / cover no-repeat;
  background-position: calc(50% + (var(--mx) * -18px)) calc(50% + (var(--my) * -12px));
  transform: scale(1.045);
  filter: brightness(1.28) saturate(1.08) contrast(1.04);
  will-change: transform, filter;
}

.hero-depth {
  position: absolute;
  inset: -4%;
  z-index: 4;
  background-image: url("../assets/generated/newcomb-renaissance-hero-dark.png");
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.effect-canvas,
.story-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9;
  pointer-events: none;
  mix-blend-mode: screen;
  display: none;
  opacity: 0;
}

.story-canvas {
  z-index: 1;
  opacity: 0.82;
}

.hero-depth--left {
  background-position: calc(50% + (var(--mx) * -42px)) calc(50% + (var(--my) * -24px));
  clip-path: polygon(0 0, 41% 0, 46% 100%, 0 100%);
  opacity: 0.2;
  filter: brightness(0.92) contrast(1.08);
  transform: translate3d(calc(var(--mx) * 12px), calc(var(--my) * 8px), 0) scale(1.045);
}

.hero-depth--right {
  background-position: calc(50% + (var(--mx) * 34px)) calc(50% + (var(--my) * -18px));
  clip-path: polygon(57% 0, 100% 0, 100% 100%, 50% 100%);
  opacity: 0.18;
  filter: brightness(0.88) contrast(1.08);
  transform: translate3d(calc(var(--mx) * -10px), calc(var(--my) * 8px), 0) scale(1.045);
}

.hero-depth--foreground {
  background-position: calc(50% + (var(--mx) * -60px)) calc(50% + (var(--my) * 30px));
  clip-path: polygon(0 68%, 37% 68%, 44% 100%, 0 100%, 70% 74%, 100% 67%, 100% 100%, 68% 100%);
  opacity: 0.16;
  filter: brightness(0.95) saturate(0.92);
  transform: translate3d(calc(var(--mx) * 16px), calc(var(--my) * -10px), 0) scale(1.055);
}

.spark-ring {
  position: absolute;
  z-index: 7;
  top: 43%;
  left: 50%;
  width: min(360px, 26vw);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.74);
  opacity: 0;
  background:
    radial-gradient(circle, transparent 0 38%, rgba(217, 208, 183, 0.42) 39% 40%, transparent 41%),
    conic-gradient(from 18deg, transparent, rgba(217, 208, 183, 0.44), transparent 14%, transparent 38%, rgba(106, 67, 126, 0.38), transparent 49%, transparent);
  filter: blur(0.2px);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.story-orb {
  position: absolute;
  z-index: 12;
  top: 11%;
  right: 23%;
  width: clamp(48px, 4.5vw, 72px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #d8cadb;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  background:
    radial-gradient(circle at calc(32% + var(--orbX) * 6%) calc(26% + var(--orbY) * 5%), rgba(232, 218, 218, 0.28) 0 5%, rgba(184, 151, 190, 0.11) 6% 18%, transparent 25%),
    radial-gradient(circle at 50% 52%, rgba(89, 47, 104, 0.58), rgba(29, 17, 34, 0.9) 60%, rgba(5, 5, 5, 0.96) 100%),
    url("../assets/generated/newcomb-about-story.png") 52% 38% / 360px auto,
    conic-gradient(from calc(112deg + var(--orbX) * 8deg), rgba(217, 208, 183, 0.11), transparent 14%, rgba(91, 61, 101, 0.2), transparent 42%, rgba(217, 208, 183, 0.07), transparent 76%);
  background-blend-mode: screen, multiply, soft-light, normal;
  box-shadow:
    inset 8px 7px 16px rgba(217, 208, 183, 0.045),
    inset -18px -17px 28px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(217, 208, 183, 0.18),
    0 14px 42px rgba(2, 2, 2, 0.52),
    0 0 24px rgba(78, 43, 91, 0.2);
  transform:
    translate3d(calc(var(--mx) * -14px + var(--orbX) * 5px), calc(var(--my) * -10px + var(--orbY) * 5px), 0)
    rotateX(calc(var(--orbY) * -5deg))
    rotateY(calc(var(--orbX) * 6deg));
  transition: filter 260ms ease, box-shadow 260ms ease;
  transform-style: preserve-3d;
  isolation: isolate;
}

.story-orb:hover {
  filter: brightness(1.06) saturate(0.96) contrast(1.03);
  box-shadow:
    inset 8px 7px 16px rgba(217, 208, 183, 0.1),
    inset -18px -17px 28px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(217, 208, 183, 0.34),
    0 16px 48px rgba(2, 2, 2, 0.56),
    0 0 46px rgba(78, 43, 91, 0.38);
}

.story-orb span {
  opacity: 0;
}

.story-orb i,
.story-orb::before,
.story-orb::after {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  pointer-events: none;
}

.story-orb i {
  inset: 17%;
  border: 1px solid rgba(217, 208, 183, 0.16);
  background:
    linear-gradient(18deg, transparent 46%, rgba(217, 208, 183, 0.18) 48%, transparent 51%),
    linear-gradient(104deg, transparent 48%, rgba(126, 91, 133, 0.16) 50%, transparent 52%);
  transform: translateZ(12px) rotate(calc(var(--orbX) * 8deg));
  mix-blend-mode: soft-light;
}

.story-orb::before {
  border: 1px solid rgba(217, 208, 183, 0.2);
  transform: rotateX(62deg) rotateZ(calc(18deg + var(--orbX) * 8deg));
  opacity: 0.7;
}

.story-orb::after {
  inset: -34%;
  border: 1px solid rgba(217, 208, 183, 0.12);
  transform: rotateY(64deg) rotateZ(calc(-18deg + var(--orbY) * 8deg));
  opacity: 0.58;
}

.hero-wipe {
  position: absolute;
  z-index: 8;
  inset: auto -10% -35%;
  height: 65%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217, 208, 183, 0.72), transparent 52%),
    linear-gradient(180deg, transparent, rgba(217, 208, 183, 0.92));
  opacity: 0;
  transform: translateY(28%);
  filter: blur(0.2px);
  pointer-events: none;
}

.hero-transition-title {
  position: absolute;
  z-index: 11;
  left: 12px;
  bottom: 58px;
  display: grid;
  gap: 4px;
  color: var(--bone);
  opacity: 0;
  transform: translateY(32px);
  pointer-events: none;
}

.hero-transition-title span {
  font-family: Georgia, serif;
  font-size: 18px;
}

.hero-transition-title strong {
  font-family: var(--body);
  font-size: clamp(92px, 22vw, 320px);
  font-weight: 900;
  line-height: 0.72;
  letter-spacing: 0;
}

.story-section {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  gap: 28px;
  padding: 84px clamp(24px, 5vw, 84px) 64px clamp(118px, 10vw, 170px);
  color: var(--bone);
  background: #050504;
  isolation: isolate;
}

.story-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 4, 0.22) 0%, rgba(5, 5, 4, 0.78) 58%, rgba(5, 5, 4, 0.2) 100%),
    linear-gradient(0deg, rgba(5, 5, 4, 0.76), transparent 52%),
    url("../assets/generated/newcomb-about-story.png") center / cover no-repeat;
  transform: scale(1.04);
  filter: brightness(0.88) contrast(1.08) saturate(0.92);
  will-change: transform;
}

.story-copy,
.story-stat {
  position: relative;
  z-index: 3;
}

.story-kicker {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--hot-gold);
  text-transform: uppercase;
}

.story-copy h2 {
  max-width: 820px;
  margin: 0;
  font-family: var(--body);
  font-size: clamp(70px, 10.2vw, 146px);
  font-weight: 900;
  line-height: 0.74;
  letter-spacing: 0;
  color: var(--bone);
}

.story-copy h2 em {
  display: inline-block;
  font-style: italic;
  font-weight: 300;
  transform: translateY(-0.05em);
}

.story-copy p:not(.story-kicker) {
  max-width: 720px;
  margin: 28px 0 0;
  font-size: clamp(24px, 2.55vw, 36px);
  line-height: 1;
}

.story-copy p + p {
  color: rgba(217, 208, 183, 0.62);
}

.story-stat {
  align-self: end;
  min-height: 230px;
  padding: 20px;
  border: 1px solid rgba(217, 208, 183, 0.34);
  background: rgba(7, 7, 5, 0.42);
  backdrop-filter: blur(14px);
  display: grid;
  align-content: space-between;
  font-family: var(--mono);
  text-transform: uppercase;
}

.story-stat span,
.story-stat small {
  color: rgba(217, 208, 183, 0.58);
}

.story-stat strong {
  font-family: var(--body);
  font-size: 42px;
  line-height: 0.88;
}

.edition-frame {
  border-color: rgba(217, 208, 183, 0.82);
  color: var(--bone);
}

.edition-frame::before,
.edition-frame::after {
  background: rgba(217, 208, 183, 0.85);
}

.chapter--newcomb .hero-panel {
  border-color: rgba(217, 208, 183, 0.46);
  background: rgba(9, 9, 7, 0.34);
  color: var(--bone);
  transition: transform 350ms ease, background 350ms ease, border-color 350ms ease;
}

.chapter--newcomb .hero-panel:hover {
  background: rgba(9, 9, 7, 0.52);
  border-color: rgba(217, 208, 183, 0.78);
}

.chapter--newcomb .hero-panel__top strong {
  color: var(--bone);
}

.chapter--newcomb .mini-chart span {
  background: linear-gradient(180deg, #e9dec0, rgba(141, 28, 83, 0.86));
}

.feature-grid article,
.wide-panel div,
.benford-panel {
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 420ms ease;
}

.feature-grid article:hover,
.wide-panel div:hover,
.benford-panel:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

@media (max-width: 960px) {
  body.is-renaissance .rail {
    display: none;
  }

  .dark-hero-art {
    background-position: 50% center;
  }

  .spark-ring {
    width: 58vw;
  }

  .story-orb {
    top: 13%;
    right: 16%;
  }

  .story-section {
    grid-template-columns: 1fr;
    padding: 72px 20px 34px;
  }

  .story-copy h2 {
    font-size: clamp(58px, 18vw, 88px);
  }

  .story-copy p:not(.story-kicker) {
    font-size: 25px;
  }

  .story-stat {
    min-height: 154px;
  }
}
