/* Tristan Engelborghs — research and engineering portfolio. */

/* ---------- Type: DM Sans, self-hosted (OFL, see assets/fonts/OFL.txt) ---------- */
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dmsans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dmsans-italic-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --brand: #a4452a;
  --brand-strong: #883820;
  --brand-deep: #302b26;
  --brand-soft: #d99d82;
  --sky-50: #f6f3ed;
  --sky-100: #eee8de;
  --sky-200: #e2d7c9;
  --sky-300: #d5beaa;
  --navy-950: #191917;
  --navy-900: #242420;
  --navy-800: #35352f;
  --cool-50: #f4f1eb;
  --cool-100: #efebe4;
  --cool-200: #dfdbd3;
  --ink: #242420;
  --ink-2: #59594f;
  --muted: #69685e;
  --line: #dfdbd3;
  --line-strong: #c9c5bc;
  --red: #dc2626;
  --red-text: #b91c1c;
  --red-50: #fef2f2;

  /* Data colours: validated for colour-vision deficiency on white (dataviz check) */
  --series-1: #a4452a;
  --series-2: #52746b;

  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1312px;
  --gutter: clamp(16px, 4vw, 64px);
  --section: clamp(4.5rem, 2.5rem + 6vw, 9rem);
  --r-xl: 2px;
  --r-lg: 2px;
  --r-md: 2px;
  --r-sm: 2px;
  --shadow-1: 0 1px 2px rgb(15 23 42 / .05), 0 8px 24px -12px rgb(15 23 42 / .16);
  --shadow-2: 0 2px 4px rgb(15 23 42 / .04), 0 24px 48px -20px rgb(15 23 42 / .28);
  --focus: #883820;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.1875rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p, ul, ol, dl, dd, h1, h2, h3, h4 { margin: 0; }
