/* ============================================================
   Protocol Bio — Design System v2
   ============================================================ */

@font-face {
  font-family: "Apple Garamond";
  src: url("assets/fonts/AppleGaramond-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Apple Garamond";
  src: url("assets/fonts/AppleGaramond-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-VariableFont_opsz,wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0b0d;
  --ink-2: #141519;
  --navy-deep: #050c1e;
  --navy: #0b1830;
  --paper: #f4efeb;
  --paper-2: #e9e3dd;
  --white: #ffffff;
  --blue-1: #66a1d0;
  --blue-2: #2484c0;
  --blue-3: #1b44a0;
  --blue-4: #0d2a63;
  --chrome-1: #c9d3dc;
  --chrome-2: #8fa0ac;
  --line: rgba(10,11,13,0.12);
  --line-on-dark: rgba(244,239,235,0.18);
  --text-primary: var(--ink);
  --text-secondary: rgba(10,11,13,0.62);
  --text-tertiary: rgba(10,11,13,0.42);
  --font-display: "Apple Garamond", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "SF Mono", "Menlo", ui-monospace, monospace;
  --ease: cubic-bezier(.4,0,.2,1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--blue-3); color: var(--paper); }
a { color: var(--ink); text-decoration: none; }
a:hover { opacity: .7; }
img { display: block; max-width: 100%; }

/* ─── NAV ─── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  transition: background var(--duration-base) var(--ease), border-color var(--duration-base) var(--ease), padding var(--duration-base) var(--ease);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
}
#nav.is-scrolled .nav-inner {
  padding: 16px 40px;
  background: rgba(244,239,235,.94);
  border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 26px; }
.nav-logo .logo-light { display: block; }
.nav-logo .logo-dark  { display: none;  }
#nav.is-scrolled .nav-logo .logo-light { display: none;  }
#nav.is-scrolled .nav-logo .logo-dark  { display: block; height: 24px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--paper);
}
.nav-links a {
  color: inherit;
  display: flex;
  align-items: center;
  gap: 7px;
}
.nav-links a .dot { font-size: 8px; color: var(--blue-1); }
#nav.is-scrolled .nav-links { color: var(--ink); }
#nav.is-scrolled .nav-links a .dot { color: var(--blue-3); }

/* ─── HERO ─── */
#hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .95;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,12,30,.55) 0%, rgba(5,12,30,.12) 38%, rgba(5,12,30,.86) 100%);
}
.hero-meta {
  position: absolute;
  top: 78px;
  left: 40px; right: 40px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(244,239,235,.55);
}
.hero-copy {
  position: absolute;
  left: 40px; right: 40px;
  bottom: 176px;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-1);
  margin-bottom: 26px;
}
.hero-kicker-line { width: 18px; height: 1px; background: var(--blue-1); }
.hero-h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(64px, 9vw, 128px);
  line-height: .96;
  letter-spacing: -.02em;
  color: var(--paper);
  margin: 0;
  max-width: 1120px;
  text-wrap: pretty;
}
.hero-foot {
  position: absolute;
  left: 40px; right: 40px;
  bottom: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid var(--line-on-dark);
  padding-top: 26px;
}
.hero-tags {
  display: flex;
  gap: 48px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(244,239,235,.72);
  align-items: center;
}
.hero-tags .leaf-icon { height: 13px; display: inline-block; vertical-align: middle; margin-right: 8px; }
.hero-scroll-hint {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(244,239,235,.72);
}

/* ─── SECTION HEADER (monospace row) ─── */
.section-eyebrow {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 72px;
}
.section-eyebrow.on-dark {
  color: rgba(244,239,235,.5);
  border-color: var(--line-on-dark);
  margin-bottom: 64px;
}

/* ─── ABOUT ─── */
#about {
  background: var(--paper);
  padding: 120px 40px 110px;
  border-bottom: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 96px;
  align-items: start;
}
.about-h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.06;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}
.about-right { display: flex; flex-direction: column; gap: 26px; padding-top: 10px; }
.about-body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--text-secondary);
  margin: 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat-cell {
  background: var(--paper);
  padding: 22px 20px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--ink);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ─── SCIENCE ─── */
