/* photoreal-game — static site
   No external fonts, no analytics, no third-party requests.
   The design borrows the language of a field report: ink, paper, mono labels,
   one acid signal colour, and images that are allowed to be the loudest thing. */

:root {
  --ink: #0a0c0b;
  --ink-soft: #111512;
  --ink-3: #171c18;
  --paper: #f2efe6;
  --paper-2: #e8e3d6;
  --paper-3: #ddd7c8;
  --acid: #d8ff3e;
  --amber: #ffb35c;
  --red: #ff6b57;
  --muted: #98a098;
  --muted-2: #727a72;
  --muted-dark: #5e665e;
  --line: rgba(242, 239, 230, 0.14);
  --line-strong: rgba(242, 239, 230, 0.28);
  --line-ink: rgba(10, 12, 11, 0.14);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 44px);
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html[lang="zh-CN"] {
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

html[lang="zh-CN"] body { line-height: 1.8; }
html[lang="zh-CN"] .hero h1 em { white-space: nowrap; }
html[lang="zh-CN"] .hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 13ch;
}
html[lang="zh-CN"] .page-hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
html[lang="zh-CN"] .section-head h2 { line-height: 1.14; }
html[lang="zh-CN"] .card h3 { line-height: 1.3; }

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

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button { font: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

h1, h2, h3, h4, p, dl, dd, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }
li { margin: 0; }

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--acid);
  color: var(--ink);
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), 100%);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acid);
}
.kicker .num { color: var(--muted); margin-right: 10px; }

.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.acid { color: var(--acid); }
.amber { color: var(--amber); }
.red { color: var(--red); }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  transition: background 240ms var(--ease), border-color 240ms var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 12, 11, 0.9);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border: 1px solid var(--paper);
  display: grid;
  place-items: center;
  position: relative;
}
.brand-mark::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--acid);
  box-shadow: 0 0 14px rgba(216, 255, 62, 0.5);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(242, 239, 230, 0.22);
}
.brand strong { font-weight: 600; }
.brand small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-left: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  padding: 7px 10px;
  transition: border-color 180ms, background 180ms, color 180ms;
}
.lang:hover { border-color: var(--acid); color: var(--acid); }
.header-github {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  padding: 8px 12px;
  transition: background 180ms, color 180ms;
}
.header-github:hover { background: var(--acid); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink);
  padding: 100px var(--pad) 40px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 4rem);
  line-height: 1.1;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.92) contrast(1.02);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 12, 11, 0.72) 0%, rgba(10, 12, 11, 0.12) 34%, rgba(10, 12, 11, 0.55) 70%, var(--ink) 100%),
    linear-gradient(90deg, rgba(10, 12, 11, 0.78) 0%, rgba(10, 12, 11, 0.22) 52%, rgba(10, 12, 11, 0.05) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  pointer-events: none;
  background-image: radial-gradient(rgba(242, 239, 230, 0.35) 0.5px, transparent 0.5px);
  background-size: 5px 5px;
  mix-blend-mode: overlay;
}
.hero-inner {
  padding-top: 120px;
  padding-bottom: clamp(28px, 5vh, 52px);
}
.hero-topline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(22px, 4vh, 40px);
  color: var(--muted);
}
.hero-topline .dot {
  width: 7px;
  height: 7px;
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(216, 255, 62, 0.12);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 8.4vw, 8.2rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  max-width: 14ch;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--acid);
}
.hero-deck {
  margin-top: clamp(22px, 3.4vh, 34px);
  max-width: 60ch;
  font-size: clamp(1.02rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: rgba(242, 239, 230, 0.82);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: clamp(34px, 5vh, 56px);
}
.hero-stat {
  padding: 18px 20px 0 0;
  border-right: 1px solid var(--line);
}
.hero-stat:last-child { border-right: 0; }
.hero-stat b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat span {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms, color 180ms, border-color 180ms, transform 180ms;
}
.btn:hover { transform: translateY(-1px); border-color: var(--paper); }
.btn .arr { font-size: 15px; line-height: 1; }
.btn-primary {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--ink);
}
.btn-primary:hover { background: var(--paper); border-color: var(--paper); }
.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.btn-dark:hover { background: var(--ink-3); border-color: var(--ink-3); }
.btn-small { min-height: 38px; font-size: 10px; padding: 0 13px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 5px;
}
.link-arrow:hover { border-color: var(--acid); color: var(--acid); }
.link-arrow .arr { transition: transform 180ms var(--ease); }
.link-arrow:hover .arr { transform: translateX(4px); }

