*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --cream: #F0EAE0;
  --cream-dark: #E6DDD0;
  --black: #0C0C0C;
  --mid: #550000;
  --border: rgba(12,12,12,0.1);
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body { overflow-x: hidden; }
body {
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse 80% 60% at 12% 40%, rgba(175, 120, 100, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 88% 15%, rgba(85, 0, 0, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 95%, rgba(200, 165, 135, 0.06) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='24' height='24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='0.75' fill='rgba(12%2C12%2C12%2C0.05)'/%3E%3C/svg%3E");
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── TRUST BAR ── */
.trust-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 102;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--black);
  color: rgba(240, 234, 224, 0.75);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.03em;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-divider { color: rgba(240, 234, 224, 0.2); }

/* ── NAV — transparent over hero, 3-column ── */
nav {
  position: fixed;
  top: 40px; left: 0; right: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  padding: 20px 48px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.35s ease, border-color 0.35s ease;
  animation: slideDown 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}
.nav-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  transition: color 0.35s ease;
}
.nav-logo svg { width: 48px; height: 48px; transition: color 0.35s ease; }
.nav-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.nav-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
  cursor: pointer;
  transition: color 0.2s, text-decoration-color 0.2s;
  letter-spacing: 0.02em;
  padding: 6px 0;
  white-space: nowrap;
}
.nav-link:hover { color: white; text-decoration-color: rgba(255,255,255,0.4); }
.nav-link:focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
  border-radius: 2px;
}
.nav-logo:focus-visible {
  outline: 2px solid white;
  outline-offset: 6px;
  border-radius: 4px;
}

/* Nav CTA — outlined pill, white on hero */
.btn-nav {
  display: inline-flex;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 24px;
  min-height: 40px;
  border-radius: 100px;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  color: white;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-nav:hover { background: white; color: var(--black); border-color: white; }
.btn-nav:focus-visible { outline: 2px solid white; outline-offset: 3px; }

/* Scrolled state — cream background, dark text */
nav.nav--scrolled {
  background: rgba(240, 234, 224, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
nav.nav--scrolled .nav-logo { color: var(--black); }
nav.nav--scrolled .nav-link { color: var(--mid); }
nav.nav--scrolled .nav-link:hover { color: var(--black); text-decoration-color: rgba(12,12,12,0.25); }
nav.nav--scrolled .nav-link:focus-visible { outline-color: var(--black); }
nav.nav--scrolled .nav-logo:focus-visible { outline-color: var(--black); }
nav.nav--scrolled .btn-nav { border-color: var(--black); color: var(--black); }
nav.nav--scrolled .btn-nav:hover { background: var(--black); color: var(--cream); }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 12px 22px;
  min-height: 44px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}
.btn-primary:hover { opacity: 0.82; transform: translateY(-1px); }
.btn-primary:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 12px 22px;
  min-height: 44px;
  border-radius: 100px;
  text-decoration: none;
  border: 1.5px solid var(--black);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--black); color: var(--cream); }
.btn-outline:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

/* ── HERO — full-bleed background image ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark gradient — bottom-heavy so bottom-left text is always readable */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.1) 100%),
    linear-gradient(to right, rgba(0,0,0,0.35) 0%, transparent 55%);
  z-index: 1;
}

/* Main text — bottom-left */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 72px 80px;
  max-width: 680px;
  animation: fadeUp 0.85s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 20px;
  animation: fadeUp 0.8s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-headline em {
  font-style: italic;
  color: white;
}
.hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fadeUp 0.75s 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  animation: fadeUp 0.65s 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* White pill CTA */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  background: white;
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 14px 30px;
  min-height: 48px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}
.btn-hero-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-hero-primary:focus-visible { outline: 2px solid white; outline-offset: 3px; }

