:root {
  --bg: #ffffff;
  --bg-elev: #fafafa;
  --ink: #0d0d0d;
  --ink-dim: #545454;
  --ink-faint: #9fa0a2;
  --line: #e7e7e7;
  --line-soft: #f0f0f0;
  --line-strong: #d0d0d0;
  --accent: #1863dc;
  --accent-strong: #021cc7;
  --glow: rgba(24, 99, 220, 0.16);
  --serif: "General Sans", system-ui, -apple-system, sans-serif;
  --sans: "General Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  /* Native OS font stacks for dashboard / product views - gives Segoe UI on
     Windows, San Francisco on Mac. Reads as a real software UI. */
  --ui-sans: system-ui, -apple-system, "Segoe UI", "Aptos", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ui-mono: ui-monospace, "Cascadia Mono", "Cascadia Code", "Segoe UI Mono", "SF Mono", Menlo, Consolas, monospace;
  --max: 1320px;
  --pad: clamp(20px, 4vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: clamp(72px, 9vh, 96px);
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: clip;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

@media (max-width: 520px) {
  :root {
    --pad: 18px;
  }
}

body {
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(24, 99, 220, 0.05), transparent 60%),
    radial-gradient(900px 700px at -10% 10%, rgba(2, 28, 199, 0.03), transparent 55%),
    var(--bg);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

/* Background effects */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

main,
.nav,
.foot {
  position: relative;
  z-index: 2;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 50;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.mark {
  width: 14px;
  height: 14px;
  position: relative;
  display: inline-block;
}
.mark::before,
.mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
}
.mark::after {
  transform: rotate(45deg);
  opacity: 0.5;
}

.wordmark {
  letter-spacing: 0.2em;
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}
.nav__toggle:hover {
  border-color: var(--accent);
}
.nav__toggle-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav__toggle-bar:nth-child(1) { top: 14px; }
.nav__toggle-bar:nth-child(2) { top: 24px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  top: 19px;
  transform: rotate(-45deg);
}

.nav__links a {
  color: var(--ink-dim);
  transition: color 0.25s ease;
}
.nav__links a:hover {
  color: var(--ink);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--glow);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

/* Shared */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.eyebrow--mono {
  color: var(--ink-faint);
}

.section__head {
  max-width: 920px;
  margin: 0 0 64px;
  display: grid;
  gap: 20px;
}

.section__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--ink-faint);
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.section__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 22ch;
}
.section__title em {
  font-style: italic;
  color: var(--accent-strong);
  font-weight: 300;
}

.section__sub {
  max-width: 64ch;
  color: var(--ink-dim);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.btn--full {
  width: 100%;
  height: 54px;
  justify-content: space-between;
}

.btn__arrow {
  transition: transform 0.25s ease;
}
.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* Hero */
.hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 80px);
  position: relative;
  display: grid;
  gap: clamp(56px, 9vw, 120px);
}

.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* Hero marquee: RESEARCH. FINANCE. INTELLIGENCE. */
.hero__marquee {
  padding: clamp(18px, 3vw, 44px) 0;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    black 4%,
    black 96%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    black 4%,
    black 96%,
    transparent 100%
  );
}

.hero__marquee-track {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  animation: hero-marquee 36s linear infinite;
  will-change: transform;
}

.hero__marquee:hover .hero__marquee-track {
  animation-play-state: paused;
}

.hero__marquee-word {
  font-family: var(--serif);
  font-weight: 500;
  font-style: normal;
  font-size: clamp(80px, 10vw, 156px);
  line-height: 1.05;
  letter-spacing: 0.025em;
  color: var(--ink);
  text-transform: uppercase;
  padding-right: clamp(48px, 6vw, 96px);
}

.hero__marquee-dot {
  color: var(--accent);
  font-style: normal;
  margin-left: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  .hero__marquee-track {
    animation: none;
  }
}

@keyframes hero-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hero__body {
  display: grid;
  gap: clamp(28px, 3.5vw, 44px);
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  justify-items: center;
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(40px, 6vw, 80px);
  flex-wrap: wrap;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 8vw, 112px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 18ch;
  text-align: center;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero__title .line__inner {
  display: block;
  transform: translateY(110%);
  transition:
    transform 1s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 1s ease;
  opacity: 0;
  will-change: transform;
}
.hero__title .line--in .line__inner {
  transform: none;
  opacity: 1;
}
.hero__title em {
  font-style: italic;
  color: var(--accent-strong);
  font-weight: 300;
}

.hero__promise {
  max-width: 38ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
  text-align: center;
}

.hero__lede {
  max-width: 56ch;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0;
  text-align: center;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0;
  justify-content: center;
}

.hero__ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  text-transform: uppercase;
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.ticker {
  display: inline-flex;
  gap: 28px;
  white-space: nowrap;
  animation: ticker 60s linear infinite;
  padding-left: 0;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Thesis */
.thesis {
  padding: clamp(56px, 9vw, 112px) 0;
  border-top: 1px solid var(--line-soft);
}

.thesis .section__head {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.thesis__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

@media (min-width: 960px) {
  .thesis__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(40px, 5vw, 80px);
  }
}

.thesis__lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
  max-width: 38ch;
}

.principles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 24px;
  column-gap: 32px;
}

@media (min-width: 600px) {
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }
}

.principles li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 14px;
  padding: 0;
  align-items: start;
}

.principles__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.2;
  color: var(--accent);
}

.principles h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin: 0 0 6px;
  color: var(--ink);
}

.principles p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 36ch;
}

/* Product preview */
.preview {
  padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 56px);
  display: flex;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #d6e4d8 100%);
  overflow: hidden;
}

.preview > * {
  position: relative;
  z-index: 1;
}

.preview__card {
  position: relative;
}

.preview__card::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 16px;
  z-index: -1;
  background:
    radial-gradient(60% 60% at 25% 25%, rgba(255, 255, 255, 0.85), transparent 65%),
    radial-gradient(60% 60% at 80% 80%, rgba(180, 210, 195, 0.55), transparent 65%);
  filter: blur(22px);
  opacity: 0.9;
}

.preview__card {
  width: 100%;
  max-width: 880px;
  background: #ffffff;
  border: 1px solid rgba(13, 20, 17, 0.12);
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow:
    0 1px 0 rgba(13, 20, 17, 0.04),
    0 32px 64px -28px rgba(13, 20, 17, 0.28),
    0 8px 20px -10px rgba(13, 20, 17, 0.18);
  /* Treat this card as a real product UI: switch to native OS fonts. */
  font-family: var(--ui-sans);
}

/* Force every descendant of the dashboard / product cards onto the OS stack. */
.preview__card,
.preview__card * {
  font-family: var(--ui-sans);
}

.preview__card .preview__head,
.preview__card .preview__brand,
.preview__card .preview__location,
.preview__card .preview__latency,
.preview__card .preview__readout-label,
.preview__card .preview__readout-value,
.preview__card .preview__readout-sub,
.preview__card .preview__pill,
.preview__card .preview__pricing-label,
.preview__card .preview__pricing-grid > div > span,
.preview__card .preview__pricing-grid b {
  font-family: var(--ui-sans);
}

.preview__card .preview__pricing-op {
  font-family: var(--ui-sans);
  font-style: normal;
}

/* SVG text inside the dashboard chart -> sans for label clarity */
.preview__card svg text {
  font-family: var(--ui-sans);
}

/* Feature mockup cards (the Structured-style rows) - same OS-app feel */
.feature__card,
.feature__card *,
.feature__card svg text {
  font-family: var(--ui-sans);
}

.feature__card svg text {
  font-family: var(--ui-mono);
}

.preview__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px clamp(18px, 3vw, 28px);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--ui-sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-dim);
}

.preview__brand {
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.preview__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-strong);
  position: relative;
  flex-shrink: 0;
  animation: previewPulseDot 2.4s ease-in-out infinite;
}

.preview__pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-strong);
  opacity: 0.5;
  animation: previewPulseRing 2.4s ease-out infinite;
}

@keyframes previewPulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

@keyframes previewPulseRing {
  0% { transform: scale(1); opacity: 0.45; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}

.preview__latency {
  color: var(--ink-faint);
}

.preview__location {
  font-family: var(--ui-sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-dim);
}

@media (max-width: 640px) {
  .preview__location {
    display: none;
  }
}

/* Scene */
.preview__scene {
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 260;
  background: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid rgba(13, 20, 17, 0.10);
}

/* Animated reveal of curve, area, band, MC dots, scrub */
@keyframes oepDraw {
  0% { stroke-dasharray: 0 2000; }
  100% { stroke-dasharray: 2000 0; }
}

@keyframes oepFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#preview-curve {
  stroke-dasharray: 0 2000;
  animation: oepDraw 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

#preview-area {
  animation: oepFadeIn 1.2s ease 1.4s forwards;
}

#preview-band {
  animation: oepFadeIn 1.2s ease 1.0s forwards;
}

#preview-mc circle {
  opacity: 0;
  animation: oepFadeIn 0.6s ease forwards;
}

#preview-mc {
  opacity: 1 !important;
}