#science {
  background: var(--ink);
  padding: 110px 40px 100px;
  color: var(--paper);
}
.science-intro {
  display: grid;
  grid-template-columns: 1fr 620px;
  gap: 80px;
  align-items: end;
  margin-bottom: 76px;
}
.science-h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.05;
  color: var(--paper);
  margin: 0;
}
.science-body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: rgba(244,239,235,.66);
  margin: 0;
}
.science-panel {
  display: grid;
  grid-template-columns: 560px 1fr;
  gap: 48px;
  align-items: stretch;
  border-top: 1px solid var(--line-on-dark);
  padding-top: 48px;
}
.science-img-wrap {
  position: relative;
  height: 520px;
}
.science-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.science-items {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.science-item {
  display: flex;
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid var(--line-on-dark);
}
.science-item:last-child { padding-bottom: 0; }
.science-item-num {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--blue-1);
  padding-top: 10px;
  flex-shrink: 0;
  width: 24px;
}
.science-item-h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 38px;
  color: var(--paper);
  margin: 0 0 12px;
}
.science-item-p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244,239,235,.66);
  margin: 0;
  max-width: 520px;
}
.science-panel-2 {
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 48px;
  align-items: stretch;
  margin-top: 48px;
  border-top: 1px solid var(--line-on-dark);
  padding-top: 48px;
}
.science-item-3 {
  display: flex;
  gap: 28px;
  align-items: center;
}
.science-img-2 {
  position: relative;
  height: 380px;
}
.science-img-2 img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ─── TECHNOLOGY (sticky scroll) ─── */
#technology {
  position: relative;
  height: 5000px;
  background: var(--paper);
}
.tech-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 420px 1fr;
  background: var(--paper);
  overflow: hidden;
}
.tech-sidebar {
  box-sizing: border-box;
  padding: clamp(60px,11vh,96px) 36px clamp(22px,4.5vh,44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  border-right: 1px solid var(--line);
}
.tech-sidebar-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-tertiary);
  margin-bottom: clamp(8px,2vh,18px);
}
.tech-sidebar-h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px,4.6vh,44px);
  line-height: 1.04;
  color: var(--ink);
  margin: 0 0 clamp(10px,2vh,18px);
}
.tech-sidebar-p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
  max-width: 330px;
}
.tech-phase-list { display: flex; flex-direction: column; }
.tech-phase-item {
  display: flex;
  gap: 14px;
  padding: clamp(7px,1.5vh,13px) 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: opacity var(--duration-base) var(--ease);
}
.tech-phase-item:last-child { border-bottom: 1px solid var(--line); }
.tech-phase-item.is-active { cursor: default; }
.tech-phase-item.is-inactive { opacity: .42; }
.tech-phase-item.is-inactive:hover { opacity: .72; }
.tech-phase-num {
  font-family: var(--font-display);
  font-size: 14px;
  width: 20px;
  flex-shrink: 0;
}
.tech-phase-item.is-active .tech-phase-num { color: var(--blue-3); }
.tech-phase-item.is-inactive .tech-phase-num { color: var(--ink); }
.tech-phase-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.tech-progress-bar-wrap {
  height: 2px;
  background: var(--paper-2);
  margin-top: clamp(12px,2.6vh,26px);
  position: relative;
}
.tech-progress-bar {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: var(--blue-3);
  width: 0%;
  transition: width 80ms linear;
}
.tech-progress-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--text-tertiary);
  margin-top: 10px;
}
.tech-visual {
  position: relative;
  background: radial-gradient(120% 100% at 60% 15%, #14346a 0%, #0a1a3a 48%, #050c1e 100%);
  overflow: hidden;
}
.tech-stage-meta {
  position: absolute;
  left: 48px;
  top: clamp(30px,6vh,52px);
  right: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  z-index: 2;
}
.tech-stage-meta span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(244,239,235,.6);
}
.tech-stage-svg-wrap {
  position: absolute;
  inset: 0;
}
.micelle-phase {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 500ms var(--ease);
}
.micelle-phase.is-visible { opacity: 1; }
.tech-stage-footer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 48px clamp(22px,4.5vh,40px);
  background: linear-gradient(180deg, rgba(5,12,30,0), rgba(5,12,30,.82) 42%, rgba(5,12,30,.95));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  pointer-events: none;
  z-index: 2;
}
.tech-phase-copy { max-width: 540px; }
.tech-phase-h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(24px,3.6vh,34px);
  line-height: 1.06;
  color: var(--paper);
  margin: 0 0 clamp(6px,1.2vh,12px);
}
.tech-phase-desc {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(244,239,235,.76);
  margin: 0;
}
.tech-phase-metric { text-align: right; flex-shrink: 0; }
.tech-phase-metric-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px,5.6vh,54px);
  line-height: 1;
  color: var(--paper);
}
.tech-phase-metric-label {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(244,239,235,.66);
  margin-top: 8px;
  max-width: 250px;
  margin-left: auto;
}