/* Trust signal row below CTA */
.hero-trust-signal {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-trust-stars { color: #F4C542; font-size: 13px; letter-spacing: 2px; }
.hero-trust-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

/* Floating stat card — bottom-right */
.hero-stat-card {
  position: absolute;
  bottom: 64px;
  right: 64px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 28px 32px;
  color: white;
  min-width: 200px;
  animation: fadeUp 0.7s 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-stat-number {
  font-family: 'Fraunces', serif;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.hero-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin-bottom: 14px;
}
.hero-stat-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

/* ── INSTITUTIONS ── */
.institutions-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 48px;
  text-align: center;
}
.institutions-label {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 24px;
}
.institutions-track-wrap { overflow: hidden; white-space: nowrap; }
.institutions-track {
  display: inline-flex;
  align-items: center;
  gap: 80px;
  will-change: transform;
}
.inst-logo { height: 48px; width: auto; object-fit: contain; flex-shrink: 0; opacity: 0.85; }
.inst-logo.imperial { height: 28px; }
.inst-logo-ucl { height: 48px; width: auto; flex-shrink: 0; opacity: 0.85; }

/* ── SECTIONS ── */
section { padding: 140px 72px; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 28px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  max-width: 640px;
  margin-bottom: 20px;
}
.section-title em {
  font-style: italic;
  color: var(--mid);
}
.section-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--mid);
  max-width: 520px;
  line-height: 1.8;
}

/* ── PROBLEM — text left, clinical data table right ── */
.problem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.problem-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.problem-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  border-radius: 16px;
}
.stat-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(240, 234, 224, 0.5);
  align-items: center;
}
.stat-idx {
  font-size: 16px;
  color: var(--mid);
  letter-spacing: 0.08em;
}
.stat-lbl {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.5;
}
.stat-val {
  font-family: 'Fraunces', serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--black);
  text-align: right;
}

/* ── SECTION IMAGE BAND ── */
.section-image-band {
  height: 300px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* ── PLATFORM HEADER ── */
.how-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── PROBLEM — label left, headline/body centered and spread out ── */
#problem .section-label { margin-bottom: 36px; }
#problem .section-title {
  max-width: 960px;
  margin: 0 auto 32px;
  text-align: center;
}
#problem .section-body {
  max-width: 680px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.9;
  text-align: center;
}
#platform .section-title,
#team .section-title {
  max-width: 900px;
}
.how-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
  flex-wrap: wrap;
  gap: 24px;
}

/* ── STEPS ── */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step-item {
  padding: 36px 40px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(240, 234, 224, 0.25);
}
.step-num {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--mid);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.step-body {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 40px;
  align-items: start;
}
.step-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.step-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--mid);
  line-height: 1.7;
  max-width: 600px;
}
.step-icon {
  width: 40px;
  height: 40px;
  opacity: 0.35;
  margin-top: 6px;
}

/* ── TEAM ── */
#team { padding-top: 72px; }
#platform { padding-top: 72px; }
#problem { padding-top: 72px; padding-bottom: 72px; }
.team-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.team-backed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-top: 32px;
  margin-top: 0;
  text-align: center;
}
.team-backed-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: 0.02em;
}
.team-backed-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}
.backed-logo {
  height: 100px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
}
.team-authors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}
.team-author {
  padding: 48px 40px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(240, 234, 224, 0.35);
}
.author-photo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 28px;
  display: block;
}
.author-name {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.author-role {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: var(--mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.author-bio {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--mid);
  line-height: 1.7;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── CTA — two-column, left-aligned, text left / button right ── */
.cta-section {
  position: relative;
  overflow: hidden;
  color: var(--mid);
  padding: 140px 72px;
  text-align: left;
}
.cta-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
}
.cta-side {
  display: flex;
  align-items: flex-end;
  align-self: flex-end;
  flex-shrink: 0;
}
.btn-cream {
  display: inline-flex;
  align-items: center;
  background: var(--cream);
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 13px 28px;
  min-height: 44px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}
.btn-cream:hover { opacity: 0.82; transform: translateY(-1px); }
.btn-cream:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

/* ── FOOTER ── */
footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #0E1413;
}
.footer-logo svg { width: 28px; height: 28px; }
.footer-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.footer-right { display: flex; align-items: center; gap: 32px; }
.footer-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--mid);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  cursor: pointer;
  transition: color 0.2s, text-decoration-color 0.2s;
  letter-spacing: 0.02em;
}
.footer-link:hover { color: var(--black); text-decoration-color: rgba(12,12,12,0.25); }
.footer-link:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
  border-radius: 2px;
}
.footer-logo:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 6px;
  border-radius: 4px;
}

