/* ==========================================================================
   Rachinnth Ravichandran — Oxford Monograph & Clinical Dossier
   Palette: Crisp Alabaster (#FAF9F6) · Oxford Blue (#002147) · Aged Brass (#9A6B21)
   Typography: Newsreader (Display/Serif) + Plus Jakarta Sans (Body/UI)
   ========================================================================== */

:root {
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1140px;
  --radius: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg: #FAF9F6;
  --bg-stone: #F2EFE9;
  --surface: #FFFFFF;
  --surface-tint: #F7F5F0;
  --ink: #0F1D35;
  --oxford: #002147;
  --oxford-hover: #003166;
  --body: #243247;
  --muted: #566378;
  --brass: #8F6119;
  --brass-bg: #F6EFE2;
  --brass-border: #DFC9A3;
  --line: #E2DDD3;
  --line-strong: #CBC3B5;
  --on-primary: #FAF9F6;

  /* Biological Pathway (Monograph Print Palette) */
  --svg-bg: #FAF9F6;
  --membrane: #C4BDB0;
  --lipid: #8C8578;
  --lbl: #1B2A42;
  --lumen-healthy: #EFE3EA;
  --lumen-ko: #EBE8EE;
  --lumen-baf: #E7E9ED;
}

[data-theme="dark"] {
  --bg: #0B1320;
  --bg-stone: #0F1A2C;
  --surface: #142238;
  --surface-tint: #192942;
  --ink: #F4F2EC;
  --oxford: #E6DFD1;
  --oxford-hover: #FFFFFF;
  --body: #CBD5E4;
  --muted: #93A2B8;
  --brass: #D9A752;
  --brass-bg: rgba(217, 167, 82, 0.12);
  --brass-border: rgba(217, 167, 82, 0.34);
  --line: rgba(226, 221, 211, 0.14);
  --line-strong: rgba(226, 221, 211, 0.28);
  --on-primary: #0B1320;

  --svg-bg: #0D1726;
  --membrane: #394861;
  --lipid: #687A99;
  --lbl: #DCE4F2;
  --lumen-healthy: #3A1D33;
  --lumen-ko: #2B253A;
  --lumen-baf: #22293B;
}

