/* ============================================================
   Bowen Wang — Academic Portfolio
   Design system: "High-end editorial research journal"
   Fonts: Fraunces (display serif) + Manrope (UI/body)
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Color */
  --paper: #f4f1e9;
  --paper-deep: #eae6db;
  --forest: #173d35;
  --forest-deep: #102c27;
  --moss: #668276;
  --moss-strong: #4f6a5e;
  --mist: #dce7e1;
  --coral: #c86b5b;
  --coral-soft: #e8b3a8;
  --ink: #15211d;
  --ink-soft: #34443e;
  --muted: #5d6b65;
  --white: #fffdf7;

  /* Semantic */
  --bg-page: var(--paper);
  --bg-raised: rgba(255, 253, 247, 0.45);
  --text-body: var(--ink-soft);
  --text-quiet: var(--muted);
  --line: rgba(21, 33, 29, 0.16);
  --line-strong: rgba(23, 61, 53, 0.28);
  --shadow-soft: 0 14px 44px rgba(23, 61, 53, 0.08);
  --shadow-lift: 0 28px 80px rgba(23, 61, 53, 0.16);

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Avenir Next", Arial, sans-serif;
  --track-display: -0.035em;

  /* Spacing scale (4/8 rhythm) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  /* Shape & layout */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shell: min(1180px, calc(100vw - 64px));

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-med: 260ms;
  --dur-reveal: 650ms;

  /* Breakpoint reference (documentation only) */
  /* --bp-tablet: 1024px; --bp-small-tablet: 760px; --bp-mobile: 560px; */
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg-page);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { color: inherit; font: inherit; }
::selection { background: rgba(200, 107, 91, 0.28); }

.page-shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; border-radius: 4px; }

/* ---------- 3. Header / navigation ---------- */
.site-header {
  position: fixed;
  inset: 18px 32px auto;
  z-index: 100;
  min-height: 62px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  background: rgba(244, 241, 233, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow var(--dur-med) var(--ease-out), background var(--dur-med) var(--ease-out);
}
.site-header.is-scrolled { background: rgba(244, 241, 233, 0.95); box-shadow: 0 18px 52px rgba(23, 61, 53, 0.16); }

.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; letter-spacing: -0.01em; }
.wordmark span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--paper);
  background: var(--forest);
  border-radius: 50%;
  font-family: var(--font-display);
}

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative;
  padding: 10px 13px;
  color: #3f514a;
  font-size: 14px;
  font-weight: 600;
  border-radius: 11px;
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.site-nav a:hover { color: var(--forest); background: rgba(102, 130, 118, 0.12); }
.site-nav a.is-active { color: var(--forest); }
.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
}
.site-nav .nav-cv { color: var(--forest); border: 1px solid var(--line-strong); margin-left: 6px; }
.site-nav .nav-cv:hover { color: var(--white); background: var(--forest); border-color: var(--forest); }

.menu-button { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; }
.menu-button span { display: block; width: 22px; height: 2px; margin: 6px auto; background: var(--ink); transition: transform var(--dur-fast) ease; }

/* ---------- 4. Hero ---------- */
.hero { position: relative; min-height: 100vh; padding: 150px 0 72px; overflow: hidden; }
.hero-atmosphere {
  content: "";
  position: absolute;
  inset: 0 52% 0 0;
  background:
    linear-gradient(110deg, rgba(244, 241, 233, 0.2), rgba(244, 241, 233, 0.95)),
    url("profile.jpg") center 24% / cover;
  filter: blur(18px) saturate(0.65);
  opacity: 0.16;
  transform: scale(1.08);
}
.hero-atmosphere::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -180px;
  top: -170px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 40%, rgba(200, 107, 91, 0.22), rgba(102, 130, 118, 0.08) 50%, transparent 72%);
}

