/* ==========================================================================
   Harbour — "The Crossing" landing page
   One continuous voyage: dusk water (WebGL) → night swell (collage) →
   the crossing (how it works) → the mirror (receipts) → ports of call →
   arrival at dawn. Tokens mirror DESIGN.md (canonical dark values;
   the arrival chapter flips to the dawn-light ramp).
   ========================================================================== */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: 'Poppins';
  src: url('/landing-assets/fonts/poppins-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/landing-assets/fonts/poppins-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/landing-assets/fonts/poppins-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/landing-assets/fonts/poppins-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------------- tokens */
:root {
  /* Brand charter palette — navy ramp mirrors styles/brand-tokens.css
     (darkest → light-beam). Every value below is a charter hex. */
  --navy-deep: #0C1E3D;    /* charter mid — "more luminous dark" (cards, gradient body) */
  --navy-raised: #283F5F;  /* charter light-beam — raised surfaces (chips, step markers) */
  --indigo-dusk: #0C1E3D;  /* charter mid — gradient tops (mirror / alpha hero) */
  --near-black: #111B2D;   /* charter darkest — deepest section backgrounds */
  --ink-navy: #002060;     /* charter text on light */
  --ink-navy-soft: rgba(0, 32, 96, 0.72); /* muted Ink Navy for captions on white (>=4.5:1) */
  --pale-yellow: #FBFDAD;  /* charter pale-yellow — text-on-dark accent (hero kicker) */
  --steel: #4F81BD;        /* charter steel-blue — secondary highlight surface */
  --beacon: #F9F267;       /* charter bright yellow — the one loud beacon */
  --mustard: #EAB308;      /* charter mustard — CTA surface (navy ink on top, never white) */
  --paper: #FFFFFF;
  --dawn-cream: #F5E0C8;
  --morning-sea: #7FA6C2;
  --sea-mist: #CBD5E1;
  --slate-tertiary: #94A3B8;
  /* category hues — meaning, not decoration */
  --hue-clear: #3B82F6;        /* blue */
  --hue-relationship: #9333EA; /* violet */
  --hue-confidence: #14B8A6;   /* turquoise */
  --signal-green: #22C55E;     /* green */

  /* type — DESIGN.md fluid ramp */
  --font: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fs-display: clamp(2.25rem, calc(0.954rem + 5.527vw), 3.5rem);
  --fs-h1: clamp(1.875rem, calc(0.943rem + 3.971vw), 2.5rem);
  --fs-h2: clamp(1.5rem, calc(0.866rem + 2.704vw), 1.875rem);
  --fs-h3: clamp(1.125rem, calc(0.762rem + 1.554vw), 1.5rem);
  --fs-body: clamp(1rem, calc(0.794rem + 0.882vw), 1.125rem);
  --fs-body-sm: clamp(0.875rem, calc(0.795rem + 0.343vw), 1rem);
  --fs-caption: 0.75rem;

  /* layout */
  --container: 72rem;
  --pad-x: clamp(1.25rem, 5vw, 3rem);
  --radius-card: 1rem;
  --radius-hero: 1.5rem;
  --radius-control: 0.375rem;

  /* z scale */
  --z-rail: 30;
  --z-nav: 40;
  --z-modal-backdrop: 50;
  --z-modal: 51;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: #ffffff;
  background: var(--near-black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

a { color: inherit; }

:root { --focus-ring: var(--beacon); }
/* light chapters flip the ring to ink so it stays visible */
.swell, .crossing, .ports, .arrival, .on-light { --focus-ring: var(--ink-navy); }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link:focus-visible {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 60;
  width: auto; height: auto;
  overflow: visible;
  clip: auto;
  background: var(--navy-deep);
  color: #ffffff;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* =================================================================== nav */
.site-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-nav);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.site-nav.scrolled {
  background: rgba(17, 27, 45, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07);
}
.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.nav-brand img {
  height: 34px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}
.nav-links a:not(.btn) {
  color: var(--sea-mist);
  text-decoration: none;
  font-size: var(--fs-body-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}
/* Nav labels stay on one line; the row collapses to the hamburger below its
   fit width (see the max-width media query) rather than wrapping. */
.nav-links .btn { white-space: nowrap; }
.nav-links a:not(.btn):hover { color: #ffffff; }
.nav-links a.is-current {
  color: #ffffff;
  box-shadow: 0 2px 0 0 var(--beacon);
  padding-bottom: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--sea-mist);
  cursor: pointer;
  padding: 0.5rem;
}

/* EN/FR switch — a country flag + the language you'd switch TO */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.5);
  border-radius: 999px;
  color: var(--sea-mist);
  font-family: var(--font);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}
.lang-toggle:hover {
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.85);
}
.lang-flag { display: inline-flex; align-items: center; }
/* both flags live in the DOM; the current html[lang] decides which shows,
   so the swap needs no JS and holds under no-JS (default lang="en"). */
.lang-toggle .flag {
  display: none;
  height: 0.95rem;
  width: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}
html[lang="en"] .lang-toggle .flag-fr { display: block; } /* offer French */
html[lang="fr"] .lang-toggle .flag-en { display: block; } /* offer English */

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Long IA labels ("What you can practice", "Request Early Access") need a wide
   row; below the container's full width they can't fit on one line, so collapse
   to the hamburger menu here rather than wrap. */
@media (max-width: 1151px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(17, 27, 45, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    padding: 0.75rem var(--pad-x) 1.25rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding-block: 0.55rem; }
  .nav-links .btn { justify-content: center; width: 100%; }
  .nav-toggle { display: block; }
}

/* ================================================================ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  line-height: 1.2;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }

/* the one beacon — navy ink on mustard, never white */
.btn-beacon {
  background: var(--mustard);
  color: var(--ink-navy);
  box-shadow: 0 6px 22px rgba(234, 179, 8, 0.28);
}
.btn-beacon:hover {
  background: #f0bb1a;
  box-shadow: 0 10px 30px rgba(234, 179, 8, 0.38);
  transform: translateY(-1px);
}

.btn-quiet {
  background: transparent;
  color: var(--sea-mist);
  box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.35);
}
.btn-quiet:hover {
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.65);
}

