/* jarcholevin.org — "vertebral reading spine" v4.1 — theme-grade polish
   Navigation as anatomy: left spine rail, vertebra sections, cold/warm
   alternating rhythm, fork diagram, sans body + serif patient voices.
   This pass adds the density of a paid WP theme: layered depth, badges,
   captions, figure numbers, micro-interactions, zebra tables. */

/* ---------- fonts (self-hosted woff2, latin + latin-ext) ---------- */

@font-face { font-family:"Source Serif 4"; font-style:italic; font-weight:400; font-display:swap;
  src:url("fonts/SourceSerif4-italic-400-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+2000-206F; }
@font-face { font-family:"Source Serif 4"; font-style:italic; font-weight:400; font-display:swap;
  src:url("fonts/SourceSerif4-italic-400-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+1CD0-1CF9,U+1D00-1DBF; }
@font-face { font-family:"Source Serif 4"; font-style:italic; font-weight:600; font-display:swap;
  src:url("fonts/SourceSerif4-italic-400-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+2000-206F; }

@font-face { font-family:"Source Sans 3"; font-style:normal; font-weight:400; font-display:swap;
  src:url("fonts/SourceSans3-normal-400-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+2000-206F; }
@font-face { font-family:"Source Sans 3"; font-style:normal; font-weight:400; font-display:swap;
  src:url("fonts/SourceSans3-normal-400-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+1CD0-1CF9,U+1D00-1DBF; }
@font-face { font-family:"Source Sans 3"; font-style:normal; font-weight:600; font-display:swap;
  src:url("fonts/SourceSans3-normal-600-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+2000-206F; }
@font-face { font-family:"Source Sans 3"; font-style:normal; font-weight:600; font-display:swap;
  src:url("fonts/SourceSans3-normal-600-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+1CD0-1CF9,U+1D00-1DBF; }
@font-face { font-family:"Source Sans 3"; font-style:normal; font-weight:700; font-display:swap;
  src:url("fonts/SourceSans3-normal-700-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+2000-206F; }
@font-face { font-family:"Source Sans 3"; font-style:normal; font-weight:700; font-display:swap;
  src:url("fonts/SourceSans3-normal-700-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+1CD0-1CF9,U+1D00-1DBF; }
@font-face { font-family:"Source Sans 3"; font-style:italic; font-weight:400; font-display:swap;
  src:url("fonts/SourceSans3-italic-400-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+2000-206F; }
@font-face { font-family:"Source Sans 3"; font-style:italic; font-weight:400; font-display:swap;
  src:url("fonts/SourceSans3-italic-400-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+1CD0-1CF9,U+1D00-1DBF; }

@font-face { font-family:"IBM Plex Mono"; font-style:normal; font-weight:400; font-display:swap;
  src:url("fonts/IBMPlexMono-normal-400-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+2000-206F; }
@font-face { font-family:"IBM Plex Mono"; font-style:normal; font-weight:400; font-display:swap;
  src:url("fonts/IBMPlexMono-normal-400-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+1CD0-1CF9,U+1D00-1DBF; }
@font-face { font-family:"IBM Plex Mono"; font-style:normal; font-weight:500; font-display:swap;
  src:url("fonts/IBMPlexMono-normal-500-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+2000-206F; }

/* ---------- tokens ---------- */

:root {
  --film: #E7EAEC;          /* cold lightbox gray (odd sections) */
  --film-deep: #DADEE1;
  --paper: #F6F3EC;         /* warm bone-white paper (even sections) */
  --paper-deep: #EDE8DC;

  --ink: #1F2A33;           /* cold blue-black (13.8:1 on film, 14.6:1 on paper) */
  --ink-soft: #4A5860;      /* secondary (7.5:1+) */
  --ink-dim: #66757E;       /* metadata (4.6:1+) */

  --rule: #C9CFD3;          /* cold hairline */
  --rule-warm: #D9D2C2;     /* warm hairline */

  --signal: #B0442C;        /* radiologist's marking red — the only signal color */
  --signal-ink: #8F3521;    /* small-text link red (5.4:1 on film) */

  --vertebra: #31465A;      /* structural blue: rail, fork lines, tables */

  --sans: "Source Sans 3", "PingFang SC", system-ui, sans-serif;
  --serif-voice: "Source Serif 4", Georgia, "Songti SC", serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  --rail-w: 64px;
  --ease: cubic-bezier(.2,.7,.3,1);

  /* layered depth scale (theme-grade) */
  --e1: 0 1px 2px rgba(31,42,51,.06), 0 2px 8px -2px rgba(31,42,51,.06);
  --e2: 0 1px 2px rgba(31,42,51,.07), 0 6px 18px -4px rgba(31,42,51,.10);
  --e3: 0 2px 4px rgba(31,42,51,.08), 0 16px 40px -8px rgba(31,42,51,.16);
  --e-hover: 0 2px 4px rgba(31,42,51,.08), 0 22px 48px -10px rgba(176,68,44,.18);
}

/* ---------- base ---------- */

* { box-sizing: border-box; }
html { scroll-padding-top: 84px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--signal-ink); text-decoration: none; border-bottom: 1px solid rgba(176,68,44,.3); transition: color .15s, border-color .15s; }
a:hover { color: var(--signal); border-bottom-color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
::selection { background: #EFD9CF; color: var(--ink); }

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); margin: 0 0 .5em; letter-spacing: -0.013em; }
h3 { font-size: 1.32rem; margin: 0 0 .4em; letter-spacing: -0.008em; }
p { margin: 0 0 1.2em; }
.measure { max-width: 64ch; }

ul.measure li + li, .measure ul li + li { margin-top: .5em; }
.measure li::marker { color: var(--signal); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; z-index: 100; font-size: .9rem;
}
.skip-link:focus { left: 0; }

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

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,243,236,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-warm);
  box-shadow: 0 1px 0 rgba(31,42,51,.03);
}
.site-head-inner {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink); border: none;
  padding: 13px 0;
}
.brand-mark { display: inline-flex; }
.brand-name { font-weight: 700; font-size: 1.06rem; display: block; line-height: 1.15; }
.brand-sub { font-size: .78rem; font-weight: 400; color: var(--ink-dim); display: block; margin-top: 2px; }
.site-nav { display: flex; align-items: center; }
.site-nav a {
  font-size: .9rem; font-weight: 600; color: var(--ink-soft);
  text-decoration: none; border: none; padding: 26px 13px;
  transition: color .15s;
}
.site-nav a:hover { color: var(--signal-ink); }
.site-nav a[aria-current="page"] { color: var(--signal-ink); }
/* language dropdown */
.lang-menu { position: relative; margin-left: 18px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--rule); background: var(--paper);
  color: var(--ink); font-family: var(--sans); font-size: .8rem;
  padding: 7px 13px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.lang-btn:hover { border-color: var(--signal); box-shadow: var(--e1); }
.lang-btn .chev { transition: transform .18s ease; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-pop {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 132px; background: var(--paper);
  border: 1px solid var(--rule); box-shadow: var(--e2);
  padding: 5px; z-index: 80;
}
.lang-pop.open { display: block; }
.lang-pop a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px !important; border-top: none !important;
  font-size: .84rem; color: var(--ink) !important; white-space: nowrap;
}
.lang-pop a:hover { background: var(--wash, rgba(31,42,51,.05)); }
.lang-pop a.current {
  color: var(--signal-ink) !important; font-weight: 600; cursor: default;
}
.lang-pop a.current::after { content: "✓"; font-size: .78rem; }
.nav-toggle {
  display: none; background: none; cursor: pointer;
  border: 1px solid var(--rule); color: var(--ink);
  font-family: var(--sans); font-size: .82rem; padding: 8px 14px;
}

/* ---------- opening plate ---------- */

.opening { background: var(--paper); border-bottom: 1px solid var(--rule-warm); overflow: hidden; }
.opening-inner {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(36px, 4.5vw, 64px) 0 clamp(26px, 3vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.opening-copy { min-width: 0; }
.opening h1 { margin: 0 0 18px; max-width: 21em; font-size: clamp(2rem, 3.8vw, 3rem); }
.opening .lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 36em; margin-bottom: 24px; }
.opening-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 0; }
.opening figure.plate { margin: 0; }
.opening figcaption .fig-cap {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* single-column language pages with no figure inside opening (updates etc.) */
.opening-inner.single { grid-template-columns: 1fr; }

/* ---------- badges (theme detail layer) ---------- */

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .05em;
  color: var(--vertebra);
  background: #EEF1F3;
  border: 1px solid #D4DADD;
  padding: 4px 11px; border-radius: 999px;
  white-space: nowrap;
}
.badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal);
}
.paper-tone .badge, .opening .badge { background: #F2EEE4; border-color: #DFD8C6; }
.badge.standalone { margin: 0 0 18px; }

/* ---------- figure numbering + captions (atlas feel) ---------- */

figure.plate { margin: 0 0 34px; }
figcaption {
  font-family: var(--mono); font-size: .76rem; color: var(--ink-dim);
  padding-top: 10px;
  display: flex; gap: 14px; align-items: baseline;
}
figcaption .fig-no { color: var(--vertebra); font-weight: 500; letter-spacing: .06em; }
figcaption .fig-cap { line-height: 1.5; }

/* ---------- the page spine ---------- */

.page-body { position: relative; }

.spine-rail {
  position: sticky; top: 96px;
  float: left;
  width: var(--rail-w);
  height: calc(100vh - 120px);
  display: flex; flex-direction: column; align-items: center;
  z-index: 10;
}
.spine-rail::before {
  content: ""; position: absolute; top: 8px; bottom: 8px; left: 50%;
  width: 2px; margin-left: -1px; background: var(--vertebra); opacity: .22;
}
.rail-vert {
  position: relative; z-index: 1;
  width: 22px; height: 30px; margin: 14px 0;
  border: 2px solid var(--vertebra);
  border-radius: 7px 7px 6px 6px;
  background: var(--paper);
  display: block;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.rail-vert:hover, .rail-vert:focus-visible { border-color: var(--signal); transform: scale(1.12); }
.rail-vert.active { background: var(--signal); border-color: var(--signal); }
.rail-vert .n {
  position: absolute; left: 30px; top: 5px;
  font-family: var(--mono); font-size: .72rem; color: var(--ink-dim);
  white-space: nowrap;
}
.rail-vert.active .n { color: var(--signal-ink); font-weight: 500; }

.vertebra-col {
  margin-left: calc(var(--rail-w) + clamp(24px, 4vw, 56px));
  width: calc(100% - var(--rail-w) - clamp(24px, 4vw, 56px));
}

.vertebra { padding: clamp(56px, 7vw, 92px) clamp(20px, 3.5vw, 48px); }
.vertebra.film-tone { background: var(--film); }
.vertebra.paper-tone { background: var(--paper); }
.vertebra-inner { width: min(1240px, 100%); margin: 0 auto; }
/* prose keeps readable line length even in wide container */
.vertebra-inner > p { max-width: 72ch; }
.vertebra-inner > h2, .vertebra-inner > h3 { max-width: 30ch; }
.vertebra-inner > :last-child, .vertebra-inner > :last-child > :last-child { margin-bottom: 0; }

.disc {
  height: clamp(28px, 4vw, 44px);
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
}
.disc::before {
  content: ""; width: 46px; height: 4px; border-radius: 2px;
  background: var(--vertebra); opacity: .18;
}

/* ---------- fork ---------- */

.fork { margin: clamp(24px, 3vw, 40px) 0 clamp(8px, 1.5vw, 18px); }
.fork-lines { display: block; width: 100%; height: auto; }
.fork-branches {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(20px, 3vw, 36px);
}
.fork-branch {
  display: block; text-decoration: none; color: inherit;
  background: #FDFDFD;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(20px, 2.5vw, 30px);
  box-shadow: var(--e1);
  transition: border-color .18s, box-shadow .18s, transform .18s var(--ease);
}
.fork-branch:hover {
  border-color: rgba(176,68,44,.55);
  box-shadow: var(--e-hover);
  transform: translateY(-3px);
}
.fork-branch .thumb {
  margin: -4px 0 18px; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--rule);
}
.fork-branch .thumb img { width: 100%; }
.fork-branch h3 { font-size: 1.5rem; margin-bottom: 2px; }
.fork-branch .alias { font-family: var(--mono); font-size: .8rem; color: var(--ink-dim); display: block; margin: 0 0 14px; }
.fork-branch ul { list-style: none; margin: 0; padding: 0; }
.fork-branch li { padding: 8px 0 8px 22px; position: relative; font-size: .98rem; color: var(--ink-soft); }
.fork-branch li::before {
  content: ""; position: absolute; left: 0; top: 19px;
  width: 10px; height: 2px; background: var(--signal);
}
.fork-branch .go {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 16px; font-weight: 650; font-size: .94rem; color: var(--signal-ink);
}
.fork-branch .go::after { content: "→"; transition: transform .18s var(--ease); }
.fork-branch:hover .go::after { transform: translateX(4px); }

/* ---------- reading note ---------- */

.reading-note {
  background: #FDFDFD;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--signal);
  border-radius: 0 10px 10px 0;
  padding: 24px 28px; margin: 0 0 32px;
  box-shadow: var(--e1);
}
.film-tone .reading-note { background: #F4F6F7; }
.reading-note p { margin: 0; font-size: 1.04rem; }
.reading-note .src { display: block; margin-top: 12px; font-family: var(--mono); font-size: .78rem; color: var(--ink-dim); }

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

.voice-quote {
  margin: clamp(28px, 3.5vw, 44px) 0;
  padding: 8px 0 8px 28px;
  border-left: 3px solid var(--signal);
  position: relative;
}
.voice-quote::before {
  content: "\201C"; position: absolute; left: 14px; top: -14px;
  font-family: var(--serif-voice); font-size: 3.2rem; line-height: 1;
  color: rgba(176,68,44,.35);
}
.voice-quote p {
  font-family: var(--serif-voice); font-style: italic;
  font-size: 1.3rem; line-height: 1.55; color: var(--ink);
  margin: 0 0 8px;
}
.voice-quote cite { font-family: var(--sans); font-style: normal; font-size: .85rem; color: var(--ink-dim); }

/* ---------- evidence note ---------- */

.evidence-box {
  padding: 4px 0 4px 24px; margin: 28px 0;
  border-left: 2px solid var(--rule);
  font-size: .95rem; color: var(--ink-soft);
}
.evidence-box .src { font-family: var(--mono); font-size: .78rem; color: var(--ink-dim); }
.film-tone .evidence-box { border-left-color: #B9C0C5; }

/* ---------- comparison table ---------- */

.cmp-wrap {
  background: #FDFDFD; border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(14px, 2.5vw, 30px);
  overflow-x: auto; box-shadow: var(--e1);
}
.cmp-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cmp-table th, .cmp-table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.cmp-table thead th {
  font-weight: 700; font-size: .86rem; letter-spacing: .02em;
  color: var(--vertebra); border-bottom: 2px solid var(--vertebra);
}
.cmp-table tbody tr:nth-child(even) td { background: rgba(49,70,90,.035); }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table td:first-child { color: var(--ink-soft); width: 24%; font-weight: 600; }

/* ---------- moments ---------- */

.moment-rows { border-top: 1px solid var(--rule); }
.moment-row {
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1.9fr) 130px;
  gap: clamp(16px, 2.5vw, 32px); align-items: center;
  padding: clamp(20px, 2.5vw, 30px) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none; color: inherit;
}
.moment-row:hover h3 { color: var(--signal-ink); }
.moment-row h3 { font-size: 1.28rem; margin: 0 0 6px; transition: color .15s; }
.moment-row p { font-size: .97rem; color: var(--ink-soft); margin: 0; }
.moment-row .go {
  font-weight: 650; font-size: .92rem; color: var(--signal-ink);
  justify-self: end; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
}
.moment-row .go::after { content: "→"; transition: transform .18s var(--ease); }
.moment-row:hover .go::after { transform: translateX(4px); }

/* ---------- method ---------- */

.method { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.5vw, 48px); }
.method h3 { font-size: 1.18rem; }
.method p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.method > div {
  padding: 22px 24px;
  background: #FDFDFD;
  border: 1px solid var(--rule-warm);
  border-radius: 10px;
  box-shadow: var(--e1);
  transition: box-shadow .18s, transform .18s var(--ease);
}
.method > div:hover { box-shadow: var(--e2); transform: translateY(-2px); }

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

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .95rem; font-weight: 650;
  padding: 14px 26px;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background .16s, color .16s, border-color .16s, box-shadow .16s, transform .16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: var(--paper); box-shadow: var(--e1); }
.btn.primary:hover { background: var(--signal); box-shadow: var(--e-hover); }
.btn.ghost { border-color: var(--rule); color: var(--ink); }
.btn.ghost:hover { border-color: var(--signal); color: var(--signal-ink); box-shadow: var(--e1); }

/* ---------- film plate (illustrations as film sheets) ---------- */

.film-plate {
  position: relative;
  border: 1px solid #B9C0C5;
  border-radius: 8px;
  background: #FDFDFD;
  padding: 10px;
  box-shadow: var(--e2);
}
.film-plate::before {
  content: ""; position: absolute; top: -7px; left: 22px;
  width: 34px; height: 12px; border-radius: 3px;
  background: var(--vertebra);
  box-shadow: 0 2px 4px rgba(31,42,51,.25);
}
.film-plate img { width: 100%; border-radius: 4px; }
.film-plate { margin-bottom: 0; }
figure.plate .film-plate { margin-bottom: 0; }

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

.disclaimer-band { background: var(--paper-deep); border-top: 1px solid var(--rule-warm); }
.disclaimer-band-inner {
  width: min(1240px, calc(100% - 48px)); margin: 0 auto;
  padding: 20px 0; font-size: .84rem; color: var(--ink-dim); line-height: 1.6;
}
.site-foot { background: var(--ink); }
.site-foot-inner {
  width: min(1240px, calc(100% - 48px)); margin: 0 auto;
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr .8fr;
  gap: 36px; padding: 52px 0 48px;
}
.site-foot .foot-h {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #A9B4BB; margin: 0 0 14px;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 8px 0; }
.site-foot a { color: #C4CDD2; border: none; font-size: .9rem; }
.site-foot a:hover { color: #F6F3EC; }
.site-foot .brand { padding: 0; margin-bottom: 16px; color: #F6F3EC; }
.site-foot .brand-name { color: #F6F3EC; }
.site-foot .brand-sub { color: #9AA7AE; }
.site-foot > .site-foot-inner > div:first-child p {
  font-size: .88rem; color: #C4CDD2; max-width: 38ch; line-height: 1.65; margin: 0;
}
.foot-legal {
  border-top: 1px solid rgba(246,243,236,.14);
  width: min(1240px, calc(100% - 48px)); margin: 0 auto;
  padding: 20px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .78rem; color: #9AA7AE;
}
.foot-legal a { color: inherit; border: none; }

/* ---------- study list (research timeline) ---------- */

.study-list { border-top: 1px solid var(--rule); }
.study-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: clamp(16px, 3vw, 36px);
  padding: clamp(18px, 2.5vw, 26px) 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.study-when { text-align: right; }
.study-when .yr {
  font-family: var(--mono);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--vertebra);
  display: block;
  line-height: 1.1;
}
.study-when .kind {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
}
.study-item .weight {
  /* evidence weight marker: filled = stronger evidence */
  display: inline-flex;
  gap: 3px;
  margin-top: 7px;
}
.study-item .weight i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--rule);
}
.study-item .weight i.f { background: var(--signal); }
.study-main h3 { font-size: 1.16rem; margin: 2px 0 6px; }
.study-main p { font-size: .97rem; color: var(--ink-soft); margin: 0 0 10px; }
.study-main .src {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--ink-dim);
}
.study-main .src a { border-bottom: none; color: var(--signal-ink); }
.study-note {
  display: block;
  margin-top: 26px;
  font-size: .8rem;
  color: var(--ink-dim);
  font-family: var(--mono);
}

/* ---------- A-grade trust band (rating-display moment) ---------- */

.trust-band { text-align: center; padding: 8px 0 4px; }
.trust-display { display: inline-flex; align-items: center; gap: 18px; }
.trust-display .laurel { width: 30px; height: 46px; opacity: .8; }
.trust-num {
  font-size: clamp(3.2rem, 6vw, 4.2rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.trust-cap { font-size: 1rem; color: var(--ink-soft); margin: 6px 0 26px; }
.trust-cols { display: flex; justify-content: center; gap: clamp(32px, 5vw, 72px); flex-wrap: wrap; }
.trust-col { display: flex; flex-direction: column; gap: 2px; max-width: 190px; text-align: left; }
.trust-col .n {
  font-size: 1.4rem; font-weight: 700; color: var(--vertebra);
  font-variant-numeric: tabular-nums;
}
.trust-col .l { font-size: .84rem; color: var(--ink-dim); line-height: 1.4; }

/* ---------- A-grade host-style voice cards ---------- */

.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 24px); }
.voice-card {
  background: #FDFDFD;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--e1);
  display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow .18s, transform .18s var(--ease);
}
.film-tone .voice-card { background: #F4F6F7; }
.voice-card:hover { box-shadow: var(--e2); transform: translateY(-2px); }
.voice-card .who { display: flex; align-items: center; gap: 12px; }
.voice-card .avatar {
  width: 42px; height: 42px; border-radius: 9999px;
  background: var(--film-deep); color: var(--vertebra);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.05rem;
  flex: none;
}
.voice-card .nm { display: block; font-size: .92rem; font-weight: 700; }
.voice-card .rl { display: block; font-size: .78rem; color: var(--ink-dim); }
.voice-card .chip {
  margin-left: auto;
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 3px 10px; color: var(--ink-dim);
  white-space: nowrap;
}
.voice-card blockquote {
  margin: 0;
  font-family: var(--serif-voice); font-style: italic;
  font-size: 1.12rem; line-height: 1.55; color: var(--ink);
}

/* ---------- A-grade final CTA reservation card ---------- */

.next-wrap {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.next-copy h2 { margin-bottom: 8px; }
.next-copy .sub { font-size: 1.05rem; color: var(--ink-soft); max-width: 38em; }
.next-list { list-style: none; margin: 18px 0 0; padding: 0; }
.next-list li { padding: 11px 0; border-top: 1px solid var(--rule); font-size: .98rem; }
.next-list li::before { content: "· "; color: var(--signal); font-weight: 700; }
.reservation-card {
  background: #FDFDFD;
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--e2);
  padding: 26px;
  display: flex; flex-direction: column; gap: 6px;
}
.film-tone .reservation-card { background: #F4F6F7; }
.reservation-card .r-title { font-size: 1.3rem; font-weight: 700; }
.reservation-card .r-sub { font-size: .86rem; color: var(--ink-dim); margin-bottom: 12px; }
.reservation-card .btn { width: 100%; justify-content: center; }
.reservation-card .r-fine { font-size: .74rem; color: var(--ink-dim); text-align: center; margin: 12px 0 0; }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .rail-vert, .fork-branch, .moment-row .go::after, .fork-branch .go::after { transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; }
}

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

@media (max-width: 1080px) {
  .spine-rail { display: none; }
  .vertebra-col { margin-left: 0; width: 100%; }
}


@media (max-width: 960px) {
  .opening-inner { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .opening h1 { font-size: clamp(1.9rem, 6vw, 2.4rem); }
  .opening .lead { font-size: 1.05rem; margin-bottom: 20px; }
}

@media (max-width: 1024px) {
  .site-foot-inner { grid-template-columns: 1fr 1fr; }
  .method { grid-template-columns: 1fr; gap: 20px; }
  .moment-row { grid-template-columns: 1fr; gap: 8px; }
  .moment-row .go { justify-self: start; }
  .voice-grid { grid-template-columns: 1fr; }
  .next-wrap { grid-template-columns: 1fr; gap: 24px; }
  .study-item { grid-template-columns: 84px 1fr; gap: 16px; }
}

@media (max-width: 880px) {
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule-warm);
    flex-direction: column; align-items: stretch; padding: 6px 24px 14px;
    display: none; box-shadow: var(--e2);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 4px; border-top: 1px solid var(--rule-warm); }
  .site-nav .lang-menu { margin: 10px 0 4px; align-self: flex-start; }
  .nav-toggle { display: block; }
  .fork-branches { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 18px; }
  .site-head-inner, .opening-inner, .site-foot-inner,
  .foot-legal, .disclaimer-band-inner { width: calc(100% - 40px); }
  .site-foot-inner { grid-template-columns: 1fr; gap: 28px; }
  .opening-actions .btn { width: 100%; justify-content: center; }
  .cmp-table { font-size: .87rem; }
  .cmp-table td:first-child { width: 34%; }
  .voice-quote p { font-size: 1.15rem; }
  .study-item { grid-template-columns: 1fr; gap: 6px; }
  .study-when { text-align: left; display: flex; align-items: center; gap: 10px; }
  .study-when .yr { font-size: 1rem; }
  .study-when .kind { margin-top: 0; }
  .study-item .weight { margin-top: 0; }
}

/* ---------- print ---------- */

@media print {
  .site-head, .site-foot, .disclaimer-band, .nav-toggle, .spine-rail, .film-banner { display: none; }
  body { background: #fff; font-size: 12pt; }
  .vertebra { padding: 12pt 0; background: none !important; }
  .film-plate { border: 1px solid #999; box-shadow: none; }
  .reading-note, .method > div, .cmp-wrap { border: 1px solid #999; background: none; box-shadow: none; }
  a { color: #000; border: none; }
}
