/* ==========================================================================
   zhaoningzhang.com — Paper × Signal
   Self-hosted fonts only. No inline styles. No third-party resources.
   ========================================================================== */

@font-face { font-family: "Cardo"; src: url("../fonts/cardo-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("../fonts/cardo-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-light.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/interdisplay-light.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Anonymous Pro"; src: url("../fonts/anonymouspro-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }

@font-face { font-family: "LM Roman"; src: url("../fonts/lmroman8-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "LM Roman"; src: url("../fonts/lmroman8-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "LM Roman"; src: url("../fonts/lmroman8-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "LM Roman 17"; src: url("../fonts/lmroman17-caps.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "LM Math"; src: url("../fonts/lmmath.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --paper: #F3F1EC;
  --paper-2: #EAE7DF;
  --ink: #111114;
  --ink-2: #3D4049;
  --muted: #7B7D85;
  --rule: rgba(17, 17, 20, .13);
  --rule-strong: rgba(17, 17, 20, .28);
  --signal: #1C1CF0;
  --signal-ink: #1C1CF0;
  --on-signal: #F4F4F6;
  --on-signal-2: rgba(244, 244, 246, .84);
  --nav-bg: rgba(243, 241, 236, .72);

  --serif: "Cardo", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --display: "Inter Display", "Inter", -apple-system, "SF Pro Display", sans-serif;
  --mono: "Anonymous Pro", "Inter", ui-monospace, "SF Mono", Menlo, monospace;
  --tex: "LM Roman", "LM Math", "Latin Modern Roman", "CMU Serif", "Computer Modern", Georgia, serif;

  --pad: clamp(20px, 4.2vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}


*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 17px/1.65 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }
b { font-weight: 500; }
::selection { background: var(--signal); color: var(--on-signal); }
:focus-visible { outline: 2px solid var(--signal-ink); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5; font-weight: 400; }
.muted { color: var(--muted); }
.signal { color: var(--signal-ink); }
.serif-em { font-family: var(--serif); font-style: italic; font-size: 1.12em; color: var(--signal-ink); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* Editorial column guides ------------------------------------------------ */
.guides {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.guides span { border-left: 1px solid var(--rule); opacity: .45; }
.guides span:last-child { border-right: 1px solid var(--rule); }
.guides span:nth-child(5) { display: none; }
@media (max-width: 720px) { .guides { grid-template-columns: repeat(2, 1fr); } .guides span:nth-child(n+3) { display: none; } .guides span:nth-child(2) { border-right: 1px solid var(--rule); } }

main, .foot, .nav { position: relative; z-index: 1; }

/* Navigation (Apple-style frosted bar) ------------------------------------ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--rule); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__mark {
  display: grid; place-items: center; width: 28px; height: 28px;
  background: var(--signal); color: var(--on-signal);
  font: italic 400 19px/1 var(--serif); padding-top: 2px;
}
.nav__name { font: 400 19px/1 var(--serif); letter-spacing: -.005em; white-space: nowrap; }
.nav__links { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.nav__links a {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2); position: relative; padding: 6px 0; transition: color .2s; white-space: nowrap;
}
.nav__links a .idx { color: var(--muted); margin-right: 6px; font-size: 10.5px; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--rule-strong); background: transparent; border-radius: 999px; cursor: pointer; position: relative; color: var(--ink); }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
.nav__toggle span:first-child { top: 16px; } .nav__toggle span:last-child { top: 22px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 1120px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--pad) 20px;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .nav__links.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
  .nav__links a::after { display: none; }
}

/* Buttons --------------------------------------------------------------- */
.pill, .btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 999px; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
  border: 1px solid transparent; white-space: nowrap;
}
.pill { padding: 8px 14px; }
.pill--signal { background: var(--signal); color: var(--on-signal); }
.pill--signal:hover { transform: translateY(-1px); }
.btn { padding: 14px 22px; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--signal); color: var(--on-signal); }
.btn--line { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); }
.btn--paper { background: var(--on-signal); color: var(--signal); }
.btn--paper:hover { transform: translateY(-1px); }
.btn--inv { background: transparent; color: var(--on-signal); border-color: rgba(244,244,246,.45); font: inherit; font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.btn--inv:hover { border-color: var(--on-signal); }

/* Hero ------------------------------------------------------------------- */
.hero { padding-top: 100px; padding-bottom: clamp(56px, 9vw, 120px); min-height: 100svh; display: flex; flex-direction: column; }
.hero__meta { display: flex; justify-content: space-between; color: var(--muted); padding: 10px 0 0; border-top: 1px solid var(--rule-strong); }
.hero__grid { flex: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-top: clamp(20px, 3vw, 40px); }
.hero__name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(64px, 10.6vw, 164px); line-height: .9; letter-spacing: -.035em;
  margin-left: -.04em;
}
.hero__name .line { display: block; }
.hero__name em { font-style: italic; letter-spacing: -.03em; }
.hero__name .dot { color: var(--signal-ink); font-style: normal; }
.hero__lede { margin-top: clamp(22px, 2.4vw, 32px); max-width: 30ch; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.42; font-weight: 300; color: var(--ink-2); letter-spacing: -.01em; }
.hero__facts { margin: clamp(22px, 2.4vw, 30px) 0 0; display: grid; gap: 0; max-width: 560px; }
.hero__facts div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule); }
.hero__facts div:last-child { border-bottom: 1px solid var(--rule); }
.hero__facts dt { color: var(--muted); }
.hero__facts dd { margin: 0; color: var(--ink); text-transform: none; letter-spacing: .02em; font-size: 13.5px; }
.hero__facts a { border-bottom: 1px solid var(--rule-strong); transition: border-color .2s, color .2s; }
.hero__facts a:hover { color: var(--signal-ink); border-color: currentColor; }
.hero__cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Interactive field figure ---------------------------------------------- */
.field { margin: 0; border: 1px solid var(--rule-strong); background: var(--paper); display: flex; flex-direction: column; }
.field__bar, .field__foot { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; color: var(--muted); font-size: 11px; }
.field__bar { border-bottom: 1px solid var(--rule); }
.field__foot { border-top: 1px solid var(--rule); text-transform: none; letter-spacing: .02em; font-size: 11.5px; }
.field__live { display: inline-flex; align-items: center; gap: 7px; color: var(--signal-ink); }
.field__live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.field__stage { position: relative; aspect-ratio: 1 / 1.04; cursor: crosshair; touch-action: pan-y; }
.field__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.field__readout { white-space: nowrap; font-variant-numeric: tabular-nums; }
.field__readout b { color: var(--ink); font-weight: 400; }

/* Sections ---------------------------------------------------------------- */
.section { padding-top: clamp(80px, 11vw, 160px); padding-bottom: clamp(20px, 3vw, 40px); }
.sec-head { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; border-top: 1px solid var(--rule-strong); margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head--inv { border-top-color: rgba(244,244,246,.35); color: var(--on-signal-2); }
.sec-title { font-family: var(--serif); font-size: clamp(40px, 5.6vw, 80px); line-height: 1; letter-spacing: -.03em; }

.statement {
  font-family: var(--serif); font-size: clamp(34px, 4.6vw, 66px); line-height: 1.08; letter-spacing: -.025em;
  max-width: 19ch;
}
.statement em { color: var(--ink-2); }
@media (min-width: 900px) { .statement { max-width: 22ch; } }

.triad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(56px, 7vw, 96px); }
.triad__item { border-top: 1px solid var(--rule); padding-top: 18px; }
.triad__item h3 { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -.01em; margin: 14px 0 12px; }
.triad__item p { color: var(--ink-2); font-size: 16px; }

.interests { display: grid; grid-template-columns: 160px 1fr; gap: 24px; margin-top: clamp(56px, 7vw, 88px); align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--rule-strong); border-radius: 999px; padding: 7px 14px; font-size: 14.5px; font-weight: 400; color: var(--ink-2); transition: border-color .2s, color .2s; }
.chips li:hover { border-color: var(--signal-ink); color: var(--signal-ink); }