ul, ol { padding: 0; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(3rem, 1.6rem + 5vw, 6rem); font-weight: 300; line-height: 1; letter-spacing: -.03em; }
h2 { font-size: clamp(2.25rem, 1.45rem + 2.6vw, 4rem); font-weight: 300; line-height: 1.08; letter-spacing: -.022em; }
h3 { font-size: clamp(1.375rem, 1.2rem + .5vw, 1.75rem); font-weight: 400; line-height: 1.2; letter-spacing: -.015em; }
h4 { font-size: 1.1875rem; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; font-weight: 300; color: var(--brand); }
p { text-wrap: pretty; }
p, li, dd, figcaption, h1, h2, h3, h4 { overflow-wrap: break-word; }
a { color: var(--brand-strong); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.card--dark :focus-visible, .site-footer :focus-visible { --focus: #fff; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 14px 22px; border-radius: 2px;
  background: var(--navy-900); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.muted { color: var(--ink-2); }
.small { font-size: 1rem; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 3.25rem; padding: .75rem 1.5rem;
  border: 1.5px solid transparent; border-radius: 2px;
  font-size: 1.125rem; font-weight: 500; line-height: 1.2; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .25s var(--ease); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn--lg { min-height: 3.75rem; padding: .9rem 1.75rem; font-size: 1.1875rem; }
.btn--sm { min-height: 2.75rem; padding: .5rem 1.1rem; font-size: 1.0625rem; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / .14) inset, 0 8px 20px -10px rgb(37 99 235 / .7); }
.btn--primary:hover { background: var(--brand-strong); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { background: var(--sky-100); color: var(--navy-900); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / .6); }
.btn--outline-light:hover { background: rgb(255 255 255 / .1); border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em; min-height: 44px;
  font-weight: 500; color: var(--brand-strong);
  text-decoration: underline; text-decoration-color: rgb(29 78 216 / .35);
}
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Kicker: small label with a plus */
.kicker {
  display: inline-flex; align-items: center; gap: .7em; margin-bottom: 1.25rem;
  font-size: 1.0625rem; font-weight: 500; letter-spacing: .005em; color: var(--brand-strong);
}
.kicker::before {
  content: ""; width: 12px; height: 12px; flex: none;
  background:
    linear-gradient(var(--brand), var(--brand)) center / 100% 2.5px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center / 2.5px 100% no-repeat;
}
.kicker--light { color: #fff; }
.kicker--light::before {
  background:
    linear-gradient(#fff, #fff) center / 100% 2.5px no-repeat,
    linear-gradient(#fff, #fff) center / 2.5px 100% no-repeat;
}
.lead { font-size: clamp(1.1875rem, 1.1rem + .35vw, 1.375rem); line-height: 1.55; color: var(--ink-2); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tag {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .35rem .85rem; border-radius: 2px;
  background: var(--sky-100); color: var(--brand-strong);
  font-size: 1rem; font-weight: 500; line-height: 1.35;
}
.tag--glass {
  background: rgb(12 26 61 / .66); color: #fff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.tag--line { background: #fff; border: 1px solid var(--line-strong); color: var(--ink-2); }
.tag--dark { background: rgb(255 255 255 / .12); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); }

.status { display: inline-flex; align-items: center; gap: .55em; font-weight: 500; line-height: 1.3; }
.status::before {
  content: ""; width: .6em; height: .6em; flex: none; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 .22em rgb(37 99 235 / .2);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(37 99 235 / .45); }
  70% { box-shadow: 0 0 0 .5em rgb(37 99 235 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(37 99 235 / 0); }
}

/* ---------- Top bar ---------- */
.topbar { background: var(--sky-50); border-bottom: 1px solid var(--line); font-size: 1rem; }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; column-gap: 22px; min-height: 52px; }
.topbar p { display: inline-flex; align-items: center; gap: .5em; color: var(--ink-2); }
.topbar .icon { width: 1.1em; height: 1.1em; color: var(--brand-strong); }
.topbar__mail { margin-left: auto; }
.topbar__mail a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: none; }
.topbar__mail a:hover { text-decoration: underline; }
@media (max-width: 767.98px) { .topbar__place, .topbar__mail { display: none !important; } }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; background: #fff; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; color: var(--ink); text-decoration: none; border-radius: 10px; }
.brand__mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
  background: var(--brand); color: #fff; font-size: 1rem; font-weight: 600; letter-spacing: .02em;
}
.brand__name { font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.1; }
.brand__name small { display: block; font-size: .9375rem; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .85rem; border-radius: 2px;
  color: var(--ink); font-size: 1.0625rem; font-weight: 500; text-decoration: none;
  transition: background-color .2s var(--ease);
}
.nav__link:hover { background: var(--sky-100); }
.header-cta { white-space: nowrap; }
@media (max-width: 1023.98px) { .nav { display: none; } }
@media (max-width: 479.98px) {
  .site-header__inner { min-height: 76px; gap: 12px; }
  .brand__name small { display: none; }
  .header-cta { padding-inline: 1rem; }
  .header-cta .icon { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  padding-block: clamp(2rem, 1rem + 4vw, 5.5rem) clamp(3.5rem, 2rem + 5vw, 7rem);
  overflow: clip;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; right: -12%; top: -30%;
  width: min(1100px, 90vw); aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(211 227 251 / .8), rgb(211 227 251 / 0));
  pointer-events: none;
}
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__lead { max-width: 34rem; margin-top: 1.75rem; font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.4375rem); line-height: 1.55; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.25rem; }
.hero__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  max-width: 36rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); list-style: none;
}
.hero__facts strong { display: block; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.05; color: var(--ink); }
.hero__facts span { display: block; margin-top: 6px; font-size: 1rem; line-height: 1.4; color: var(--ink-2); }
@media (max-width: 519.98px) { .hero__facts { grid-template-columns: 1fr; gap: 14px; } }
.hero__media { position: relative; }
.hero__figure { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-2); background: var(--navy-900); }
.hero__figure video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero__place { position: absolute; z-index: 1; left: 20px; top: 20px; right: 20px; }
.hero__place .tag--glass { font-size: 1rem; padding: .45rem .95rem; }
.hero__card {
  position: relative; z-index: 2; display: grid; gap: 4px;
  width: min(100% - 32px, 360px); margin: -56px 16px 0 auto; padding: 22px 26px 24px;
  border-radius: var(--r-lg); background: rgb(255 255 255 / .94);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: var(--shadow-2), inset 0 0 0 1px rgb(255 255 255 / .6);
}
.hero__card-label { font-size: 1.0625rem; font-weight: 500; color: var(--brand-strong); }
.hero__card-big {
  display: inline-flex; align-items: center; min-height: 48px; justify-self: start;
  font-size: clamp(1.875rem, 1.6rem + 1vw, 2.375rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.1;
  color: var(--ink); text-decoration: none;
}
.hero__card-big:hover { color: var(--brand-strong); text-decoration: underline; text-decoration-thickness: 2px; }
.hero__card-foot { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(40px, 5vw, 80px); } }
@media (min-width: 1280px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .hero__media { margin-bottom: 48px; }
  .hero__card { position: absolute; right: -28px; bottom: -48px; margin: 0; width: 330px; }
}

