/* Immunosponge — site styles
   Layout: left-aligned editorial column on a cool, green-biased paper; one bold moment (the hero
   capture simulation), everything else quiet. Brand: green #1C9770, DM Sans SemiBold, Inter. */

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-opsz-normal.woff2") format("woff2-variations");
  font-weight: 100 1000; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-ext-opsz-normal.woff2") format("woff2-variations");
  font-weight: 100 1000; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* DM Sans has no Greek; borrow Inter's for β in IL-1β */
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/inter-greek-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-greek-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

:root {
  --paper: #f4f7f5;
  --surface: #ffffff;
  --ink: #10261f;
  --ink-2: #4a5f57;
  --line: #d3dfd9;
  --gel: #1c9770;
  --gel-deep: #137353;
  --gel-soft: #e2f0e9;
  --on-gel: #ffffff;
  --signal: #c63f69;
  --todo: #b3261e;
  --hero-ink: #0e4f3c;

  --font-display: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --step-hero: clamp(2.5rem, 1.4rem + 4.6vw, 4.5rem);
  --step-1: clamp(1.9rem, 1.4rem + 1.9vw, 2.75rem);
  --step-2: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  --step-3: 1.125rem;
  --step-body: 1.0625rem;
  --step-small: 0.875rem;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --band: clamp(56px, 8vw, 112px);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c1814; --surface: #11211b; --ink: #e2ede8; --ink-2: #9cb2a9; --line: #233a31;
    --gel: #3cc495; --gel-deep: #3cc495; --gel-soft: #13302a; --on-gel: #04140e; --signal: #ef7398; --todo: #ff8a80; --hero-ink: #e2ede8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0c1814; --surface: #11211b; --ink: #e2ede8; --ink-2: #9cb2a9; --line: #233a31;
  --gel: #3cc495; --gel-deep: #3cc495; --gel-soft: #13302a; --on-gel: #04140e; --signal: #ef7398; --todo: #ff8a80; --hero-ink: #e2ede8;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--gel-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gel); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-1); }
h2 { font-size: var(--step-1); }
h3 { font-size: var(--step-2); letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; max-width: 64ch; }
.prose { display: grid; gap: 1em; }
.lede { font-size: 1.1875rem; line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-2); }
.small { font-size: var(--step-small); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band); }
.band--tint { background: var(--gel-soft); }
.band--rule { border-top: 1px solid var(--line); }
.stack { display: grid; gap: 1.25rem; }
.stack-lg { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.015em; }
.brand svg { width: 28px; height: 28px; }
.site-header .brand svg { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.1; }
.brand-tag { font: 500 0.75rem/1.2 var(--font-body); letter-spacing: 0; color: var(--ink-2); }
.nav { display: flex; gap: clamp(1rem, 2.4vw, 2rem); align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.975rem; padding-block: 0.4rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gel); }
.nav a.btn { padding: 0.5rem 0.95rem; font-size: 0.95rem; color: var(--on-gel); }
.nav a.btn:hover { color: var(--paper); }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem; background: none; border: 1px solid var(--line);
    color: var(--ink); font: 500 0.95rem var(--font-body); padding: 0.45rem 0.8rem; border-radius: 999px; cursor: pointer;
  }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
         background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1rem; }
  .nav.is-open { display: flex; }
  .nav a { padding-block: 0.75rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--gel-deep); }
  .nav a.btn { margin-top: 0.75rem; justify-content: center; border-bottom: 0; padding-block: 0.8rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 600 1rem/1 var(--font-body); text-decoration: none;
  padding: 0.85rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--gel-deep); color: var(--on-gel); cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding-block: clamp(40px, 7vw, 96px); }
