/* =========================================================
   Dr. Adnan Saeed — academic site
   Palette: white · ivory · dark navy (+ restrained brass accent)
   ========================================================= */

@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --navy-950: #061224;
  --navy-900: #0b1b33;
  --navy-800: #13284a;
  --navy-700: #1f3a63;
  --navy-500: #4a6690;
  --ink: #142238;
  --ink-soft: #48566d;
  --ink-muted: #7a8599;
  --ivory: #f7f3ea;
  --ivory-deep: #efe8d9;
  --white: #ffffff;
  --brass: #b08d57;
  --brass-soft: #c9b48a;
  --line: rgba(11, 27, 51, .12);
  --line-light: rgba(247, 243, 234, .16);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(84px, 11vw, 148px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, .c-value, .hero-stats dt, .sup-grid strong { font-variant-numeric: lining-nums; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -.005em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.muted { color: var(--ink-muted); }
::selection { background: var(--navy-900); color: var(--ivory); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ivory); color: var(--navy-900); padding: 8px 14px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding: 14px 0;
}
.site-header.is-scrolled {
  background: rgba(6, 18, 36, .9);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line-light);
  padding: 6px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivory); }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--brass-soft); border-radius: 50%;
  font-family: var(--serif); font-size: 16px; letter-spacing: .06em; color: var(--brass-soft);
}
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: .01em; }
.nav-menu { display: flex; gap: clamp(18px, 2.6vw, 34px); }
.nav-menu a {
  position: relative; text-decoration: none; color: rgba(247, 243, 234, .74);
  font-size: 13.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 0; transition: color .25s;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--brass-soft); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-menu a:hover, .nav-menu a.is-active { color: var(--ivory); }
.nav-menu a.is-active::after, .nav-menu a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 15px 26px; border-radius: var(--radius); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn-light { background: var(--ivory); color: var(--navy-900); }
.btn-light:hover { background: var(--white); }
.btn-ghost { color: var(--ivory); border-color: var(--line-light); }
.btn-ghost:hover { border-color: var(--brass-soft); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy-900); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1200px 600px at 78% 30%, rgba(74, 102, 144, .28), transparent 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 70%, #0e2140 100%);
  color: var(--ivory);
  padding: clamp(130px, 16vw, 180px) 0 clamp(48px, 6vw, 72px);
}
.hero::after { /* fine grain of "field lines" */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.018) 0 1px, transparent 1px 22px);
}
.hero-orbits {
  position: absolute; z-index: -1; width: min(980px, 120vw); right: -14%; top: 50%;
  transform: translateY(-54%); pointer-events: none;
}
.hero-orbits .orbit ellipse, .hero-orbits .ring { fill: none; stroke: rgba(201, 180, 138, .2); stroke-width: 1; }
.hero-orbits .ring-dash { stroke-dasharray: 2 9; stroke: rgba(247, 243, 234, .14); }
.hero-orbits .orbit circle { fill: var(--brass-soft); }
.hero-orbits .orbit { transform-origin: 400px 400px; animation: spin 90s linear infinite; }
.hero-orbits .orbit-b { animation-duration: 120s; animation-direction: reverse; }
.hero-orbits .orbit-c { animation-duration: 150s; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-soft);
  margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(54px, 8.4vw, 112px); font-weight: 500; letter-spacing: -.015em; line-height: .98; }
