:root {
  --bg: #ffffff;
  --ink: #17130e;
  --muted: #6b6256;
  --line: #e6ded0;
  --accent: #9a7322;
  --accent-fill: #c1b385;
  --hero-ink: #f6f0e6;
  --hero-bg: #050505;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: min(1120px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

::selection {
  background: #4a3712;
  color: #f3d48c;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
}

.skip-link:focus {
  top: 12px;
}

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 0;
  height: 3px;
  background: var(--accent-fill);
}

.page-width {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 36px;
  height: 72px;
  padding-inline: max(24px, calc((100vw - 1120px) / 2));
  color: var(--hero-ink);
  background: linear-gradient(180deg, #000000b8, #0000);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.site-header.is-light {
  color: var(--ink);
  background: #ffffffeb;
  box-shadow: 0 8px 28px #2a1d0d12;
  backdrop-filter: blur(16px);
}

.brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.brand i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--accent-fill);
  vertical-align: super;
}

.header-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.header-nav a {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f6f0e6c9;
}

.site-header.is-light .header-nav a {
  color: var(--muted);
}

.header-nav a:hover,
.header-nav a[aria-current="true"] {
  color: var(--accent-fill);
}

.site-header.is-light .header-nav a:hover,
.site-header.is-light .header-nav a[aria-current="true"] {
  color: var(--accent);
}

.hero {
  background: var(--hero-bg);
}

.hero-stage {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--hero-ink);
  background: var(--hero-bg);
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, calc(100svh * 16 / 9));
  height: max(100svh, calc(100vw * 9 / 16));
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #000c 0%, #0009 48%, #0003 100%),
    linear-gradient(0deg, #000c 0%, transparent 58%, #0007 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding: 110px 0 88px;
}