/* Signal section (AROMA) ------------------------------------------------- */
.signal-sec {
  margin-top: clamp(80px, 11vw, 160px);
  background: var(--signal); color: var(--on-signal);
  padding: clamp(28px, 4vw, 48px) 0 clamp(72px, 10vw, 140px);
  position: relative; overflow: hidden; isolation: isolate;
}
.signal-sec::before { /* fine engraved line texture */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(255,255,255,.55) 7px 8px);
  -webkit-mask-image: radial-gradient(120% 70% at 85% 10%, #000 0%, transparent 60%);
  mask-image: radial-gradient(120% 70% at 85% 10%, #000 0%, transparent 60%);
}
.signal-sec ::selection { background: var(--on-signal); color: var(--signal); }
.signal-sec :focus-visible { outline-color: var(--on-signal); }
.paper { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1080px) {
  .paper { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: clamp(40px, 5vw, 88px); }
  .paper__acr { grid-column: 1 / -1; }
  .paper__fig { align-self: end; }
}
.paper__fig { margin: clamp(40px, 5vw, 0px) 0 0; border: 1px solid rgba(244,244,246,.3); }
.paper__figbar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(244,244,246,.22); color: var(--on-signal-2); font-size: 11px; }
.paper__svg { display: block; width: 100%; height: auto; padding: 14px 6px 4px; }
.paper__svg .svg-t { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; fill: #F4F4F6; }
.paper__svg .svg-m { fill-opacity: .62; }
.paper__figcap { padding: 12px 14px 14px; border-top: 1px solid rgba(244,244,246,.22); font-size: 13.5px; line-height: 1.5; color: var(--on-signal-2); }
.paper__acr { font-family: "LM Roman 17", "LM Roman", var(--serif); font-weight: 400; font-size: clamp(84px, 15.5vw, 236px); line-height: .86; letter-spacing: .015em; margin-left: -.03em; }
.paper__title { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 48px); line-height: 1.12; letter-spacing: -.02em; margin-top: clamp(24px, 3vw, 36px); max-width: 26ch; }
.paper__by { margin-top: 22px; color: var(--on-signal-2); text-transform: none; letter-spacing: .03em; font-size: 13.5px; }
.paper__abs { margin-top: 26px; max-width: 58ch; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--on-signal); }
.paper__abs em { font-family: var(--serif); font-size: 1.1em; }
.paper__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(64px, 8vw, 112px); border-top: 1px solid rgba(244,244,246,.35); }
.steps li { padding: 18px 18px 6px 0; border-right: 1px solid rgba(244,244,246,.2); }
.steps li + li { padding-left: 18px; }
.steps li:last-child { border-right: 0; }
.steps .mono { color: var(--on-signal-2); }
.steps h3 { font-family: var(--serif); font-size: clamp(24px, 2.1vw, 30px); letter-spacing: -.01em; margin: 26px 0 10px; }
.steps p { font-size: 14.5px; line-height: 1.55; color: var(--on-signal-2); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: clamp(64px, 8vw, 112px); background: rgba(244,244,246,.25); border: 1px solid rgba(244,244,246,.25); }
.stat { background: var(--signal); padding: clamp(20px, 2.2vw, 30px); display: flex; flex-direction: column; gap: 22px; min-height: 260px; }
.stat__num { font-family: var(--display); font-weight: 300; font-size: clamp(48px, 5vw, 76px); line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.stat__num span { font-size: .38em; letter-spacing: 0; margin-left: .12em; color: var(--on-signal-2); }
.stat__txt { font-size: 15px; line-height: 1.55; color: var(--on-signal-2); margin-top: auto; }
.stat__txt b { color: var(--on-signal); }
.stat__txt sup { font-size: .7em; }
.replication { margin-top: 20px; color: var(--on-signal-2); text-transform: none; letter-spacing: .03em; font-size: 12.5px; }

.term { margin-top: clamp(48px, 6vw, 80px); max-width: 760px; background: #08085E; border: 1px solid rgba(244,244,246,.18); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.55); }
.term__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(244,244,246,.14); color: var(--on-signal-2); font-size: 11px; }
.term__dots { display: flex; gap: 6px; }
.term__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(244,244,246,.28); }
.term__copy { background: transparent; border: 1px solid rgba(244,244,246,.3); color: var(--on-signal); border-radius: 999px; padding: 4px 10px; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.term__copy:hover { border-color: var(--on-signal); }
.term__body { margin: 0; padding: 20px 22px 24px; overflow-x: auto; font: 400 14px/1.7 var(--mono); color: #DCDCFF; }

/* ===== Paper sections & labs ============================================= */
.thesis { margin-top: clamp(64px, 8vw, 112px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(24px, 4vw, 64px); border-top: 1px solid rgba(244,244,246,.35); padding-top: 22px; }
.thesis__kicker { color: var(--on-signal-2); grid-column: 1 / -1; }
.thesis__line { font-family: var(--serif); font-size: clamp(40px, 5.4vw, 84px); line-height: .98; letter-spacing: -.03em; font-style: italic; }
.thesis__three { display: grid; gap: 18px; }
.thesis__three li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; font-size: 16px; line-height: 1.55; color: var(--on-signal-2); }
.thesis__three li p { margin: 0; }
.thesis__three li b { color: var(--on-signal); font-weight: 500; }
.thesis__three .mono { color: var(--on-signal); padding-top: 2px; }

.rankfig { padding: 10px 6px 0; }
.rankfig svg, .vecfig svg, .bars svg, .linefig svg, .xfig svg, .scatter svg { display: block; width: 100%; height: auto; overflow: visible; }
.rankfig__ctl { display: grid; gap: 6px; padding: 4px 14px 10px; color: var(--on-signal-2); }
.rankfig__ctl label { font-size: 11px; }

/* Lab shell */
.lab { margin-top: clamp(56px, 7vw, 96px); border: 1px solid rgba(244,244,246,.32); background: rgba(8, 8, 94, .22); }
.lab__head { padding: clamp(18px, 2.4vw, 30px); border-bottom: 1px solid rgba(244,244,246,.2); display: grid; gap: 10px; }
.lab__head h3 { max-width: 30ch; }
.lab__head .mono { color: var(--on-signal-2); }
.lab__head h3 { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 40px); line-height: 1.08; letter-spacing: -.02em; }
.lab__head p { color: var(--on-signal-2); font-size: 15.5px; line-height: 1.6; max-width: 72ch; }
.lab__body { display: grid; }
.lab__body--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lab__panel { padding: clamp(16px, 2vw, 26px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; min-width: 0; }
.lab__panel + .lab__panel { border-left: 1px solid rgba(244,244,246,.2); }
.lab__panel--text p { font-size: 15.5px; line-height: 1.6; color: var(--on-signal-2); }
.lab__panel--text p b { color: var(--on-signal); font-weight: 500; }
.lab__note { font-size: 14px; line-height: 1.6; color: var(--on-signal-2); }
.lab__note b { color: var(--on-signal); font-weight: 500; }
.lab__src { padding: 10px clamp(16px, 2vw, 26px); border-top: 1px solid rgba(244,244,246,.2); color: var(--on-signal-2); font-size: 10.5px; text-transform: none; letter-spacing: .03em; }
.big-num { font-family: var(--display); font-weight: 300; font-size: clamp(56px, 6vw, 92px) !important; line-height: 1 !important; letter-spacing: -.045em; color: var(--on-signal) !important; }
.big-num span { font-size: .36em; color: var(--on-signal-2); margin-left: .1em; letter-spacing: 0; }
.muted-inv { color: var(--on-signal-2); text-transform: none; letter-spacing: .02em; }

/* Controls */
.ctl { display: grid; gap: 8px; }
.ctl label { font-size: 11.5px; color: var(--on-signal-2); }
.ctl--row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 0 clamp(16px, 2vw, 26px); }
.ctl--row:first-child, .lab__head + .ctl--row { padding-top: clamp(14px, 1.8vw, 20px); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: rgba(244,244,246,.35); }
input[type="range"]::-moz-range-track { height: 2px; background: rgba(244,244,246,.35); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px; border-radius: 50%; background: var(--on-signal); border: 0; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--on-signal); border: 0; }
.chip { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(244,244,246,.45); background: transparent; color: var(--on-signal); cursor: pointer; }
.chip:hover { background: rgba(244,244,246,.12); }
.mea__stat { color: var(--on-signal-2); font-size: 11px; text-transform: none; letter-spacing: .03em; }