/* ---------- sections ---------- */

.section {
  padding: clamp(72px, 9vw, 128px) 0;
  position: relative;
}
.section-dark { background: var(--ink); color: var(--paper); }
.section-soft { background: var(--ink-soft); color: var(--paper); }
.section-paper { background: var(--paper); color: var(--ink); }
.section-paper .kicker { color: var(--muted-dark); }
.section-paper .muted { color: var(--muted-dark); }
.section-paper .link-arrow { border-color: var(--line-ink); }
.section-paper .btn { border-color: var(--line-ink); color: var(--ink); }
.section-paper .btn-primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.section-paper .btn-primary:hover { background: var(--ink-3); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  margin-bottom: clamp(38px, 5vw, 64px);
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 15ch;
  text-wrap: balance;
}
.section-head h2 em { font-style: italic; color: var(--acid); }
.section-paper .section-head h2 em { color: var(--ink); }
.section-intro {
  max-width: 46ch;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.65;
  color: var(--muted);
}
.section-paper .section-intro { color: var(--muted-dark); }
.section-head .kicker { margin-bottom: 18px; }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  max-width: 34ch;
}
.body-copy { max-width: 68ch; }
.body-copy p + p { margin-top: 1.1em; }
.body-copy a { color: var(--ink); text-decoration-color: var(--line-ink); }
.section-dark .body-copy a, .section-soft .body-copy a { color: var(--paper); text-decoration-color: var(--line-strong); }

/* ---------- grids ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.grid-2 > *, .grid-3 > *, .grid-4 > *, .duo > * { min-width: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 28px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }

.card {
  border: 1px solid var(--line);
  background: rgba(242, 239, 230, 0.02);
  padding: clamp(20px, 2.4vw, 30px);
  position: relative;
  transition: background 220ms, border-color 220ms, transform 220ms;
}
.card:hover { background: rgba(242, 239, 230, 0.045); border-color: var(--line-strong); }
.section-paper .card { border-color: var(--line-ink); background: rgba(10, 12, 11, 0.015); }
.section-paper .card:hover { background: rgba(10, 12, 11, 0.035); }
.card-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 26px;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 0.95rem; }
.section-paper .card p { color: var(--muted-dark); }
.card .tag {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acid);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.section-paper .card .tag { color: var(--muted-dark); border-color: var(--line-ink); }

/* ---------- figures / media ---------- */

