/*
 * Copyright 2026 Parham Zilouchian Moghaddam
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/* ════════════════════════════════════════════════════════════════════
   Parham Zilouchian Moghaddam — academic homepage
   Design system: fluid type, layered surfaces, dual-theme colour model
   ════════════════════════════════════════════════════════════════════ */

/* ───────────────────────── 1. TOKENS ───────────────────────── */
:root {
  /* — type — */
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Newsreader", Iowan Old Style, Georgia, "Times New Roman", serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* fluid scale — 320px → 1280px viewport */
  --t-xs:   clamp(0.700rem, 0.68rem + 0.10vw, 0.760rem);
  --t-sm:   clamp(0.800rem, 0.78rem + 0.11vw, 0.865rem);
  --t-base: clamp(0.945rem, 0.92rem + 0.13vw, 1.020rem);
  --t-md:   clamp(1.020rem, 0.98rem + 0.20vw, 1.135rem);
  --t-lg:   clamp(1.135rem, 1.08rem + 0.28vw, 1.300rem);
  --t-xl:   clamp(1.350rem, 1.20rem + 0.75vw, 1.800rem);
  --t-2xl:  clamp(1.700rem, 1.40rem + 1.50vw, 2.500rem);
  --t-3xl:  clamp(2.400rem, 1.60rem + 4.00vw, 4.400rem);

  /* — geometry — */
  --wrap: 1140px;
  --r-sm: 8px;
  --r-md: 13px;
  --r-lg: 18px;
  --r-xl: 24px;
  --bar-h: 62px;

  /* — motion — */
  --ease: cubic-bezier(.22, .68, .34, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ── LIGHT THEME (default) ─────────────────────────────────── */
:root, html[data-theme="light"] {
  --bg:          #fcfbf8;   /* warm paper                    */
  --bg-alt:      #f4f2ec;   /* alternating band              */
  --surface:     #ffffff;   /* raised card                   */
  --surface-2:   #fbfaf6;   /* inset / quiet card            */

  --ink:         #14131a;   /* headings                      */
  --ink-2:       #383644;   /* body copy                     */
  --muted:       #6c6979;   /* meta, captions                */
  --faint:       #6a6779;   /* least prominent — still AA    */

  --line:        #e6e2d8;   /* borders                       */
  --line-2:      #f0ede5;   /* hairlines inside cards        */

  --accent:      #5738d4;   /* primary action / links        */
  --accent-str:  #4529bd;   /* hover, stronger contrast      */
  --accent-dim:  #7c63e0;   /* decorative                    */
  --accent-wash: #f0ecfd;   /* tinted fill                   */
  --accent-edge: #d9d0f9;   /* tinted border                 */
  --on-accent:   #ffffff;

  --grain-opacity: .030;
  --ring: rgba(87, 56, 212, .38);

  --sh-1: 0 1px 2px rgba(22, 18, 42, .05), 0 2px 6px rgba(22, 18, 42, .035);
  --sh-2: 0 2px 4px rgba(22, 18, 42, .05), 0 10px 26px rgba(22, 18, 42, .065);
  --sh-3: 0 4px 10px rgba(22, 18, 42, .06), 0 24px 56px rgba(22, 18, 42, .10);
  --sh-accent: 0 6px 20px rgba(87, 56, 212, .28);

  --card-top-light: transparent;
}

/* ── DARK THEME ────────────────────────────────────────────── */
html[data-theme="dark"] {
  --bg:          #0a0910;
  --bg-alt:      #0f0e17;
  --surface:     #16141f;
  --surface-2:   #1b1927;

  --ink:         #f2f0f8;
  --ink-2:       #cfcbdd;
  --muted:       #948fa6;
  --faint:       #8d88a0;

  --line:        #272433;
  --line-2:      #201e2b;

  --accent:      #b3a0ff;
  --accent-str:  #cdbcff;
  --accent-dim:  #8b74e8;
  --accent-wash: rgba(179, 160, 255, .11);
  --accent-edge: rgba(179, 160, 255, .26);
  --on-accent:   #150f2e;

  --grain-opacity: .048;
  --ring: rgba(179, 160, 255, .5);

  --sh-1: 0 1px 2px rgba(0, 0, 0, .5);
  --sh-2: 0 2px 6px rgba(0, 0, 0, .45), 0 12px 30px rgba(0, 0, 0, .5);
  --sh-3: 0 6px 14px rgba(0, 0, 0, .5), 0 28px 64px rgba(0, 0, 0, .62);
  --sh-accent: 0 6px 24px rgba(139, 116, 232, .38);

  /* a 1px top highlight gives cards physical edge in the dark */
  --card-top-light: rgba(255, 255, 255, .055);
}

/* ───────────────────────── 2. BASE ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.68;
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

img, svg, picture { max-width: 100%; display: block; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 600; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-str); }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 5px;
}

.skip-link {
  position: fixed; left: -999px; top: 0; z-index: 300;
  background: var(--accent); color: var(--on-accent);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--r-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--on-accent); }

.wrap {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-left:  max(26px, env(safe-area-inset-left));
  padding-right: max(26px, env(safe-area-inset-right));
}

/* fine film grain — gives both themes a printed, non-flat surface */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
html[data-theme="dark"] .grain { mix-blend-mode: soft-light; }

/* animated underline for links inside running text */
.prose a, .tl-sub a, .bullets a, .honors a, .teach-with a, .teach-desc a, .venue a,
.news a, .hero-role a, .edu-top h3 a, .tl-top h3 a, .ref-card h3 a, .mini-head a {
  color: var(--accent);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 1px);
  transition: background-size .3s var(--ease-out), color .2s var(--ease);
  padding-bottom: 2px;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 30%, transparent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover, .tl-sub a:hover, .bullets a:hover, .honors a:hover,
.teach-with a:hover, .teach-desc a:hover, .venue a:hover, .news a:hover, .hero-role a:hover,
.edu-top h3 a:hover, .tl-top h3 a:hover, .ref-card h3 a:hover, .mini-head a:hover {
  background-size: 100% 1.5px;
  text-decoration-color: transparent;
  color: var(--accent-str);
}

/* ───────────────────────── 3. TOP BAR ───────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.topbar.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 20px rgba(0,0,0,.04); }
html[data-theme="dark"] .topbar.scrolled { box-shadow: 0 1px 24px rgba(0,0,0,.4); }

.topbar-inner {
  max-width: var(--wrap); margin-inline: auto;
  min-height: var(--bar-h);
  padding-block: 10px;
  padding-left:  max(26px, env(safe-area-inset-left));
  padding-right: max(26px, env(safe-area-inset-right));
  display: flex; align-items: center; gap: 14px;
}

.brand {
  display: flex; align-items: center; gap: 11px; color: var(--ink);
  flex: 0 1 auto; min-width: 0;          /* allow the name to shrink, never overflow */
}
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-dim) 100%);
  box-shadow: var(--sh-1);
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; fill: none; stroke: var(--on-accent); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name, .brand-short {
  font-family: var(--serif); font-size: .96rem; font-weight: 600; letter-spacing: -.012em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-short { display: none; }          /* swapped in on very narrow screens */
.brand-role { font-size: .64rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); }

