/* ============================================================
   Celva Bio — Site-wide styles
   ============================================================ */
@import url('./colors_and_type.css');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font-body); font-weight: 400; line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { transition: color 200ms var(--ease-standard), border-color 200ms var(--ease-standard); }

/* ============ CONTAINERS ============ */
.container { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.container--narrow { max-width: 900px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.container--reading { max-width: 720px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 60;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  transition: box-shadow 280ms var(--ease-standard), padding 280ms var(--ease-standard), background 280ms;
  display: flex; align-items: center; gap: 32px;
}
.nav.is-scrolled { padding-top: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 var(--border); }
.nav__logo { border: 0; display: flex; align-items: center; }
.nav__logo img { height: 24px; width: auto; }
.nav__menu { display: flex; gap: 28px; align-items: center; margin-left: 14px; }
.nav__menu a {
  font-size: 14px; font-weight: 400; color: var(--ink); border: 0;
  position: relative; padding: 6px 0; white-space: nowrap;
}
.nav__menu a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent-blue); transition: width 280ms var(--ease-out-expo);
}
.nav__menu a:hover::after, .nav__menu a.is-active::after { width: 100%; }
.nav__menu a.is-active { color: var(--accent-blue); }
.nav__right { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.nav__phone { font-size: 13px; color: var(--ink-muted); border: 0; letter-spacing: 0.02em; }
.nav__phone:hover { color: var(--accent-blue); }
.nav__burger { display: none; background: none; border: 1px solid var(--border-strong); padding: 8px 12px; border-radius: 4px; cursor: pointer; }

/* Dropdown mega menu */
.nav__item { position: relative; }
.nav__item-trigger { display: inline-flex; gap: 4px; align-items: center; cursor: pointer; }
.nav__item-trigger::before { content: none; }
.nav__dropdown {
  position: absolute; top: calc(100% + 14px); left: -20px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow-md); padding: 20px; min-width: 320px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 220ms, visibility 220ms, transform 220ms var(--ease-out-expo);
}
.nav__item:hover .nav__dropdown, .nav__item:focus-within .nav__dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__dropdown a {
  display: block; padding: 10px 12px; border-radius: 6px; border: 0;
  font-size: 14px;
}
.nav__dropdown a:hover { background: var(--accent-wash); color: var(--accent-blue); }
.nav__dropdown a small { display: block; font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.nav__dropdown a:hover small { color: var(--ink-muted); }
.nav__dropdown--wide { min-width: 320px; }
.nav__dropdown-group { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.nav__dropdown-h { display: block; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); padding: 4px 12px 8px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  letter-spacing: 0.02em; padding: 14px 24px; border-radius: 4px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  line-height: 1; transition: all 260ms var(--ease-out-expo);
  position: relative; overflow: hidden;
}
.btn--primary { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }
.btn--primary:hover { background: var(--accent-blue-hover); border-color: var(--accent-blue-hover); transform: translateY(-3px); box-shadow: var(--shadow-lift); color: #fff; }
.btn--primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.btn--ice { background: var(--accent-ice); color: var(--ink); border-color: var(--accent-ice); }
.btn--ice:hover { background: #fff; border-color: #fff; transform: translateY(-3px); }
.btn--lg { padding: 17px 32px; font-size: 16px; }

.cta-link {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 14px; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--border-strong); padding-bottom: 3px;
  text-decoration: none; letter-spacing: 0.01em;
  transition: color 200ms, border-color 200ms, gap 260ms var(--ease-out-expo);
}
.cta-link:hover { color: var(--accent-blue); border-bottom-color: var(--accent-blue); gap: 14px; }
.cta-link--accent { color: var(--accent-blue); border-bottom-color: var(--accent-blue); }
.cta-link--accent:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ============ ELEMENTS ============ */
.eyebrow {
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-blue);
  display: inline-block;
}
.eyebrow--on-dark { color: var(--accent-ice); }
.eyebrow--muted { color: var(--ink-muted); }
.rule-accent { height: 2px; width: 56px; background: var(--accent-blue); border: 0; margin: 16px 0 22px; }
.rule-accent--center { margin-left: auto; margin-right: auto; }
.rule-accent--on-dark { background: var(--accent-ice); }

h1 em, h2 em, h3 em { font-style: italic; color: var(--accent-blue); font-weight: 400; }
.inverted h1 em, .inverted h2 em, .inverted h3 em { color: var(--accent-ice); }

section { position: relative; }

/* ============ HERO — EDITORIAL (homepage) ============ */
.hero {
  position: relative; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(56px, 8vw, 100px);
  overflow: hidden;
}
.hero__grid {
  max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px);
  display: grid; grid-template-columns: 1.15fr 0.9fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__meta { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.hero__meta .dot { width: 6px; height: 6px; background: var(--accent-blue); border-radius: 50%; }
.hero__h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(3.4rem, 7vw, 6.75rem); line-height: 0.96;
  letter-spacing: -0.025em; color: var(--ink); margin: 0 0 32px;
  text-wrap: balance;
}
.hero__sub {
  font-family: var(--font-body); font-size: 19px; line-height: 1.6;
  color: var(--ink-soft); margin: 0 0 40px; max-width: 500px;
  font-weight: 400;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 56px; }
.hero__pillars {
  display: grid; grid-template-columns: repeat(3, auto); gap: 40px;
  padding-top: 28px; border-top: 1px solid var(--border);
}
.hero__pillar-num {
  font-family: var(--font-body); font-weight: 500;
  font-size: 22px; color: var(--ink); line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hero__pillar-label { font-size: 12px; color: var(--ink-muted); margin-top: 6px; letter-spacing: 0.04em; line-height: 1.4; max-width: 180px; }

.hero__visual {
  position: relative; aspect-ratio: 4/5; border-radius: 4px; overflow: hidden;
  box-shadow: var(--shadow-md);
  background: linear-gradient(160deg, #2D6EB1 0%, #163361 60%, #0B1D3A 100%);
}
.hero__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__visual-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(11,29,58,0.2) 0%, rgba(11,29,58,0.6) 100%);
}
.hero__caption {
  position: absolute; top: 20px; left: 20px;
  background: rgba(255,255,255,0.94); padding: 10px 14px; border-radius: 4px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
}
.hero__caption small { display: block; font-weight: 400; font-size: 10px; letter-spacing: 0.08em; color: var(--ink-muted); margin-top: 3px; text-transform: none; }
.hero__quote {
  position: absolute; left: 24px; right: 24px; bottom: 24px;
  background: rgba(255,255,255,0.06); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12); padding: 20px 22px; border-radius: 6px;
}
.hero__quote blockquote {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 17px; line-height: 1.35; color: #fff; margin: 0;
}
.hero__quote cite { display: block; margin-top: 10px; font-style: normal;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ice); font-family: var(--font-body); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__pillars { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ============ TRUST MARQUEE ============ */
.trust {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: #fff; padding: 20px 0; overflow: hidden;
}
.trust__track {
  display: flex; gap: 12px; width: max-content;
  animation: marquee 42s linear infinite;
}
.trust:hover .trust__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.pill {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  padding: 10px 18px 10px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-blue); flex: none; }

