/* v2.css: standalone styles for the v2 layout (_layouts/v2.html).
   Plain CSS with no front matter, so Jekyll copies it as is (no Sass). */

/* ---------- fonts (self-hosted latin subsets, SIL OFL; no third-party request) ---------- */
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens ---------- */
:root {
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --surface-2: #EFEEE8;
  --text: #121316;
  --muted: #5D6069;
  --line: #E2E0D8;
  --line-strong: #CFCCC2;
  --accent: #C2410C;
  --accent-ink: #FFFFFF;
  --signal: #FFD23F;
  --signal-ink: #17140A;
  --dot: rgba(18, 19, 22, .10);
  --shadow: 0 1px 2px rgba(16, 17, 20, .04), 0 10px 28px -16px rgba(16, 17, 20, .16);
  --header-bg: rgba(247, 246, 242, .94);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1120px;
  --gutter: 24px;
  --section: 112px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0B0D; --surface: #121418; --surface-2: #17191E; --text: #ECEDEF; --muted: #9BA0A9;
    --line: #24272D; --line-strong: #353940; --accent: #FF8A4C; --accent-ink: #0A0B0D;
    --dot: rgba(236, 237, 239, .07);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -18px rgba(0, 0, 0, .7);
    --header-bg: rgba(10, 11, 13, .78);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0B0D; --surface: #121418; --surface-2: #17191E; --text: #ECEDEF; --muted: #9BA0A9;
  --line: #24272D; --line-strong: #353940; --accent: #FF8A4C; --accent-ink: #0A0B0D;
  --dot: rgba(236, 237, 239, .07);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -18px rgba(0, 0, 0, .7);
  --header-bg: rgba(10, 11, 13, .78);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--sans);
  font-feature-settings: "ss01" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg, canvas { max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
em { font-style: italic; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--text); color: var(--bg); text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden, .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.nobr { white-space: nowrap; }
.i { width: 16px; height: 16px; flex: none; }
.i--ext { width: 14px; height: 14px; margin-left: 2px; opacity: .7; }
.i--arrow, .i--back { transition: transform .2s ease; }

/* ---------- shared type ---------- */
.sec-head { margin-bottom: 36px; }
.sec-head--split { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.sec-title { font: 600 clamp(28px, 3vw, 36px)/1.1 var(--sans); letter-spacing: -.03em; }
.hero__title em { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.more {
  display: inline-flex; align-items: center; gap: 8px; padding-bottom: 4px;
  font: 500 15px/1 var(--sans); text-decoration: none; border-bottom: 1px solid var(--line-strong);
}
.more:hover { border-color: var(--accent); }
.more:hover .i--arrow { transform: translateX(3px); }
.more:hover .i--back { transform: translateX(-3px); }
.fineprint { margin-top: 16px; font: 400 13px/1.4 var(--sans); color: var(--muted); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand:hover { color: inherit; }
.brand__mark {
  display: block; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 30%;
  background: var(--surface-2); box-shadow: 0 0 0 1px var(--line);
}
.brand__name { font: 600 16px/1 var(--sans); letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 8px 12px; border-radius: 999px; text-decoration: none;
  font: 500 14.5px/1 var(--sans); color: var(--muted);
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-header__tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font: 500 15px/1 var(--sans); text-decoration: none; color: var(--text);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { border-color: var(--text); color: var(--text); }
.btn--primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--icon-sm .btn__label { display: inline; }

/* ---------- hero: the person ----------
   Kept short enough that on a laptop screen the first row of Work clips (no visible heading)
   starts playing in the first viewport, right under the Open-to line and the buttons. */
.hero { padding: clamp(48px, 8vh, 104px) 0 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 88px; align-items: center; }
.hero__portrait { order: 2; }
.hero__portrait img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg); background: var(--surface-2);
}
.hero__title {
  margin: 0 0 30px;
  font: 600 clamp(44px, 5vw, 64px)/1 var(--sans); letter-spacing: -.045em;
}
.hero__title em { color: var(--muted); }
.hero__about { max-width: 33em; }
.hero__about p { font: 400 19px/1.6 var(--sans); letter-spacing: -.008em; text-wrap: pretty; }
.hero__about p + p { margin-top: 12px; }
.hero__about a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .22em; }
.hero__about a:hover { text-decoration-color: var(--accent); }
.hero__open { margin-top: 22px; font: 500 15.5px/1.5 var(--sans); color: var(--muted); text-wrap: pretty; }
.hero__dot { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: #2F9E5A; vertical-align: .08em; }
.hero__cta { margin-top: 36px; }

/* ---------- media (lazy loop) ---------- */
.media { position: relative; }
.media__frame {
  position: relative; overflow: hidden; background: #000;
  aspect-ratio: var(--frame-ar, var(--ar, 16 / 9));
  border-radius: var(--radius);
}
.media__video { display: block; width: 100%; height: 100%; object-fit: var(--fit, cover); background: #000; }
.media__toggle {
  position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center;
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; opacity: .72;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .2s ease, transform .2s ease;
}
.media__toggle:hover, .media__toggle:focus-visible { opacity: 1; transform: scale(1.06); }
.media__toggle svg { width: 13px; height: 13px; fill: currentColor; }
.media__toggle .i-pause { display: none; }
.media__toggle[data-state="playing"] .i-play { display: none; }
.media__toggle[data-state="playing"] .i-pause { display: block; }
.media__cap { margin-top: 10px; }
.media__meta { display: flex; align-items: center; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; min-height: 22px; }
.media__title { font: 600 20px/1.25 var(--sans); letter-spacing: -.02em; }
.media__note { margin-top: 6px; font: 400 15.5px/1.5 var(--sans); color: var(--muted); max-width: 46em; }
.media__text + .media__meta { margin-top: 12px; }

.badges { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px;
  font: 500 12.5px/1 var(--sans); letter-spacing: 0; text-transform: none; white-space: nowrap;
  color: var(--muted); border: 1px solid var(--line-strong); background: transparent;
}
.badge--speed { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); font-weight: 600; letter-spacing: .02em; }
.badge--venue { color: var(--text); }
.badge--award { background: transparent; border-color: var(--accent); color: var(--accent); }
.credit { margin-left: auto; font: 400 12.5px/1.3 var(--sans); color: var(--muted); text-decoration: none; white-space: nowrap; }
a.credit:hover { color: var(--accent); text-decoration: underline; }

.media--wide .media__frame { border-radius: var(--radius-lg); }
.media--wide .media__cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 32px; align-items: start; margin-top: 18px; }
.media--wide .media__meta { justify-content: flex-end; margin-top: 2px; }
.media--wide .media__text + .media__meta { margin-top: 2px; }

/* ---------- sections ---------- */
.section { padding-top: var(--section); }
.section--work { padding-top: clamp(48px, 7vh, 72px); }

/* ---------- work: one even grid of cards ---------- */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 40px; }
.work__item { display: flex; flex-direction: column; min-width: 0; }
.media--card .media__frame { --frame-ar: 16 / 9; }
/* a card with no footage shows its paper's main figure on a white plate (white in dark mode too,
   slightly dimmed) or a 16:9 photo; the plate links to the full-size image */
.media--fig .media__frame { display: block; background: #fff; }
.media--fig .media__frame::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(18, 19, 22, .08);
}
.media--fig img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.media--fig .media__frame:hover img { transform: scale(1.015); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .media--fig img { filter: brightness(.9); }
}
:root[data-theme="dark"] .media--fig img { filter: brightness(.9); }
.fig__label { font: 400 12.5px/1.3 var(--sans); color: var(--muted); }
.work__title { margin-top: 20px; font: 600 22px/1.25 var(--sans); letter-spacing: -.02em; }
.work__meta { margin-top: 6px; font: 400 14.5px/1.45 var(--sans); color: var(--muted); }
.work__meta span { white-space: nowrap; }
.work__meta span:not(:last-child)::after { content: "\00a0·"; }
.work__line { margin-top: 12px; font: 400 16.5px/1.55 var(--sans); max-width: 36em; text-wrap: pretty; }
.work__foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: auto; padding-top: 16px; }
.work__venue { font: 500 14.5px/1.3 var(--sans); color: var(--muted); }
.work__link, .pub__links a {
  display: inline-flex; align-items: center; gap: 2px; font: 500 15px/1.3 var(--sans);
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .25em;
}
.work__link:hover, .pub__links a:hover { text-decoration-color: var(--accent); }
.work__link--in { gap: 6px; }
.work__link--in .i--arrow { width: 14px; height: 14px; }
.work__link--in:hover .i--arrow { transform: translateX(3px); }

