:root {
  --ink: #08151f;
  --ink-soft: #18303d;
  --paper: #f4f0e8;
  --paper-deep: #e9e1d4;
  --cream: #fffaf0;
  --white: #ffffff;
  --acid: #d9f55b;
  --coral: #ff6138;
  --aqua: #56d7cc;
  --lavender: #cfacff;
  --blue: #5f7cff;
  --orange: #ffb258;
  --border-dark: rgba(8, 21, 31, 0.18);
  --border-light: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 70px rgba(8, 21, 31, 0.13);
  --font-display: "Instrument Serif", Georgia, serif;
  --font-sans: "Familjen Grotesk", "Helvetica Neue", sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
  --shell: min(1180px, calc(100vw - 48px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 15px;
  color: var(--ink);
  background: var(--acid);
  border-radius: 4px;
  transform: translateY(-150%);
}

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

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

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

.section {
  padding-block: 130px;
}

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

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--coral);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  content: "";
  background: currentColor;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 64px;
}

.section-heading h2,
.guide-copy h2,
.latent-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.section-heading h2 em,
.guide-copy h2 em,
.latent-copy h2 em {
  color: var(--coral);
  font-weight: 400;
}

.heading-note {
  max-width: 600px;
  margin: 28px 0 0;
  color: rgba(8, 21, 31, 0.68);
  font-size: 19px;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  color: var(--white);
  background:
    radial-gradient(circle at 76% 35%, rgba(86, 215, 204, 0.1), transparent 24%),
    radial-gradient(circle at 21% 76%, rgba(255, 97, 56, 0.1), transparent 27%),
    var(--ink);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}

.site-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  border-bottom: 1px solid var(--border-light);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--acid);
  border-radius: 50%;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.08em;
  transition: transform 300ms ease, border-radius 300ms ease;
}

.brand:hover .brand-mark {
  border-radius: 12px;
  transform: rotate(-9deg);
}

