/* ============================================================
   COSI Lab — design system v2
   UCSF brand tokens (identity.ucsf.edu) on an Arc-inspired,
   high-whitespace, large-scale editorial layout.
   ============================================================ */

:root {
  --navy: #052049;
  --navy-2: #0A2E5C;
  --ink: #0E1B2E;
  --slate: #54647B;
  --slate-2: #8995A6;
  --teal: #18A3AC;
  --teal-ink: #0B7E85;
  --teal-wash: #EAF6F7;
  --green: #6E9B1F;
  --paper: #FFFFFF;
  --mist: #F4F7FD;
  --mist-2: #E9EFFB;
  --line: #E5EAF1;
  --line-2: #D2DAE6;
  --grad: linear-gradient(118deg, #6CB1F2 0%, #5566E6 100%);
  --grad-deep: linear-gradient(115deg, #061F4D 0%, #15287A 52%, #2F3CB0 100%);
  --glow: rgba(85, 102, 230, 0.28);
  --tile-grad: linear-gradient(145deg, #EDF1FB 0%, #E5EBF9 55%, #E9E6FA 100%);

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: 'EB Garamond', 'Granjon LT Std', Georgia, serif;
  --mono: 'SF Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1180px;
  --r: 14px;
  --r-sm: 8px;
  --pad: clamp(20px, 4vw, 40px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: radial-gradient(40% 50% at 100% 2%, rgba(108,177,242,0.18), transparent 62%), radial-gradient(38% 48% at 0% 100%, rgba(120,108,238,0.13), transparent 60%), linear-gradient(168deg, #F7FAFF 0%, #E8EFFB 52%, #ECE9FB 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--teal-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
::selection { background: var(--teal-wash); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ---- eyebrow / kicker ---- */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-ink);
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--grad); display: inline-block; }

.thesis { font-size: clamp(16px, 1.8vw, 18px); color: var(--slate); max-width: 62ch; line-height: 1.6; }

/* ---- display type ---- */
h1, h2, h3 { font-family: var(--display); color: var(--navy); letter-spacing: -0.005em; }
h1 { font-weight: 500; font-size: clamp(38px, 5.4vw, 67px); line-height: 1.07; }
h2 { font-weight: 500; font-size: clamp(27px, 3.4vw, 39px); line-height: 1.18; }
h3 { font-weight: 500; font-size: 21px; line-height: 1.3; letter-spacing: 0; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; font-family: var(--sans); font-size: 14.5px; font-weight: 500;
  letter-spacing: 0.005em; border: 1px solid var(--navy); border-radius: var(--r-sm);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: linear-gradient(120deg, var(--navy), #3340B8); border-color: #3340B8; }
.btn-ghost { color: var(--navy); background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { background: var(--mist); border-color: var(--navy); }
.btn-light { border-color: rgba(255,255,255,0.5); color: #fff; background: transparent; }
.btn-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-ink); border-color: var(--teal-ink); }

/* ---- header ---- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
header::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.nav { display: flex; justify-content: space-between; align-items: center; height: 74px; }
.wordmark { display: flex; align-items: baseline; gap: 13px; color: var(--navy); }
.wordmark .mark { font-family: var(--display); font-size: 25px; font-weight: 400; letter-spacing: 0.02em; }
.wordmark .org { font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--slate); letter-spacing: 0.08em; border-left: 1px solid var(--line-2); padding-left: 13px; }
nav.links { display: flex; gap: 30px; align-items: center; }
nav.links a { font-size: 14.5px; color: var(--ink); font-weight: 450; transition: color .15s; }
nav.links a:hover { color: var(--teal-ink); text-decoration: none; }
nav.links a.active { color: var(--teal-ink); }
nav.links .btn { padding: 9px 18px; font-size: 13.5px; }
nav.links a.btn-solid, nav.links a.btn-solid:hover { color: #fff; }
.nav-toggle { display: none; }

/* ---- hero ---- */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 88px); background: radial-gradient(46% 72% at 87% 10%, rgba(108,177,242,0.30), transparent 66%), linear-gradient(180deg, #FFFFFF 0%, #F3F8FE 100%); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero h1 { margin: 22px 0 24px; }
.hero p.lede { font-size: clamp(17px, 1.9vw, 20px); color: var(--slate); max-width: 46ch; margin-bottom: 34px; line-height: 1.5; }
.hero-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.figure-card {
  border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: var(--paper);
  box-shadow: 0 1px 2px rgba(5,32,73,0.04), 0 20px 50px -22px rgba(85,102,230,0.28);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.figure-card:hover { border-color: #C3CEF0; box-shadow: 0 1px 2px rgba(5,32,73,0.05), 0 26px 62px -24px rgba(85,102,230,0.38); }
.figure-card figcaption { font-family: var(--mono); font-size: 11.5px; color: var(--slate); line-height: 1.55; margin-top: 16px; }

/* ---- page banner (subpages) ---- */
.page-head { padding: clamp(48px, 7vw, 92px) 0 0; border-bottom: 1px solid var(--line); background: radial-gradient(50% 86% at 84% -16%, rgba(108,177,242,0.20), transparent 60%); }
.page-head .inner { padding-bottom: clamp(32px, 4vw, 48px); max-width: 72ch; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 52px); margin: 20px 0 20px; }
.page-head p { font-size: clamp(16px, 1.9vw, 19px); color: var(--slate); max-width: 60ch; line-height: 1.55; }

/* ---- domain / proof band ---- */
.proof { background: radial-gradient(72% 130% at 8% 0%, rgba(108,177,242,0.24), transparent 55%), var(--grad-deep); color: #fff; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-cell { padding: clamp(28px, 3vw, 40px) clamp(22px, 2.4vw, 32px); border-left: 1px solid rgba(255,255,255,0.12); }
.proof-cell:first-child { border-left: none; }
.proof-cell .num { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.25; letter-spacing: -0.015em; color: #fff; }
.proof-cell .lab { font-size: 13px; color: rgba(255,255,255,0.62); margin-top: 10px; line-height: 1.5; letter-spacing: 0.005em; }
a.proof-cell.cta { background: var(--teal); color: #fff; display: block; transition: background .18s; }
a.proof-cell.cta:hover { background: var(--teal-ink); text-decoration: none; }
a.proof-cell.cta .lab { color: rgba(255,255,255,0.85); }

/* ---- generic section ---- */
section { padding: clamp(60px, 8.5vw, 116px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: clamp(30px, 4vw, 48px); gap: 24px; flex-wrap: wrap; }
.section-head h2 { margin-top: 16px; }
.section-head a.more { font-size: 14.5px; font-weight: 500; white-space: nowrap; color: var(--teal-ink); }
.section-head a.more:hover { text-decoration: none; color: var(--navy); }

/* ---- research programs (list) ---- */
.program {
  display: grid; grid-template-columns: 64px 1fr 1.5fr 36px; gap: 28px;
  padding: clamp(24px, 2.6vw, 34px) 16px; border-top: 1px solid var(--line); align-items: center;
  color: inherit; border-radius: var(--r-sm);
  transition: background .18s ease, padding-left .18s ease, padding-right .18s ease;
}
.program:last-of-type { border-bottom: 1px solid var(--line); }
.program:hover { background: var(--mist); text-decoration: none; }
.program .no { font-family: var(--mono); font-size: 13px; color: var(--teal-ink); font-weight: 500; }
.program h3 { font-size: 22px; color: var(--navy); }
.program p { font-size: 15px; color: var(--slate); line-height: 1.55; }
.program .arrow { color: var(--teal-ink); font-size: 19px; justify-self: end; transition: transform .2s ease; }
.program:hover .arrow { transform: translateX(4px); }

/* ---- research detail blocks ---- */
.rd { display: grid; grid-template-columns: 300px 1fr; gap: clamp(36px, 5vw, 64px); padding: clamp(44px, 5vw, 68px) 0; border-top: 1px solid var(--line); }
.rd:last-child { border-bottom: 1px solid var(--line); }
.rd .rd-side .no { font-family: var(--mono); font-size: 13px; color: var(--teal-ink); font-weight: 500; }
.rd .rd-side h2 { font-size: clamp(24px, 2.8vw, 30px); margin: 12px 0 16px; }
.rd .rd-side .needs { font-family: var(--mono); font-size: 11.5px; color: var(--slate); line-height: 1.9; }
.rd .rd-body p { font-size: 16px; color: var(--slate); margin-bottom: 18px; max-width: 64ch; line-height: 1.65; }
.rd .rd-body .example { border-left: 2px solid var(--teal); padding: 6px 0 6px 20px; margin: 24px 0; }
.rd .rd-body .example .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-ink); display: block; margin-bottom: 8px; }
.rd .rd-body .example .t { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--navy); line-height: 1.4; letter-spacing: -0.01em; }

/* ---- work cards ---- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card {
  border: 1px solid var(--line); border-radius: var(--r); padding: 28px;
  display: flex; flex-direction: column; gap: 16px; background: var(--paper);
}
.work-card .tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-ink); font-weight: 500; }
.work-card h3 { font-size: 19px; line-height: 1.32; color: var(--navy); flex: 1; }
.work-card p { font-size: 14.5px; color: var(--slate); line-height: 1.55; }
.work-card .meta { font-family: var(--mono); font-size: 11px; color: var(--slate-2); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---- open problems ---- */
.problems { background: var(--mist); }
.problem { display: grid; grid-template-columns: 76px 1fr; gap: 28px; padding: clamp(24px, 2.6vw, 32px) 0; border-top: 1px solid var(--line-2); align-items: baseline; }
.problem:last-child { border-bottom: 1px solid var(--line-2); }
.problem .pno { font-family: var(--mono); font-size: 13px; color: var(--teal-ink); font-weight: 500; }
.problem h3 { font-size: 21px; color: var(--navy); margin-bottom: 10px; }
.problem p { font-size: 15px; color: var(--slate); max-width: 74ch; line-height: 1.6; }
.problem .needs { font-family: var(--mono); font-size: 11.5px; color: var(--teal-ink); margin-top: 14px; display: block; letter-spacing: 0.05em; text-transform: uppercase; }

/* ---- people ---- */
.pi-feature { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; margin-bottom: clamp(48px, 6vw, 80px); }
.headshot { width: 100%; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: var(--tile-grad); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 500; font-size: 64px; color: var(--slate-2); }
.headshot img { width: 100%; height: 100%; object-fit: cover; }
.pi-feature h3 { font-size: clamp(24px, 2.8vw, 30px); color: var(--navy); }
.pi-feature .role { font-family: var(--mono); font-size: 11.5px; color: var(--teal-ink); letter-spacing: 0.07em; margin: 12px 0 20px; line-height: 1.9; text-transform: uppercase; }
.pi-feature p { font-size: 16px; color: var(--slate); max-width: 62ch; margin-bottom: 16px; line-height: 1.7; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(30px, 3.2vw, 46px) clamp(20px, 2vw, 28px); }
.member .avatar { width: 100%; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: var(--tile-grad); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 500; font-size: 34px; color: var(--slate-2); margin-bottom: 16px; transition: filter .25s ease; }
.member .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member:hover .avatar { filter: brightness(0.96); }
.member .name { font-family: var(--display); font-size: 18px; font-weight: 500; color: var(--navy); letter-spacing: -0.005em; }
.member .role { font-size: 12.5px; color: var(--slate); line-height: 1.5; margin-top: 4px; }
.sub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.collab { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 20px 24px; background: var(--paper); }
.collab .name { font-size: 15px; color: var(--navy); font-weight: 500; }
.collab .role { font-size: 13px; color: var(--slate); margin-top: 3px; }

/* ---- news ---- */
.news-item { display: grid; grid-template-columns: 140px 1fr; gap: 28px; padding: 22px 0; border-top: 1px solid var(--line); align-items: baseline; }
.news-item:last-child { border-bottom: 1px solid var(--line); }
.news-item .date { font-family: var(--mono); font-size: 12px; color: var(--slate-2); letter-spacing: 0.03em; }
.news-item .body { font-size: 15.5px; color: var(--ink); line-height: 1.55; }
.news-item .body .cat { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.09em; color: var(--teal-ink); text-transform: uppercase; margin-right: 11px; font-weight: 500; }

/* ---- publications ---- */
.pub-group { margin-bottom: 8px; }
.pub-group h2 { font-size: 22px; margin: 44px 0 6px; }
.pub-group .ph { font-size: 14px; color: var(--slate); margin-bottom: 8px; }
.pub { padding: 24px 0; border-top: 1px solid var(--line); }
.pub:last-child { border-bottom: 1px solid var(--line); }
.pub .pt { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--navy); line-height: 1.4; letter-spacing: -0.01em; }
.pub .pa { font-size: 13.5px; color: var(--slate); margin-top: 7px; }
.pub .pm { font-family: var(--mono); font-size: 11.5px; color: var(--teal-ink); margin-top: 9px; letter-spacing: 0.05em; text-transform: uppercase; }

/* ---- join ---- */
.join { background: radial-gradient(55% 120% at 88% 6%, rgba(108,177,242,0.22), transparent 55%), var(--grad-deep); color: #fff; }
.join-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(36px, 5vw, 56px); align-items: start; }
.join h2 { color: #fff; }
.join p.jl { font-size: 16px; color: rgba(255,255,255,0.7); max-width: 56ch; margin: 18px 0 30px; line-height: 1.6; }
.join ul { list-style: none; }
.join li { padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.14); font-size: 15px; color: #DDE3EA; }
.join li span { font-family: var(--mono); font-size: 11px; color: var(--teal); display: block; letter-spacing: 0.09em; margin-bottom: 4px; text-transform: uppercase; }

/* level cards (join page) */
.levels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.level { border: 1px solid var(--line); border-radius: var(--r); padding: 32px; display: flex; flex-direction: column; background: var(--paper); }
.level .lk { font-family: var(--mono); font-size: 11px; letter-spacing: 0.09em; color: var(--teal-ink); text-transform: uppercase; font-weight: 500; }
.level h3 { font-size: 22px; color: var(--navy); margin: 12px 0 12px; }
.level p { font-size: 15px; color: var(--slate); margin-bottom: 16px; line-height: 1.6; }
.level .llab { font-family: var(--mono); font-size: 11px; color: var(--slate-2); letter-spacing: 0.05em; margin-top: auto; text-transform: uppercase; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding-top: 20px; border-top: 2px solid var(--navy); }
.step .sn { font-family: var(--mono); font-size: 12px; color: var(--teal-ink); font-weight: 500; }
.step h3 { font-size: 19px; color: var(--navy); margin: 10px 0 8px; }
.step p { font-size: 14.5px; color: var(--slate); line-height: 1.6; }

/* ---- callout band ---- */
.band { background: var(--grad-deep); color: #fff; }
.band-grid { display: flex; justify-content: space-between; align-items: center; gap: 36px; padding: 12px 0; }
.band h2 { color: #fff; font-size: clamp(22px, 2.6vw, 28px); }
.band p { font-size: 15px; color: rgba(255,255,255,0.66); max-width: 56ch; margin-top: 10px; line-height: 1.55; }

/* ---- footer ---- */
footer { padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); background: var(--mist); }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
footer .aff { font-size: 14px; color: var(--slate); max-width: 42ch; line-height: 1.6; }
footer .aff strong { font-weight: 600; color: var(--navy); display: block; margin-bottom: 8px; font-size: 16px; }
footer nav { display: flex; gap: 26px; font-size: 14px; flex-wrap: wrap; }
footer nav a { color: var(--ink); }
footer nav a:hover { color: var(--teal-ink); text-decoration: none; }
.fineprint { margin-top: 36px; font-family: var(--mono); font-size: 11px; color: var(--slate-2); letter-spacing: 0.02em; line-height: 1.8; }

/* ---- note banner (for placeholders) ---- */
.note { background: #FFF8E6; border: 1px solid #F0D98A; border-radius: var(--r-sm); padding: 13px 18px; font-size: 13px; color: #7A5B00; font-family: var(--mono); letter-spacing: 0.01em; }

/* ---- interactive: figure switcher ---- */
.fig-switch { display: flex; gap: 7px; margin-top: 16px; flex-wrap: wrap; }
.fig-switch button { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); background: var(--paper); border: 1px solid var(--line); border-radius: 50px; padding: 7px 14px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.fig-switch button:hover { border-color: var(--line-2); color: var(--navy); }
.fig-switch button.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---- interactive: slider control + readout ---- */
.ictl { display: flex; align-items: center; gap: 14px; margin: 18px 0 12px; }
.ictl label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); white-space: nowrap; }
.ictl input[type=range] { flex: 1; accent-color: var(--teal-ink); height: 4px; cursor: pointer; }
.ictl .val { font-family: var(--mono); font-size: 13px; color: var(--navy); min-width: 36px; text-align: right; }
.ireadout { font-size: 14.5px; color: var(--slate); border-left: 2px solid var(--teal); padding: 6px 0 6px 16px; line-height: 1.6; }
.ireadout strong { color: var(--navy); font-weight: 600; }

/* ---- interactive: filter chips ---- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.chip { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); background: var(--paper); border: 1px solid var(--line); border-radius: 50px; padding: 8px 15px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chip:hover { border-color: var(--line-2); color: var(--navy); }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---- motion ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.work-card, .level, .collab { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.work-card:hover, .level:hover, .collab:hover { transform: translateY(-3px); border-color: #C3CEF0; box-shadow: 0 20px 44px -26px rgba(85,102,230,0.30); }
@keyframes stressPulse { 0%, 100% { opacity: 0.18; } 50% { opacity: 0.45; } }
.stress-pulse { animation: stressPulse 3.4s ease-in-out 2.6s infinite; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .stress-pulse { animation: none; }
  .work-card:hover, .level:hover, .collab:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero-grid, .join-grid, .pi-feature, .rd { grid-template-columns: 1fr; }
  .hero p.lede { max-width: none; }
  .figure-card { order: -1; }
  .page-head .inner { padding-bottom: 28px; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-cell { border-top: 1px solid rgba(255,255,255,0.12); }
  .proof-cell:nth-child(-n+2) { border-top: none; }
  .proof-cell:nth-child(3) { border-left: none; }
  .work-grid, .levels, .sub-grid, .steps { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
  .headshot { width: 160px; height: 160px; font-size: 40px; }
  .pi-feature { grid-template-columns: 1fr; }
  .program { grid-template-columns: 40px 1fr; gap: 8px 16px; padding: 22px 12px; }
  .program p { grid-column: 2; }
  .program .arrow { display: none; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .band-grid { flex-direction: column; align-items: flex-start; }

  /* hamburger menu */
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm); background: transparent; cursor: pointer; }
  .nav-toggle span { position: relative; width: 18px; height: 1.5px; background: var(--navy); display: block; transition: background .15s; }
  .nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--navy); transition: transform .15s, top .15s; }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
  nav.links { position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; display: none; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 28px rgba(5,32,73,0.08); padding: 6px 0; }
  nav.links.open { display: flex; }
  nav.links a { padding: 15px var(--pad); font-size: 15px; border-bottom: 1px solid var(--line); }
  nav.links a.active { border-bottom: 1px solid var(--line); }
  nav.links .btn { margin: 12px var(--pad) 8px; text-align: center; padding: 13px; }
}

@media (max-width: 560px) {
  .wordmark .org { display: none; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-cell, .proof-cell:nth-child(-n+2) { border-top: 1px solid rgba(255,255,255,0.12); border-left: none; }
  .proof-cell:first-child { border-top: none; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { gap: 28px; }
}