/* on light surfaces */
.on-light .btn-quiet {
  color: var(--ink-navy);
  box-shadow: inset 0 0 0 1px rgba(0, 32, 96, 0.35);
}
.on-light .btn-quiet:hover { box-shadow: inset 0 0 0 1px rgba(0, 32, 96, 0.65); }

/* ============================================================ beacon rail */
.beacon-rail {
  position: fixed;
  right: clamp(0.6rem, 1.5vw, 1.4rem);
  top: 50%;
  transform: translateY(-50%);
  height: min(46vh, 420px);
  width: 2px;
  background: rgba(79, 129, 189, 0.32); /* charter steel-blue (--steel) — decorative rail highlight */
  border-radius: 1px;
  z-index: var(--z-rail);
  pointer-events: none;
}
.beacon-rail .dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--beacon);
  box-shadow: 0 0 10px 2px rgba(249, 242, 103, 0.65);
  transform: translate(-50%, -50%);
}
@media (max-width: 860px) { .beacon-rail { display: none; } }

/* ==================================================================== hero */
.hero {
  position: relative;
  /* runway is motion-gated: without GSAP/with reduced motion the hero is a
     single viewport, never a dead scroll */
  min-height: 100vh;
  min-height: 100svh;
  background: var(--near-black);
}
html.motion-on .hero {
  height: 165vh; /* scroll runway — the sticky stage plays inside it */
}
.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* WebGL mount + static poster fallback underneath */
#ocean-stage {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 78% 76%, rgba(244, 215, 161, 0.14) 0%, transparent 46%),
    linear-gradient(180deg, #1a1d3e 0%, #16233f 38%, #0b1a2a 62%, #06101f 100%);
}
#ocean-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s ease;
}
#ocean-stage.is-live canvas { opacity: 1; }

/* soft scrim so copy stays ≥4.5:1 over the brightest water glint */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 16, 31, 0.6) 0%, rgba(6, 16, 31, 0.32) 34%, rgba(6, 16, 31, 0.28) 60%, rgba(6, 16, 31, 0.55) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 3rem;
  pointer-events: none; /* let ripple taps reach the water… */
}
.hero-content a,
.hero-content button { pointer-events: auto; } /* …but keep controls usable */

