/*
 * Blue Clay Inc. Splash Page Styles
 * Light mode, clean, minimal
 */

@import url("./tokens.css");

/* Prevent dark flash on load */
html {
  background: var(--color-surface);
  scroll-behavior: smooth;
  color-scheme: light;
}

/*
 * Cross-document view transitions (same-origin MPA) — Chrome 126+, Safari 18+.
 * @see https://developer.chrome.com/docs/web-platform/view-transitions/cross-document
 * Respects reduced motion: full rule is skipped when the user requests less animation.
 */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  /* Root snapshot: short cross-fade. Duration kept under 400ms for focus management + perceived snappiness. */
  ::view-transition-old(root) {
    animation: vt-fade-out 0.24s var(--ease-standard) both;
  }

  ::view-transition-new(root) {
    animation: vt-fade-in 0.32s var(--ease-enter) both;
  }
}

@keyframes vt-fade-out {
  to {
    opacity: 0;
  }
}

@keyframes vt-fade-in {
  from {
    opacity: 0;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--color-surface);
  /* Subtle brand halo behind the hero. Constrained to the first viewport via
     background-size so it fades naturally as the reader scrolls into the
     content sections — no fixed-attachment, no parallax, no repeat. */
  background-image: radial-gradient(
    ellipse 90% 55% at 50% 18%,
    rgba(65, 109, 236, 0.06) 0%,
    rgba(65, 109, 236, 0.02) 35%,
    transparent 70%
  );
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% 100vh;
  min-height: 100vh;
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
}

/* ========== Navigation (Sticky) — unified chrome home + team ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 var(--space-5);
  background: #faf9f6;
  border-bottom: 1px solid rgba(15, 24, 43, 0.08);
  box-sizing: border-box;
  transition: background 0.35s var(--ease-standard), border-color 0.35s var(--ease-standard),
    box-shadow 0.35s var(--ease-standard);
}

.nav.is-scrolled {
  background: #faf9f6;
  border-bottom-color: rgba(15, 24, 43, 0.12);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Scroll progress indicator — 2px brand line sitting flush against the
   bottom of the fixed nav. Width is driven by JS reading document scroll. */
.scroll-progress {
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--color-brand-dominant);
  pointer-events: none;
  transition: width 120ms linear;
  will-change: width;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    transition: none;
  }
}

.nav-logo {
  display: block;
  transition: filter 0.2s var(--ease-standard);
}

.nav-logo:focus-visible {
  outline: 2px solid var(--color-brand-dominant);
  outline-offset: 3px;
  border-radius: 2px;
}

.nav-logo img {
  height: 24px;
  width: auto;
  display: block;
}

.nav-logo:hover {
  opacity: 0.72;
}

/* ========== Hero Section ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-5);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-logo {
  width: min(220px, 40vw);
  height: auto;
  margin-bottom: var(--space-6);
  opacity: 0;
  align-self: center;
  animation: heroLogoFadeIn 1.5s ease forwards, heroLogoBreathing 4s ease-in-out 1.5s infinite;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading-xbold);
  font-size: var(--text-hero-h1);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-4);
  opacity: 0;
  transform: translateY(20px);
  animation: heroHeadlineSlideUp 1s ease 0.5s forwards;
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
}

.hero h2 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: var(--text-hero-h2);
  line-height: var(--line-height-body);
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-5);
  opacity: 0;
  animation: heroSubheadFadeIn 1s ease 1s forwards;
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
}

.hero .statement {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.hero .statement-item {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading-semibold);
  font-size: clamp(16px, 2vw, 24px);
  color: var(--color-text-primary);
  opacity: 0;
  animation: statementFadeIn 0.6s ease forwards;
}

/* Cascade lands right after the H2 fade finishes (~2.0s). 600ms between
   words keeps the ritual pacing without dragging the hero past ~4s. */
.hero .statement-item:nth-child(1) { animation-delay: 2.2s; }
.hero .statement-item:nth-child(2) { animation-delay: 2.8s; }
.hero .statement-item:nth-child(3) { animation-delay: 3.4s; }