/* ─── TECHNOLOGY DETAIL (comparison) ─── */
#technology-detail {
  background: var(--paper);
  padding: 70px 40px 90px;
  border-top: 1px solid var(--line);
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.compare-cell { background: var(--paper); padding: 28px 26px; }
.compare-cell-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.compare-name {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
}
.compare-name.dim { color: var(--text-tertiary); }
.compare-size {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--blue-3);
}
.compare-size.dim { color: var(--text-tertiary); }
.compare-p {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

/* ─── HISTORY ─── */
#history {
  background: var(--paper-2);
  padding: 110px 40px 110px;
  border-top: 1px solid var(--line);
}
.history-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
}
.history-h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px,5vw,62px);
  line-height: 1;
  color: var(--ink);
  margin: 0;
}
.history-nav { display: flex; gap: 10px; }
.history-nav-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  transition: background var(--duration-fast) var(--ease);
}
.history-nav-btn:hover { background: rgba(10,11,13,.05); }
.history-grid {
  display: grid;
  grid-template-columns: 96px 1fr 560px;
  gap: 56px;
  align-items: start;
}
.history-year-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.history-year-btn {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  padding: 9px 0;
  color: var(--ink);
  background: none;
  border: none;
  text-align: left;
  transition: opacity var(--duration-fast) var(--ease);
}
.history-year-display {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
}
.history-big-year {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(80px, 13vw, 150px);
  line-height: .9;
  color: var(--ink);
  letter-spacing: -.02em;
}
.history-year-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.history-year-meta-line {
  width: 56px;
  height: 1px;
  background: rgba(10,11,13,.3);
}
.history-year-meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-tertiary);
}
.history-card {
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 34px 34px 38px;
  min-height: 420px;
}
.history-card-h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 34px;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
}
.history-card-img {
  position: relative;
  height: 230px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.history-card-img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
.history-card-img img.is-visible { opacity: 1; }
.history-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--text-tertiary);
  padding: 20px;
  text-align: center;
}
.history-card-p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.62;
  color: var(--text-secondary);
  margin: 0;
}
.history-lab {
  margin-top: 80px;
}
.history-lab-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 28px;
}
.history-lab-photos {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
  height: 340px;
}
.history-lab-photo {
  position: relative;
  overflow: hidden;
}
.history-lab-photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.history-lab-caption {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 20px;
  max-width: 720px;
}

/* ─── EXPERTISE ─── */
#expertise {
  background: var(--paper);
  padding: 110px 40px 100px;
  border-top: 1px solid var(--line);
}
.expertise-intro {
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 90px;
  align-items: start;
  margin-bottom: 70px;
}
.expertise-h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.06;
  color: var(--ink);
  margin: 0;
}
.expertise-body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}
.expertise-card-main {
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  gap: 44px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px;
  margin-bottom: 24px;
  cursor: pointer;
  transition: border-color var(--duration-base) var(--ease);
}
.expertise-card-main:hover { border-color: rgba(10,11,13,.28); }
.expertise-portrait {
  position: relative;
  background: var(--paper-2);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  height: auto !important;
}
.expertise-portrait img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}
.expertise-name {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.06;
  color: var(--ink);
}
.expertise-role {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue-3);
  margin-top: 10px;
}
.expertise-bio {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.62;
  color: var(--text-secondary);
  margin: 20px 0 0;
  max-width: 520px;
}
.expertise-quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 30px;
  line-height: 1.14;
  color: var(--ink);
  max-width: 480px;
}
.expertise-creds {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid var(--line);
  padding-left: 32px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.expertise-creds-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
.expertise-read-more { margin-top: 12px; color: var(--ink); }
.expertise-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.expertise-card-sm {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px;
  cursor: pointer;
  transition: border-color var(--duration-base) var(--ease);
}
.expertise-card-sm:hover { border-color: rgba(10,11,13,.28); }
.expertise-card-sm .expertise-name { font-size: 28px; }
.expertise-creds-sm {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-top: 16px;
}
.expertise-pending {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-top: 16px;
}
.expertise-pending-note { color: var(--text-tertiary); }

/* ─── HUMANITARIAN ─── */
#humanitarian {
  position: relative;
  background: var(--navy-deep);
  color: var(--paper);
  padding: 110px 40px 100px;
  overflow: hidden;
}
.hum-bg-bubble {
  position: absolute;
  right: -120px;
  top: -80px;
  width: 820px;
  opacity: .5;
  pointer-events: none;
}
.hum-inner { position: relative; }
.hum-h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.02;
  color: var(--paper);
  margin: 0 0 30px;
  max-width: 900px;
}
.hum-intro-row {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 70px;
  align-items: end;
  margin-bottom: 54px;
}
.hum-intro-p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  color: rgba(244,239,235,.72);
  margin: 0;
  max-width: 680px;
}
.hum-label {
  display: flex;
  justify-content: flex-end;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(244,239,235,.45);
}
.hum-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 56px;
  align-items: stretch;
}
.hum-map-col { display: flex; flex-direction: column; gap: 18px; }
.hum-map-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(244,239,235,.45);
  border-bottom: 1px solid var(--line-on-dark);
  padding-bottom: 10px;
}
.hum-map-iframe {
  width: 100%;
  height: 760px;
  border: 0;
  background: transparent;
  display: block;
}
.hum-map-footer {
  border-top: 1px solid var(--line-on-dark);
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hum-logo { height: 38px; }
.hum-logo-text {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(244,239,235,.66);
}
.hum-stats-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
}
.hum-stats { display: flex; flex-direction: column; }
.hum-stat {
  border-top: 1px solid var(--line-on-dark);
  padding: 22px 0;
}
.hum-stat:last-child { border-bottom: 1px solid var(--line-on-dark); }
.hum-stat-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  color: var(--paper);
  line-height: 1;
}
.hum-stat-label {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(244,239,235,.6);
  margin-top: 8px;
}
.hum-bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(244,239,235,.66);
}
.hum-quote-section {
  margin-top: 90px;
  border-top: 1px solid var(--line-on-dark);
  padding-top: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
}
.hum-quote-attr {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: rgba(244,239,235,.45);
}
.hum-quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.22;
  color: var(--paper);
  max-width: 1080px;
  text-wrap: pretty;
  margin: 0;
}