/* soft shadow keeps hero copy readable over the brightest water glitter */
.hero-content p,
.hero-content h1 {
  text-shadow: 0 1px 22px rgba(6, 16, 31, 0.85), 0 0 3px rgba(6, 16, 31, 0.6);
}

.hero-kicker {
  color: var(--pale-yellow);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  margin-bottom: 1.1rem;
  max-width: 34ch;
}
.hero h1 {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 17ch;
  margin-bottom: 1.4rem;
}
.hero h1 .beacon-word {
  color: var(--beacon);
  white-space: nowrap;
}
.hero .hero-sub {
  color: var(--sea-mist);
  max-width: 52ch;
  margin-bottom: 2.2rem;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.hero-voice {
  margin-top: 2.4rem;
  max-width: 46ch;
}
.hero-voice blockquote {
  color: var(--sea-mist);
  font-size: var(--fs-body-sm);
  line-height: 1.6;
}
.hero-voice figcaption {
  margin-top: 0.35rem;
  color: var(--slate-tertiary);
  font-size: var(--fs-caption);
}

.hero-support {
  margin-top: 1.6rem;
  color: var(--slate-tertiary);
  font-size: var(--fs-caption);
  letter-spacing: 0.02em;
}

.hero-hint {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: var(--slate-tertiary);
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  pointer-events: none;
}
.hero-hint svg { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .hero-hint svg { animation: hint-bob 2.6s ease-in-out infinite; }
  @keyframes hint-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
  }
}

/* ================================================================ chapters */
.chapter { position: relative; }

/* torn seam between dark and light worlds */
.tear {
  display: block;
  width: 100%;
  height: clamp(42px, 7vw, 96px);
  margin-bottom: -1px;
}

/* ------------------------------------------------------------- the swell */
.swell {
  background: var(--paper);
  color: var(--ink-navy);
  padding-bottom: clamp(2rem, 6vw, 5rem);
}
.swell .swell-copy {
  max-width: 56ch;
  padding-top: clamp(2.5rem, 7vw, 6rem);
}
.swell h2 {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 1.2rem;
  max-width: 22ch;
}
.swell p {
  color: var(--ink-navy);
  margin-bottom: 1rem;
  max-width: 58ch;
}
.swell p strong { color: var(--ink-navy); }
.swell-art {
  margin-top: clamp(1rem, 4vw, 2.5rem);
}
.swell-art img,
.swell-art video {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  border-radius: var(--radius-hero);
}
.swell-art figcaption {
  text-align: center;
  color: var(--ink-navy-soft);
  font-size: var(--fs-caption);
  margin-top: 0.6rem;
}

/* ------------------------------------------------ "why it matters" flip card
   Base state (no JS / reduced motion): the two faces are plain, stacked,
   fully-readable copy — nothing hidden. The .is-enhanced class (added by JS
   only when motion is welcome) turns it into a 3D flip. */
.flip-card {
  margin-top: 1rem;
  max-width: 56ch;
}
.flip-card .flip-claim {
  display: block;
  color: var(--ink-navy);
  font-weight: 700;
}
.flip-card .flip-back p { color: var(--ink-navy); max-width: 58ch; }
.flip-card:not(.is-enhanced) .flip-claim { margin-bottom: 0.6rem; }
.flip-card:not(.is-enhanced) .flip-hint { display: none; }

.flip-card.is-enhanced {
  perspective: 1200px;
  cursor: pointer;
  border-radius: var(--radius-card);
}
.flip-card.is-enhanced .flip-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out);
}
.flip-card.is-enhanced .flip-face {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-card);
  background: rgba(0, 32, 96, 0.05);
  border: 1px solid rgba(0, 32, 96, 0.12);
  padding: clamp(1.1rem, 3vw, 1.5rem);
}
.flip-card.is-enhanced .flip-front {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: rotateY(0deg);
}
/* the back face is in flow, so the card is always sized to the taller face */
.flip-card.is-enhanced .flip-back {
  position: relative;
  transform: rotateY(180deg);
}
.flip-card.is-enhanced:hover .flip-inner,
.flip-card.is-enhanced.is-flipped .flip-inner {
  transform: rotateY(180deg);
}
.flip-card.is-enhanced .flip-hint {
  display: inline-flex;
  align-items: center;
  margin-top: 0.75rem;
  color: var(--ink-navy-soft);
}
/* ring on the (non-rotating) card box so it does not flip with the faces */
.flip-card.is-enhanced:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ink-navy);
  border-radius: var(--radius-card);
}