/* ── PLATFORM SECTION BACKGROUND ── */
#platform {
  background-color: var(--cream-dark) !important;
  background-image:
    radial-gradient(ellipse 70% 50% at 85% 110%, rgba(85, 0, 0, 0.06) 0%, transparent 70%),
    linear-gradient(155deg, rgba(255,255,255,0.32) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg width='24' height='24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='0.75' fill='rgba(12%2C12%2C12%2C0.04)'/%3E%3C/svg%3E") !important;
}

/* ── STAGGER REVEALS ── */

/* Children start hidden */
.stat-table .stat-row,
.steps-list .step-item,
.team-authors .team-author {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease;
}
/* Card hover lift — only once visible */
.stat-table.visible .stat-row:hover { box-shadow: 0 6px 24px rgba(12, 12, 12, 0.1); }
.steps-list.visible .step-item:hover { box-shadow: 0 8px 28px rgba(12, 12, 12, 0.08); }
.team-authors.visible .team-author:hover { box-shadow: 0 10px 36px rgba(12, 12, 12, 0.09); }

/* Parent .visible triggers cascade */
.stat-table.visible .stat-row,
.steps-list.visible .step-item,
.team-authors.visible .team-author { opacity: 1; transform: none; }

/* Stat rows: base delay so problem text appears first */
.stat-table.visible .stat-row:nth-child(1) { transition-delay: 0.15s; }
.stat-table.visible .stat-row:nth-child(2) { transition-delay: 0.27s; }
.stat-table.visible .stat-row:nth-child(3) { transition-delay: 0.39s; }
.stat-table.visible .stat-row:nth-child(4) { transition-delay: 0.51s; }

/* Steps: top to bottom */
.steps-list.visible .step-item:nth-child(1) { transition-delay: 0s; }
.steps-list.visible .step-item:nth-child(2) { transition-delay: 0.14s; }
.steps-list.visible .step-item:nth-child(3) { transition-delay: 0.28s; }
.steps-list.visible .step-item:nth-child(4) { transition-delay: 0.42s; }
.steps-list.visible .step-item:nth-child(5) { transition-delay: 0.56s; }

/* Team: left to right */
.team-authors.visible .team-author:nth-child(1) { transition-delay: 0s; }
.team-authors.visible .team-author:nth-child(2) { transition-delay: 0.14s; }
.team-authors.visible .team-author:nth-child(3) { transition-delay: 0.28s; }

