/* nikooharf.com — stylesheet
   Design system: design-system/nikooharf/MASTER.md
   Editorial engineering layout (ivory paper, midnight ink and navy, one bronze accent),
   self-hosted Newsreader + Roboto. No external requests. */

@font-face { font-family: Newsreader; src: url("fonts/newsreader-var.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: Roboto; src: url("fonts/roboto-var.woff") format("woff"); font-weight: 400 700; font-display: swap; }

:root {
  --navy: #1b2f4b;          /* buttons, links */
  --navy-2: #2c4568;        /* hover */
  --ink: #0f1f33;           /* text */
  --muted: #535c67;         /* secondary text, 6.2:1 on paper */
  --paper: #f7f4ee;         /* ivory */
  --paper-2: #efeae1;       /* stone */
  --paper-3: #e7e0d4;
  --line: #ddd5c8;
  --line-2: #c9bfae;
  --accent: #a47a42;        /* bronze: rules, markers, focus rings; never small text (3.5:1) */
  --accent-ink: #7a5a2d;    /* bronze for small text, 5.7:1 on paper */
  --white: #fff;
  /* dark surfaces: labs and contact */
  --lab-bg: #0f1d2e;
  --lab-line: #43566d;
  --lab-text: #c6cdd5;
  --lab-strong: #f4f0e8;
  --lab-hi: #d2b07a;
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --sans: Roboto, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius: 2px;
  --t: 200ms ease;
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button, summary, a, label[for], input[type="range"], select { cursor: pointer; touch-action: manipulation; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color var(--t), background var(--t), border-color var(--t); }
a:hover { color: var(--navy-2); }
svg, img, canvas { display: block; max-width: 100%; }
img { height: auto; }
svg { flex-shrink: 0; }
a > svg, .cv-link > svg { width: 20px; height: 20px; }
.cv-link { padding: 0; text-align: left; }
p { margin: 0 0 20px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.03em; margin: 0 0 24px; text-wrap: balance; }
h1 { font-size: clamp(56px, 6.3vw, 96px); }
h2 { font-size: clamp(36px, 4vw, 56px); }
h3 { font-size: 30px; }
em { font-weight: 400; }
button { border: 0; background: none; }
[hidden] { display: none !important; }
::selection { background: #e9dfcc; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 4px;
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.section { padding-block: 100px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; line-height: 1.6; margin-bottom: 22px; color: var(--accent-ink); }
.small { font-size: 13px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; text-decoration: none; min-height: 44px; }
.text-link:hover { text-decoration: underline; }
.btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 13px 24px; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-2); color: var(--white); }
.btn--secondary { border: 1px solid var(--navy); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.skip-link { position: fixed; top: -100px; left: 20px; background: var(--navy); color: var(--white); padding: 12px; z-index: 100; }
.skip-link:focus { top: 8px; }
.status-dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
.section__head { margin-bottom: 44px; }
.split-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; }
.split-head h2 { margin: 0; }
.split-head > p { max-width: 360px; color: var(--muted); font-size: 15px; margin-bottom: 4px; }

/* Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; background: var(--paper); z-index: 30; border-bottom: 1px solid var(--line); }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex-direction: column; gap: 6px; text-decoration: none; line-height: 1; white-space: nowrap; }
.brand-name { font: 400 21px/1 var(--serif); letter-spacing: .005em; }
.brand-name b { font-weight: 500; font-size: .82em; letter-spacing: .14em; text-transform: uppercase; margin-left: .12em; }
.brand-sub { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.brand-sub::before { content: ""; width: 18px; height: 1px; background: var(--accent); }
.brand:hover { color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a { display: block; font-size: 14px; text-decoration: none; min-height: 44px; padding-block: 12px; border-bottom: 1px solid transparent; }
.nav__links a[aria-current], .nav__links a:hover { border-color: var(--accent); }
.nav__tools { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.lang-switch { display: grid; place-items: center; min-width: 44px; min-height: 44px; text-decoration: none; font-weight: 500; }
.nav-contact { display: flex; gap: 12px; align-items: center; text-decoration: none; border-bottom: 1px solid var(--ink); min-height: 44px; font-size: 14px; }
.nav-contact svg { width: 16px; height: 16px; }
.menu-toggle { min-height: 44px; padding: 8px; font-size: 14px; white-space: nowrap; }
.menu-toggle span { margin-left: 10px; }
.mobile-menu { padding: 8px 24px 20px; border-top: 1px solid var(--line); }
.mobile-menu a { display: block; text-decoration: none; padding: 12px 0; }

/* Hero ------------------------------------------------------------------ */
/* The first screen fits the viewport on desktop: type and scene scale with the viewport height. */
.hero { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: center;
  padding-block: clamp(28px, 6vh, 64px) clamp(28px, 5vh, 56px); padding-block: clamp(28px, 6svh, 64px) clamp(28px, 5svh, 56px); }
.hero-person { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(18px, 3.6svh, 36px); }
.hero-person img { width: 56px; height: 56px; object-fit: cover; object-position: center 24%; border-radius: 50%; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--accent); }
.hero-person strong, .hero-person span { display: block; }
.hero-person strong { font: 500 19px/1.3 var(--serif); letter-spacing: .005em; }
.hero-person span { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 2px; }
.hero h1 { font-size: clamp(46px, 5.3vw, 84px); font-size: clamp(46px, min(5.3vw, 9svh), 84px); margin-bottom: clamp(14px, 2.6svh, 26px); }
.hero-lede { max-width: 540px; color: var(--muted); font-size: 17px; line-height: 1.65; margin-bottom: 12px; }
.hero-scope { max-width: 540px; font-size: 13px; color: var(--muted); letter-spacing: .02em; margin-bottom: clamp(18px, 3.2svh, 30px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.hero-status { margin: clamp(18px, 3.4svh, 34px) 0 0; }
.hero-visual { margin: 0; display: flex; flex-direction: column; justify-content: center; }
.figure-top, .figure-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12px; letter-spacing: .1em; }
.figure-top { border-top: 1px solid var(--ink); padding: 12px 0; text-transform: uppercase; }
.figure-bottom { padding: 14px 0 12px; border-bottom: 1px solid var(--line); letter-spacing: 0; font-family: var(--serif); font-size: 18px; }
.axis-readout { font-family: var(--sans); font-size: 13px; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.axis-readout b { font-weight: 500; color: var(--ink); }
figcaption { font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 10px; }
.scene { position: relative; height: clamp(250px, calc(100vh - 390px), 470px); height: clamp(250px, calc(100svh - 390px), 470px); background: linear-gradient(90deg, #e5ded1 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(#e5ded1 1px, transparent 1px) 0 0 / 28px 28px, #f2eee6; overflow: hidden; }
.scene img, .scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene img { object-fit: contain; transition: opacity var(--t); }
.scene canvas { visibility: hidden; }
.scene--live img { opacity: 0; }
.scene--live canvas { visibility: visible; }

.proof-strip { display: grid; grid-template-columns: 1fr 1fr 1.2fr .9fr; padding-block: 26px 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); gap: 24px; }
.proof-strip > div { border-right: 1px solid var(--line); padding-right: 12px; }
.proof-strip strong { display: block; font: 36px/1.15 var(--serif); letter-spacing: -1px; margin-bottom: 6px; }
.proof-strip strong span { font: 16px var(--serif); letter-spacing: 0; }
.proof-strip > div > span { display: block; font-size: 13px; color: var(--muted); }
.proof-strip > a { display: flex; align-items: center; justify-content: flex-end; gap: 22px; text-decoration: none; font-size: 14px; }
.proof-strip > a > span { font-size: 22px; }

/* 01 Fit: four ways in ------------------------------------------------- */
.fit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.fit-card { padding: 26px 26px 30px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.fit-card + .fit-card { padding-left: 26px; }
.fit-card:last-child { border-right: 0; }
.fit-card .index { font-size: 12px; letter-spacing: .08em; color: var(--muted); margin-bottom: 26px; }
.fit-card h3 { font-size: 26px; line-height: 1.12; margin-bottom: 14px; }
.fit-card p { font-size: 15px; color: var(--muted); }
.fit-card .roles { font-size: 13px; color: var(--ink); border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; margin-bottom: 10px; }
.fit-card .roles b { display: block; font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fit-card .text-link { font-size: 13px; }

/* 02 Labs ---------------------------------------------------------------- */
.labs-section { background: var(--lab-bg); color: var(--lab-strong); padding-block: 96px; }
.labs-section .split-head > p { color: var(--lab-text); }
.labs-section .eyebrow, .contact-section .eyebrow { color: var(--lab-hi); }
.labs-section a { color: var(--lab-strong); }
.labs-section a:hover { color: var(--white); }
.lab-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--lab-line); margin-bottom: 44px; }
.lab-tab { text-align: left; padding: 16px 18px 18px 0; min-height: 76px; border-top: 2px solid transparent; margin-top: -1px; color: var(--lab-text); display: flex; flex-direction: column; gap: 4px; }
.lab-tab + .lab-tab { padding-left: 18px; border-left: 1px solid var(--lab-line); }
.lab-tab span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.lab-tab strong { font: 21px/1.2 var(--serif); font-weight: 400; color: var(--lab-strong); }
.lab-tab[aria-selected="true"] { border-top-color: var(--lab-hi); }
.lab-tab[aria-selected="true"] span { color: var(--lab-hi); }
.lab-tab:hover strong { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.lab { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.lab + .lab { margin-top: 80px; padding-top: 80px; border-top: 1px solid var(--lab-line); }
html.js .lab + .lab { margin-top: 0; padding-top: 0; border-top: 0; }
.lab__kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--lab-hi); margin-bottom: 16px; }
.lab__text h3 { font-size: 32px; line-height: 1.12; color: var(--lab-strong); margin-bottom: 20px; }
.lab__text p { color: var(--lab-text); font-size: 15px; line-height: 1.7; }
.lab__eq { font: 20px/1.5 var(--serif); color: var(--lab-strong) !important; border-left: 2px solid var(--lab-hi); padding: 4px 0 4px 18px; margin: 24px 0; }
.lab__eq small { display: block; font: 13px/1.5 var(--sans); color: var(--lab-text); }
.lab__try { font-size: 14px !important; }
.lab__try strong { color: var(--lab-strong); font-weight: 500; }
.lab__notes { border-top: 1px solid var(--lab-line); border-bottom: 1px solid var(--lab-line); margin-top: 26px; }
.lab__notes summary { color: var(--lab-strong); }
.lab__notes > div { padding: 0 0 18px; }
.lab__notes p, .lab__notes li { font-size: 13px !important; line-height: 1.65; color: var(--lab-text); }
.refs { padding-left: 18px; margin: 10px 0 0; }
.refs li { margin-bottom: 6px; }
.refs a { overflow-wrap: anywhere; }
.lab__stage { border: 1px solid var(--lab-line); background: linear-gradient(90deg, #43566d4d 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(#43566d4d 1px, transparent 1px) 0 0 / 24px 24px; }
.stage-head, .stage-foot { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; font-size: 12px; letter-spacing: .1em; color: var(--lab-text); text-transform: uppercase; }
.stage-head span:last-child { color: var(--lab-hi); }
.stage-foot { border-top: 1px solid var(--lab-line); letter-spacing: .04em; text-transform: none; }
.lab__canvas { position: relative; aspect-ratio: 16 / 10.5; margin: 0 18px; }
.lab__canvas canvas, .lab__canvas img { position: absolute; inset: 0; width: 100%; height: 100%; }
.lab__canvas img { object-fit: contain; }
.lab__canvas canvas { visibility: hidden; }
.lab__canvas.is-live canvas { visibility: visible; cursor: crosshair; }
.lab__canvas.is-live img { display: none; }
.lab__controls { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 26px; padding: 18px; border-top: 1px solid var(--lab-line); margin-top: 16px; }
.control { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.control label, .control legend { font-size: 13px; color: var(--lab-text); display: flex; justify-content: space-between; gap: 10px; padding: 0; }
.control output { font-variant-numeric: tabular-nums; color: var(--lab-strong); }
.control input[type="range"] { width: 100%; height: 36px; accent-color: var(--lab-hi); margin: 0; }
.control--wide { grid-column: 1 / -1; }
fieldset.control { border: 0; margin: 0; padding: 0; }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.segmented label { position: relative; display: inline-flex; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 13px; border: 1px solid var(--lab-line); font-size: 13px; color: var(--lab-text); }
.segmented input:checked + span { background: var(--lab-strong); color: var(--ink); border-color: var(--lab-strong); }
.segmented input:focus-visible + span { outline: 3px solid var(--lab-hi); outline-offset: 2px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--lab-text); min-height: 40px; }
.check input { width: 18px; height: 18px; accent-color: var(--lab-hi); margin: 0; }
.control .check { justify-content: flex-start; align-self: end; }
.lab-btn { min-height: 44px; padding: 9px 16px; border: 1px solid var(--lab-strong); color: var(--lab-strong); font-size: 13px; font-weight: 500; }
.lab-btn:hover { background: var(--lab-strong); color: var(--ink); }
.lab-btn--primary { background: var(--lab-strong); color: var(--ink); }
.lab-btn--primary:hover { background: var(--white); }
.lab-btn:disabled { opacity: .5; cursor: default; }
.btn-set { display: flex; flex-wrap: wrap; gap: 8px; }
.lab__readouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin: 0; border-top: 1px solid var(--lab-line); }
.lab__note { font-size: 13px; color: var(--lab-text); margin: 0; }
.lab__readouts > div { padding: 14px 18px; border-right: 1px solid var(--lab-line); }
.lab__readouts > div:last-child { border-right: 0; }
.lab__readouts dt { font-size: 12px; color: var(--lab-text); line-height: 1.4; margin-bottom: 4px; }
.lab__readouts dd { margin: 0; font: 26px/1.1 var(--serif); color: var(--lab-strong); font-variant-numeric: tabular-nums; }
.lab__readouts dd small { font: 13px var(--sans); color: var(--lab-text); margin-left: 4px; }
.lab__nojs { padding: 14px 18px 0; font-size: 13px; color: var(--lab-text); }
html.js .lab__nojs { display: none; }

/* 03 Work ---------------------------------------------------------------- */
.work-card { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-block: 56px; border-top: 1px solid var(--line); }
.work-card:first-of-type { border-top: 1px solid var(--ink); }
.work-card > *, .lab > *, .hero > *, .contact-grid > *, .about-grid > * { min-width: 0; }
.work-meta { display: flex; justify-content: space-between; gap: 12px; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; margin-bottom: 16px; color: var(--muted); }
.work-card h3 { font-size: 36px; line-height: 1.08; margin-bottom: 18px; }
.work-card p { color: var(--muted); font-size: 15px; max-width: 560px; }
.work-card .findings { list-style: none; padding: 0; margin: 22px 0; border-top: 1px solid var(--line); }
.work-card .findings li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.work-card .findings li::before { content: "+"; position: absolute; left: 0; top: 10px; color: var(--accent); font-size: 18px; line-height: 1.2; }
.work-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.photo-stack { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 12px; align-self: start; }
.photo-stack figure { margin: 0; }
.photo-stack .tall { grid-row: span 2; display: flex; flex-direction: column; }
.photo-stack .tall img { flex: 1 1 0; height: 0; min-height: 220px; aspect-ratio: auto; object-position: 50% 40%; }
.photo-stack img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #1b1b1b; }
.photo-stack figcaption { margin-top: 6px; }
@media (min-width: 901px) { .photo-stack { position: sticky; top: 100px; } }
.plate-label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.chart { margin: 26px 0 0; }
.work-card > .chart:first-child { margin-top: 0; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.thermal-compact { display: none; }
@media (max-width: 600px) { .thermal-wide { display: none; } .thermal-compact { display: block; } }
.chart-fit svg { max-width: 440px; }
.chart-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.chart-pair svg { max-width: 320px; }
.chart text { font-family: var(--sans); fill: var(--muted); }
.chart .t-strong { fill: var(--ink); }
.chart .t-serif { font-family: var(--serif); }
.work-card--wide { grid-template-columns: .8fr 1.2fr; }
.thermal-figure { margin: 0; }
.thermal-figure .scrub { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--muted); }
.thermal-figure input[type="range"] { width: 100%; height: 36px; accent-color: var(--navy); }
.thermal-figure output { font-variant-numeric: tabular-nums; color: var(--ink); min-width: 4ch; text-align: right; }
.thermal-readout { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 8px; }
.thermal-readout > div { padding: 12px 14px 12px 0; }
.thermal-readout > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.thermal-readout dt { font-size: 12px; color: var(--muted); }
.thermal-readout dd { margin: 2px 0 0; font: 22px/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.thermal-readout dd span { display: block; font: 13px/1.5 var(--sans); color: var(--muted); }

/* 04 Directions ---------------------------------------------------------- */
.directions-section { background: var(--paper-2); }
.direction-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--ink); }
.direction { padding: 30px 40px 34px 0; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; }
.direction:nth-child(even) { padding: 30px 0 34px 40px; border-left: 1px solid var(--line-2); }
.direction .chip { align-self: flex-start; font-size: 12px; letter-spacing: .06em; border: 1px solid var(--line-2); padding: 4px 10px; margin-bottom: 20px; color: var(--ink); background: var(--paper); }
.direction .chip::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
.direction h3 { font-size: 28px; line-height: 1.12; margin-bottom: 14px; }
.direction p { font-size: 15px; color: var(--muted); }
.direction p b { color: var(--ink); font-weight: 500; }
.direction .for { font-size: 13px; color: var(--ink); margin-top: auto; margin-bottom: 4px; }
.direction .for b { font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; color: var(--muted); margin-right: 6px; }
.directions-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 36px; }
.directions-cta p { margin: 0; max-width: 620px; color: var(--muted); font-size: 14px; }

/* About, expertise ------------------------------------------------------ */
.about-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 100px; align-items: center; }
.about-portrait { max-width: 365px; margin: 0; }
.about-portrait img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 26%; width: 100%; }
.about-portrait figcaption { display: block; border-bottom: 1px solid var(--line); padding-block: 14px; font: 18px var(--serif); color: var(--ink); margin: 0; }
.about-grid p:not(.eyebrow) { font-size: 16px; color: var(--muted); }
.about-note { border-left: 2px solid var(--accent); padding: 0 0 0 18px; font: 21px/1.35 var(--serif); margin: 28px 0; }
.languages { font-size: 13px !important; margin-bottom: 6px; }
.expertise-section { background: var(--paper-2); }
.expertise-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }
.expertise-grid > div > p:not(.eyebrow) { color: var(--muted); font-size: 15px; max-width: 320px; }
summary { list-style: none; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary > span:last-child { font-size: 24px; font-weight: 400; transition: transform var(--t); }
details[open] > summary > span:last-child { transform: rotate(45deg); }
.expertise-row { border-top: 1px solid var(--line-2); }
.expertise-row:last-child { border-bottom: 1px solid var(--line-2); }
.expertise-row summary { justify-content: flex-start; min-height: 84px; gap: 22px; }
.expertise-row h3 { font: 24px/1.2 var(--serif); letter-spacing: -.01em; margin: 0; flex: 1; }
.expertise-row .index { font-size: 12px; align-self: flex-start; margin-top: 32px; color: var(--muted); }
.expertise-content { font-size: 15px; padding: 0 0 24px 38px; color: var(--muted); }
.tags { list-style: none; display: flex; gap: 7px; flex-wrap: wrap; padding: 0; margin: 16px 0 0; }
.tags li { font-size: 12px; padding: 3px 9px; border: 1px solid var(--line-2); color: var(--ink); }

/* Timeline, publications, contact -------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { display: grid; grid-template-columns: 25% 1fr; gap: 25px; border-top: 1px solid var(--line); padding-block: 30px; margin: 0; }
.timeline > li:last-child { border-bottom: 1px solid var(--line); }
.timeline__when { font-size: 13px; padding-top: 6px; color: var(--muted); }
.timeline h3 { font-size: 27px; letter-spacing: -.02em; margin-bottom: 8px; }
.timeline__org { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.timeline ul { padding-left: 18px; margin: 0; max-width: 760px; }
.timeline li li, .timeline p:not(.timeline__org) { font-size: 15px; color: var(--muted); margin-bottom: 7px; }
.timeline li li::marker { color: var(--accent); }
.education { padding-top: 0; }
.education h2 { font-size: 38px; }
.education .timeline > li { padding-block: 22px; }
.education .timeline h3 { font-size: 22px; }
.education .timeline__org { margin-bottom: 0; }
.education .timeline p { max-width: 740px; margin-top: 10px; }
.publications-section { background: var(--white); }
.publication-tools { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 26px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { border: 1px solid var(--line-2); min-height: 44px; padding: 9px 15px; font-size: 13px; }
.filters button span { font-size: 12px; margin-left: 8px; }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.filters button:hover { border-color: var(--navy); }
#publication-count { font-size: 13px; margin: 0; white-space: nowrap; color: var(--muted); }
.pubs { list-style: none; padding: 0; margin: 0; counter-reset: pub; }
.pubs > li { display: grid; grid-template-columns: 55px 1fr; gap: 20px; border-top: 1px solid var(--line); padding: 24px 0; counter-increment: pub; }
.pubs > li:last-child { border-bottom: 1px solid var(--line); }
.pubs > li::before { content: counter(pub, decimal-leading-zero); font: 13px var(--sans); color: var(--muted); padding-top: 7px; }
.pubs__title { font: 22px/1.28 var(--serif); letter-spacing: -.01em; max-width: 1000px; margin-bottom: 8px; }
.pubs__meta { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0; }
.pubs__meta a { color: var(--navy); overflow-wrap: anywhere; }
.pubs__meta em { font-style: normal; }
.oa { display: inline-block; padding: 0 6px; border: 1px solid var(--line); font-size: 12px; line-height: 1.6; color: var(--ink); white-space: nowrap; }
.orcid { margin-top: 24px; font-size: 13px; }
.contact-section { padding: 96px 0; background: var(--lab-bg); color: var(--lab-strong); }
.contact-section a:hover, .contact-section button:hover { color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; }
.contact-grid h2 { font-size: clamp(44px, 5vw, 70px); margin-bottom: 0; }
.contact-grid h2 em { color: var(--lab-hi); }
.contact-grid p { max-width: 420px; color: var(--lab-text); font-size: 15px; }
.email-link { display: flex; align-items: center; justify-content: space-between; gap: 15px; font: 27px var(--serif); letter-spacing: -.01em; text-decoration: none; border-bottom: 1px solid var(--lab-hi); padding: 14px 0; overflow-wrap: anywhere; }
.routes { list-style: none; padding: 0; margin: 22px 0 0; }
.routes li { border-bottom: 1px solid var(--lab-line); }
.routes a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; padding: 10px 0; text-decoration: none; font-size: 15px; }
.routes a span { color: var(--lab-text); font-size: 13px; }
.routes a:hover span { color: var(--white); }
.copy-email { padding: 10px 0; min-height: 44px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.copy-status { font-size: 13px; margin-left: 14px; }
.contact-availability { font-size: 13px !important; margin-top: 30px; margin-bottom: 8px; }
.site-footer { padding-block: 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; color: var(--muted); }
.site-footer > div { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }

/* Credits page */
.credits h2 { font-size: 28px; margin: 44px 0 14px; }
.credits p, .credits li { max-width: 760px; color: var(--muted); font-size: 15px; }
.credits li { margin-bottom: 8px; }
.credits strong { color: var(--ink); font-weight: 500; }

/* Scroll reveal: only once the script has run, so content is visible without JS */
html.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 350ms ease-out, transform 350ms ease-out; }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1180px) {
  .container { width: calc(100% - 64px); }
  .nav__links { gap: 18px; }
  .nav__tools { gap: 12px; }
  .hero-lede { font-size: 16px; }
  .hero-actions { gap: 10px 20px; }
  .hero-actions .btn { padding-inline: 18px; gap: 16px; }
  .fit-grid { grid-template-columns: 1fr 1fr; }
  .fit-card:nth-child(2) { border-right: 0; }
  .fit-card:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line); }
  .fit-card:nth-child(4) { border-top: 1px solid var(--line); }
  .lab { grid-template-columns: 1fr; gap: 36px; }
  .lab__text { max-width: 760px; }
  .about-grid, .expertise-grid { gap: 55px; }
  .work-card, .work-card--wide { gap: 40px; }
  .contact-grid { gap: 40px; }
}
@media (max-width: 900px) {
  .nav { height: 72px; }
  .nav__links { display: none; }
  .menu-toggle:not([hidden]) { display: block; }
  .nav-contact { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 40px 48px; gap: 36px; }
  .hero h1 { font-size: clamp(48px, 10vw, 68px); }
  .scene { height: auto; aspect-ratio: 4 / 3.1; }
  .proof-strip { grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
  .proof-strip > a { display: none; }
  .proof-strip > div:last-of-type { border-right: 0; }
  .proof-strip strong { font-size: 30px; }
  .section { padding-block: 68px; }
  .labs-section { padding-block: 68px; }
  .split-head { display: block; }
  .split-head > p { margin-top: 20px; }
  .lab-tabs { grid-template-columns: 1fr 1fr; }
  .lab-tab:nth-child(3) { padding-left: 0; border-left: 0; }
  .lab-tab:nth-child(n+3) { border-top: 1px solid var(--lab-line); margin-top: 0; }
  .lab-tab:nth-child(n+3)[aria-selected="true"] { border-top: 2px solid var(--lab-hi); }
  .work-card, .work-card--wide { grid-template-columns: 1fr; padding-block: 44px; }
  .work-card > .chart:first-child { order: 1; }
  .direction-grid { grid-template-columns: 1fr; }
  .direction, .direction:nth-child(even) { padding: 28px 0 30px; border-left: 0; }
  .about-grid { grid-template-columns: .7fr 1fr; gap: 35px; }
  .expertise-grid { grid-template-columns: 1fr; gap: 26px; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (min-width: 901px) { .menu-toggle, .mobile-menu { display: none !important; } }
@media (max-width: 600px) {
  html { scroll-padding-top: 86px; }
  .container { width: calc(100% - 40px); }
  .nav { gap: 12px; }
  .brand-name { display: flex; flex-direction: column; gap: 5px; font-size: 18px; }
  .brand-name b { margin-left: 0; }
  .brand-sub { display: none; }
  .hero-person { gap: 14px; }
  .hero-person strong { font-size: 16px; }
  .hero { padding-block: 28px 40px; }
  .hero-lede { font-size: 16px; }
  .proof-strip { gap: 12px; padding-block: 22px; }
  .proof-strip strong { font-size: 26px; }
  .proof-strip strong span { font-size: 13px; }
  .proof-strip > div > span { font-size: 12px; line-height: 1.5; }
  h2 { font-size: 36px; }
  .fit-grid { grid-template-columns: 1fr; }
  .fit-card, .fit-card + .fit-card, .fit-card:nth-child(3) { padding: 24px 0 26px; border-right: 0; border-top: 1px solid var(--line); }
  .fit-card:first-child { border-top: 0; }
  .lab-tab { padding: 12px 10px 14px 0; min-height: 64px; }
  .lab-tab + .lab-tab { padding-left: 12px; }
  .lab-tab strong { font-size: 17px; }
  .lab__text h3 { font-size: 27px; }
  .lab__canvas { margin: 0 10px; aspect-ratio: 1 / 1.05; }
  .lab__controls { grid-template-columns: 1fr; padding: 16px 14px; }
  .lab__readouts { grid-template-columns: 1fr; }
  .lab__readouts > div { border-right: 0; border-bottom: 1px solid var(--lab-line); padding: 10px 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .lab__readouts > div:last-child { border-bottom: 0; }
  .lab__readouts dd { font-size: 22px; }
  .stage-head, .stage-foot { padding: 12px 14px; }
  .work-card h3 { font-size: 31px; }
  .photo-stack { grid-template-columns: 1fr 1fr; gap: 10px; }
  .chart-pair { grid-template-columns: 1fr; gap: 28px; }
  .photo-stack .tall { grid-column: 1 / -1; grid-row: auto; }
  .photo-stack .tall img { flex: none; height: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .thermal-readout { grid-template-columns: 1fr; }
  .thermal-readout > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .about-grid { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 30px; }
  .about-portrait { width: 65%; max-width: 300px; }
  .timeline > li { grid-template-columns: 1fr; gap: 12px; padding-block: 24px; }
  .timeline h3 { font-size: 25px; }
  .publication-tools { align-items: flex-start; flex-direction: column; gap: 12px; }
  .pubs > li { grid-template-columns: 26px 1fr; gap: 12px; }
  .pubs__title { font-size: 20px; }
  .contact-grid h2 { font-size: 46px; }
  .email-link { font-size: 24px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 2px; }
}
html:not(.js) .nav { flex-wrap: wrap; }
@media (max-width: 900px) {
  html:not(.js) .nav { height: auto; min-height: 72px; padding-block: 10px; }
  html:not(.js) .nav__links { display: flex; order: 3; width: 100%; flex-wrap: wrap; gap: 0 20px; }
}
html[lang="fr"] .hero h1 { font-size: clamp(44px, 4.9vw, 78px); font-size: clamp(44px, min(4.9vw, 8.4svh), 78px); }
@media (max-width: 900px) { html[lang="fr"] .hero h1 { font-size: clamp(42px, 9.4vw, 60px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .hero-actions, .lab-tabs, .lab__controls, .publication-tools, .copy-email, .site-footer, .scene canvas, .lab__canvas canvas { display: none !important; }
  body { background: #fff; color: #0f1f33; }
  .container { width: 100%; }
  .section, .labs-section { padding-block: 24px; }
  .labs-section { background: #fff; color: #0f1f33; }
  .labs-section *, .lab__text p { color: #0f1f33 !important; }
  html.js .lab[hidden] { display: grid !important; }
  .scene img, .lab__canvas img { opacity: 1 !important; display: block !important; }
  .work-card, .direction, li { break-inside: avoid; }
  .contact-section { background: #fff; color: #0f1f33; padding: 24px 0; }
  .contact-section *, .contact-grid p { color: #0f1f33 !important; }
  a { color: inherit; text-decoration: none; }
}

/* CV and LinkedIn links sit on one row and wrap on narrow screens.
   CV buttons exist only with JavaScript (they open /cv/ on click); without it, a note offers the CV by email. */
.link-row { gap: 8px 28px; align-items: center; }
.cv-request { font-size: 13px; color: inherit; opacity: .8; }
