/* ============================================================
   021Shift Design System — styles.css
   Single source of truth for all styling. Mirrors docs/design_system.md v1.1.
   ============================================================ */

/* ── 1. Design Tokens ───────────────────────────────────── */
:root {
  --color-navy:        #0F172A;
  --color-surface:     #1E293B;
  --color-blue:        #3B82F6;
  --color-blue-hover:  #60A5FA;
  --color-pink:        #EC4899;
  --color-white:       #FFFFFF;
  --color-border:      rgba(255, 255, 255, 0.08);

  --color-text-primary: #FFFFFF;
  --color-text-body:    #CBD5E1;
  --color-text-muted:   #94A3B8;

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2rem;
  --space-xl:   3rem;
  --space-2xl:  4rem;
  --space-3xl:  6rem;
  --space-4xl:  8rem;

  --max-width:       1200px;
  --container-pad:   2rem;
  --section-pad:     var(--space-4xl) 0;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;

  --duration-fast:    0.2s;
  --duration-base:    0.25s;
  --duration-slow:    0.3s;
  --ease-default:     ease;
  --ease-in-out:      ease-in-out;

  /* Back-compat aliases */
  --color-grey-dark:  var(--color-surface);
  --color-grey-light: var(--color-text-muted);
  --color-link:       var(--color-blue-hover);
  --section-padding:  var(--section-pad);
}

/* ── 2. Reset & Base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background-color: var(--color-navy);
  color: var(--color-text-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

section { padding: var(--section-pad); }

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

a {
  color: var(--color-blue-hover);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}
a:hover {
  color: var(--color-white);
  text-decoration: underline;   /* a11y: affordance must not rely on color alone */
}
a:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
  :root { --container-pad: 1.25rem; }
  section { padding: var(--space-3xl) 0; }
}

/* ── 3. Typography ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}
h1 { font-size: var(--text-5xl); font-weight: 800; }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { color: var(--color-text-body); line-height: 1.7; }
p + p { margin-top: var(--space-md); }

.label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-pink);
  margin-bottom: var(--space-xs);
}

.link-arrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-blue-hover);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}
.link-arrow:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.citation {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: var(--space-sm);
}

@media (max-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-xl); }
}
@media (max-width: 480px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
}

/* ── 4. Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--duration-fast) var(--ease-default),
    color var(--duration-fast) var(--ease-default),
    border-color var(--duration-fast) var(--ease-default);
  white-space: nowrap;
}
.btn-primary {
  background-color: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}
.btn-primary:hover {
  background-color: transparent;
  color: var(--color-blue-hover);
  border-color: var(--color-blue-hover);
  text-decoration: none;
}
.btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-white);
  text-decoration: none;
}
.btn-nav { padding: 0.5rem 1.25rem; font-size: 0.75rem; }
.btn-placeholder { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 3px; }

/* ── 5. Navigation ──────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-navy);
  transition: background-color var(--duration-slow) var(--ease-default),
              backdrop-filter var(--duration-slow) var(--ease-default);
}
.nav--scrolled {
  background-color: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav__inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
/* Logo stays left; links + CTA cluster together on the right */
.nav__links { margin-left: auto; }
.nav__cta { margin-left: var(--space-lg); }
.nav__logo img { height: 36px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: var(--space-xl); list-style: none; }
.nav__link {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}
/* Animated underline: persistent under the active page, slides in on hover/focus */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-fast) var(--ease-default);
}
.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link--active::after { transform: scaleX(1); }
.nav__link:hover, .nav__link:focus-visible, .nav__link--active { color: var(--color-white); text-decoration: none; }
.nav__hamburger {
  display: none;
  margin-left: auto;   /* keep it pinned right on mobile */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-white);
  font-size: 24px;
}
.nav__mobile {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 72px; left: 0; right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
}
.nav__mobile.is-open { display: flex; }
.nav__mobile-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-sm) var(--container-pad);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--duration-fast) var(--ease-default);
}
.nav__mobile-link:hover { color: var(--color-white); }
.nav__mobile-cta { margin: var(--space-sm) var(--container-pad); text-align: center; }