.seg { display: inline-flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0; border: 1px solid rgba(244,244,246,.4); border-radius: 999px; padding: 3px; width: max-content; max-width: 100%; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 0 0 auto; white-space: nowrap; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: transparent; color: var(--on-signal-2); border: 0; border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--on-signal); color: var(--signal); }
.seg--sm button { font-size: 10.5px; padding: 6px 10px; }

.readout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(244,244,246,.2); border: 1px solid rgba(244,244,246,.2); margin: 0; }
.readout div { background: var(--signal); padding: 10px 12px; }
.readout dt { color: var(--on-signal-2); font-size: 10px; }
.readout dd { margin: 4px 0 0; font-family: var(--display); font-size: 24px; letter-spacing: -.02em; text-transform: none; color: var(--on-signal); }
.mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; font-size: 10.5px; color: var(--on-signal-2); text-transform: none; letter-spacing: .02em; }
.mini b { display: block; font-family: var(--display); font-weight: 300; font-size: 28px; letter-spacing: -.03em; color: var(--on-signal); }

/* SVG chart text */
.ch-t { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; fill: currentColor; }
.ch-v { font-family: var(--display); font-size: 13px; fill: currentColor; }
.ch-axis { stroke: currentColor; stroke-opacity: .35; }
.ch-grid { stroke: currentColor; stroke-opacity: .12; }
.bars, .linefig, .rankfig, .vecfig, .xfig, .scatter { color: var(--on-signal); }

/* MEA canvas */
.meafig { position: relative; border: 1px solid rgba(244,244,246,.2); }
.meafig canvas { display: block; width: 100%; aspect-ratio: 1 / .9; }
.meafig__legend { position: absolute; left: 10px; bottom: 8px; display: flex; gap: 8px; align-items: center; font-size: 10px; color: var(--on-signal-2); text-transform: none; letter-spacing: .02em; flex-wrap: wrap; }
.k { display: inline-block; width: 14px; height: 3px; }
.k--mea { background: #F4F4F6; } .k--frz { background: #FFB25C; } .k--tgt { background: rgba(120, 255, 210, .55); height: 10px; }

/* Funnel */
.funnel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid rgba(244,244,246,.2); }
.funnel button { text-align: left; background: transparent; border: 0; border-right: 1px solid rgba(244,244,246,.2); color: var(--on-signal); padding: 16px clamp(12px, 1.6vw, 20px); cursor: pointer; display: grid; gap: 6px; position: relative; font: inherit; }
.funnel button:last-child { border-right: 0; }
.funnel button b { font-family: var(--display); font-weight: 300; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.03em; }
.funnel button span { font-size: 13px; color: var(--on-signal-2); line-height: 1.4; }
.funnel button[aria-selected="true"] { background: rgba(244,244,246,.1); }
.funnel button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--on-signal); }
.funnel__txt { padding: 14px clamp(16px, 2vw, 26px); font-size: 15px; color: var(--on-signal-2); border-bottom: 1px solid rgba(244,244,246,.2); min-height: 3.4em; }

.repl { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(244,244,246,.25); border: 1px solid rgba(244,244,246,.25); font-size: 11.5px; text-transform: none; letter-spacing: .02em; color: var(--on-signal-2); }
.repl div { background: var(--signal); padding: 16px 18px; line-height: 1.5; }
.repl b { display: block; font-family: var(--display); font-weight: 300; font-size: 30px; letter-spacing: -.03em; color: var(--on-signal); margin-bottom: 6px; }