.nav { display: flex; gap: 1px; margin-left: auto; }
.nav a {
  position: relative;
  color: var(--muted);
  font-size: .80rem; font-weight: 500;
  padding: 8px 7px; border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav a::before {
  content: ""; position: absolute; inset: 4px 3px;
  background: var(--accent-wash); border-radius: 7px;
  opacity: 0; transform: scale(.92);
  transition: opacity .22s var(--ease), transform .22s var(--ease-out);
}
.nav a > span { position: relative; }
.nav a:hover { color: var(--ink); }
.nav a:hover::before { opacity: .6; transform: scale(1); }
.nav a.active { color: var(--accent); font-weight: 600; }
.nav a.active::before { opacity: 1; transform: scale(1); }

.topbar-actions { display: flex; gap: 7px; align-items: center; margin-left: auto; flex-shrink: 0; }

.icon-btn {
  display: grid; place-items: center;
  width: 36px; height: 36px; padding: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; color: var(--muted); cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent-edge); transform: translateY(-1px); }
.icon-btn:active { transform: translateY(0); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.i-moon { display: none; }
html[data-theme="dark"] .i-sun  { display: none; }
html[data-theme="dark"] .i-moon { display: block; }
.nav-toggle { display: none; }

.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transition: width .12s linear;
}