@keyframes statementFadeIn {
  to { opacity: 1; }
}

.hero .statement-word {
  margin-right: 1px;
}

.hero .statement-dot {
  font-weight: 400;
  color: currentColor;
}

.hero .statement-item:nth-child(1) {
  color: #b45309; /* Intercept: warning / stop before execution */
}

.hero .statement-item:nth-child(2) {
  color: var(--color-text-secondary); /* Audit: institutional governance */
}

.hero .statement-item:nth-child(3) {
  color: #0f766e; /* Clear: safe passage after verification */
}

@keyframes heroLogoFadeIn {
  to {
    opacity: 1;
  }
}

@keyframes heroLogoBreathing {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@keyframes heroHeadlineSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSubheadFadeIn {
  to { opacity: 1; }
}

/* ========== Scroll Cue ========== */
.scroll-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-7);
  color: #c0c8d4;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease-standard), color 0.2s var(--ease-standard);
  animation: scrollCueFadeIn 0.6s ease 4.8s forwards;
}

.scroll-cue:hover {
  color: var(--color-brand-dominant);
}

.scroll-cue.is-hidden {
  opacity: 0 !important;
  pointer-events: none;
}

@keyframes scrollCueFadeIn {
  to { opacity: 1; }
}

@keyframes scrollCueBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(4px); }
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-cue svg {
    animation: scrollCueBounce 1.5s ease-in-out 5.4s infinite;
  }
}

/* ========== Footer ========== */
.footer {
  padding: var(--space-5) var(--space-5);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.footer-moat {
  font-family: var(--font-body);
  font-weight: var(--font-weight-body-light);
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 36em;
  line-height: 1.5;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: var(--text-tiny);
  font-weight: var(--font-weight-body-regular);
  color: var(--color-text-tertiary);
  margin: 0;
}

/* ========== Responsive ========== */
/*
 * Breakpoints (standard):
 * Mobile:  < 640px
 * Tablet:  640px - 1023px (iPad portrait 768, landscape 1024)
 * Desktop: 1024px+
 */

/* ---- Mobile (< 640px) ---- */
@media (max-width: 639px) {
  .nav {
    padding: 0 var(--space-4);
    height: 48px;
  }

  .nav-logo img {
    height: 20px;
  }

  .hero {
    padding: var(--space-6) var(--space-4);
    min-height: 100svh;
  }

  .hero-logo {
    width: min(180px, 50vw);
    margin-bottom: var(--space-4);
  }

  .hero h1 {
    font-size: clamp(28px, 7.5vw, 36px);
    margin-bottom: var(--space-3);
  }

  .hero h2 {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: var(--space-4);
  }

  .hero .statement {
    justify-content: center;
    max-width: 100%;
    padding: 0;
  }

  .hero .statement-item {
    font-size: 14px;
  }

  .footer {
    padding: var(--space-4) var(--space-4);
    gap: var(--space-2);
  }

  .footer-copy {
    font-size: 11px;
  }
}

/* ---- Tablet (640px - 1023px) ---- */
@media (min-width: 640px) and (max-width: 1023px) {
  .hero {
    padding: var(--space-7) var(--space-5);
  }

  .hero h1 {
    font-size: clamp(42px, 6vw, 56px);
  }

  .hero h2 {
    font-size: 20px;
  }

  .hero .statement-item {
    font-size: 18px;
  }
}

/* ---- Desktop (1024px+) ---- */
@media (min-width: 1024px) {
  .hero .statement-item {
    font-size: 24px;
  }
}

/* ============================================================
 * SITE v2 EXTENSIONS
 * Long-scroll home + team page.
 * Non-destructive additions below this line.
 * ============================================================ */

:root {
  /* Light-mode text vocabulary (scoped to v2 sections) */
  --text-on-dark: #0F182B;           /* primary — near-black on white */
  --text-on-dark-muted: #334155;     /* secondary text */
  --text-on-dark-quiet: #64748b;     /* tertiary / quiet */
  --text-on-dark-faint: #94a3b8;     /* very quiet / decorative */

  /* Light-mode rule colors */
  --rule-on-dark: rgba(15, 24, 43, 0.1);
  --rule-on-dark-strong: rgba(15, 24, 43, 0.2);

  /* Brand accent on light background */
  --brand-on-dark: #416DEC;
}

/* Anchor links shouldn't land behind the fixed nav (56px + breathing room) */
html {
  scroll-padding-top: 80px;
}

/* Hero sizing + line-height overrides. Desktop rule added below. */
.hero h1 {
  color: var(--text-on-dark);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.hero h2 {
  color: var(--text-on-dark-quiet);
  line-height: 1.5;
  letter-spacing: -0.005em;
}

/* Desktop hero sizing — existing CSS has no desktop rule, falls back to browser default */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: clamp(56px, 5.5vw, 76px);
  }
  .hero h2 {
    font-size: clamp(18px, 1.6vw, 22px);
  }
}

