:root {
  --navy: #033a5c;
  --navy-deep: #022b45;
  --ink: #0c1f2e;
  --paper: #f3f1eb;
  --sky: #e6ecf0;
  --muted: #5b6b78;
  --line: rgba(3, 58, 92, 0.14);
  --accent: #fa4e42;
  --card: rgba(255, 255, 255, 0.82);
  --radius: 18px;
  --font-display: 'Saira', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sky);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px clamp(16px, 3vw, 36px);
}
.nav::before {
  content: ''; position: absolute; inset: 8px clamp(8px, 1.5vw, 20px);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 14px; box-shadow: 0 6px 30px rgba(3, 58, 92, 0.08);
  z-index: -1;
}
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  letter-spacing: 0.02em; padding: 9px 14px; border-radius: 10px;
  color: var(--navy); transition: background 0.25s;
}
.nav__links a:hover { background: rgba(3, 58, 92, 0.07); }
.nav__links a.nav__cta { background: var(--navy); color: #fff; margin-left: 6px; }
.nav__links a.nav__cta:hover { background: var(--navy-deep); }
.nav__toggle { display: none; }

@media (max-width: 960px) {
  .nav__logo img { height: 28px; }
  .nav__toggle {
    display: grid; place-content: center; gap: 6px;
    width: 42px; height: 42px; border: 0; border-radius: 10px;
    background: var(--navy); cursor: pointer;
  }
  .nav__toggle span { display: block; width: 18px; height: 2px; background: #fff; transition: transform 0.3s var(--ease); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__links {
    position: absolute; top: 66px; left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(3, 58, 92, 0.18);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity 0.3s, transform 0.3s var(--ease);
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { font-size: 18px; padding: 12px 14px; }
  .nav__links a.nav__cta { margin: 6px 0 0; text-align: center; }
}

/* ---------- Flight story ---------- */
.flight { position: relative; height: 480vh; }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--sky);
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.loader {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--sky); z-index: 5; transition: opacity 0.8s;
}
.loader span {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--navy);
  animation: spin 0.9s linear infinite;
}
.loader.is-done { opacity: 0; pointer-events: none; }
.loader__msg { max-width: 420px; padding: 0 16px; text-align: center; font-size: 16px; line-height: 1.6; color: var(--navy); }
@keyframes spin { to { transform: rotate(360deg); } }

.overlay { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.beat {
  position: absolute; opacity: 0; visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
}
.beat.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.6s var(--ease), visibility 0s; }

/* Masked line reveal for headline text */
/* padding keeps descenders (g, y, p) inside the reveal mask; the negative margin keeps line spacing */
.beat [data-reveal] { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.beat [data-reveal] > span {
  display: inline-block; transform: translateY(105%);
  transition: transform 0.9s var(--ease);
}
.beat.is-active [data-reveal] > span { transform: none; }

.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--navy);
}
.eyebrow--dark { color: var(--accent); }

.beat--hero {
  left: clamp(16px, 6vw, 96px); bottom: clamp(90px, 16vh, 170px);
  max-width: 640px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(96px, 18vw, 240px); line-height: 0.82; letter-spacing: -0.03em;
  color: var(--navy); margin: 10px 0 18px -0.04em;
}
.hero-sub {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; color: var(--ink);
}
.scroll-cue {
  display: flex; align-items: center; gap: 12px; margin-top: 34px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue span {
  width: 22px; height: 34px; border: 2px solid var(--navy); border-radius: 12px; position: relative;
}
.scroll-cue span::after {
  content: ''; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px;
  border-radius: 2px; background: var(--navy); animation: cue 1.6s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

.beat--card { left: clamp(16px, 6vw, 96px); top: 50%; transform: translateY(-50%); }
.card {
  width: min(420px, calc(100vw - 32px));
  background: var(--card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius); padding: 28px 30px 12px;
  box-shadow: 0 30px 80px rgba(3, 58, 92, 0.14);
  transform: translateY(24px); transition: transform 0.9s var(--ease);
}
.beat.is-active .card { transform: none; }
.card__kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.card__title {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3vw, 40px);
  line-height: 1; color: var(--navy); margin: 10px 0 18px;
}
.stats { margin: 0; }
.stats > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--line);
  opacity: 0; transform: translateX(-14px);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
}
.beat.is-active .stats > div { opacity: 1; transform: none; }
.stats dt { font-size: 14px; color: var(--muted); }
.stats dd { margin: 0; font-family: var(--font-display); color: var(--ink); white-space: nowrap; }
.stats dd b { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; }
.stats dd small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.stats dd.is-tbc b { color: #9aa7b1; }

.beat--caption { right: clamp(16px, 6vw, 96px); top: 22%; text-align: right; max-width: 520px; }
.beat--caption::before, .beat--end::before, .beat--hero::before {
  content: ''; position: absolute; inset: -60px -80px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(236, 241, 244, 0.85), rgba(236, 241, 244, 0));
}
.beat--hero::before { inset: -80px -120px -60px -120px; }
.caption__step { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--accent); letter-spacing: 0.1em; }
.caption__title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(48px, 7vw, 104px);
  line-height: 0.9; color: var(--navy); letter-spacing: -0.02em; margin: 6px 0 14px;
}
.caption__text { font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; color: var(--ink); }