.figure { margin: 0; }
.img-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-3);
}
.section-paper .img-frame { border-color: var(--line-ink); background: var(--paper-3); }
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter 700ms var(--ease);
}
.img-frame:hover img { transform: scale(1.015); }
.img-frame.wide { aspect-ratio: 16 / 9; }
.img-frame.tall { aspect-ratio: 4 / 5; }
.img-frame.square { aspect-ratio: 1; }
.figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-paper .figcaption { color: var(--muted-dark); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.duo > * { background: var(--ink); }
.section-paper .duo { background: var(--line-ink); border-color: var(--line-ink); }
.section-paper .duo > * { background: var(--paper); }
.duo .img-frame { border: 0; }
.duo .duo-caption { padding: 18px 20px 22px; }

/* ---------- stats ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-strip .stat { padding: 26px 24px 24px 0; border-right: 1px solid var(--line); }
.stat-strip .stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.stat span {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}
.section-paper .stat-strip { border-color: var(--line-ink); }
.section-paper .stat-strip .stat { border-color: var(--line-ink); }
.section-paper .stat span { color: var(--muted-dark); }

/* ---------- verdict ---------- */

.verdict {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 4vw, 52px) 0;
  align-items: start;
}
.verdict-word {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
}
.verdict-word small {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.verdict-body { max-width: 58ch; }
.verdict-body p + p { margin-top: 1em; }
.verdict-body .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.section-paper .verdict { border-color: var(--line-ink); }
.section-paper .verdict-body .label { color: var(--muted-dark); }

/* ---------- tables ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.section-paper .table-wrap { border-color: var(--line-ink); }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 720px;
}
table.data th, table.data td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
  border-bottom-color: var(--line-strong);
}
table.data tr:last-child td { border-bottom: 0; }
table.data td strong { font-weight: 600; }
table.data .num { font-family: var(--mono); font-size: 0.82rem; white-space: nowrap; }
.section-paper table.data th, .section-paper table.data td { border-color: var(--line-ink); }
.section-paper table.data th { color: var(--muted-dark); border-bottom-color: var(--line-ink); }
table.data tr:hover td { background: rgba(242, 239, 230, 0.025); }
.section-paper table.data tr:hover td { background: rgba(10, 12, 11, 0.025); }

/* ---------- gate board ---------- */

.gate-board { border: 1px solid var(--line); }
.gate-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.gate-row:last-child { border-bottom: 0; }
.gate-row code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper);
}
.gate-row span { color: var(--muted); font-size: 0.9rem; }
.gate-row .pass {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--acid);
  border: 1px solid rgba(216, 255, 62, 0.35);
  padding: 3px 7px;
  white-space: nowrap;
}
.gate-row .fail { color: var(--red); border-color: rgba(255, 107, 87, 0.35); }
.section-paper .gate-board { border-color: var(--line-ink); }
.section-paper .gate-row { border-color: var(--line-ink); }
.section-paper .gate-row code { color: var(--ink); }
.section-paper .gate-row span { color: var(--muted-dark); }
.section-paper .gate-row .pass { color: #3d5a00; border-color: rgba(61, 90, 0, 0.35); }

/* ---------- code ---------- */

.code {
  border: 1px solid var(--line);
  background: #0d100e;
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.copy {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  cursor: pointer;
}
.copy:hover { color: var(--acid); border-color: var(--acid); }
pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: #dfe6d8;
  tab-size: 2;
}
pre .c { color: #6f7a6d; }
pre .k { color: var(--acid); }
pre .s { color: #f0c27a; }
.section-paper .code { border-color: var(--line-ink); }

/* ---------- quote ---------- */

.quote {
  max-width: 28ch;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.quote em { color: var(--acid); font-style: italic; }

/* ---------- timeline ---------- */

.timeline { border-top: 1px solid var(--line); }
.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr 180px;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.timeline-item .when {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.timeline-item h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; letter-spacing: -0.01em; }
.timeline-item p { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.timeline-item .result { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--acid); text-align: right; }

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 16px; color: var(--acid); }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 24px; max-width: 72ch; color: var(--muted); }
.faq .answer p + p { margin-top: 0.8em; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: clamp(44px, 6vw, 72px) 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 38ch; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 400;
}
.footer-col a { display: block; color: var(--paper); text-decoration: none; font-size: 0.9rem; padding: 5px 0; }
.footer-col a:hover { color: var(--acid); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--acid); }

/* ---------- page hero (interior) ---------- */

.page-hero {
  padding: clamp(140px, 18vh, 210px) 0 clamp(52px, 7vw, 84px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 80% at 80% 20%, rgba(216, 255, 62, 0.07), transparent 65%),
    linear-gradient(180deg, rgba(10, 12, 11, 0.98), rgba(10, 12, 11, 0.94));
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 6.4vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  max-width: 16ch;
  margin-top: 18px;
}
.page-hero h1 em { font-style: italic; color: var(--acid); }
.page-deck {
  max-width: 62ch;
  margin-top: 22px;
  color: rgba(242, 239, 230, 0.78);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-meta span { display: inline-flex; align-items: center; gap: 8px; }
.page-meta i { width: 6px; height: 6px; background: var(--acid); border-radius: 50%; display: inline-block; }
.page-hero .hero-actions { margin-top: 30px; }

/* interior paper article */
.article { padding: clamp(52px, 7vw, 90px) 0; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}
.article-aside { position: sticky; top: 96px; }
.article-aside .mono { color: var(--muted-dark); margin-bottom: 14px; }
.article-aside a { display: block; text-decoration: none; color: var(--muted-dark); font-size: 0.9rem; padding: 5px 0; border-left: 1px solid var(--line-ink); padding-left: 14px; }
.article-aside a:hover { color: var(--ink); border-color: var(--ink); }
.article-body { max-width: 72ch; }
.article-body > p:first-child { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.4; }
.article-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 2.2em 0 0.7em;
}
.article-body h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 650;
  margin: 1.8em 0 0.5em;
}
.article-body p { margin: 0.9em 0; }
.article-body ul, .article-body ol { margin: 0.9em 0 0.9em 1.2em; }
.article-body li { margin: 0.4em 0; }
.article-body code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: rgba(10, 12, 11, 0.06);
  padding: 0.12em 0.35em;
  border: 1px solid rgba(10, 12, 11, 0.08);
}
.article-body a { color: var(--ink); text-decoration-color: rgba(10, 12, 11, 0.28); }
.article-body a:hover { text-decoration-color: var(--ink); }
.article-body .note {
  border-left: 2px solid var(--ink);
  padding: 12px 0 12px 18px;
  font-size: 0.95rem;
  color: var(--muted-dark);
  margin: 1.6em 0;
}
.article-body .figure { margin: 1.8em 0; }
.article-body .figure img { border: 1px solid var(--line-ink); }
.article-body .figcaption { color: var(--muted-dark); }