/* Allow main to host multiple sections below the 800px-constrained hero */
main {
  display: block;
}

/* ---------- Skip to content ---------- */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--color-brand-dominant);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top var(--duration-fast) var(--ease-standard);
}

.skip-to-content:focus {
  top: var(--space-3);
  outline: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--text-on-dark-quiet);
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  padding: var(--space-2) 0;
  transition: color var(--duration-fast) var(--ease-standard);
}

/* Hairline underline gives hover/focus feedback and marks the current page. */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 280ms var(--ease-standard);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--text-on-dark);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--color-brand-dominant);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .nav-links a::after {
    transition: none;
  }
}

/* ---------- Section primitives ---------- */
.section {
  padding: var(--space-8) var(--space-5) var(--space-7);
  color: var(--text-on-dark-muted);
  opacity: 1;
}

/*
 * Section separators: on a single-color canvas, a hairline carries the
 * section boundary. When adjacent sections have different backgrounds
 * (e.g. warm body bg → elevated white, or section → founding), the bg
 * change itself is the separator and the hairline would look noisy.
 * First child skips the border automatically; the sibling selector covers
 * the rest and the overrides below drop it where a bg shift already marks
 * the break.
 */
.section + .section,
.section + .deployment-signal,
.section + .close,
.deployment-signal + .close {
  border-top: 1px solid var(--rule-on-dark);
}

/* Drop the hairline wherever two adjacent sections have different bg
   tints — the color shift carries the visual separation on its own. */
.section--elevated + .section,
.section + .section--elevated,
.section + .founding,
.founding + .close {
  border-top: none;
}

/* Alternating section tint — pure white on warm off-white body bg.
   Creates rhythm without requiring cards, borders, or heavy chrome. */
.section--elevated {
  background: var(--color-surface-elevated);
}

/* Leader's address flows from hero — no separator above */
.leader-address {
  border-top: none !important;
}

.section > .container {
  max-width: 1040px;
  margin: 0 auto;
}

.section.section-narrow > .container {
  max-width: 720px;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-on-dark);
  /* Flex host so the ::before pip sits on the same baseline as the label.
     No top margin — section padding handles the space above. */
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin: 0 0 var(--space-3);
}

/* Section eyebrow pip — small colored dot preceding the label.
   Default color is brand blue; modifier classes switch to amber/teal. */
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-on-dark);
  flex-shrink: 0;
}

.section-eyebrow--amber::before {
  background: var(--color-signal-amber);
}

.section-eyebrow--teal::before {
  background: var(--color-signal-teal);
}

.section h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.18;
  color: var(--text-on-dark);
  margin: 0 0 var(--space-5);
  letter-spacing: -0.015em;
  max-width: 44rem;
}

.section h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  color: var(--text-on-dark);
  margin: 0 0 var(--space-3);
  letter-spacing: -0.005em;
}

.section p {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--text-on-dark-muted);
  margin: 0 0 var(--space-3);
}

.section p.lead {
  font-size: var(--text-body-lg);
  line-height: 1.7;
  color: var(--text-on-dark-muted);
  font-weight: 400;
  max-width: 56rem;
}