@media (max-width: 768px) {
  .nav { height: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile { top: 64px; }
}

/* Offset fixed nav so content/anchors aren't hidden underneath it */
main { padding-top: 72px; }
[id] { scroll-margin-top: 88px; }
@media (max-width: 768px) { main { padding-top: 64px; } }

/* Tighten the gap between the fixed nav and the first section's content */
main > section:first-child { padding-top: var(--space-sm); }

/* Logo is a JPEG on a black background (no real transparency yet).
   'lighten' blends the black into the dark page background while keeping the
   white wordmark and the blue/pink colon dots. Works on navy and surface. */
.site-logo { mix-blend-mode: lighten; }

/* ── 6. Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}
.hero__content { position: relative; z-index: 1; max-width: 840px; padding: var(--space-xl) 0 var(--space-3xl); }
.hero__headline {
  font-size: var(--text-6xl);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
}
.hero__headline span { color: var(--color-text-muted); }
.hero__sub {
  font-size: var(--text-lg);
  color: var(--color-text-body);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: var(--space-xl);
}
/* Method-page lede: full container width + more space below the heading */
.hero__sub--full { max-width: none; margin-bottom: 0; margin-top: var(--space-md); }
.hero__sub--full:first-of-type { margin-top: var(--space-xl); }
.hero__ctas { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-3xl); }


@media (max-width: 768px) {
  .hero__headline { font-size: var(--text-4xl); }
  .hero__sub { font-size: var(--text-base); }
  .hero__ctas { flex-direction: column; align-items: flex-start; }
}

/* ── 7. Case Study Card ─────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-blue);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-base) var(--ease-default),
              box-shadow var(--duration-base) var(--ease-default);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; box-shadow: none; } }
.card__label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}
.card__client {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}
.card__result {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}
.card__body { font-size: var(--text-base); color: var(--color-text-body); line-height: 1.7; margin-bottom: var(--space-md); flex: 1; }

.quote-block { border-left: 3px solid var(--color-pink); padding-left: var(--space-md); margin: var(--space-md) 0; }
.quote-block__text { font-style: italic; font-size: var(--text-base); color: var(--color-text-primary); line-height: 1.65; margin-bottom: 0.375rem; }
.quote-block__attr { font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); }
.card__link { margin-top: var(--space-md); }

.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
@media (max-width: 768px) { .cards-grid { grid-template-columns: 1fr; } }

/* ── 8. NOJA Callout ────────────────────────────────────── */
.noja-box {
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-left: 4px solid var(--color-blue);
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.05);
  padding: var(--space-xl);
}
.noja-box__label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-pink);
  margin-bottom: var(--space-sm);
  display: inline-block;
}
.noja-box__body { color: var(--color-text-body); font-size: var(--text-base); line-height: 1.7; margin-bottom: var(--space-lg); }
.noja-box__body:last-child { margin-bottom: 0; }   /* no trailing gap when there are no questions */
.noja-questions { display: flex; gap: var(--space-xl); flex-wrap: wrap; }
.noja-question {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue-hover);
}
@media (max-width: 600px) { .noja-questions { flex-direction: column; gap: var(--space-sm); } }

/* NOJA framework section (Method page) */
.noja-list { list-style: none; margin-top: var(--space-md); display: flex; flex-direction: column; gap: var(--space-sm); }
.noja-list li { position: relative; padding-left: var(--space-lg); color: var(--color-text-body); line-height: 1.6; }
.noja-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 14px; height: 2px; background: var(--color-blue); }
.noja-list--terms li { font-family: var(--font-heading); font-weight: 700; color: var(--color-text-primary); }
.noja-list--q li { color: var(--color-blue-hover); }

/* "A Judgment Node" — the three-questions block */
.noja-node { border-left: 4px solid var(--color-blue); padding-left: var(--space-lg); }
.noja-node__title { font-size: var(--text-xl); color: var(--color-text-primary); margin-bottom: var(--space-sm); }