/* ============ SECTION PRIMITIVES ============ */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section--tint { background: var(--surface-tint); }
.section--wash { background: var(--accent-wash); }
.section--dark { background: var(--navy-brand); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,0.72); }
.section--dark .eyebrow { color: var(--accent-ice); }
.section--dark .rule-accent { background: var(--accent-ice); }

.section__head { max-width: 720px; margin: 0 0 56px; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__h2 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 3.75rem); line-height: 1.05;
  letter-spacing: -0.018em; margin: 16px 0 0; color: var(--ink);
  text-wrap: balance;
}
.section--dark .section__h2 { color: #fff; }
.section__lede {
  font-size: 18px; line-height: 1.65; color: var(--ink-soft); margin-top: 22px; max-width: 620px;
}
.section--dark .section__lede { color: rgba(255,255,255,0.7); }

/* ============ PERSONAS ============ */
.personas__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--border); border: 1px solid var(--border);
}
.persona { background: #fff; padding: 40px 36px 36px; display: flex; flex-direction: column;
  transition: background 320ms var(--ease-out-expo); position: relative;
}
.persona:hover { background: var(--accent-wash); }
.persona__img {
  aspect-ratio: 4/3; margin: -40px -36px 28px -36px; overflow: hidden;
  background: linear-gradient(135deg, #2D6EB1 0%, #163361 70%, #0B1D3A 100%);
  position: relative;
}
.persona__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out-expo); }
.persona:hover .persona__img img { transform: scale(1.04); }
.persona__tag {
  position: absolute; top: 16px; left: 16px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; background: rgba(11,29,58,0.82); padding: 5px 11px; border-radius: 3px;
  backdrop-filter: blur(4px);
}
.persona__h3 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2vw, 1.65rem);
  line-height: 1.2; color: var(--ink); margin: 0 0 8px;
}
.persona__sub { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--ink-muted); margin: 0 0 18px; }
.persona__p { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 12px; }
.persona__cta {
  margin-top: auto; align-self: flex-start; padding-top: 20px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-blue); border: 0;
  display: inline-flex; gap: 6px; transition: gap 220ms;
}
.persona__cta:hover { gap: 12px; color: var(--accent-blue-hover); }