.section p.lead strong {
  color: var(--text-on-dark);
  font-weight: 600;
}

/* Accent-colored emphasis. Used sparingly on a few load-bearing phrases to
   create visual rhythm without the "highlighter-marker" effect. The ::lead
   strong rule above sets the default color; these override for specific
   strongs that opt in via modifier class. Ordering matters — these must
   appear after the .lead strong rule so they win specificity-wise. */
.accent-amber { color: var(--color-signal-amber); }
.accent-blue { color: var(--color-brand-dominant); }
.accent-teal { color: var(--color-signal-teal); }

.section p.lead strong.accent-amber { color: var(--color-signal-amber); }
.section p.lead strong.accent-blue { color: var(--color-brand-dominant); }
.section p.lead strong.accent-teal { color: var(--color-signal-teal); }

.section p.lead + p.lead {
  margin-top: var(--space-4);
}

.section p:last-child {
  margin-bottom: 0;
}

.pull-quote {
  font-family: var(--font-heading);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.6;
  color: var(--text-on-dark-muted);
  /* Left-align to share the same left edge as all section content above.
     max-width keeps long lines readable; no margin: auto indent. */
  text-align: left;
  max-width: 44rem;
  margin: var(--space-7) 0 0;
  padding-top: var(--space-6);
  padding-left: var(--space-5);
  border-top: 1px solid var(--rule-on-dark);
  border-left: 2px solid var(--rule-on-dark-strong);
}

/* ---------- Section 2: Leader's Address ---------- */
/* Bridge block from hero → product. Short, high-authority, no content heading. */
.leader-address {
  padding-top: var(--space-7);
  padding-bottom: var(--space-8);
}

/* The lede is the thesis of the site — should be display-level, not body-level.
   Must beat .leader-address p specificity (0,2,0) so we use (0,3,0): class + element + class. */
.leader-address p.leader-lede {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  margin: 0 0 var(--space-5);
  max-width: 22rem;
}

.leader-address p {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  line-height: 1.75;
  color: var(--text-on-dark-muted);
  margin: 0 0 var(--space-4);
}

.leader-address p:last-child {
  margin-bottom: 0;
}

.leader-address strong {
  color: var(--text-on-dark);
  font-weight: 600;
}

/* ---------- Section 3: What OrderGuard Is ---------- */
.facts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.fact h3 {
  font-size: 20px;
  margin-bottom: var(--space-2);
  color: var(--text-on-dark);
}

.fact p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-on-dark-quiet);
  margin: 0;
}

/* ---------- Section 4: What Becomes Detectable ---------- */
.examples {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.example {
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-4);
  border-left: 3px solid var(--color-signal-warning);
}

.example.is-pass {
  border-left-color: var(--color-signal-success);
}

.example h3 {
  font-size: 18px;
  margin-bottom: var(--space-2);
  color: var(--text-on-dark);
}

.example p {
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--text-on-dark-muted);
  margin: 0 0 var(--space-2);
}

.example p:last-child {
  margin-bottom: 0;
}

/* ---------- Section 5: Why Now ---------- */
.pillars {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

/* Large thin numeral preceding the pillar title — 01 / 02 / 03.
   Visual anchor for the "three convergences" narrative. */
.pillar-number {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-on-dark-faint);
  margin: 0 0 var(--space-2);
  font-feature-settings: "tnum" 1;
}

.pillar h3 {
  font-size: 22px;
  margin-bottom: var(--space-3);
}

.pillar p strong {
  color: var(--text-on-dark);
  font-weight: 600;
}

/* ---------- Section 6: Built for Both Sides ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  margin-top: var(--space-6);
  position: relative;
}

.two-col::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--rule-on-dark);
  transform: translateX(-50%);
}

.two-col > * {
  min-width: 0;
}

.two-col h3 {
  font-size: 18px;
  margin-bottom: var(--space-3);
  color: var(--text-on-dark);
}

.two-col ul,
.three-col ul,
.adoption-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.two-col li {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-on-dark-muted);
  padding: var(--space-2) 0 var(--space-2) var(--space-4);
  position: relative;
}

.two-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  background: var(--color-brand-dominant);
  border-radius: 50%;
}

/* ---------- Section 7: Adoptable Without Friction ---------- */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.adoption-col h3 {
  font-size: 18px;
  margin-bottom: var(--space-3);
  color: var(--text-on-dark);
}