#preview-mc circle:nth-child(1)  { animation-delay: 1.6s; }
#preview-mc circle:nth-child(2)  { animation-delay: 1.65s; }
#preview-mc circle:nth-child(3)  { animation-delay: 1.7s; }
#preview-mc circle:nth-child(4)  { animation-delay: 1.75s; }
#preview-mc circle:nth-child(5)  { animation-delay: 1.8s; }
#preview-mc circle:nth-child(6)  { animation-delay: 1.85s; }
#preview-mc circle:nth-child(7)  { animation-delay: 1.9s; }
#preview-mc circle:nth-child(8)  { animation-delay: 1.95s; }
#preview-mc circle:nth-child(9)  { animation-delay: 2.0s; }
#preview-mc circle:nth-child(10) { animation-delay: 2.05s; }
#preview-mc circle:nth-child(11) { animation-delay: 2.1s; }
#preview-mc circle:nth-child(12) { animation-delay: 2.15s; }
#preview-mc circle:nth-child(13) { animation-delay: 2.2s; }
#preview-mc circle:nth-child(14) { animation-delay: 2.25s; }
#preview-mc circle:nth-child(15) { animation-delay: 2.3s; }
#preview-mc circle:nth-child(16) { animation-delay: 2.35s; }
#preview-mc circle:nth-child(17) { animation-delay: 2.4s; }
#preview-mc circle:nth-child(18) { animation-delay: 2.45s; }
#preview-mc circle:nth-child(19) { animation-delay: 2.5s; }
#preview-mc circle:nth-child(n + 20) { animation-delay: 2.6s; }

#preview-scrub-dot,
#preview-scrub-line {
  opacity: 0;
  animation: oepFadeIn 0.5s ease 2.4s forwards;
}

.preview__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.preview__readout {
  position: absolute;
  top: 14px;
  right: 16px;
  display: grid;
  gap: 3px;
  justify-items: end;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(13, 20, 17, 0.06);
  padding: 9px 12px;
  font-family: var(--ui-sans);
  min-width: 160px;
}

.preview__readout-label {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-faint);
}

.preview__readout-value {
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.3s ease;
}

.preview__readout-sub {
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.3s ease;
}

/* Scrubber pills */
.preview__scrubber {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px clamp(16px, 3vw, 24px);
  border-bottom: 1px solid var(--line-soft);
}

.preview__pill {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--ui-sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-dim);
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.preview__pill:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.preview__pill:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.preview__pill.is-active {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #f3f1e9;
}

/* Progress underline that fills during the dwell window */
.preview__pill.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: rgba(255, 255, 255, 0.55);
  animation: pillFill 2.8s linear forwards;
}

@keyframes pillFill {
  from { width: 0; }
  to { width: 100%; }
}

/* Pricing decomposition strip */
.preview__pricing {
  padding: 18px clamp(16px, 3vw, 24px);
}

.preview__pricing-label {
  display: block;
  font-family: var(--ui-sans);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.preview__pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: end;
}

@media (min-width: 720px) {
  .preview__pricing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 0;
  }
}

@media (min-width: 880px) {
  .preview__pricing-grid {
    grid-template-columns:
      minmax(0, 1fr) auto
      minmax(0, 1fr) auto
      minmax(0, 1fr) auto
      minmax(0, 1.1fr);
    column-gap: clamp(10px, 1.5vw, 18px);
  }
}

.preview__pricing-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preview__pricing-grid > div > span {
  font-family: var(--ui-sans);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-faint);
}

.preview__pricing-grid b {
  font-family: var(--ui-sans);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.3s ease;
}

.preview__pricing-op {
  display: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
  padding-bottom: 4px;
  text-align: center;
}

@media (min-width: 880px) {
  .preview__pricing-op {
    display: block;
  }
}

.preview__pricing-total b {
  color: var(--accent-strong);
}

.preview__latency {
  transition: opacity 0.3s ease;
}

.preview__card[data-state="updating"] .preview__readout-value,
.preview__card[data-state="updating"] .preview__readout-sub,
.preview__card[data-state="updating"] .preview__pricing-grid b,
.preview__card[data-state="updating"] .preview__latency {
  opacity: 0.4;
}

.preview__foot {
  padding: 12px clamp(18px, 3vw, 28px);
  border-top: 1px solid var(--line-soft);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-faint);
  text-align: left;
}

/* ---------- Preview card · tablet & mobile ---------- */
@media (max-width: 720px) {
  .preview {
    padding: clamp(32px, 6vw, 56px) 16px;
  }

  .preview__head {
    padding: 12px 16px;
    font-size: 12px;
    letter-spacing: 0;
    flex-wrap: wrap;
    gap: 8px;
  }

  .preview__scene {
    aspect-ratio: 800 / 320;
  }

  .preview__readout {
    top: 10px;
    right: 10px;
    padding: 7px 10px;
    min-width: 0;
    gap: 1px;
  }

  .preview__readout-label {
    font-size: 11px;
    letter-spacing: 0;
  }

  .preview__readout-value {
    font-size: 16px;
  }

  .preview__readout-sub {
    font-size: 11px;
  }

  .preview__scrubber {
    padding: 12px 14px;
    gap: 6px;
    justify-content: space-between;
  }

  .preview__pill {
    padding: 6px 10px;
    font-size: 12px;
    letter-spacing: 0;
    flex: 1 1 0;
    text-align: center;
    min-width: 0;
  }

  .preview__pricing {
    padding: 16px;
  }

  .preview__pricing-label {
    font-size: 11px;
    letter-spacing: 0;
    margin-bottom: 10px;
  }

  .preview__pricing-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
  }

  .preview__pricing-grid > div > span {
    font-size: 11px;
  }

  .preview__pricing-grid b {
    font-size: 15px;
  }

  .preview__pricing-total {
    grid-column: 1 / -1;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
  }

  .preview__pricing-total b {
    font-size: 17px;
  }

  .preview__foot {
    padding: 11px 16px;
    font-size: 11px;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .preview__scene {
    aspect-ratio: 800 / 380;
  }

  .preview__readout-value {
    font-size: 13px;
  }
}

/* Make SVG chart text legible at narrow viewports */
@media (max-width: 720px) {
  .preview__svg text {
    font-size: 14px;
  }
  /* Hide the rotated y-axis title; it doesn't earn the space on mobile */
  .preview__svg text[transform*="rotate"] {
    display: none;
  }
}

/* Feature split-rows (Structured-style) */
.features {
  display: grid;
  gap: clamp(40px, 6vw, 64px);
  margin-top: clamp(40px, 6vw, 72px);
  align-items: start;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vw, 28px);
}

@media (min-width: 880px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(32px, 3.5vw, 56px);
  }
}

.feature__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 44ch;
}

.feature__copy h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

.feature__copy p {
  font-family: var(--sans);
  font-size: clamp(14.5px, 1vw, 15.5px);
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0;
}

.feature__tags {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.feature__tags li {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 10px;
}

.feature__media {
  position: relative;
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(60, 110, 90, 0.35) 0%, transparent 65%),
    radial-gradient(80% 70% at 0% 0%, rgba(245, 240, 220, 0.65) 0%, transparent 60%),
    linear-gradient(135deg, #e6e2d3 0%, #a8c0b1 100%);
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
  overflow: hidden;
}

.feature__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 40% at 90% 0%, rgba(255, 255, 255, 0.28) 0%, transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(36, 76, 84, 0.18) 0%, transparent 70%);
  mix-blend-mode: soft-light;
}

.feature__media > * {
  position: relative;
  z-index: 1;
}

/* Prismatic glow under the card */
.feature__card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  box-shadow:
    0 1px 0 rgba(13, 20, 17, 0.04),
    0 24px 48px -16px rgba(13, 20, 17, 0.18);
}

.feature__card::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 24px;
  z-index: -1;
  background:
    radial-gradient(60% 60% at 25% 25%, rgba(255, 255, 255, 0.7), transparent 65%),
    radial-gradient(60% 60% at 80% 30%, rgba(180, 205, 195, 0.6), transparent 65%),
    radial-gradient(60% 70% at 75% 85%, rgba(120, 165, 150, 0.45), transparent 65%),
    radial-gradient(60% 60% at 20% 80%, rgba(220, 220, 195, 0.55), transparent 65%);
  filter: blur(20px);
  opacity: 0.9;
}

.feature__card svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- App chrome (window frame for product mockups) ---------- */
.feature__card--app {
  padding: 0;
  background: transparent;
  box-shadow: none;
  max-width: 520px;
}

.ui-frame {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(13, 20, 17, 0.04),
    0 28px 56px -22px rgba(13, 20, 17, 0.22),
    0 6px 18px -8px rgba(13, 20, 17, 0.12);
  font-family: var(--ui-sans);
  color: #1a1a1a;
  width: 100%;
  min-width: 0;
}

.ui-frame__formulabar {
  min-width: 0;
}

.ui-frame__status span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui-frame__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: #ececec;
  border-bottom: 1px solid #d8d8d8;
}

.ui-frame__dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.ui-frame__dot {
  font-family: var(--ui-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #4a4a4a;
  background: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  padding: 2px 8px;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}

/* Tiny coloured dot before each label */
.ui-frame__dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c7c7c7;
  flex-shrink: 0;
}