@media (prefers-reduced-motion: reduce) {
  /* belt-and-braces: even if enhanced, never rotate — keep both faces stacked */
  .flip-card .flip-inner { transform: none !important; }
  .flip-card .flip-front { position: static; transform: none; }
  .flip-card .flip-back { position: static; transform: none; }
  .flip-card .flip-face { -webkit-backface-visibility: visible; backface-visibility: visible; }
  .flip-card .flip-hint { display: none; }
}

/* ---------------------------------------------------------- how it works */
.crossing {
  background: var(--paper);
  color: var(--ink-navy);
  padding-block: clamp(3rem, 8vw, 6rem);
}
.crossing-head {
  max-width: 60ch;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}
.crossing-head h2 {
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 1.1rem;
  max-width: 24ch;
}
.crossing-lead {
  color: var(--ink-navy);
  font-size: var(--fs-body);
  max-width: 60ch;
}

/* Full-width vertical 4-step stack. This IS the default and only layout:
   no JS, no GSAP, reduced motion, and narrow screens all render this same
   clean readable column — nothing to gate, nothing to pin. */
.steps {
  list-style: none;
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 60rem;
}
.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(1rem, 3vw, 1.75rem);
  align-items: start;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--ink-navy);
  color: #ffffff;
  font-weight: 700;
  font-size: var(--fs-body);
}
.step-body { min-width: 0; }
.step-icon {
  display: inline-flex;
  color: var(--ink-navy);
  margin-bottom: 0.55rem;
}
.step-icon svg { width: 28px; height: 28px; display: block; }
.step h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 0.4rem;
  max-width: 26ch;
}
.step p {
  color: var(--ink-navy);
  max-width: 58ch;
}

.crossing-transparency {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 1px solid rgba(0, 32, 96, 0.12);
  max-width: 74ch;
  color: var(--ink-navy-soft);
  font-size: var(--fs-body-sm);
  line-height: 1.6;
}

.media-frame { position: relative; }
.media-frame--wide { width: 100%; max-width: 1500px; margin-inline: auto; }
.media-frame--wide video { aspect-ratio: 16 / 9; object-fit: cover; }

/* WCAG 2.2.2 — looping media gets a real pause control */
.media-toggle {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 27, 45, 0.72);
  color: #ffffff;
  cursor: pointer;
}
.media-toggle:hover { background: rgba(17, 27, 45, 0.9); }
.media-toggle .icon-pause { display: block; }
.media-toggle .icon-play { display: none; }
.media-toggle[aria-pressed="true"] .icon-pause { display: none; }
.media-toggle[aria-pressed="true"] .icon-play { display: block; }