.hero-degree {
  font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.8vw, 34px);
  color: var(--brass-soft); margin: 14px 0 26px;
}
.hero-role { font-size: clamp(16px, 1.4vw, 18.5px); color: rgba(247, 243, 234, .86); line-height: 1.6; margin-bottom: 22px; }
.hero-fields {
  font-size: 14px; letter-spacing: .04em; color: rgba(247, 243, 234, .62);
  padding-top: 20px; border-top: 1px solid var(--line-light); max-width: 600px; margin-bottom: 36px;
}
.hero-fields i { font-style: normal; color: var(--brass-soft); margin: 0 6px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.portrait { margin: 0; position: relative; justify-self: end; width: 100%; max-width: 440px; }
.portrait-frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.portrait::before { /* offset brass frame */
  content: ""; position: absolute; top: 22px; left: 22px; width: 100%; aspect-ratio: 4 / 5; border: 1px solid rgba(201, 180, 138, .45); z-index: -1;
}
.portrait-frame img, .portrait-placeholder, .portrait-placeholder svg { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder { position: relative; }
.placeholder-note {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); white-space: nowrap;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(247, 243, 234, .55);
  border: 1px dashed rgba(247, 243, 234, .3); padding: 6px 12px;
}
.portrait figcaption {
  margin-top: 40px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(247, 243, 234, .5);
  text-align: right;
}

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(56px, 7vw, 88px) 0 0;
  border-top: 1px solid var(--line-light);
}
.hero-stats div { padding: 26px 24px 0 0; }
.hero-stats div + div { padding-left: 24px; border-left: 1px solid var(--line-light); }
.hero-stats dt { font-family: var(--serif); font-size: clamp(36px, 4vw, 50px); line-height: 1; color: var(--ivory); margin-bottom: 10px; }
.hero-stats dd { margin: 0; font-size: 13.5px; line-height: 1.5; color: rgba(247, 243, 234, .6); max-width: 200px; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section-ivory { background: var(--ivory); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy-900); color: var(--ivory); }

.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-num {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .2em; color: var(--brass);
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.section-num::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: .6; }
.section-head h2 { font-size: clamp(40px, 5.2vw, 64px); color: var(--navy-900); }
.section-navy .section-head h2 { color: var(--ivory); }
.section-intro { margin-top: 22px; max-width: 680px; color: var(--ink-soft); font-size: 18px; }
.section-navy .section-intro { color: rgba(247, 243, 234, .7); }

/* spectral emission strip (decorative) */
.spectrum {
  margin-top: 30px; height: 26px; width: 100%; max-width: 260px; border-radius: 1px;
  background:
    linear-gradient(90deg,
      transparent 0 9%, rgba(80,70,170,.9) 9% 10%, transparent 10% 17%,
      rgba(70,90,200,.85) 17% 17.6%, transparent 17.6% 26%,
      rgba(60,120,210,.9) 26% 27.2%, transparent 27.2% 41%,
      rgba(40,150,190,.6) 41% 41.6%, transparent 41.6% 55%,
      rgba(60,160,110,.55) 55% 55.5%, transparent 55.5% 68%,
      rgba(200,170,60,.6) 68% 68.6%, transparent 68.6% 80%,
      rgba(200,90,60,.75) 80% 81.2%, transparent 81.2% 92%,
      rgba(170,40,50,.6) 92% 92.6%, transparent 92.6%),
    var(--navy-900);
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); }
.about-grid .section-head { position: sticky; top: 120px; align-self: start; }
.about-body p { color: var(--ink-soft); }
.lead { font-family: var(--serif); font-size: clamp(25px, 2.6vw, 32px); line-height: 1.35; color: var(--navy-900) !important; margin-bottom: 1em; }
.roles { margin-top: 44px; padding: 32px 36px; background: var(--white); border: 1px solid var(--line); }
.roles h3, .supervision h3 {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 18px;
}
.roles ul { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }
.roles li { position: relative; padding-left: 20px; font-size: 15.5px; color: var(--ink); line-height: 1.5; }
.roles li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border: 1px solid var(--navy-700); border-radius: 50%; }

/* ---------- Research ---------- */
.section-head-wide { max-width: 820px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card {
  background: var(--white); padding: 38px 30px 34px; display: flex; flex-direction: column;
  transition: background .4s var(--ease);
}
.card:hover { background: var(--ivory); }
.card-icon { width: 46px; height: 46px; margin-bottom: 28px; fill: none; stroke: var(--navy-700); stroke-width: 1.2; transition: transform .6s var(--ease), stroke .3s; }
.card:hover .card-icon { transform: rotate(-12deg) scale(1.05); stroke: var(--brass); }
.card h3 { font-size: 27px; color: var(--navy-900); margin-bottom: 16px; }
.card p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.65; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tags li { font-size: 11.5px; font-weight: 500; letter-spacing: .04em; color: var(--navy-700); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }

.research-band { display: grid; grid-template-columns: 1.3fr 1fr; margin-top: 56px; background: var(--navy-900); color: var(--ivory); }
.band-item { padding: 40px clamp(28px, 4vw, 48px); }
.band-item + .band-item { border-left: 1px solid var(--line-light); }
.band-label { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-soft); margin-bottom: 14px; }
.band-title { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.25; margin-bottom: 14px; }
.band-meta { font-size: 14.5px; color: rgba(247, 243, 234, .66); margin: 0; }
.instruments li { display: flex; gap: 16px; font-size: 15px; padding: 10px 0; border-bottom: 1px solid var(--line-light); color: rgba(247, 243, 234, .82); }
.instruments li:last-child { border-bottom: 0; }
.instruments strong { min-width: 42px; font-weight: 600; letter-spacing: .08em; color: var(--ivory); }