/* ───────────────────────── 4. HERO ───────────────────────── */
.hero { position: relative; padding: clamp(48px, 7.5vw, 96px) 0 clamp(48px, 6vw, 84px); overflow: hidden; }

.hero-backdrop { position: absolute; inset: 0; pointer-events: none; }
.hero-backdrop::before {           /* hairline grid, fading downward */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 76px 76px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 70% 5%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 90% 70% at 70% 5%, #000 0%, transparent 72%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(10px); }
.glow-a {
  width: 640px; height: 640px; top: -280px; right: -120px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 20%, transparent) 0%, transparent 62%);
}
.glow-b {
  width: 480px; height: 480px; bottom: -260px; left: -180px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-dim) 13%, transparent) 0%, transparent 65%);
}

.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 68px); align-items: start;
}

.status {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 11px; margin-bottom: 24px;
  border-radius: 100px;
  background: var(--accent-wash); border: 1px solid var(--accent-edge);
  color: var(--accent); font-size: var(--t-sm); font-weight: 600; letter-spacing: -.005em;
}
.status-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.status-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--accent); animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .7 } 70%, 100% { transform: scale(3); opacity: 0 } }

.hero-name {
  font-family: var(--serif);
  font-size: var(--t-3xl);
  line-height: .98; letter-spacing: -.035em; font-weight: 500;
  margin-bottom: 16px;
  text-wrap: balance;
}
.hero-name em {
  display: block; font-style: italic; font-weight: 400;
  color: transparent;
  background: linear-gradient(100deg, var(--ink) 10%, var(--accent) 92%);
  -webkit-background-clip: text; background-clip: text;
}

.hero-role { font-size: var(--t-md); color: var(--muted); margin-bottom: 20px; }

.hero-lede {
  font-size: var(--t-md); color: var(--ink-2);
  max-width: 58ch; line-height: 1.72; text-wrap: pretty;
}
.hero-lede strong { color: var(--ink); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 21px; border-radius: 11px;
  font-size: var(--t-sm); font-weight: 600; letter-spacing: -.005em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary {
  background: linear-gradient(160deg, var(--accent-dim), var(--accent));
  color: var(--on-accent); box-shadow: var(--sh-1);
}
.btn-primary:hover { color: var(--on-accent); transform: translateY(-2px); box-shadow: var(--sh-accent); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-1); }
.btn-ghost:hover { color: var(--ink); transform: translateY(-2px); border-color: var(--accent-edge); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); }

.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px 7px 11px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: var(--t-xs); font-weight: 500;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease-out);
}
.social a:hover { color: var(--accent); border-color: var(--accent-edge); background: var(--accent-wash); transform: translateY(-2px); }
.social svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* — profile card — */
.hero-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 20px;
  box-shadow: var(--sh-2);
}
.hero-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: var(--card-top-light); border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.portrait {
  position: relative; width: 100%; aspect-ratio: 1;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-alt); margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 4.4rem; font-weight: 500; letter-spacing: .03em;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-dim) 0%, var(--accent) 55%, #2a1a6b 100%);
}
/* the [hidden] attribute must beat the display:flex above */
.portrait-fallback[hidden] { display: none; }

.facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
}
.facts > div { background: var(--surface-2); padding: 13px 15px; }
.facts dt { font-size: .655rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 2px; }
.facts dd { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.15; letter-spacing: -.025em; color: var(--ink); }
.facts dd span { font-size: .8rem; color: var(--faint); font-weight: 400; }

.facts-note {
  display: flex; gap: 9px; align-items: flex-start;
  margin-top: 15px; font-size: var(--t-xs); color: var(--muted); line-height: 1.55;
}
.facts-note span { min-width: 0; }
.facts-note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; }

/* ───────────────────────── 5. SECTIONS ───────────────────────── */
.section { position: relative; z-index: 2; padding: clamp(54px, 7vw, 92px) 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-alt); }