/* ===== Ink section (Seen but Unsaid) ===================================== */
.ink-sec {
  --on-signal: #ECEBF5; --on-signal-2: rgba(236,235,245,.78); --lab-accent: #8C8CFF;
  background: #0C0C12; color: var(--on-signal); padding: clamp(28px, 4vw, 48px) 0 clamp(72px, 10vw, 140px);
  position: relative; overflow: hidden; isolation: isolate;
}
.ink-sec::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(140,140,255,.18) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(90% 60% at 15% 0%, #000, transparent 70%); mask-image: radial-gradient(90% 60% at 15% 0%, #000, transparent 70%); }
.ink-sec ::selection { background: var(--lab-accent); color: #0C0C12; }
.ink-sec :focus-visible { outline-color: var(--lab-accent); }
.sec-head--dark { border-top-color: rgba(236,235,245,.3); color: var(--on-signal-2); }
.unsaid__title { font-family: var(--serif); font-size: clamp(72px, 13vw, 210px); line-height: .86; letter-spacing: -.045em; margin-left: -.04em; }
.unsaid__title em { font-style: italic; color: var(--lab-accent); }
.u-strike { position: relative; color: rgba(236,235,245,.38); }
.u-strike::after { content: ""; position: absolute; left: -2%; right: -2%; top: 55%; height: .045em; background: var(--lab-accent); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .4s; }
html:not(.js) .u-strike::after, .unsaid__title.is-in .u-strike::after { transform: scaleX(1); }
.unsaid__sub { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 38px); line-height: 1.15; letter-spacing: -.015em; margin-top: clamp(18px, 2.4vw, 28px); max-width: 28ch; }
.ink-sec .paper__by { color: var(--on-signal-2); }
.unsaid__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-top: 26px; }
.unsaid__abs { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--on-signal-2); max-width: 62ch; }
.unsaid__abs b { color: var(--on-signal); font-weight: 500; }
.unsaid__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.btn--signal { background: var(--signal); color: #F4F4F6; }
.btn--signal:hover { background: #3434FF; }
.btn--ghost { background: transparent; color: var(--on-signal); border-color: rgba(236,235,245,.4); font: inherit; font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.btn--ghost:hover { border-color: var(--on-signal); }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(64px, 8vw, 112px); }
.trio article { border-top: 1px solid rgba(236,235,245,.3); padding-top: 18px; }
.trio .mono { color: var(--lab-accent); }
.trio h3 { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 34px); margin: 14px 0 10px; letter-spacing: -.015em; }
.trio p { color: var(--on-signal-2); font-size: 15.5px; line-height: 1.6; }

.lab--dark { border-color: rgba(236,235,245,.18); background: rgba(255,255,255,.02); }
.lab--dark .lab__head, .lab--dark .lab__src, .lab--dark .funnel__txt { border-color: rgba(236,235,245,.14); }
.lab--dark .lab__panel + .lab__panel { border-left-color: rgba(236,235,245,.14); }
.lab--dark .xfig, .lab--dark .scatter, .lab--dark .kofig { color: var(--on-signal); }
.seg--dark { border-color: rgba(236,235,245,.3); }
.seg--dark button[aria-selected="true"] { background: var(--lab-accent); color: #0C0C12; }
.lab--dark > .seg { margin: clamp(14px, 1.8vw, 20px) clamp(16px, 2vw, 26px) 0; }
.lab--dark .ctl--row { padding-bottom: 4px; }
.lab--dark .readout div, .repl--dark div { background: #0C0C12; }
.repl--dark { margin: 0; border-left: 0; border-right: 0; border-bottom: 0; background: rgba(236,235,245,.14); border-color: rgba(236,235,245,.14); }
.repl--dark em { font-style: italic; color: var(--on-signal); }

/* Signal path */
.path { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); padding: clamp(18px, 2.4vw, 30px) clamp(16px, 2vw, 26px); }
.path::before { content: ""; position: absolute; left: clamp(16px, 2vw, 26px); right: clamp(16px, 2vw, 26px); top: calc(clamp(18px, 2.4vw, 30px) + 30px); height: 1px; background: rgba(236,235,245,.18); z-index: 0; }
.path__node { position: relative; z-index: 1; display: grid; gap: 8px; padding: 16px; border: 1px solid rgba(236,235,245,.2); background: #0C0C12; border-radius: 4px; min-height: 160px; align-content: start; transition: border-color .4s, background .4s, opacity .4s; }
.path__node .mono { color: var(--on-signal-2); font-size: 10.5px; }
.path__node b { font-family: var(--display); font-weight: 300; font-size: clamp(30px, 3vw, 44px); letter-spacing: -.035em; color: var(--on-signal); }
.path__node i { font-style: normal; font-size: 12.5px; line-height: 1.45; color: var(--on-signal-2); }
.path__node[data-s="strong"] { border-color: var(--lab-accent); background: linear-gradient(rgba(140,140,255,.14), rgba(140,140,255,.14)), #0C0C12; }
.path__node[data-s="partial"] { border-color: rgba(140,140,255,.5); background: linear-gradient(rgba(140,140,255,.06), rgba(140,140,255,.06)), #0C0C12; }
.path__node[data-s="weak"] { border-color: #FF7A59; border-style: dashed; }
.path__node[data-s="weak"] b { color: #FF9A80; }
.path__node[data-break="1"]::before { content: "×"; position: absolute; left: calc(-1 * clamp(10px, 1.6vw, 22px) / 2 - 11px); top: 19px; width: 22px; height: 22px; border-radius: 50%; background: #FF7A59; color: #0C0C12; display: grid; place-items: center; font: 600 15px/1 var(--sans); }
.path__pulse { position: absolute; top: calc(clamp(18px, 2.4vw, 30px) + 26px); left: clamp(16px, 2vw, 26px); width: 8px; height: 8px; border-radius: 50%; background: var(--lab-accent); box-shadow: 0 0 14px 4px rgba(140,140,255,.6); z-index: 2; opacity: 0; }
.path.run .path__pulse { animation: travel var(--dur, 1.6s) var(--ease) forwards; }
@keyframes travel { 0% { opacity: 1; transform: translateX(0); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateX(var(--to, 0px)); } }
.path__txt { padding: 0 clamp(16px, 2vw, 26px) clamp(18px, 2.2vw, 26px); color: var(--on-signal-2); font-size: 15.5px; line-height: 1.6; max-width: 80ch; }
.path__txt b { color: var(--on-signal); font-weight: 500; }

.kofig { display: grid; gap: 14px; }
.ko-row { display: grid; grid-template-columns: 110px 1fr 64px; gap: 12px; align-items: center; font-size: 12px; }
.ko-row .mono { color: var(--on-signal-2); font-size: 10.5px; }
.ko-bar { position: relative; height: 22px; background: rgba(236,235,245,.08); }
.ko-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--lab-accent); transition: width .6s var(--ease); }
.ko-fill--drop { background: #FF7A59; }
.ko-fill--ctl { background: rgba(236,235,245,.45); }
.ko-row b { font-family: var(--display); font-weight: 300; font-size: 20px; text-align: right; }

/* Scatter tooltip/info */
#repinfo h4 { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -.01em; margin: 0; }
#repinfo .mono { color: var(--lab-accent); }
.pt { cursor: pointer; transition: r .2s; }
.pt:focus { outline: none; }
.pt:focus-visible { stroke: #fff; stroke-width: 2; }

.term--dark { background: #13131C; border-color: rgba(236,235,245,.14); }
.term--dark .term__body { color: #CFCFFF; }


@media (max-width: 1080px) {
  .lab__body--2 { grid-template-columns: minmax(0, 1fr); }
  .lab__panel + .lab__panel { border-left: 0; border-top: 1px solid rgba(244,244,246,.2); }
  .lab--dark .lab__panel + .lab__panel { border-top-color: rgba(236,235,245,.14); }
  .thesis { grid-template-columns: minmax(0, 1fr); }
  .funnel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .funnel button:nth-child(3) { border-right: 0; }
  .funnel button:nth-child(-n+3) { border-bottom: 1px solid rgba(244,244,246,.2); }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .unsaid__grid { grid-template-columns: minmax(0, 1fr); }
  .unsaid__cta { justify-content: flex-start; }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path::before, .path__pulse { display: none; }
  .path__node[data-break="1"]::before { left: auto; right: 10px; top: 10px; }
}
@media (max-width: 560px) {
  .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .funnel button { border-right: 0; border-bottom: 1px solid rgba(244,244,246,.2); }
  .repl, .mini, .readout { grid-template-columns: minmax(0, 1fr); }
  .path { grid-template-columns: minmax(0, 1fr); }
  .path__node { min-height: 0; }
  .ko-row { grid-template-columns: 84px 1fr 52px; }
}


/* ===== LaTeX typography inside the paper sections (matches \usepackage{lmodern}) ===== */
.signal-sec .paper__abs, .thesis__three li, .steps p, .lab__head p, .lab__note, .lab__panel--text p,
.funnel__txt, .funnel button span, .path__txt, .path__node i, .trio p, .unsaid__abs, #repinfo p,
.lab__src, .ctl label, .readout dt, .readout dd, .mini, .repl, .mea__stat, .ko-row .mono,
.paper__figcap, .rankfig__ctl label, .meafig__legend, .replication {
  font-family: var(--tex); text-transform: none; letter-spacing: 0; font-weight: 400;
}
.signal-sec .paper__abs, .unsaid__abs { font-size: clamp(18px, 1.5vw, 20.5px); line-height: 1.5; }
.thesis__three li, .trio p, .steps p { font-size: 17px; line-height: 1.5; }
.lab__head p, .lab__panel--text p, .path__txt, .funnel__txt { font-size: 17px; line-height: 1.55; }
.lab__note, #repinfo p { font-size: 16px; line-height: 1.55; }
.lab__src { font-size: 13.5px; font-style: italic; }
.ctl label, .rankfig__ctl label, .mea__stat, .ko-row .mono { font-size: 15px; }
.readout dt { font-size: 14px; }
.readout dd { font-size: 26px; }
.mini { font-size: 14px; } .mini b { font-family: var(--display); }
.repl { font-size: 15px; line-height: 1.45; }
.funnel button span, .path__node i { font-size: 14.5px; }
.paper__figcap { font-size: 15px; }
.meafig__legend { font-size: 13px; }
.thesis__three li b, .lab__note b, .lab__panel--text p b, .path__txt b, .funnel__txt b, .unsaid__abs b, #repinfo p b, .paper__figcap b { font-weight: 700; }
.m { font-family: "LM Math", var(--tex); font-style: normal; white-space: nowrap; -webkit-text-stroke: .012em currentColor; }
.ch-t .m, .ch-v.m { stroke: currentColor; stroke-width: .2px; }
.signal-sec, .ink-sec { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; }
.signal-sec sub, .signal-sec sup, .ink-sec sub, .ink-sec sup { font-family: var(--tex); font-size: .72em; line-height: 0; }
.ch-t { font-family: var(--tex) !important; font-size: 13px !important; letter-spacing: 0 !important; }
.ch-v { font-family: var(--tex) !important; font-size: 14.5px !important; }
.ch-cap { font-style: italic; }


/* ===== Article layout for the paper sections =============================== */
.fig figcaption i, .ex__text em { font-style: italic; }
.ink-sec 
.fig { margin: 1.9em 0 2.2em; padding-top: 14px; border-top: 1px solid rgba(244,244,246,.32); clear: both; }
.ink-sec .fig { border-top-color: rgba(236,235,245,.22); }
.fig figcaption { margin-top: 12px; font-family: var(--tex); font-size: 15px; line-height: 1.5; color: var(--on-signal-2); }
.fig figcaption b { color: var(--on-signal); font-weight: 700; margin-right: .2em; }
.fig__panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.fig__panels--62 { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.fig__panel { min-width: 0; }
.fig__ctl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; margin-top: 6px; font-family: var(--tex); font-size: 14.5px; color: var(--on-signal-2); }
.fig__ctl label { white-space: nowrap; }
.fig__ctl--row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 0 0 10px; }
.fig__panel .fig__ctl--row { margin: 8px 0 0; }
.fig__note { margin-top: 10px; font-family: var(--tex); font-size: 14.5px; line-height: 1.5; color: var(--on-signal-2); }
.fig__note b { color: var(--on-signal); }
.seg--fig { margin-bottom: 10px; }
.seg--fig button { font-size: 10.5px; padding: 6px 11px; }
.fig .chip { padding: 6px 12px; font-size: 10.5px; }
.fig .mea__stat { font-size: 13.5px; }
.fig .meafig canvas { aspect-ratio: 1 / .78; }
.fig .bars--narrow { max-width: 470px; }
.fig .funnel { border: 1px solid rgba(244,244,246,.25); margin-bottom: 0; }
.fig .funnel button { padding: 10px 12px; }
.fig .funnel button b { font-size: 26px; }
.fig .funnel button span { font-size: 13px; }
.fig .funnel__txt { border: 1px solid rgba(244,244,246,.25); border-top: 0; padding: 10px 14px; font-size: 15px; min-height: 0; margin-bottom: 14px; }
.fig .path { padding: 0; gap: 12px; }
.fig .path::before { left: 0; right: 0; top: 30px; }
.fig .path__pulse { left: 0; top: 26px; }
.fig .path__node { min-height: 0; padding: 12px 14px; gap: 6px; }
.fig .path__node b { font-size: 30px; }
.fig .path__node i { font-size: 13.5px; }
.fig .path__node[data-break="1"]::before { top: 19px; left: -17px; }
.fig .kofig { gap: 10px; margin-top: 6px; }
.fig .xfig, .fig .scatter { max-width: 100%; }
.fig__panel--info h4 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 4px 0 8px; }
.fig__panel--info .mono { color: var(--lab-accent); }
.fig__panel--info p { font-family: var(--tex); font-size: 15.5px; line-height: 1.55; color: var(--on-signal-2); margin: 0 0 .7em; }
.fig__panel--info p b { color: var(--on-signal); }
.fig .readline { margin-top: 6px; font-family: var(--tex); font-size: 14px; color: var(--on-signal-2); min-height: 1.5em; }

/* booktabs-style table */
.btab { width: 100%; border-collapse: collapse; margin: 1.4em 0 2em; font-family: var(--tex); font-size: 16px; line-height: 1.4; color: var(--on-signal); clear: both; }
.btab caption { caption-side: top; text-align: left; font-size: 15px; color: var(--on-signal-2); padding-bottom: 8px; }
.btab caption b { color: var(--on-signal); font-weight: 700; }
.btab th { text-align: left; font-weight: 700; padding: 7px 14px 6px 0; border-top: 1.6px solid currentColor; border-bottom: 1px solid currentColor; }
.btab td { padding: 6px 14px 6px 0; vertical-align: top; }
.btab td:last-child { color: var(--on-signal-2); }
.btab tbody tr:last-child td { border-bottom: 1.6px solid currentColor; }

/* citation disclosure */
.cite { clear: both; margin: 2.4em 0 0; }
.cite summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; color: var(--on-signal-2); border: 1px solid rgba(244,244,246,.35); border-radius: 999px; padding: 7px 14px; }
.cite summary::-webkit-details-marker { display: none; }
.cite summary::before { content: "+"; font-family: var(--sans); }
.cite[open] summary::before { content: "−"; }
.cite .term { margin-top: 14px; max-width: none; }
.ink-sec .cite summary { border-color: rgba(236,235,245,.3); }

@media (max-width: 1160px) {
  }
@media (max-width: 760px) {
    .fig__panels, .fig__panels--62 { grid-template-columns: minmax(0, 1fr); }
    .fig .funnel { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .fig .funnel button { padding: 8px 6px; border-bottom: 0; }
  .fig .funnel button b { font-size: 18px; }
  .fig .funnel button span { font-size: 11px; }
  .fig .path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fig .path::before, .fig .path__pulse { display: none; }
  .fig .path__node[data-break="1"]::before { left: auto; right: 8px; top: 8px; }
}

/* Experience rows -------------------------------------------------------- */
.rows { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 120px; gap: clamp(16px, 3vw, 48px); padding: clamp(26px, 3vw, 40px) 0; border-bottom: 1px solid var(--rule); position: relative; transition: background .3s; }
.row::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--signal-ink); transition: width .6s var(--ease); }
.row:hover::before { width: 100%; }
.row__when { color: var(--muted); padding-top: 9px; }
.row__main h3 { font-family: var(--serif); font-size: clamp(26px, 2.5vw, 36px); line-height: 1.12; letter-spacing: -.015em; }
.row__main h3 .at { font-style: italic; color: var(--ink-2); }
.row__main p { margin-top: 14px; color: var(--ink-2); max-width: 68ch; }
.row__where { color: var(--muted); text-align: right; padding-top: 9px; }

/* Project cards ------------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: clamp(40px, 5vw, 72px); background: var(--rule); border: 1px solid var(--rule); }
.card { background: var(--paper); padding: clamp(22px, 2.4vw, 34px); display: flex; flex-direction: column; gap: 14px; transition: background .35s var(--ease); }
.card:hover { background: var(--paper-2); }
.card__top { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: clamp(28px, 4vw, 56px); }
.card h3 { font-family: var(--serif); font-size: clamp(26px, 2.3vw, 32px); line-height: 1.1; letter-spacing: -.015em; }
.card__ctx { color: var(--signal-ink); }
.card > p:not(.card__ctx) { color: var(--ink-2); font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.tags li { font-size: 10.5px; padding: 4px 9px; border: 1px solid var(--rule-strong); border-radius: 999px; color: var(--ink-2); }

/* Toolkit ---------------------------------------------------------------- */
.kit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 5vw, 72px); }
.kit__col { border-top: 1px solid var(--rule); padding-top: 16px; }
.kit__col h3 { color: var(--signal-ink); margin-bottom: 14px; }
.kit__col p { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; }

/* Education --------------------------------------------------------------- */
.edu { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.edu__main p { margin-top: 14px; font-size: 19px; color: var(--ink-2); }
.edu__main p.mono { font-size: 12.5px; margin-top: 10px; }
.honours li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule); font-size: 17px; font-weight: 400; }
.honours li:last-child { border-bottom: 1px solid var(--rule); }
.honours li .mono { padding-top: 3px; }
.honours .muted { font-weight: 300; }

/* Contact ---------------------------------------------------------------- */
.contact { padding: clamp(100px, 13vw, 200px) 0 clamp(60px, 8vw, 110px); }
.contact__title { font-family: var(--serif); font-size: clamp(76px, 14vw, 220px); line-height: .88; letter-spacing: -.045em; margin-left: -.04em; }
.contact__title em { color: var(--signal-ink); }
.contact__lede { margin-top: 28px; max-width: 44ch; font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-2); }
.contact__links { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--rule-strong); }
.clink { display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 20px; padding: clamp(18px, 2.2vw, 28px) 0; border-bottom: 1px solid var(--rule); transition: padding .35s var(--ease), color .2s; }
.clink .mono { color: var(--muted); }
.clink__v { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 38px); letter-spacing: -.015em; line-height: 1.1; overflow-wrap: anywhere; }
.clink > span:last-child { font-size: 22px; transition: transform .35s var(--ease); }
.clink:hover { color: var(--signal-ink); padding-left: 10px; }
.clink:hover > span:last-child { transform: translateX(6px); }