@media (max-width: 900px) { .personas__grid { grid-template-columns: 1fr; } }

/* ============ PROCESS (navy 5-step) ============ */
.process__intro {
  max-width: 1240px; margin: 0 auto 64px; padding: 0 clamp(20px, 4vw, 56px);
  display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 88px);
}
.process__intro p { font-size: 16px; line-height: 1.75; color: rgba(255,255,255,0.72); margin: 18px 0 0; }
.process__steps {
  max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px);
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.step { padding: 32px 24px 32px 0; border-right: 1px solid rgba(255,255,255,0.1); position: relative; }
.step:last-child { border-right: 0; }
.step__num {
  font-family: var(--font-display); font-size: 44px; font-weight: 300;
  color: var(--accent-ice); opacity: 0.55; line-height: 1; margin-bottom: 20px; font-style: italic;
}
.step__h3 { font-family: var(--font-display); font-size: 20px; font-weight: 400; color: #fff; margin: 0 0 10px; }
.step__p { font-size: 13.5px; line-height: 1.65; color: rgba(255,255,255,0.6); margin: 0; max-width: 260px; }
@media (max-width: 900px) {
  .process__intro { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr 1fr; }
  .step { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 28px 0; }
}

/* ============ STAT COUNTER ============ */
.stats { background: var(--surface-tint); padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats__grid { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat__num {
  font-family: var(--font-body); font-weight: 500; color: var(--ink);
  font-size: clamp(3.4rem, 6.5vw, 5.5rem); line-height: 0.95; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.stat__num sup { color: var(--ink-muted); font-size: 0.5em; font-weight: 400; margin-left: 4px; vertical-align: top; line-height: 1; }
.stat__label { font-size: 13px; color: var(--ink-soft); margin-top: 14px; line-height: 1.5; max-width: 240px; letter-spacing: 0.01em; }
@media (max-width: 900px) { .stats__grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; } }

/* ============ TESTIMONIAL BAND ============ */
.testimonial { position: relative; background: var(--navy-brand); color: #fff; padding: clamp(96px, 12vw, 180px) 0; overflow: hidden; }
.testimonial__pattern { position: absolute; top: 50%; right: -10%; transform: translateY(-50%); width: 780px; opacity: 0.3; pointer-events: none; }
.testimonial__inner { max-width: 900px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); position: relative; z-index: 1; }
.testimonial__quote {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.22;
  color: #fff; margin: 24px 0; text-wrap: balance;
}
.testimonial__quote::before { content: '“'; color: var(--accent-ice); font-size: 1.1em; margin-right: 6px; line-height: 0.5; vertical-align: -0.2em; }
.testimonial__quote::after { content: '”'; color: var(--accent-ice); margin-left: 4px; }
.testimonial__attr { font-family: var(--font-body); font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.testimonial__attr b { color: #fff; font-weight: 500; }
.testimonial__avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-ice), #163361); flex: none; overflow: hidden; }
.testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ============ FAQ ============ */
.faq__list details { border-top: 1px solid var(--border); }
.faq__list details:last-of-type { border-bottom: 1px solid var(--border); }
.faq__list summary {
  list-style: none; cursor: pointer; padding: 26px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--font-display); font-size: clamp(1.2rem, 1.8vw, 1.55rem); font-weight: 400; color: var(--ink);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: '+'; font-family: var(--font-body); font-size: 24px; font-weight: 300;
  color: var(--accent-blue); transition: transform 280ms var(--ease-out-expo);
  flex: none; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); border-radius: 50%;
}
.faq__list details[open] summary::after { content: '−'; border-color: var(--accent-blue); }
.faq__list summary:hover::after { border-color: var(--accent-blue); }
.faq__ans { padding: 0 0 32px; font-size: 16px; line-height: 1.7; color: var(--ink-soft); max-width: 720px; }

.faq--split { display: grid; grid-template-columns: 1fr 1.8fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .faq--split { grid-template-columns: 1fr; } }

/* ============ CTA BAND ============ */
.ctaband { position: relative; padding: clamp(80px, 10vw, 140px) 0; background: var(--navy-brand); color: #fff; text-align: center; overflow: hidden; }
.ctaband__pattern { position: absolute; inset: 0; opacity: 0.18; pointer-events: none; background: url('../assets/bg-pattern-1.svg') center/cover no-repeat; }
.ctaband__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); display: flex; flex-direction: column; align-items: center; }
.ctaband h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); color: #fff; margin: 16px 0 20px; }
.ctaband h2 em { color: var(--accent-ice); }
.ctaband p { font-size: 17px; color: rgba(255,255,255,0.76); margin: 0 0 36px; line-height: 1.7; max-width: 560px; }
.ctaband__disclaimer { font-size: 12px; color: rgba(255,255,255,0.42); margin-top: 28px; max-width: 540px; line-height: 1.6; letter-spacing: 0.02em; }