/* ─── LEADERSHIP ─── */
#leadership {
  background: var(--paper);
  padding: 110px 40px 100px;
}
.leadership-intro {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 90px;
  align-items: end;
  margin-bottom: 70px;
}
.leadership-h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.04;
  color: var(--ink);
  margin: 0;
}
.leadership-body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}
.team-section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 34px;
}
.team-section-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.team-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 84px;
}
.team-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.team-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.team-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.team-card.clickable { cursor: pointer; transition: opacity var(--duration-base) var(--ease); }
.team-card.clickable:hover { opacity: .86; }
.team-photo {
  position: relative;
  background: var(--paper-2);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  height: auto !important;
  max-width: 240px;
}
.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(100%);
}
.team-name {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
  line-height: 1.1;
}
.team-name.sm { font-size: 24px; }
.team-role {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue-3);
  margin-top: 8px;
}
.team-role.dim { color: var(--text-tertiary); }
.team-bio {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.team-bio.dim { color: var(--text-tertiary); }
.team-read-more {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.team-card.clickable .team-role.active { color: var(--blue-3); }
.team-card.clickable .team-role.active::after { content: " +"; }

/* ─── BIO MODAL ─── */
#bio-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5,12,30,.72);
  align-items: center;
  justify-content: center;
  padding: 60px;
}
#bio-modal.is-open { display: flex; }
.bio-modal-inner {
  width: 840px;
  max-height: 82vh;
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 52px 56px 56px;
  position: relative;
}
.bio-close {
  position: absolute;
  top: 22px; right: 26px;
  font-family: var(--font-sans);
  font-size: 22px;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  padding: 0;
}
.bio-group {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 28px;
}
.bio-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 48px;
  line-height: 1.05;
  color: var(--ink);
}
.bio-role {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue-3);
  margin-top: 12px;
}
.bio-summary {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 28px 0 30px;
}
.bio-points {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.bio-point {
  display: flex;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}
.bio-point-dot {
  font-size: 8px;
  color: var(--blue-3);
  padding-top: 7px;
  flex-shrink: 0;
}

/* ─── PARTNER CTA ─── */
#partner {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--navy-deep);
}
.partner-bg {
  position: absolute;
  inset: 0;
  background: var(--navy-deep);
}
.partner-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .7;
}
.partner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,12,30,.5), rgba(5,12,30,.85));
  pointer-events: none;
}
.partner-meta {
  position: absolute;
  left: 40px; right: 40px;
  top: 56px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(244,239,235,.6);
  pointer-events: none;
}
.partner-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 130px 40px 96px;
  text-align: center;
  min-height: 620px;
}
.partner-h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(52px, 7vw, 88px);
  line-height: 1;
  color: var(--paper);
  margin: 0;
  pointer-events: none;
}
.partner-body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(244,239,235,.72);
  margin: 0;
  max-width: 560px;
  pointer-events: none;
}
.partner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border: 1px solid rgba(244,239,235,.72);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background var(--duration-base) var(--ease), border-color var(--duration-base) var(--ease);
  text-decoration: none;
}
.partner-btn:hover {
  background: rgba(244,239,235,.12);
  border-color: var(--paper);
  opacity: 1;
}