.ui-frame__dot--r::before { background: #ff5f57; }
.ui-frame__dot--y::before { background: #ffbd2e; }
.ui-frame__dot--g::before { background: #28c941; }

.ui-frame__title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #555;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui-frame__tabs {
  display: flex;
  align-items: stretch;
  background: #f5f5f5;
  border-bottom: 1px solid #e3e3e3;
  padding: 0 8px;
}

.ui-frame__tab {
  font-size: 11.5px;
  color: #6a6a6a;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  cursor: default;
}

.ui-frame__tab--active {
  color: #1a1a1a;
  font-weight: 600;
  border-bottom-color: #244c54;
  background: #ffffff;
}

.ui-frame__formula {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #fbfbfb;
  border-bottom: 1px solid #ececec;
  font-family: var(--ui-mono);
  font-size: 12px;
  color: #1a1a1a;
}

.ui-frame__cellref {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 4px 8px;
  background: #ffffff;
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  font-weight: 600;
  font-size: 11.5px;
  color: #244c54;
}

.ui-frame__formulabar {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  padding: 5px 8px;
  font-size: 11.5px;
  color: #2a2a2a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui-frame__status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 12px;
  background: #f1f1f1;
  border-top: 1px solid #e0e0e0;
  font-size: 10.5px;
  color: #6a6a6a;
  font-family: var(--ui-mono);
}

.ui-frame__status span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ui-frame__livedot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c941;
  box-shadow: 0 0 0 2px rgba(40, 201, 65, 0.18);
  animation: uiFrameLive 1.8s ease-in-out infinite;
}

@keyframes uiFrameLive {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------- Sheet (Excel-style) inside Card 1 ---------- */
.sheet {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: var(--ui-sans);
  font-size: 12px;
}

.sheet col {
  /* explicit shares so table never overflows */
}
.sheet col.sheet__rowhead { width: 32px; }
.sheet col:nth-child(2) { width: 36%; }
.sheet col:nth-child(3) { width: 28%; }
.sheet col:nth-child(4) { width: 30%; }

.sheet thead th,
.sheet tbody td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 0;
}

.sheet thead th {
  background: #f5f5f5;
  border-bottom: 1px solid #d4d4d4;
  border-right: 1px solid #ececec;
  padding: 6px 10px;
  font-weight: 600;
  font-size: 11px;
  color: #555;
  text-align: left;
}

.sheet thead th:first-child {
  background: #ececec;
  width: 32px;
}

.sheet tbody th {
  background: #f5f5f5;
  border-right: 1px solid #d4d4d4;
  border-bottom: 1px solid #ececec;
  width: 32px;
  font-weight: 500;
  font-size: 11px;
  color: #888;
  text-align: center;
}

.sheet tbody td {
  border-right: 1px solid #ececec;
  border-bottom: 1px solid #f0f0f0;
  padding: 7px 10px;
  color: #1a1a1a;
}

.sheet tbody td:last-child,
.sheet thead th:last-child {
  border-right: 0;
}

.sheet__num {
  font-family: var(--ui-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.sheet__num--hi {
  color: #244c54;
  font-weight: 600;
}

.sheet__num--lo {
  color: #999;
}

.sheet__selected td,
.sheet__selected th + td {
  background: rgba(60, 110, 120, 0.08);
}

.sheet__selected td:nth-of-type(2) {
  outline: 2px solid #244c54;
  outline-offset: -2px;
}

.sheet__total {
  background: #fafafa;
  font-weight: 600;
}

.sheet__total td {
  border-top: 2px solid #244c54;
  border-bottom: 1px solid #d4d4d4;
}

.sheet__total b {
  font-family: var(--ui-mono);
  font-weight: 700;
  color: #244c54;
}

/* ---------- Chart card (Card 2 body) ---------- */
.chart-card {
  padding: 16px 18px;
  background: #ffffff;
}

.chart-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.chart-card__title {
  font-size: 12.5px;
  font-weight: 600;
  color: #1a1a1a;
}

.chart-card__legend {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #666;
}

.chart-card__swatch {
  width: 12px;
  height: 2px;
  background: #244c54;
}

.chart-card__swatch--alt {
  height: 8px;
  background: rgba(60, 110, 120, 0.18);
  border: 1px solid rgba(36, 76, 84, 0.4);
}

.chart-card__priceline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #ececec;
}

.chart-card__priceline > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chart-card__priceline span {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888;
}

.chart-card__priceline b {
  font-family: var(--ui-mono);
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.chart-card__priceline-total b {
  color: #244c54;
}

/* ---------- Map card (Card 3 body) ---------- */
.map-card {
  background: #ffffff;
}

.map-card__toolbar {
  display: flex;
  gap: 4px;
  padding: 6px 10px;
  background: #f5f5f5;
  border-bottom: 1px solid #ececec;
}

.map-card__tool {
  appearance: none;
  background: #ffffff;
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  width: 26px;
  height: 26px;
  font-size: 13px;
  line-height: 1;
  color: #555;
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.map-card__view {
  position: relative;
}

.map-card__view svg {
  display: block;
  width: 100%;
  height: auto;
}

.map-card__live {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(13, 20, 17, 0.86);
  color: #f3f1e9;
  border-radius: 14px;
  font-family: var(--ui-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.map-card__livedot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a3d4a3;
  animation: uiFrameLive 1.6s ease-in-out infinite;
}

.map-card__legend {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px 16px;
  padding: 10px 14px;
  border-top: 1px solid #ececec;
  font-size: 11.5px;
  color: #4a4a4a;
}

.map-card__legend > div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.map-card__chip {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.map-card__chip--in { background: #244c54; }
.map-card__chip--out { background: #a8a59a; }

.map-card__legend b {
  font-family: var(--ui-mono);
  font-weight: 600;
  color: #1a1a1a;
}

.map-card__legend-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.map-card__legend-total span {
  font-size: 10px;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 0.04em;
}

.map-card__legend-total b {
  color: #244c54;
}

/* ---------- Animated demo cursor + tooltips inside each app frame ---------- */
.ui-frame--demo {
  position: relative;
  overflow: hidden;
}

.feature__card .demo__cursor,
svg.demo__cursor {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 12;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.28));
  left: 8%;
  top: 28%;
  transform: scale(1);
  transform-origin: 4px 4px; /* tip of arrow */
  will-change: left, top, transform;
}

.demo__tip {
  position: absolute;
  z-index: 11;
  background: #1a1a1a;
  color: #f3f1e9;
  font-family: var(--ui-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 5px 9px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-6px, 6px);
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.3);
}

.demo__tip::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 12px;
  border: 5px solid transparent;
  border-top: 0;
  border-bottom-color: #1a1a1a;
}

/* Sleek easing for cursor travel; linear at dwell so click-pulse reads cleanly */
.demo--sheet .demo__cursor,
.demo--chart .demo__cursor,
.demo--map .demo__cursor {
  animation-duration: 12s;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

/* Tooltip transition (no animation prop overlap with the keyframe opacity) */
.demo__tip {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  animation-duration: 12s;
  animation-iteration-count: infinite;
}

/* ---------- Card 1 · sheet ---------- */
/* Targets, calibrated to the rendered table:
     B2 cell (Pluvial 0.42 highlighted) ≈ 53% × 51%
     D6 cell (£40,500 total)            ≈ 84% × 86%
     Formula bar                        ≈ 50% × 26%
*/
.demo--sheet .demo__cursor { animation-name: sheetCursor; }
.demo--sheet .demo__tip--1 { left: 53%; top: 60%; animation-name: sheetTip1; }
.demo--sheet .demo__tip--2 { left: 56%; top: 95%; animation-name: sheetTip2; }
.demo--sheet .demo__tip--3 { left: 50%; top: 38%; animation-name: sheetTip3; }

@keyframes sheetCursor {
  0%   { left: 6%;  top: 22%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
  6%   { left: 6%;  top: 22%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
  16%  { left: 53%; top: 51%; transform: scale(1); animation-timing-function: cubic-bezier(0.5, 1.7, 0.6, 1); }
  18%  { left: 53%; top: 51%; transform: scale(0.78); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  20%  { left: 53%; top: 51%; transform: scale(1); animation-timing-function: linear; }
  29%  { left: 53%; top: 51%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
  39%  { left: 84%; top: 86%; transform: scale(1); animation-timing-function: cubic-bezier(0.5, 1.7, 0.6, 1); }
  41%  { left: 84%; top: 86%; transform: scale(0.78); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  43%  { left: 84%; top: 86%; transform: scale(1); animation-timing-function: linear; }
  53%  { left: 84%; top: 86%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
  64%  { left: 50%; top: 26%; transform: scale(1); animation-timing-function: cubic-bezier(0.5, 1.7, 0.6, 1); }
  66%  { left: 50%; top: 26%; transform: scale(0.78); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  68%  { left: 50%; top: 26%; transform: scale(1); animation-timing-function: linear; }
  80%  { left: 50%; top: 26%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
  92%  { left: 6%;  top: 22%; transform: scale(1); animation-timing-function: linear; }
  100% { left: 6%;  top: 22%; transform: scale(1); }
}
@keyframes sheetTip1 {
  0%, 19%, 30%, 100% { opacity: 0; transform: translateY(4px); }
  21%, 28% { opacity: 1; transform: translateY(0); }
}
@keyframes sheetTip2 {
  0%, 43%, 54%, 100% { opacity: 0; transform: translateY(4px); }
  45%, 52% { opacity: 1; transform: translateY(0); }
}
@keyframes sheetTip3 {
  0%, 68%, 79%, 100% { opacity: 0; transform: translateY(4px); }
  70%, 78% { opacity: 1; transform: translateY(0); }
}

/* ---------- Card 2 · chart ---------- */
/* Targets:
     Layer band centre ≈ 58% × 50%
     Quoted premium pill (4th col bottom strip) ≈ 88% × 88%
     OEP curve tail ≈ 78% × 70%
*/
.demo--chart .demo__cursor { animation-name: chartCursor; }
.demo--chart .demo__tip--1 { left: 58%; top: 60%; animation-name: chartTip1; }
.demo--chart .demo__tip--2 { left: 76%; top: 96%; animation-name: chartTip2; }
.demo--chart .demo__tip--3 { left: 60%; top: 80%; animation-name: chartTip3; }

@keyframes chartCursor {
  0%   { left: 6%;  top: 22%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
  6%   { left: 6%;  top: 22%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
  16%  { left: 58%; top: 50%; transform: scale(1); animation-timing-function: cubic-bezier(0.5, 1.7, 0.6, 1); }
  18%  { left: 58%; top: 50%; transform: scale(0.78); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  20%  { left: 58%; top: 50%; transform: scale(1); animation-timing-function: linear; }
  29%  { left: 58%; top: 50%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
  39%  { left: 88%; top: 88%; transform: scale(1); animation-timing-function: cubic-bezier(0.5, 1.7, 0.6, 1); }
  41%  { left: 88%; top: 88%; transform: scale(0.78); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  43%  { left: 88%; top: 88%; transform: scale(1); animation-timing-function: linear; }
  53%  { left: 88%; top: 88%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
  64%  { left: 78%; top: 70%; transform: scale(1); animation-timing-function: cubic-bezier(0.5, 1.7, 0.6, 1); }
  66%  { left: 78%; top: 70%; transform: scale(0.78); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  68%  { left: 78%; top: 70%; transform: scale(1); animation-timing-function: linear; }
  80%  { left: 78%; top: 70%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
  92%  { left: 6%;  top: 22%; transform: scale(1); animation-timing-function: linear; }
  100% { left: 6%;  top: 22%; transform: scale(1); }
}
@keyframes chartTip1 {
  0%, 19%, 30%, 100% { opacity: 0; transform: translateY(4px); }
  21%, 28% { opacity: 1; transform: translateY(0); }
}
@keyframes chartTip2 {
  0%, 43%, 54%, 100% { opacity: 0; transform: translateY(4px); }
  45%, 52% { opacity: 1; transform: translateY(0); }
}
@keyframes chartTip3 {
  0%, 68%, 79%, 100% { opacity: 0; transform: translateY(4px); }
  70%, 78% { opacity: 1; transform: translateY(0); }
}

/* ---------- Card 3 · map ---------- */
/* Targets:
     Affected building dot cluster ≈ 38% × 56%
     Flood polygon outline (top edge) ≈ 50% × 36%
     Portfolio loss legend ≈ 82% × 92%
*/
.demo--map .demo__cursor { animation-name: mapCursor; }
.demo--map .demo__tip--1 { left: 36%; top: 65%; animation-name: mapTip1; }
.demo--map .demo__tip--2 { left: 50%; top: 26%; animation-name: mapTip2; }
.demo--map .demo__tip--3 { left: 60%; top: 96%; animation-name: mapTip3; }

@keyframes mapCursor {
  0%   { left: 8%;  top: 24%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
  6%   { left: 8%;  top: 24%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
  16%  { left: 38%; top: 56%; transform: scale(1); animation-timing-function: cubic-bezier(0.5, 1.7, 0.6, 1); }
  18%  { left: 38%; top: 56%; transform: scale(0.78); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  20%  { left: 38%; top: 56%; transform: scale(1); animation-timing-function: linear; }
  29%  { left: 38%; top: 56%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
  39%  { left: 50%; top: 36%; transform: scale(1); animation-timing-function: cubic-bezier(0.5, 1.7, 0.6, 1); }
  41%  { left: 50%; top: 36%; transform: scale(0.78); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  43%  { left: 50%; top: 36%; transform: scale(1); animation-timing-function: linear; }
  53%  { left: 50%; top: 36%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
  64%  { left: 82%; top: 92%; transform: scale(1); animation-timing-function: cubic-bezier(0.5, 1.7, 0.6, 1); }
  66%  { left: 82%; top: 92%; transform: scale(0.78); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  68%  { left: 82%; top: 92%; transform: scale(1); animation-timing-function: linear; }
  80%  { left: 82%; top: 92%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
  92%  { left: 8%;  top: 24%; transform: scale(1); animation-timing-function: linear; }
  100% { left: 8%;  top: 24%; transform: scale(1); }
}
@keyframes mapTip1 {
  0%, 19%, 30%, 100% { opacity: 0; transform: translateY(4px); }
  21%, 28% { opacity: 1; transform: translateY(0); }
}
@keyframes mapTip2 {
  0%, 43%, 54%, 100% { opacity: 0; transform: translateY(4px); }
  45%, 52% { opacity: 1; transform: translateY(0); }
}
@keyframes mapTip3 {
  0%, 68%, 79%, 100% { opacity: 0; transform: translateY(4px); }
  70%, 78% { opacity: 1; transform: translateY(0); }
}

/* Pause animations when reduced-motion is requested */
@media (prefers-reduced-motion: reduce) {
  .demo__cursor,
  .demo__tip {
    animation: none !important;
  }
  .demo__cursor {
    left: 50%;
    top: 50%;
  }
}

/* Mobile tweaks for the app frames */
@media (max-width: 720px) {
  .ui-frame__title {
    font-size: 11px;
  }
  .ui-frame__tabs {
    padding: 0 4px;
  }
  .ui-frame__tab {
    padding: 7px 10px;
    font-size: 11px;
  }
  .ui-frame__formula {
    padding: 6px 10px;
    gap: 6px;
  }
  .ui-frame__cellref {
    min-width: 36px;
    font-size: 10.5px;
  }
  .ui-frame__formulabar {
    font-size: 10.5px;
    padding: 4px 6px;
  }
  .ui-frame__status {
    padding: 5px 10px;
    font-size: 9.5px;
    gap: 8px;
  }
  .sheet {
    font-size: 11px;
  }
  .sheet thead th,
  .sheet tbody td {
    padding: 5px 6px;
    font-size: 10.5px;
  }
  .sheet thead th:first-child,
  .sheet tbody th {
    width: 26px;
    padding: 5px 4px;
    font-size: 10px;
  }
  .chart-card {
    padding: 12px 14px;
  }
  .chart-card__head {
    margin-bottom: 6px;
  }
  .chart-card__title {
    font-size: 11.5px;
  }
  .chart-card__legend {
    font-size: 10px;
    gap: 8px;
  }
  .chart-card__priceline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
  }
  .chart-card__priceline b {
    font-size: 13px;
  }
  .map-card__toolbar {
    padding: 5px 8px;
  }
  .map-card__tool {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .map-card__live {
    top: 8px;
    left: 8px;
    padding: 5px 10px;
    font-size: 10px;
  }
  .map-card__legend {
    grid-template-columns: 1fr;
    padding: 8px 12px;
    font-size: 11px;
  }
  .map-card__legend-total {
    align-items: flex-start;
    flex-direction: row;
    gap: 8px;
  }
  /* Mobile cursor: smaller, cleaner */
  .feature__card .demo__cursor,
  svg.demo__cursor {
    width: 11px;
    height: 11px;
  }
  .demo__tip {
    font-size: 9.5px;
    padding: 4px 7px;
    max-width: 78%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ---------- Mobile-specific keyframes for elements that REFLOW on mobile ---------- */
/* Card 2: priceline goes from 1×4 to 2×2, so the quoted-premium cell shifts */
@media (max-width: 720px) {
  @keyframes chartCursor {
    0%   { left: 6%;  top: 22%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
    6%   { left: 6%;  top: 22%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
    16%  { left: 58%; top: 50%; transform: scale(1); animation-timing-function: cubic-bezier(0.5, 1.7, 0.6, 1); }
    18%  { left: 58%; top: 50%; transform: scale(0.78); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
    20%  { left: 58%; top: 50%; transform: scale(1); animation-timing-function: linear; }
    29%  { left: 58%; top: 50%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
    /* mobile: quoted premium is row 2, col 2 of the 2×2 priceline */
    39%  { left: 75%; top: 92%; transform: scale(1); animation-timing-function: cubic-bezier(0.5, 1.7, 0.6, 1); }
    41%  { left: 75%; top: 92%; transform: scale(0.78); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
    43%  { left: 75%; top: 92%; transform: scale(1); animation-timing-function: linear; }
    53%  { left: 75%; top: 92%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
    64%  { left: 78%; top: 65%; transform: scale(1); animation-timing-function: cubic-bezier(0.5, 1.7, 0.6, 1); }
    66%  { left: 78%; top: 65%; transform: scale(0.78); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
    68%  { left: 78%; top: 65%; transform: scale(1); animation-timing-function: linear; }
    80%  { left: 78%; top: 65%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
    92%  { left: 6%;  top: 22%; transform: scale(1); animation-timing-function: linear; }
    100% { left: 6%;  top: 22%; transform: scale(1); }
  }

  /* Card 3: legend stacks 1-col, so portfolio loss moves bottom-left */
  @keyframes mapCursor {
    0%   { left: 8%;  top: 22%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
    6%   { left: 8%;  top: 22%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
    16%  { left: 38%; top: 56%; transform: scale(1); animation-timing-function: cubic-bezier(0.5, 1.7, 0.6, 1); }
    18%  { left: 38%; top: 56%; transform: scale(0.78); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
    20%  { left: 38%; top: 56%; transform: scale(1); animation-timing-function: linear; }
    29%  { left: 38%; top: 56%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
    39%  { left: 50%; top: 36%; transform: scale(1); animation-timing-function: cubic-bezier(0.5, 1.7, 0.6, 1); }
    41%  { left: 50%; top: 36%; transform: scale(0.78); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
    43%  { left: 50%; top: 36%; transform: scale(1); animation-timing-function: linear; }
    53%  { left: 50%; top: 36%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
    /* mobile: portfolio loss row is the third stacked legend item, lower-left */
    64%  { left: 30%; top: 95%; transform: scale(1); animation-timing-function: cubic-bezier(0.5, 1.7, 0.6, 1); }
    66%  { left: 30%; top: 95%; transform: scale(0.78); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
    68%  { left: 30%; top: 95%; transform: scale(1); animation-timing-function: linear; }
    80%  { left: 30%; top: 95%; transform: scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
    92%  { left: 8%;  top: 22%; transform: scale(1); animation-timing-function: linear; }
    100% { left: 8%;  top: 22%; transform: scale(1); }
  }

  /* Adjust tooltip anchor positions for the moved waypoints */
  .demo--chart .demo__tip--2 { left: 60%; top: 78%; }
  .demo--map .demo__tip--3 { left: 30%; top: 86%; }
}

/* Tablet portrait: keep the prismatic glow but reduce its intensity so it
   doesn't bloom past the panel */
@media (max-width: 880px) {
  .feature__media {
    min-height: 280px;
    padding: clamp(20px, 4vw, 40px);
  }
  .feature__card::before {
    inset: -10px;
    filter: blur(14px);
    opacity: 0.7;
  }
}

/* Mobile: full-bleed the gray media panel out to the viewport edges, but
   keep the screenshot card SMALLER and CENTERED inside, with generous
   gray surround (matches Structured-style framed-screenshot mobile view). */
@media (max-width: 720px) {
  .feature__media {
    margin-left: calc(-1 * var(--pad));
    margin-right: calc(-1 * var(--pad));
    padding: clamp(40px, 8vw, 64px) clamp(20px, 6vw, 48px);
    min-height: 0;
  }
  .feature__card,
  .feature__card--app {
    max-width: 380px;
    width: 100%;
  }
  .feature__card::before {
    inset: -8px;
    filter: blur(12px);
    opacity: 0.55;
  }
}

@media (max-width: 480px) {
  .feature__media {
    padding: 36px 18px;
  }
  .feature__card,
  .feature__card--app {
    max-width: 320px;
  }
  .feature__card {
    border-radius: 10px;
  }
  .feature__card::before {
    border-radius: 16px;
  }
  .ui-frame {
    border-radius: 8px;
  }
  .ui-frame__bar {
    padding: 8px 10px;
  }
  .ui-frame__title {
    font-size: 10.5px;
  }
}

/* Programs */
.programs {
  padding: clamp(80px, 12vw, 160px) 0;
  border-top: 1px solid var(--line-soft);
}

/* How it works */
.howit {
  padding: clamp(72px, 11vw, 140px) 0;
  border-top: 1px solid var(--line-soft);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: clamp(28px, 4vw, 48px);
  column-gap: clamp(28px, 3vw, 48px);
}

@media (min-width: 600px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.step {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  position: relative;
  transition: border-color 0.35s ease;
}
.step:hover {
  border-top-color: var(--accent);
}

.step__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--accent-strong);
}

.step h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--ink);
}

.step p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 34ch;
}

.programs__grid {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 720px) {
  .programs__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1080px) {
  .programs__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .programs__grid--two {
    grid-template-columns: 1fr 1fr;
  }
}

.program {
  background: var(--bg);
  padding: 36px clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.35s ease;
  position: relative;
}
.program:hover {
  background: var(--bg-elev);
  box-shadow: 0 1px 0 rgba(13, 20, 17, 0.02), 0 12px 32px -16px rgba(13, 20, 17, 0.08);
}

.program header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.program__idx {
  color: var(--accent);
}

.program h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.program > p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.65;
}

.program__tags {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding-top: 24px;
}

.program__tags li {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 10px;
}

/* Metrics */
.metrics {
  padding: clamp(80px, 12vw, 140px) 0;
  border-top: 1px solid var(--line-soft);
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 720px) {
  .metrics__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.metric {
  background: var(--bg);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  justify-content: space-between;
}

.metric__value {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 1;
  color: var(--accent-strong);
  letter-spacing: -0.025em;
}
.metric__value span {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  margin-left: 2px;
}

.metric__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  line-height: 1.6;
}

/* Affiliations / logo grid */
.affiliated {
  padding: clamp(80px, 12vw, 140px) 0;
  border-top: 1px solid var(--line-soft);
}

.logo-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.logo-grid--duo .logo-cell {
  flex: 1 1 240px;
  max-width: calc(50% - 1px);
  min-height: 180px;
}

.logo-grid--duo .logo-cell img {
  max-height: 72px;
}

.logo-cell {
  background: var(--bg);
  flex: 1 1 180px;
  max-width: calc(25% - 1px);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  text-align: center;
  transition: background 0.3s ease;
  position: relative;
}

/* Orphan-row fix: if the last cell is alone in a 2-col layout it gets a
   half-empty row showing the grid background. Make it span the row. */
@media (max-width: 760px) {
  .logo-cell:nth-child(odd):last-child {
    max-width: 100%;
    flex-basis: 100%;
  }
}

.logo-cell:has(img) .logo-cell__mark {
  display: none;
}

.logo-cell:hover {
  background: var(--bg-elev);
}

.logo-cell__mark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--ink-faint);
  filter: grayscale(100%);
  opacity: 0.85;
  transition: color 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.logo-cell:hover .logo-cell__mark {
  color: var(--ink);
  opacity: 1;
  filter: none;
}

.logo-cell img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.logo-cell:hover img {
  opacity: 1;
  filter: none;
}

/* Collaborate */
.collaborate {
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 1px solid var(--line-soft);
}

.collaborate__grid {
  display: grid;
  gap: clamp(40px, 5vw, 80px);
  grid-template-columns: 1fr;
  align-items: start;
  justify-items: center;
}

@media (min-width: 960px) {
  .collaborate__grid {
    grid-template-columns: 1fr;
  }
}

.collaborate__grid .contact {
  width: 100%;
  max-width: 560px;
}

.partners {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
}

.partners li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
}
.partners li:first-child {
  border-top: 1px solid var(--line-soft);
}

.partners__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  margin-right: 10px;
  display: inline-block;
  min-width: 22px;
}

.partners h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.partners p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 56ch;
}

/* Contact form */
.contact {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: clamp(28px, 3vw, 40px);
  display: grid;
  gap: 18px;
  position: relative;
  box-shadow: 0 1px 0 rgba(13, 20, 17, 0.02), 0 24px 48px -24px rgba(13, 20, 17, 0.08);
}

.contact__head {
  margin-bottom: 8px;
  display: grid;
  gap: 10px;
}

.contact__head p {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.35;
  color: var(--ink);
  max-width: 28ch;
}

.field {
  display: grid;
  gap: 8px;
}

.field__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.field input,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.contact__ack {
  margin: 0;
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.field__meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.field__meta--over {
  color: #a14040;
}

.field input[type="file"] {
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  cursor: pointer;
}

.field input[type="file"]::file-selector-button {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  margin-right: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input[type="file"]::file-selector-button:hover {
  border-color: var(--accent);
  background: var(--bg-elev);
}

.careers {
  padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 120px);
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: clamp(32px, 5vw, 56px);
}

/* Footer */
.foot {
  border-top: 1px solid var(--line-soft);
  margin-top: clamp(60px, 10vw, 120px);
  padding: 64px var(--pad) 32px;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.foot__top {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-soft);
}

@media (min-width: 800px) {
  .foot__top {
    grid-template-columns: 1fr 1.2fr;
  }
}

.foot__brand .wordmark {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink);
  text-transform: uppercase;
}
.foot__brand p {
  margin: 14px 0 0;
  color: var(--ink-dim);
  max-width: 36ch;
  font-size: 14.5px;
}

.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.foot__cols h5 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 14px;
  font-weight: 500;
}

.foot__cols ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.foot__cols a {
  color: var(--ink-dim);
  font-size: 14.5px;
  transition: color 0.2s ease;
}
.foot__cols a:hover {
  color: var(--ink);
}

.foot__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 12px;
}
.foot__legal {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 18px;
}
.foot__legal a {
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.2s ease;
}
.foot__legal a:hover {
  color: var(--ink);
}

.foot__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ============================================================
   Responsive
   Breakpoints:
     <= 980px  : tablet landscape and below, tighten heros
     <= 760px  : tablet portrait, main mobile layout shifts
     <= 560px  : phone, single-column patterns
     <= 420px  : small phone, stacked CTAs, tighter type
   ============================================================ */

@media (max-width: 980px) {
  .hero {
    padding: clamp(56px, 9vw, 100px) 0 clamp(60px, 10vw, 120px);
  }
  .hero--page {
    padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px);
  }
  .thesis,
  .programs,
  .metrics,
  .lab,
  .collaborate,
  .affiliated {
    padding: clamp(56px, 10vw, 100px) 0;
  }
  .logo-cell {
    max-width: calc(33.333% - 1px);
    flex-basis: 160px;
  }
}

@media (max-width: 760px) {
  .nav {
    padding: 14px var(--pad);
    gap: 10px;
    flex-wrap: nowrap;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--pad) 20px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s;
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__links a {
    display: block;
    width: 100%;
    font-size: 13px;
    letter-spacing: 0.14em;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    min-height: 0;
  }
  .nav__links a:last-child {
    border-bottom: 0;
  }
  .hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 22px;
    margin-bottom: clamp(28px, 5vw, 48px);
  }
  .hero__foot {
    font-size: 10px;
    letter-spacing: 0.18em;
    padding: 14px 0 0;
  }
  .hero__marquee {
    padding: clamp(10px, 2vw, 16px) 0;
  }
  .hero__marquee-word {
    font-size: clamp(56px, 10vw, 100px);
    padding-right: clamp(32px, 5vw, 64px);
  }
  .hero__marquee-track {
    animation-duration: 36s;
  }
  .hero__title {
    font-size: clamp(38px, 11vw, 56px);
    max-width: 100%;
  }
  .hero__lede {
    font-size: clamp(15px, 4vw, 18px);
  }
  .hero {
    padding: clamp(28px, 6vw, 56px) 0 clamp(32px, 6vw, 56px);
    gap: clamp(24px, 5vw, 40px);
  }
  .hero__body {
    gap: clamp(20px, 4vw, 28px);
  }
  .section__head {
    margin-bottom: clamp(36px, 6vw, 56px);
  }
  .section__title {
    font-size: clamp(28px, 6.8vw, 44px);
    max-width: 100%;
  }
  .section__sub {
    font-size: 15px;
  }
  .btn {
    height: 46px;
    padding: 0 18px;
    font-size: 11.5px;
    letter-spacing: 0.14em;
  }
  .hero--page .hero__title {
    font-size: clamp(34px, 9vw, 52px);
    margin-bottom: 22px;
  }
  .hero--page .hero__lede {
    font-size: clamp(15px, 4vw, 18px);
  }
  .lab-intro {
    gap: 14px;
  }
  .lab-intro__label {
    padding-top: 0;
  }
  .lab-intro__statement {
    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.22;
    max-width: 100%;
  }
  .lab-intro__detail {
    font-size: clamp(15px, 4vw, 17px);
    max-width: 100%;
  }
  .programs--page,
  .lab--page {
    padding-bottom: clamp(48px, 8vw, 80px);
  }
  .page-cta {
    margin-top: clamp(36px, 6vw, 56px);
    padding-top: clamp(24px, 4vw, 36px);
  }
  .program {
    padding: 28px 22px;
  }
  .program h3 {
    font-size: 22px;
  }
  .thesis {
    border-top: 1px solid var(--line-soft);
  }
  .thesis__lede {
    font-size: 19px;
  }
  .principles li {
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 12px;
    padding: 0;
  }
  .principles__num {
    font-size: 18px;
    line-height: 1.2;
  }
  .principles h3 {
    font-size: 16px;
  }
  .partners li {
    padding: 20px 0;
  }
  .partners__num {
    margin-right: 8px;
    min-width: 20px;
  }
  .foot {
    padding: 48px var(--pad) 28px;
  }
  .foot__top {
    gap: 36px;
    padding-bottom: 36px;
  }
  .contact {
    padding: 24px;
  }
  .contact__head p {
    font-size: 18px;
  }
  .field input,
  .field textarea {
    font-size: 16px; /* prevent iOS zoom on focus */
  }
  .nav__links a,
  .btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 560px) {
  .nav__brand {
    gap: 10px;
  }
  .nav__brand .wordmark {
    font-size: 11px;
    letter-spacing: 0.18em;
  }
  .metrics__grid {
    grid-template-columns: 1fr;
  }
  .metric {
    min-height: 160px;
    padding: 28px 22px;
  }
  .metric__value {
    font-size: clamp(40px, 12vw, 60px);
  }
  .foot__cols {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
  }
  .founder {
    padding: 22px;
  }
  .founder__id {
    gap: 12px;
  }
  .founder__name {
    font-size: clamp(24px, 7.5vw, 30px);
  }
  .founder__contact {
    padding-top: 14px;
  }
  .founder__contact a {
    width: 100%;
    justify-content: space-between;
  }
  .page-cta {
    flex-direction: column;
  }
  .page-cta .btn {
    width: 100%;
  }
  .logo-cell {
    flex-basis: 140px;
    max-width: calc(50% - 1px);
    min-height: 110px;
    padding: 18px 14px;
  }
  .logo-cell img {
    max-height: 44px;
  }
  .hero__ticker {
    padding: 12px 0;
    font-size: 10px;
    letter-spacing: 0.2em;
  }
}

@media (max-width: 420px) {
  :root {
    --pad: 16px;
  }
  .hero__foot {
    font-size: 9.5px;
    letter-spacing: 0.16em;
    gap: 10px;
  }
  .hero__marquee-word {
    font-size: clamp(34px, 10vw, 64px);
    padding-right: clamp(22px, 3vw, 38px);
  }
  .hero__marquee-track {
    animation-duration: 28s;
  }
  .hero__title {
    font-size: clamp(34px, 11vw, 46px);
  }
  .hero--page .hero__title {
    font-size: clamp(30px, 9vw, 42px);
  }
  .lab-intro__statement {
    font-size: clamp(20px, 6.4vw, 26px);
  }
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta .btn {
    width: 100%;
  }
  .section__title {
    font-size: clamp(26px, 8vw, 36px);
  }
  .logo-cell {
    flex-basis: 120px;
    max-width: calc(50% - 1px);
    min-height: 96px;
    padding: 14px 10px;
  }
  .logo-cell img {
    max-height: 38px;
  }
  .logo-cell__mark {
    font-size: 12.5px;
  }
  .foot__cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }
  .foot__cols > div:nth-child(3) {
    grid-column: 1 / -1;
  }
  .foot__bottom {
    font-size: 10px;
  }
}

/* Page hero (slimmer variant for sub-pages) */
.hero--page {
  padding: clamp(48px, 7vw, 100px) 0 clamp(72px, 10vw, 140px);
}
.hero--page .hero__title {
  font-size: clamp(40px, 7vw, 88px);
  max-width: 18ch;
  margin-bottom: 28px;
}
.hero--page .hero__lede {
  margin-bottom: 0;
}

.hero--page .hero__body--manifesto {
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 820px) {
  .hero--page .hero__body--manifesto {
    display: grid;
    grid-template-columns: minmax(120px, 0.4fr) minmax(0, 1.6fr);
    gap: clamp(32px, 4vw, 64px);
  }
  .hero--page .hero__body--manifesto > .hero__lede--manifesto {
    grid-column: 2 / -1;
  }
}

.hero__lede--manifesto {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 30ch;
  text-align: left;
  margin: 0;
}
.hero__lede--manifesto em {
  font-style: italic;
  color: var(--accent-strong);
  font-weight: 300;
}
.hero--page .hero__meta {
  margin-bottom: clamp(28px, 4vw, 56px);
}

/* About page: lab intro (mission statement) */
.lab-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 2.5vw, 32px);
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 820px) {
  .lab-intro {
    grid-template-columns: minmax(120px, 0.4fr) minmax(0, 1.6fr);
    gap: clamp(32px, 4vw, 64px);
  }
}

.lab-intro__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 0.35em;
}

.lab-intro__statement {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
  max-width: 30ch;
}

.lab-intro__statement em {
  font-style: italic;
  color: var(--accent-strong);
  font-weight: 300;
}

.lab-intro__detail {
  grid-column: 1 / -1;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.65;
  color: var(--ink-dim);
  margin: 0;
  max-width: 64ch;
  justify-self: start;
}

@media (min-width: 820px) {
  .lab-intro__detail {
    grid-column: 2 / -1;
  }
}

.programs--page,
.lab--page {
  padding-top: 0;
  border-top: 0;
}

.lab__grid--page {
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .lab__grid--page {
    grid-template-columns: 1fr;
    max-width: 760px;
  }
}

.page-cta {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

[aria-current="page"] {
  color: var(--ink);
}

/* Affiliations strip */
/* Team strip — research & development affiliations */
.team-strip {
  padding: clamp(56px, 8vw, 96px) 0 clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.team-strip__inner {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  justify-items: center;
  text-align: center;
}

.team-strip__label {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(12px, 1.2vw, 14px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.team-strip__logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: 960px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

@media (min-width: 720px) {
  .team-strip__logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.team-strip__logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(120px, 14vw, 160px);
  padding: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
}

@media (max-width: 719px) {
  .team-strip__logos li:nth-child(2n) {
    border-right: 0;
  }
  .team-strip__logos li:last-child {
    border-bottom: 0;
    border-right: 0;
  }
}

@media (min-width: 720px) {
  .team-strip__logos li {
    border-bottom: 0;
  }
  .team-strip__logos li:nth-child(3n) {
    border-right: 0;
  }
  .team-strip__logos li:last-child {
    border-right: 0;
  }
}

.team-strip__logos img {
  max-width: 100%;
  max-height: clamp(56px, 7vw, 84px);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.team-strip__logos li:hover img {
  opacity: 1;
  filter: none;
}

.team-strip__wordmark {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(11px, 1.05vw, 13px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: center;
  line-height: 1.4;
  max-width: 18ch;
  transition: color 0.25s ease;
}

.team-strip__logos li:hover .team-strip__wordmark {
  color: var(--ink);
}

.team-strip__logos__cell--captioned {
  flex-direction: column;
  gap: clamp(10px, 1.2vw, 16px);
}

.team-strip__logos__cell--captioned img {
  max-height: clamp(44px, 5.5vw, 64px);
}

.team-strip__caption {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-align: center;
  transition: color 0.25s ease;
}

.team-strip__logos__cell--captioned:hover .team-strip__caption {
  color: var(--ink);
}

/* Lab section */
.lab {
  padding: clamp(80px, 12vw, 160px) 0;
  border-top: 1px solid var(--line-soft);
}

.lab__grid {
  display: grid;
  gap: clamp(48px, 6vw, 80px);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 960px) {
  .lab__grid {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.lab__lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
  max-width: 42ch;
}

.founder {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px);
  max-width: 640px;
  margin: 0 auto;
  box-shadow:
    0 1px 0 rgba(13, 20, 17, 0.02),
    0 24px 48px -24px rgba(13, 20, 17, 0.08);
}

@media (min-width: 600px) {
  .founder {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .founder__id {
    order: 1;
  }
  .founder__photo {
    order: 2;
  }
}

.founder__photo {
  width: clamp(96px, 14vw, 144px);
  height: clamp(96px, 14vw, 144px);
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  filter: grayscale(100%);
  justify-self: start;
}

.founder__id {
  display: grid;
  gap: 16px;
  align-content: start;
}

.founder__role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.founder__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.founder__tags {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.founder__tags li {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 10px;
}

.founder__contact {
  list-style: none;
  padding: 16px 0 0;
  margin: 8px 0 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.founder__contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.founder__contact a:hover {
  color: var(--accent-strong);
  border-color: var(--accent);
  background: rgba(24, 99, 220, 0.06);
}

.founder__contact-arrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  transition: transform 0.2s ease;
}

.founder__contact a:hover .founder__contact-arrow {
  transform: translate(2px, -2px);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Research page - Products section (second programs block) */
.programs--product {
  padding-top: clamp(64px, 10vw, 120px);
  border-top: 1px solid var(--line-soft);
}

.programs__grid--single {
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .programs__grid--single {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1080px) {
  .programs__grid--single {
    grid-template-columns: 1fr;
  }
}

/* Featured product card (iGrid) */
.program--featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: clamp(30px, 4vw, 52px) clamp(22px, 3.5vw, 44px);
}

.program--featured > header {
  grid-column: 1 / -1;
  padding-bottom: 20px;
}

.program--featured__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.program--featured h3 {
  margin: 0;
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1.12;
}

.program--featured__body p {
  margin: 0;
  color: var(--ink-dim);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  max-width: 62ch;
}

.program--featured__side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding-top: 4px;
  border-top: 1px solid var(--line-soft);
}

.program--featured__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 14px;
}

.program--featured .program__tags {
  margin: 0;
  padding-top: 0;
  gap: 6px 8px;
}

@media (min-width: 820px) {
  .program--featured {
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.8fr);
    gap: clamp(32px, 4vw, 64px);
    padding: clamp(44px, 5vw, 72px) clamp(36px, 4vw, 60px);
    align-items: start;
  }
  .program--featured h3 {
    font-size: clamp(30px, 3vw, 42px);
  }
  .program--featured__body p {
    font-size: 16px;
  }
  .program--featured__side {
    padding-top: 0;
    border-top: 0;
    padding-left: clamp(24px, 3vw, 40px);
    border-left: 1px solid var(--line-soft);
    align-self: stretch;
  }
  .program--featured__label {
    padding-top: 0;
  }
  .program--featured .program__tags {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Research page - tighten section heads inside programs blocks on mobile */
@media (max-width: 560px) {
  .programs--page .section__head,
  .programs--product .section__head {
    margin-bottom: clamp(28px, 6vw, 44px);
  }
  .program--featured {
    padding: 26px 20px;
    gap: 18px;
  }
  .program--featured > header {
    padding-bottom: 16px;
  }
  .program--featured h3 {
    font-size: 24px;
  }
}

/* ====================================================================
   Mobile-first compaction pass.
   Tightens section padding, section-header spacing, and feature gaps so
   the page reads tightly on phones without rewriting the desktop layout.
   ==================================================================== */
@media (max-width: 720px) {
  /* Universal section padding cap - prevents 80–160px stacking on phones */
  .programs,
  .howit,
  .thesis,
  .metrics,
  .affiliated,
  .collaborate,
  .lab--page,
  .careers {
    padding: clamp(48px, 9vw, 80px) 0;
  }

  /* Section header → content gap */
  .section__head {
    margin: 0 0 clamp(24px, 5vw, 36px);
    gap: 14px;
  }
  .section__title {
    font-size: clamp(28px, 7vw, 44px);
    line-height: 1.08;
  }
  .section__sub {
    font-size: 14.5px;
    line-height: 1.55;
  }

  /* Hero spacing */
  .hero {
    padding-top: 0;
  }
  .hero__body {
    gap: clamp(20px, 4vw, 32px);
    max-width: 100%;
  }
  .hero__cta {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Feature row spacing on mobile */
  .features {
    gap: clamp(36px, 8vw, 56px);
    margin-top: clamp(28px, 5vw, 40px);
  }
  .feature {
    gap: clamp(18px, 4vw, 28px);
  }
  .feature__copy {
    gap: 14px;
  }
  .feature__copy h3 {
    font-size: clamp(22px, 6vw, 30px);
  }
  .feature__copy p {
    font-size: 14.5px;
  }

  /* Tighten the metrics grid on phones */
  .metrics__grid {
    gap: 12px;
  }
  .metric {
    min-height: 160px;
    padding: 24px 18px;
  }
  .metric__value {
    font-size: clamp(36px, 9vw, 56px);
  }
  .metric__label {
    font-size: 10.5px;
  }
}

@media (max-width: 480px) {
  .programs,
  .howit,
  .thesis,
  .metrics,
  .affiliated,
  .collaborate,
  .lab--page,
  .careers {
    padding: clamp(40px, 11vw, 64px) 0;
  }

  .section__head {
    margin: 0 0 22px;
  }

  /* Final hero floor for narrow phones */
  .hero__title {
    max-width: 100%;
  }
  .hero__promise {
    font-size: 18px;
    max-width: 32ch;
  }
  .hero__lede {
    font-size: 14px;
  }

  /* Make sure feature media doesn't dominate the column */
  .feature__media {
    min-height: 200px;
  }
}

/* ====================================================================
   Hero · mobile pass
   Make sure the headline never gets clipped by the line-reveal box, the
   gap between body and foot is sane, and the foot stays out of the way.
   ==================================================================== */
@media (max-width: 720px) {
  .hero {
    padding: clamp(28px, 7vw, 48px) 0 clamp(24px, 6vw, 40px);
    gap: clamp(28px, 6vw, 48px);
  }
  .hero__title {
    line-height: 1.06;
    max-width: 100%;
  }
  /* Allow long titles to wrap without being clipped by overflow:hidden */
  .hero__title .line {
    overflow: visible;
    padding-bottom: 0;
  }
  /* Disable the slide-up reveal on mobile - guarantees the title is
     visible even if the JS line-reveal doesn't fire */
  .hero__title .line__inner {
    transform: none;
    opacity: 1;
    transition: none;
  }
  .hero__foot {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: clamp(20px, 6vw, 36px) 0 clamp(20px, 5vw, 32px);
    gap: 24px;
  }
  .hero__title {
    font-size: clamp(28px, 9.5vw, 44px);
    letter-spacing: -0.02em;
  }
  .hero__promise {
    font-size: 16px;
    line-height: 1.35;
    max-width: 30ch;
  }
  .hero__lede {
    font-size: 13.5px;
    line-height: 1.55;
    max-width: 38ch;
  }
  .hero__cta {
    gap: 10px;
  }
  .hero__cta .btn {
    padding: 12px 18px;
    font-size: 13.5px;
  }
}

/* ====================================================================
   Hero - moonshot variant (Isomorphic-style, declarative single line)
   ==================================================================== */
.hero--moonshot {
  padding: 0;
  position: relative;
  isolation: isolate;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  display: block;
}

.hero--backdrop {
  position: relative;
  isolation: isolate;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.hero--backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.7) 60%,
    rgba(255, 255, 255, 0.95) 100%
  );
  z-index: -1;
  pointer-events: none;
}
.hero--backdrop > :not(.hero__video) {
  position: relative;
  z-index: 1;
}
.hero--backdrop > .hero__body {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}
.hero--moonshot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.7) 60%,
    rgba(255, 255, 255, 0.95) 100%
  );
  z-index: -1;
  pointer-events: none;
}
.hero__moonshot-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--pad) clamp(48px, 6vw, 80px);
  display: grid;
  gap: clamp(56px, 9vw, 120px);
}
.hero--moonshot .hero__body {
  justify-items: start;
  text-align: left;
  max-width: 1100px;
  margin: 0;
  position: relative;
  z-index: 1;
}
.hero--moonshot .hero__foot {
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) {
  .hero--moonshot .hero__moonshot-inner {
    padding-top: clamp(72px, 14vw, 96px);
  }
}
@media (max-width: 480px) {
  .hero--moonshot .hero__moonshot-inner {
    padding-top: clamp(64px, 16vw, 88px);
  }
}
.hero__title--moonshot {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 13vw, 184px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 14ch;
  text-align: left;
  color: var(--ink);
}
.hero__title--moonshot em {
  font-style: normal;
  color: inherit;
  font-weight: inherit;
}
.hero__statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink-dim);
  max-width: 54ch;
  margin: clamp(28px, 4vw, 44px) 0 0;
  text-align: left;
}
.hero--moonshot .hero__cta {
  margin-top: clamp(28px, 4vw, 40px);
  justify-content: flex-start;
}
@media (max-width: 720px) {
  .hero__title--moonshot {
    font-size: clamp(40px, 13vw, 80px);
    letter-spacing: -0.025em;
    max-width: 100%;
  }
  .hero__statement {
    font-size: 16px;
    max-width: 38ch;
  }
}
@media (max-width: 420px) {
  .hero__title--moonshot {
    font-size: clamp(36px, 12vw, 56px);
  }
}

/* ====================================================================
   Plate - full-bleed editorial image breaks
   ==================================================================== */
.plate {
  position: relative;
  isolation: isolate;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: clamp(360px, 56vw, 720px);
  overflow: hidden;
  display: block;
}
.plate__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}
.plate--catchment::after,
.plate--surface::after,
.plate--event::after,
.plate--perils::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.plate--catchment::after {
  background: linear-gradient(
    90deg,
    rgba(8, 14, 22, 0.55) 0%,
    rgba(8, 14, 22, 0.28) 38%,
    rgba(8, 14, 22, 0) 62%
  );
}
.plate--surface::after {
  background: linear-gradient(
    270deg,
    rgba(8, 6, 22, 0.6) 0%,
    rgba(8, 6, 22, 0.28) 38%,
    rgba(8, 6, 22, 0) 62%
  );
}
.plate--event::after {
  background: linear-gradient(
    90deg,
    rgba(14, 18, 14, 0.6) 0%,
    rgba(14, 18, 14, 0.3) 40%,
    rgba(14, 18, 14, 0) 65%
  );
}
.plate--perils::after {
  background: linear-gradient(
    270deg,
    rgba(10, 10, 16, 0.5) 0%,
    rgba(10, 10, 16, 0.2) 42%,
    rgba(10, 10, 16, 0) 70%
  );
}
.plate__caption {
  position: absolute;
  bottom: clamp(28px, 5vw, 64px);
  left: var(--pad);
  right: auto;
  max-width: 42ch;
  color: #ffffff;
  display: grid;
  gap: 14px;
  z-index: 1;
}
.plate__caption--right {
  left: auto;
  right: var(--pad);
  text-align: right;
  justify-items: end;
}
.plate__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.plate__text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}
@media (max-width: 720px) {
  .plate {
    height: clamp(320px, 78vw, 520px);
  }
  .plate__caption,
  .plate__caption--right {
    left: var(--pad);
    right: var(--pad);
    text-align: left;
    justify-items: start;
    max-width: none;
  }
}

/* ====================================================================
   Etymology - naming-as-thesis section
   ==================================================================== */
.etymology {
  padding: clamp(88px, 12vw, 168px) 0;
  border-top: 1px solid var(--line);
}
.etymology__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  max-width: none;
}
@media (min-width: 880px) {
  .etymology__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(48px, 6vw, 96px);
  }
}
.etymology__copy {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
  max-width: 540px;
}
.etymology__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    #000 0%,
    rgba(0, 0, 0, 0.96) 32%,
    rgba(0, 0, 0, 0.7) 58%,
    rgba(0, 0, 0, 0.32) 78%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse at center,
    #000 0%,
    rgba(0, 0, 0, 0.96) 32%,
    rgba(0, 0, 0, 0.7) 58%,
    rgba(0, 0, 0, 0.32) 78%,
    transparent 100%
  );
}
.etymology__visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity;
}
.etymology__visual--a {
  animation: etymologyFadeA 14s ease-in-out infinite;
}
.etymology__visual--b {
  animation: etymologyFadeB 14s ease-in-out infinite;
}
@keyframes etymologyFadeA {
  0%, 42% { opacity: 1; }
  50%, 92% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes etymologyFadeB {
  0%, 42% { opacity: 0; }
  50%, 92% { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .etymology__visual {
    animation: none;
  }
  .etymology__visual--a {
    opacity: 1;
  }
}
.etymology__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.etymology__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 24ch;
  margin: 0;
}
.etymology__name em {
  font-style: italic;
  color: var(--accent-strong);
  font-weight: 400;
}
.etymology__body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(15.5px, 1.15vw, 17px);
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--ink-dim);
  max-width: 56ch;
  margin: 0;
}
.etymology__link {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 6px;
  transition: color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}
.etymology__link:hover {
  color: var(--accent-strong);
  border-color: var(--accent-strong);
  gap: 14px;
}
.etymology__arrow {
  font-size: 13px;
}
@media (max-width: 720px) {
  .etymology__name {
    font-size: clamp(22px, 5.5vw, 30px);
    max-width: 100%;
  }
  .etymology__body {
    font-size: 15.5px;
  }
}

/* ====================================================================
   OUR GOAL - mission framing block
   ==================================================================== */
.goal {
  padding: clamp(88px, 12vw, 168px) 0;
  border-top: 1px solid var(--line);
}
.goal__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  max-width: 1100px;
}
@media (min-width: 960px) {
  .goal__inner {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
    column-gap: clamp(48px, 7vw, 112px);
    align-items: start;
  }
}
.goal__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  grid-column: 1 / -1;
}
.goal__lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  max-width: 18ch;
}
.goal__lede em {
  font-style: italic;
  color: var(--accent-strong);
  font-weight: 400;
}
.goal__body {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.6vw, 22px);
}
.goal__body p {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(15.5px, 1.15vw, 17px);
  line-height: 1.65;
  color: var(--ink-dim);
  margin: 0;
  max-width: 60ch;
}

/* ====================================================================
   OUR PRINCIPLES - single-column override of thesis grid
   ==================================================================== */
.thesis--principles .thesis__grid {
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .thesis--principles .thesis__grid {
    grid-template-columns: 1fr;
  }
}
.thesis--principles .principles {
  grid-template-columns: 1fr;
  row-gap: clamp(24px, 3vw, 36px);
}
@media (min-width: 720px) {
  .thesis--principles .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(32px, 4vw, 64px);
  }
}
.thesis--principles .principles h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0 0 8px;
}
.thesis--principles .principles p {
  font-size: clamp(14.5px, 1vw, 15.5px);
  max-width: 42ch;
}

/* ====================================================================
   OUR LEADERSHIP / OUR HERITAGE - two-card explore grid
   ==================================================================== */
.lab-cards {
  padding: clamp(64px, 8vw, 112px) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 2vw, 28px);
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) {
  .lab-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.lab-card {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  text-decoration: none;
  color: inherit;
  min-height: clamp(260px, 28vw, 360px);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.lab-card:hover {
  border-color: var(--accent-strong);
  background: #ffffff;
}
.lab-card__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.lab-card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  max-width: 22ch;
  flex: 1;
}
.lab-card__cta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 6px;
  transition: border-color 0.25s ease, color 0.25s ease, gap 0.25s ease;
}
.lab-card:hover .lab-card__cta {
  color: var(--accent-strong);
  border-color: var(--accent-strong);
  gap: 14px;
}
.lab-card__arrow {
  font-size: 13px;
}

.lab-card--backed {
  cursor: default;
}
.lab-card--backed:hover {
  border-color: var(--line);
  background: var(--bg-elev);
}

.backed-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  align-self: flex-start;
  width: 100%;
}
.backed-logos li {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}
.backed-logos img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.backed-logos li:hover img {
  opacity: 1;
  filter: none;
}