/* ============ FOOTER ============ */
.footer { background: var(--ink); color: rgba(255,255,255,0.5); padding: 80px 0 36px; }
.footer__grid { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 48px; }
.footer__brand img { height: 22px; filter: brightness(0) invert(1); opacity: 0.92; margin-bottom: 20px; }
.footer__brand p { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.45); max-width: 300px; margin: 0 0 20px; }
.footer__col h5 { font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin: 0 0 18px; font-family: var(--font-body); }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: 14px; color: rgba(255,255,255,0.55); border: 0; }
.footer__col a:hover { color: #fff; }
.footer__sub {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-top: 6px;
}
.footer__sub-item { padding-left: 14px; position: relative; }
.footer__sub-item::before {
  content: '\00B7'; position: absolute; left: 2px; top: 50%;
  color: rgba(255,255,255,0.45); font-size: 18px; line-height: 0;
  transform: translateY(-1px);
}
.footer__legal {
  max-width: 1240px; margin: 56px auto 0; padding: 28px clamp(20px, 4vw, 56px) 0;
  border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; gap: 32px; align-items: flex-start;
  font-size: 12px; color: rgba(255,255,255,0.35); line-height: 1.6;
}
.footer__legal-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; flex: 1 1 auto; }
.footer__copy {
  max-width: 1240px; margin: 36px auto 0; padding: 24px clamp(20px, 4vw, 56px) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.6;
  text-align: center;
}
.footer__legal-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
}
.footer__legal-links a {
  color: rgba(255,255,255,0.55); border: 0; padding-bottom: 2px;
  border-bottom: 1px solid transparent; transition: color 180ms ease, border-color 180ms ease;
}
.footer__legal-links a:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.35); }
.footer__legal-copy { display: block; }
.footer__legal-right { max-width: 640px; text-align: right; }
.footer__social { display: flex; gap: 12px; margin-top: 16px; }
.footer__social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.55); }
.footer__social a:hover { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; }
.footer__social svg { width: 14px; height: 14px; }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand p { max-width: 520px; }
  .footer__legal { flex-direction: column; gap: 20px; }
  .footer__legal-right { text-align: left; max-width: none; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; padding: 0 20px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand img { height: 20px; margin-bottom: 16px; }
  .footer__brand p { font-size: 13.5px; line-height: 1.6; max-width: none; }
  .footer__col h5 { font-size: 10px; margin-bottom: 14px; }
  .footer__col a { font-size: 13px; }
  .footer__legal { padding: 24px 20px 0; font-size: 11px; margin-top: 40px; }
}