.hero-kicker {
  margin: 0 0 14px;
  color: var(--accent-fill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(64px, 9vw, 128px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.hero-subtitle {
  max-width: 18em;
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.hero-authors {
  max-width: 760px;
  margin-top: 28px;
}

.author-list,
.author-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em 0.85em;
  margin: 0;
}

.author-list {
  font-size: 15px;
  line-height: 1.7;
}

.author-list a {
  border-bottom: 1px solid #f6f0e655;
}

.author-list a:hover {
  color: var(--accent-fill);
  border-color: var(--accent-fill);
}

.author-list sup,
.author-meta sup {
  font-size: 0.7em;
}

.author-meta {
  margin-top: 8px;
  color: #f6f0e6c4;
  font-size: 13px;
}

.venue {
  margin: 14px 0 0;
  color: var(--accent-fill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 18px;
}

.hero-logos img {
  height: 46px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  background: transparent;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
}

.pill.light {
  background: #f7f1e6;
  color: #24190e;
}

.pill.light:hover {
  background: var(--accent-fill);
}

.pill.ghost {
  color: var(--hero-ink);
  box-shadow: inset 0 0 0 1px #f6f0e680;
}

.pill.ghost:hover {
  background: #f6f0e61f;
}

.hero-bottom {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  color: #f6f0e6cc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-fade {
  height: 120px;
  margin-top: -1px;
  background: linear-gradient(180deg, #050505 0%, #8d8780 52%, #fff 100%);
}

.chapter {
  scroll-margin-top: 84px;
}

.chapter > .page-width {
  padding: 28px 0 72px;
  border-top: 1px solid var(--line);
}

.overline {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.chapter h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.chapter h2 em {
  color: var(--accent);
  font-style: italic;
  font-weight: 460;
}

.prose,
.lede,
.figure figcaption {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.prose {
  max-width: 68em;
  margin: 28px 0 0;
  text-align: justify;
}

.prose strong {
  color: var(--accent);
  font-weight: 650;
}

.lede {
  max-width: 42em;
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 18px;
}

.figure {
  margin: 36px 0 0;
}

.figure img,
.figure video {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
  border: 1px solid var(--line);
}

.figure video {
  background: #111;
}

.figure-video {
  margin-top: 28px;
}

.figure figcaption {
  margin-top: 14px;
  font-size: 15px;
  text-align: justify;
}

.figure figcaption p {
  margin: 0 0 0.9em;
}

.figure figcaption p:last-child {
  margin-bottom: 0;
}

.figure figcaption strong {
  color: var(--ink);
  font-weight: 650;
}

.figure-split {
  display: grid;
  grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
  gap: 28px 40px;
  align-items: center;
}

.figure-split img {
  width: 100%;
}

.figure-split figcaption {
  margin-top: 0;
}

.qualitative {
  margin-top: 56px;
  outline: none;
}

.qualitative .chapter-head {
  margin-bottom: 8px;
}

.scaling {
  margin-top: 56px;
}

.scaling .figure {
  margin-top: 22px;
}

.qual-carousel {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: center;
  margin-top: 22px;
}

.qual-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #243036;
  box-shadow: 0 4px 16px rgba(28, 36, 43, 0.12);
  cursor: pointer;
}

.qual-arrow svg {
  width: 18px;
  height: 18px;
}

.qual-strip {
  display: flex;
  gap: 12px;
  padding: 4px calc(50% - 78px) 2px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.qual-strip::-webkit-scrollbar {
  display: none;
}

.qual-thumb {
  flex: 0 0 156px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.qual-shot {
  position: relative;
  display: block;
  height: 88px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #d9dee3;
}

.qual-thumb.is-active .qual-shot {
  border-color: #2c6b62;
}

.qual-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qual-pill {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #2a3338;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

.qual-name {
  display: block;
  min-height: 1.2em;
  margin-top: 6px;
  color: transparent;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.qual-thumb.is-active .qual-name {
  color: #1c2428;
}

.qual-card {
  margin-top: 16px;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(28, 36, 43, 0.08), 0 0 0 1px rgba(20, 30, 40, 0.05);
}

.qual-stage {
  position: relative;
  height: 520px;
  background: #eef1f4;
}

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

.qual-stage::after {
  content: "";
  position: absolute;
  top: 78px;
  bottom: 18px;
  left: 50%;
  width: 1px;
  background: rgba(28, 36, 43, 0.08);
  pointer-events: none;
}

.qual-views {
  position: absolute;
  top: 18px;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  pointer-events: none;
  text-align: center;
}

.qual-view-title,
.qual-view-sub {
  margin: 0;
}

.qual-view-title {
  color: #243036;
  font-size: 15px;
  font-weight: 650;
}

.qual-view-sub {
  margin-top: 2px;
  color: #8b949b;
  font-size: 13px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  transform: translateY(-1px);
}

.dot-gt {
  background: #e4b89a;
}

.dot-pred {
  background: #9eb6d4;
}

.qual-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  background: rgba(238, 241, 244, 0.92);
  color: #5c676e;
}

.qual-status[hidden] {
  display: none;
}

.qual-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px 4px;
}

.qual-play {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #1c3f3a;
  color: #fff;
  cursor: pointer;
}

.qual-play svg {
  width: 16px;
  height: 16px;
}

.qual-play:disabled {
  cursor: default;
  opacity: 0.45;
}

.qual-seek {
  flex: 1;
  min-width: 0;
  accent-color: #1c3f3a;
}

.qual-text-btn {
  height: 32px;
  padding: 0 12px;
  border: 1px solid #d5dbe0;
  border-radius: 8px;
  background: #fff;
  color: #243036;
  font: 600 13px var(--sans);
  cursor: pointer;
}

.qual-text-btn[aria-pressed="true"] {
  border-color: #1f4f49;
  background: #e7f3ef;
  color: #1f4f49;
}

.qual-hint {
  margin: 0;
  padding: 8px 16px 14px;
  color: #9aa3a8;
  font-size: 12px;
  text-align: center;
}

.figure-longterm {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px 40px;
  align-items: center;
}

.figure-longterm video {
  width: 100%;
  height: auto;
  background: #111;
  border: 1px solid var(--line);
}

.figure-longterm figcaption {
  margin-top: 0;
  text-align: left;
}

.prior {
  padding: 8px 0 36px;
  border-top: 1px solid var(--line);
}

.prior-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.prior-list a {
  display: grid;
  grid-template-columns: 148px 168px minmax(0, 1fr);
  gap: 12px 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.prior-venue {
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prior-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.prior-title {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.prior-list a:hover .prior-name {
  color: var(--accent);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  min-height: 88px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

@media (max-width: 760px) {
  .header-nav {
    display: none;
  }

  .hero-content {
    padding-bottom: 72px;
  }

  .hero-logos img {
    height: 32px;
  }

  .prose,
  .figure figcaption {
    text-align: left;
    font-size: 16px;
  }

  .figure-split {
    grid-template-columns: 1fr;
  }

  .figure-split figcaption {
    margin-top: 14px;
  }

  .figure-longterm {
    grid-template-columns: 1fr;
  }

  .figure-longterm figcaption {
    margin-top: 14px;
  }

  .prior-list a {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .qual-stage {
    height: 360px;
  }

  .qual-strip {
    padding-inline: calc(50% - 64px);
  }

  .qual-thumb {
    flex-basis: 128px;
  }

  .qual-view-sub,
  .qual-hint {
    display: none;
  }
}