/* mini receipt card used in leg 2 */
.receipt-mini {
  width: min(100%, 560px);
  margin-inline: auto;
  background: var(--navy-deep);
  color: #ffffff;
  border-radius: var(--radius-hero);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 18px 48px rgba(12, 30, 61, 0.35);
}
.receipt-mini .quote {
  font-size: var(--fs-body);
  line-height: 1.65;
}
.receipt-mini .quote mark {
  background: transparent;
  color: inherit;
  border-bottom: 2px solid var(--hue-clear);
  padding-bottom: 1px;
}
.receipt-mini .quote mark.m-rel { border-color: var(--hue-relationship); }
.receipt-mini .quote mark.m-conf { border-color: var(--hue-confidence); }
.receipt-mini .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-caption);
  font-weight: 600;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  color: #ffffff;
}
.chip::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.chip.c-clear { color: #93c5fd; box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.55); }
.chip.c-rel   { color: #d8b4fe; box-shadow: inset 0 0 0 1px rgba(147, 51, 234, 0.55); }
.chip.c-conf  { color: #7dd3c8; box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.55); }


/* ------------------------------------------------------------ the mirror */
.mirror {
  background: linear-gradient(180deg, var(--indigo-dusk) 0%, var(--navy-deep) 55%, var(--near-black) 100%);
  color: #ffffff;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.mirror-head { max-width: 56ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.mirror-head h2 {
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 24ch;
}
.mirror-head p { color: var(--sea-mist); max-width: 58ch; }
.mirror-diff { margin-top: 0.9rem; }

.mirror-stage {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.transcript {
  background: rgba(40, 63, 95, 0.55);
  border: 1px solid rgba(203, 213, 225, 0.12);
  border-radius: var(--radius-hero);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.transcript .t-meta {
  color: var(--slate-tertiary);
  font-size: var(--fs-caption);
  margin-bottom: 1.2rem;
}
.turn { margin-bottom: 1.2rem; }
.turn .who {
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--slate-tertiary);
  margin-bottom: 0.3rem;
}
.turn .bubble {
  border-radius: 0.9rem;
  padding: 0.85rem 1.05rem;
  font-size: var(--fs-body);
  line-height: 1.65;
  width: fit-content;
  max-width: 60ch;
}
.turn.them .bubble {
  background: rgba(203, 213, 225, 0.10);
  color: var(--sea-mist);
}
.turn.you .bubble {
  background: rgba(59, 130, 246, 0.14);
  color: #ffffff;
}
.turn .bubble mark {
  background: transparent;
  color: inherit;
  border-bottom: 2px solid var(--hue-clear);
  padding-bottom: 1px;
}
.turn .bubble mark.m-rel  { border-color: var(--hue-relationship); }
.turn .bubble mark.m-conf { border-color: var(--hue-confidence); }

.mirror-findings { display: flex; flex-direction: column; gap: 0.9rem; }
.finding {
  background: rgba(40, 63, 95, 0.55);
  border: 1px solid rgba(203, 213, 225, 0.12);
  border-radius: var(--radius-card);
  padding: 1rem 1.15rem;
}
.finding .f-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}
.finding .f-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.finding[data-hue="clear"] .f-dot { background: var(--hue-clear); }
.finding[data-hue="rel"]   .f-dot { background: var(--hue-relationship); }
.finding[data-hue="conf"]  .f-dot { background: var(--hue-confidence); }
.finding .f-name { font-weight: 600; font-size: var(--fs-body-sm); }
.finding .f-evidence {
  color: var(--sea-mist);
  font-size: var(--fs-body-sm);
}
.finding .f-evidence .t-ref { color: var(--slate-tertiary); }

.mirror-note {
  margin-top: 1.4rem;
  color: var(--slate-tertiary);
  font-size: var(--fs-caption);
  max-width: 52ch;
}

/* Real app screenshots (session report + progress tracker), each in a desktop
   "app window" frame, stacked full-width so the wide shots stay readable. */
.mirror-shots {
  margin-top: clamp(2.25rem, 5vw, 3.75rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3.25rem);
}
.mirror-shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.mirror-shot-cap {
  margin-top: 1.1rem;
  color: var(--slate-tertiary);
  font-size: var(--fs-body-sm);
  max-width: 52ch;
}

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

/* Desktop "app window" frame — wraps a real, wide app screenshot. Neutral
   chrome, no traffic-light kitsch: the dots are muted so the beacon stays the
   only loud colour. */
.app-window {
  width: min(940px, 100%);
  border-radius: var(--radius-hero);
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.16);
  box-shadow: 0 34px 70px -24px rgba(0, 0, 0, 0.55);
}
.app-window-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.2rem;
  padding-inline: 0.9rem;
  background: var(--navy-raised);
}
.app-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(203, 213, 225, 0.34);
}
.app-window img { display: block; width: 100%; height: auto; }

/* --------------------------------------------------------- ports of call */
.ports {
  background: var(--paper);
  color: var(--ink-navy);
  padding-block: clamp(3rem, 8vw, 6rem);
}
.ports-head { max-width: 56ch; margin-bottom: clamp(2rem, 5vw, 3rem); }
.ports-head h2 {
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 22ch;
}
.ports-head p { color: var(--ink-navy); max-width: 58ch; }