/* ============ PAGE HERO (sub-pages) ============ */
.phero { position: relative; padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--border); background: #fff; }
.phero--dark { background: var(--navy-brand); color: #fff; border-bottom: 0; }
.phero--dark::before {
  content: ''; position: absolute; inset: 0;
  background: url('../assets/bg-pattern-1.svg') center/cover no-repeat; opacity: 0.15; pointer-events: none;
}
.phero--dark h1, .phero--dark p { color: #fff; }
.phero--dark p { color: rgba(255,255,255,0.72); }
.phero__inner { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); position: relative; z-index: 1; }
.phero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: end; }
.phero h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.8rem, 5.8vw, 5.5rem); line-height: 0.98;
  letter-spacing: -0.022em; margin: 18px 0 24px; color: var(--ink);
  text-wrap: balance;
}
.phero--dark h1 { color: #fff; }
.phero__sub { font-size: 19px; line-height: 1.55; color: var(--ink-soft); max-width: 560px; margin: 0 0 32px; }
.phero--dark .phero__sub { color: rgba(255,255,255,0.78); }
.phero__meta-list { display: flex; flex-direction: column; gap: 10px; padding: 20px 0 0; border-top: 1px solid var(--border); margin-top: 32px; }
.phero--dark .phero__meta-list { border-color: rgba(255,255,255,0.14); }
.phero__meta-list div { display: flex; gap: 14px; font-size: 13px; color: var(--ink-muted); line-height: 1.5; }
.phero--dark .phero__meta-list div { color: rgba(255,255,255,0.64); }
.phero__meta-list b { color: var(--ink); font-weight: 500; min-width: 104px; flex: none; letter-spacing: 0.01em; font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; }
.phero--dark .phero__meta-list b { color: #fff; }
.phero__callouts { display: flex; flex-direction: column; gap: 16px; padding: 32px; background: var(--surface-tint); border: 1px solid var(--border); border-radius: 8px; }
.phero--dark .phero__callouts { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); backdrop-filter: blur(8px); }
.phero__callout { border-left: 2px solid var(--accent-blue); padding: 4px 16px; }
.phero--dark .phero__callout { border-color: var(--accent-ice); }
.phero__callout-num { font-family: var(--font-display); font-weight: 300; font-size: 32px; color: var(--ink); line-height: 1; }
.phero--dark .phero__callout-num { color: #fff; }
.phero__callout-num em { font-style: italic; color: var(--accent-blue); }
.phero--dark .phero__callout-num em { color: var(--accent-ice); }
.phero__callout-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-top: 6px; }
.phero--dark .phero__callout-label { color: rgba(255,255,255,0.6); }
@media (max-width: 900px) { .phero__grid { grid-template-columns: 1fr; align-items: start; } }

/* ============ BREADCRUMB ============ */
.breadcrumb { background: var(--accent-wash); border-bottom: 1px solid var(--border); padding: 12px 0; font-size: 12px; }
.breadcrumb__inner { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); display: flex; gap: 10px; align-items: center; color: var(--ink-muted); letter-spacing: 0.04em; }
.breadcrumb a { color: var(--ink-muted); border: 0; }
.breadcrumb a:hover { color: var(--accent-blue); }
.breadcrumb__sep { color: var(--border-strong); }
.breadcrumb__current { color: var(--accent-blue); font-weight: 500; }