.adoption-col li {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-on-dark-muted);
  padding: var(--space-2) 0 var(--space-2) var(--space-4);
  position: relative;
}

.adoption-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  background: var(--color-brand-dominant);
}

/* ---------- Section 8: Deployment Signal ---------- */
/* Inherits border-top from .section + .deployment-signal sibling rule above.
   Only needs a bottom border since it doesn't have .section class. */
.deployment-signal {
  padding: var(--space-6) var(--space-5);
  border-bottom: 1px solid var(--rule-on-dark);
}

.deployment-signal p {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--text-on-dark);
  text-align: center;
  margin: 0;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Section 8 (alt): Founding ---------- */
/* Origin note — quiet, single paragraph, sized like the leader's address body.
   Warm cream tint signals a shift in register: this is the personal note
   inside an otherwise institutional document. */
.founding {
  background: #f6f1e6;
}

.founding .section-eyebrow {
  margin-bottom: var(--space-4);
}

.founding p.founding-note {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  line-height: 1.75;
  color: var(--text-on-dark-muted);
  margin: 0;
  max-width: 44rem;
}

/* ---------- Section 9: Close ---------- */
.close {
  padding: var(--space-7) var(--space-5) var(--space-8);
  text-align: center;
  background: var(--color-surface-elevated);
}

.close-anchor {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  color: var(--text-on-dark);
  letter-spacing: -0.01em;
  margin: 0 auto var(--space-5);
  max-width: 40rem;
}

/* Short centered hairline above the closing line. Gives the sentence a
   pedestal without resorting to heavier typographic treatment. */
.close-anchor::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--rule-on-dark-strong);
  margin: 0 auto var(--space-4);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-white);
  background: var(--color-brand-foundation);
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--color-brand-foundation);
  border-radius: var(--radius-sm);
  text-decoration: none;
  letter-spacing: 0.015em;
  transition: background var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}

.cta-button::after {
  content: none;
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--color-brand-sub);
  border-color: var(--color-brand-sub);
}

.cta-button:focus-visible {
  outline: 2px solid var(--color-brand-dominant);
  outline-offset: 3px;
}

.cta-button:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .cta-button::after {
    transition: none;
  }
}

/* ---------- Footer v2 ---------- */
.footer-v2 {
  padding: var(--space-7) var(--space-5) calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
  text-align: center;
  border-top: 1px solid var(--rule-on-dark);
}

.footer-v2 p {
  font-family: var(--font-body);
  font-size: var(--text-tiny);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-on-dark-quiet);
  margin: 0;
  line-height: 1.65;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.footer-v2 .sep {
  display: inline-block;
  margin: 0 var(--space-2);
  color: var(--text-on-dark-faint);
  opacity: 0.85;
}

/* ---------- Scroll-fade observer ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-enter), transform 600ms var(--ease-enter);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal — when a section has both .reveal and .stagger, the
   section itself doesn't animate. Instead, its direct children fade+lift in
   one at a time after the parent becomes visible. Covers both sections that
   wrap content in .container (most) and sections that don't (close).
   Stagger step is ~70ms; the first child has no delay so the section feels
   responsive to scroll. */
.reveal.stagger {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal.stagger > .container > *,
.close.reveal.stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms var(--ease-enter), transform 500ms var(--ease-enter);
  will-change: opacity, transform;
}

.reveal.stagger.is-visible > .container > *,
.close.reveal.stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

