/* Swayam Prakash - academic site. Teal on paper, Erode throughout. */
:root {
  --bg: #f7f9f8;
  --surface: #ebf0ee;
  --surface-2: #dfe8e5;
  --ink: #06525c;
  --muted: #2f737d;
  --accent: #06525c;
  --accent-ink: #f7f9f8;
  --field: #06525c;
  --field-ink: #f7f9f8;
  --field-soft: #0d6670;
  --hl-corona: #cfe3de;
  --hl-herpes: #e6efe9;
  --hl-genetics: #bcd6d0;
  --hl-global: #dde7ee;
  --hl-ai: #e9ece2;

  --m: clamp(16px, 2.2vw, 32px);
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(4.5rem, 13.4vw, 13.5rem);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Erode", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--step-body); line-height: 1.5;
  font-feature-settings: "kern", "liga", "onum";
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.025em; line-height: 0.98; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
.tnum { font-variant-numeric: tabular-nums lining-nums; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--m); top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 50; }

/* Top bar: one thick bar, wordmark, links */
.topbar { height: 6px; background: var(--ink); }
.nav {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 20px var(--m) 0; font-size: var(--step-small); position: relative; z-index: 5;
}
.nav .wordmark { font-weight: 600; text-decoration: none; font-size: 15px; letter-spacing: 0; }
.nav ul { list-style: none; display: flex; gap: clamp(14px, 2vw, 28px); margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.nav .menu-btn { display: none; }

/* Hero */
.hero {
  min-height: calc(100svh - 6px); display: grid; grid-template-rows: auto 1fr auto;
  padding: 0 var(--m) 28px;
}
.hero h1 {
  font-size: var(--step-display); font-weight: 500; letter-spacing: -0.05em; line-height: 0.86;
  margin-top: 11vh; display: grid;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .line:nth-child(2) { justify-self: end; }
.hero .creds { font-size: var(--step-lead); margin-top: 22px; letter-spacing: 0; line-height: 1.3; }
.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.hero-foot p { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); max-width: 46ch; margin: 0; line-height: 1.38; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; padding: 16px 26px; font-size: 17px; font-weight: 500; border: 0; cursor: pointer;
  font-family: inherit; transition: transform .25s var(--ease-out), background-color .2s;
  white-space: nowrap;
}
.btn:hover { background: #043f47; transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn.on-field { background: var(--bg); color: var(--ink); }
.btn.on-field:hover { background: #fff; }
.btn .arr { transition: transform .25s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }

/* Sections */
section { padding: clamp(96px, 12vw, 200px) var(--m) 0; }
.sec-title { font-size: var(--step-head); max-width: 18ch; }

/* About: side facts + wide paragraph */
.about-row { display: grid; grid-template-columns: 34% 1fr; column-gap: 0; }
.facts { display: grid; gap: 20px; align-content: start; font-size: 15px; max-width: 220px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 2px 0 0; }
.about-para { font-size: clamp(1.25rem, 1.7vw, 1.625rem); line-height: 1.38; max-width: 40em; }
.about-para p { margin-bottom: 0.8em; }
.about-head { grid-column: 2; margin-bottom: 40px; }
.record { margin-top: 120px; }
.record .label { font-size: 15px; }
.record-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; max-width: 920px; }
.record-lists h3 { font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.4; margin-bottom: 12px; }
.record-lists ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.record-lists li { display: flex; justify-content: space-between; gap: 18px; padding: 6px 0; line-height: 1.35; }
.record-lists li span:last-child { color: var(--muted); white-space: nowrap; }

/* Numbers */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 64px; }
.numbers .n { font-size: clamp(3.25rem, 7.4vw, 7.5rem); letter-spacing: -0.045em; line-height: 0.9; font-weight: 500; }
.numbers p { font-size: 15px; margin-top: 14px; max-width: 24ch; }
.numbers-note { font-size: 15px; color: var(--muted); margin-top: 40px; }

/* Field band */
.field { background: var(--field); color: var(--field-ink); }
.field a { color: var(--field-ink); }
.field .muted { color: #bcd6d0; }

/* Poster list */
.poster { padding-bottom: clamp(80px, 9vw, 140px); margin-top: clamp(96px, 12vw, 200px); }
.poster .sec-title { margin-bottom: 64px; }
.poster ol { list-style: none; margin: 0; padding: 0; }
.poster li a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 32px; text-decoration: none;
  padding: 0.06em 0;
}
.poster li .w {
  font-size: clamp(3rem, 7.6vw, 8rem); font-weight: 500; letter-spacing: -0.045em; line-height: 0.98;
  text-transform: lowercase; transition: color .2s, transform .35s var(--ease-out);
}
.poster li .d { font-size: 18px; max-width: 34ch; text-align: right; line-height: 1.35; }
.poster li a:hover .w, .poster li a:focus-visible .w { color: #9fd4cc; transform: translateX(10px); }
.poster .after { margin-top: 56px; display: flex; justify-content: space-between; gap: 32px; align-items: end; flex-wrap: wrap; }
.poster .after p { max-width: 52ch; font-size: 18px; margin: 0; }

/* Picture band */
.pictures { display: grid; grid-template-columns: 7fr 5fr; gap: var(--m); align-items: start; }
.pictures figure { margin: 0; }
.pictures figcaption { font-size: 15px; margin-top: 12px; max-width: 52ch; }
.pictures .big img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pictures .stack { display: grid; gap: var(--m); }
.pictures .stack img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.slowzoom { overflow: hidden; }
.slowzoom img { transform: scale(1.06); transition: transform 6s var(--ease-out); }
.slowzoom.in img { transform: scale(1); }

/* Book-spine shelf */
.shelf-head { display: flex; align-items: baseline; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.shelf-head h2 { font-size: 28px; letter-spacing: -0.02em; }
.shelf-head p { font-size: 15px; margin: 0; max-width: 64ch; }
.shelf { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.spine {
  flex: 1 0 34px; min-width: 34px; height: 440px; writing-mode: vertical-rl; text-decoration: none;
  background: var(--surface); display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; font-size: 15px; line-height: 1.1; transition: background-color .2s, color .2s, transform .3s var(--ease-out);
}
.spine .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-height: 330px; }
.spine .y { font-variant-numeric: tabular-nums; padding: 8px 0; }
.spine[data-th="corona"] { background: var(--hl-corona); }
.spine[data-th="herpes"] { background: var(--hl-herpes); }
.spine[data-th="genetics"] { background: var(--hl-genetics); }
.spine[data-th="global"] { background: var(--hl-global); }
.spine:hover, .spine:focus-visible { background: var(--ink); color: var(--bg); transform: translateY(-8px); }
.shelf-key { display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; margin-top: 18px; }
.shelf-key span::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; background: var(--c); }
.shelf-more { margin-top: 40px; }

/* Recognition table */
.rec-head { font-size: clamp(2.25rem, 5vw, 4.5rem); max-width: none; }
.rec-head .l2 { display: block; padding-left: calc(100% / 12 * 2); }
table.rec { width: 100%; border-collapse: collapse; margin-top: 72px; font-size: 16.5px; }
table.rec td, table.rec th { padding: 14px 12px; vertical-align: top; text-align: left; font-weight: 400; }
table.rec thead th { font-size: 15px; color: var(--muted); padding-bottom: 10px; }
table.rec tbody tr:nth-child(odd) { background: var(--surface); }
table.rec td.yr { width: 12%; font-variant-numeric: tabular-nums; }
table.rec td.ttl { width: 38%; }
table.rec td.body { width: 32%; }
table.rec td.role { width: 18%; text-align: right; }
table.rec tr.gap td { padding: 10px; background: var(--bg); }

/* Contact display rows */
.contact { padding-left: 0; padding-right: 0; }
.contact h2 { padding: 0 var(--m); margin-bottom: 40px; }
.rows a, .rows div.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; text-decoration: none;
  font-size: clamp(1.75rem, 4.4vw, 4.25rem); line-height: 1; letter-spacing: -0.03em; padding: 46px var(--m) 22px; min-height: 130px; }
.rows > *:nth-child(odd) { background: var(--surface); }
.rows > *:nth-child(even) { background: var(--surface-2); }
.rows .small { font-size: 15px; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.rows a:hover .main { text-decoration: underline; text-decoration-thickness: 2px; }
.rows .greet { background: var(--field) !important; color: var(--field-ink); }
.rows .round { width: 0.9em; height: 0.9em; border-radius: 50%; background: var(--bg); color: var(--ink); display: inline-grid; place-items: center; font-size: 1em; transition: transform .3s var(--ease-out); flex: none; }
.rows .round svg { width: 42%; height: 42%; }
.rows a.greet:hover .round { transform: translateX(8px) rotate(-45deg); }
.rows .main { overflow-wrap: anywhere; }

/* Footer */
footer.close { background: var(--field); color: var(--field-ink); overflow: hidden; position: relative; padding: clamp(80px, 10vw, 140px) var(--m) 0; min-height: 92svh; display: flex; flex-direction: column; }
footer.close .top { display: grid; grid-template-columns: 7fr 2fr 3fr; gap: var(--m); }
footer.close h2 { font-size: clamp(2.5rem, 5vw, 5rem); margin-bottom: 36px; }
footer.close ul { grid-column: 3; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 16px; align-content: start; }
footer.close a { color: var(--field-ink); }
footer.close .legal { margin-top: auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; padding-top: 80px; position: relative; z-index: 2; color: #cfe3de; }
footer.close .legal a { color: #cfe3de; }
footer.close .crop { font-size: clamp(9rem, 28vw, 30rem); line-height: 0.8; font-weight: 600; letter-spacing: -0.06em; white-space: nowrap; transform: translateY(24%); margin-left: -0.04em; color: var(--field-soft); user-select: none; }
footer.close .crop span { color: #0f7480; }

/* Inner pages */
.page-hero { padding: clamp(64px, 12vh, 140px) var(--m) clamp(48px, 7vw, 96px); }
.page-hero h1 { font-size: clamp(3.5rem, 10vw, 10rem); letter-spacing: -0.05em; line-height: 0.88; }
.page-hero .lede { font-size: var(--step-lead); max-width: 44ch; margin-top: 36px; line-height: 1.35; }
.page-hero .row { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }

.split { display: grid; grid-template-columns: 34% 1fr; padding: clamp(72px, 9vw, 140px) var(--m) 0; }
.split > h2 { font-size: clamp(1.75rem, 2.6vw, 2.75rem); position: sticky; top: 28px; align-self: start; padding-right: 32px; max-width: 14ch; }
.split .body { max-width: 46em; min-width: 0; }
.cv-sec > div, .about-para, .record-lists { min-width: 0; }
.split .body > p:first-child { font-size: var(--step-lead); line-height: 1.38; }
.split .body h3 { font-size: clamp(1.375rem, 1.8vw, 1.75rem); margin: 48px 0 14px; letter-spacing: -0.02em; line-height: 1.1; }
.split .body ul { padding-left: 1.1em; margin: 0 0 1em; }
.split .body li { margin-bottom: 0.45em; }
.split .body li::marker { color: var(--muted); }
.split .wide { max-width: none; }

table.data { width: 100%; border-collapse: collapse; font-size: 16px; margin: 28px 0 8px; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 14px 14px; }
table.data thead th { font-weight: 600; font-size: 15px; background: var(--ink); color: var(--bg); }
table.data tbody tr:nth-child(even) { background: var(--surface); }
table.data td:first-child { font-weight: 500; width: 24%; }
.table-wrap { overflow-x: auto; }

.thrust { background: var(--surface); padding: clamp(40px, 5vw, 72px); margin: 40px 0; }
.thrust h3 { margin-top: 0 !important; }
.thrust .q { font-size: var(--step-lead); line-height: 1.38; }

.band { margin-top: clamp(96px, 12vw, 180px); }
.band.field { padding: clamp(80px, 9vw, 140px) var(--m); }
.band blockquote { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.25; max-width: 30ch; letter-spacing: -0.015em; }
.band .cite { font-size: 15px; margin-top: 24px; color: #cfe3de; }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--m); align-items: center; }
.band-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Publications explorer */
.pub-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 0 var(--m); }
.pub-metrics .n { font-size: clamp(2.75rem, 6vw, 6rem); letter-spacing: -0.045em; line-height: 0.9; font-weight: 500; }
.pub-metrics p { font-size: 15px; margin-top: 12px; }
.pub-src { padding: 28px var(--m) 0; font-size: 15px; color: var(--muted); max-width: 90ch; }
.explorer { padding: clamp(64px, 8vw, 120px) var(--m) 0; }
.explorer h2 { font-size: var(--step-head); margin-bottom: 32px; }
.controls { display: grid; gap: 18px; background: var(--surface); padding: 24px; position: sticky; top: 0; z-index: 4; }
.controls .grp { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.controls .grp > span { font-size: 15px; min-width: 88px; }
.chip {
  font-family: inherit; font-size: 15px; padding: 9px 16px; background: var(--bg); color: var(--ink); border: 0; cursor: pointer;
  transition: background-color .15s, color .15s, transform .2s var(--ease-out);
}
.chip:hover { background: var(--surface-2); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chip .c { font-variant-numeric: tabular-nums; opacity: 0.85; margin-left: 6px; }
.search { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search label { font-size: 15px; min-width: 88px; }
.search input {
  font-family: inherit; font-size: 17px; padding: 10px 14px; border: 2px solid var(--ink); background: var(--bg); color: var(--ink);
  width: min(520px, 100%); border-radius: 0;
}
.search input::placeholder { color: var(--muted); }
.status { font-size: 15px; margin: 28px 0 8px; }
.pub-year { display: grid; grid-template-columns: 160px 1fr; gap: 0 32px; padding-top: 36px; }
.pub-year h3 { font-size: clamp(2rem, 3.4vw, 3.25rem); letter-spacing: -0.04em; font-variant-numeric: tabular-nums lining-nums; position: sticky; top: 210px; align-self: start; }
.pub-year ol { list-style: none; margin: 0; padding: 0; }
.pub { padding: 18px 20px; font-size: 16.5px; line-height: 1.45; }
.pub:nth-child(odd) { background: var(--surface); }
.pub .ti { font-weight: 600; display: block; margin-bottom: 4px; font-size: 17.5px; line-height: 1.32; }
.pub .au { display: block; }
.pub .au b { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
.pub .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; font-size: 15px; }
.pub .meta i { font-style: italic; }
.pub .tag { color: var(--muted); }
.pub .tag.lead { color: var(--ink); font-weight: 600; }
.empty { padding: 48px 20px; background: var(--surface); font-size: var(--step-lead); }

/* CV page */
.cv { padding: 0 var(--m); }
.cv-sec { display: grid; grid-template-columns: 34% 1fr; padding-top: clamp(56px, 6vw, 96px); }
.cv-sec > h2 { font-size: clamp(1.5rem, 2.2vw, 2.25rem); padding-right: 32px; }
.cv-list { list-style: none; margin: 0; padding: 0; }
.cv-list li { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 14px 16px; font-size: 16.5px; }
.cv-list li:nth-child(odd) { background: var(--surface); }
.cv-list .when { font-variant-numeric: tabular-nums; color: var(--muted); }
.cv-list .what b { font-weight: 600; }
.cv-cols { columns: 2; column-gap: 48px; font-size: 16px; }
.cv-cols p { break-inside: avoid; }

/* Entrances (only when JS runs) */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .rise.in { opacity: 1; transform: none; }
.js .hero h1 .line > span { transform: translateY(105%); transition: transform 1s var(--ease-out); }
.js .hero h1 .line:nth-child(2) > span { transition-delay: 110ms; }
.js .hero.ready h1 .line > span { transform: none; }
.js .hero .fade { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease-out) .5s, transform .8s var(--ease-out) .5s; }
.js .hero.ready .fade { opacity: 1; transform: none; }


/* CV extras */
.cv-lede { font-size: var(--step-lead); line-height: 1.38; max-width: 40em; }
.cv-note { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.cv-pubs { margin: 0; padding-left: 2.6em; font-size: 15.5px; line-height: 1.5; }
.cv-pubs li { padding: 8px 0 8px 6px; }
.cv-pubs li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.cv-pubs b { font-weight: 600; }
.cv-pubs a { overflow-wrap: anywhere; }


.about-side { display: grid; gap: 32px; align-content: start; padding-right: 40px; }
.portrait { margin: 0; max-width: 260px; }
.portrait img { width: 100%; aspect-ratio: 1074 / 1210; object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise, .js .hero .fade, .js .hero h1 .line > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .slowzoom img { transform: none; transition: none; }
  .btn, .chip, .spine, .poster li .w { transition: none; }
}

/* Tablet */
@media (max-width: 1024px) {
  .shelf { flex-wrap: wrap; overflow: visible; gap: 10px; }
  .hero { min-height: auto; padding-top: 0; }
  .hero-foot { margin-top: 72px; }
  .numbers, .pub-metrics { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .poster li .d { font-size: 16px; max-width: 26ch; }
}

/* Phone */
@media (max-width: 720px) {
  .nav { padding-top: 16px; }
  .nav ul { display: none; }
  .nav ul.open { display: grid; position: absolute; top: 48px; right: var(--m); left: var(--m); background: var(--ink); padding: 20px; gap: 14px; box-shadow: 0 18px 40px rgba(6, 82, 92, .25); } /* taste-skill-ignore: open menu overlay */
  .nav ul.open a { color: var(--bg); font-size: 19px; }
  .nav .menu-btn { display: inline-block; background: none; border: 0; color: var(--ink); font: inherit; font-size: 15px; padding: 6px 0; cursor: pointer; text-decoration: underline; }
  .hero { min-height: calc(100svh - 6px); padding-bottom: 20px; }
  .hero h1 { font-size: 21vw; line-height: 0.9; margin-top: 12vh; }
  .hero h1 .line:nth-child(2) { justify-self: start; }
  .hero .creds { font-size: 18px; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 20px; }
  .hero-foot p { font-size: 17px; }
  .btn { justify-content: center; }
  .about-row, .split, .cv-sec { grid-template-columns: 1fr; }
  .about-head { grid-column: 1; }
  .about-para { font-size: 19px; order: -1; margin-bottom: 36px; }
  .facts { grid-template-columns: 1fr 1fr; max-width: none; font-size: 14px; }
  .record { margin-top: 64px; }
  .record-lists { grid-template-columns: 1fr; gap: 40px; }
  .numbers, .pub-metrics { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .poster li a { display: block; padding-bottom: 22px; }
  .poster li .w { font-size: 12vw; display: block; }
  .poster li .d { text-align: left; font-size: 15px; display: block; margin-top: 6px; }
  .pictures, .band-grid { grid-template-columns: 1fr; }
  .shelf { flex-wrap: wrap; overflow: visible; gap: 10px 10px; }
  .spine { writing-mode: horizontal-tb; height: auto; flex: 1 1 100%; justify-content: space-between; padding: 12px 14px; font-size: 16px; }
  .spine .t { white-space: normal; max-height: none; }
  .spine .y { padding: 0 0 0 12px; }
  .rec-head { font-size: 11vw; }
  .rec-head .l2 { padding-left: 0; }
  table.rec thead { display: none; }
  table.rec, table.rec tbody, table.rec tr, table.rec td { display: block; width: auto !important; }
  table.rec tr { padding: 14px 16px; }
  table.rec td { padding: 2px 0; text-align: left !important; }
  table.rec td.yr:empty { display: none; }
  table.rec td.yr { font-size: 22px; }
  table.rec td.body, table.rec td.role { color: var(--muted); font-size: 15px; display: inline; }
  table.rec td.role::before { content: " / "; }
  table.rec tr.gap { display: none; }
  .rows a, .rows div.row { font-size: 7.2vw; min-height: 84px; padding: 34px var(--m) 16px; flex-wrap: wrap; }
  .rows .small { white-space: normal; flex-basis: 100%; }
  .rows .round { width: 56px; height: 56px; font-size: 24px; }
  footer.close .top { grid-template-columns: 1fr; }
  footer.close ul { grid-column: 1; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 15px; margin-top: 40px; }
  footer.close h2 { font-size: 11vw; }
  footer.close .btn { width: 100%; }
  footer.close .crop { font-size: 29vw; }
  .spine:nth-child(n+11) { display: none; }
  .about-side { padding-right: 0; margin-bottom: 36px; }
  .portrait { max-width: 220px; }
  .split > h2 { position: static; margin-bottom: 24px; }
  .pub-year { grid-template-columns: 1fr; }
  .pub-year h3 { position: static; margin-bottom: 12px; }
  .controls { position: static; padding: 18px; }
  .controls .grp > span, .search label { min-width: 0; flex-basis: 100%; }
  .cv-list li { grid-template-columns: 1fr; gap: 4px; }
  .cv-cols { columns: 1; }
  .thrust { padding: 28px 20px; }
  table.data td:first-child { width: auto; }
}

@media print {
  @page { size: Letter; }
  .nav, .topbar, footer.close, .no-print, .controls, .skip { display: none !important; }
  body { background: #fff; font-size: 9.5pt; line-height: 1.38; }
  .js .rise { opacity: 1 !important; transform: none !important; }
  .page-hero { padding: 0 0 8pt; min-height: 0; }
  .page-hero h1 { font-size: 24pt; margin: 0 0 6pt; letter-spacing: -0.02em; }
  .page-hero .row { display: block; }
  .page-hero .lede { font-size: 10.5pt; max-width: none; line-height: 1.4; }
  .cv { padding: 0; }
  .cv-sec { padding-top: 10pt; grid-template-columns: 1fr; break-inside: auto; }
  .cv-sec > h2 { font-size: 12pt; padding: 0 0 4pt; border-bottom: 1.2pt solid #06525c; margin-bottom: 4pt; break-after: avoid; }
  .cv-lede { font-size: 10pt; max-width: none; }
  .cv-list li { font-size: 9.2pt; padding: 2.5pt 6pt; grid-template-columns: 70pt 1fr; gap: 10pt; break-inside: avoid; }
  .cv-sec p { font-size: 9.2pt; margin: 0 0 4pt; }
  .cv-pubs { font-size: 8.6pt; line-height: 1.35; padding-left: 2.4em; }
  .cv-pubs li { padding: 1.5pt 0 1.5pt 3pt; break-inside: avoid; }
  .cv-note { font-size: 8.6pt; margin-bottom: 4pt; }
  a { text-decoration: none; color: inherit; }
}