.hero-inner { position: relative; }
.hero-rail {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  margin-bottom: clamp(48px, 7vh, 88px);
  border-bottom: 1px solid var(--line);
  color: var(--text-quiet);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.74fr);
  gap: clamp(48px, 6vw, 92px);
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 20px;
  color: var(--moss-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.eyebrow span { width: 28px; height: 1px; background: currentColor; }

h1, h2, h3 { margin-top: 0; line-height: 1.12; }
h1, h2 { font-family: var(--font-display); letter-spacing: var(--track-display); }
h1 { max-width: 780px; margin-bottom: 28px; font-size: clamp(46px, 5.6vw, 80px); font-weight: 500; }
h1 em { color: var(--coral); font-style: italic; font-weight: 500; }

.hero-lead { max-width: 660px; margin: 0 0 24px; color: var(--text-body); font-size: clamp(17px, 1.8vw, 20px); }
.hero-meta { margin: 0 0 34px; color: var(--text-quiet); font-size: 14px; line-height: 1.8; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--forest);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) ease, background var(--dur-fast) ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--forest); box-shadow: 0 16px 30px rgba(23, 61, 53, 0.18); }
.button-primary:hover { background: var(--forest-deep); }
.button-secondary { color: var(--forest); background: rgba(255, 253, 247, 0.55); }
.button-secondary:hover { background: var(--white); }

.profile-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; color: var(--text-quiet); font-size: 13px; font-weight: 600; }
.profile-links a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  padding-bottom: 3px;
  transition: background-size var(--dur-med) var(--ease-out), color var(--dur-fast) ease;
}
.profile-links a:hover { color: var(--forest); background-size: 100% 1px; }

.portrait-card {
  position: relative;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 38px;
  background: rgba(255, 253, 247, 0.42);
  box-shadow: var(--shadow-lift);
  transform: rotate(1.2deg);
}
.portrait-card::before {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  left: -34px;
  bottom: 68px;
  border-radius: 50%;
  background: var(--mist);
  z-index: -1;
}
.portrait-frame { aspect-ratio: 4 / 5.25; overflow: hidden; border-radius: 27px; background: var(--moss); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; }
.portrait-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 8px 3px;
  color: var(--text-quiet);
  font-size: 11px;
  line-height: 1.45;
}
.portrait-card figcaption span:last-child { text-align: right; }

/* ---------- 5. Evidence strip ---------- */
.evidence { background: var(--forest-deep); color: var(--white); }
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.evidence-item { padding: clamp(48px, 6vw, 72px) clamp(20px, 3vw, 44px); }
.evidence-item + .evidence-item { border-left: 1px solid rgba(255, 255, 255, 0.14); }
.evidence-number {
  display: block;
  color: var(--coral-soft);
  font-family: var(--font-display);
  font-size: clamp(52px, 5vw, 76px);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.evidence-item h2 {
  margin: 18px 0 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}
.evidence-item p { margin: 0; color: rgba(255, 255, 255, 0.6); font-size: 14px; line-height: 1.65; }

/* ---------- 6. Sections (shared editorial rhythm) ---------- */
.section { padding: clamp(84px, 10vw, 132px) 0; }
.section-heading { max-width: 780px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-heading h2 { margin-bottom: 24px; font-size: clamp(36px, 4.4vw, 60px); font-weight: 500; }
.section-heading > p:last-child { max-width: 650px; color: var(--text-quiet); font-size: 18px; }

/* Research direction */
.interest-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; }
.interest-row span,
.card-tags span {
  padding: 8px 13px;
  border: 1px solid rgba(23, 61, 53, 0.2);
  border-radius: 999px;
  color: var(--forest);
  background: rgba(255, 253, 247, 0.42);
  font-size: 12px;
  font-weight: 700;
}

.question-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.question-card {
  position: relative;
  min-height: 365px;
  padding: 34px;
  padding-bottom: 112px; /* reserve the absolute-positioned tag row */
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out), background var(--dur-med) ease, box-shadow var(--dur-med) ease;
}
.question-card:hover { transform: translateY(-5px); background: rgba(255, 253, 247, 0.88); box-shadow: var(--shadow-soft); }
.question-card-wide { grid-column: 1 / -1; min-height: 300px; padding-right: 32%; padding-bottom: 112px; background: var(--forest); color: var(--white); }
.question-card-wide:hover { background: var(--forest-deep); }
.card-number { color: var(--coral); font-family: var(--font-display); font-size: 22px; font-variant-numeric: tabular-nums; }
.question-card h3 { margin: 68px 0 20px; max-width: 550px; font-family: var(--font-display); font-size: 29px; font-weight: 500; letter-spacing: var(--track-display); }
.question-card p { max-width: 580px; color: var(--text-quiet); font-size: 15px; }
.question-card-wide p { color: rgba(255, 255, 255, 0.68); }
.card-tags { position: absolute; left: 34px; right: 34px; bottom: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.question-card-wide .card-tags span { color: var(--mist); border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); }