.ports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}
.port {
  text-align: left;
}
.port img {
  width: 100%;
  aspect-ratio: 11 / 10;
  object-fit: contain;
  transition: transform 0.45s var(--ease-out);
}
.port:hover img { transform: translateY(-6px); }
.port h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-top: 0.4rem;
}
.port p {
  color: var(--ink-navy);
  font-size: var(--fs-body-sm);
  max-width: 34ch;
}
.ports-foot {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--ink-navy-soft);
  font-size: var(--fs-body-sm);
  max-width: 62ch;
}

/* --------------------------------------------------------------- voices */
.voices {
  background: var(--near-black);
  color: #ffffff;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.voices[hidden] { display: none; }
.voices h2 {
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 22ch;
}
.voices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.voice {
  background: rgba(40, 63, 95, 0.55);
  border: 1px solid rgba(203, 213, 225, 0.12);
  border-radius: var(--radius-card);
  padding: 1.4rem 1.5rem;
}
.voice blockquote {
  font-size: var(--fs-body);
  line-height: 1.65;
  margin-bottom: 0.9rem;
}
.voice figcaption {
  color: var(--slate-tertiary);
  font-size: var(--fs-body-sm);
}

/* Passive testimonial ribbon (Phase 5). Hidden by default so the static grid
   is the reduced-motion / no-JS fallback; only under prefers-reduced-motion:
   no-preference does the marquee take over. This is decorative horizontal
   MOTION of content, never navigation — the page still scrolls vertically. */
.voices-ribbon {
  display: none;
  overflow: hidden;
  margin-bottom: 0.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.voices-track {
  display: flex;
  align-items: stretch;
  width: max-content;
}
/* each card owns its trailing gap, so translateX(-50%) is a seamless loop
   regardless of how many voices there are */
.voices-track .voice {
  flex: 0 0 auto;
  width: min(340px, 78vw);
  margin-right: 1.5rem;
}
/* keyboard-operable pause control for the ribbon (WCAG 2.2.2) — shown only
   when the marquee actually animates (see the no-preference block below) */
.voices-controls {
  display: none;
  justify-content: center;
  margin-top: 0.6rem;
}
.voices-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: var(--pale-yellow);
  cursor: pointer;
}
.voices-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--pale-yellow);
}
.voices-toggle .icon-play { display: none; }
.voices-toggle[aria-pressed="true"] .icon-pause { display: none; }
.voices-toggle[aria-pressed="true"] .icon-play { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .voices-ribbon { display: block; }
  .voices-grid { display: none; }
  .voices-controls { display: flex; }
  .voices-track {
    animation: voices-marquee 48s linear infinite;
    will-change: transform;
  }
  .voices-ribbon:hover .voices-track,
  .voices-ribbon:focus-within .voices-track,
  .voices-track.is-paused { animation-play-state: paused; }
}
@keyframes voices-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.research-strip {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--slate-tertiary);
  font-size: var(--fs-body-sm);
}
.research-strip ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 0.6rem;
}
.research-strip a { color: var(--sea-mist); }

/* ----------------------------------------------------------------- team */
.team {
  background: var(--near-black);
  color: #ffffff;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.team h2 {
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.8rem;
  max-width: 22ch;
}
.team .team-sub { color: var(--sea-mist); margin-bottom: clamp(1.75rem, 4vw, 2.75rem); max-width: 58ch; }
/* Two centred rows (founders, then the wider team). Cards stack vertically so
   that within a row the photos share one line, the roles share one, and the
   LinkedIn links share one:
     · `align-items: stretch` gives every card in a row the same height;
     · the min-heights below hold the rhythm when one name or role wraps to a
       second line and its neighbours do not;
     · `margin-top: auto` on the link drops it to the card foot, so the links
       stay level even when the bios above them differ in length. */