.hero h1 { font-size: var(--step-hero); line-height: 1.02; letter-spacing: -0.03em; }
.hero-copy { display: grid; gap: 1.5rem; min-width: 0; }
.hero-status { color: var(--ink-2); font-size: var(--step-small); display: flex; gap: 0.6rem; align-items: baseline; }
.hero-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gel); flex: none; transform: translateY(-1px); }
.capture { position: relative; min-width: 0; }
.capture canvas { width: 100%; height: clamp(300px, 38vw, 480px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); touch-action: pan-y; cursor: crosshair; }
.capture figcaption { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-size: var(--step-small); color: var(--ink-2); }
.key { display: inline-flex; align-items: center; gap: 0.45rem; }
.key i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.key .k-gel { background: var(--gel-soft); border: 1.5px solid var(--gel); width: 14px; height: 14px; }
.key .k-sig { background: var(--signal); width: 7px; height: 7px; }
.key .k-rel { background: var(--gel); width: 6px; height: 6px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .capture canvas { height: 300px; }
}

/* Page intro (inner pages) */
.intro { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.intro .wrap { display: grid; gap: 1.25rem; }
.intro h1 { font-size: var(--step-hero); line-height: 1.02; letter-spacing: -0.03em; max-width: 16ch; }
.crumb { font-size: var(--step-small); color: var(--ink-2); }

/* Section heads */
.section-head { display: grid; gap: 1rem; max-width: 46rem; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Mechanism */
.mech { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.mech article { display: grid; gap: 0.75rem; align-content: start; }
.mech svg { width: 100%; height: auto; aspect-ratio: 16 / 10; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.mech h3 { margin-top: 0.5rem; }
@media (max-width: 860px) { .mech { grid-template-columns: 1fr; } .mech svg { max-width: 420px; } }
.sch-gel { fill: var(--gel-soft); stroke: var(--gel); stroke-width: 1.5; }
.sch-sig { fill: var(--signal); }
.sch-rel { fill: var(--gel); }
.sch-bed { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 4 4; }
.sch-label { fill: var(--ink-2); font: 500 11px var(--font-body); }

/* Dressing viewer */
.viewer { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.viewer > * { min-width: 0; }
.viewer-stage { position: relative; background: radial-gradient(120% 90% at 50% 40%, var(--surface), var(--gel-soft)); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); overflow: hidden; }
.viewer-stage model-viewer { width: 100%; height: clamp(320px, 42vw, 520px); --poster-color: transparent; background: transparent; }
.viewer-hint { position: absolute; left: 16px; bottom: 14px; font-size: var(--step-small); color: var(--ink-2); background: color-mix(in srgb, var(--surface) 80%, transparent); padding: 0.3rem 0.65rem; border-radius: 999px; pointer-events: none; }
.viewer-fallback { display: grid; place-items: center; height: 100%; padding: 2rem; color: var(--ink-2); text-align: center; }
@media (max-width: 860px) { .viewer { grid-template-columns: 1fr; } }

.specs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.7rem 1.5rem; margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.specs dt { color: var(--ink-2); font-size: var(--step-small); padding-top: 0.15rem; }
.specs dd { margin: 0; font-weight: 500; }

/* Track rows */
.tracks { border-top: 1px solid var(--line); }
.track { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) auto; gap: 1rem clamp(1.5rem, 4vw, 3rem); padding-block: clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--line); align-items: start; }
.track > * { min-width: 0; }
.track h3 { display: grid; gap: 0.6rem; justify-items: start; }
.track .more { white-space: nowrap; font-weight: 500; }
@media (max-width: 760px) { .track { grid-template-columns: 1fr; } }
.pill { display: inline-block; font: 500 0.8rem/1 var(--font-body); letter-spacing: 0.01em; padding: 0.38rem 0.65rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: var(--surface); }
.pill--lead { background: var(--gel-deep); color: var(--on-gel); border-color: transparent; }

/* Numbers */
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.figure { display: grid; gap: 0.4rem; padding-top: 1rem; border-top: 2px solid var(--ink); }
.figure b { font: 600 clamp(2.2rem, 1.6rem + 2vw, 3.2rem)/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.figure span { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 520px) { .figures { grid-template-columns: 1fr; } }

/* Signals table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.signals { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 0.975rem; }
.signals th, .signals td { text-align: left; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.signals thead th { font-size: var(--step-small); font-weight: 500; color: var(--ink-2); background: var(--paper); }
.signals tbody tr:last-child td { border-bottom: 0; }
.signals .mol { font-family: var(--font-display); font-weight: 600; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 0.5rem; transform: translateY(-1px); }
.dot--sig { background: var(--signal); }
.dot--rel { background: var(--gel); }

/* References */
.refs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.refs li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.refs .kind { font-size: var(--step-small); color: var(--ink-2); padding-top: 0.15rem; }
.refs cite { font-style: normal; font-weight: 500; display: block; }
.refs .meta { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 520px) { .refs li { grid-template-columns: 1fr; gap: 0.25rem; } }

/* Timeline (a real sequence) */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1.25rem; padding-block: 1rem; border-top: 1px solid var(--line); }
.timeline time, .timeline .when { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.timeline .next { color: var(--gel-deep); }

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2rem); }
.person { display: grid; gap: 0.35rem; align-content: start; }
.avatar { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--gel-soft); color: var(--gel-deep); font: 600 1.5rem var(--font-display); border: 1px solid var(--line); margin-bottom: 0.75rem; object-fit: cover; }
.person h3 { font-size: 1.2rem; }
.person .role { color: var(--gel-deep); font-weight: 500; font-size: 0.95rem; }
.person p { color: var(--ink-2); font-size: 0.95rem; margin-top: 0.35rem; }