.section-head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 34px; padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.section-num {
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  color: var(--accent); letter-spacing: .06em;
  padding-top: .2em;
}
.section-head h2 {
  font-family: var(--serif); font-size: var(--t-2xl);
  font-weight: 500; letter-spacing: -.03em; line-height: 1.12;
}
.head-link {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--t-sm); font-weight: 500; white-space: nowrap; color: var(--muted);
  transition: color .2s var(--ease);
}
.head-link span { transition: transform .25s var(--ease-out); display: inline-block; }
.head-link:hover { color: var(--accent); }
.head-link:hover span { transform: translateX(3px); }

.section-lede { color: var(--muted); max-width: 66ch; margin: -14px 0 30px; font-size: var(--t-sm); }

.group-head {
  font-family: var(--serif); font-size: var(--t-lg); font-weight: 600; letter-spacing: -.018em;
  margin: 46px 0 20px; color: var(--ink);
  display: flex; align-items: center; gap: 15px;
}
.group-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
/* only collapse the top margin when the group head opens the section —
   one that follows content (Honors, Service) keeps its full separation */
.section-head + .group-head,
.section-lede + .group-head { margin-top: 6px; }

.mini-head {
  font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 13px;
}

.bullets { display: grid; gap: 8px; }
.bullets li { position: relative; padding-left: 19px; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.62; }
.bullets li::before {
  content: ""; position: absolute; left: 2px; top: .66em;
  width: 5px; height: 5px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 60%, transparent);
}
.ref { font-family: var(--mono); font-size: .78em; font-weight: 600; color: var(--accent); }
.muted-inline { color: var(--muted); font-weight: 400; }

/* ───────────────────────── 6. ABOUT ───────────────────────── */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(30px, 4.5vw, 62px); align-items: start; }
.prose p { color: var(--ink-2); margin-bottom: 17px; line-height: 1.78; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }
.prose em { color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose-lead {
  font-size: var(--t-md); color: var(--ink) !important;
  font-family: var(--serif); line-height: 1.6 !important; letter-spacing: -.012em;
}
.prose-lead strong { font-weight: 600; }

.pull-quote {
  margin-top: 28px; padding: 4px 0 4px 22px;
  border-left: 2px solid var(--accent-edge);
}
.pull-quote p {
  font-family: var(--serif); font-style: italic;
  font-size: var(--t-md); color: var(--muted); margin: 0; line-height: 1.55;
}

.about-side { display: grid; gap: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 19px 20px; box-shadow: var(--sh-1); }
.panel-quiet { background: transparent; box-shadow: none; border-style: dashed; }
.panel .bullets li { font-size: var(--t-xs); }

.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list li {
  padding: 6px 13px; border-radius: 100px;
  background: var(--accent-wash); color: var(--accent);
  font-size: var(--t-xs); font-weight: 600;
  border: 1px solid var(--accent-edge);
}
.tag-list.small li { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); font-weight: 500; }

/* ───────────────────────── 7. NEWS ───────────────────────── */
.news { display: grid; gap: 0; }
.news li {
  display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 24px;
  padding: 15px 6px; border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background .2s var(--ease);
}
.news li:first-child { border-top: 1px solid var(--line); }
.news li:hover { background: color-mix(in srgb, var(--accent) 3%, transparent); }
.news time {
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 600;
  color: var(--accent); letter-spacing: -.01em; white-space: nowrap;
}
.news p { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.62; }
.news strong { color: var(--ink); font-weight: 600; }

/* ───────────────────────── 8. TIMELINE ───────────────────────── */
.timeline { position: relative; display: grid; gap: 36px; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1.5px;
  background: linear-gradient(var(--accent-edge) 0%, var(--line) 40%, transparent 100%);
}
.tl-item { position: relative; }
.tl-marker {
  position: absolute; left: -28px; top: 8px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
  transition: box-shadow .25s var(--ease);
}
.section.alt .tl-marker { background: var(--bg-alt); box-shadow: 0 0 0 4px var(--bg-alt); }
.tl-item:hover .tl-marker { box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--accent-wash); }
.section.alt .tl-item:hover .tl-marker { box-shadow: 0 0 0 4px var(--bg-alt), 0 0 0 7px var(--accent-wash); }