/* ─── FOOTER ─── */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 110px 40px 48px;
}
.footer-logo {
  width: 100%;
  max-width: 1360px;
  display: block;
  margin: 0 auto 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 200px 200px 200px;
  gap: 60px;
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
  padding: 60px 0;
}
.footer-brand-line {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.2;
  color: var(--paper);
  margin-bottom: 18px;
}
.footer-brand-tag {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(244,239,235,.6);
  max-width: 340px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(244,239,235,.66);
}
.footer-col-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(244,239,235,.4);
  margin-bottom: 6px;
}
.footer-col a { color: inherit; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(244,239,235,.45);
}
.footer-bottom a { color: inherit; }

/* ─── MICELLE SVG phases ─── */
.micelle-svg {
  width: 100%;
  height: 100%;
}

/* ─── NAV HAMBURGER ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 70;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--paper);
  transition: transform .28s var(--ease), opacity .18s var(--ease);
}
#nav.is-scrolled .nav-hamburger span { background: var(--ink); }
body.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── TABLET (769–1199px) ─── */
@media (max-width: 1199px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .science-intro { grid-template-columns: 1fr; gap: 28px; }
  .science-panel { grid-template-columns: 1fr; }
  .science-img-wrap { height: 320px; }
  .science-panel-2 { grid-template-columns: 1fr; }
  .science-img-2 { height: 260px; }
  .tech-sticky { grid-template-columns: 320px 1fr; }
  .history-grid { grid-template-columns: 80px 1fr 380px; gap: 36px; }
  .expertise-card-main { grid-template-columns: 160px 1fr 220px; gap: 28px; }
  .expertise-intro { grid-template-columns: 1fr; gap: 32px; margin-bottom: 52px; }
  .hum-content { grid-template-columns: 1fr 340px; gap: 40px; }
  .leadership-intro { grid-template-columns: 1fr; gap: 28px; }
  .team-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 160px 160px 160px; gap: 36px; }
}