.brand-wordmark {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.nav-links > a:not(.nav-paper) {
  color: rgba(255, 255, 255, 0.72);
  transition: color 180ms ease;
}

.nav-links > a:not(.nav-paper):hover {
  color: var(--white);
}

.nav-paper {
  padding: 10px 16px;
  color: var(--ink);
  background: var(--white);
  border-radius: 999px;
  transition: transform 180ms ease, background 180ms ease;
}

.nav-paper:hover {
  background: var(--acid);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  padding: 8px 0;
  color: var(--white);
  background: transparent;
  border: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.hero-grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 70px;
  align-items: center;
  min-height: calc(100svh - 235px);
  padding-block: 72px 54px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 100%;
}

.paper-kicker {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paper-kicker span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.paper-kicker span:first-child::before {
  width: 8px;
  height: 8px;
  content: "";
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 97, 56, 0.12);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(88px, 11.4vw, 165px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.72;
}

.hero h1 em {
  display: block;
  margin-left: 0.32em;
  color: var(--acid);
  font-weight: 400;
  white-space: nowrap;
}

.hero-subtitle {
  max-width: 610px;
  margin: 42px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
}

.hero-subtitle strong {
  color: var(--white);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 35px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 52px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-bright {
  color: var(--ink);
  background: var(--acid);
}

.button-bright:hover {
  background: var(--white);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
}

.button-ghost:hover {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.authors {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.bridge-stage {
  position: relative;
  width: min(440px, 36vw);
  aspect-ratio: 1;
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}

.bridge-stage::before,
.bridge-stage::after {
  position: absolute;
  z-index: 0;
  content: "";
  border-radius: 50%;
}

.bridge-stage::before {
  inset: 16%;
  background: radial-gradient(circle, rgba(217, 245, 91, 0.14), transparent 66%);
  filter: blur(8px);
}

.bridge-stage::after {
  inset: -20%;
  background: radial-gradient(circle, transparent 45%, rgba(86, 215, 204, 0.05) 45%, transparent 46%);
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.17);
  border-radius: 50%;
}

.orbit-outer {
  inset: 8%;
  animation: orbit-spin 32s linear infinite;
}

.orbit-inner {
  inset: 27%;
  border-style: solid;
  animation: orbit-spin 24s linear infinite reverse;
}

.orbit::before,
.orbit::after {
  position: absolute;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--aqua);
  border-radius: 50%;
}

.orbit::before {
  top: -4px;
  left: 50%;
}

.orbit::after {
  right: 10%;
  bottom: 17%;
  background: var(--coral);
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.bridge-core {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 47%;
  aspect-ratio: 1;
  background: var(--acid);
  border-radius: 50%;
  color: var(--ink);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 16px rgba(217, 245, 91, 0.06), 0 25px 80px rgba(0, 0, 0, 0.35);
}

.bridge-core strong {
  margin-block: 3px;
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.core-label,
.core-note {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.core-label {
  text-transform: uppercase;
}

.core-note {
  opacity: 0.7;
}

.script-node {
  position: absolute;
  z-index: 7;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 112px;
  min-height: 76px;
  padding: 11px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(8, 21, 31, 0.1);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.25);
  animation: node-float 5s ease-in-out infinite;
}

.script-node span {
  font-size: 28px;
  line-height: 1.1;
}

.script-node small {
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.58;
}

.node-devanagari { top: 2%; left: 9%; transform: rotate(-4deg); }
.node-urdu { top: 13%; right: -2%; animation-delay: -1.3s; transform: rotate(4deg); }
.node-bengali { right: 3%; bottom: 7%; animation-delay: -2.4s; transform: rotate(-3deg); }
.node-gujarati { bottom: 3%; left: 2%; animation-delay: -3.5s; transform: rotate(3deg); }

@keyframes node-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.bridge-caption {
  position: absolute;
  z-index: 10;
  right: 4%;
  bottom: -9%;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--aqua);
  border-radius: 50%;
  animation: pulse 2.3s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(86, 215, 204, 0.5); }
  80%, 100% { box-shadow: 0 0 0 9px rgba(86, 215, 204, 0); }
}

.hero-metrics {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 112px;
  border-top: 1px solid var(--border-light);
}

.hero-metrics div {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-inline: 24px;
  border-right: 1px solid var(--border-light);
}

.hero-metrics div:first-child { padding-left: 0; }
.hero-metrics div:last-child { border-right: 0; }

.hero-metrics strong {
  color: var(--acid);
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}

.hero-metrics span {
  max-width: 90px;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.3;
  text-transform: uppercase;
}

.script-sky .glyph {
  position: absolute;
  z-index: 1;
  color: rgba(255, 255, 255, 0.035);
  font-family: serif;
  font-size: clamp(100px, 15vw, 250px);
  line-height: 1;
  user-select: none;
}

.glyph-1 { top: 12%; left: -3%; transform: rotate(-10deg); }
.glyph-2 { top: 54%; left: 28%; font-size: 150px !important; transform: rotate(7deg); }
.glyph-3 { right: 3%; bottom: 14%; transform: rotate(12deg); }
.glyph-4 { top: 5%; right: 18%; font-size: 120px !important; }
.glyph-5 { right: 45%; bottom: -2%; font-size: 90px !important; }
.glyph-6 { top: 39%; right: -3%; }
.glyph-7 { top: 13%; left: 39%; font-size: 80px !important; }

.script-ribbon {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 13px 0;
  color: var(--ink);
  background: var(--coral);
  overflow: hidden;
}

.ribbon-track {
  display: flex;
  width: max-content;
  animation: ribbon-scroll 30s linear infinite;
}

.ribbon-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-inline: 26px;
  font-size: 18px;
  white-space: nowrap;
}

.ribbon-track span::after {
  margin-left: 26px;
  content: "✳";
  font-size: 12px;
}

.ribbon-track i {
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  opacity: 0.68;
}

@keyframes ribbon-scroll {
  to { transform: translateX(-50%); }
}

/* Overview and ambiguity lab */

.overview {
  background: var(--paper);
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(520px, 1.15fr);
  gap: 90px;
  align-items: start;
}

.overview-copy .lead {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: clamp(31px, 3.2vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.overview-copy p:not(.lead) {
  color: rgba(8, 21, 31, 0.68);
}

.ambiguity-lab {
  position: sticky;
  top: 28px;
  background: var(--ink);
  border-radius: 4px;
  color: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lab-topline,
.decision-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-light);
}

.lab-topline span:last-child {
  color: var(--aqua);
}

.lab-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border-light);
}

.lab-tab {
  min-height: 68px;
  padding: 12px;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--border-light);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.35;
  transition: color 180ms ease, background 180ms ease;
}

.lab-tab:last-child { border-right: 0; }
.lab-tab:hover { color: var(--white); }
.lab-tab.active { color: var(--ink); background: var(--acid); }