/* ---------- Timeline ---------- */
.timeline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.col-title { font-size: 30px; color: var(--navy-900); margin-bottom: 30px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.col-title-sub { margin-top: 56px; }
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--navy-700), rgba(31, 58, 99, .15)); }
.timeline li { position: relative; padding-bottom: 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -30px; top: 6px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--ivory); border: 1.5px solid var(--navy-700);
}
.timeline li:first-child::before { background: var(--navy-900); box-shadow: 0 0 0 5px rgba(176, 141, 87, .22); }
.t-date { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin-bottom: 6px; }
.timeline h4 { font-size: 25px; color: var(--navy-900); margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.t-note { margin-top: 6px !important; font-size: 14px !important; font-style: italic; color: var(--ink-muted) !important; }

.mini-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); line-height: 1.5; }
.mini-list span { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; color: var(--navy-700); padding-top: 2px; }

.supervision { margin-top: clamp(56px, 7vw, 88px); padding: 40px clamp(28px, 4vw, 48px); background: var(--white); border: 1px solid var(--line); }
.sup-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.sup-grid div { display: flex; align-items: baseline; gap: 18px; padding-right: 24px; }
.sup-grid div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.sup-grid strong { font-family: var(--serif); font-weight: 500; font-size: 58px; line-height: 1; color: var(--navy-900); }
.sup-grid span { font-size: 14.5px; color: var(--ink-soft); line-height: 1.45; }

/* ---------- Publications ---------- */
.pub-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip {
  font-family: var(--sans); font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; cursor: pointer;
  transition: all .25s var(--ease);
}
.chip span { color: var(--ink-muted); margin-left: 4px; }
.chip:hover { border-color: var(--navy-700); color: var(--navy-900); }
.chip.is-active { background: var(--navy-900); border-color: var(--navy-900); color: var(--ivory); }
.chip.is-active span { color: var(--brass-soft); }

.pub-year { display: grid; grid-template-columns: 140px 1fr; gap: 24px; border-top: 1px solid var(--line); padding: 30px 0; }
.pub-year h3 { font-size: 40px; color: var(--navy-900); line-height: 1; position: sticky; top: 100px; align-self: start; }
.pub-year ol { display: grid; gap: 26px; }
.pub-year li { position: relative; padding-left: 22px; transition: opacity .3s; }
.pub-year li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--brass); }
.p-title { font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--navy-900); margin-bottom: 6px; font-weight: 500; }
.p-auth { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 4px; line-height: 1.55; }
.p-auth b { color: var(--navy-900); font-weight: 600; }
.p-venue { font-size: 14px; color: var(--ink-muted); margin: 0; }
.p-venue em { color: var(--navy-700); font-style: italic; }
.p-venue a { color: var(--navy-700); text-underline-offset: 3px; text-decoration-color: rgba(31, 58, 99, .35); }
.p-venue a:hover { text-decoration-color: var(--brass); }

.pub-year.is-hidden, .pub-year li.is-hidden { display: none; }
.pubs.is-collapsed .pub-year.is-extra { display: none; }
.pub-more { display: flex; justify-content: center; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 36px; }
.pub-more[hidden] { display: none; }