.reveal.stagger.is-visible > .container > *:nth-child(1),
.close.reveal.stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal.stagger.is-visible > .container > *:nth-child(2),
.close.reveal.stagger.is-visible > *:nth-child(2) { transition-delay: 70ms; }
.reveal.stagger.is-visible > .container > *:nth-child(3),
.close.reveal.stagger.is-visible > *:nth-child(3) { transition-delay: 140ms; }
.reveal.stagger.is-visible > .container > *:nth-child(4),
.close.reveal.stagger.is-visible > *:nth-child(4) { transition-delay: 210ms; }
.reveal.stagger.is-visible > .container > *:nth-child(5),
.close.reveal.stagger.is-visible > *:nth-child(5) { transition-delay: 280ms; }
.reveal.stagger.is-visible > .container > *:nth-child(n+6),
.close.reveal.stagger.is-visible > *:nth-child(n+6) { transition-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal.stagger > .container > *,
  .close.reveal.stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-logo,
  .hero h1,
  .hero h2 {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
 * TEAM PAGE
 * ============================================================ */

.team-hero {
  padding: calc(var(--space-8) + 56px) var(--space-5) var(--space-7);
  max-width: 1040px;
  margin: 0 auto;
  text-align: left;
}

.team-hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  color: var(--text-on-dark);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.015em;
}

.team-hero p {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: var(--text-on-dark-quiet);
  margin: 0;
  max-width: 44rem;
}

.team-section {
  padding: var(--space-7) var(--space-5);
}

.team-section > .container {
  max-width: 1040px;
  margin: 0 auto;
}

.team-section-heading {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-on-dark);
  margin: 0 0 var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--rule-on-dark);
}

.founders {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.founder {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-6);
}

.founder-head h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--text-on-dark);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}

.founder-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-on-dark);
  margin: 0 0 var(--space-3);
  letter-spacing: 0.01em;
}

.founder-credentials {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-on-dark-quiet);
  margin: 0;
}

.founder-bio p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-on-dark-muted);
  margin: 0 0 var(--space-3);
}

.founder-bio p:last-child {
  margin-bottom: 0;
}

.advisors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.advisor {
  padding-top: var(--space-3);
  border-top: 2px solid rgba(74, 111, 165, 0.3);
}

.advisor h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  color: var(--text-on-dark);
  margin: 0 0 var(--space-1);
}

.advisor-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-on-dark);
  margin: 0 0 var(--space-2);
  letter-spacing: 0.01em;
}

.advisor-affiliation {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-on-dark-quiet);
  margin: 0 0 var(--space-3);
  letter-spacing: 0.02em;
}

.advisor p.advisor-bio {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-on-dark-muted);
  margin: 0;
}

/* ============================================================
 * RESPONSIVE v2
 * ============================================================ */

/* ---- Below 900px: collapse 3-col layouts to single column ---- */
@media (max-width: 899px) {
  .facts-row,
  .three-col {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .advisors {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

/* ---- Below 768px: collapse 2-col + founder row ---- */
@media (max-width: 767px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .two-col::before {
    display: none;
  }

  .founder {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* ---- Mobile tightening (< 640px) ---- */
@media (max-width: 639px) {
  .section {
    padding: var(--space-6) var(--space-4) var(--space-6);
  }

  .leader-address {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
  }

  .section h2 {
    font-size: 26px;
  }

  .pull-quote {
    font-size: 17px;
  }

  .leader-address p {
    font-size: 17px;
  }

  .section p.lead {
    font-size: 17px;
  }

  .deployment-signal {
    padding: var(--space-5) var(--space-4);
  }

  .deployment-signal p {
    font-size: 17px;
  }

  .close {
    padding: var(--space-7) var(--space-4) var(--space-8);
  }

  .cta-button {
    padding: 12px 22px;
    font-size: 15px;
  }

  .nav-links {
    gap: var(--space-3);
  }

  .nav-links a {
    font-size: 13px;
  }

  .team-hero {
    padding: calc(var(--space-7) + 48px) var(--space-4) var(--space-6);
  }

  .team-section {
    padding: var(--space-6) var(--space-4);
  }
}

/* ---- Very narrow nav: hide some links ---- */
@media (max-width: 479px) {
  .nav-links .nav-link-approach {
    display: none;
  }
}