/* ============ INTRO SPLIT ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.split__text { padding: clamp(56px, 8vw, 110px) clamp(32px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; }
.split__text h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); margin: 18px 0 22px; }
.split__text p { font-size: 16.5px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 16px; max-width: 560px; }
.split__visual { position: relative; overflow: hidden; min-height: 480px; background: linear-gradient(140deg, #2D6EB1 0%, #163361 70%, #0B1D3A 100%); }
.split__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__visual--reverse { order: -1; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split__visual { min-height: 320px; } .split__visual--reverse { order: 0; } }

/* ============ PROTOCOLS GRID (hub) ============ */
.protocols__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); }
.protocol { background: #fff; padding: 36px 32px 32px; display: flex; flex-direction: column; border-top: 3px solid transparent; transition: border-color 240ms, background 240ms, transform 320ms var(--ease-out-expo); }
.protocol:hover { border-top-color: var(--accent-blue); background: var(--accent-wash); }
.protocol__icon { width: 56px; height: 56px; background: var(--surface-tint); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.protocol__icon img { width: 28px; height: 28px; }
.protocol h3 { font-family: var(--font-display); font-size: 24px; font-weight: 400; color: var(--ink); margin: 0 0 12px; }
.protocol p { font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 20px; flex: 1; }
.protocol__meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--ink-muted); letter-spacing: 0.04em; }
.protocol__meta b { color: var(--ink); font-weight: 500; }
@media (max-width: 900px) { .protocols__grid { grid-template-columns: 1fr; } }

/* ============ WHO CARDS ============ */
.who__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); }
.who-card { background: var(--surface-tint); padding: 36px 32px; }
.who-card__label { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-blue); margin-bottom: 14px; }
.who-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--ink); margin: 0 0 12px; line-height: 1.25; }
.who-card p { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .who__grid { grid-template-columns: 1fr; } }

/* ============ SCIENCE SPLIT (accent wash) ============ */
.science { background: var(--accent-wash); border-top: 1px solid var(--border); }
.science__inner { max-width: 1240px; margin: 0 auto; padding: clamp(80px, 10vw, 130px) clamp(20px, 4vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.science__text h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); margin: 16px 0 0; }
.science__text p { font-size: 16px; line-height: 1.8; color: var(--ink-soft); margin: 18px 0 0; }
.science__visual { position: relative; border-radius: 6px; overflow: hidden; background: #1C3461; min-height: 480px; }
.science__visual img { width: 100%; height: 100%; object-fit: cover; }
.science__caption { position: absolute; bottom: 20px; left: 20px; background: rgba(255,255,255,0.92); padding: 10px 14px; border-radius: 4px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); backdrop-filter: blur(6px); }
@media (max-width: 900px) { .science__inner { grid-template-columns: 1fr; } }