.placeholder-box { margin-top: 48px; padding: 26px 30px; border: 1px dashed rgba(176, 141, 87, .6); background: var(--ivory); }
.placeholder-box p:last-child { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- Contact ---------- */
.section-navy { overflow: hidden; }
.section-navy::before {
  content: ""; position: absolute; width: 640px; height: 640px; left: -220px; bottom: -320px; border-radius: 50%;
  border: 1px solid var(--line-light); box-shadow: 0 0 0 80px rgba(255,255,255,.012), 0 0 0 160px rgba(255,255,255,.01);
  pointer-events: none;
}
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); position: relative; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-light); }
.c-item { padding: 30px 28px 30px 0; border-bottom: 1px solid var(--line-light); }
.c-item:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line-light); }
.c-label { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-soft); margin-bottom: 12px; }
.c-value { font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--ivory); margin: 0; text-decoration: none; word-break: break-word; }
a.c-value { border-bottom: 1px solid rgba(201, 180, 138, .4); transition: border-color .3s; }
a.c-value:hover { border-color: var(--brass-soft); }
.c-links li { font-size: 15px; padding: 3px 0; }
.c-links a { color: var(--ivory); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .3s; }
.c-links a:hover { border-color: var(--brass-soft); }
.c-links .muted { color: rgba(247, 243, 234, .5); margin-top: 6px; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(247, 243, 234, .55); font-size: 13.5px; padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner p { margin: 0; }
.to-top {
  display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-light); border-radius: 50%;
  text-decoration: none; color: var(--ivory); transition: border-color .3s, transform .3s var(--ease);
}
.to-top:hover { border-color: var(--brass-soft); transform: translateY(-3px); }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-orbits .orbit { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  body { font-size: 16.5px; }
  .nav-toggle {
    display: grid; gap: 7px; place-content: center; width: 44px; height: 44px;
    background: none; border: 1px solid var(--line-light); border-radius: 50%; cursor: pointer; padding: 0;
  }
  .nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ivory); transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav-menu {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(6, 18, 36, .97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    padding: 10px var(--gutter) 26px; border-bottom: 1px solid var(--line-light);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .3s var(--ease);
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-menu a { display: block; padding: 15px 0; font-size: 14px; border-bottom: 1px solid var(--line-light); }
  .nav-menu a::after { display: none; }
  .site-header.menu-open { background: rgba(6, 18, 36, .97); }

  .hero-grid { grid-template-columns: 1fr; }
  .portrait { justify-self: start; max-width: 380px; order: -1; }
  .portrait figcaption { display: none; }
  .hero-orbits { right: -50%; top: 30%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats div { padding: 22px 16px 22px 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--line-light); }
  .hero-stats div:nth-child(even) { padding-left: 16px !important; border-left: 1px solid var(--line-light) !important; }

  .about-grid, .contact-grid, .timeline-grid { grid-template-columns: 1fr; }
  .about-grid .section-head { position: static; }
  .research-band { grid-template-columns: 1fr; }
  .band-item + .band-item { border-left: 0; border-top: 1px solid var(--line-light); }
  .sup-grid { grid-template-columns: 1fr; }
  .sup-grid div { padding: 16px 0 !important; border-left: 0 !important; }
  .sup-grid div + div { border-top: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .brand-name { font-size: 19px; }
  .cards { grid-template-columns: 1fr; }
  .roles { padding: 26px 22px; }
  .roles ul { grid-template-columns: 1fr; }
  .pub-year { grid-template-columns: 1fr; gap: 16px; }
  .pub-year h3 { position: static; font-size: 34px; }
  .p-title { font-size: 20px; }
  .contact-cards { grid-template-columns: 1fr; }
  .c-item, .c-item:nth-child(even) { padding: 24px 0; border-left: 0; }
  .mini-list li { grid-template-columns: 1fr; gap: 2px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .to-top { position: absolute; right: var(--gutter); }
  .site-footer { position: relative; }
  .portrait { max-width: 100%; }
  .portrait::before { top: 14px; left: 14px; width: calc(100% - 4px); }
}

@media print {
  .site-header, .hero-orbits, .pub-filters, .pub-more, .to-top { display: none !important; }
  .hero { background: none; color: #000; padding: 0; }
  .pubs.is-collapsed .pub-year.is-extra { display: grid; }
  .js .reveal { opacity: 1; transform: none; }
}