/* ---------- papers: one compact list ---------- */
.pubs { border-top: 1px solid var(--line); }
.pub {
  display: grid; grid-template-columns: 172px minmax(0, 1fr) auto; gap: 6px 24px; align-items: start;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.pub__venue { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 1px; }
.pub__title { font: 500 16.5px/1.45 var(--sans); letter-spacing: -.008em; text-wrap: pretty; }
.pub__authors { margin-top: 3px; font: 400 14.5px/1.45 var(--sans); color: var(--muted); }
.pub__authors b { font-weight: 600; color: var(--text); }
.pub__links { display: flex; gap: 6px 16px; white-space: nowrap; padding-top: 1px; }

/* ---------- education ---------- */
.edu { border-top: 1px solid var(--line); }
.edu__row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 140px; gap: 4px 28px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.edu__school { font: 600 16.5px/1.4 var(--sans); letter-spacing: -.01em; }
.edu__degree { font: 400 16px/1.45 var(--sans); color: var(--muted); }
.edu__when { font: 400 14px/1.4 var(--sans); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- /play/wheelchair/ ---------- */
.play { padding-top: 36px; }
.play__back a {
  display: inline-flex; align-items: center; gap: 6px; font: 500 14.5px/1 var(--sans); color: var(--muted); text-decoration: none;
}
.play__back a:hover { color: var(--text); }
.play__back a:hover .i--back { transform: translateX(-3px); }
.play__head { margin: 40px 0 32px; }
.play__title { font: 600 clamp(34px, 4.4vw, 52px)/1.04 var(--sans); letter-spacing: -.04em; }
.play__lede { margin-top: 14px; max-width: 40em; font: 400 18px/1.55 var(--sans); color: var(--muted); }
.play__clip { margin-top: 72px; }
.play__more { margin-top: 56px; }

/* ---------- footer ---------- */
.site-footer { margin-top: var(--section); padding: 72px 0 40px; border-top: 1px solid var(--line); background: var(--surface); }
.footer__mail { margin: 22px 0 26px; }
.footer__mail a {
  font: 500 clamp(18px, 2.2vw, 24px)/1.2 var(--mono); letter-spacing: -.02em; text-decoration: none;
  border-bottom: 2px solid var(--accent); padding-bottom: 4px; overflow-wrap: anywhere;
}
.footer__visitors { margin-top: 56px; max-width: 420px; display: grid; gap: 10px; }
.footer__visitors-title { font: 600 15px/1.3 var(--sans); }
.footer__visitors-map { border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); min-height: 120px; }
.footer__visitors-map img, .footer__visitors-map canvas, .footer__visitors-map iframe { max-width: 100%; display: block; }
/* v2.js adds .is-ready once the widget has inserted itself; until then the block takes no space
   (it keeps its width, which the widget measures for w=a) */
.footer__visitors:not(.is-ready) { height: 0; margin-top: 0; overflow: hidden; visibility: hidden; }
/* the widget is a fixed light palette and links to a public per-visit feed: not clickable (the box
   is also inert, for keyboards), and inverted in dark mode. A plain invert lands within a few RGB
   units of the dark tokens (efeee8 -> #101117 vs --surface-2, cfccc2 -> #30333D vs --line-strong);
   the SVG dots also get hue-rotate(180deg), so the accent stays orange instead of turning blue */
.footer__visitors-map a { pointer-events: none; }
/* the +/- zoom buttons are drawn into the widget's background image (bottom left, over ocean):
   cover them with the ocean colour (co=efeee8), which the dark-mode filter inverts with the map */
.footer__visitors-map .mapmyvisitors-map-container::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 42px; background: #efeee8; pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .footer__visitors-map > * { filter: invert(1); }
  :root:not([data-theme="light"]) .footer__visitors-map svg { filter: hue-rotate(180deg); }
}
:root[data-theme="dark"] .footer__visitors-map > * { filter: invert(1); }
:root[data-theme="dark"] .footer__visitors-map svg { filter: hue-rotate(180deg); }
.footer__visitors-note { margin: 0; font-size: 13px; color: var(--muted); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer__credits { max-width: 62ch; font: 400 12.5px/1.55 var(--sans); color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 400 12.5px/1.55 var(--sans); color: var(--muted); }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }

/* ---------- text pages: About, CV, Publications, Teaching (_layouts/v2-page, archive, single) ---------- */
.prose { max-width: 860px; padding-top: 64px; padding-bottom: 8px; }
.prose > * + * { margin-top: 18px; }
.prose .page-title { font: 600 clamp(38px, 5.2vw, 60px)/1.02 var(--sans); letter-spacing: -.04em; margin-bottom: 36px; text-wrap: balance; }
.prose__head { margin-bottom: 32px; }
.prose__head .page-title { margin-bottom: 14px; font-size: clamp(30px, 4vw, 44px); }
.prose__meta { font: 400 16px/1.5 var(--sans); color: var(--muted); }
.prose__cite { padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 15.5px; }
.prose__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.prose p, .prose li { font: 400 17px/1.65 var(--sans); }
.prose h1:not(.page-title), .prose h2 {
  margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line);
  font: 600 28px/1.15 var(--sans); letter-spacing: -.025em;
}
.prose h3 { margin-top: 40px; font: 600 20px/1.3 var(--sans); letter-spacing: -.015em; }
.prose h3 + p, .prose h3 + p + ul { margin-top: 8px; }
.prose ul { padding-left: 1.3em; list-style: disc; }
.prose ul ul { margin-top: 6px; list-style: circle; }
.prose ol { padding-left: 1.4em; list-style: decimal; }
.prose li + li { margin-top: 8px; }
.prose ul ul li { font-size: 16px; line-height: 1.6; }
.prose ul ul li + li { margin-top: 4px; }
.prose li::marker { color: var(--muted); }
.prose em { color: var(--muted); }
.prose strong em, .prose em strong { color: inherit; }
.prose a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .22em; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose hr { margin: 36px 0; border: 0; border-top: 1px solid var(--line); }
.prose img { height: auto; border-radius: var(--radius); }
.prose .align-right { float: right; max-width: 38%; margin: 0 0 1em 1.5em; border-radius: 14px; }
.prose .btn--success {
  display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px;
  background: var(--text); color: var(--bg); font: 500 15px/1 var(--sans); text-decoration: none;
}
.prose .btn--success:hover { background: var(--accent); color: var(--accent-ink); }
.prose .archive__item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.prose .list__item:first-of-type .archive__item { border-top: 1px solid var(--line); }
.prose .archive__item > * + * { margin-top: 8px; }
.prose .archive__item-title { margin: 0; padding: 0; border: 0; font: 600 20px/1.3 var(--sans); letter-spacing: -.015em; }
.prose .archive__item-title a { text-decoration: none; }
.prose .archive__item-title a:hover { color: var(--accent); }
.prose .archive__item p { font-size: 16px; }
.prose .archive__item-excerpt { color: var(--muted); }
.prose .archive__item-excerpt p { font-size: 16px; }
.prose .wordwrap { overflow-wrap: anywhere; }