/* ============ TEAM CARDS ============ */
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); }
.team-card { background: #fff; padding: 0; display: flex; flex-direction: column; }
.team-card__photo { aspect-ratio: 4/5; overflow: hidden; background: linear-gradient(145deg, #1C3461, #0B1D3A); position: relative; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 500ms var(--ease-out-expo); }
.team-card:hover .team-card__photo img { transform: scale(1.03); }
.team-card__photo-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.18); font-family: var(--font-display); font-size: 80px; font-weight: 300; font-style: italic; }
.team-card__body { padding: 28px 32px 36px; }
.team-card__role { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-blue); margin-bottom: 8px; }
.team-card__name { font-family: var(--font-display); font-size: 26px; font-weight: 400; color: var(--ink); margin: 0 0 14px; }
.team-card__bio { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 16px; }
.team-card__credentials { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.team-card__credentials li { font-size: 12px; color: var(--ink-muted); letter-spacing: 0.01em; padding-left: 14px; position: relative; }
.team-card__credentials li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 1px; background: var(--accent-blue); }
@media (max-width: 900px) { .team__grid { grid-template-columns: 1fr; } }

/* ============ FORM ============ */
.form { display: flex; flex-direction: column; gap: 24px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.form__group { display: flex; flex-direction: column; gap: 8px; }
.form__label { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.form__label small { font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: var(--ink-muted); margin-left: 6px; }
.form__input, .form__select, .form__textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--border-strong); border-radius: 4px;
  padding: 13px 16px; line-height: 1.5; transition: border-color 200ms, box-shadow 200ms;
  width: 100%;
}
.form__input:focus, .form__select:focus, .form__textarea:focus {
  outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(45,110,177,0.15);
}
.form__textarea { resize: vertical; min-height: 110px; }
.form__select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1L6 6L11 1' stroke='%234A6480' stroke-width='1.5' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.form__error { font-size: 12px; color: #b94c4c; }
.form__help { font-size: 12.5px; color: var(--ink-muted); line-height: 1.55; }

/* checkbox / radio */
.form__check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; transition: background 180ms, border-color 180ms; }
.form__check:hover { background: var(--accent-wash); border-color: var(--accent-blue); }
.form__check input { appearance: none; width: 16px; height: 16px; border: 1.5px solid var(--border-strong); border-radius: 50%; flex: none; margin-top: 3px; position: relative; cursor: pointer; }
.form__check input[type=checkbox] { border-radius: 3px; }
.form__check input:checked { border-color: var(--accent-blue); background: var(--accent-blue); }
.form__check input:checked::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #fff; }
.form__check input[type=checkbox]:checked::after { inset: 0; background: transparent; content: '✓'; color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.form__check span { font-size: 14px; color: var(--ink); line-height: 1.5; }
.form__check input:checked ~ span { color: var(--ink); }
.form__check.is-checked { background: var(--accent-wash); border-color: var(--accent-blue); }

/* ============ REVEAL ANIMATIONS ============ */
/* Default: visible. JS may hide + re-reveal if observer fires in time, but content never gets stuck. */
[data-reveal], [data-reveal-child] { opacity: 1; transform: none; transition: opacity 780ms var(--ease-out-expo), transform 780ms var(--ease-out-expo); }
html.reveal-ready [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(28px); }
html.reveal-ready [data-reveal]:not(.is-in) [data-reveal-child] { opacity: 0; transform: translateY(20px); }
[data-reveal].is-in [data-reveal-child]:nth-child(1) { transition-delay: 0ms; }
[data-reveal].is-in [data-reveal-child]:nth-child(2) { transition-delay: 80ms; }
[data-reveal].is-in [data-reveal-child]:nth-child(3) { transition-delay: 160ms; }
[data-reveal].is-in [data-reveal-child]:nth-child(4) { transition-delay: 240ms; }
[data-reveal].is-in [data-reveal-child]:nth-child(5) { transition-delay: 320ms; }
[data-reveal].is-in [data-reveal-child]:nth-child(6) { transition-delay: 400ms; }

.reveal-mask { overflow: hidden; display: inline-block; }
.reveal-mask > span { display: inline-block; transform: translateY(0); transition: transform 900ms var(--ease-out-expo); }
html.reveal-ready .reveal-mask > span { transform: translateY(110%); }
html.reveal-ready [data-reveal].is-in .reveal-mask > span { transform: translateY(0); }
html.reveal-ready .reveal-mask.is-in > span,
html.reveal-ready .is-in.reveal-mask > span { transform: translateY(0); }

/* counter */
.counter { display: inline-block; }

/* magnetic */
.magnet { display: inline-flex; transition: transform 180ms var(--ease-out-expo); }

/* prose */
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.01em; margin: 48px 0 16px; color: var(--ink); }
.prose h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; margin: 32px 0 10px; color: var(--ink); }
.prose p, .prose li { font-size: 16px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent-blue); border-color: var(--accent-blue); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-child] { opacity: 1 !important; transform: none !important; }
  .reveal-mask > span { transform: none !important; }
  .trust__track { animation: none; }
}

