:root {
  --bg: #F6F3EE;
  --surface: #FFFFFF;
  --ink: #16140F;
  --muted: #6B665C;
  --line: rgba(22, 20, 15, 0.12);
  --accent: #16140F;
  --accent-ink: #F6F3EE;
  --sand: #D9822B;
  --audio: #2442D8;
  --content: #C04E0C;
  --research: #0F7350;
  --prod: #5F5E5A;
  --audio-ink: #FFFFFF;
  --content-ink: #FFFFFF;
  --reco: #B5302B;
  --reco-ink: #FFFFFF;
  --research-ink: #FFFFFF;
  --dot: #D9822B;
  --link: #A35A0C;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #100F0D;
    --surface: #1A1916;
    --ink: #EDE9E1;
    --muted: #9C968A;
    --line: rgba(237, 233, 225, 0.12);
    --accent: #EDE9E1;
    --accent-ink: #100F0D;
    --sand: #F0A953;
    --audio: #8095FF;
    --content: #F4874A;
    --research: #4FC79B;
    --prod: #B4B2A9;
    --audio-ink: #100F0D;
    --content-ink: #100F0D;
    --reco: #F2706A;
    --reco-ink: #100F0D;
    --research-ink: #100F0D;
    --dot: #F0A953;
    --link: #F0A953;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #100F0D;
  --surface: #1A1916;
  --ink: #EDE9E1;
  --muted: #9C968A;
  --line: rgba(237, 233, 225, 0.12);
  --accent: #EDE9E1;
  --accent-ink: #100F0D;
  --sand: #F0A953;
  --audio: #8095FF;
  --content: #F4874A;
  --research: #4FC79B;
  --prod: #B4B2A9;
  --audio-ink: #100F0D;
  --content-ink: #100F0D;
  --reco: #F2706A;
  --reco-ink: #100F0D;
  --research-ink: #100F0D;
  --dot: #F0A953;
  --link: #F0A953;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 28px; }
.logo { font-family: var(--mono); font-weight: 500; font-size: 15px; }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }
.theme-toggle { background: none; border: 1px solid var(--line); color: var(--ink); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.theme-toggle:hover { border-color: var(--muted); }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 40px; }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 0 0 20px; display: flex; align-items: center; gap: 10px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 0 var(--dot); animation: pulse 2.4s infinite; flex-shrink: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dot) 60%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 24px; }
h1 em { color: var(--accent); }
.hero h1 { margin-bottom: 12px; }
.tagline { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; margin: 0 0 24px; }
.lede { font-size: 18px; color: var(--muted); max-width: 520px; margin: 0 0 32px; }
.cta-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: transform .15s ease; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn:hover { transform: translateY(-1px); }
.socials { display: flex; gap: 16px; color: var(--muted); }
.socials a:hover { color: var(--ink); }
.portrait { margin: 0; position: relative; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 50%; border-radius: 24px; }
.portrait::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--line); border-radius: 24px; z-index: -1; }

/* Spectrum */
.spectrum { padding-top: 24px; padding-bottom: 8px; }
#spectrum { width: 100%; height: 160px; display: block; }
.spectrum-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }
.spectrum-legend a { margin-left: auto; color: var(--accent); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: -1px; }
.sw-real { background: var(--ink); opacity: .35; }
.sw-ai { background: var(--sand); }

/* Sections */
.block { padding-top: 88px; }
.section-title { font-family: var(--serif); font-weight: 400; font-size: 36px; margin: 0 0 32px; display: flex; align-items: baseline; gap: 16px; }
.num { font-family: var(--mono); font-size: 13px; color: var(--sand); }