/* Manifesto pull-quote */
.manifesto {
  margin: clamp(56px, 8vw, 96px) 0 0;
  padding: clamp(28px, 4vw, 48px) 0 0;
  border-top: 1px solid var(--line);
}
.manifesto blockquote {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 44px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: var(--track-display);
  color: var(--ink);
  text-indent: -0.42em;
}
.manifesto blockquote::first-letter { color: var(--coral); }
.manifesto figcaption { margin-top: 22px; color: var(--text-quiet); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* Publications (dark journal list) */
.section-dark { color: var(--white); background: var(--forest-deep); }
.section-heading-light .eyebrow { color: #a7c0b5; }
.publication-list { margin: 0; padding: 0; list-style: none; counter-reset: pub; }
.publication-list > li { counter-increment: pub; }
.publication {
  display: grid;
  grid-template-columns: 64px 180px 1fr;
  gap: clamp(20px, 3vw, 42px);
  padding: clamp(30px, 4vw, 44px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.publication-list > li:last-child .publication { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.publication-ordinal {
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--font-display);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.publication-status { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.status-pill {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-published { color: #a9d8c3; border: 1px solid rgba(169, 216, 195, 0.4); }
.status-accepted { color: #f3e3b8; border: 1px solid rgba(243, 227, 184, 0.36); }
.status-submitted { color: var(--coral-soft); border: 1px solid rgba(232, 179, 168, 0.36); }
.publication-status small { color: rgba(255, 255, 255, 0.52); font-size: 12px; }
.publication h3 { max-width: 850px; margin-bottom: 15px; font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; letter-spacing: var(--track-display); }
.publication h3 a { transition: color var(--dur-fast) ease; }
.publication h3 a:hover { color: var(--coral-soft); }
.publication-authors { margin: 0 0 12px; max-width: 820px; color: rgba(255, 255, 255, 0.75); font-size: 14px; }
.role-note { color: rgba(255, 255, 255, 0.5); }
.publication-note { max-width: 820px; margin: 0 0 18px; color: rgba(255, 255, 255, 0.61); font-size: 14px; }
.publication-link,
.quiet-link,
.project-link { color: #b7d2c6; font-size: 13px; font-weight: 700; }
.publication-link,
.project-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  padding-bottom: 3px;
  transition: background-size var(--dur-med) var(--ease-out), color var(--dur-fast) ease;
}
.publication-link:hover,
.project-link:hover { color: var(--white); background-size: 100% 1px; }

/* Experience */
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 250px 1fr; gap: clamp(24px, 4vw, 48px); padding: clamp(30px, 4vw, 46px) 0; border-bottom: 1px solid var(--line); }
.timeline-date { margin: 0 0 10px; color: var(--moss-strong); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.timeline-supervisor { margin: 0; color: var(--text-quiet); font-size: 13px; }
.timeline-place { margin: 0 0 12px; color: var(--coral); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.timeline-content h3 { max-width: 780px; margin-bottom: 16px; font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; letter-spacing: var(--track-display); }
.timeline-content ul { max-width: 820px; margin: 0; padding: 0; list-style: none; }
.timeline-content li { position: relative; padding: 8px 0 8px 24px; color: #3e4c47; font-size: 15px; }
.timeline-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moss);
}

/* Projects */
.section-mist { background: var(--mist); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project-card {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 28px;
  border: 1px solid rgba(23, 61, 53, 0.14);
  border-radius: 24px;
  background: rgba(255, 253, 247, 0.7);
  box-shadow: 0 18px 60px rgba(23, 61, 53, 0.06);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 26px 70px rgba(23, 61, 53, 0.12); }
.project-card-accent { color: var(--white); background: var(--forest); transform: translateY(-18px); }
.project-card-accent:hover { transform: translateY(-24px); }
.project-card-outline { background: transparent; border: 1px solid rgba(23, 61, 53, 0.32); box-shadow: none; }
.project-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-display);
}
.project-status {
  color: var(--moss-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.project-card-accent .project-status { color: rgba(255, 255, 255, 0.55); }
.project-kicker { margin: 56px 0 12px; color: var(--coral); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.project-card h3 { margin-bottom: 14px; font-family: var(--font-display); font-size: 38px; font-weight: 500; letter-spacing: var(--track-display); }
.project-meaning { margin: 0; color: var(--text-quiet); font-size: 14px; }
.project-card-accent .project-meaning { color: rgba(255, 255, 255, 0.68); }
.project-proof {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 28px 0;
  padding-top: 20px;
  border-top: 1px solid rgba(23, 61, 53, 0.14);
}
.project-card-accent .project-proof { border-color: rgba(255, 255, 255, 0.17); }
.project-proof strong { color: var(--coral); font-family: var(--font-display); font-size: 38px; font-weight: 500; font-variant-numeric: tabular-nums; }
.project-proof span { color: var(--text-quiet); font-size: 11px; line-height: 1.55; }
.project-card-accent .project-proof span { color: rgba(255, 255, 255, 0.58); }
.project-card > .project-link,
.project-card > .quiet-link { margin-top: auto; font-size: 12px; }
.project-card > .project-link { color: var(--forest); }
.project-card-accent > .quiet-link { color: #b7d2c6; }

/* Education */
.education-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.education-card { min-height: 240px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg-raised); transition: transform var(--dur-med) var(--ease-out), background var(--dur-med) ease; }
.education-card:hover { transform: translateY(-4px); background: rgba(255, 253, 247, 0.85); }
.education-years { color: var(--moss-strong); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.education-card h3 { margin: 66px 0 14px; font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 32px); font-weight: 500; letter-spacing: var(--track-display); }
.education-card p { color: var(--text-quiet); font-size: 13px; }

/* Contact */
.contact { padding: 24px 0 120px; }
.contact-card {
  position: relative;
  padding: clamp(40px, 6vw, 78px);
  color: var(--white);
  background: var(--forest);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.contact-card::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -90px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 107, 91, 0.4), transparent 68%);
  pointer-events: none;
}
.contact-card .eyebrow { color: #b7d2c6; }
.contact-card h2 { max-width: 850px; margin-bottom: 20px; font-size: clamp(34px, 4.4vw, 60px); font-weight: 500; }
.contact-card > p:not(.eyebrow) { max-width: 750px; color: rgba(255, 255, 255, 0.68); }
.contact-email {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 34px);
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.contact-email:hover { color: var(--coral-soft); border-color: var(--coral-soft); }
.contact-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 42px; color: rgba(255, 255, 255, 0.58); font-size: 12px; font-weight: 700; }
.contact-links a { transition: color var(--dur-fast) ease; }
.contact-links a:hover { color: var(--white); }

/* Footer */
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 0 0 30px; color: var(--text-quiet); font-size: 11px; }
.site-footer a { transition: color var(--dur-fast) ease; }
.site-footer a:hover { color: var(--forest); }

/* ---------- 7. Motion: scroll reveal ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-reveal) ease, transform var(--dur-reveal) var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 8. Tablet: ≤1180px ---------- */
@media (max-width: 1180px) {
  :root { --shell: calc(100vw - 56px); }
  .site-nav a { padding: 10px 9px; font-size: 12px; }
}

/* ---------- 9. Tablet: ≤1024px ---------- */
@media (max-width: 1024px) {
  :root { --shell: calc(100vw - 44px); }
  .hero { min-height: auto; padding-top: 130px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.8fr); gap: 44px; }
  h1 { font-size: clamp(42px, 5.4vw, 62px); }
  .question-card { min-height: 330px; padding: 28px; }
  .question-card h3 { font-size: 25px; }
  .project-card { min-height: 480px; padding: 24px; }
  .project-card h3 { font-size: 32px; }
  .publication { grid-template-columns: 44px 160px 1fr; }
  .education-card h3 { margin-top: 48px; }
}

/* ---------- 10. Small tablet / large phone: ≤760px ---------- */
@media (max-width: 760px) {
  :root { --shell: calc(100vw - 32px); }

  .site-header { inset: 10px 10px auto; min-height: 58px; }
  .wordmark strong { display: none; }
  .menu-button { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: rgba(244, 241, 233, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(23, 61, 53, 0.14);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 14px; font-size: 14px; }
  .site-nav a.is-active::after { display: none; }
  .site-nav .nav-cv { margin: 4px 0 0; text-align: center; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .hero { padding: 126px 0 76px; }
  .hero-atmosphere { inset: 0; opacity: 0.1; }
  .hero-rail { font-size: 11px; gap: var(--space-1); }
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-copy { max-width: 640px; }
  h1 { font-size: clamp(42px, 12vw, 58px); }
  .hero-lead { font-size: 17px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .profile-links { gap: 15px; }
  .portrait-card { width: 100%; max-width: 480px; transform: none; border-radius: 28px; margin-inline: 0; }
  .portrait-frame { border-radius: 20px; }
  .portrait-card figcaption { flex-direction: column; gap: 6px; }
  .portrait-card figcaption span:last-child { text-align: left; }

  .evidence-grid { grid-template-columns: 1fr; }
  .evidence-item + .evidence-item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }

  .question-grid { grid-template-columns: 1fr; }
  .question-card { min-height: 0; padding: 26px; padding-bottom: 112px; }
  .question-card h3 { margin-top: 52px; font-size: 24px; }
  .card-tags { left: 26px; right: 26px; bottom: 24px; }

  .publication { grid-template-columns: 1fr; gap: 18px; }
  .publication-ordinal { display: none; }
  .publication-status { flex-direction: row; align-items: center; }
  .timeline-item { grid-template-columns: 1fr; gap: 18px; }

  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 0; }
  .project-card-accent { transform: none; }
  .project-card-accent:hover { transform: translateY(-6px); }
  .project-kicker { margin-top: 40px; }

  .education-grid { grid-template-columns: 1fr; }
  .education-card { min-height: 0; }
  .education-card h3 { margin-top: 40px; }

  .contact { padding-bottom: 84px; }
  .site-footer { flex-direction: column; gap: 4px; }
}

/* ---------- 11. Mobile: ≤560px ---------- */
@media (max-width: 560px) {
  :root { --shell: calc(100vw - 24px); }
  .site-header { inset: 8px 8px auto; }
  .hero-rail { flex-direction: column; gap: 4px; }
  .hero-rail span:nth-child(2) { display: none; }
  .manifesto blockquote { text-indent: 0; }
  .contact-email { font-size: 18px; overflow-wrap: anywhere; }
}

/* ---------- 12. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .button:hover, .question-card:hover, .project-card:hover, .project-card-accent:hover,
  .education-card:hover, .project-card-accent { transform: none; }
}