/* CTA: left column then right button */
.cta-inner > div {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.cta-section.visible .cta-inner > div { opacity: 1; transform: none; }
.cta-section.visible .cta-inner > div:nth-child(1) { transition-delay: 0s; }
.cta-section.visible .cta-inner > div:nth-child(2) { transition-delay: 0.28s; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE: TABLET ── */
@media (max-width: 960px) {
  .trust-bar { display: none; }
  nav { top: 0; padding: 16px 24px; }
  .nav-left { display: none; }
  /* A logo centered across the full nav width collides with the
     right-aligned CTA once the viewport is this narrow — drop it
     back into normal flow on the left instead of fighting for space. */
  .nav-logo { position: static; transform: none; }
  /* Fully opaque once scrolled — on mobile the bar has less margin
     for anything to show through, and backdrop-filter blur alone
     isn't reliably supported on every mobile browser. */
  nav.nav--scrolled { background: var(--cream); }
  section { padding: 72px 32px; }
  .cta-section { padding: 72px 32px; }

  /* Manual line breaks are tuned for wide desktop headlines only —
     drop them below the tablet breakpoint so the text reflows naturally. */
  #problem .section-title br,
  #platform .section-title br,
  #team .section-title br {
    display: none;
  }

  .hero-content { padding: 0 32px 56px; }
  .hero-stat-card { display: none; }

  .institutions-wrap { padding: 24px 32px; }
  .problem { grid-template-columns: 1fr; gap: 40px; }
  #problem, #platform, #team { padding-top: 56px; }
  #problem { padding-bottom: 56px; }
  .how-header { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
  .step-body { grid-template-columns: 1fr 36px; }
  .step-item { padding: 28px 28px; }
  .team-authors { grid-template-columns: 1fr; gap: 16px; }
  .cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .cta-side { align-self: auto; }
  footer { flex-direction: column; gap: 24px; text-align: center; }
  .footer-right { flex-direction: column; gap: 12px; }
}

/* ── RESPONSIVE: MOBILE ── */
@media (max-width: 540px) {
  body { font-size: 15px; }

  /* Nav — hide wordmark on very small screens, keep mark + CTA */
  nav { padding: 14px 16px; }
  .nav-logo svg { width: 28px; height: 28px; }
  .nav-logo-text { font-size: 17px; }
  .nav-logo { gap: 7px; }
  .btn-nav { font-size: 11px; padding: 8px 14px; min-height: 36px; }

  /* Hero */
  .hero-content { padding: 0 20px 48px; max-width: 100%; }
  .hero-headline { font-size: clamp(32px, 8.5vw, 44px); }
  .hero-sub { font-size: 14px; max-width: 100%; }
  .btn-hero-primary { font-size: 13px; padding: 13px 22px; }
  .hero-trust-signal { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-trust-text { font-size: 11px; }

  /* Institutions */
  .institutions-wrap { padding: 20px 16px; }
  .inst-logo { height: 36px; }
  .inst-logo-ucl { height: 36px; }
  .inst-logo.imperial { height: 22px; }

  /* Sections */
  section { padding: 56px 20px; }
  .cta-section { padding: 56px 20px; }
  #problem, #platform, #team { padding-top: 48px; }
  #problem { padding-bottom: 48px; }
  .section-title { font-size: clamp(28px, 8vw, 44px); max-width: 100%; }
  .section-body { max-width: 100%; }

  /* Stat rows */
  .stat-row { grid-template-columns: 18px 1fr auto; gap: 10px; padding: 14px 14px; }
  .stat-idx { font-size: 11px; }
  .stat-lbl { font-size: 13px; }
  .stat-val { font-size: clamp(20px, 5vw, 28px); }

  /* Platform */
  #platform {
    margin: 0 12px !important;
    border-radius: 24px !important;
    padding: 48px 20px !important;
  }
  .step-body { grid-template-columns: 1fr; }
  .step-icon { display: none; }
  .step-item { padding: 24px 20px; }
  .step-title { font-size: clamp(22px, 6vw, 32px); }

  /* Team */
  .author-photo { width: 76px; height: 76px; margin-bottom: 20px; }
  .author-name { font-size: 18px; }
  .team-author { padding: 28px 20px; }
  .backed-logo { height: 56px; }
  .team-backed-logos { gap: 24px; }
  .team-backed-label { font-size: 15px; }

  /* CTA */
  .cta-inner { gap: 28px; }
  .cta-side { align-self: auto; }
  .btn-cream { font-size: 13px; padding: 13px 22px; }

  /* Footer */
  footer { padding: 32px 20px; }
  .footer-logo svg { width: 22px; height: 22px; }
  .footer-logo-text { font-size: 15px; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