.lab-display {
  min-height: 340px;
  padding: 38px 42px 42px;
  background:
    radial-gradient(circle at 80% 18%, rgba(86, 215, 204, 0.1), transparent 22%),
    var(--ink);
}

.lab-label {
  margin: 0 0 36px;
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--font-mono);
  font-size: 11px;
}

.lab-equation {
  display: grid;
  grid-template-columns: 1fr auto 1.35fr;
  gap: 21px;
  align-items: center;
}

.lab-source {
  color: var(--acid);
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1;
}

.lab-arrow {
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 22px;
}

.lab-targets {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 13px;
  align-items: center;
}

.lab-targets b {
  font-size: 25px;
  font-weight: 500;
}

.lab-targets i {
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
  text-transform: uppercase;
}

.lab-explanation {
  max-width: 510px;
  margin: 36px 0 0;
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  border-top: 1px solid var(--border-light);
}

/* Timeline */

.evolution {
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}

.section-heading-light .eyebrow,
.section-heading-light h2 {
  color: var(--white);
}

.section-heading-light h2 em {
  color: var(--acid);
}

.section-heading-light .heading-note {
  color: rgba(255, 255, 255, 0.58);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(230px, 1fr));
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.timeline-card {
  position: relative;
  display: flex;
  min-height: 510px;
  padding: 28px 24px 25px;
  flex-direction: column;
  border-right: 1px solid var(--border-light);
  transition: background 260ms ease, transform 260ms ease;
}

.timeline-card:first-child { border-left: 1px solid var(--border-light); }

.timeline-card:hover {
  z-index: 2;
  color: var(--ink);
  background: var(--acid);
  transform: translateY(-10px);
}

.timeline-index {
  align-self: flex-end;
  color: rgba(255, 255, 255, 0.22);
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  transition: color 260ms ease;
}

.timeline-card:hover .timeline-index { color: rgba(8, 21, 31, 0.2); }

.timeline-era {
  margin: 90px 0 12px;
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 260ms ease;
}

.timeline-card:hover .timeline-era { color: rgba(8, 21, 31, 0.64); }

.timeline-card h3 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}

.timeline-card > p:not(.timeline-era) {
  margin: 0;
  color: rgba(255, 255, 255, 0.57);
  font-size: 14px;
  line-height: 1.5;
  transition: color 260ms ease;
}

.timeline-card:hover > p:not(.timeline-era) { color: rgba(8, 21, 31, 0.67); }

.timeline-sample {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 61px;
  margin-top: auto;
  padding: 10px;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 11px;
  transition: color 260ms ease, border-color 260ms ease;
}

.timeline-card:hover .timeline-sample {
  color: var(--ink);
  border-color: rgba(8, 21, 31, 0.2);
}

.timeline-sample i { color: var(--aqua); font-style: normal; }
.timeline-card:hover .timeline-sample i { color: var(--coral); }

.token-sample { gap: 4px; }
.token-sample span,
.token-sample b { display: block; width: 14px; height: 13px; background: var(--acid); border-radius: 2px; }
.token-sample b { width: 6px; background: var(--coral); }
.token-sample i { margin-inline: 5px; font-size: 8px; }

/* Approaches */