/* ─── MOBILE (≤768px) ─── */
@media (max-width: 768px) {
  /* NAV */
  .nav-hamburger { display: flex; }
  .nav-inner { padding: 20px 24px; }
  #nav.is-scrolled .nav-inner { padding: 14px 24px; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    font-size: 18px;
    letter-spacing: .04em;
    z-index: 65;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s var(--ease);
  }
  body.nav-open .nav-links { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }

  /* COMMON */
  .section-eyebrow { flex-direction: column; gap: 6px; margin-bottom: 44px; }
  .section-eyebrow.on-dark { margin-bottom: 40px; }

  /* HERO */
  #hero { min-height: 100svh; }
  .hero-copy { padding: 0 24px; }
  .hero-foot { padding: 0 24px 32px; }
  .hero-tags { flex-wrap: wrap; gap: 10px; }
  .hero-scroll-hint { display: none; }

  /* ABOUT */
  #about { padding: 72px 24px 72px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }

  /* SCIENCE */
  #science { padding: 72px 24px 72px; }
  .science-intro { grid-template-columns: 1fr; gap: 24px; margin-bottom: 44px; }
  .science-panel { grid-template-columns: 1fr; padding-top: 36px; }
  .science-img-wrap { height: 240px; }
  .science-panel-2 { grid-template-columns: 1fr; margin-top: 36px; padding-top: 36px; }
  .science-img-2 { height: 200px; }
  .science-item { gap: 14px; padding: 22px 0; }
  .science-item-h3 { font-size: 26px; }

  /* TECHNOLOGY */
  #technology { height: 3200px; }
  .tech-sticky {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: 100svh;
  }
  .tech-sidebar {
    padding: 20px 24px 14px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    overflow-y: auto;
    gap: 10px;
  }
  .tech-sidebar-h2 { font-size: 20px; }
  .tech-sidebar-p { display: none; }
  .tech-visual { flex: 1; }
  .tech-stage-footer { padding: 14px 20px 18px; gap: 16px; }
  .tech-phase-metric { display: none; }
  .tech-stage-meta { left: 20px; right: 20px; top: 14px; }

  /* TECHNOLOGY DETAIL */
  #technology-detail { padding: 56px 24px 64px; }
  .compare-grid { grid-template-columns: 1fr; }

  /* HISTORY */
  #history { padding: 72px 24px 72px; }
  .history-top { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 36px; }
  .history-grid { grid-template-columns: 1fr; gap: 0; }
  .history-year-list { display: none; }
  .history-year-display { display: none; }
  .history-card { padding: 28px 0; }
  .history-card-img { height: 200px; }
  .history-lab-photos { grid-template-columns: 1fr; height: auto; gap: 12px; }
  .history-lab-photo { height: 200px; }

  /* EXPERTISE */
  #expertise { padding: 72px 24px 72px; }
  .expertise-intro { grid-template-columns: 1fr; gap: 28px; margin-bottom: 44px; }
  .expertise-card-main { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .expertise-card-main .expertise-portrait { max-width: 200px; }
  .expertise-creds {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
  .expertise-cards-row { grid-template-columns: 1fr; gap: 16px; }
  .expertise-card-sm { grid-template-columns: 120px 1fr; gap: 20px; padding: 20px; }

  /* HUMANITARIAN */
  #humanitarian { padding: 72px 24px 72px; }
  .hum-intro-row { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .hum-content { grid-template-columns: 1fr; gap: 48px; }
  .hum-map-iframe { height: 300px; }
  .hum-quote { font-size: clamp(20px, 5vw, 30px); }
  .hum-quote-section { margin-top: 56px; padding-top: 48px; }

  /* LEADERSHIP */
  #leadership { padding: 72px 24px 72px; }
  .leadership-intro { grid-template-columns: 1fr; gap: 28px; margin-bottom: 44px; }
  .team-grid-3 { grid-template-columns: 1fr; gap: 44px; margin-bottom: 52px; }
  .team-grid-2 { grid-template-columns: 1fr; gap: 44px; }
  .team-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .team-name { font-size: 22px; }
  .team-name.sm { font-size: 20px; }

  /* PARTNER CTA */
  .partner-h2 { font-size: clamp(36px, 9vw, 52px); }

  /* FOOTER */
  footer { padding: 64px 24px 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 40px 0; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ─── Nav hover: label rolls up, duplicate rolls in from below ─── */
.nav-flip {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.15;
}
.nav-flip-in {
  display: block;
  position: relative;
  transition: transform 420ms cubic-bezier(.65, 0, .25, 1);
}
.nav-flip-in::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
}
.nav-links a:hover .nav-flip-in,
.nav-links a:focus-visible .nav-flip-in { transform: translateY(-100%); }

@media (prefers-reduced-motion: reduce) {
  .nav-flip-in { transition: none; }
  .nav-links a:hover .nav-flip-in { transform: none; }
}

/* ─── Scroll-reveal copy ─── */
.reveal-text .rw {
  opacity: .34;
  transition: opacity 90ms linear;
  will-change: opacity;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-text .rw { opacity: 1 !important; transition: none; }
}

/* ─── History: entries with no image ─── */
.history-card-img.is-empty {
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(102,161,208,.10), transparent 60%),
    var(--paper-2);
}

/* ─── Swiss flag beside the St. Gallen locale ─── */
.lab-locale {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.swiss-flag {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 2px;
  display: block;
}

/* ─── Team group photo, anchoring the section ─── */
.team-hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
  margin-bottom: 72px;
}
.team-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 860px) {
  .team-hero-photo { aspect-ratio: 4 / 3; margin-bottom: 48px; }
}

/* ─── History card: text-led, no imagery ─── */
.history-card {
  position: relative;
  justify-content: flex-start;
  gap: 22px;
}
.history-card-marker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--blue-3);
}
.history-card-marker::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  margin-top: 12px;
  background: var(--blue-3);
  opacity: .5;
}
.history-card .history-card-p {
  font-size: 17px;
  line-height: 1.72;
}
.history-card-tag {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--text-secondary);
}
/* entry transition, retriggered per year */
.history-card.is-in .history-card-marker,
.history-card.is-in .history-card-h3,
.history-card.is-in .history-card-p,
.history-card.is-in .history-card-tag {
  animation: histIn 520ms var(--ease) both;
}
.history-card.is-in .history-card-h3  { animation-delay: 40ms; }
.history-card.is-in .history-card-p   { animation-delay: 90ms; }
.history-card.is-in .history-card-tag { animation-delay: 140ms; }
@keyframes histIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .history-card.is-in .history-card-marker,
  .history-card.is-in .history-card-h3,
  .history-card.is-in .history-card-p,
  .history-card.is-in .history-card-tag { animation: none; }
}

/* ─── Credential bullets in Protocol blue ─── */
.expertise-creds span,
.expertise-creds-sm span { color: var(--blue-3); }
.expertise-creds .expertise-read-more { color: var(--ink); }

/* ─── Portrait framing ─── */
.expertise-card-main .expertise-portrait img {
  object-position: 50% 22%;
  transform: scale(1.14);
}
.team-card img.zoom-in { transform: scale(1.34); transform-origin: 50% 34%; }

/* group photo, a touch smaller */
.team-hero-photo { aspect-ratio: 24 / 9; }
@media (max-width: 860px) { .team-hero-photo { aspect-ratio: 4 / 3; } }