.awards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.award { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, transform .2s; }
.award:hover { border-color: var(--accent); transform: translateY(-2px); }
.award-org { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.award-name { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.award-desc { font-size: 14px; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 24px 24px 0 0; display: flex; flex-direction: column; gap: 6px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-n { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--accent); }
.stat-l { font-size: 14px; color: var(--muted); }

.cards { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.card-feature { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.card-feature p, .card-feature .tag { color: color-mix(in srgb, var(--accent-ink) 78%, transparent); }
.tag { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.more { font-size: 14px; font-weight: 500; }

.timeline { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.when { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 2px; }
.what strong { font-weight: 500; }
.text-link { color: var(--accent); font-weight: 500; font-size: 15px; }

/* Footer */
.footer { padding-top: 120px; padding-bottom: 48px; }
.footer-big { font-family: var(--serif); font-size: clamp(32px, 4.5vw, 52px); line-height: 1.1; margin: 0 0 16px; max-width: 760px; }
.footer-mail { font-size: 18px; color: var(--accent); border-bottom: 1px solid currentColor; }
.footer-small { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 64px 0 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 16px; }
  .portrait { max-width: 360px; }
  .awards, .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .stat { padding-bottom: 24px; }
}
@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .portrait::after { inset: 10px -8px -10px 10px; }
  .nav { flex-wrap: wrap; gap: 14px; padding-top: 20px; padding-bottom: 12px; }
  .nav nav { gap: 16px; font-size: 13px; width: 100%; justify-content: space-between; }
  .block { padding-top: 64px; }
  .section-title { font-size: 30px; }
  .stat-n { font-size: 40px; }
  .stat + .stat { padding-left: 16px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .spectrum-legend a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Inner pages ---------- */
.nav nav a.active { color: var(--ink); }
.page-head { padding-top: 56px; padding-bottom: 24px; }
.page-title { font-size: clamp(40px, 5.6vw, 68px); max-width: 820px; }
.page-title em { color: var(--accent); }
.jump { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-block; font-size: 14px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.jump a:hover { color: var(--ink); border-color: var(--muted); }

/* Case study */
.case { margin-top: 64px; scroll-margin-top: 24px; }
.case-hero { background: var(--accent); color: var(--accent-ink); padding: 64px 0 56px; }
.case-kicker { font-family: var(--mono); font-size: 13px; margin: 0 0 16px; opacity: .8; }
.case-title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; margin: 0 0 40px; max-width: 860px; }
.case-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid color-mix(in srgb, var(--accent-ink) 30%, transparent); padding-top: 20px; font-size: 15px; }
.case-meta span { display: block; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .75; margin-bottom: 4px; }
.case-body { padding-top: 24px; }
.case-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.case-row:last-child { border-bottom: none; }
.case-label { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.case-content > p { font-size: 17px; margin: 0 0 24px; max-width: 680px; }
.case-content strong { font-weight: 600; }

/* Growth chart */
.growth { margin: 8px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px 24px 16px; }
.growth-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; height: 220px; align-items: end; border-bottom: 1px solid var(--line); }
.gb { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; position: relative; }
.gb-val { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.gb-bar { width: min(56px, 60%); height: calc(var(--v) * 0.82); min-height: 4px; background: var(--accent); border-radius: 4px 4px 0 0; cursor: default; }
.gb-bar:hover { opacity: .85; }
.gb-lab { position: absolute; bottom: -26px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.growth figcaption { font-size: 13px; color: var(--muted); margin-top: 40px; }
.growth figcaption a, .ticks a { color: var(--accent); }
.tip { position: fixed; z-index: 10; pointer-events: none; background: var(--ink); color: var(--bg); font-size: 13px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); }

/* Pipeline */
.pipeline { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr); gap: 10px; align-items: stretch; margin: 0 0 28px; }
.pipe-step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.pipe-step strong { color: var(--ink); font-weight: 500; font-size: 15px; }
.pipe-n { font-family: var(--mono); font-size: 11px; color: var(--sand); }
.pipe-out { border-color: var(--accent); }
.pipe-arrow { align-self: center; color: var(--muted); font-size: 18px; }
.pipe-loop { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 1px dashed var(--line); border-radius: 14px; padding: 12px 14px; font-size: 13px; color: var(--muted); }
.pipe-loop-label { font-family: var(--mono); font-size: 12px; color: var(--sand); margin-right: 4px; }
.pipe-loop span:not(.pipe-loop-label) { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

.ticks { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 12px; max-width: 700px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 2px; background: var(--sand); }
.ticks strong { color: var(--ink); font-weight: 500; }

.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 32px; }
.stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 32px; }
.milestones { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.milestones li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

.press { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.press a { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 15px; display: flex; flex-direction: column; gap: 2px; transition: border-color .2s; }
.press a:hover { border-color: var(--accent); }
.press span { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Other work */
.work-item { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding: 36px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.work-main h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; margin: 0 0 12px; }
.work-main > p { margin: 0 0 16px; max-width: 700px; }

@media (max-width: 860px) {
  .case-meta { grid-template-columns: 1fr; gap: 14px; }
  .case-row, .work-item { grid-template-columns: 1fr; gap: 16px; }
  .pipeline { grid-template-columns: 1fr; }
  .pipe-arrow { transform: rotate(90deg); justify-self: center; }
  .stats-3, .stats-2 { grid-template-columns: 1fr; }
  .stats-3 .stat, .stats-2 .stat { border-left: none !important; padding-left: 0 !important; border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .press { grid-template-columns: 1fr; }
  .milestones li { grid-template-columns: 1fr; gap: 2px; }
  .case-hero { padding: 48px 0 40px; }
  .growth { padding: 20px 16px 12px; }
  .growth-bars { height: 180px; }
}

/* Research */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.featured-paper { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 40px; }
.featured-paper h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 44px); line-height: 1.05; margin: 16px 0 10px; }
.featured-paper p { color: var(--muted); margin: 0 0 16px; }
.featured-paper .links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.badge-award { display: inline-block; font-family: var(--mono); font-size: 12px; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--sand) 18%, transparent); color: var(--sand); }
.authors { font-size: 14px; color: var(--muted); }
.authors strong { color: var(--ink); font-weight: 600; }
.fp-caption { font-family: var(--mono); font-size: 12px; margin-top: 12px !important; }
.pubs { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.pub { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.pub-year { font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--accent); }
.pub h3 { font-weight: 500; font-size: 19px; line-height: 1.35; margin: 0 0 6px; }
.pub p { margin: 0 0 8px; }
.venue { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-family: var(--mono); font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.badge-gold { border-color: var(--sand); color: var(--sand); }
.pub-links { display: flex; gap: 16px; font-size: 14px; font-weight: 500; }
.pub-links a { color: var(--accent); }

/* Open source */
.oss-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; background: var(--accent); color: var(--accent-ink); border-radius: 24px; padding: 40px; margin-bottom: 16px; transition: transform .2s; }
.oss-hero:hover { transform: translateY(-2px); }
.oss-hero .tag { color: inherit; opacity: .8; }
.oss-hero h2 { font-family: var(--serif); font-weight: 400; font-size: 56px; line-height: 1; margin: 10px 0 14px; }
.oss-hero p { margin: 0; opacity: .85; }
.oss-stats { display: flex; flex-direction: column; gap: 16px; }
.oss-stats > div { display: flex; align-items: baseline; gap: 12px; border-top: 1px solid color-mix(in srgb, var(--accent-ink) 30%, transparent); padding-top: 12px; }
.oss-stats .stat-n { color: inherit; font-size: 40px; }
.oss-stats .stat-l { color: inherit; opacity: .8; }
.oss-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.oss-grid .card h3 { font-size: 26px; }
.prs { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.prs a { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.prs a::after { content: "→"; color: var(--muted); }
.prs a:hover { color: var(--accent); }
.pr-kind { font-family: var(--mono); font-size: 12px; color: var(--sand); }

/* About */
.about-head { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 56px; align-items: start; padding-top: 48px; }
.bio p { font-size: 17px; margin: 0 0 18px; color: var(--muted); }
.bio p:first-child { color: var(--ink); font-size: 19px; }
.about-head .cta-row { margin-top: 28px; }
.cv { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.cv > li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cv h3 { font-weight: 500; font-size: 19px; margin: 0; }
.cv .org { color: var(--muted); font-size: 14px; margin: 2px 0 8px; }
.cv p { margin: 0; }
.cv a { color: var(--accent); }
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.skills h3 { font-family: var(--mono); font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }

@media (max-width: 860px) {
  .featured-paper, .oss-hero, .about-head { grid-template-columns: 1fr; padding: 28px; }
  .about-head { padding: 24px; gap: 32px; }
  .about-head .portrait { max-width: 300px; }
  .oss-grid { grid-template-columns: 1fr; }
  .oss-hero h2 { font-size: 44px; }
}
@media (max-width: 600px) {
  .featured-paper, .oss-hero { padding: 22px; border-radius: 18px; }
  .about-head { padding: 16px; }
  .pub, .cv > li { grid-template-columns: 1fr; gap: 8px; }
  .prs a { grid-template-columns: 1fr auto; }
  .pr-kind { grid-column: 1 / -1; }
}

/* Home: merged about */
.lede:has(+ .lede-2) { margin-bottom: 14px; }
.lede-2 { font-size: 16px; }
.cv-link { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--accent); }
.cv-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.cv-head .org { margin: 2px 0 0; }
.logo-tile { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: #FFFFFF; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.logo-mono { background: var(--surface); font-family: var(--serif); font-size: 20px; color: var(--muted); }

/* Spectrum intro */
.spectrum { padding-top: 72px; }
.spectrum-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 24px; }
.spectrum-kicker { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--sand); margin: 0 0 8px; }
.spectrum-title { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; margin: 0 0 10px; }
.spectrum-text { color: var(--muted); max-width: 640px; margin: 0; }
.spectrum-text a { color: var(--accent); }
.seg { display: inline-flex; flex-shrink: 0; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.seg button { font: inherit; font-size: 14px; border: 0; background: none; color: var(--muted); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg button[data-mode="ai"][aria-pressed="true"] { background: var(--sand); color: #16140F; }
@media (max-width: 760px) {
  .spectrum { padding-top: 48px; }
  .spectrum-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .spectrum-title { font-size: 30px; }
}
.logo-wide { width: 112px; }
.logo-wide img { padding: 6px 8px; }
.fp-visual .seg { margin: 4px 0 20px; }
.fp-visual canvas { width: 100%; height: 160px; display: block; }
.cv .ticks { margin: 4px 0 4px; }
.cv .ticks li { font-size: 15px; }


/* ---------- Category colors ---------- */
h1 em, .page-title em { color: inherit; }
.kw { font-style: italic; }
.kw-audio { color: var(--audio); }
.kw-content { color: var(--content); }
.kw-research { color: var(--research); }
.kw-prod { color: var(--prod); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tg { font-family: var(--sans); font-size: 12px; font-weight: 500; line-height: 1; padding: 5px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.t-audio { color: var(--audio); background: color-mix(in srgb, var(--audio) 10%, transparent); border-color: color-mix(in srgb, var(--audio) 35%, transparent); }
.t-content { color: var(--content); background: color-mix(in srgb, var(--content) 10%, transparent); border-color: color-mix(in srgb, var(--content) 35%, transparent); }
.t-research { color: var(--research); background: color-mix(in srgb, var(--research) 10%, transparent); border-color: color-mix(in srgb, var(--research) 35%, transparent); }
.t-prod { color: var(--prod); background: color-mix(in srgb, var(--prod) 10%, transparent); border-color: color-mix(in srgb, var(--prod) 35%, transparent); }
.cv-head + .tags { margin: 0 0 12px; }
.pub .tags { margin: 2px 0 10px; }
.work-side { display: flex; flex-direction: column; gap: 10px; }

/* Audio projects keep the blue blocks */
.case-hero, .oss-hero, .card-feature { background: var(--audio); color: var(--audio-ink); border-color: var(--audio); }
.case-hero .tg, .oss-hero .tg { color: var(--audio-ink); background: color-mix(in srgb, var(--audio-ink) 14%, transparent); border-color: color-mix(in srgb, var(--audio-ink) 40%, transparent); }
.case-meta { border-top-color: color-mix(in srgb, var(--audio-ink) 30%, transparent); }
.case-hero .tags { margin: -20px 0 32px; }

/* Inline links: neutral ink, underlined */
.cv p a, .ticks a, .growth figcaption a, .spectrum-text a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); text-underline-offset: 3px; }
.cv-link, .text-link, .pub-links a, .footer-mail { color: var(--ink); }
.card:hover, .award:hover, .press a:hover, .pipe-out { border-color: var(--ink); }
.prs a:hover { color: var(--ink); text-decoration: underline; }

/* Title colors topics only; all four tags keep their colors */
.logo-inria { background: #E63312; border-color: #E63312; }
.logo-inria img { filter: brightness(0) invert(1); padding: 10px 12px; }

/* Buttons and links in amber */
.btn-primary { background: var(--sand); color: #16140F; }
.cv .cv-link, .text-link, .pub-links a, .footer-mail, .prs a:hover { color: var(--link); }
.cv p a, .ticks a, .growth figcaption a, .spectrum-text a { color: var(--link); text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent); }

/* Two-level experience bullets */
.ticks-2 { gap: 18px; max-width: 720px; }
.ticks-2 > li { color: var(--ink); }
.ticks-2 .lvl1 { font-weight: 500; }
.ticks .sub { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.ticks .sub li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--muted); }
.ticks .sub li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--sand) 60%, transparent); }
.ticks .sub strong { color: var(--ink); font-weight: 500; }

/* Collapsible sections */
.section-toggle { all: unset; cursor: pointer; display: inline-flex; align-items: baseline; gap: 16px; }
.section-toggle:focus-visible { outline: 2px solid var(--sand); outline-offset: 6px; border-radius: 4px; }
.section-toggle .chev { align-self: center; color: var(--muted); transition: transform .25s ease; }
.section-toggle:hover .chev { color: var(--ink); }
.section-toggle[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.section-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s ease; }
.section-body.collapsed { grid-template-rows: 0fr; }
.section-inner { overflow: hidden; min-height: 0; }

/* Foldable jobs */
.cv-head.is-toggle { cursor: pointer; }
.job-toggle { all: unset; cursor: pointer; margin-left: auto; align-self: center; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); flex-shrink: 0; }
.job-toggle:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }
.cv-head.is-toggle:hover .job-toggle { color: var(--ink); border-color: var(--muted); }
.job-toggle .chev { transition: transform .25s ease; }
.job-toggle[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.cv-head + .tags { margin-bottom: 4px; }
.job-body .section-inner > .ticks { padding-top: 10px; }
.exp-tools { display: flex; justify-content: flex-end; margin: 0 0 4px; }
.expand-all { all: unset; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--link); }
.expand-all:focus-visible { outline: 2px solid var(--sand); outline-offset: 4px; border-radius: 4px; }

/* Accordion layout for collapsible sections */
.block:has(.section-toggle) { padding-top: 0; }
.block:has(.section-toggle) .section-title { margin: 0; padding: 28px 0; border-top: 1px solid var(--line); }
.block:has(.section-toggle[aria-expanded="true"]) .section-title { padding-bottom: 32px; }
#experience { margin-top: 72px; }
#skills .skills { padding-bottom: 28px; }
#skills > .section-body { border-bottom: 1px solid var(--line); }

/* Proof lines under the intro */
.proof { margin: 0 0 32px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.proof > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.proof dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--sand); }
.proof dd { margin: 0; font-size: 15px; color: var(--muted); }
.proof dd a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); text-underline-offset: 3px; }
.proof dd a:hover { text-decoration-color: var(--link); }
.proof .sep { margin: 0 8px; color: var(--muted); }
.proof .todo-link { color: var(--ink); font-weight: 500; }
@media (max-width: 600px) { .proof > div { grid-template-columns: 1fr; gap: 0; } }

/* Selected achievements */
#achievements { margin-top: 72px; }
#experience { margin-top: 0; }
.ach-label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--sand); margin: 0 0 2px; }
.ach .cv-head { margin-bottom: 0; }
.ach-text { margin: 12px 0 8px; color: var(--muted); max-width: 680px; }
.ach-text strong { color: var(--ink); font-weight: 500; }
.ach-links { margin: 0; }
.ach-links .cv-link { margin-top: 0; }
.ach-links .sep { margin: 0 8px; color: var(--muted); }
.ach .section-inner { padding-bottom: 2px; }