.team-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 2.75rem);
}
.team-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
.member {
  flex: 0 1 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.member img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.85rem;
}
.member h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  min-height: 2.6em; /* two lines — "Marie-Liesse Le Corfec" wraps, "Dr Samy Rima" doesn't */
}
.member .role {
  color: var(--sea-mist);
  font-size: var(--fs-body-sm);
  margin-bottom: 0.35rem;
  min-height: 3.1em; /* two lines at the body-sm line-height */
}
.member .bio { color: var(--slate-tertiary); font-size: var(--fs-body-sm); margin-bottom: 0.4rem; }
.member a {
  color: var(--sea-mist);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  margin-top: auto;
  padding-top: 0.35rem;
}
/* contributors · advisers · credits · contact */
.team-extra {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: clamp(1.5rem, 4vw, 2.25rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 72ch;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.team-extra p {
  color: var(--slate-tertiary);
  font-size: var(--fs-body-sm);
  line-height: 1.55;
}
.team-extra .team-extra-label {
  margin-top: 0.8rem;
  color: var(--pale-yellow);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.team-contact a { color: var(--pale-yellow); font-weight: 500; }

/* --------------------------------------------------------------- arrival */
.arrival {
  position: relative;
  /* dawn-cream easing into the illustration's own white sky */
  background: linear-gradient(180deg, var(--dawn-cream) 0%, #f2e2cb 38%, #fdf8ef 70%, #ffffff 100%);
  color: var(--ink-navy);
  overflow: hidden;
}
.arrival .arrival-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(3.5rem, 9vw, 7rem) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.arrival h2 {
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  max-width: 22ch;
  margin-bottom: 1rem;
}
.arrival p {
  color: var(--ink-navy);
  max-width: 52ch;
  margin-bottom: 2rem;
}
.arrival .arrival-art {
  width: 100%;
  margin-top: clamp(1.5rem, 4vw, 3rem);
}
.arrival .arrival-art img,
.arrival .arrival-art video {
  width: 100%;
  max-width: 1500px;
  margin-inline: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 20%);
}

/* --------------------------------------------------------- alpha journey */
.alpha-page { background: var(--near-black); color: #ffffff; }
.alpha-hero {
  background: linear-gradient(180deg, var(--indigo-dusk) 0%, var(--near-black) 100%);
  padding-block: clamp(6rem, 14vh, 9rem) clamp(2.5rem, 6vw, 4rem);
}
.alpha-hero h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  max-width: 24ch;
  margin-bottom: 1rem;
}
.alpha-intro { color: var(--sea-mist); max-width: 58ch; }

.alpha-steps-wrap { padding-block: clamp(2rem, 5vw, 3.5rem); }
.alpha-steps-wrap h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}
.alpha-steps {
  list-style: none;
  counter-reset: alpha-step;
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  max-width: 46rem;
  position: relative;
  --route-progress: 0;
}

/* the route being traced — a dotted line along the channel markers.
   Decorative and motion-gated: it only exists when the scroll theatre runs.
   Vertical variant (mobile / stacked list): */
html.motion-on .alpha-steps::before,
html.motion-on .alpha-steps::after {
  content: '';
  position: absolute;
  left: calc(1.2rem - 1px);
  top: 1.4rem;
  width: 2px;
  pointer-events: none;
}
html.motion-on .alpha-steps::before {
  bottom: 2.2rem;
  background: repeating-linear-gradient(
    180deg,
    rgba(203, 213, 225, 0.28) 0 6px,
    transparent 6px 14px
  );
}
html.motion-on .alpha-steps::after {
  height: calc(var(--route-progress) * (100% - 3.6rem));
  background: repeating-linear-gradient(
    180deg,
    rgba(249, 242, 103, 0.85) 0 6px,
    transparent 6px 14px
  );
}

.alpha-steps li {
  counter-increment: alpha-step;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  column-gap: 1rem;
  row-gap: 0.3rem;
  align-items: start;
}
.alpha-steps li::before { grid-column: 1; grid-row: 1 / span 2; }
.alpha-steps h3, .alpha-steps p { grid-column: 2; }
.alpha-steps li::before {
  content: counter(alpha-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--navy-raised);
  box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.25);
  color: var(--beacon);
  font-weight: 700;
  position: relative; /* stays above the route line */
  z-index: 1;
  transition: background-color 0.45s ease, color 0.45s ease, box-shadow 0.45s ease;
}
/* the route reaches a marker → the beacon lights it */
.alpha-steps li.is-lit::before {
  background: var(--beacon);
  color: var(--ink-navy);
  box-shadow: 0 0 16px rgba(249, 242, 103, 0.4);
}
@media (prefers-reduced-motion: reduce) {
  .alpha-steps li::before { transition: none; }
}

/* one soft pulse when the final CTA arrives — the harbour light saying "here" */
@keyframes beacon-pulse {
  0%   { box-shadow: 0 6px 22px rgba(234, 179, 8, 0.28); }
  45%  { box-shadow: 0 6px 34px rgba(234, 179, 8, 0.6), 0 0 44px rgba(249, 242, 103, 0.35); }
  100% { box-shadow: 0 6px 22px rgba(234, 179, 8, 0.28); }
}
.btn-beacon.glow-once { animation: beacon-pulse 1.4s ease-out 1; }
@media (prefers-reduced-motion: reduce) {
  .btn-beacon.glow-once { animation: none; }
}
.alpha-steps h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}
.alpha-steps p { color: var(--sea-mist); max-width: 56ch; }