.tl-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 5px; }
.tl-top h3 { font-family: var(--serif); font-size: var(--t-lg); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.tl-date {
  margin-left: auto; font-family: var(--mono); font-size: .715rem; font-weight: 500;
  color: var(--muted); white-space: nowrap; letter-spacing: -.02em;
  padding: 3px 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line);
}
.tl-sub { font-size: var(--t-xs); color: var(--muted); margin-bottom: 12px; line-height: 1.65; }

/* ───────────────────────── 9. PUBLICATIONS ───────────────────────── */
.pubs { display: grid; gap: 13px; }
.pub {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px 22px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease-out);
}
.pub::before {                                     /* accent rail on hover */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2.5px;
  background: linear-gradient(var(--accent-dim), var(--accent));
  transform: scaleY(0); transform-origin: top;
  transition: transform .32s var(--ease-out);
}
.pub:hover { border-color: var(--accent-edge); box-shadow: var(--sh-2); transform: translateY(-2px); }
.pub:hover::before { transform: scaleY(1); }
.pub-featured { border-color: var(--accent-edge); background: linear-gradient(150deg, var(--accent-wash) 0%, var(--surface) 42%); }

.pub-num {
  display: grid; place-items: center;
  width: 29px; height: 29px; border-radius: 9px;
  background: var(--accent-wash); color: var(--accent);
  border: 1px solid var(--accent-edge);
  font-family: var(--mono); font-size: .78rem; font-weight: 700;
}
.pub-body h4 { font-family: var(--serif); font-size: var(--t-md); font-weight: 600; letter-spacing: -.02em; line-height: 1.38; margin-bottom: 6px; text-wrap: pretty; }
.pub-body h4 a { color: var(--ink); }
.pub-body h4 a:hover { color: var(--accent); }
.authors { font-size: var(--t-sm); color: var(--ink-2); margin-bottom: 2px; }
.authors strong { color: var(--accent); font-weight: 600; }
.venue { font-size: var(--t-xs); color: var(--muted); margin-bottom: 13px; }
.pub-links { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }

.chip {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 7px;
  font-size: .715rem; font-weight: 600; letter-spacing: .01em;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
  max-width: 100%; overflow-wrap: anywhere; text-align: center;
}
.chip-accent { background: linear-gradient(150deg, var(--accent-dim), var(--accent)); color: var(--on-accent); border-color: transparent; }
.chip-soft { background: var(--accent-wash); color: var(--accent); border-color: var(--accent-edge); }
.chip-link, .chip-btn {
  font-family: var(--mono); font-size: .69rem; font-weight: 600;
  color: var(--accent); border-color: var(--accent-edge); background: transparent;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip-link:hover, .chip-btn:hover { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.chip-btn.copied { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.bibtex { display: none; }

/* ───────────────────────── 10. SKILLS ───────────────────────── */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(232px, 100%), 1fr)); gap: 14px; }
.skill-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 19px 20px; box-shadow: var(--sh-1); }
.skill-card h4 { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 13px; }