.beat--end { left: 0; right: 0; top: 20%; text-align: center; padding: 0 16px; }
.end__title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 6.5vw, 92px);
  line-height: 0.95; letter-spacing: -0.02em; color: var(--navy);
}
.btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.btn {
  font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: 0.02em;
  padding: 15px 24px; border-radius: 12px; transition: transform 0.3s var(--ease), background 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--navy); color: #fff; }
.btn--solid:hover { background: var(--navy-deep); }
.btn--ghost { background: rgba(255, 255, 255, 0.85); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }

.card__note {
  display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 14px; line-height: 1.5; color: var(--navy); font-weight: 500;
}
.card__note::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 4px rgba(47, 191, 113, 0.18); }
html.theme-dark .card__note { color: #d7e0e8; }

/* Autonomy status chip on flight pages */
.hud {
  position: absolute; z-index: 3; top: 84px; right: clamp(16px, 3vw, 36px);
  display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(3, 58, 92, 0.1);
  font-family: var(--font-display); font-size: 13px; color: var(--muted); white-space: nowrap;
}
.hud i { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; animation: hudPulse 1.6s ease-in-out infinite; }
@keyframes hudPulse { 50% { box-shadow: 0 0 0 5px rgba(47, 191, 113, 0.2); } }
.hud b { font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; color: var(--navy); }
.hud span { min-width: 0; transition: opacity 0.3s; }
html.theme-dark .hud { background: rgba(14, 21, 29, 0.8); color: #c9d4de; }
html.theme-dark .hud b { color: #fff; }
@media (max-width: 760px) { .hud { top: 72px; left: 16px; right: auto; font-size: 12px; } }

.card__text { font-size: 17px; line-height: 1.55; color: var(--ink); margin: -4px 0 18px; }
.card .caption__step { margin-top: 12px; }
.card .caption__step + .card__title { margin-top: 4px; }

.beat--intro { left: 0; right: 0; top: 17%; text-align: center; padding: 0 16px; }
.beat--intro::before {
  content: ''; position: absolute; inset: -60px 10%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(236, 241, 244, 0.85), rgba(236, 241, 244, 0));
}
.beat--intro .eyebrow { color: var(--accent); }
.intro__title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(80px, 13vw, 180px);
  line-height: 0.85; letter-spacing: -0.03em; color: var(--navy); margin: 8px 0 12px;
}
.intro__sub { font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 2vw, 26px); color: var(--ink); }