/* ---------- Reset & Browser Surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  color-scheme: light dark;
}
::selection {
  background: var(--oxford);
  color: var(--on-primary);
}
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--body);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--oxford);
  text-decoration: none;
  text-underline-offset: 3px;
}
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 600;
}
h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.018em;
}
h3 {
  font-size: 1.3rem;
  line-height: 1.24;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.sep { color: var(--muted); opacity: 0.65; margin-inline: 0.35rem; }

.wrap {
  width: min(var(--maxw), calc(100% - 3rem));
  margin-inline: auto;
}
.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 200;
  background: var(--oxford); color: var(--on-primary);
  padding: 0.6rem 1rem; border-radius: var(--radius-sm);
}
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 600;
}
.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--oxford);
  color: var(--on-primary);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  letter-spacing: 0.02em;
}
.brand__name {
  font-size: 0.94rem;
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex;
  gap: 1.65rem;
  margin-left: auto;
}
.nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.25rem 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--ink);
  border-bottom-color: var(--brass);
}
.nav__actions {
  display: flex;
  gap: 0.45rem;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background-color 0.2s;
}
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--ink);
  stroke: none;
}
.icon-btn .i-sun circle { fill: var(--ink); }
.icon-btn .i-sun path { stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; fill: none; }
[data-theme="light"] .i-sun { display: none; }
[data-theme="dark"] .i-moon { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.72rem 1.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--oxford);
  color: var(--on-primary);
}
.btn--primary:hover { background: var(--oxford-hover); }
.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--quiet {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.btn--quiet:hover { color: var(--ink); border-color: var(--line-strong); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 6vw, 5.25rem) 0 clamp(3rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  animation: heroEnter 0.65s var(--ease) both;
}
@keyframes heroEnter {
  from { opacity: 0.01; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  margin-bottom: 0.55rem;
  color: var(--oxford);
}
.hero__role {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.05vw, 1.65rem);
  line-height: 1.32;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 1.25rem;
  max-width: 44ch;
}
.lede {
  font-size: clamp(0.98rem, 1.12vw, 1.05rem);
  line-height: 1.72;
  color: var(--body);
  max-width: 64ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.85rem 0 2.4rem;
}

/* Credentials ledger strip */
.credentials {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.cred dt {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.cred--laurel dt {
  color: var(--brass);
}
.cred dd {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.48;
  color: var(--muted);
}

/* Portrait */
.hero__portrait {
  margin: 0;
  justify-self: end;
  width: min(350px, 100%);
}
.portrait-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-stone);
}
.portrait-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.portrait-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3.75rem, 7vw, 5.75rem) 0;
  border-bottom: 1px solid var(--line);
}
.section--stone {
  background: var(--bg-stone);
}
.section__intro {
  max-width: 68ch;
  margin-bottom: 2.5rem;
}
.section__intro h2 {
  margin-bottom: 0.7rem;
}
.section__intro p {
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- Selected Work (Dossier Grid) ---------- */
.dossier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.dossier {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.dossier--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.5rem 2.5rem;
  align-items: center;
  padding: clamp(1.65rem, 3vw, 2.25rem);
}
.dossier--lead .dossier__left { display: flex; flex-direction: column; gap: 0.6rem; }
.dossier--lead .dossier__right { display: flex; flex-direction: column; gap: 0.85rem; border-left: 1px solid var(--line); padding-left: 2rem; }
.dossier:hover {
  border-color: var(--oxford);
  transform: translateY(-2px);
}
.dossier__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.laurel-badge {
  display: inline-block;
  padding: 0.24rem 0.6rem;
  border-radius: 5px;
  background: var(--brass-bg);
  border: 1px solid var(--brass-border);
  color: var(--brass);
  font-weight: 700;
  font-size: 0.76rem;
}
.dossier h3 {
  font-size: 1.28rem;
}
.dossier p {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.dossier__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}
.dossier__tags span {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.24rem 0.6rem;
  border-radius: 5px;
  background: var(--surface-tint);
  border: 1px solid var(--line);
  color: var(--body);
}
.dossier__open {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--oxford);
  text-decoration: underline;
  text-decoration-color: var(--brass-border);
  text-underline-offset: 4px;
}
.dossier:hover .dossier__open {
  text-decoration-color: var(--brass);
}
.dossier--lead h3 {
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
}
.dossier--lead p {
  font-size: 0.98rem;
  max-width: 62ch;
}
.dossier--span2 {
  grid-column: span 2;
}

/* ---------- Approach (Architectural Ledger) ---------- */
.ledger {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line-strong);
}
.ledger__row {
  display: grid;
  grid-template-columns: 56px 1fr 1.65fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.55rem 0;
  border-bottom: 1px solid var(--line);
}
.ledger__num {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}
.ledger__head h3 {
  font-size: 1.24rem;
}
.ledger__desc {
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 62ch;
}