/* Achievements as press-style cards */
.ach-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 28px; }
.ach-grid a { font-size: 17px; font-weight: 500; gap: 4px; padding: 18px 20px; }
.ach-grid a span { color: var(--sand); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.ach-grid a em { font-style: normal; font-weight: 400; font-size: 14px; color: var(--muted); }
.ach-grid a:hover { border-color: var(--sand); }
@media (max-width: 860px) { .ach-grid { grid-template-columns: 1fr; } }

/* Speed-change explainer */
.speed { margin: 8px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px 16px; display: flex; flex-direction: column; gap: 18px; }
.speed-control { display: flex; align-items: center; gap: 14px; }
.speed-control label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.speed-control input[type="range"] { flex: 1; accent-color: var(--sand); }
.speed-control output { font-family: var(--mono); font-size: 15px; font-weight: 500; min-width: 52px; text-align: right; }
.speed-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.speed-axis { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.speed-status { font-size: 13px; font-weight: 500; }
.speed-status.ok { color: var(--ink); }
.speed-status.bad { color: var(--muted); }
.speed canvas { width: 100%; height: 120px; display: block; border-bottom: 1px solid var(--line); }
.speed-note { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.speed figcaption { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.speed figcaption a { color: var(--link); }

/* Hybrid-track explainer */
.stems { margin: 8px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px 16px; display: flex; flex-direction: column; gap: 16px; }
.stems .seg { align-self: flex-start; flex-wrap: wrap; }
.stems .seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.stems-lanes { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; }
.stems-labels { display: grid; grid-template-rows: repeat(3, 1fr); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.stems-labels span { display: flex; align-items: flex-end; padding-bottom: 6px; }
.stems-labels span:first-child { color: var(--sand); }
#stemsCanvas { width: 100%; height: 200px; display: block; }
.stems-verdict { display: flex; flex-wrap: wrap; gap: 10px; }
.stem-pill { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.stem-pill span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 400; }
.stem-pill.is-ai { border-color: var(--sand); color: var(--ink); }
.stem-pill.is-ai span { color: var(--sand); }
.stems figcaption { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.stems figcaption a { color: var(--link); }
@media (max-width: 600px) {
  .stems { padding: 16px; }
  .stems-lanes { grid-template-columns: 1fr; }
  .stems-labels { display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .stems-labels span { padding: 0; }
}

/* Research tabs */
.rtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 4px 0 20px; overflow-x: auto; }
.rtabs [role="tab"] { all: unset; cursor: pointer; padding: 10px 14px; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.rtabs [role="tab"]:hover { color: var(--ink); }
.rtabs [role="tab"][aria-selected="true"] { color: var(--ink); font-weight: 500; border-bottom-color: var(--sand); }
.rtabs [role="tab"]:focus-visible { outline: 2px solid var(--sand); outline-offset: -2px; border-radius: 6px; }
.rpanel > p { font-size: 17px; margin: 0 0 20px; max-width: 680px; }

/* Zero-shot explainer */
.zs { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px 16px; display: flex; flex-direction: column; gap: 14px; }
.zs-steps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.zs-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.zs-btn span { font-family: var(--mono); font-size: 11px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--sand); color: var(--sand); }
.zs-btn:hover { border-color: var(--sand); }
.zs-btn.done { border-color: var(--sand); }
.zs-btn.done span { background: var(--sand); color: #16140F; }
.zs-btn:focus-visible, .zs-reset:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }
.zs-reset { all: unset; cursor: pointer; font-size: 13px; color: var(--muted); margin-left: auto; padding: 8px 4px; }
.zs-reset:hover { color: var(--ink); }
#zsCanvas { width: 100%; height: 320px; display: block; border: 1px solid var(--line); border-radius: 12px; }
.zs-status { margin: 0; font-size: 15px; min-height: 2.6em; }
.zs figcaption { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.zs figcaption a { color: var(--link); }
@media (max-width: 600px) { #zsCanvas { height: 260px; } .zs { padding: 16px; } .zs-reset { margin-left: 0; } }

/* Projects page: foldable project cards */
.proj-group .section-title { margin-bottom: 20px; }
.proj { border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.proj:last-child { border-bottom: 1px solid var(--line); }
.proj-head { align-items: flex-start; padding: 24px 0; margin: 0; gap: 20px; }
.proj-text { flex: 1; min-width: 0; }
.proj-meta { margin: 0 0 6px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.proj-badge { color: var(--sand); border: 1px solid color-mix(in srgb, var(--sand) 50%, transparent); border-radius: 999px; padding: 2px 8px; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.proj-head h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; margin: 0 0 8px; }
.proj-sum { margin: 0 0 12px; font-size: 17px; color: var(--muted); max-width: 700px; }
.proj-head .job-toggle { margin-top: 26px; }
.proj-body .section-inner > :last-child { margin-bottom: 24px; }
.proj .case-row { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; border-bottom: none; border-top: 1px dashed var(--line); }
.proj .case-label { font-family: var(--mono); font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--sand); }
.proj .case-content > p { font-size: 16px; }
.case-meta-row { display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 4px 0 20px; font-size: 15px; }
.case-meta-row span { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.proj-soon { font-size: 14px; color: var(--muted); font-style: italic; }
.proj-links { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; }
.proj-links a, .proj .case-content p a, .proj .ticks a { color: var(--link); }
.proj-links a::after { content: " →"; }

/* Synthetic diarization diagram */
.synth { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr); gap: 10px; align-items: stretch; margin: 4px 0 20px; }
.synth-step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.synth-step strong { font-weight: 500; font-size: 15px; }
.synth-step em { font-style: normal; color: var(--muted); font-size: 12px; margin-top: auto; }
.synth-clips { display: flex; flex-direction: column; gap: 4px; }
.synth-clips span { width: var(--w); min-width: 24px; height: 14px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 22%, transparent); font-family: var(--mono); font-size: 10px; line-height: 14px; padding-left: 5px; color: var(--ink); }
.synth-timeline { position: relative; display: flex; flex-direction: column; gap: 6px; }
.synth-timeline > div { position: relative; height: 14px; padding-left: 16px; }
.synth-timeline b { position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: 10px; font-weight: 400; color: var(--muted); line-height: 14px; }
.synth-timeline i { position: absolute; top: 0; height: 14px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 30%, transparent); margin-left: 16px; max-width: calc(100% - 16px); }
.synth-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.synth-chips span { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 12px; }

@media (max-width: 860px) {
  .synth { grid-template-columns: 1fr; }
  .synth .pipe-arrow { transform: rotate(90deg); justify-self: center; }
}
@media (max-width: 600px) {
  .proj-head h3 { font-size: 26px; }
  .proj-sum { font-size: 15px; }
}

/* Featured fingerprinting project on the Open source page */
.fp-feature { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.fp-feature h3 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; margin: 8px 0 10px; }
.fp-feature .tags { margin-bottom: 16px; }
.fp-feature > div > p { margin: 0 0 16px; max-width: 720px; }
.fp-feature .proj-links a { color: var(--link); }
@media (max-width: 600px) { .fp-feature { padding: 22px; } .fp-feature h3 { font-size: 28px; } }

/* Keeping it accurate panel */
.keep { border: 1px solid color-mix(in srgb, var(--sand) 45%, var(--line)); background: color-mix(in srgb, var(--sand) 6%, var(--surface)); border-radius: 16px; padding: 20px 22px; margin: 4px 0 24px; }
.keep-title { font-family: var(--serif); font-size: 26px; line-height: 1.1; margin: 0 0 6px; }
.keep-title span { color: var(--sand); margin-right: 4px; }
.keep-sub { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.keep-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.keep-grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.keep-grid strong { font-weight: 500; font-size: 15px; }
.keep-grid span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.contrib-title { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
@media (max-width: 860px) { .keep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .keep-grid { grid-template-columns: 1fr; } }

/* Dated impact timeline */
.timeline-impact { list-style: none; padding: 0; margin: 8px 0 0 7px; border-left: 2px solid var(--line); }
.timeline-impact li { position: relative; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; padding: 0 0 20px 22px; }
.timeline-impact li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--sand); }
.timeline-impact .when { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 2px; }
.timeline-impact p { margin: 0 0 4px; font-size: 15px; }
.timeline-impact strong { font-weight: 600; }
.tl-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.tl-links a { color: var(--link); }
.tl-links a::after { content: " ↗"; font-size: 11px; }
@media (max-width: 600px) { .timeline-impact li { grid-template-columns: 1fr; gap: 2px; } }

/* Bigger section titles inside project cards */
.proj .case-label { font-family: var(--serif); font-size: 28px; line-height: 1.15; text-transform: none; letter-spacing: 0; color: var(--ink); display: flex; flex-direction: row; align-items: center; gap: 12px; }
.proj .case-label::before { content: ""; width: 18px; height: 2px; background: var(--sand); flex-shrink: 0; }
@media (max-width: 600px) { .proj .case-label { font-size: 24px; } }

/* Uploads chart in amber */
.gb-bar { background: var(--sand); }
.gb-val { color: var(--sand); font-weight: 500; }
.proj .case-label { color: var(--sand); }
/* Option B: larger mono section titles */
.proj .case-label { font-family: var(--mono); font-size: 15px; font-weight: 500; line-height: 1.3; text-transform: uppercase; letter-spacing: .08em; color: var(--sand); }
.proj .case-label::before { width: 16px; }
@media (max-width: 600px) { .proj .case-label { font-size: 14px; } }

/* Zero-shot explainer v2: cluster map + mean fingerprint */
.zs-hint { margin: 0; font-size: 15px; color: var(--muted); }
.zs-hint strong { color: var(--ink); font-weight: 500; }
.zs-pick { align-self: flex-start; flex-wrap: wrap; }
.zs-pick button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.zs-pick button[data-cluster="new"] { color: var(--sand); }
.zs-pick button[data-cluster="new"][aria-pressed="true"] { background: var(--sand); color: #16140F; }
.zs-fp { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.zs-fp-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.zs-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.zs-dash { display: inline-block; width: 14px; border-top: 1px dashed var(--ink); opacity: .7; margin-right: 6px; vertical-align: middle; }
#zsFp { width: 100%; height: 130px; display: block; }
.zs-checks { display: flex; flex-direction: column; gap: 6px; }
.zs-check { display: grid; grid-template-columns: 22px 170px minmax(0, 1fr); gap: 8px; align-items: baseline; font-size: 14px; }
.zs-mark { font-weight: 600; color: var(--ink); }
.zs-check.bad .zs-mark { color: var(--muted); }
.zs-who { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.zs-verdict { margin: 6px 0 0; font-size: 15px; font-weight: 500; }
.zs-verdict.is-new { color: var(--sand); }
@media (max-width: 600px) { .zs-check { grid-template-columns: 22px minmax(0, 1fr); } .zs-check > span:last-child { grid-column: 2; } }

/* Footer links */
.footer-links { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.footer-links a { display: inline-block; font-size: 14px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); transition: border-color .2s, color .2s; }
.footer-links a::after { content: " ↗"; color: var(--muted); }
.footer-links a:hover { border-color: var(--sand); color: var(--link); }

/* Communities explainer */
.comm { margin: 4px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px 16px; display: flex; flex-direction: column; gap: 14px; }
.comm-pick { align-self: flex-start; }
.comm-pick button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.comm-pick button[data-view="comm"][aria-pressed="true"] { background: var(--sand); color: #16140F; }
#commCanvas { width: 100%; height: 340px; display: block; border: 1px solid var(--line); border-radius: 12px; }
.comm-stats { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.comm-status { margin: 0; font-size: 15px; flex: 1; min-width: 240px; }
.comm-metric { margin: 0; font-family: var(--mono); font-size: 14px; color: var(--sand); white-space: nowrap; }
.comm figcaption { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 600px) { #commCanvas { height: 280px; } .comm { padding: 16px; } }

/* Voronoi week-to-week explainer */
.comm-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.comm-pair canvas { width: 100%; height: 260px; display: block; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.comm-week { margin: 6px 0 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); }
@media (max-width: 700px) { .comm-pair { grid-template-columns: 1fr; } .comm-pair canvas { height: 220px; } }

/* Communities: stats and example communities */
.mini-stats { margin: 16px 0 0; }
.mini-stats .stat-n { font-size: 40px; }
.comm-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 4px 0 16px; }
.comm-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.comm-card strong { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; }
.comm-kind { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--sand); }
.comm-where { font-size: 14px; color: var(--ink); }
.comm-facts { font-size: 13px; color: var(--muted); }
.comm-tools { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .comm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .comm-cards { grid-template-columns: 1fr; } }

/* Project cards: header band + inset content panel */
.proj { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); margin-bottom: 16px; overflow: hidden; transition: border-color .25s ease, box-shadow .25s ease; }
.proj:last-child { border-bottom: 1px solid var(--line); }
.proj-head { padding: 24px 28px; transition: background .2s ease; }
.proj-head:hover { background: color-mix(in srgb, var(--sand) 5%, var(--surface)); }
.proj-head .job-toggle { margin-top: 22px; background: var(--bg); }
.proj:has(.proj-head .job-toggle[aria-expanded="true"]) { border-color: color-mix(in srgb, var(--sand) 55%, var(--line)); box-shadow: 0 10px 40px -24px color-mix(in srgb, var(--sand) 60%, transparent); }
.proj:has(.proj-head .job-toggle[aria-expanded="true"]) .proj-head { background: color-mix(in srgb, var(--sand) 7%, var(--surface)); }
.proj:has(.proj-head .job-toggle[aria-expanded="true"]) .proj-body { background: var(--bg); border-top: 1px solid color-mix(in srgb, var(--sand) 35%, var(--line)); }
.proj-body .section-inner { padding: 0 28px; }
.proj-body .section-inner > :first-child { margin-top: 24px; }
.proj-body .section-inner > .case-row:first-child { border-top: none; padding-top: 0; }
.proj .case-meta-row { padding-bottom: 8px; }
.proj-group .section-title { margin-bottom: 24px; }
@media (max-width: 600px) {
  .proj { border-radius: 16px; }
  .proj-head { padding: 20px 18px; }
  .proj-body .section-inner { padding: 0 18px; }
}


/* Option A: colored hero band per project (blue = audio, orange = recommendation/content) */
.proj[data-topic="audio"] { --topic: var(--audio); --topic-ink: var(--audio-ink); }
.proj[data-topic="content"] { --topic: var(--content); --topic-ink: var(--content-ink); }
.proj { border-top: 4px solid var(--topic); }
.proj-head .case-meta-row { display: none; }
.proj-head:hover { background: color-mix(in srgb, var(--topic) 6%, var(--surface)); }
.proj:has(.proj-head .job-toggle[aria-expanded="true"]) { border-color: var(--topic); box-shadow: 0 14px 44px -26px var(--topic); }
.proj:has(.proj-head .job-toggle[aria-expanded="true"]) .proj-head,
.proj:has(.proj-head .job-toggle[aria-expanded="true"]) .proj-head:hover { background: var(--topic); color: var(--topic-ink); padding-bottom: 28px; }
.proj:has(.proj-head .job-toggle[aria-expanded="true"]) .proj-head .proj-sum,
.proj:has(.proj-head .job-toggle[aria-expanded="true"]) .proj-head .proj-meta { color: color-mix(in srgb, var(--topic-ink) 82%, transparent); }
.proj:has(.proj-head .job-toggle[aria-expanded="true"]) .proj-head .proj-badge { color: var(--topic-ink); border-color: color-mix(in srgb, var(--topic-ink) 55%, transparent); }
.proj:has(.proj-head .job-toggle[aria-expanded="true"]) .proj-head .tg { color: var(--topic-ink); background: color-mix(in srgb, var(--topic-ink) 14%, transparent); border-color: color-mix(in srgb, var(--topic-ink) 40%, transparent); }
.proj:has(.proj-head .job-toggle[aria-expanded="true"]) .proj-head .job-toggle { background: transparent; color: var(--topic-ink); border-color: color-mix(in srgb, var(--topic-ink) 50%, transparent); }
.proj:has(.proj-head .job-toggle[aria-expanded="true"]) .proj-head .case-meta-row { display: flex; margin-top: 20px; padding: 16px 0 0; border-top: 1px solid color-mix(in srgb, var(--topic-ink) 30%, transparent); }
.proj:has(.proj-head .job-toggle[aria-expanded="true"]) .proj-head .case-meta-row span { color: color-mix(in srgb, var(--topic-ink) 75%, transparent); }
.proj:has(.proj-head .job-toggle[aria-expanded="true"]) .proj-body { background: var(--bg); border-top: none; }

.proj[data-topic="reco"] { --topic: var(--reco); --topic-ink: var(--reco-ink); }
.proj[data-topic="research"] { --topic: var(--research); --topic-ink: var(--research-ink); }

/* Sticky top banner with page links */
html { scroll-padding-top: 88px; }
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.topbar .nav { padding-top: 14px; padding-bottom: 14px; }
.topbar .nav nav { gap: 6px; }
.topbar .nav nav a { padding: 7px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.topbar .nav nav a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.topbar .nav nav a.active { background: color-mix(in srgb, var(--sand) 18%, transparent); color: var(--ink); }
.topbar .theme-toggle { margin-left: 8px; }
@media (max-width: 600px) {
  .topbar .nav { padding-top: 10px; padding-bottom: 10px; }
  .topbar .nav nav { gap: 2px; }
  .topbar .nav nav a { padding: 6px 9px; }
}
.topbar .nav nav a { white-space: nowrap; }
@media (max-width: 600px) {
  .topbar .nav { gap: 6px; }
  .topbar .nav nav a { padding: 6px 8px; font-size: 13px; }
  .topbar .theme-toggle { width: 30px; height: 30px; margin-left: 0; }
}

/* Logos under the dates, on the page background */
.cv-side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cv-side .logo-tile { background: transparent; border: none; border-radius: 0; width: 56px; height: 56px; }
.cv-side .logo-tile img { padding: 0; object-fit: contain; object-position: left center; }
.cv-side .logo-wide { width: 96px; }
.cv-side .logo-inria img { filter: none; }
.cv-side .logo-inria { background: transparent; }
.cv-side .logo-mono { font-size: 26px; justify-content: start; place-items: center start; color: var(--muted); }
@media (max-width: 600px) {
  .cv-side { flex-direction: row; align-items: center; gap: 12px; }
  .cv-side .logo-tile { width: 36px; height: 36px; order: -1; }
  .cv-side .logo-wide { width: 64px; }
}
/* Center logos under their dates */
.cv-side { align-items: center; width: max-content; }
.cv-side .logo-tile img { object-position: center; }
.cv-side .logo-mono { place-items: center; }
@media (max-width: 600px) { .cv-side { width: auto; } }
/* Same center line for every date and logo */
.cv-side { width: 100%; align-items: center; }
.cv-side .when { text-align: center; }
@media (max-width: 600px) { .cv-side { align-items: center; width: auto; } .cv-side .when { text-align: left; } }
.cv-side .logo-mono { display: grid; place-items: center; justify-content: center; text-align: center; }

/* Skills as rows, aligned with Experience */
.skill-rows { margin: 0; border-top: 1px solid var(--line); }
.skill-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.skill-row dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--sand); text-align: center; }
.skill-row dd { margin: 0; }
.skill-row .chips li { background: var(--surface); color: var(--ink); font-size: 14px; padding: 6px 13px; }
.skill-row:first-child { padding: 22px 0; }
.skill-expertise .tg { font-size: 13px; padding: 7px 12px; }
#skills .skill-rows { margin-bottom: 28px; }
@media (max-width: 600px) {
  .skill-row { grid-template-columns: 1fr; gap: 10px; }
  .skill-row dt { text-align: left; }
}

/* Fakeprint primer in the AI detection case study */
.fakeprint { margin: 4px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px 14px; display: flex; flex-direction: column; gap: 12px; }
.fakeprint-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fakeprint-head .spectrum-kicker { margin: 0; }
.fakeprint #spectrum { width: 100%; height: 150px; display: block; }
.fakeprint .fp-caption { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.fakeprint figcaption { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }

/* Formula in project write-ups */
.formula { font-family: var(--mono); font-size: 15px; margin: 0 0 16px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; white-space: nowrap; max-width: 680px; }
.formula sub { font-size: 11px; }
.proj .case-content > p.formula { font-size: 15px; }