/* ── 9. Engagement Phases ───────────────────────────────── */
.phases { display: flex; flex-direction: column; gap: var(--space-xl); }
.phase { display: flex; gap: var(--space-md); align-items: flex-start; }
.phase__number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-6xl);
  color: var(--color-blue);
  line-height: 1;
  flex-shrink: 0;
  min-width: 72px;
}
.phase__content { flex: 1; }
.phase__title { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-xl); color: var(--color-text-primary); margin-bottom: 0.375rem; }
.phase__desc { font-size: var(--text-base); color: var(--color-text-body); line-height: 1.7; }
@media (max-width: 480px) { .phase__number { font-size: var(--text-4xl); min-width: 56px; } }

/* ── 10. "Who This Is For" list ─────────────────────────── */
.criteria-list { display: flex; flex-direction: column; gap: 0.75rem; margin: var(--space-md) 0; }
.criteria-item {
  position: relative;
  padding-left: 1.6rem;
  font-size: var(--text-base);
  color: var(--color-text-body);
  line-height: 1.6;
}
.criteria-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-blue);
}
.roles-line {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-top: var(--space-md);
}

/* ── 10b. "Who This Is For" pinned editorial reveal ─────── */
/* The section pins to the viewport and reveals each point as you scroll.
   Progressive enhancement: a normal static list by default; main.js adds
   .pin-on only when JS is present, motion is allowed, and the viewport is wide. */
.leaders-section { position: relative; padding: 0; }
.leaders-stage { display: flex; align-items: center; min-height: 70vh; padding: var(--space-3xl) 0; }
.leaders-stage .container { width: 100%; }

.leaders-section.pin-on { height: 460vh; }
.leaders-section.pin-on .leaders-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; padding: 0; }

.leaders-head { margin-bottom: var(--space-2xl); }
.leaders-head .label { margin-bottom: var(--space-sm); }

/* Points: hidden + offset only while pinned; main.js toggles .is-revealed by scroll progress. */
.pin-on .leaders-item {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity 0.55s var(--ease-default), transform 0.55s var(--ease-default);
}
.pin-on .leaders-item.is-revealed { opacity: 1; transform: none; }

/* Headline: fades in as the section scrolls into view (generic [data-animate] enter-
   observer), independent of the pin — so it doesn't wait for the section to lock.
   The eyebrow label stays visible throughout. */
.leaders-head.anim h2 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease-default), transform 0.55s var(--ease-default);
}
.leaders-head.anim.is-visible h2 { opacity: 1; transform: none; }

/* Editorial column */
.leaders-items { display: flex; flex-direction: column; gap: var(--space-md); max-width: 840px; }
.leaders-item { display: flex; gap: var(--space-md); align-items: baseline; padding-bottom: var(--space-md); border-bottom: 1px solid var(--color-border); }
.leaders-item:last-child { border-bottom: 0; }
.leaders-item__num { font-family: var(--font-heading); font-weight: 800; font-size: var(--text-lg); color: var(--color-blue); min-width: 2.2rem; flex-shrink: 0; }
.leaders-item__text { font-family: var(--font-heading); font-weight: 600; font-size: var(--text-xl); color: var(--color-text-primary); line-height: 1.35; letter-spacing: -0.01em; }

/* Scroll-progress bar + hint (shown only while pinned) */
.leaders-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.08); }
.leaders-progress__fill { height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--color-blue), var(--color-pink)); }
.leaders-hint { position: absolute; bottom: var(--space-lg); left: 50%; transform: translateX(-50%); font-family: var(--font-heading); font-weight: 700; font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); opacity: calc(1 - var(--p, 0) * 5); pointer-events: none; }
.leaders-section:not(.pin-on) .leaders-progress,
.leaders-section:not(.pin-on) .leaders-hint { display: none; }

/* Short viewports: tighten so all six points fit inside the pinned 100vh. */
@media (min-width: 769px) and (max-height: 760px) {
  .leaders-head { margin-bottom: var(--space-lg); }
  .leaders-items { gap: var(--space-sm); }
  .leaders-item__text { font-size: var(--text-lg); }
}
@media (max-width: 768px) {
  .leaders-stage { min-height: auto; }
  .leaders-item__text { font-size: var(--text-lg); }
}