.alpha-facts { padding-block: clamp(1rem, 3vw, 2rem); }
.alpha-facts h2 {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.alpha-facts ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  max-width: 52rem;
}
.alpha-facts li {
  background: rgba(40, 63, 95, 0.55);
  border: 1px solid rgba(203, 213, 225, 0.14);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: var(--fs-body-sm);
  color: var(--sea-mist);
}

.alpha-cta {
  padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(3.5rem, 8vw, 5.5rem);
}
.alpha-cta h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.alpha-cta > .container > p { color: var(--sea-mist); margin-bottom: 1.6rem; max-width: 52ch; }
.alpha-wait {
  margin-top: 1.6rem;
  color: var(--slate-tertiary);
  font-size: var(--fs-body-sm);
}
.alpha-wait .link-btn { color: var(--sea-mist); margin-left: 0.4rem; }

/* ---------------------------------------------------------------- footer */
.site-footer {
  background: var(--near-black);
  color: var(--slate-tertiary);
  padding-block: 2.2rem;
  font-size: var(--fs-body-sm);
}
.site-footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.site-footer .footer-brand img { height: 26px; width: auto; }
.site-footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
}
.site-footer a { color: var(--sea-mist); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ----------------------------------------------------------------- modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-backdrop);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(17, 27, 45, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal-overlay.active { display: flex; }
.modal {
  position: relative;
  z-index: var(--z-modal);
  width: min(30rem, 100%);
  background: var(--navy-deep);
  color: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.14);
  border-radius: var(--radius-hero);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}
.modal h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.modal .modal-sub {
  color: var(--sea-mist);
  font-size: var(--fs-body-sm);
  margin-bottom: 1.4rem;
}
.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.95rem;
  background: none;
  border: 0;
  color: var(--slate-tertiary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.4rem;
}
.modal-close:hover { color: #ffffff; }
.form-label {
  display: block;
  font-size: var(--fs-body-sm);
  font-weight: 500;
  margin-bottom: 0.45rem;
}
.form-input {
  width: 100%;
  font-family: var(--font);
  font-size: var(--fs-body);
  color: #ffffff;
  background: rgba(40, 63, 95, 0.7);
  border: 1px solid rgba(203, 213, 225, 0.25);
  border-radius: 0.6rem;
  padding: 0.8rem 1rem;
  margin-bottom: 1.1rem;
}
.form-input::placeholder { color: var(--slate-tertiary); }
.form-input:focus {
  outline: 2px solid var(--beacon);
  outline-offset: 1px;
  border-color: transparent;
}
.form-message { margin-top: 1rem; font-size: var(--fs-body-sm); }
.form-message .success { color: var(--signal-green); }
.form-message .error { color: #fca5a5; }

/* ---------------------------------------------------- scroll reveal prep */
/* Content is fully visible by default. When JS + motion are available the
   page gets .motion-on and GSAP animates FROM these offsets — never gating
   visibility on a class that might not arrive. */
@media (prefers-reduced-motion: reduce) {
  #ocean-stage canvas { display: none; }
  .port:hover img { transform: none; }
}