/* Footer ------------------------------------------------------------------ */
.foot { border-top: 1px solid var(--rule); }
.foot__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 22px; padding-bottom: 28px; color: var(--muted); font-size: 11px; }
.foot__inner a:hover { color: var(--ink); }

/* Toast -------------------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; transition: opacity .3s, transform .3s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Reveal on scroll (only when JS is running) ------------------------------ */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li { border-right: 0; border-bottom: 1px solid rgba(244,244,246,.2); padding: 18px 18px 18px 0 !important; }
  .steps li:nth-child(even) { padding-left: 18px !important; border-left: 1px solid rgba(244,244,246,.2); }
  .steps h3 { margin-top: 14px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card__top { margin-bottom: 16px; }
}
@media (max-width: 880px) {
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .field { max-width: 560px; }
  .field__stage { aspect-ratio: 5 / 4; }
  .triad { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .row__when, .row__where { padding-top: 0; text-align: left; }
  .row__where { display: none; }
  .edu { grid-template-columns: minmax(0, 1fr); }
  .interests { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__meta span:last-child { display: none; }
  .hero__facts div { grid-template-columns: 76px 1fr; }
  .steps, .stats, .kit { grid-template-columns: minmax(0, 1fr); }
  .steps li:nth-child(even) { padding-left: 0 !important; border-left: 0; }
  .stat { min-height: 0; }
  .clink { grid-template-columns: 1fr auto; gap: 6px 14px; }
  .clink .mono { grid-column: 1 / -1; }
  .nav__name { font-size: 17px; }
}

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

@media print {
  .nav, .guides, .field, .toast, .hero__cta, .paper__cta, .term__copy, .lab { display: none !important; }
  .signal-sec { background: none; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
.frow { cursor: default; transition: opacity .2s; outline: none; }
.frow:focus-visible .frow__bg { fill-opacity: .08; }
.localfig, .crossfig, .forest, .heat, .steerfig { color: var(--on-signal); }
.localfig svg, .crossfig svg, .forest svg, .heat svg, .steerfig svg { display: block; width: 100%; height: auto; overflow: visible; }


/* ===== Exhibition layout for the paper sections ============================ */
.signal-sec { --sec-bg: var(--signal); --hair: rgba(244,244,246,.22); --spec-line: rgba(244,244,246,.32); --spec-bg: rgba(8,8,94,.2); --mark: #F4F4F6; --acc: #78FFD2; }
.ink-sec { --sec-bg: #0C0C12; --hair: rgba(236,235,245,.13); --spec-line: rgba(236,235,245,.2); --spec-bg: rgba(255,255,255,.02); --mark: var(--lab-accent); --acc: var(--lab-accent); }

.paper { margin-bottom: 0; }
.paper__main { min-width: 0; }
@media (min-width: 1080px) {
  .paper { grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); column-gap: clamp(40px, 5vw, 88px); }
  .spec--hero { align-self: end; }
}

/* specimen frame */
.fig.spec { --sp: clamp(14px, 1.5vw, 20px); position: relative; margin: 0; padding: 0 0 2px; border: 1px solid var(--spec-line); background: var(--spec-bg); clear: none; }
.fig.spec::before, .fig.spec::after { content: ""; position: absolute; width: 15px; height: 15px; border: 0 solid var(--mark); pointer-events: none; }
.fig.spec::before { top: -6px; left: -6px; border-width: 1px 0 0 1px; }
.fig.spec::after { bottom: -6px; right: -6px; border-width: 0 1px 1px 0; }
.fig.spec > * { margin-left: var(--sp); margin-right: var(--sp); }
.fig.spec > .spec__bar, .fig.spec > figcaption { margin-left: 0; margin-right: 0; }
.spec__bar { display: flex; justify-content: space-between; gap: 14px; padding: 10px var(--sp); border-bottom: 1px solid var(--hair); color: var(--on-signal-2); font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 16px; }
.spec__bar span:last-child { opacity: .75; text-align: right; }
.spec__bar i { text-transform: none; font-family: var(--tex); font-size: 13px; letter-spacing: 0; }
.fig.spec figcaption { margin-top: 16px; padding: 12px var(--sp) 12px; border-top: 1px solid var(--hair); font-size: 14.5px; line-height: 1.5; }
.fig.spec--hero { margin-top: clamp(44px, 7vw, 64px); }
@media (min-width: 1080px) { .fig.spec--hero { margin-top: 0; } }
.spec--hero .rankfig { max-width: 560px; }

/* ticker */
.ticker { margin-top: clamp(72px, 9vw, 128px); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); overflow: hidden; padding: clamp(14px, 1.6vw, 20px) 0; }
.ticker__track { display: flex; width: max-content; animation: tick 70s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__run { display: flex; flex-shrink: 0; margin: 0; white-space: nowrap; font-family: var(--serif); font-size: clamp(24px, 2.7vw, 40px); letter-spacing: -.015em; color: var(--on-signal-2); }
.ticker__run span { display: inline-flex; align-items: baseline; }
.ticker__run span::after { content: "/"; font-family: var(--mono); font-size: .55em; color: var(--acc); margin: 0 1.1em; transform: translateY(-.18em); }
.ticker__run b { font-weight: 400; color: var(--on-signal); margin: 0 .22em; }
.ticker__run b i { font-style: italic; }
.ticker__run sup { font-size: .5em; }
@keyframes tick { to { transform: translateX(-50%); } }

/* the decision track */
.track { list-style: none; padding: 0; margin: clamp(64px, 8vw, 112px) 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--spec-line); }
.track--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.track__node { position: relative; display: grid; gap: 10px; align-content: start; padding: 24px 22px 4px 0; color: inherit; text-decoration: none; }
.track__node::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--mark); transition: transform .3s; }
.track__node + .track__node::after { content: "→"; position: absolute; top: -13px; left: -26px; font-family: var(--sans); font-size: 13px; color: var(--on-signal-2); padding: 0 6px; background: var(--sec-bg); line-height: 1; }
.track__i { color: var(--on-signal-2); font-size: 10.5px; }
.track__node b { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.05; letter-spacing: -.01em; transition: transform .35s cubic-bezier(.2,.7,.1,1); }
.track__node > span:last-child { font-family: var(--tex); font-size: 15.5px; line-height: 1.45; color: var(--on-signal-2); }
a.track__node:hover b, a.track__node:focus-visible b { transform: translateX(6px); }
a.track__node:hover::before, a.track__node:focus-visible::before { transform: scale(1.6); }
.ink-sec .track__node b { font-style: italic; }

/* exhibits */
.ex { margin-top: clamp(96px, 12vw, 176px); scroll-margin-top: 90px; }
.ex__head { position: relative; min-width: 0; }
.ex__no { display: block; font-family: var(--serif); font-size: clamp(92px, 11vw, 176px); line-height: .78; letter-spacing: -.05em; margin-left: -.04em;
  color: transparent; -webkit-text-stroke: 1px var(--mark);
  background-image: linear-gradient(var(--mark), var(--mark)); background-repeat: no-repeat; background-size: 0% 100%;
  -webkit-background-clip: text; background-clip: text; transition: background-size 1.6s cubic-bezier(.2,.7,.1,1) .25s; }
.ex__head.is-in .ex__no, html:not(.js) .ex__no { background-size: 100% 100%; }
.ex__kick { color: var(--on-signal-2); margin-top: 22px; font-size: 11px; }
.ink-sec .ex__kick { color: var(--lab-accent); }
.ex__title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.3vw, 48px); line-height: 1.04; letter-spacing: -.022em; margin: 10px 0 0; max-width: 18ch; }
.ex__text { margin-top: 22px; }
.ex__text p { font-family: var(--tex); font-size: 18px; line-height: 1.6; color: var(--on-signal); margin: 0 0 .8em; max-width: 58ch; }
.ink-sec .ex__text p { color: rgba(236,235,245,.92); }
.ex__text p:last-child { margin-bottom: 0; }
.ex > .spec { margin-top: clamp(32px, 4vw, 52px); }