.approaches {
  background: var(--paper);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.approach-card {
  --card-color: var(--aqua);
  min-height: 480px;
  padding: 32px;
  background: var(--cream);
  border: 1px solid var(--border-dark);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.approach-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.approach-data { --card-color: var(--aqua); }
.approach-input { --card-color: var(--orange); }
.approach-architecture { --card-color: var(--lavender); }
.approach-inference { --card-color: #64e69a; }

.approach-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.approach-top span {
  display: grid;
  width: 42px;
  height: 42px;
  background: var(--card-color);
  border-radius: 50%;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
}

.approach-top small {
  padding: 6px 10px;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.approach-card h3 {
  margin: 44px 0 12px;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.approach-card > p {
  max-width: 470px;
  margin: 0;
  color: rgba(8, 21, 31, 0.67);
}

.mini-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 104px;
  margin-block: 34px 28px;
  padding: 18px;
  background: color-mix(in srgb, var(--card-color) 22%, white);
  border: 1px solid color-mix(in srgb, var(--card-color) 72%, var(--ink));
}

.mini-flow span,
.mini-flow strong {
  padding: 7px 10px;
  background: var(--white);
  border: 1px solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
}

.mini-flow strong { background: var(--ink); color: var(--white); }
.mini-flow b,
.mini-flow i { color: rgba(8, 21, 31, 0.5); font-family: var(--font-mono); font-style: normal; font-weight: 400; }

.mini-flow-split {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto auto;
}

.mini-flow-split i { display: none; }
.mini-flow-split strong { grid-column: 1 / -1; justify-self: center; }

.approach-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(8, 21, 31, 0.65);
  font-family: var(--font-mono);
  font-size: 10px;
}

.approach-card li::before {
  margin-right: 10px;
  color: var(--coral);
  content: "↳";
}

.winner-note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  margin-top: 14px;
  padding: 30px 32px;
  color: var(--white);
  background: var(--ink);
}

.winner-badge {
  padding: 8px 10px;
  color: var(--ink);
  background: var(--acid);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
}

.winner-note p { margin: 0; font-size: 16px; }
.winner-note > span { color: rgba(255, 255, 255, 0.45); font-family: var(--font-mono); font-size: 9px; }

/* Decision guide */

.guide {
  color: var(--white);
  background: var(--coral);
}

.guide-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(600px, 1.3fr);
  gap: 88px;
  align-items: start;
}

.guide-copy {
  position: sticky;
  top: 40px;
}

.guide-copy h2 {
  color: var(--ink);
}

.guide-copy > p:not(.eyebrow) {
  color: rgba(8, 21, 31, 0.72);
  font-size: 19px;
}

.guide-principle {
  margin-top: 50px;
  padding: 24px;
  color: var(--white);
  background: var(--ink);
}

.guide-principle span {
  display: block;
  margin-bottom: 16px;
  color: var(--aqua);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-principle strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.decision-tool {
  color: var(--white);
  background: var(--ink);
  box-shadow: 18px 18px 0 rgba(8, 21, 31, 0.14);
}

.decision-header small { color: var(--acid); }

.decision-group {
  margin: 0;
  padding: 27px 28px;
  border: 0;
  border-bottom: 1px solid var(--border-light);
}

.decision-group legend {
  width: 100%;
  margin-bottom: 17px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.decision-group legend span {
  margin-right: 9px;
  color: var(--aqua);
  font-family: var(--font-mono);
  font-size: 9px;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.choice {
  min-height: 51px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.choice:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.choice.active { color: var(--ink); background: var(--acid); border-color: var(--acid); }

.recommendation {
  padding: 34px 28px 38px;
  background: rgba(86, 215, 204, 0.09);
}

.recommendation-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--aqua);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.score-dots { display: flex; gap: 5px; }
.score-dots i { width: 8px; height: 8px; background: var(--aqua); border-radius: 50%; }

.recommendation h3 {
  margin: 27px 0 12px;
  font-family: var(--font-display);
  font-size: 39px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

.recommendation p {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

/* Romanization */

.romanization {
  background: var(--paper);
}

.roman-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(290px, auto));
  gap: 14px;
}

.reason {
  position: relative;
  display: flex;
  padding: 30px;
  background: var(--cream);
  border: 1px solid var(--border-dark);
  flex-direction: column;
  overflow: hidden;
}

.reason-large {
  grid-row: 1 / 3;
  background: var(--aqua);
}

.reason-metric {
  grid-column: span 2;
  color: var(--white);
  background: var(--ink);
}

.reason-number {
  align-self: flex-end;
  font-family: var(--font-mono);
  font-size: 10px;
}

.reason h3 {
  margin: auto 0 12px;
  font-family: var(--font-display);
  font-size: 37px;
  font-weight: 400;
  line-height: 1;
}

.reason p {
  margin: 0;
  color: rgba(8, 21, 31, 0.65);
  font-size: 14px;
}

.reason-metric p { color: rgba(255, 255, 255, 0.58); }

.reason-metric > strong {
  position: absolute;
  top: 50%;
  right: 38px;
  color: var(--acid);
  font-family: var(--font-display);
  font-size: clamp(90px, 12vw, 160px);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.8;
  transform: translateY(-50%);
}

.reason-metric h3,
.reason-metric p { max-width: 270px; }

.prior-viz {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  height: 240px;
  margin: 55px 0 36px;
  padding: 20px;
  border-bottom: 1px solid rgba(8, 21, 31, 0.35);
}

.prior-viz span {
  width: 18%;
  height: var(--h);
  background: var(--ink);
  transform-origin: bottom;
  animation: bar-breathe 4s ease-in-out infinite alternate;
}

.prior-viz span:nth-child(2) { animation-delay: -1s; }
.prior-viz span:nth-child(3) { animation-delay: -2s; }
.prior-viz span:nth-child(4) { animation-delay: -3s; }

@keyframes bar-breathe {
  to { transform: scaleY(0.88); opacity: 0.75; }
}

.chat-snippet {
  display: flex;
  gap: 8px;
  margin: 30px 0 16px;
  flex-direction: column;
}

.chat-snippet span {
  width: max-content;
  max-width: 90%;
  padding: 8px 11px;
  color: var(--white);
  background: var(--blue);
  border-radius: 10px 10px 10px 2px;
  font-family: var(--font-mono);
  font-size: 9px;
}

.chat-snippet span:last-child {
  align-self: flex-end;
  color: var(--ink);
  background: var(--acid);
  border-radius: 10px 10px 2px 10px;
}

.tooling-line {
  display: flex;
  gap: 7px;
  margin: 45px 0 24px;
}

.tooling-line i {
  flex: 1;
  height: 7px;
  background: var(--lavender);
  border-radius: 10px;
}

.tooling-line i:nth-child(2n) { background: var(--orange); }

/* Latent romanization */

.latent {
  color: var(--white);
  background: var(--ink);
}

.latent-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  align-items: center;
}

.latent-copy h2 em { color: var(--aqua); }

.latent-copy > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.62);
}

.latent-copy .latent-note {
  margin-top: 28px;
  padding-left: 20px;
  border-left: 2px solid var(--coral);
  font-size: 14px;
}

.layer-model {
  position: relative;
  min-height: 650px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.layer-model::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}

.layer-input,
.layer-output {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--white);
  color: var(--ink);
}