/* ---------- reading progress ---------- */

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: 2px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- misc ---------- */

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 5px 9px;
  color: var(--muted);
}
.section-paper .pill { border-color: var(--line-ink); color: var(--muted-dark); }

.big-quote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 30ch;
}
.big-quote em { color: var(--acid); }

.eyebrow-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.eyebrow-row .rule { height: 1px; width: 46px; background: var(--line-strong); }

.contact-card {
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.noscript { padding: 12px; background: var(--amber); color: var(--ink); text-align: center; font-family: var(--mono); font-size: 12px; }

/* reveal — hidden only after JS has taken over, so the page still reads
   with JavaScript disabled or broken */
[data-reveal] {
  opacity: 1;
  transform: none;
}
html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
html.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-head h2 { max-width: 18ch; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; display: none; }
  .gate-row { grid-template-columns: 130px 1fr auto; }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .menu-toggle { display: inline-block; }
  .header-github { display: none; }
  .hero { min-height: 92svh; }
  .hero-stat { padding-right: 10px; }
  .hero-stat span { font-size: 9px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-4 { gap: 0; background: none; }
  .grid-4 > * { border: 1px solid var(--line); margin-top: -1px; }
  .verdict { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 80px 1fr; }
  .timeline-item .result { grid-column: 2; text-align: left; }
  .duo { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat:nth-child(2) { border-right: 0; }
  .hero-stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip .stat { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .stat-strip .stat:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero h1 { font-size: clamp(2.9rem, 13vw, 4.4rem); }
  .hero-inner { padding-top: 96px; }
  .hero-actions .btn { width: 100%; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .gate-row { grid-template-columns: 1fr auto; }
  .gate-row span { grid-column: 1 / -1; }
  .page-hero h1 { font-size: clamp(2.5rem, 12vw, 3.8rem); }
  table.data { min-width: 620px; }
  .contact-card { align-items: flex-start; }
}

/* paper page header: keep the fixed bar readable on a light body */
body.page-paper .site-header:not(.is-scrolled) { background: rgba(10, 12, 11, 0.92); }