@media (min-width: 980px) {
  .ex--split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(40px, 6vw, 104px); align-items: start; }
  .ex--split .ex__head { position: sticky; top: 104px; }
  .ex--split > .spec { margin-top: clamp(60px, 7vw, 120px); justify-self: end; width: 100%; }
  .ex--flip .ex__head { order: 2; }
  .ex--flip > .spec { justify-self: start; }
  .spec--narrow { max-width: 460px; }
  .ex--wide .ex__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "no text" "lead text"; column-gap: clamp(40px, 6vw, 104px); align-items: end; }
  .ex--wide .ex__no { grid-area: no; }
  .ex--wide .ex__lead { grid-area: lead; }
  .ex--wide .ex__text { grid-area: text; margin-top: 0; }
  .ex--wide > .spec { width: min(100%, 1060px); margin-left: auto; }
  .ex--left > .spec { margin-left: 0; margin-right: auto; }
}

/* tallies */
.tally { margin-top: clamp(96px, 12vw, 168px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px clamp(20px, 3vw, 48px); border-top: 1px solid var(--spec-line); padding-top: 22px; }
.tally__kick { grid-column: 1 / -1; color: var(--on-signal-2); font-size: 11px; }
.ink-sec .tally__kick { color: var(--lab-accent); }
.tally__cell { min-width: 0; }
.tally__cell b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 4.8vw, 76px); line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
.tally__cell b i { font-size: .4em; letter-spacing: 0; color: var(--on-signal-2); margin: 0 .2em; vertical-align: .35em; }
.tally__cell p { font-family: var(--tex); font-size: 16.5px; line-height: 1.5; color: var(--on-signal-2); margin-top: 14px; max-width: 34ch; }
.tally__cell p em { font-style: italic; color: var(--on-signal); }
.coda { margin-top: clamp(48px, 6vw, 80px); font-family: var(--tex); font-size: 19px; line-height: 1.6; max-width: 62ch; color: var(--on-signal); }
.cite { margin-top: 40px; }