.layer-input span,
.layer-output span { font-size: 21px; }
.layer-input small,
.layer-output small { font-family: var(--font-mono); font-size: 8px; text-transform: uppercase; }

.layer-output { background: var(--acid); }

.model-stack {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding-block: 25px;
}

.model-layer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 110px;
  padding: 20px;
  border: 1px solid var(--border-light);
}

.model-layer > span {
  min-width: 110px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 8px;
  text-transform: uppercase;
}

.model-layer i {
  display: block;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.layer-mid {
  color: var(--ink);
  background: var(--aqua);
  border-color: var(--aqua);
}

.layer-mid > span { color: rgba(8, 21, 31, 0.6); }
.layer-mid strong { margin-right: auto; font-family: var(--font-display); font-size: 22px; font-weight: 400; }
.layer-mid i { width: 19px; height: 19px; border-color: rgba(8, 21, 31, 0.35); }

.layer-high { background: rgba(207, 172, 255, 0.09); }
.layer-high i { background: var(--lavender); border-color: var(--lavender); opacity: 0.65; }

.signal-line {
  position: absolute;
  z-index: 4;
  top: 77px;
  right: 18px;
  bottom: 77px;
  width: 3px;
  background: rgba(255, 255, 255, 0.11);
}

.signal-line b {
  position: absolute;
  top: 0;
  left: -3px;
  width: 9px;
  height: 70px;
  background: linear-gradient(to bottom, transparent, var(--coral), transparent);
  animation: signal-flow 3s linear infinite;
}

@keyframes signal-flow {
  to { transform: translateY(420px); }
}

/* Tradeoffs */

.tradeoffs {
  background: var(--paper);
}

.balance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.balance-card {
  position: relative;
  min-height: 570px;
  padding: 40px;
  border: 1px solid var(--border-dark);
  overflow: hidden;
}

.balance-up { background: var(--acid); }
.balance-down { color: var(--white); background: var(--ink); }

.balance-symbol {
  position: absolute;
  top: -40px;
  right: 15px;
  color: rgba(8, 21, 31, 0.08);
  font-family: var(--font-display);
  font-size: 250px;
  line-height: 1;
}

.balance-down .balance-symbol { color: rgba(255, 255, 255, 0.06); }

.balance-label {
  margin: 0 0 150px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.balance-card h3 {
  max-width: 480px;
  margin: 0 0 35px;
  font-family: var(--font-display);
  font-size: clamp(39px, 4vw, 54px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.balance-card ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(8, 21, 31, 0.68);
  font-size: 14px;
}

.balance-down ul { color: rgba(255, 255, 255, 0.62); }
.balance-card li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; }
.balance-card li::before { content: "→"; font-family: var(--font-mono); }

.takeaway {
  padding: 90px 0 0;
  text-align: center;
}

.takeaway p {
  max-width: 930px;
  margin: 0 auto 18px;
  font-family: var(--font-display);
  font-size: clamp(45px, 6.5vw, 82px);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.takeaway span {
  color: rgba(8, 21, 31, 0.48);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
}

/* Paper card and footer */

.paper-section {
  padding-block: 80px;
  color: var(--white);
  background: var(--ink);
}

.paper-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.3fr 1fr;
  gap: 70px;
  min-height: 500px;
  padding: 60px;
  color: var(--ink);
  background: var(--cream);
  overflow: hidden;
}

.paper-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 9px;
  content: "";
  background: linear-gradient(to bottom, var(--aqua) 0 33%, var(--acid) 33% 66%, var(--coral) 66%);
}

.paper-meta-column {
  display: flex;
  flex-direction: column;
  color: rgba(8, 21, 31, 0.55);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.8;
}

.paper-meta-column .eyebrow { color: var(--ink); }

.paper-year {
  margin-top: auto;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 74px;
  line-height: 1;
}

.paper-main-column {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.paper-main-column h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(46px, 6vw, 74px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.paper-authors {
  margin: 34px 0 5px;
  font-weight: 600;
}

.paper-affiliations {
  max-width: 680px;
  margin: 0;
  color: rgba(8, 21, 31, 0.55);
  font-size: 13px;
}

.paper-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 36px;
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

.button-dark:hover { color: var(--ink); background: var(--acid); }

.text-link {
  padding: 5px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
}

.paper-corner {
  position: absolute;
  top: 22px;
  right: 28px;
  color: rgba(8, 21, 31, 0.2);
  font-family: var(--font-display);
  font-size: 25px;
}

.site-footer {
  padding: 65px 0 55px;
  color: var(--white);
  background: var(--ink);
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: start;
}

.footer-brand { margin-bottom: 18px; }
.footer-grid > div:first-child > p { margin: 0; color: rgba(255, 255, 255, 0.4); font-size: 13px; }

.footer-links {
  display: flex;
  gap: 26px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
  font-size: 10px;
}

.footer-links a:hover { color: var(--white); }

.footer-note {
  grid-column: 1 / -1;
  margin: 30px 0 0;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.34);
  border-top: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 8px;
}

/* Reveal choreography */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1), transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal-delay-1 { transition-delay: 90ms; }
.js .reveal-delay-2 { transition-delay: 180ms; }
.js .reveal-delay-3 { transition-delay: 270ms; }
.js .reveal-delay-4 { transition-delay: 360ms; }

/* Responsive */

@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr); gap: 20px; }
  .bridge-stage { width: min(400px, 37vw); }
  .script-node { width: 92px; min-height: 67px; }
  .script-node span { font-size: 23px; }
  .timeline { overflow-x: auto; scroll-snap-type: x mandatory; }
  .timeline-card { scroll-snap-align: start; }
  .guide-shell { grid-template-columns: 0.65fr 1.35fr; gap: 50px; }
  .latent-grid { gap: 50px; }
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 36px, 760px); }
  .section { padding-block: 95px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    z-index: 30;
    top: 78px;
    right: 0;
    display: none;
    align-items: stretch;
    width: min(320px, calc(100vw - 36px));
    padding: 17px;
    color: var(--white);
    background: #102531;
    border: 1px solid var(--border-light);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.35);
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 14px; border-bottom: 1px solid var(--border-light); }
  .nav-paper { margin-top: 12px; text-align: center; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-block: 85px 40px; }
  .hero h1 { font-size: clamp(86px, 18vw, 138px); }
  .bridge-stage { width: min(540px, 78vw); margin-block: 55px 45px; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .hero-metrics div { min-height: 90px; border-bottom: 1px solid var(--border-light); }
  .hero-metrics div:nth-child(2) { border-right: 0; }
  .overview-grid { grid-template-columns: 1fr; gap: 50px; }
  .ambiguity-lab { position: relative; top: auto; }
  .approach-grid { grid-template-columns: 1fr; }
  .guide-shell { grid-template-columns: 1fr; }
  .guide-copy { position: relative; top: auto; }
  .roman-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .reason-large { grid-row: span 2; }
  .reason-metric { grid-column: span 1; min-height: 330px; }
  .reason-metric > strong { top: 29%; right: 28px; font-size: 100px; }
  .latent-grid { grid-template-columns: 1fr; }
  .balance-card { padding: 30px; }
  .paper-card { grid-template-columns: 1fr; gap: 40px; padding: 45px 38px; }
  .paper-meta-column { display: grid; grid-template-columns: 1fr auto auto; gap: 15px; align-items: end; }
  .paper-meta-column .eyebrow { grid-column: 1 / -1; }
  .paper-year { margin: 0; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 28px); }
  body { font-size: 16px; }
  .section { padding-block: 76px; }
  .site-nav { height: 76px; }
  .brand-wordmark { font-size: 14px; }
  .hero-grid { padding-top: 60px; }
  .paper-kicker { gap: 12px; font-size: 9px; }
  .hero h1 { max-width: 100%; font-size: clamp(72px, 20vw, 92px); line-height: 0.77; }
  .hero h1 em { margin-left: 0.15em; }
  .hero-subtitle { margin-top: 35px; font-size: 18px; }
  .button { width: 100%; }
  .authors { max-width: 280px; line-height: 1.6; }
  .bridge-stage { width: 88vw; max-width: 420px; margin-left: 0; }
  .script-node { width: 82px; min-height: 60px; padding: 8px; }
  .script-node span { font-size: 20px; }
  .script-node small { font-size: 6px; }
  .bridge-core { width: 45%; }
  .bridge-core strong { font-size: 43px; }
  .core-label, .core-note { font-size: 7px; }
  .bridge-caption { bottom: -12%; }
  .hero-metrics div { padding: 13px; }
  .hero-metrics div:first-child { padding-left: 13px; }
  .hero-metrics strong { font-size: 30px; }
  .script-ribbon { padding-block: 10px; }
  .ribbon-track span { font-size: 15px; }
  .section-heading { margin-bottom: 45px; }
  .section-heading h2,
  .guide-copy h2,
  .latent-copy h2 { font-size: clamp(45px, 15vw, 65px); }
  .heading-note { font-size: 16px; }
  .overview-grid { gap: 38px; }
  .lab-tabs { display: flex; overflow-x: auto; }
  .lab-tab { min-width: 145px; }
  .lab-display { min-height: 390px; padding: 32px 24px; }
  .lab-equation { grid-template-columns: 1fr; gap: 12px; }
  .lab-arrow { transform: rotate(90deg); transform-origin: left; }
  .lab-targets { margin-top: 10px; }
  .timeline-card { min-height: 450px; }
  .approach-card { min-height: 0; padding: 24px; }
  .approach-card h3 { margin-top: 35px; font-size: 42px; }
  .mini-flow { margin-block: 27px 23px; gap: 5px; padding: 12px 7px; }
  .mini-flow span, .mini-flow strong { padding: 6px; font-size: 8px; }
  .winner-note { grid-template-columns: 1fr; gap: 16px; }
  .guide { padding-top: 85px; }
  .decision-group { padding: 24px 18px; }
  .choice-row { grid-template-columns: 1fr; }
  .recommendation { padding: 30px 20px; }
  .recommendation h3 { font-size: 34px; }
  .roman-grid { grid-template-columns: 1fr; }
  .reason, .reason-large, .reason-metric { grid-column: auto; grid-row: auto; min-height: 330px; }
  .reason-large { min-height: 580px; }
  .reason-metric > strong { font-size: 105px; }
  .layer-model { min-height: 560px; padding: 18px; }
  .model-layer { min-height: 100px; padding: 14px; }
  .model-layer > span { min-width: 83px; font-size: 7px; }
  .model-layer i { width: 23px; height: 23px; }
  .layer-mid { flex-wrap: wrap; }
  .layer-mid strong { width: 100%; order: -1; font-size: 19px; }
  .signal-line { right: 7px; }
  .balance-grid { grid-template-columns: 1fr; }
  .balance-card { min-height: 560px; }
  .balance-label { margin-bottom: 130px; }
  .takeaway { padding-top: 70px; }
  .paper-section { padding-block: 14px 60px; }
  .paper-card { width: 100%; padding: 40px 24px; }
  .paper-meta-column { grid-template-columns: 1fr 1fr; }
  .paper-meta-column > span:last-child { text-align: right; }
  .paper-year { font-size: 54px; }
  .paper-main-column h2 { font-size: 45px; }
  .paper-actions { align-items: stretch; gap: 18px; flex-direction: column; }
  .paper-actions .text-link { width: max-content; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