/* ── 11d. Inside-out method cascade ─────────────────────── */
/* Contained "Our Method" card — recessed navy panel with a blue top-accent
   (same motif as the third-path "win" card) to separate it from the cards above.
   Navy fill, not a blue tint: the inner "pull" card is already blue-tinted. */
.method-cascade {
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-navy);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-blue);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}
.method-cascade > .label { margin-bottom: var(--space-lg); }

/* Push vs pull contrast cards */
.method-contrast { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin-bottom: var(--space-lg); }
.mcard { border-radius: var(--radius-lg); padding: var(--space-md) var(--space-lg); }
.mcard--push { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--color-border); }
.mcard--pull { background: rgba(59, 130, 246, 0.10); border: 1px solid rgba(59, 130, 246, 0.30); }
.mcard__head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: var(--space-xs); font-family: var(--font-heading); font-weight: 600; font-size: var(--text-sm); }
.mcard--push .mcard__head { color: var(--color-text-muted); }
.mcard--pull .mcard__head { color: var(--color-blue-hover); }
.mcard__icon { width: 18px; height: 18px; flex-shrink: 0; }
.mcard__claim { font-family: var(--font-heading); font-weight: 600; font-size: var(--text-xl); line-height: 1.3; letter-spacing: -0.01em; margin: 0; }
.mcard--push .mcard__claim { color: var(--color-text-muted); }
.mcard--pull .mcard__claim { color: var(--color-text-primary); }

/* Cascade diagram — colour driven by tokens via currentColor */
.cascade { display: block; width: 100%; color: var(--color-blue); }
.cascade__nodelabel { fill: var(--color-text-primary); font-family: var(--font-heading); font-size: 14px; font-weight: 700; }
.cascade__annot { fill: var(--color-text-muted); font-family: var(--font-body); font-size: 12px; }
.cascade__baseline { stroke: var(--color-border); }

/* Takeaway captions — each centred under its group of circles in the cascade.
   left% values match the stage centres in the SVG viewBox (98, 288, 536 of 680). */
.method-takeaways { position: relative; min-height: 1.5rem; margin: var(--space-sm) 0 var(--space-lg); }
.method-takeaways span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.02em; }
.method-takeaways .tk--1 { left: 14.4%; }
.method-takeaways .tk--2 { left: 42.4%; }
.method-takeaways .tk--3 { left: 78%; }
.method-takeaways .t-muted { color: var(--color-text-muted); }
.method-takeaways .t-key { color: var(--color-text-primary); }

/* Signature blue→pink divider */
.method-divider { height: 2px; border-radius: 1px; background: linear-gradient(90deg, var(--color-blue), var(--color-pink)); margin-bottom: var(--space-md); }

/* Footer reassurance line */
.method-footer { display: flex; gap: var(--space-sm); align-items: flex-start; }
.method-footer__icon { width: 22px; height: 22px; color: var(--color-blue); flex-shrink: 0; margin-top: 0.15rem; }
.method-footer__text { flex: 1; }
.method-footer p { margin: 0; font-size: var(--text-base); line-height: 1.6; color: var(--color-text-body); }
.method-footer p + p { margin-top: var(--space-sm); }
.method-footer strong { font-weight: 700; color: var(--color-text-primary); }
.method-footer .cta { display: block; margin-top: var(--space-sm); color: var(--color-text-muted); }

/* Scroll reveal — armed by main.js [data-animate] → .anim / .is-visible.
   Default (no JS / reduced motion) leaves everything visible. */