.supporters { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.supporters li { list-style: none; }
.supporters ul { margin: 0; padding: 0; display: contents; }

/* Contact */
.contact { display: grid; gap: 1.25rem; }
.contact .email { font: 600 clamp(1.6rem, 1rem + 2.6vw, 2.75rem)/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; word-break: break-word; }
.contact .email:hover { color: var(--gel-deep); }
.audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.audiences > div { display: grid; gap: 0.35rem; align-content: start; }
.audiences b { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.audiences span { color: var(--ink-2); font-size: 0.975rem; }
@media (max-width: 760px) { .audiences { grid-template-columns: 1fr; } }

/* Callout */
.note { border-left: 3px solid var(--gel); padding: 0.25rem 0 0.25rem 1rem; color: var(--ink-2); font-size: 0.975rem; }

/* Placeholders the team still has to fill in */
.todo { color: var(--todo); background: color-mix(in srgb, var(--todo) 10%, transparent); padding: 0 0.25em; border-radius: 3px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(40px, 6vw, 64px) 32px; background: var(--paper); }
.foot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 2rem; }
.foot > * { min-width: 0; }
.foot nav { display: grid; gap: 0.4rem; align-content: start; }
.foot nav a { color: var(--ink); text-decoration: none; }
.foot nav a:hover { color: var(--gel-deep); }
.foot .small { color: var(--ink-2); }
.foot-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.8125rem; color: var(--ink-2); }
.foot-base p { max-width: 70ch; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* Legal page */
.legal { display: grid; gap: 2.5rem; max-width: 46rem; }
.legal section { display: grid; gap: 0.9rem; }
.legal h2 { font-size: var(--step-2); }
.legal address { font-style: normal; line-height: 1.7; }

/* Real photos replace the initials avatars */
img.avatar { width: 112px; height: 112px; padding: 0; background: var(--gel-soft); }

/* Looping animation on the technology page */
.film { margin: 0; display: grid; gap: 0.75rem; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.film figcaption { font-size: var(--step-small); color: var(--ink-2); max-width: 64ch; }

/* Product render on the applications page */
.render { margin: 1rem 0 0; display: grid; gap: 0.5rem; justify-items: start; }
.render img { width: 100%; max-width: 320px; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.render figcaption { font-size: var(--step-small); color: var(--ink-2); }
@media (max-width: 860px) { .render img { max-width: 260px; } }

/* Advisors grid: smaller portraits, more per row */
.people--compact { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.people--compact img.avatar { width: 88px; height: 88px; }
.people--compact .person h3 { font-size: 1.05rem; }

/* Lab photo on the team page */
.photo-band { margin: 0; display: grid; gap: 0.6rem; }
.photo-band img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.photo-band figcaption { font-size: var(--step-small); color: var(--ink-2); }

/* Person pop-ups */
.person-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 32px); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 0; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(16, 38, 31, 0.18); }
.person-dialog::backdrop { background: rgba(16, 38, 31, 0.45); }
.person-dialog .pd { display: grid; gap: 1rem; padding: clamp(20px, 4vw, 32px); }
.person-dialog .pd-head { display: flex; gap: 1.1rem; align-items: center; padding-right: 2.5rem; }
.person-dialog .pd-head img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; background: var(--gel-soft); }
.person-dialog h3 { font-size: 1.4rem; }
.person-dialog .role { color: var(--gel-deep); font-weight: 500; font-size: 0.95rem; }
.person-dialog .pd-body { display: grid; gap: 0.8rem; color: var(--ink-2); }
.person-dialog .pd-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.person-dialog .pd-close:hover { background: var(--gel-soft); }
.person-dialog .pd-close svg { width: 18px; height: 18px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Initials stand in until a photo arrives */
.avatar--lg { width: 112px; height: 112px; font-size: 1.8rem; }
.person-dialog .pd-initials { width: 96px; height: 96px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--gel-soft); color: var(--gel-deep); font: 600 1.8rem var(--font-display); }

/* Contact form */
.contact-tile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-tile > * { min-width: 0; }
.audiences--stack { grid-template-columns: 1fr; gap: 1rem; margin-top: 0.25rem; }
.contact-form { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(20px, 3vw, 32px); position: relative; }
.cf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.cf-field { display: grid; gap: 0.35rem; min-width: 0; }
.cf-field label { font-weight: 500; font-size: 0.95rem; }
.cf-opt { color: var(--ink-2); font-weight: 400; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.85rem; width: 100%; min-height: 44px;
}
.contact-form textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--gel); outline-offset: 1px; border-color: transparent; }
.contact-form [aria-invalid="true"] { border-color: var(--todo); }
.cf-error { display: none; color: var(--todo); font-size: 0.85rem; }
.cf-field.is-invalid .cf-error { display: block; }
.cf-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.cf-foot .btn[disabled] { opacity: 0.6; cursor: progress; }
.cf-foot p { margin: 0; }
.cf-status:empty { display: none; }
.cf-status { margin: 0; font-size: 0.95rem; }
.cf-status.is-error { color: var(--todo); }
.cf-done { display: grid; gap: 0.5rem; padding-block: 1rem; }
.cf-done h3 { font-size: 1.4rem; }
.cf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .contact-tile { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; } }