/* ─── Scroll hint fades out once the page moves ─── */
.hero-scroll-hint {
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}
body.has-scrolled .hero-scroll-hint {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

/* ─── Credential bullets: blue marker, black text ─── */
.expertise-creds span,
.expertise-creds-sm span { color: var(--ink); }
.expertise-creds span .b,
.expertise-creds-sm span .b { color: var(--blue-3); }
.expertise-creds .expertise-read-more { color: var(--ink); }

/* ─── Board roles match the linked ones ─── */
.team-role.dim { color: var(--blue-3); }

/* ─── Todd / Ryan: source shots sit low with heavy headroom ─── */
.team-card img.zoom-in {
  object-position: 50% 78%;
  transform: scale(1.42);
  transform-origin: 50% 62%;
}

/* ─── Section 01: fewer words, more presence ─── */
.about-body {
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.58;
}

/* ─── Credential markers drawn as true circles ─── */
.expertise-creds span .b,
.expertise-creds-sm span .b {
  font-size: 0;
  line-height: 0;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-3);
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* Todd's frame needs a harder crop than Ryan's — he sits lower in the source */
.team-card img.zoom-in-todd {
  object-position: 50% 78%;
  transform: scale(1.5);
  transform-origin: 50% 72%;
}

/* ─── Partner enquiry form ─── */
.partner-form {
  width: min(680px, 100%);
  margin: 34px auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pf-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.pf-field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244,239,235,.62);
}
.pf-field input,
.pf-field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--paper);
  background: rgba(244,239,235,.06);
  border: 1px solid rgba(244,239,235,.24);
  border-radius: 0;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.pf-field textarea { resize: vertical; min-height: 120px; }
.pf-field input:focus,
.pf-field textarea:focus {
  outline: none;
  border-color: var(--blue-1);
  background: rgba(244,239,235,.1);
}
.pf-field input:focus-visible,
.pf-field textarea:focus-visible { outline: 2px solid var(--blue-1); outline-offset: 2px; }
.pf-field.has-error input,
.pf-field.has-error textarea { border-color: #d98a86; }
.pf-error {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #e5a9a5;
  min-height: 0;
}
.pf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.partner-form .partner-btn { align-self: flex-start; cursor: pointer; border: none; }
.partner-form .partner-btn[disabled] { opacity: .55; cursor: default; }
.pf-status {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(244,239,235,.8);
  margin: 0;
  min-height: 20px;
}
.pf-status.is-error { color: #e5a9a5; }
.pf-status.is-ok { color: #a8d8b0; }

@media (max-width: 620px) {
  .pf-row { grid-template-columns: 1fr; }
  .partner-form { margin-top: 26px; gap: 15px; }
}

/* ─── Mobile nav: keep the closed menu out of the focus order ───
   opacity alone leaves the links tabbable and exposed to screen readers. */
@media (max-width: 768px) {
  .nav-links {
    visibility: hidden;
    transition: opacity .28s var(--ease), visibility 0s linear .28s;
  }
  body.nav-open .nav-links {
    visibility: visible;
    transition: opacity .28s var(--ease), visibility 0s;
  }
  .nav-links a { min-height: 44px; align-items: center; }
}

/* ─── Comfortable tap targets on touch ─── */
@media (max-width: 860px) {
  .footer-col a { padding: 6px 0; min-height: 30px; display: flex; align-items: center; }
  .footer-bottom a { padding: 8px 0; display: inline-flex; align-items: center; }
  .history-year-btn { padding: 7px 0; min-height: 32px; }
  .history-nav-btn { min-width: 44px; min-height: 44px; }
  .tech-phase-item { padding-top: 10px; padding-bottom: 10px; }
}

/* ─── Map panel needs real height on small screens ─── */
@media (max-width: 860px) {
  .hum-map-iframe { height: 420px; min-height: 420px; }
}
@media (max-width: 560px) {
  .hum-map-iframe { height: 360px; min-height: 360px; }
}

/* ─── History card imagery ───
   Sources are a mix of 1:1 and 3:2, so the frame is a fixed 3:2 and images
   cover it. Overrides the old fixed 230px height. */
.history-card-img {
  height: auto;
  aspect-ratio: 3 / 2;
  width: 100%;
}
.history-card-img img {
  object-position: 50% 50%;
}
.history-card-img[hidden] { display: none; }

/* ─── Photo captions, so real photography reads as real ─── */
.science-figure { margin: 0; }
.photo-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(244,239,235,.5);
  margin-top: 11px;
  line-height: 1.5;
}

/* ─── History on small screens ───
   The card keeps its border and background at this width, so zero horizontal
   padding left the copy sitting on the rule. Restore the inset, and bring the
   year back: the year list and the large year display are both hidden here, so
   without it there is nothing telling you which entry you are looking at. */
@media (max-width: 768px) {
  .history-card { padding: 26px 22px 30px; }

  .history-year-display {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 18px;
    /* the desktop rule centres the year inside a 420px column; on a single
       column that becomes 420px of dead space above the card */
    min-height: 0;
    justify-content: flex-start;
  }
  .history-year-meta { margin-top: 0; }
  .history-big-year {
    font-size: clamp(42px, 13vw, 64px);
    line-height: 1;
  }
  .history-year-meta { display: flex; align-items: center; gap: 10px; }
  .history-year-meta-line { width: 20px; }

  .history-top { margin-bottom: 26px; }
}

@media (max-width: 480px) {
  .history-card { padding: 22px 18px 26px; }
  .history-card-h3 { font-size: 27px; line-height: 1.15; }
}

/* ─── Section 01 copy sits at full ink so revealed words read darker ───
   Scoped to .about-body: the humanitarian quote also uses .reveal-text but
   sits on navy and needs its own light colour. */
.about-body.reveal-text { color: var(--ink); }
.reveal-text .rw { opacity: .30; }

/* ─── Clinical expertise cards ───
   Names scale with the card so three-up does not force every name onto two
   lines; the inline 28px they used to carry could not respond to width. */
.expertise-card-sm .expertise-name {
  font-size: clamp(21px, 1.7vw, 28px);
  line-height: 1.12;
}
.expertise-card-sm .expertise-creds-sm { font-size: 12.5px; }
@media (max-width: 768px) {
  .expertise-card-sm .expertise-name { font-size: 24px; }
  .expertise-card-sm .expertise-creds-sm { font-size: 13px; }
}

/* ─── Clinical expertise row at mid widths ───
   Three cards in a two-column grid leaves the third stranded alone on its own
   row. Between tablet and desktop the odd card spans the full width instead,
   with a slightly larger portrait so it does not read as sparse. */
@media (min-width: 769px) and (max-width: 1199px) {
  .expertise-cards-row { grid-template-columns: 1fr 1fr; }
  .expertise-cards-row > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .expertise-cards-row > :last-child:nth-child(odd) { grid-template-columns: 190px 1fr; }
}

/* ─── Comparison intro ─── */
.compare-intro {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 44px;
}
.compare-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--text-tertiary);
  padding-top: 4px;
}
.compare-lede {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  max-width: 64ch;
}
.compare-p strong { font-weight: 600; color: var(--ink); }
.compare-cell:not(:first-child) .compare-p strong { color: var(--text-secondary); }