.method-cascade.anim .mcard,
.method-cascade.anim .method-takeaways,
.method-cascade.anim .method-footer {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.5s var(--ease-default), transform 0.5s var(--ease-default);
}
.method-cascade.anim .cascade__stage {
  opacity: 0; transform: translateX(-12px);
  transition: opacity 0.5s var(--ease-default), transform 0.5s var(--ease-default);
}
.method-cascade.anim .cascade__stage--1 { transition-delay: 0.10s; }
.method-cascade.anim .cascade__stage--2 { transition-delay: 0.30s; }
.method-cascade.anim .cascade__stage--3 { transition-delay: 0.50s; }
.method-cascade.anim.is-visible .mcard,
.method-cascade.anim.is-visible .method-takeaways,
.method-cascade.anim.is-visible .method-footer,
.method-cascade.anim.is-visible .cascade__stage { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .method-cascade.anim .mcard,
  .method-cascade.anim .method-takeaways,
  .method-cascade.anim .method-footer,
  .method-cascade.anim .cascade__stage { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 600px) {
  .method-cascade { padding: var(--space-lg); }
  .method-contrast { grid-template-columns: 1fr; }
  .cascade__annot { display: none; }   /* keep node labels; drop the small annotations */
  /* captions can't sit under groups at this width — stack them centred */
  .method-takeaways { position: static; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); }
  .method-takeaways span { position: static; transform: none; }
}

/* ── 11e. Pull-quote statement callout ──────────────────── */
.statement { max-width: 900px; margin: var(--space-2xl) auto; text-align: center; }
.statement__rule { width: 64px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--color-blue), var(--color-pink)); margin: 0 auto var(--space-lg); }
.statement__text { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.25rem); line-height: 1.3; letter-spacing: -0.02em; color: var(--color-text-primary); margin: 0; }
.statement__hl { color: var(--color-blue-hover); }
/* Fade up on scroll-in (main.js [data-animate]); visible by default without JS. */
.statement.anim { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease-default), transform 0.6s var(--ease-default); }
.statement.anim.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .statement.anim { opacity: 1; transform: none; transition: none; } }

/* ── 11. Credibility Marquee ────────────────────────────── */
/* Logo strip sits between the navy hero and the surface "Context" section.
   A faint white film lifts it just above the surrounding surface so it reads
   as a distinct "trusted by" band rather than merging with the grey below. */
.credibility {
  padding: var(--space-2xl) 0;
  background-color: var(--color-surface);
  background-image: linear-gradient(0deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04));
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.credibility__label {
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee-track { display: flex; width: max-content; animation: marquee-scroll 28s linear infinite; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.marquee-content { display: flex; align-items: center; gap: var(--space-3xl); padding: 0 var(--space-3xl); }
.marquee-content img {
  height: var(--logo-h, 36px); width: auto;   /* per-logo override via inline --logo-h */
  opacity: 0.55;
  filter: brightness(0) invert(1);
  transition: opacity var(--duration-fast) var(--ease-default);
  flex-shrink: 0;
}
.marquee-content img:hover { opacity: 0.9; }
.logo-placeholder {
  height: 36px;
  width: 110px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-placeholder span {
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
@keyframes marquee-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── 11b. Context "GenAI Divide" stat bar ───────────────── */
.context__heading { margin-bottom: var(--space-lg); }
.divide-block { margin: var(--space-lg) 0 var(--space-xl); }
.divide-labels {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}
.divide-tag--win  { color: var(--color-blue-hover); }
.divide-tag--rest { color: var(--color-text-muted); }
/* One rounded track (the 95%); the colored 5% fills inside it from the left */
.divide {
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.divide__win {
  height: 100%;
  width: 5%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-pink));
}

/* Scroll-in animation. Progressive enhancement: fill is at full 5% by default;
   main.js adds .anim (collapse) then .is-visible (fill in) only when JS + motion are OK. */
.anim .divide__win {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-in-out);
}
.anim .divide-labels {
  opacity: 0;
  transition: opacity 0.6s var(--ease-default) 0.3s;
}
.anim.is-visible .divide__win { transform: scaleX(1); }
.anim.is-visible .divide-labels { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .anim .divide__win { transform: none; transition: none; }
  .anim .divide-labels { opacity: 1; transition: none; }
}

/* ── 11c. "The Third Path" cards ────────────────────────── */
/* Standalone lead-in line above the cards */
.third-path__kicker {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  margin-top: var(--space-sm);
}

.paths-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  align-items: stretch;
}
@media (max-width: 768px) { .paths-trio { grid-template-columns: 1fr; } }

.path-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-top: 3px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-lg);
}
/* The third path is the chosen one — blue accent, same family as the NOJA box */
.path-card--win {
  border-color: rgba(59, 130, 246, 0.4);
  border-top-color: var(--color-blue);
  background: rgba(59, 130, 246, 0.06);
}
.path-card__num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-4xl);
  line-height: 1;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}