/* ---------- Sticky in-page navigation ---------- */
.subnav { position: relative; z-index: 40; width: min(100% - 2 * var(--gutter), var(--container) + 32px); margin: 0 auto; }
.subnav__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 16px 0; border-block: 1px solid var(--line); }
.subnav__label { width: 100%; font-size: 1rem; font-weight: 500; color: var(--ink-2); }
.subnav__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.subnav__list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border-radius: 2px;
  border: 1px solid var(--line-strong); color: var(--ink); font-size: 1.0625rem; font-weight: 500; text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.subnav__list a:hover { background: var(--sky-100); }
.subnav__list a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.subnav__aside { display: none; }
@media (min-width: 900px) {
  .subnav { position: sticky; top: 12px; }
  .subnav__inner {
    flex-wrap: nowrap; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: 22px;
    background: rgb(255 255 255 / .9); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 1px 2px rgb(15 23 42 / .04); transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
  }
  .subnav.is-stuck .subnav__inner { box-shadow: 0 16px 40px -18px rgb(15 23 42 / .35); border-color: rgb(203 213 225 / .8); }
  .subnav__label { display: none; }
  .subnav__list { flex-wrap: nowrap; gap: 2px; }
  .subnav__list a { border-color: transparent; padding: .4rem .95rem; }
  .subnav__list a.is-active { background: var(--sky-100); border-color: transparent; color: var(--brand-strong); }
  .subnav__aside { display: flex; margin-left: auto; }
  .subnav__cta { min-height: 48px; padding-inline: 1.3rem; font-size: 1.0625rem; white-space: nowrap; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--first { padding-top: clamp(3.5rem, 2rem + 4vw, 6.5rem); }
.section--tint { background: var(--cool-50); }
@media (min-width: 768px) {
  .section--tint {
    margin-inline: clamp(12px, 1.4vw, 24px); border-radius: clamp(28px, 3vw, 48px);
    background: radial-gradient(60% 50% at 100% 0%, rgb(230 239 253 / .95), rgb(230 239 253 / 0) 70%), var(--cool-50);
  }
}
.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section-head h2 { max-width: 16ch; }
.section-head .lead { max-width: 36rem; }
@media (min-width: 1024px) {
  .section-head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: 64px; }
  .section-head--split .lead { padding-bottom: .4rem; }
}

/* ---------- Rows with fine lines ---------- */
.tasks { display: grid; list-style: none; border-top: 1px solid var(--line); }
.tasks li { border-bottom: 1px solid var(--line); }
.task {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px;
  height: 100%; padding: 26px 12px; color: inherit; text-decoration: none; border-radius: var(--r-md);
  transition: background-color .25s var(--ease);
}
.task:hover { background: var(--sky-50); }
.task__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
  background: var(--sky-100); color: var(--brand-strong);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.task__icon .icon { width: 26px; height: 26px; }
.task__body { display: grid; gap: 4px; }
.task__title { font-size: clamp(1.3125rem, 1.2rem + .4vw, 1.5625rem); font-weight: 400; letter-spacing: -.015em; line-height: 1.25; color: var(--ink); }
.task__text { font-size: 1.125rem; line-height: 1.5; color: var(--ink-2); }
.task__arrow {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--ink);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.task:hover .task__arrow { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateX(2px); }
.task:hover .task__icon { background: var(--brand); color: #fff; }
@media (max-width: 479.98px) {
  .task { grid-template-columns: auto minmax(0, 1fr); padding: 22px 4px; gap: 16px; align-items: start; }
  .task__icon { width: 48px; height: 48px; border-radius: 16px; }
  .task__arrow { display: none; }
}
@media (min-width: 900px) {
  .tasks--2 { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .task { padding: 30px 16px; }
}

/* ---------- Split layouts, steps, key facts ---------- */
.split { display: grid; gap: clamp(32px, 4vw, 64px); align-items: start; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--center { align-items: center; }
}
.steps { list-style: none; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: clamp(56px, 4vw + 36px, 96px) minmax(0, 1fr); gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.step__num { font-size: clamp(2.25rem, 1.6rem + 2vw, 3.5rem); font-weight: 200; line-height: .95; letter-spacing: -.05em; color: var(--brand); font-variant-numeric: tabular-nums; }
.step__title { font-size: clamp(1.3125rem, 1.2rem + .4vw, 1.5625rem); margin-bottom: .4rem; }
.step p { color: var(--ink-2); }
.steps--3 { border-top: 0; }
@media (min-width: 1024px) {
  .steps--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
  .steps--3 .step { grid-template-columns: 1fr; gap: 14px; align-content: start; border-top: 1px solid var(--line); border-bottom: 0; }
}

.keyfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .keyfacts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.keyfacts > div { padding: 20px 22px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.keyfacts dt { font-size: 1rem; line-height: 1.35; color: var(--ink-2); }
.keyfacts dd { margin-top: 8px; font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem); font-weight: 300; letter-spacing: -.035em; line-height: 1; color: var(--ink); }
.keyfacts dd small { display: block; margin-top: 10px; font-size: .9375rem; font-weight: 400; letter-spacing: 0; line-height: 1.35; color: var(--ink-2); }
.notice {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 20px 24px; border-radius: var(--r-lg); background: var(--cool-100); border: 1px solid var(--cool-200);
}
.notice__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--brand-strong); }
.notice p { color: var(--ink-2); font-size: 1.0625rem; }
.notice strong { color: var(--ink); font-weight: 600; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: clamp(16px, 1.6vw, 24px); list-style: none; }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.cards--2 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cards > li { display: flex; min-width: 0; }
.cards > li > .card { flex: 1; min-width: 0; }
.card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .85rem;
  padding: clamp(24px, 1.4rem + 1vw, 40px); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line);
}
.card h3 { margin: 0; }
.card p { color: var(--ink-2); }
.card .fine { font-size: 1rem; line-height: 1.5; color: var(--muted); }
.card__links { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: auto; }
.card--media { padding: 0; overflow: hidden; }
.card__media { width: 100%; aspect-ratio: 16 / 9; background: var(--navy-900); }
.card__media video, .card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; flex: 1; width: 100%; padding: clamp(22px, 1.2rem + 1vw, 34px); }
.card--dark {
  isolation: isolate; overflow: hidden; border-color: transparent; color: #fff;
  background:
    radial-gradient(90% 70% at 100% 0%, rgb(96 165 250 / .30), rgb(96 165 250 / 0) 60%),
    radial-gradient(70% 60% at 0% 100%, rgb(37 99 235 / .45), rgb(37 99 235 / 0) 70%),
    linear-gradient(160deg, var(--brand-deep) 0%, var(--navy-900) 100%);
}
.card--dark h2, .card--dark h3 { color: #fff; }
.card--dark p { color: #ddd9cf; }
.card--dark a:not(.btn) { color: #fff; }
.card__title-lg { font-size: clamp(1.75rem, 1.4rem + 1.1vw, 2.5rem); font-weight: 300; letter-spacing: -.022em; line-height: 1.08; }
.tiles { display: grid; gap: 10px; width: 100%; margin: .75rem 0 .25rem; list-style: none; }
@media (min-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { display: grid; gap: 8px; padding: 18px 20px; border-radius: var(--r-md); background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); }
.tile__num { font-size: clamp(2.25rem, 1.8rem + 1.2vw, 3rem); font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.tile__text { font-size: 1.0625rem; line-height: 1.45; color: #ddd9cf; }
.tile__text strong { display: block; color: #fff; font-weight: 600; }
.clinical-grid { display: grid; gap: clamp(16px, 1.6vw, 24px); margin-bottom: clamp(16px, 1.6vw, 24px); }
@media (min-width: 1024px) { .clinical-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* ---------- Charts ---------- */
.viz-card { width: 100%; padding: clamp(22px, 1.2rem + 1.5vw, 40px); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); }
.viz-card + .viz-card, .viz-pair + .viz-card, .viz-card + .viz-pair { margin-top: clamp(16px, 1.6vw, 24px); }
.viz-pair { display: grid; gap: clamp(16px, 1.6vw, 24px); }
.viz-pair > .viz-card { margin-top: 0; }
@media (min-width: 1100px) { .viz-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.viz { margin: 0; position: relative; }
.viz__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 1.25rem; }
.viz__title { font-size: clamp(1.3125rem, 1.2rem + .4vw, 1.5625rem); font-weight: 400; letter-spacing: -.015em; line-height: 1.25; color: var(--ink); }
.viz__sub { display: block; margin-top: 4px; font-size: 1.0625rem; color: var(--ink-2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; font-size: 1rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.legend .sw--dot { border-radius: 50%; }
.legend .sw--diamond { width: 11px; height: 11px; border-radius: 2px; transform: rotate(45deg); }
.legend .sw--plus {
  width: 12px; height: 12px; border-radius: 0;
  background:
    linear-gradient(var(--red), var(--red)) center / 100% 2.5px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 2.5px 100% no-repeat;
}
.legend .sw--line { width: 2px; height: 14px; border-radius: 0; background: var(--ink); }
.viz__note { margin-top: 1rem; font-size: 1rem; line-height: 1.5; color: var(--muted); }

/* Grouped bars (LIBERO) */
.viz { --bar: 12px; }
.viz-row { display: grid; grid-template-columns: minmax(0, 14.5rem) minmax(0, 1fr) 4.4rem; align-items: center; gap: 16px; padding: 10px 0; }
.viz-label { font-size: 1.0625rem; line-height: 1.3; color: var(--ink); }
.viz-track {
  position: relative; display: grid; gap: 2px; padding: 2px 0;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: 25% 100%; background-repeat: repeat-x;
  border-left: 1px solid var(--line-strong); box-shadow: inset -1px 0 0 var(--line);
}
.viz-bar { position: relative; height: var(--bar); width: var(--w); border-radius: 0 4px 4px 0; background: var(--c); outline-offset: 2px; }
.viz-bar::after { content: ""; position: absolute; inset: -4px -6px -4px 0; }
.viz-bar:hover, .viz-bar:focus-visible { filter: brightness(1.12); }
.viz-delta { font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--ink-2); text-align: right; white-space: nowrap; }
.viz-axis { display: grid; grid-template-columns: minmax(0, 14.5rem) minmax(0, 1fr) 4.4rem; gap: 16px; margin-top: 4px; }
.viz-ticks { position: relative; height: 20px; font-size: .9375rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.viz-ticks span { position: absolute; top: 0; transform: translateX(-50%); }
.viz-ticks span:first-child { transform: none; }
.viz-ticks span:last-child { transform: translateX(-100%); }
.viz-axis .unit { font-size: .9375rem; color: var(--muted); text-align: right; }
@media (max-width: 640px) {
  .viz-row { grid-template-columns: minmax(0, 1fr) 4rem; grid-template-areas: "label label" "track delta"; gap: 6px 10px; }
  .viz-label { grid-area: label; }
  .viz-track { grid-area: track; }
  .viz-delta { grid-area: delta; }
  .viz-axis { grid-template-columns: minmax(0, 1fr) 4rem; }
  .viz-axis .spacer { display: none; }
}

/* Tooltip shared by every chart */
.viz-tooltip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 190px; max-width: 300px;
  padding: 12px 14px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-2); font-size: 1rem; line-height: 1.4; opacity: 0; transform: translateY(4px);
  transition: opacity .12s var(--ease), transform .12s var(--ease);
}
.viz-tooltip.show { opacity: 1; transform: none; }
.tt-title { color: var(--ink-2); margin-bottom: 6px; }
.tt-row { display: flex; align-items: center; gap: 8px; }
.tt-key { width: 14px; height: 2px; border-radius: 2px; flex: none; }
.tt-val { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.tt-name { color: var(--ink-2); }

/* Table view (the accessible twin of every chart) */
.viz-table { margin-top: 1.25rem; font-size: 1rem; }
.viz-table summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--brand-strong); font-weight: 500; }
.table-wrap { overflow-x: auto; margin-top: 8px; }
.viz-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.viz-table th, .viz-table td { text-align: right; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top; }
.viz-table th:first-child, .viz-table td:first-child, .viz-table .left { text-align: left; white-space: normal; }
.viz-table thead th { color: var(--ink-2); font-weight: 600; }

/* SVG charts: dot plot and heatmaps */
.viz-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.viz-svg text { fill: var(--ink-2); font-size: 15px; }
.viz-svg .tick { fill: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.viz-svg .grid { stroke: var(--line); stroke-width: 1; }
.viz-svg .axis { stroke: var(--line-strong); stroke-width: 1; }
.viz-svg .group-label { fill: var(--ink); font-size: 15px; font-weight: 600; }
.viz-svg .row-label { fill: var(--ink); font-size: 15px; }
.viz-svg .row-sub { fill: var(--muted); font-size: 13px; }
.viz-svg .hit { fill: transparent; }
.viz-svg .mark { stroke: #fff; stroke-width: 2; }
.viz-svg .link { stroke: var(--line-strong); stroke-width: 2; }
.viz-svg .cell { stroke: #fff; stroke-width: 2; }
.viz-svg .cell-num { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.viz-svg .onset { stroke: var(--ink); stroke-width: 1.5; }
.viz-svg .soz-mark { fill: var(--red); }
.viz-svg [tabindex]:focus { outline: none; }
.viz-svg [tabindex]:focus-visible { stroke: var(--focus); stroke-width: 3; }
.scale { display: flex; align-items: center; gap: 10px; font-size: .9375rem; color: var(--muted); }
.scale__bar { width: 150px; height: 10px; border-radius: 2px; background: linear-gradient(90deg, #eef4fd, #cde2fb, #86b6ef, #3987e5, #1c5cab, #0d366b); }
.viz-empty { padding: 28px; border-radius: var(--r-md); background: var(--sky-50); color: var(--ink-2); font-size: 1.0625rem; }
.synthetic-badge {
  display: inline-flex; align-items: center; gap: .45em; padding: .3rem .75rem; border-radius: 2px;
  background: var(--red-50); color: var(--red-text); font-size: .9375rem; font-weight: 600; letter-spacing: .02em;
}

/* ---------- Before / after slider ---------- */
.compare {
  --pos: 50%; position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden;
  background: var(--navy-900); user-select: none; touch-action: pan-y; box-shadow: var(--shadow-2);
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare .divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.compare .handle {
  position: absolute; top: 50%; left: var(--pos); width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-2); display: grid; place-items: center; color: var(--navy-900); pointer-events: none;
}
.compare .handle svg { width: 22px; height: 22px; }
.compare .photo-tag { position: absolute; top: 18px; pointer-events: none; }
.compare .photo-tag--before { left: 18px; }
.compare .photo-tag--after { right: 18px; }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare input[type="range"]:focus-visible ~ .handle { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- About ---------- */
.rows { list-style: none; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rows .when { font-size: 1.0625rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 3px; }
.rows h3 { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); }
.rows .where { margin-top: 2px; color: var(--brand-strong); font-weight: 500; font-size: 1.0625rem; }
.rows p { margin-top: 6px; color: var(--ink-2); font-size: 1.0625rem; }
@media (max-width: 519.98px) { .rows li { grid-template-columns: 1fr; gap: 4px; } }
.group-title { margin: 2.5rem 0 1rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.group-title:first-child { margin-top: 0; }
.skillset { display: grid; gap: 18px; }
.skillset h4 { margin-bottom: 10px; font-size: 1.0625rem; color: var(--ink-2); font-weight: 500; }
.langs { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; font-size: 1.125rem; color: var(--ink-2); }
.langs strong { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(4.5rem, 3rem + 5vw, 8rem) 0 32px; color: #ddd9cf;
  background:
    radial-gradient(55% 60% at 90% 0%, rgb(96 165 250 / .22), rgb(96 165 250 / 0) 70%),
    radial-gradient(40% 50% at 0% 30%, rgb(37 99 235 / .35), rgb(37 99 235 / 0) 70%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.site-footer a { color: #fff; }
.site-footer .btn--light, .site-footer .btn--light:hover { color: var(--navy-900); }
.footer__cta { padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); border-bottom: 1px solid rgb(255 255 255 / .16); }
.footer__line { max-width: 14ch; font-size: clamp(2.75rem, 1.6rem + 4.4vw, 6rem); font-weight: 300; line-height: 1.02; letter-spacing: -.034em; color: #fff; }
.footer__line em { font-style: italic; font-weight: 300; color: var(--brand-soft); }
.footer__sub { max-width: 34rem; margin: 1.5rem 0 2rem; font-size: 1.25rem; color: #ddd9cf; }
.footer__grid { display: grid; gap: 40px; padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0; }
.footer__title { margin-bottom: 1rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: .02em; color: #fff; }
.footer__list { list-style: none; display: grid; }
.footer__list a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__list a:hover { text-decoration: underline; }
.footer__grid p { margin-bottom: .75rem; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / .16); font-size: 1.0625rem; color: #cac5ba;
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 48px; } }

/* ---------- Calm reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .topbar, .subnav, .compare input, .hero::before { display: none !important; }
  .section--tint, .card--dark, .site-footer { background: #fff !important; color: #000 !important; }
}

/* Refined editorial layout */
body { background: #fcfbf8; }
h1, h2 { font-weight: 450; }
h1 { font-size: clamp(3.1rem, 1.7rem + 3.7vw, 5.6rem); letter-spacing: -.055em; line-height: 1.03; }
h1 em, h2 em { font-weight: 450; font-style: normal; }
.topbar { background: #efebe4; font-size: .85rem; }
.topbar__inner { min-height: 38px; }
.site-header { background: #fcfbf8; border-bottom: 1px solid var(--line); }
.site-header__inner { min-height: 88px; }
.brand, .brand__mark, .nav__link { border-radius: 0; }
.brand__mark { background: var(--ink); }
.brand__name { font-size: 1.05rem; }
.btn { border-radius: 2px; font-size: 1rem; box-shadow: none; }
.btn--primary { background: var(--ink); }
.btn--primary:hover { background: var(--brand); }
.nav__link { font-size: .95rem; }
.hero { padding-block: clamp(3rem, 5vw, 5.5rem); }
.hero::before { display: none; }
.hero__grid { align-items: center; }
.hero__media { margin: 0; min-width: 0; }
.hero__lead { font-size: 1.18rem; max-width: 32rem; }
.hero__facts { gap: 14px; }
.hero__facts strong { font-weight: 500; }
.hero__facts span { font-size: .85rem; }
.kicker, .eyebrow { font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.kicker::before { width: 7px; height: 7px; background: currentColor; }
.status::before { animation: none; box-shadow: none; background: var(--brand); }
.subnav { width: 100%; background: #fcfbf8f5; top: 0; border-block: 1px solid var(--line); }
.subnav__inner { max-width: var(--container); width: calc(100% - 2 * var(--gutter)); margin-inline: auto; border: 0; border-radius: 0; padding: 10px 0; background: none; box-shadow: none; }
.subnav.is-stuck .subnav__inner { box-shadow: none; }
.subnav__list a { border-radius: 0; font-size: .86rem; padding-inline: .8rem; }
.subnav__list a.is-active { background: transparent; color: var(--brand); border-color: transparent; box-shadow: inset 0 -2px var(--brand); }
.section--tint { margin-inline: 0; border-radius: 0; background: #f1eee7; }
.card--dark, .site-footer { background: #262722; }
.card--dark p, .footer__sub { color: #ddd9cf; }
.result-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 28px; border-block: 1px solid var(--line-strong); }
.result-strip > div { padding: 30px 26px; border-right: 1px solid var(--line); }
.result-strip > div:first-child { padding-left: 0; }
.result-strip > div:last-child { border-right: 0; }
.result-strip strong { display: block; font-size: clamp(3.5rem,5.5vw,5rem); line-height: 1.2; letter-spacing: -.06em; font-weight: 450; margin-block: 14px 8px; }
.result-strip p { color: var(--ink-2); font-size: .98rem; max-width: 30ch; }
.result-strip .eyebrow { color: var(--brand); }
.card, .viz-card { box-shadow: none; }
.patient-bars { display: grid; gap: 9px; }
.patient-row { display: grid; grid-template-columns: 42px minmax(0,1fr) 46px; gap: 14px; align-items: center; font-size: .85rem; font-variant-numeric: tabular-nums; }
.patient-row strong { font-weight: 500; text-align: right; }
.bar-track { display: block; background: #efebe4; height: 12px; }
.bar-track > span { display: block; height: 100%; background: var(--brand); }
.window-bars { display: grid; gap: 25px; }
.window-row > div { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; margin-bottom: 9px; }
.window-row strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.window-row:not(:first-child) .bar-track > span { background: #7b8171; }
.research-context { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 22px; }
.research-context p { font-size: .98rem; color: var(--ink-2); margin-top: 12px; }
.link-arrow { text-decoration-color: currentColor; }
@media (min-width:1024px) { .hero__grid { grid-template-columns: 1.12fr 1fr; gap: 6vw; } }
@media (max-width:767px) {
 .result-strip { grid-template-columns: 1fr; }
 .result-strip > div, .result-strip > div:first-child { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
 .result-strip > div:last-child { border-bottom: 0; }
 .result-strip p { max-width: none; }
 .subnav__label, .subnav__aside { display: none; }
 .subnav__list { flex-wrap: nowrap; overflow-x: auto; width: 100%; }
 .subnav__list a { white-space: nowrap; }
 .hero__facts { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .hero__facts strong { font-size: 1.65rem; }
 .hero__facts span { font-size: .76rem; }
 .header-cta { font-size: .85rem; padding: .6rem .8rem; }
 .brand__name { font-size: .9rem; }
 .brand__mark { width: 34px; height: 34px; }
 .hero__actions .btn { padding-inline: 1rem; }
 .window-row > div { font-size: .8rem; }
}

.chart-axis { display: flex; justify-content: space-between; font-size: .73rem; color: var(--muted); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.patient-axis { margin-left: 56px; margin-right: 60px; }

/* Personal introduction and direct project navigation. */
.hero__intro { min-width: 0; }
.hero__intro h1 { font-size: clamp(2.8rem, 1.6rem + 3.7vw, 5.3rem); }
.hero__personal { margin-top: 1.2rem; max-width: 32rem; color: var(--ink-2); font-size: 1.05rem; line-height: 1.65; }
.hero__availability { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.project-overview { min-width: 0; }
.project-overview__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.project-overview h2 { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.preview-motion { background: none; border: 0; border-bottom: 1px solid var(--line-strong); padding: 10px 0; font-size: .75rem; cursor: pointer; }
.preview-motion span { margin-left: 7px; }
.project-overview__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 16px; list-style: none; }
.project-tile { display: block; text-decoration: none; color: var(--ink); }
.project-tile__visual { position: relative; aspect-ratio: 16 / 9; background: #262722; overflow: hidden; }
.project-tile__visual img, .project-tile__visual video { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.project-tile:hover img, .project-tile:hover video { transform: scale(1.04); }
.project-tile__caption { display: flex; gap: 8px; justify-content: space-between; align-items: start; padding: 10px 0 0; }
.project-tile__caption strong { display: block; font-size: .91rem; font-weight: 500; line-height: 1.3; }
.project-tile__caption small { display: block; font-size: .72rem; color: var(--muted); margin-top: 4px; }
.project-tile__arrow { color: var(--brand); transition: transform .2s; }
.project-tile:hover .project-tile__arrow { transform: translate(2px,-2px); }
.project-tile__eeg { display: flex; align-items: center; color: #dba184; background-color: #262722; background-image: linear-gradient(#ffffff08 1px,transparent 1px),linear-gradient(90deg,#ffffff08 1px,transparent 1px); background-size: 24px 24px; }
.project-tile__eeg svg { width: 100%; }
.tile-annotation { position: absolute; top: 10px; left: 12px; font-size: .52rem; letter-spacing: .12em; color: #dba184; }
.tile-annotation--bottom { top: auto; bottom: 8px; color: #c7c7bd; letter-spacing: .03em; }
.project-tile__vla { background: #e8e2d7; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.policy-flow { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #56574d; }
.policy-flow .icon { width: 25px; height: 25px; }
.policy-prompt { font-size: .65rem; line-height: 1.3; }
.policy-score { display: flex; align-items: baseline; gap: 10px; color: var(--brand); }
.policy-score strong { font-size: clamp(1.5rem,2.5vw,2.5rem); font-weight: 450; letter-spacing: -.05em; line-height: 1; }
.policy-score span { font-size: .58rem; color: var(--ink-2); }
.tile-video-label { position: absolute; top: 9px; left: 10px; background: #181a18cc; color: #fff; padding: 4px 6px; font-size: .52rem; letter-spacing: .09em; pointer-events: none; }
@media (min-width:1024px) { .hero__grid { grid-template-columns: 1fr 1.15fr; gap: 5vw; } .hero__intro h1 { font-size: clamp(2.8rem, 1.4rem + 3.3vw, 4.9rem); } }
@media (min-width:768px) { .project-overview__grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width:479px) { .project-overview__grid { gap: 20px 12px; } .project-tile__visual { aspect-ratio: 4 / 3; } .project-tile__caption strong { font-size: .82rem; } .project-tile__caption small { font-size: .65rem; } .project-tile__vla { padding: 10px; } .policy-flow { gap: 4px; } .policy-flow .icon { width: 18px; height: 18px; } .policy-score { flex-wrap: wrap; gap: 4px; } .policy-score span { font-size: .53rem; } }
@media (prefers-reduced-motion:reduce) { .project-tile img, .project-tile video, .project-tile__arrow { transition: none; } }

/* A quiet opening, followed by the full visual project index. */
.project-gallery { padding-block: clamp(2.5rem,4vw,4rem) clamp(3rem,5vw,5rem); border-top: 1px solid var(--line); background: #f4f1eb; }
.project-overview__head { margin-bottom: 26px; }
.project-overview__grid { row-gap: 28px; column-gap: 24px; }
.project-overview h2 { font-size: .85rem; }
@media (min-width:1024px) { .hero__grid { grid-template-columns: 1.1fr 1fr; gap: 7vw; } }
@media (max-width:767px) { .project-overview__grid { column-gap: 12px; } }

/* Generative neural-network artwork, drawn on a canvas by site.js. */
.hero-network { min-width: 0; }
.signal-art { position: relative; background: transparent; }
.signal-art > canvas { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; }
.signal-toggle { display: grid; place-items: center; position: absolute; bottom: 0; right: 0; width: 44px; height: 44px; background: transparent; border: 0; color: var(--muted); opacity: .45; cursor: pointer; }
.signal-toggle:hover, .signal-toggle:focus-visible { opacity: 1; }
.signal-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.2; }
html:not(.js) .signal-toggle { display: none; }
@media (prefers-reduced-motion:reduce) { .signal-toggle { display: none; } }