/* End of flight: "Meet the MaST family" */
.beat--end { top: 13%; }
.beat--end .eyebrow { color: var(--accent); margin-bottom: 10px; }
.fam {
  list-style: none; margin: 26px auto 0; padding: 0; max-width: 820px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.fam li { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.7s var(--ease); }
.beat.is-active .fam li { opacity: 1; transform: none; }
.fam li:nth-child(2) { transition-delay: 0.05s; } .fam li:nth-child(3) { transition-delay: 0.1s; }
.fam li:nth-child(4) { transition-delay: 0.15s; } .fam li:nth-child(5) { transition-delay: 0.2s; } .fam li:nth-child(6) { transition-delay: 0.25s; }
.fam a, .family__grid a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; height: 100%;
  padding: 16px 18px; border-radius: 14px; text-align: left;
  background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px rgba(3, 58, 92, 0.12); transition: transform 0.35s var(--ease), background 0.3s;
}
.fam a:hover { transform: translateY(-3px); background: #fff; }
.fam span, .family__grid span { font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--accent); }
.fam b { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--navy); }
.fam small { font-size: 13px; color: var(--muted); }
.fam .is-current a { background: var(--navy); }
.fam .is-current b { color: #fff; }
.fam .is-current small { color: rgba(255, 255, 255, 0.7); }
.beat--end .btns { margin-top: 18px; }
html.theme-dark .fam a { background: rgba(14, 21, 29, 0.84); }
html.theme-dark .fam b { color: #fff; }
html.theme-dark .fam small { color: #9fb0bf; }
html.theme-dark .fam .is-current a { background: var(--accent); }
.family__grid li { padding: 0; }
.family__grid a { background: none; backdrop-filter: none; box-shadow: none; padding: 22px; min-height: 150px; }
.family__grid li.is-current { border-color: var(--navy); }
@media (max-width: 760px) {
  .beat--end { top: 9%; }
  .fam { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fam a { padding: 12px 14px; }
  .fam b { font-size: 17px; }
}

.scroll-cue--center { justify-content: center; }

/* Labels pinned to 3D points (LRF target fix, encrypted link) */
.tag {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; opacity: 0;
  margin: -14px 0 0 18px; padding: 10px 12px; min-width: 150px;
  display: flex; flex-direction: column; gap: 2px;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 12px; color: #e9fff2;
  background: rgba(10, 22, 18, 0.82); border-left: 2px solid #5cff9d; border-radius: 6px;
  transition: opacity 0.3s;
}
.tag b { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #5cff9d; }
.tag .dim { color: rgba(233, 255, 242, 0.5); }
.tag--payload { min-width: 0; color: #fff; background: rgba(12, 20, 28, 0.82); border-left-color: var(--tag, #fa4e42); }
.tag--payload b { color: var(--tag, #fa4e42); }
.tag--tx { color: #e8f6ff; border-left-color: #8fd3ff; background: rgba(8, 18, 28, 0.82); }
.tag--tx b { color: #8fd3ff; }

/* Dark mood (C-UAS mission) */
html.theme-dark .card { background: rgba(14, 21, 29, 0.84); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
html.theme-dark .card__title, html.theme-dark .caption__title, html.theme-dark .end__title, html.theme-dark .intro__title { color: #fff; }
html.theme-dark .card__kicker { color: #9fb0bf; }
html.theme-dark .card__text, html.theme-dark .caption__text, html.theme-dark .intro__sub { color: #d7e0e8; }
html.theme-dark .beat--caption::before, html.theme-dark .beat--end::before, html.theme-dark .beat--intro::before {
  background: radial-gradient(closest-side, rgba(14, 21, 29, 0.7), rgba(14, 21, 29, 0));
}
html.theme-dark .rail { background: rgba(14, 21, 29, 0.8); }
html.theme-dark .rail li { color: #9fb0bf; }
html.theme-dark .rail li.is-active { background: var(--accent); color: #fff; }
html.theme-dark .btn--ghost { background: rgba(14, 21, 29, 0.6); color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
html.theme-dark .btn--solid { background: var(--accent); }

/* Phase rail */
.rail__mission {
  cursor: default !important; color: var(--accent) !important; background: none !important;
  border-right: 1px solid var(--line); border-radius: 0 !important; margin-right: 4px;
}
.rail {
  position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; gap: 4px; margin: 0; padding: 6px; list-style: none;
  background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 14px; box-shadow: 0 10px 30px rgba(3, 58, 92, 0.1);
}
.rail li {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px;
  font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: background 0.3s, color 0.3s;
}
.rail li:hover { color: var(--navy); }
.rail li.is-active { background: var(--navy); color: #fff; }
.rail__n { font-size: 11px; opacity: 0.7; }
.rail__bar { position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rail__bar b { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

@media (max-width: 760px) {
  .beat--hero { bottom: 120px; }
  .beat--card { left: 16px; right: 16px; top: auto; bottom: 86px; transform: none; }
  .card { width: auto; padding: 18px 20px 6px; }
  .card__title { margin: 6px 0 10px; }
  .stats > div { padding: 9px 0; }
  .stats dd b { font-size: 22px; }
  .beat--caption { left: 16px; right: 16px; top: 96px; text-align: left; }
  .beat--end { top: 16%; }
  .rail { left: 16px; right: 16px; transform: none; justify-content: space-between; bottom: 16px; }
  .rail li { padding: 8px 8px; font-size: 12px; }
  .rail__n { display: none; }
}

/* ---------- Family teaser ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.family { background: var(--paper); padding: clamp(80px, 12vw, 150px) 0; }
.section-title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5.5vw, 76px);
  line-height: 0.95; letter-spacing: -0.02em; color: var(--navy); margin: 14px 0 48px;
}
.family__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px;
}
.family__grid li {
  display: flex; flex-direction: column; gap: 6px; padding: 22px; min-height: 150px;
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.family__grid li:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(3, 58, 92, 0.1); }
.family__grid span { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--accent); margin-bottom: auto; }
.family__grid b { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--navy); }
.family__grid small { font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.78); padding: 64px 0 40px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 28px 40px; align-items: center; }
.footer__badge { width: 84px; filter: brightness(0) invert(1); }
.footer__tag { font-size: 15px; line-height: 1.55; }
.footer__links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.footer__links a { font-family: var(--font-display); font-weight: 600; color: #fff; }
.footer__links a:hover { color: #ffb3a9; }
.footer__copy { grid-column: 1 / -1; font-size: 13px; color: rgba(255, 255, 255, 0.5); }

.nav__links a.is-current { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 10px 10px 4px 4px; }

/* ---------- Inner pages ---------- */
.scene-hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; align-items: center; background: var(--sky);
}
.scene-hero--short { min-height: 72vh; min-height: 72svh; align-items: flex-end; padding-bottom: clamp(48px, 8vh, 90px); }
.scene-hero canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.scene-hero canvas.is-ready { opacity: 1; }
.scene-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(236, 241, 244, 0.94) 0%, rgba(236, 241, 244, 0.7) 34%, rgba(236, 241, 244, 0) 62%);
}
.scene-hero--right::after { background: linear-gradient(270deg, rgba(236, 241, 244, 0.9) 0%, rgba(236, 241, 244, 0.6) 36%, rgba(236, 241, 244, 0) 62%); }
.scene-hero__inner {
  position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 110px clamp(16px, 4vw, 48px) 60px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center;
}
.scene-hero--short .scene-hero__inner { padding-bottom: 0; }
.scene-hero__copy { max-width: 560px; }
.scene-hero--right .scene-hero__copy { grid-column: 2; }
.page-title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(48px, 7vw, 100px);
  line-height: 0.92; letter-spacing: -0.025em; color: var(--navy); margin: 14px 0 20px;
}
.page-title em { font-style: normal; color: var(--accent); }
.page-title--md { font-size: clamp(42px, 5.6vw, 82px); }
.page-lead { font-family: var(--font-display); font-weight: 500; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.3; color: var(--ink); max-width: 480px; }
.page-meta { margin-top: 18px; font-size: 15px; color: var(--muted); }
.page-meta a { color: var(--navy); font-weight: 600; border-bottom: 1.5px solid var(--accent); }
.patent-note {
  display: inline-block; margin-top: 16px; padding: 8px 14px; border-left: 3px solid var(--accent); background: rgba(3, 58, 92, 0.05);
  font-family: 'Saira', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--navy);
}
.scene-hero .btns { justify-content: flex-start; }

/* Entrance animation for hero copy */
.rise { opacity: 0; transform: translateY(24px); animation: rise 1s var(--ease) forwards; }
.rise:nth-child(2) { animation-delay: 0.08s; } .rise:nth-child(3) { animation-delay: 0.16s; }
.rise:nth-child(4) { animation-delay: 0.24s; } .rise:nth-child(5) { animation-delay: 0.32s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Glass panel (forms on hero backgrounds) */
.panel {
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 22px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 30px 80px rgba(3, 58, 92, 0.16);
}
.panel__title { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--navy); margin-bottom: 18px; }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--navy); letter-spacing: 0.02em; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 15px; color: var(--ink); width: 100%;
  padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(3, 58, 92, 0.1); }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form__foot .btn { border: 0; cursor: pointer; }
.form__note { font-size: 13px; color: var(--muted); flex: 1 1 220px; }
.form__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form { position: relative; }
.form__status { grid-column: 1 / -1; font-size: 14px; font-weight: 500; min-height: 1em; }
.form__status[data-kind="ok"] { color: #237a4b; }
.form__status[data-kind="error"] { color: #b3261e; }

/* Services */
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section--paper { background: var(--paper); }
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.service::before { content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.service:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(3, 58, 92, 0.1); }
.service:hover::before { transform: none; }
.service__n { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--accent); }
.service h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.05; color: var(--navy); margin-top: 26px; }
.service p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.split .section-title { margin-bottom: 18px; }

@media (max-width: 960px) {
  .services { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .scene-hero::after, .scene-hero--right::after { background: linear-gradient(180deg, rgba(236, 241, 244, 0) 20%, rgba(236, 241, 244, 0.85) 55%, rgba(236, 241, 244, 0.95) 100%); }
  .scene-hero { align-items: flex-end; }
  .scene-hero__inner { grid-template-columns: 1fr; padding-top: 40vh; }
  .scene-hero--right .scene-hero__copy { grid-column: auto; }
  .services { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

/* ---------- Scroll reveals ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Mission page ---------- */
.compare { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.compare__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 30px;
}
.compare__card:nth-child(2) { transition-delay: 0.1s; } .compare__card:nth-child(3) { transition-delay: 0.2s; }
.compare__card svg { width: 100%; max-width: 220px; height: auto; display: block; margin: 0 auto 18px; }
.compare__card .fill { fill: #c5ced5; }
.compare__card .hot { fill: none; stroke: var(--accent); stroke-width: 3; }
.compare__card .hot-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.compare__card h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.compare__card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.compare__card--us { background: var(--navy); border-color: var(--navy); }
.compare__card--us .fill { fill: #fff; }
.compare__card--us .prop { fill: var(--accent); }
.compare__card--us h3 { color: #fff; }
.compare__card--us p { color: rgba(255, 255, 255, 0.75); }

.split--center { align-items: center; }
/* "Available on request" panel for material shared only with approved partners */
.gated { background: var(--navy); color: #fff; border-radius: 18px; padding: clamp(26px, 4vw, 44px); }
.gated__icon { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; margin-bottom: 18px; }
.gated h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3vw, 38px); line-height: 1; margin: 8px 0 12px; }
.gated p { color: rgba(255, 255, 255, 0.78); line-height: 1.55; }
.gated .btns { justify-content: flex-start; margin-top: 24px; }
.gated .btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); }
.gated .btn--solid { background: var(--accent); }

.card__cta {
  display: inline-block; margin: 0 0 16px; font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--navy); border-bottom: 1.5px solid var(--accent);
}
html.theme-dark .card__cta { color: #fff; }
.end__note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.btns--start { justify-content: flex-start; }

.section--navy { background: var(--navy); color: #fff; }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.story__item .eyebrow { color: #ff9b91; }
.story__item h2 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 4.5vw, 60px);
  line-height: 0.95; letter-spacing: -0.02em; margin: 14px 0 20px;
}
.story__item p:last-child { font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, 0.78); margin: 0; }
.story__item:nth-child(2) { transition-delay: 0.15s; }

.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 40px; display: grid; gap: 34px; }
.timeline__line { position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline__line b { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.timeline li { position: relative; }
.timeline li::before {
  content: ''; position: absolute; left: -37px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--navy);
}
.timeline li.is-now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 0 rgba(250, 78, 66, 0.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(250, 78, 66, 0); } 100% { box-shadow: 0 0 0 0 rgba(250, 78, 66, 0); } }
.timeline span { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.timeline h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--navy); margin: 4px 0 6px; }
.timeline p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 440px; }

.founders { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.founders li { display: flex; gap: 20px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.founders li:nth-child(2) { transition-delay: 0.1s; }
.founders__mono {
  flex: none; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 22px;
}
.founders h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--navy); margin: 0; }
.founders__role { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 4px 0 10px; }
.founders p:last-child { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

.team-photo { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(3, 58, 92, 0.14); }
.team-photo img { width: 100%; height: auto; aspect-ratio: 2000 / 742; object-fit: cover; }
@media (max-width: 760px) { .team-photo img { aspect-ratio: 4 / 3; object-position: 50% 40%; } }

.cta-band { background: var(--sky); padding: clamp(72px, 10vw, 120px) 0; text-align: center; }
.cta-band h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 6vw, 80px); letter-spacing: -0.02em; color: var(--navy); }
.cta-band .btns { margin-top: 26px; }

@media (max-width: 960px) {
  .compare, .story, .founders { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