.path-card--win .path-card__num { color: var(--color-blue); }
.path-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}
.path-card__desc { font-size: var(--text-base); color: var(--color-text-body); line-height: 1.6; flex: 1; }

/* Pulled-out figure (e.g. "2×") */
.path-figure {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-5xl);
  line-height: 1;
  color: var(--color-pink);
  margin: var(--space-md) 0 0.2rem;
}
.path-figure__cap {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.path-card__flag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.path-card__flag::before { content: "\2715"; color: var(--color-pink); }   /* ✕ */
.path-card--win .path-card__flag { color: var(--color-blue-hover); }
.path-card--win .path-card__flag::before { content: "\2713"; color: var(--color-blue-hover); }   /* ✓ */

/* Scroll-into-view stagger (home page only — armed via data-animate in main.js).
   Progressive enhancement: cards are fully visible by default; .anim collapses
   them only when JS is present and the user hasn't opted out of motion. */
.paths-trio.anim .path-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-default), transform 0.5s var(--ease-default);
}
.paths-trio.anim .path-card:nth-child(2) { transition-delay: 0.12s; }
.paths-trio.anim .path-card:nth-child(3) { transition-delay: 0.24s; }
.paths-trio.anim.is-visible .path-card { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .paths-trio.anim .path-card { opacity: 1; transform: none; transition: none; }
}

/* ── 12. Section backgrounds ────────────────────────────── */
.bg-navy { background-color: var(--color-navy); }
.bg-surface { background-color: var(--color-surface); }

/* ── 13. Footer ─────────────────────────────────────────── */
.footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: var(--space-2xl) 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-lg); flex-wrap: wrap; }
.footer__left p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; margin: 0; }
.footer__left p:last-child { margin-top: var(--space-sm); }
.footer__right { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-md); flex-wrap: wrap; }
.footer__group { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
.footer__heading { font-family: var(--font-heading); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-primary); }
.footer__link { font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: none; transition: color var(--duration-fast) var(--ease-default); }
.footer__link:hover { color: var(--color-white); }
.footer__brand-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; transition: color var(--duration-fast) var(--ease-default); }
.footer__brand-link:hover { color: var(--color-white); }
@media (max-width: 600px) {
  .footer__inner { flex-direction: column; }
  .footer__right { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
}

/* ── Legal pages (privacy policy) ───────────────────────── */
.legal__meta { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: var(--space-sm); margin-bottom: var(--space-xl); }
.legal h2 { font-size: var(--text-2xl); margin-top: var(--space-2xl); margin-bottom: var(--space-sm); }
.legal p { margin-bottom: var(--space-md); }
.legal ul { list-style: none; margin: 0 0 var(--space-md); display: flex; flex-direction: column; gap: var(--space-sm); }
.legal li { position: relative; padding-left: var(--space-lg); color: var(--color-text-body); line-height: 1.6; }
.legal li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 14px; height: 2px; background: var(--color-blue); }
.legal strong { color: var(--color-text-primary); }

/* ── 14. 404 / error page ───────────────────────────────── */
.error-page {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--container-pad);
}
.error-page__code { font-family: var(--font-heading); font-weight: 800; font-size: var(--text-6xl); color: var(--color-blue); line-height: 1; margin-bottom: var(--space-sm); }
.error-page__message { font-size: var(--text-xl); color: var(--color-text-primary); margin-bottom: var(--space-sm); }
.error-page__sub { color: var(--color-text-body); margin-bottom: var(--space-xl); }

/* ── 15. Utilities ──────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -100px;
  z-index: 200;
  background: var(--color-blue);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: top var(--duration-fast) var(--ease-default);
}
.skip-link:focus { top: var(--space-sm); text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.max-w-sm  { max-width: 480px; }
.max-w-md  { max-width: 640px; }
.max-w-lg  { max-width: 800px; }
.max-w-xl  { max-width: 960px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl); align-items: start; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; gap: var(--space-2xl); } }