/* ---------- Oxford Pathway ---------- */
.pathway {
  display: grid;
  grid-template-columns: 1.58fr 1fr;
  gap: 1.5rem;
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.pathway__stage { min-width: 0; }
.pathway__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.pathway__caption {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.pathway__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ptab, .stab {
  padding: 0.48rem 0.92rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface-tint);
  color: var(--muted);
  min-height: 38px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.ptab:hover, .stab:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.ptab.is-active, .stab.is-active {
  background: var(--oxford);
  color: var(--on-primary);
  border-color: var(--oxford);
}

.psvg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  background: var(--svg-bg);
  border: 1px solid var(--line);
  display: block;
}
.psvg .lbl { font: 600 11.5px var(--font-sans); fill: var(--lbl); }
.psvg .lbl--s { font-size: 9.8px; }
.psvg .lbl--in { fill: #0F1D35; }
.psvg .lbl--on-dark { fill: #FAF9F6; }
.psvg .lbl--strong { font-size: 12.5px; font-weight: 700; }
.psvg .lbl--zone { font-size: 10.5px; letter-spacing: 0.14em; fill: var(--muted); }
.psvg .lbl--lumen { fill: var(--muted); }
.psvg .lbl--warn { fill: #B42318; opacity: 0; transition: opacity 0.6s; }
[data-theme="dark"] .psvg .lbl--warn { fill: #F97066; }
.psvg .lbl--baf { fill: #0E7490; }
[data-theme="dark"] .psvg .lbl--baf { fill: #38BDF8; }

.psvg .lumen { fill: var(--lumen-healthy); transition: fill 1s var(--ease); }
.psvg.state-ko .lumen { fill: var(--lumen-ko); }
.psvg.state-baf .lumen { fill: var(--lumen-baf); }
.psvg .membrane { fill: var(--membrane); }
.psvg .lipid { fill: var(--lipid); }
.psvg .prot { stroke: rgba(15, 29, 53, 0.22); stroke-width: 1; }
.psvg .prot--rheb { fill: #E5C29F; }
.psvg .prot--mtor { fill: #D99B52; }
.psvg .prot--rag { fill: #E8D2AE; }
.psvg .prot--ragulator { fill: #DFC79E; }
.psvg .prot--rabc { fill: #2E6B56; }
.psvg .prot--tfeb { fill: #1E4E79; }
.psvg .phos { fill: #C88A2B; transition: opacity 0.5s; }
.psvg .sub { stroke: rgba(15, 29, 53, 0.25); stroke-width: 1; }
.psvg .sub--a { fill: #1F5E6B; }
.psvg .sub--b { fill: #2A4D7F; }
.psvg .sub--d { fill: #5E548E; }
.psvg .sub--c { fill: #8BA870; }
.psvg .sub--asub { fill: #C29B48; }
.psvg .ring { stroke: rgba(15, 29, 53, 0.24); stroke-width: 1.2; fill: none; }
.psvg .stalk { stroke: #5E8068; stroke-width: 5; stroke-linecap: round; }
.psvg .bond { stroke: var(--muted); stroke-width: 1.8; stroke-dasharray: 4 4; opacity: 0.75; transition: opacity 0.6s; }
.psvg .bond--key { stroke: var(--brass); stroke-width: 2.2; opacity: 0.95; }
.psvg .xmark { stroke: #B42318; stroke-width: 6; stroke-linecap: round; fill: none; }
.psvg .baf { fill: #0E7490; stroke: #083344; stroke-width: 1.2; }
.psvg .ph__pill { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; }
.psvg .ph__txt { font: 600 11.5px var(--font-sans); fill: var(--ink); font-variant-numeric: tabular-nums; }
.psvg .proton { fill: #B86B14; }
.psvg .waste-dot { fill: #7D766B; opacity: 0.85; }
.psvg .cath-s { fill: #2E6B56; transition: fill 0.8s; }
.psvg.state-ko .cath-s, .psvg.state-baf .cath-s { fill: #8A8D94; }

.psvg g { transform-box: view-box; }
.psvg .mv, #tfebP, #rabcX, #baf, #waste, #nucNote, #ragBind, #mtorBond, #rabcBond {
  transition: transform 1s var(--ease), opacity 0.75s var(--ease);
}
#v1 { transform-origin: 430px 240px; }
#rabcX { opacity: 0; }
#baf { opacity: 0; transform: translate(-60px, 70px); }
#waste { opacity: 0; }
.psvg.state-ko #rabc { opacity: 0.22; transform: translate(38px, -10px); }
.psvg.state-ko #rabcBond { opacity: 0; }
.psvg.state-ko #rabcX { opacity: 1; }
.psvg.state-ko #v1 { transform: translate(0, -15px); }
.psvg.state-ko #ragBind { opacity: 0.12; }
.psvg.state-ko #mtor { transform: translate(-28px, -44px); }
.psvg.state-ko #mtorBond { opacity: 0; }
.psvg.state-ko #tfeb { transform: translate(-178px, -38px); }
.psvg.state-ko #tfebP { opacity: 0; }
.psvg.state-ko #nucNote { opacity: 1; }
.psvg.state-ko #waste, .psvg.state-baf #waste { opacity: 1; }
.psvg.state-baf #baf { opacity: 1; transform: translate(0, 0); }

.legend {
  display: flex;
  gap: 1.15rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.65rem;
}
.lg { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.35rem; vertical-align: -1px; }
.lg--h { background: #B86B14; }
.lg--w { background: #7D766B; }
.lg--c { background: #2E6B56; }

.pathway__info {
  display: flex;
  flex-direction: column;
  padding: 0.25rem 0.25rem 0.25rem 0.5rem;
}
.pathway__info h3 {
  margin-bottom: 0.75rem;
}
.cascade {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
}
.cascade li {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}
.cascade li b { color: var(--ink); font-weight: 600; }
.cascade li::marker { color: var(--brass); font-weight: 700; }

.pathway__me {
  margin-top: auto;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
  border: 1px solid var(--line);
}
.pathway__me h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.pathway__me ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  color: var(--muted);
  display: grid;
  gap: 0.3rem;
}

/* ---------- Oxford Grid ---------- */
.oxgrid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: start;
}
.oxposter {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.oxposter figcaption {
  padding: 0.9rem 1.15rem;
  font-size: 0.84rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.oxpillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.oxpillar {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.oxpillar h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}
.oxpillar p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Watermark protection */
.protect { position: relative; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.protect img { pointer-events: none; -webkit-user-drag: none; }
.wm {
  position: absolute; inset: 0; pointer-events: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='160'%3E%3Ctext x='0' y='90' transform='rotate(-22 160 80)' font-family='Plus Jakarta Sans,Arial' font-size='14' font-weight='600' fill='white' fill-opacity='0.22'%3E© Milosevic Lab · Oxford · Do not reproduce%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ---------- Confocal Microscopy Portfolio ---------- */
.microscopy {
  margin-top: 1.5rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.microscopy__head {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 1.25rem 2rem;
  align-items: start;
  padding-bottom: 1.4rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.microscopy__head h3 {
  font-size: clamp(1.32rem, 2.1vw, 1.6rem);
  margin-bottom: 0.45rem;
}
.microscopy__head p {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.62;
  margin: 0;
}
.microscopy__notice {
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius-sm);
  background: var(--brass-bg);
  border: 1px solid var(--brass-border);
  color: var(--ink) !important;
  font-size: 0.83rem !important;
  line-height: 1.5 !important;
}
.mplate {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-tint);
  display: flex;
  flex-direction: column;
}
.mplate--lead {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: stretch;
  margin-bottom: 1.15rem;
}
.mplate__stage {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: #0B111C;
  cursor: zoom-in;
  overflow: hidden;
}
.mplate__stage img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s var(--ease);
}
.mplate__stage:hover img {
  transform: scale(1.015);
}
.mplate__body {
  padding: 1.1rem 1.25rem;
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid var(--line);
}
.mplate--lead .mplate__body {
  border-top: 0;
  border-left: 1px solid var(--line);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  justify-content: center;
}
.mplate__body h4 {
  font-family: var(--font-serif);
  font-size: 1.16rem;
  line-height: 1.28;
  color: var(--ink);
  margin: 0;
}
.mplate--lead .mplate__body h4 {
  font-size: clamp(1.28rem, 2vw, 1.48rem);
}
.mplate__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}
.mplate__channels span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--body);
  font-variant-numeric: tabular-nums;
}
.ch-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.ch-dot--488 { background: #16A34A; }
.ch-dot--532 { background: #EA580C; }
.ch-dot--640 { background: #DC2626; }
.ch-dot--355 { background: #2563EB; }
.mplate__body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.58;
  margin: 0;
  flex: 1;
}
.mplate--lead .mplate__body p {
  flex: 0;
}
.mplate__zoom {
  align-self: flex-start;
  margin-top: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--oxford);
  text-decoration: underline;
  text-decoration-color: var(--brass-border);
  text-underline-offset: 4px;
}
.mplate__zoom:hover {
  text-decoration-color: var(--brass);
}
.microscopy__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}
.modal__panel--plate {
  width: min(960px, 100%);
}
.plate-modal__stage {
  margin-top: 0.95rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0B111C;
}
.plate-modal__stage img {
  width: 100%;
  height: auto;
  display: block;
}
.plate-modal__caption {
  margin-top: 0.95rem;
  font-size: 0.93rem;
  color: var(--body);
  line-height: 1.62;
}
.plate-modal__credit {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Capabilities ---------- */
.stabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.chip {
  padding: 0.52rem 0.95rem;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--body);
}
.chip--key {
  background: var(--surface-tint);
  border-color: var(--brass-border);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Background & Honors Dual Columns ---------- */
.dual-columns {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.dual-columns h2 {
  margin-bottom: 1.6rem;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line-strong);
}
.tl {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 1.15rem;
  align-items: baseline;
}
.tl__when {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tl__body h3 {
  font-size: 1.12rem;
  margin-bottom: 0.15rem;
}
.tl__org {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 0.4rem;
}
.tl__body p:last-child {
  font-size: 0.9rem;
  color: var(--muted);
}

.honors {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  border-top: 1px solid var(--line-strong);
}
.honor {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  align-items: baseline;
}
.honor__yr {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.honor--featured .honor__yr { color: var(--brass); }
.honor b {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.honor p {
  font-size: 0.86rem;
  color: var(--muted);
}

.conclave-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.conclave-photo img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  object-position: 50% 22%;
}
.conclave-photo figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---------- Contact ---------- */
.contact { border-bottom: 0; }
.contact__box {
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.contact__box h2 { margin-bottom: 0.5rem; }
.contact__box p {
  color: var(--muted);
  max-width: 54ch;
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.footer {
  padding: 1.8rem 0 2.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Mobile Action Bar ---------- */
.mbar { display: none; }

/* ---------- Modals ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 29, 53, 0.52);
  backdrop-filter: blur(4px);
}
.modal__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: 88vh;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.3rem);
  box-shadow: 0 24px 48px -16px rgba(15, 29, 53, 0.25);
}
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-tint);
}
.modal__panel h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  padding-right: 2.5rem;
  margin-top: 0.4rem;
}
.case__grid { display: grid; gap: 0.9rem; margin-top: 1.25rem; }
.case__block {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
  border: 1px solid var(--line);
}
.case__block h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brass);
  margin-bottom: 0.35rem;
}
.case__block p, .case__block li {
  color: var(--body);
  font-size: 0.92rem;
}
.case__block ul { margin: 0; padding-left: 1.15rem; display: grid; gap: 0.3rem; }
.case__stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.25rem; }
.case__stack span {
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.modal__panel--qr { width: min(370px, 100%); text-align: center; }
.qr {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 1rem auto;
  width: min(250px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.qr svg { width: 100%; height: 100%; }
.qr__url { font-weight: 700; color: var(--ink); margin-bottom: 0.25rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .hero__grid { grid-template-columns: 1.2fr 0.8fr; }
  .dossier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dossier--lead { grid-column: span 2; }
  .ledger__row { grid-template-columns: 44px 1fr; gap: 0.6rem 1rem; }
  .ledger__desc { grid-column: 2; }
  .pathway { grid-template-columns: minmax(0, 1fr); }
  .oxgrid { grid-template-columns: minmax(0, 1fr); }
  .dual-columns { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  html, body {
    max-width: 100%;
    overflow-x: clip;
  }
  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
    font-size: 15.5px;
  }
  .wrap { width: 100%; max-width: 100%; padding-inline: 1.15rem; }
  .hero { padding-top: 1.75rem; }
  .hero h1 { font-size: clamp(1.85rem, 7.6vw, 2.35rem); overflow-wrap: break-word; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .hero__portrait {
    order: -1;
    justify-self: start;
    width: min(195px, 56%);
  }
  .portrait-meta { justify-content: flex-start; }
  .credentials { grid-template-columns: minmax(0, 1fr); gap: 0.95rem; }
  .dossier-grid { grid-template-columns: minmax(0, 1fr); }
  .dossier--lead { grid-column: auto; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .dossier--lead .dossier__right { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 1rem; }
  .dossier--span2 { grid-column: auto; }
  .ledger__row { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .ledger__desc { grid-column: auto; }
  .oxpillars { grid-template-columns: minmax(0, 1fr); }
  .tl { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .honor { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .pathway { padding: 0.9rem; }

  .mbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0.65rem;
    right: 0.65rem;
    bottom: calc(0.65rem + env(safe-area-inset-bottom));
    z-index: 60;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px -10px rgba(15, 29, 53, 0.22);
    padding: 0.35rem;
  }
  .mbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.18rem;
    padding: 0.45rem 0;
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
  }
  .mbar a:first-child {
    background: var(--oxford);
    color: var(--on-primary);
  }
  .mbar svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
    stroke-linecap: round;
  }
  .mbar a:first-child svg,
  .mbar a:nth-child(3) svg {
    fill: currentColor;
    stroke: none;
  }
}

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

/* ==========================================================================
   Additions: video, standards, position paper, publications, photo wall, Tokyo
   ========================================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Video (click to load, nothing from YouTube loads until play) ---------- */
.video {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0F1D35;
}
.video__frame iframe,
.video__play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; transition: opacity 0.2s; }
.video__play:hover img { opacity: 1; }
.video__icon {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px;
  border-radius: 50%; background: var(--oxford); display: grid; place-items: center;
}
.video__icon svg { width: 28px; height: 28px; fill: var(--on-primary); margin-left: 3px; }
.video__text h3 { margin-bottom: 0.4rem; }
.video__text p { color: var(--muted); }
.video__text a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--brass-border); text-underline-offset: 4px; }

/* ---------- Standards ---------- */
.standards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; margin-bottom: 1.15rem; }
.std-card {
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start;
}
.std-card h3 { font-size: 1.25rem; }
.std-card p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.std-card__link { font-weight: 600; font-size: 0.88rem; text-decoration: underline; text-decoration-color: var(--brass-border); text-underline-offset: 4px; }

/* ---------- Position paper (read on page, no download) ---------- */
.paper {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.paper > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 1.6rem;
  display: flex; flex-direction: column; gap: 0.2rem;
  position: relative;
  padding-right: 4rem;
}
.paper > summary::-webkit-details-marker { display: none; }
.paper > summary::after {
  content: "+";
  position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); display: grid; place-items: center;
  font-size: 1.2rem; color: var(--ink);
}
.paper[open] > summary::after { content: "–"; }
.paper__sum-title { font-family: var(--font-serif); font-size: 1.3rem; color: var(--ink); line-height: 1.25; }
.paper__sum-sub { font-size: 0.84rem; color: var(--muted); }
.paper__body { padding: 0.5rem 1.6rem 2rem; border-top: 1px solid var(--line); }
.paper__body > * { max-width: 70ch; }
.paper__body h3 { font-size: 1.3rem; margin: 1.8rem 0 0.55rem; }
.paper__body p { color: var(--body); }
.paper__note {
  margin-top: 1.4rem;
  padding: 0.9rem 1.1rem;
  background: var(--brass-bg);
  border: 1px solid var(--brass-border);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--ink);
}
.paper__table-wrap { max-width: 100% !important; overflow-x: auto; }
.paper__table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.paper__table th, .paper__table td { text-align: left; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.paper__table thead th { font-size: 0.78rem; color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.paper__table tbody th { font-weight: 600; color: var(--ink); width: 28%; }
.paper__table td { color: var(--body); }
.paper__list { padding-left: 1.3rem; display: grid; gap: 0.6rem; }
.paper__list li::marker { color: var(--brass); font-weight: 700; }
.paper__foot { font-size: 0.82rem; color: var(--muted); margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ---------- Publications ---------- */
.pubs { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.pub { display: grid; grid-template-columns: 96px 1fr; gap: 1.5rem; padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.pub__year { font-family: var(--font-serif); font-size: 1.6rem; color: var(--brass); font-variant-numeric: tabular-nums; line-height: 1.2; }
.pub__body h3 { font-size: 1.28rem; margin-bottom: 0.5rem; max-width: 60ch; }
.pub__authors { font-size: 0.92rem; color: var(--body); margin-bottom: 0.2rem; }
.pub__authors strong { color: var(--ink); }
.pub__venue { font-size: 0.86rem; color: var(--muted); margin-bottom: 0.7rem; }
.pub__sum { font-size: 0.93rem; color: var(--muted); max-width: 66ch; }
.pub__link { font-weight: 600; font-size: 0.88rem; text-decoration: underline; text-decoration-color: var(--brass-border); text-underline-offset: 4px; }

/* ---------- Oxford photo wall (natural proportions, never cropped) ---------- */
.photo-wall { columns: 3; column-gap: 1rem; margin-top: 1.5rem; }
.photo-wall figure { margin: 0 0 1rem; break-inside: avoid; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.photo-wall img { width: 100%; height: auto; display: block; }

/* ---------- Tokyo ---------- */
.tokyo-grid { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: clamp(190px, 21vw, 290px); gap: 1rem; }
.tk { margin: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.tk img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk--a img { object-position: 50% 40%; }
.tk--b img { object-position: 50% 30%; }
.tk--c { grid-column: 1; }
.tk--c img { object-position: 50% 35%; }
.tk--d { grid-column: 2; }

@media (max-width: 1024px) {
  .video { grid-template-columns: minmax(0, 1fr); }
  .standards-grid { grid-template-columns: minmax(0, 1fr); }
  .photo-wall { columns: 2; }
  .microscopy__head { grid-template-columns: minmax(0, 1fr); }
  .mplate--lead { grid-template-columns: minmax(0, 1fr); }
  .mplate--lead .mplate__body { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .pub { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
  .paper > summary { padding: 1.1rem 3.6rem 1.1rem 1.1rem; }
  .paper__body { padding: 0.25rem 1.1rem 1.5rem; }
  .paper__table tbody th { width: 34%; }
  .microscopy { padding: 1.05rem; max-width: 100%; overflow: hidden; }
  .microscopy__grid { grid-template-columns: minmax(0, 1fr); gap: 0.95rem; }
  .mplate__body { padding: 0.95rem 1rem; }
  .photo-wall { columns: 2; column-gap: 0.65rem; }
  .photo-wall figure { margin-bottom: 0.65rem; }
  .tokyo-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 0.65rem; }
  .tk--a { grid-column: 1 / -1; grid-row: span 2; }
  .tk--b { grid-column: 1; }
  .tk--c { grid-column: 2; }
  .tk--d { grid-column: 1 / -1; }
}
@media print { .paper, .microscopy, #plateModal { display: none !important; } }
@media (max-width: 760px) { .portrait-meta { font-size: 0.78rem; flex-wrap: wrap; } }