/* ============ NAV: hide mobile sheet on desktop / show on mobile ============
   Applied to every non-v4 page (home uses its own v4.css rules). */
body:not(.v4) .nav-sheet,
body:not(.v4) .nav-backdrop { display: none; }
body:not(.v4) .nav__burger { display: none; }

@media (max-width: 900px) {
  body:not(.v4) .nav__menu { display: none; }
  body:not(.v4) .nav__phone { display: none; }
  body:not(.v4) .nav__right .btn { padding: 11px 16px; font-size: 13px; }
  body:not(.v4) .nav__right .btn--ghost { display: none; }
  body:not(.v4) .nav__burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0;
    background: transparent; border: 1px solid var(--border-strong);
    border-radius: 4px; cursor: pointer; font-size: 0; position: relative;
  }
  body:not(.v4) .nav__burger::before,
  body:not(.v4) .nav__burger::after {
    content: ''; position: absolute; left: 10px; right: 10px; height: 1.5px;
    background: var(--ink); transition: transform 280ms var(--ease-out-expo), top 280ms, opacity 200ms;
  }
  body:not(.v4) .nav__burger::before { top: 14px; }
  body:not(.v4) .nav__burger::after  { top: 23px; }
  body:not(.v4) .nav__burger.is-open::before { top: 19px; transform: rotate(45deg); }
  body:not(.v4) .nav__burger.is-open::after  { top: 19px; transform: rotate(-45deg); }

  body:not(.v4) .nav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 80;
    background: rgba(11,29,58,0.48); opacity: 0; pointer-events: none;
    transition: opacity 240ms var(--ease-out-expo);
  }
  body:not(.v4).nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }

  body:not(.v4) .nav-sheet {
    display: flex; flex-direction: column;
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
    width: min(360px, 88vw); background: #fff;
    transform: translateX(100%); transition: transform 360ms var(--ease-out-expo);
    padding: 112px 28px 28px; overflow-y: auto;
    box-shadow: -24px 0 60px rgba(11,29,58,0.12);
  }
  body:not(.v4) .nav-sheet.is-open { transform: translateX(0); }
  body:not(.v4) .nav-sheet__group { display: flex; flex-direction: column; gap: 4px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
  body:not(.v4) .nav-sheet__group:last-of-type { border-bottom: 0; }
  body:not(.v4) .nav-sheet__group .v4-mono { margin-bottom: 12px; }
  body:not(.v4) .nav-sheet a { font-family: var(--font-display); font-size: 20px; color: var(--ink); padding: 10px 0; line-height: 1.2; display: flex; flex-direction: column; border: 0; }
  body:not(.v4) .nav-sheet__footer a.btn--primary { color: #fff; }
  body:not(.v4) .nav-sheet a small { font-size: 12.5px; color: var(--ink-muted); font-family: var(--font-body); margin-top: 3px; }
  body:not(.v4) .nav-sheet__footer { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); }
  body:not(.v4) .nav-sheet__footer .btn { width: 100%; justify-content: center; }
  body:not(.v4) .nav-sheet__footer .v4-lbl { font-size: 11px; color: var(--ink-muted); text-align: center; }
}