/* history image qualifier */
.history-card-cap { margin-top: -6px; color: var(--text-tertiary); }
.history-card-cap[hidden] { display: none; }

@media (max-width: 768px) {
  .compare-intro { grid-template-columns: 1fr; gap: 12px; margin-bottom: 30px; }
  .compare-lede { font-size: 15px; }
}

/* ─── Tap targets on touch devices at any width ───
   The earlier sizing was width-gated at 860px, so a touch laptop or an iPad in
   landscape (1024+) still got 13-16px targets in the nav and footer. Keying off
   pointer type covers those regardless of viewport width. */
@media (pointer: coarse) {
  .nav-links a { min-height: 44px; align-items: center; }
  .footer-col a { padding: 7px 0; min-height: 32px; display: flex; align-items: center; }
  .footer-bottom a { padding: 9px 0; display: inline-flex; align-items: center; min-height: 32px; }
  .history-year-btn { padding: 8px 0; min-height: 34px; }
  .history-nav-btn { min-width: 44px; min-height: 44px; }
  .tech-phase-item { padding-top: 10px; padding-bottom: 10px; }
  .expertise-read-more, .team-read-more { padding: 6px 0; min-height: 30px; display: inline-flex; align-items: center; }
}

/* ─── Science section lab photograph ───
   Tighter crop on the reactor and the technician; the wide original left a lot
   of empty cleanroom wall on the left. */
.science-img-wrap {
  overflow: hidden;   /* the scale below spills without this, pushing page width */
}
.science-img-wrap img {
  transform: scale(1.18);
  transform-origin: 58% 45%;
}

/* ─── Humanitarian: why the problem persists ─── */
.hum-why {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line-on-dark);
}
.hum-why-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--blue-1);
  margin-bottom: 14px;
}
.hum-why-p {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.68;
  color: rgba(244,239,235,.72);
  margin: 0 0 14px;
}
.hum-why-p:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
  .hum-why { margin-top: 24px; padding-top: 22px; }
  .hum-why-p { font-size: 14px; }
}