/* ───────────────────────── 11. EDUCATION ───────────────────────── */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(318px, 100%), 1fr)); gap: 16px; }
.edu-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px 28px; box-shadow: var(--sh-1);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease-out), border-color .25s var(--ease);
}
.edu-card:hover { box-shadow: var(--sh-2); transform: translateY(-3px); border-color: var(--accent-edge); }
.edu-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.edu-top h3 { font-family: var(--serif); font-size: var(--t-lg); font-weight: 600; letter-spacing: -.025em; }
.edu-top h3 a { color: var(--ink); }
.edu-place { margin-left: auto; font-size: var(--t-xs); color: var(--faint); }
.edu-degree { font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
.edu-degree span { font-weight: 400; color: var(--muted); }
.edu-date { font-family: var(--mono); font-size: .715rem; color: var(--faint); margin-bottom: 17px; }
.edu-facts { display: grid; gap: 11px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.edu-facts dt { font-size: .655rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 2px; }
.edu-facts dd { font-size: var(--t-sm); color: var(--ink-2); }
.edu-facts dd strong { color: var(--ink); font-weight: 600; }
.edu-facts dd em { color: var(--ink); }
.edu-badge {
  display: inline-block; margin-top: 18px; padding: 5px 13px; border-radius: 100px;
  background: var(--accent-wash); color: var(--accent);
  font-size: var(--t-xs); font-weight: 600; border: 1px solid var(--accent-edge);
}

/* ───────────────────────── 12. HONORS ───────────────────────── */
.honors { display: grid; }
.honors li {
  display: grid; grid-template-columns: 126px minmax(0, 1fr); gap: 24px;
  padding: 16px 6px; border-bottom: 1px solid var(--line); align-items: start;
  transition: background .2s var(--ease);
}
.honors li:first-child { border-top: 1px solid var(--line); }
.honors li:hover { background: color-mix(in srgb, var(--accent) 3%, transparent); }
.honor-year { font-family: var(--mono); font-size: var(--t-xs); font-weight: 600; color: var(--accent); padding-top: 2px; letter-spacing: -.015em; }
.honors p { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.64; }
.honors strong { color: var(--ink); font-weight: 600; }

/* ───────────────────────── 13. TEACHING ───────────────────────── */
.teach-block + .teach-block { margin-top: 26px; }
.teach-block .mini-head { display: flex; align-items: center; gap: 11px; margin: 0 0 11px 2px; }
.teach-block .mini-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.teach-table { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); box-shadow: var(--sh-1); }
.teach-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto;
  gap: 3px 18px; align-items: start;
  padding: 16px 20px; border-bottom: 1px solid var(--line-2);
  transition: background .18s var(--ease);
}
.teach-row:last-child { border-bottom: 0; }
.teach-row:hover { background: var(--surface-2); }
.teach-row-featured {
  padding-left: 17px;
  border-left: 3px solid var(--accent);
  background: linear-gradient(150deg, var(--accent-wash) 0%, var(--surface) 60%);
}
.teach-row-featured:hover { background: linear-gradient(150deg, var(--accent-wash) 0%, var(--surface-2) 60%); }
.teach-row .teach-bullets { grid-column: 1 / -1; margin: 5px 0 0; }
.teach-actions { grid-column: 1 / -1; margin: 11px 0 0; }
.teach-course { font-weight: 600; font-size: var(--t-sm); color: var(--ink); display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.role {
  font-size: .62rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px;
  background: var(--surface-2); color: var(--faint); border: 1px solid var(--line);
}
.role-head { background: var(--accent-wash); color: var(--accent); border-color: var(--accent-edge); }
.teach-with { font-size: var(--t-xs); color: var(--muted); padding-top: 1px; }
.teach-year { font-family: var(--mono); font-size: .715rem; color: var(--faint); white-space: nowrap; text-align: right; padding-top: 2px; }
.teach-desc { grid-column: 1 / -1; font-size: var(--t-xs); color: var(--muted); line-height: 1.62; margin-top: 3px; max-width: 74ch; }

/* ───────────────────────── 14. PROJECTS ───────────────────────── */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.proj-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 22px; color: var(--ink-2);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease-out);
}
.proj-card::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.proj-card:hover { color: var(--ink-2); border-color: var(--accent-edge); box-shadow: var(--sh-2); transform: translateY(-3px); }
.proj-card:hover::after { transform: scaleX(1); }
.proj-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.proj-year { font-family: var(--mono); font-size: .715rem; font-weight: 600; color: var(--accent); }
.proj-arrow { color: var(--faint); transition: transform .28s var(--ease-out), color .2s var(--ease); }
.proj-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.proj-card:hover .proj-arrow { color: var(--accent); transform: translate(3px, -3px); }
.proj-card h3 { font-family: var(--serif); font-size: var(--t-md); font-weight: 600; letter-spacing: -.02em; line-height: 1.34; margin-bottom: 9px; text-wrap: pretty; }
.proj-card > p { font-size: var(--t-xs); color: var(--muted); line-height: 1.62; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 17px; }
.proj-tags span {
  font-size: .665rem; font-weight: 600; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 6px;
  background: var(--surface-2); color: var(--faint); border: 1px solid var(--line);
}