/* LinkedIn link in the person pop-ups */
.person-dialog .pd-id { display: grid; gap: 0.15rem; justify-items: start; min-width: 0; }
.person-dialog .pd-in { display: inline-grid; place-items: center; width: 36px; height: 36px; margin: 0.3rem 0 0 -6px; border-radius: 8px; color: #0a66c2; }
.person-dialog .pd-in svg { width: 24px; height: 24px; }
.person-dialog .pd-in:hover { background: var(--gel-soft); }
.person-dialog .pd-in:focus-visible { outline: 2px solid var(--gel); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .person-dialog .pd-in { color: #71b7fb; } }
:root[data-theme="dark"] .person-dialog .pd-in { color: #71b7fb; }
.person .person-in { justify-self: start; display: inline-grid; place-items: center; width: 36px; height: 36px; margin: 0.1rem 0 0 -6px; border-radius: 8px; color: #0a66c2; }
.person .person-in svg { width: 22px; height: 22px; }
.person .person-in:hover { background: var(--gel-soft); }
.person .person-in:focus-visible { outline: 2px solid var(--gel); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .person .person-in { color: #71b7fb; } }
:root[data-theme="dark"] .person .person-in { color: #71b7fb; }

/* The skip link moves focus to <main>; no outline needed on the whole page area */
main:focus { outline: none; }
/* Keep the page still while a person pop-up is open */
html:has(dialog[open]) { overflow: hidden; }
.table-scroll:focus-visible { outline: 2px solid var(--gel); outline-offset: 4px; border-radius: 4px; }