/* ---------- responsive ---------- */
/* short laptop screens (1366x768, 1080p at 150%): tighten the hero so the first row of clips
   still starts in the first viewport */
@media (min-width: 761px) and (max-height: 760px) {
  .hero { padding-top: 40px; }
  .hero__title { margin-bottom: 22px; }
  .hero__about p { font-size: 18px; line-height: 1.5; }
  .hero__open { margin-top: 16px; }
  .hero__cta { margin-top: 24px; }
  .section--work { padding-top: 40px; }
}
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; }
  .work { gap: 56px 28px; }
  .pub { grid-template-columns: 164px minmax(0, 1fr); }
  .pub__links { grid-column: 2; }
}
/* tablets: LinkedIn and GitHub become icon buttons so the four hero buttons stay on one line */
@media (max-width: 900px) {
  .btn--icon-sm { width: 42px; padding: 0; flex: none; }
  .btn--icon-sm .btn__label {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --section: 80px; }
  body { font-size: 16px; }
  .hero { padding: 32px 0 0; }
  .section--work { padding-top: 40px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero__portrait { order: 0; width: 120px; }
  .hero__portrait img { aspect-ratio: 1; object-position: 50% 28%; border-radius: 50%; }
  .hero__title { margin-bottom: 20px; font-size: clamp(38px, 11vw, 48px); }
  .hero__about p { font-size: 17px; line-height: 1.55; }
  .hero__open { margin-top: 18px; font-size: 15px; }
  .hero__cta { margin-top: 28px; flex-wrap: nowrap; }
  .btn { height: 40px; padding: 0 14px; font-size: 14.5px; }
  .btn--icon-sm { width: 40px; }
  .sec-head { margin-bottom: 24px; }
  .work { grid-template-columns: minmax(0, 1fr); gap: 52px; }
  .work__title { margin-top: 16px; font-size: 20px; }
  .work__line { font-size: 16px; }
  .work__foot { padding-top: 12px; }
  .pub { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px 0; }
  .pub__links { grid-column: auto; }
  .pub__title { font-size: 16px; }
  .edu__row { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 16px 0; }
  .edu__when { text-align: left; }
  .media--wide .media__frame { border-radius: var(--radius); }
  .media--wide .media__cap { grid-template-columns: minmax(0, 1fr); }
  .media--wide .media__meta { justify-content: flex-start; }
  .media--has-narrow .media__frame { --frame-ar: 640 / 720; }
  .play { padding-top: 24px; }
  .play__head { margin: 28px 0 24px; }
  .play__lede { font-size: 16.5px; }
  .play__clip { margin-top: 56px; }
  .footer__cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__cta .btn--primary { grid-column: 1 / -1; }
  .site-footer { padding-top: 56px; }
  .footer__base { margin-top: 56px; }
  .prose { padding-top: 40px; }
  .prose p, .prose li { font-size: 16px; }
  .prose ul ul li { font-size: 15.5px; }
  .prose .align-right { float: none; display: block; max-width: 60%; margin: 0 0 1em; }
  .prose h1:not(.page-title), .prose h2 { margin-top: 48px; font-size: 24px; }
}
@media (max-width: 640px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 60px; display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 16px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .35);
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: 14px 4px; border-radius: 0; font-size: 18px; color: var(--text); border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a:hover { background: transparent; color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