@media (max-width: 979px) {
  .ex__no { font-size: clamp(84px, 22vw, 140px); }
  .spec--narrow { max-width: 480px; }
}
@media (max-width: 760px) {
  .track, .track--4 { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1px solid var(--spec-line); margin-left: 4px; }
  .track__node { padding: 0 0 26px 24px; }
  .track__node::before { top: 6px; left: -5px; }
  .track__node + .track__node::after { content: none; }
  .tally { grid-template-columns: minmax(0, 1fr); }
  .ex__text p, .coda { font-size: 17px; }
  .ticker__track { animation-duration: 45s; }
}


/* ===== Split pages: home exhibit entrances, paper pages ==================== */
.teaser { padding-bottom: clamp(64px, 8vw, 112px); }
.teaser .track { margin-top: clamp(48px, 6vw, 84px); }
.fig.teaser__fig { margin-top: clamp(44px, 5vw, 72px); }
.enter { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 14px 28px; margin-top: clamp(56px, 7vw, 100px); padding-top: 22px; border-top: 1px solid var(--spec-line); color: inherit; text-decoration: none; }
.enter .mono { color: var(--on-signal-2); font-size: 11px; }
.enter b { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.4vw, 80px); line-height: 1; letter-spacing: -.03em; }
.ink-sec .enter b { font-style: italic; }
.enter b span { display: inline-block; font-family: var(--sans); font-style: normal; font-size: .5em; vertical-align: .2em; margin-left: .2em; transition: transform .45s var(--ease); }
.enter:hover b span, .enter:focus-visible b span { transform: translateX(12px); }
.crumb { border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: opacity .2s; }
.crumb:hover { opacity: .7; }
.page-paper main > section { margin-top: 0; }
.page-paper main > section:first-child { padding-top: calc(60px + clamp(28px, 4vw, 48px)); }
.next { padding: clamp(72px, 9vw, 128px) 0 clamp(64px, 8vw, 110px); }
.next__link { display: grid; gap: 18px; color: inherit; text-decoration: none; border-top: 1px solid var(--spec-line); padding-top: 22px; }
.next__link > .mono { color: var(--on-signal-2); font-size: 11px; }
.next__title { font-family: var(--serif); font-size: clamp(60px, 11vw, 168px); line-height: .92; letter-spacing: -.045em; margin-top: clamp(16px, 2vw, 28px); }
.next__title em { font-style: italic; color: var(--lab-accent); }
.next__title--aroma { font-family: "LM Roman 17", "LM Roman", var(--serif); letter-spacing: .015em; }
.next__arrow { display: inline-block; font-family: var(--sans); font-size: .36em; vertical-align: .45em; margin-left: .15em; transition: transform .45s var(--ease); }
.next__link:hover .next__arrow, .next__link:focus-visible .next__arrow { transform: translateX(14px); }
.next__link.is-in .u-strike::after { transform: scaleX(1); }
.next__sub { font-family: var(--tex); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--on-signal-2); max-width: 52ch; }
.next__back { display: inline-block; margin-top: clamp(36px, 4vw, 56px); color: var(--on-signal-2); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.next__back:hover { color: var(--on-signal); }