/* ───────────────────────── 15. CERTIFICATES ───────────────────────── */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(272px, 100%), 1fr)); gap: 14px; }
.cert-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px; box-shadow: var(--sh-1);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease-out);
}
.cert-card:hover { border-color: var(--accent-edge); box-shadow: var(--sh-2); transform: translateY(-2px); }
.cert-year { font-family: var(--mono); font-size: .69rem; font-weight: 600; color: var(--accent); margin-bottom: 9px; letter-spacing: -.015em; }
.cert-card h4 { font-family: var(--serif); font-size: var(--t-sm); font-weight: 600; letter-spacing: -.015em; line-height: 1.38; margin-bottom: 6px; text-wrap: pretty; }
.cert-issuer { font-size: var(--t-xs); color: var(--muted); line-height: 1.55; margin-bottom: 15px; }
.cert-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.cert-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--t-xs); font-weight: 600; color: var(--accent);
  padding: 6px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--accent-edge); background: var(--accent-wash);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.cert-link svg { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cert-link span { transition: transform .25s var(--ease-out); display: inline-block; }
.cert-link:hover { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.cert-link:hover span { transform: translateX(2px); }
.cert-link.sec { background: transparent; color: var(--muted); border-color: var(--line); }
.cert-link.sec:hover { color: var(--ink); border-color: var(--muted); background: transparent; }

/* ───────────────────────── 16. REFERENCES + CONTACT ───────────────────────── */
.ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(272px, 100%), 1fr)); gap: 14px; margin-bottom: 40px; }
.ref-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; box-shadow: var(--sh-1); }
.ref-card h3 { font-family: var(--serif); font-size: var(--t-md); font-weight: 600; letter-spacing: -.02em; margin-bottom: 3px; }
.ref-card h3 a { color: var(--ink); }
.ref-title { font-size: var(--t-xs); color: var(--muted); line-height: 1.5; margin-bottom: 13px; }
.ref-links { display: flex; flex-wrap: wrap; gap: 6px; }
.ref-links a {
  font-size: .715rem; font-weight: 500; padding: 5px 10px; border-radius: 7px;
  border: 1px solid var(--line); color: var(--muted);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.ref-links a:hover { color: var(--accent); border-color: var(--accent-edge); background: var(--accent-wash); }

.contact-panel {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr);
  gap: clamp(28px, 4vw, 50px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: clamp(26px, 3.6vw, 40px);
  box-shadow: var(--sh-2); position: relative; overflow: hidden;
}
.contact-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--card-top-light); }
.contact-text h3 { font-family: var(--serif); font-size: var(--t-xl); font-weight: 500; letter-spacing: -.03em; margin-bottom: 10px; }
.contact-text p { color: var(--muted); font-size: var(--t-sm); line-height: 1.68; margin-bottom: 22px; }

.contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(212px, 100%), 1fr)); gap: 10px; align-content: start; }
.contact-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  transition: border-color .2s var(--ease), transform .2s var(--ease-out), box-shadow .2s var(--ease);
}
.contact-item:hover { color: var(--ink); border-color: var(--accent-edge); transform: translateY(-2px); box-shadow: var(--sh-1); }
.contact-item svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-item span { display: flex; flex-direction: column; font-size: var(--t-xs); font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.contact-item small { font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; }

.postal { margin-top: 28px; font-style: normal; font-size: var(--t-xs); color: var(--faint); line-height: 1.75; text-align: center; }

/* ───────────────────────── 17. FOOTER + TOAST ───────────────────────── */
.footer {
  position: relative; z-index: 2; border-top: 1px solid var(--line); background: var(--bg);
  padding-top: 26px;
  padding-bottom: calc(26px + env(safe-area-inset-bottom));
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; }
.footer-name { font-family: var(--serif); font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.footer-note { font-size: var(--t-xs); color: var(--faint); }
.to-top { margin-left: auto; font-size: var(--t-xs); font-weight: 500; color: var(--muted); }
.to-top:hover { color: var(--accent); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200;
  transform: translate(-50%, 16px);
  padding: 11px 20px; border-radius: 100px;
  background: var(--ink); color: var(--bg);
  font-size: var(--t-xs); font-weight: 600;
  box-shadow: var(--sh-3);
  opacity: 0; pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ───────────────────────── 18. REVEAL ───────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}

/* ───────────────────────── 19. RESPONSIVE ───────────────────────── */
/* between the full bar and the hamburger, trade the strapline and some
   nav padding for space so the full name never has to be truncated */
@media (max-width: 1120px) {
  .nav a { padding: 8px 5px; font-size: .755rem; }
  .brand-role { display: none; }
}

@media (max-width: 1060px) {
  .brand-name { max-width: none; }
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--bar-h) 0 auto 0;
    flex-direction: column; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 14px 22px 22px; margin: 0;
    box-shadow: var(--sh-3);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease-out);
    max-height: calc(100dvh - var(--bar-h)); overflow-y: auto;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 14px; font-size: .95rem; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 380px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-side { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
  .contact-panel { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .wrap, .topbar-inner {
    padding-left:  max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
  .brand-role { display: none; }
  .hero-name { letter-spacing: -.03em; }
  .section-head { flex-wrap: wrap; gap: 6px 14px; }
  .head-link { margin-left: 0; width: 100%; }
  .tl-date { margin-left: 0; }
  .news li, .honors li { grid-template-columns: 1fr; gap: 5px; }
  .teach-row { grid-template-columns: 1fr; gap: 6px; padding: 15px 16px; }
  .teach-year { text-align: left; }
  .pub { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .edu-card { padding: 22px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .to-top { margin-left: 0; }
  .pull-quote { padding-left: 16px; }
  .hero-card { max-width: none; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ── very small phones (iPhone SE and narrower) ── */
@media (max-width: 430px) {
  .brand-name { display: none; }
  .brand-short { display: block; }
  .timeline { padding-left: 22px; }
  .tl-marker { left: -22px; }
  .panel, .skill-card, .cert-card, .proj-card, .ref-card { padding: 17px 16px; }
  .contact-panel { padding: 22px 18px; }
  .facts > div { padding: 11px 12px; }
  .facts dd { font-size: 1.34rem; }
  .social a { font-size: .72rem; }
}

@media (max-width: 360px) {
  .wrap, .topbar-inner {
    padding-left:  max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  .brand-short { font-size: .88rem; }
  .facts { grid-template-columns: 1fr; }
}

/* ── touch devices: comfortable tap targets (≥44px) without
      bloating the pointer-precise desktop layout ── */
@media (pointer: coarse) {
  .icon-btn { width: 44px; height: 44px; }
  .brand { padding-block: 5px; }
  .nav a { padding: 14px 14px; }
  .chip { padding: 12px 13px; }
  .cert-link { padding: 13px 15px; }
  .social a { padding: 12px 16px 12px 14px; }
  .ref-links a { padding: 12px 14px; }
  .head-link { padding-block: 12px; }
  .to-top { padding-block: 14px; }
  .contact-item { padding: 14px; }
  .btn { padding: 14px 22px; }
  .teach-row, .news li, .honors li { padding-block: 16px; }
}

/* removes the grey flash Android/iOS paint over tapped links */
a, button { -webkit-tap-highlight-color: transparent; }

/* ───────────────────────── 20. MOTION + PRINT ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .hero-actions, .social, .to-top, .hero-backdrop, .grain,
  .nav-toggle, .icon-btn, .toast, .status, .chip-btn { display: none !important; }
  html[data-theme] { --bg: #fff; --bg-alt: #fff; --surface: #fff; --surface-2: #fff;
                     --ink: #000; --ink-2: #1a1a1a; --muted: #444; --faint: #666;
                     --line: #ccc; --line-2: #e5e5e5; --accent: #000; --accent-str: #000;
                     --accent-wash: #fff; --accent-edge: #bbb; }
  body { background: #fff; font-size: 10.5pt; }
  .section { padding: 16px 0; break-inside: avoid; }
  a { text-decoration: underline; }
  .pub, .cert-card, .edu-card, .proj-card, .ref-card, .skill-card,
  .contact-panel, .hero-card, .panel, .teach-table { box-shadow: none; break-inside: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero { padding: 12px 0; }
}
