/* ============================================================
   August × Jewish Care Victoria — Proposal
   Fraunces + Hanken Grotesk on the Jewish Care Victoria brand palette —
   navy primary, gold secondary (used very sparingly), grey, lots of whitespace.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* ---- Jewish Care Victoria brand ---- */
  --navy:        #10416f;   /* JCV primary */
  --navy-deep:   #0a2e51;   /* deeper navy — hover / depth */
  --gold:        #fedb35;   /* JCV secondary — used VERY sparingly */
  --grey:        #ededed;   /* JCV tertiary */

  /* Surfaces */
  --paper:       #f7f8fa;        /* main background — cool soft white */
  --paper-2:     var(--grey);    /* alternate sections */
  --paper-3:     #e4e6ea;        /* placeholders / deeper panels */

  /* Ink — near-black, navy-tinted */
  --ink:         #13416D;   /* headings — JCV navy */
  --ink-2:       #4B5563;   /* body copy */
  --ink-3:       #77828f;
  --label:       #B59640;   /* small uppercase labels (eyebrows, kickers) */

  /* Semantic accents */
  --accent:      var(--navy);
  --accent-deep: var(--navy-deep);
  --numeral:     var(--navy);    /* editorial numerals & section indices */

  --line:        rgba(16, 65, 111, 0.18);
  --line-soft:   rgba(16, 65, 111, 0.10);

  /* Dark surfaces (closing section + footer) = brand navy */
  --ink-surface: var(--navy);
  --on-dark:     #f3f6f9;
  --on-dark-2:   #b7c4d4;
  --line-dark:   rgba(255, 255, 255, 0.20);

  /* Type */
  --font-display: "Fraunces", "Times New Roman", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --fs-body:   clamp(1.04rem, 0.99rem + 0.28vw, 1.2rem);
  --fs-small:  clamp(0.92rem, 0.89rem + 0.12vw, 1rem);
  --fs-lede:   clamp(1.25rem, 1.05rem + 0.95vw, 1.85rem);

  --display-sm: clamp(1.55rem, 1.25rem + 1.4vw, 2.3rem);
  --display-md: clamp(2rem, 1.45rem + 2.6vw, 3.5rem);
  --display-lg: clamp(2.5rem, 1.7rem + 3.6vw, 5rem);
  --display-xl: clamp(2.9rem, 1.7rem + 5.2vw, 6.6rem);
  --display-hero: clamp(3rem, 1.3rem + 7.6vw, 9.2rem);

  /* Spacing & layout */
  --shell-max: 80rem;
  --shell-wide: 94rem;   /* wider container — hero + header */
  --shell-pad: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(5rem, 3rem + 8vw, 11rem);
  --gap: clamp(1.5rem, 1rem + 2vw, 3rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --reveal-dur: 0.95s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;   /* clip (not hidden) so the sticky hero still works */
}

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Gold focus ring on the navy surfaces, where navy would be invisible */
.contact :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold); }

/* ---------- Utilities ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}

.eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--label);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  line-height: 1.4;
}
.dot {
  width: 0.5em; height: 0.5em;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.measure { max-width: 42ch; }

.prose p { margin-bottom: 1.1em; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; }

.figure {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 40;
  font-weight: 420;
  letter-spacing: -0.01em;
}

/* Text wrapping — balance headings & short blocks; pretty rag for long body */
h1, h2, h3, h4,
.eyebrow,
.pullquote blockquote,
.questions__list li,
.compare__title,
.commitment h3,
.method-list__name,
.fact__label,
.person__name,
.case-card__name,
.case-detail__title,
.gate__title,
.statement p,
.hero__lede {
  text-wrap: balance;
}
.prose p,
.person__bio,
.deliverable-group li,
.step p,
.case-card__desc,
.case-detail__lead {
  text-wrap: pretty;
}

/* Display headings */
.display-sm, .display-md, .display-lg, .display-xl, .hero__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
}
.display-sm { font-size: var(--display-sm); line-height: 1.1; }
.display-md { font-size: var(--display-md); }
.display-lg { font-size: var(--display-lg); }
.display-xl { font-size: var(--display-xl); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.5em;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 100px;
  transition: background .4s var(--ease), color .4s var(--ease),
              border-color .4s var(--ease), transform .4s var(--ease);
  border: 1px solid transparent;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent-deep); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 0.7em 1.1em; border-radius: 6px;
  transform: translateY(-150%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 150;
  background: transparent;
  pointer-events: none;
}
.progress__bar {
  display: block; height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: clamp(1rem, 0.6rem + 1vw, 1.5rem);
  background: var(--navy);              /* always the brand blue */
  transition: padding .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding-block: 0.7rem;
  border-bottom-color: var(--line-dark);
  box-shadow: 0 12px 32px rgba(10, 30, 55, 0.28);
}
.site-header__inner {
  max-width: var(--shell-wide);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  display: inline-flex;
  align-items: flex-start;
}
.wordmark__reg { font-size: 0.45em; margin-top: 0.25em; margin-left: 0.05em; color: var(--accent); }
.wordmark--lg { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }

/* Co-brand lockup: Jewish Care Victoria logo + August wordmark */
.site-header__brand { display: inline-flex; align-items: center; gap: clamp(0.7rem, 1.6vw, 1.15rem); }
.brand-jcv { display: inline-flex; align-items: center; gap: clamp(0.4rem, 1vw, 0.6rem); }
.brand-jcv__star { display: block; height: clamp(30px, 1.7rem + 1vw, 44px); width: auto; }
.jcv-logo { display: block; height: clamp(17px, 1rem + 0.6vw, 24px); width: auto; }
/* Wordmark of the JCV logo flips with the header (the star tile keeps its colours) */
.jcv-logo__word { fill: var(--on-dark); }
.brand-sep { width: 1px; height: clamp(22px, 2vw, 30px); background: var(--on-dark-2); opacity: 0.5; }
/* August wordmark logo (inline SVG, uses currentColor so it flips with the header) */
.site-header .wordmark { display: inline-flex; align-items: center; }
.august-logo { display: block; height: clamp(15px, 0.85rem + 0.5vw, 20px); width: auto; }

/* Header bar is always navy, so its text/logos stay light in every state. */
.site-header .wordmark { color: var(--on-dark); }
.site-header .wordmark__reg { color: var(--gold); }
.site-header .nav a { color: var(--on-dark-2); }
.site-header .nav a:hover { color: var(--on-dark); }
.site-header .nav a::after { background: var(--on-dark); }
.site-header .nav-toggle span { background: var(--on-dark); }

.nav {
  display: flex;
  gap: clamp(1rem, 0.4rem + 1.6vw, 2.4rem);
  margin-left: auto;
}
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding-block: 0.3em;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--navy);
  padding: 6rem var(--shell-pad) 3rem;
  display: grid;
  align-content: center;
}
.mobile-nav nav { display: grid; gap: 0.5rem; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  padding-block: 0.3rem;
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark);
}
.mobile-nav a:last-child { color: var(--gold); border-bottom: 0; margin-top: 0.5rem; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(6rem, 12vh, 8.5rem);
  padding-bottom: clamp(3.5rem, 8vh, 6rem);
  position: sticky;          /* stays pinned while the page body scrolls up over it */
  top: 0;
  z-index: 0;
  background: var(--navy);   /* same navy as the login gate — seamless transition */
  color: var(--on-dark);
}
.hero .eyebrow { color: var(--on-dark-2); }
.hero .dot { background: var(--gold); }
.hero .shell { position: relative; z-index: 1; will-change: transform; }

/* Hero: headline + lede on the left, a framed video offset to the top-right.
   Wider container than the rest of the page so the content gets more room. */
.hero__grid {
  max-width: var(--shell-wide);
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.hero__copy { margin-top: clamp(2rem, 7vh, 5.5rem); }
.hero__video-frame {
  margin: 0; position: relative; width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 60vh;
  border-radius: 10px; overflow: hidden;
  background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.hero__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .scroll-cue { z-index: 2; }

/* The rest of the page is an opaque sheet that lifts up over the navy hero */
.page-body {
  position: relative;
  z-index: 1;
  background: var(--paper);
  box-shadow: 0 -2rem 4rem rgba(10, 30, 55, 0.18);
}
.hero__title {
  font-size: var(--display-hero);
  font-weight: 360;
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--on-dark);
}
.hero__lede {
  font-size: var(--fs-lede); line-height: 1.4; color: var(--on-dark);
  max-width: 42ch; margin-top: clamp(1.5rem, 3vw, 2.2rem);
}

.scroll-cue {
  position: absolute;
  right: var(--shell-pad);
  bottom: clamp(3rem, 7vh, 6rem);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--on-dark-2);
}
.scroll-cue svg {
  width: 18px; height: 30px;
  fill: none; stroke: var(--on-dark-2); stroke-width: 1.5;
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}
.section-index {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--numeral);
}

.section .display-lg { max-width: 18ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section .prose + .prose { margin-top: 1.2rem; }

/* Opportunity */
.opportunity { overflow-x: clip; }   /* contain the figures' off-screen start (no horizontal scrollbar) */
.opportunity .prose { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); max-width: 56ch; }

/* Editorial scatter — text column with placeholder imagery at varying sizes/offsets */
.editorial {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1rem, 2vw, 2rem);
  row-gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.editorial__intro { grid-column: 1 / 8; grid-row: 1; }
.editorial__intro .section-head { margin-bottom: clamp(1.5rem, 3vw, 2.2rem); }
.editorial__intro .display-lg { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.editorial__intro .prose { max-width: 52ch; }

.ed-fig { margin: 0; overflow: hidden; border-radius: 5px; background: var(--paper-3); }
.ed-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-fig--a { grid-column: 8 / 13; grid-row: 1; aspect-ratio: 4 / 5; }
.ed-fig--b { grid-column: 1 / 5;  grid-row: 2; aspect-ratio: 5 / 4; }
.ed-fig--c { grid-column: 5 / 9;  grid-row: 2; aspect-ratio: 4 / 3; margin-top: clamp(2.5rem, 7vw, 6rem); }
.ed-fig--d { grid-column: 9 / 13; grid-row: 2; aspect-ratio: 3 / 4; margin-top: clamp(1rem, 3vw, 2.5rem); }
.ed-fig--e { grid-column: 2 / 8;  grid-row: 3; aspect-ratio: 16 / 10; margin-top: clamp(0.5rem, 2vw, 1.5rem); }
.pullquote {
  margin-block: clamp(3.5rem, 9vw, 7rem);
  position: relative;
}
.pullquote::before {
  content: "“";
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 0.4;
  color: var(--numeral);
  margin-bottom: 0.35em;
}
.pullquote blockquote {
  font-family: var(--font-display);
  font-size: var(--display-lg);
  font-weight: 340;
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 20ch;
  color: var(--ink);
  font-style: italic;
}

.questions { margin-block: clamp(2.5rem, 6vw, 4.5rem); }
.questions__intro { color: var(--label); margin-bottom: 1.5rem; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.12em; }
.questions__list { display: grid; }
.questions__list li {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 0.9rem + 2vw, 2.6rem);
  font-weight: 360;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding-block: clamp(1.2rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  max-width: 28ch;
  position: relative;
  padding-left: 2.4rem;
}
.questions__list li:first-child { border-top: 1px solid var(--line); }
.questions__list li::before {
  content: "→";
  position: absolute; left: 0; top: clamp(1.4rem, 3.2vw, 2.2rem);
  font-size: 0.5em;
  color: var(--accent);
  font-family: var(--font-body);
}

.statement {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.statement p {
  font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem);
  line-height: 1.32;
  max-width: 24ch;
  color: var(--ink);
  font-weight: 400;
}
.statement strong { color: var(--accent-deep); font-weight: 600; }

/* Why August */
.why { background: var(--paper-2); }
.logo-band {
  margin-block: clamp(2.5rem, 6vw, 4rem);
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
  border-block: 1px solid var(--line);
}
.logo-band__label { display: block; margin-bottom: 1.5rem; }
.logo-band__list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 0.5rem + 2vw, 2.5rem) clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
  align-items: baseline;
}
.logo-band__list li {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 0.9rem + 1.4vw, 2rem);
  font-weight: 380;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Logo wall (real client logos instead of text) */
.logo-band__list--logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: clamp(1.75rem, 1rem + 2.5vw, 3rem) clamp(1.5rem, 1rem + 2vw, 2.75rem);
  align-items: center;
}
.logo-band__list--logos li { display: grid; place-items: center; }
.logo {
  height: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.logo--jesuit { height: clamp(2.6rem, 2rem + 1.9vw, 3.5rem); }      /* taller mark — optical balance */
.logo--guidedogs { height: clamp(2.1rem, 1.6rem + 1.6vw, 2.9rem); }
.logo--careconnect { height: clamp(2.5rem, 1.9rem + 1.9vw, 3.3rem); } /* two-line logo */
.logo--anglicare { height: clamp(2.4rem, 1.85rem + 1.8vw, 3.2rem); }  /* two-line logo */

.commitments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.commitment { display: grid; gap: 0.7rem; align-content: start; }
.commitment__no {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--numeral);
  font-weight: 500;
}
.commitment h3 {
  font-family: var(--font-display);
  font-size: var(--display-sm);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.commitment p { color: var(--ink-2); font-size: var(--fs-small); }

/* ---------- Pathways ---------- */
.compare {
  margin-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--line);
}
.compare__row {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font: inherit; color: inherit;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.5rem, 3.5vw, 2.4rem);
  transition: background .45s var(--ease), padding-inline .45s var(--ease);
}
.compare__row:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.compare__row:hover { background: var(--paper-2); padding-inline: 1.2rem; }
.compare__no {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1rem + 1.5vw, 2.4rem);
  font-weight: 380;
  color: var(--numeral);
}
.compare__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 0.9rem + 1vw, 1.7rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.compare__meta { display: flex; flex-direction: column; gap: 0.2rem; font-size: var(--fs-small); font-weight: 500; color: var(--ink); white-space: nowrap; }
.compare__meta .k { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--label); font-weight: 600; }
.compare__go { font-size: var(--fs-small); font-weight: 600; color: var(--accent); white-space: nowrap; transition: transform .4s var(--ease); }
.compare__row:hover .compare__go { transform: translateX(4px); }

.pathway { padding-block: var(--section-y); border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.pathway--alt { background: var(--paper-2); }
.pathway__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.pathway__lead { position: sticky; top: clamp(5rem, 12vh, 7rem); display: grid; gap: 1.1rem; align-content: start; }
.pathway__numeral {
  font-family: var(--font-display);
  font-size: clamp(4rem, 2rem + 10vw, 9rem);
  font-weight: 300;
  line-height: 0.8;
  color: var(--numeral);
  letter-spacing: -0.03em;
}
.pathway__lead .prose { color: var(--ink-2); max-width: 40ch; }
.pathway__facts {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 0.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.pathway__facts dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--label); font-weight: 600; margin-bottom: 0.3rem; }
.pathway__facts dd { font-size: clamp(1.3rem, 1rem + 1.4vw, 2.1rem); font-weight: 600; color: var(--ink); }
.pathway__facts .figure { color: var(--accent-deep); }

.pathway__deliverables { display: grid; gap: clamp(1.8rem, 4vw, 2.8rem); }
.deliverable-group h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--label);
  padding-bottom: 0.9rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.deliverable-group ul { display: grid; gap: 0.9rem; }
.deliverable-group li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-2);
  font-size: var(--fs-small);
  line-height: 1.5;
}
.deliverable-group li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 0.7rem; height: 1px;
  background: var(--numeral);
}

/* ---------- Methodology ---------- */
.method-list {
  margin-block: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.method-list li {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(0.9rem, 2vw, 1.4rem);
  border-bottom: 1px solid var(--line);
}
.method-list__no { font-family: var(--font-display); font-size: 0.9rem; color: var(--numeral); font-weight: 500; min-width: 2ch; }
.method-list__name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 0.95rem + 1.6vw, 2.4rem);
  font-weight: 360;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: clamp(3rem, 7vw, 5rem);
}
.feature__body { display: grid; gap: 1.1rem; align-content: start; }
.feature__body .display-sm { margin-top: 0.2rem; }
.feature__body .prose { color: var(--ink-2); }
.steps { display: grid; gap: 1.2rem; margin-block: 0.6rem; }
.step { display: flex; gap: 1.1rem; align-items: start; }
.step__no {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--paper);
  background: var(--accent);
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  display: grid; place-items: center;
  flex: none;
}
.step h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.2rem; color: var(--ink); }
.step p { font-size: var(--fs-small); color: var(--ink-2); }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.about__grid .prose { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); }
.about__facts { display: grid; gap: 1.6rem; padding: clamp(1.5rem, 3vw, 2.2rem); background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; }
.why .about__facts { background: var(--paper); }
.fact { display: grid; gap: 0.3rem; }
.fact__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem);
  font-weight: 320;
  line-height: 0.9;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.fact__sup { font-size: 0.35em; color: var(--numeral); margin-left: 0.15em; vertical-align: super; font-weight: 500; }
.fact__label { font-size: 0.86rem; color: var(--ink-2); line-height: 1.4; }
.fact--badges { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.badge {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5em 0.9em;
  border: 1px solid var(--accent);
  color: var(--accent-deep);
  border-radius: 100px;
}

.clients { margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: clamp(1.5rem, 4vw, 2.5rem); border-top: 1px solid var(--line); }
.clients__label { display: block; margin-bottom: 1.3rem; }
.clients__list { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.clients__list li {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.7rem);
  font-weight: 380;
  color: var(--ink);
  position: relative;
  letter-spacing: -0.01em;
}
.clients__list li:not(:last-child)::after { content: "·"; margin-left: 1.4rem; color: var(--numeral); }

/* ---------- Team — pinned roster (names list ↔ member panel) ----------
   The whole roster is pinned for a tall scroll track; scrolling advances the
   active member through everyone, then the section releases. */
.roster-track { position: relative; height: 300svh; margin-top: clamp(2.5rem, 5vw, 4rem); }
.roster-pin {
  position: sticky; top: 0;
  min-height: 100svh; box-sizing: border-box;
  display: flex; align-items: center;
  padding-top: clamp(4.5rem, 11vh, 7rem); padding-bottom: clamp(1.5rem, 4vh, 3rem);
}
.roster {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

/* Left: the list of names (hover / scroll switches the active member) */
.roster__names { list-style: none; margin: 0; padding: 0; }
.roster__name {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 0.9rem + 1.8vw, 2.4rem);
  font-weight: 400; letter-spacing: -0.02em; line-height: 1.1;
  color: var(--ink-3);
  padding: clamp(0.6rem, 1.3vw, 1.05rem) 0;
  transition: color .35s var(--ease), padding-left .35s var(--ease);
}
.roster__names li:last-child .roster__name { border-bottom: 1px solid var(--line); }
.roster__name:hover, .roster__name:focus-visible { color: var(--ink); outline: none; }
.roster__name.is-active { color: var(--ink); padding-left: 0.6rem; }

/* Right: one member card shown at a time (cross-fade) */
.js .roster__stage { display: grid; }                 /* stack every card in one cell */
.js .roster__card {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden; transform: translateY(0.8rem);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s;
}
.js .roster__card.is-active { opacity: 1; visibility: visible; transform: none; }

.roster__portrait {
  width: 100%; max-width: 13rem; aspect-ratio: 4 / 5;
  margin-bottom: clamp(1.1rem, 2.2vw, 1.6rem);
  border-radius: 6px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.roster__initials { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 400; letter-spacing: -0.02em; color: var(--on-dark); }
.roster__cardname { font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem); font-weight: 420; letter-spacing: -0.02em; color: var(--ink); }
.roster__role { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--label); font-weight: 600; margin: 0.4rem 0 0.9rem; }
.roster__bio { font-size: var(--fs-small); color: var(--ink-2); line-height: 1.6; max-width: 42ch; text-wrap: pretty; }
.roster__bio--todo { color: var(--ink-3); font-style: italic; }

/* ---------- Work — case-study cards ---------- */
.case-grid {
  list-style: none; padding: 0;
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  /* Break out of the section container so all four cards share one wide row */
  width: 100vw; margin-inline: calc(50% - 50vw); padding-inline: var(--shell-pad);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2vw, 2rem);
}
.case-card { display: flex; }
.case-card__btn {
  display: flex; flex-direction: column; width: 100%;
  text-align: left; background: none; border: 0; padding: 0; margin: 0;
  cursor: pointer; color: inherit; font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.case-card__media {
  display: block; overflow: hidden; border-radius: 6px;
  background: var(--paper-3); aspect-ratio: 16 / 11;
}
.case-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.9s var(--ease-soft);
}
.case-card__btn:hover .case-card__media img,
.case-card__btn:focus-visible .case-card__media img { transform: scale(1.04); }
.case-card__body { display: grid; gap: 0.45rem; padding-top: 1.2rem; align-content: start; }
.case-card__eyebrow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--label); font-weight: 600; }
.case-card__name { font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); font-weight: 440; letter-spacing: -0.02em; line-height: 1.08; }
.case-card__desc { font-size: var(--fs-small); color: var(--ink-2); line-height: 1.5; max-width: 44ch; }
.case-card__cta {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 0.4rem;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; color: var(--ink);
}
.case-card__cta svg { width: 24px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease); }
.case-card__btn:hover .case-card__cta svg,
.case-card__btn:focus-visible .case-card__cta svg { transform: translateX(5px); }
.case-card__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 4px; }

/* ---------- Case-study flyout (full-page, slides in from the right) ---------- */
.flyout { position: fixed; inset: 0; z-index: 500; visibility: hidden; pointer-events: none; }
.flyout.is-open { visibility: visible; pointer-events: auto; }
.flyout__scrim {
  position: absolute; inset: 0; background: rgba(10, 46, 81, 0.42);
  opacity: 0; transition: opacity 0.6s var(--ease);
}
.flyout.is-open .flyout__scrim { opacity: 1; }
.flyout__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: 100%;
  background: var(--navy);
  transform: translateX(100%);
  transition: transform 0.72s var(--ease-soft);
  box-shadow: -30px 0 80px rgba(10, 46, 81, 0.4);
  display: flex; flex-direction: column; will-change: transform;
}
.flyout.is-open .flyout__panel { transform: translateX(0); }
.flyout :focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.flyout__bar {
  flex: none; position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: clamp(0.9rem, 2.2vw, 1.5rem) var(--shell-pad);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: color-mix(in oklch, var(--navy) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.flyout__kicker { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--on-dark-2); font-weight: 600; }
.flyout__close {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: none; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 100px;
  padding: 0.5em 1.1em; cursor: pointer; color: var(--on-dark); font: inherit;
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.flyout__close:hover { background: var(--on-dark); color: var(--navy-deep); border-color: var(--on-dark); }
.flyout__close svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.flyout__scroll { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }

.case-detail { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 10vw, 7rem); color: var(--on-dark); }
.case-detail[hidden] { display: none; }
/* Text blocks keep the reading measure + side padding; the gallery breaks out to full width. */
.case-detail__head,
.case-detail__grid,
.case-detail__note { max-width: 80rem; margin-inline: auto; padding-inline: var(--shell-pad); }
.case-detail__head { max-width: 60rem; }
.case-detail__eyebrow { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold); font-weight: 600; margin-bottom: 1rem; }
.case-detail__title { max-width: 20ch; font-family: var(--font-display); font-weight: 380; letter-spacing: -0.025em; line-height: 1.02; font-size: clamp(2.2rem, 1.2rem + 4vw, 4.5rem); }
.case-detail__lead { margin-top: 1.3rem; max-width: 32ch; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.45rem); line-height: 1.45; color: var(--on-dark); }
.case-detail__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.case-detail__body p { color: var(--on-dark-2); margin-bottom: 1.1em; max-width: 60ch; }
.case-detail__body p:last-child { margin-bottom: 0; }
.case-detail__meta { display: grid; gap: 1.2rem; align-content: start; border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 1.4rem; }
.case-detail__meta dt { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--on-dark-2); font-weight: 600; margin-bottom: 0.3rem; }
.case-detail__meta dd { margin: 0; font-size: var(--fs-small); color: var(--on-dark); }
.case-detail__note { margin-top: clamp(1.5rem, 3vw, 2.2rem); font-size: var(--fs-small); color: var(--on-dark-2); font-style: italic; }

/* ---- Pathway detail (shares the navy flyout shell) ---- */
.pathway-detail { padding: clamp(2.5rem, 6vw, 5rem) var(--shell-pad) clamp(4rem, 10vw, 7rem); max-width: 74rem; margin-inline: auto; color: var(--on-dark); }
.pathway-detail[hidden] { display: none; }
.pathway-detail__head { max-width: 62rem; }
.pathway-detail__eyebrow { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold); font-weight: 600; margin-bottom: 1rem; }
.pathway-detail__title { max-width: 22ch; font-family: var(--font-display); font-weight: 380; letter-spacing: -0.025em; line-height: 1.04; font-size: clamp(2rem, 1.2rem + 3.4vw, 3.8rem); color: var(--on-dark); }
.pathway-detail__lead { margin-top: 1.3rem; max-width: 58ch; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); line-height: 1.5; color: var(--on-dark-2); }
.pathway-detail__facts { display: flex; gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(1.8rem, 4vw, 2.6rem); border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 1.4rem; }
.pathway-detail__facts dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--on-dark-2); font-weight: 600; margin-bottom: 0.3rem; }
.pathway-detail__facts dd { margin: 0; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); font-weight: 600; color: var(--on-dark); }
.pathway-detail__facts .figure { color: var(--gold); }
.pathway-detail__deliverables { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.8rem, 4vw, 3rem); margin-top: clamp(2.5rem, 6vw, 4rem); }
.pathway-detail .deliverable-group h4 { color: var(--gold); border-bottom-color: rgba(255, 255, 255, 0.16); }
.pathway-detail .deliverable-group li { color: var(--on-dark-2); }
.pathway-detail .deliverable-group li::before { background: var(--on-dark-2); }

/* ---- Pinned WebGL parallax gallery inside the flyout ---- */
/* Spans the full flyout width: .case-detail is full-bleed (its text blocks are
   individually constrained), so this normal-flow block fills the panel edge-to-edge. */
.case-detail .cs { position: relative; margin: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.case-detail .cs__sticky { display: flex; flex-direction: column; }
.case-detail .cs__viewport { position: relative; flex: 1 1 auto; min-height: 0; }
.case-detail .cs__canvas { display: none; position: absolute; inset: 0; width: 100%; height: 100%; }

/* WebGL mode (class added by gallery-webgl.js once GL + textures are ready; heights set in JS) */
.case-detail .cs.is-webgl .cs__sticky { position: sticky; top: 0; overflow: hidden; }
.case-detail .cs.is-webgl .cs__canvas { display: block; }
.case-detail .cs.is-webgl .cs__images { display: none; }

.case-detail .cs__progress { display: none; }
.case-detail .cs.is-webgl .cs__progress {
  display: block; position: absolute; left: var(--shell-pad); right: var(--shell-pad); bottom: clamp(0.9rem, 3vh, 1.8rem);
  height: 2px; background: rgba(255, 255, 255, 0.2); border-radius: 2px; overflow: hidden;
}
.case-detail .cs__progress span { display: block; height: 100%; width: 30%; background: var(--on-dark); border-radius: 2px; }

/* Fallback (no WebGL / reduced motion): a plain horizontal scroller of the same images */
.case-detail .cs__images {
  display: flex; gap: clamp(1rem, 0.6rem + 1.4vw, 2rem);
  margin: 0; padding-inline: var(--shell-pad); list-style: none;
  overflow-x: auto; scrollbar-width: none;
}
.case-detail .cs__images::-webkit-scrollbar { display: none; }
.case-detail .cs__src { flex: none; width: clamp(240px, 60vw, 420px); }
.case-detail .cs__src img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 5px; display: block; background: rgba(255, 255, 255, 0.06); }

/* Flyout content reveal — structural fade-up when the panel opens (no scroll-driven image motion) */
.js .flyout-detail [data-cr] {
  opacity: 0; transform: translateY(1.6rem);
  transition: opacity 0.7s var(--ease-soft), transform 0.7s var(--ease-soft);
  transition-delay: calc(0.12s + var(--i, 0) * 0.07s);
}
.flyout-detail.is-active [data-cr] { opacity: 1; transform: none; }

/* Opacity-only reveal (no transform) — safe for the pinned gallery, whose
   sticky child would otherwise be broken by a transform on this ancestor. */
.js .flyout-detail [data-cr-fade] { opacity: 0; transition: opacity 0.8s var(--ease-soft); transition-delay: 0.3s; }
.flyout-detail.is-active [data-cr-fade] { opacity: 1; }

body.flyout-open { overflow: hidden; }

/* ---------- Placeholders ---------- */
.ph {
  background-color: var(--paper-3);
  background-image: repeating-linear-gradient(135deg,
      transparent, transparent 9px,
      rgba(16, 65, 111, 0.05) 9px, rgba(16, 65, 111, 0.05) 10px);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-3);
  overflow: hidden;
}
.ph__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--ink-3);
  padding: 0.5em 1em;
}
.ph--wide { aspect-ratio: 4/3; width: 100%; }

/* ---------- The experience — centered scroll manifesto ----------
   Big centred lines; the one nearest the viewport centre lights up and
   slides in a side image (alternating left/right). JS adds .is-active. */
.manifesto { text-align: center; overflow-x: clip; }
.manifesto__eyebrow { justify-content: center; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
/* Pinned like the team: the whole stack stays put while scroll advances the active line */
.manifesto-track { position: relative; height: 360svh; }
.manifesto-pin {
  position: sticky; top: 0;
  min-height: 100svh; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-top: clamp(4.5rem, 11vh, 7rem); padding-bottom: clamp(2rem, 5vh, 3rem);
}
.manifesto__list { list-style: none; margin: 0; padding: 0; width: 100%; }
.manifesto__item {
  position: relative;
  display: grid; place-items: center;
  padding-block: clamp(0.3rem, 0.9vw, 0.7rem);
}
.manifesto__line {
  position: relative; z-index: 2;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 0.8rem + 2.2vw, 2.9rem);
  font-weight: 400; letter-spacing: -0.02em; line-height: 1.1;
  color: var(--ink);
}
.js .manifesto__line { color: var(--ink-3); opacity: 0.4; transition: color .5s var(--ease), opacity .5s var(--ease); }
.js .manifesto__item.is-active .manifesto__line { color: var(--ink); opacity: 1; }

/* One image, revealed for the active line — alternating left/right per item */
.manifesto__media {
  position: absolute; top: 50%; z-index: 1; pointer-events: none;
  width: clamp(8rem, 13vw, 15rem); aspect-ratio: 4 / 5;
  border-radius: 6px; overflow: hidden; background: var(--paper-3);
  transform: translateY(-50%);
}
.manifesto__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.manifesto__media--left  { left:  clamp(1rem, 3vw, 3.5rem); }
.manifesto__media--right { right: clamp(1rem, 3vw, 3.5rem); }
.js .manifesto__media { opacity: 0; transition: opacity .6s var(--ease), transform .65s var(--ease-soft); }
.js .manifesto__media--left  { transform: translate(-2.5rem, -50%) scale(0.92); }
.js .manifesto__media--right { transform: translate(2.5rem, -50%) scale(0.92); }
.js .manifesto__item.is-active .manifesto__media { opacity: 1; transform: translate(0, -50%) scale(1); }

/* ---------- Contact (dark) ---------- */
.contact {
  background: var(--ink-surface);
  color: var(--on-dark);
  text-align: center;
  padding-block: clamp(6rem, 4rem + 9vw, 13rem);
}
.contact__inner { display: grid; justify-items: center; gap: clamp(1.5rem, 3vw, 2.5rem); }
.contact .eyebrow { color: var(--on-dark-2); }
.contact .display-xl { color: var(--on-dark); max-width: 16ch; font-weight: 320; }
.contact .prose p { color: var(--on-dark-2); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.contact .btn--solid { background: var(--gold); color: var(--navy-deep); }
.contact .btn--solid:hover { background: color-mix(in srgb, var(--gold), white 18%); color: var(--navy-deep); }
.contact .btn--ghost { border-color: var(--line-dark); color: var(--on-dark); }
.contact .btn--ghost:hover { background: var(--on-dark); color: var(--ink-surface); border-color: var(--on-dark); }

/* ---------- Footer (dark) ---------- */
.site-footer {
  background: var(--ink-surface);
  color: var(--on-dark-2);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--line-dark);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1.7fr;
  gap: var(--gap);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.site-footer__brand .wordmark { color: var(--on-dark); margin-bottom: 1rem; }
.site-footer__brand .wordmark__reg { color: var(--gold); }
.site-footer__brand p { font-size: var(--fs-small); line-height: 1.6; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.site-footer__cols .eyebrow { color: var(--on-dark-2); display: block; margin-bottom: 1rem; }
.site-footer__cols a { display: block; font-size: var(--fs-small); color: var(--on-dark-2); padding-block: 0.35rem; transition: color .3s var(--ease); }
.site-footer__cols a:hover { color: var(--on-dark); }
.site-footer__legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line-dark);
  font-size: 0.78rem; letter-spacing: 0.04em;
}

/* ============================================================
   Password gate (soft, client-side only) + logo transition
   ============================================================ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--navy);
  color: var(--on-dark);
  display: grid;
  place-items: center;
  padding: var(--shell-pad);
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
.is-authed .gate { display: none; }            /* already authed this session */
.gate.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
body.gate-active { overflow: hidden; }         /* lock scroll while the gate is up */

/* Infinite drifting canvas of work screenshots behind the login */
.gate__canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.gate__stage {
  position: absolute;
  inset: 0;
  perspective: 1200px;            /* the 3D camera depth */
  perspective-origin: 50% 50%;
}
.gate__tile {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;                     /* JS sets per-depth opacity */
  will-change: transform, opacity;
}
.gate__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}
.gate__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* wide navy (primary) halo behind the content that fades out into the page */
  background: radial-gradient(ellipse 66% 58% at 50% 50%,
    rgba(16, 65, 111, 0.97) 0%,
    rgba(16, 65, 111, 0.90) 30%,
    rgba(16, 65, 111, 0.50) 62%,
    rgba(16, 65, 111, 0.00) 100%);
}

.gate__inner {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, 30rem);
  text-align: center;
  animation: gate-in 0.7s var(--ease) both;
}
/* form + logo share one grid cell so they cross-fade in place */
.gate__form, .gate__logo { grid-area: 1 / 1; }

.gate__form {
  display: grid;
  justify-items: center;
  gap: 1.05rem;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.gate.is-authing .gate__form { opacity: 0; transform: translateY(-10px); pointer-events: none; }

.gate__mark { color: var(--on-dark); font-size: 1.6rem; margin-bottom: 0.4rem; }
.gate .wordmark__reg { color: var(--gold); }
.gate__eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-dark-2);
}
.gate__title {
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  max-width: 18ch;
  margin-inline: auto;
}
.gate__field {
  display: flex;
  width: 100%;
  max-width: 22rem;
  margin: 0.6rem auto 0;
}
.gate__field input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-right: 0;                       /* joined to the button */
  border-radius: 100px 0 0 100px;
  padding: 0.85em 1.3em;
  text-align: center;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.gate__field input::placeholder { color: rgba(243, 246, 249, 0.5); }
.gate__field input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
}
.gate__submit {
  font: inherit; font-weight: 600; font-size: 0.95rem;
  background: var(--gold);
  color: var(--navy-deep);
  border: 1px solid var(--gold);
  border-radius: 0 100px 100px 0;
  padding: 0.85em 1.7em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.gate__submit:hover { background: color-mix(in srgb, var(--gold), white 18%); }
.gate__error {
  font-size: 0.85rem;
  color: #ffd7cf;
  margin-top: 0.2rem;
  min-height: 1.1em;
}
.gate__field.is-wrong input { border-color: #ff9a8c; animation: gate-shake 0.4s var(--ease); }

.gate__logo {
  opacity: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  transition: opacity 0.5s var(--ease);
}
.gate.show-logo .gate__logo { opacity: 1; }
.gate__logo svg { width: min(72vw, 460px); height: auto; }
.gate__logo .st0 { fill: var(--on-dark); }   /* wordmark + cursive script in cream */
.gate__logo #symbol { fill: var(--gold); }    /* the JCV mark in gold */

@keyframes gate-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

/* ============================================================
   Reveal system — only active when JS is present
   ============================================================ */
.js [data-reveal="fade"],
.js [data-reveal="line-item"] {
  opacity: 0;
  transform: translateY(1.6rem);
  transition: opacity var(--reveal-dur) var(--ease),
              transform var(--reveal-dur) var(--ease);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* Images that animate into position on scroll (more travel + a touch of scale) */
.js [data-reveal="rise"] {
  opacity: 0;
  transform: translateY(2.6rem) scale(0.985);
  transition: opacity 0.95s var(--ease-soft), transform 0.95s var(--ease-soft);
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* Editorial figures are scroll-scrubbed: initScrollFly() in main.js maps each
   figure's scroll position to a transform + opacity so they track the scroll
   (rather than playing once). Body/.opportunity clip overflow-x → no scrollbar.
   Failsafe: if JS never runs (.no-reveal) the figures are shown at rest. */
.js .ed-fig { opacity: 0; will-change: transform, opacity; }
.no-reveal .ed-fig { opacity: 1 !important; transform: none !important; }

/* Staggered children */
.js [data-reveal="stagger"] > * {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity var(--reveal-dur) var(--ease),
              transform var(--reveal-dur) var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal="stagger"].is-revealed > * { opacity: 1; transform: none; }

/* Line-by-line headings (JS splits into .line > .line__inner) */
.js [data-reveal="lines"] { opacity: 0; transition: opacity 0.35s var(--ease); }
.js [data-reveal="lines"].is-split { opacity: 1; }
.js [data-reveal="lines"] .line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.js [data-reveal="lines"] .line__inner {
  display: block;
  transform: translateY(108%);
  transition: transform 1.05s var(--ease);
  transition-delay: calc(var(--line-index, 0) * 85ms);
}
.js [data-reveal="lines"].is-revealed .line__inner { transform: none; }

/* Fail-safe: if JS errors or stalls before observers attach, reveal everything */
.no-reveal [data-reveal],
.no-reveal [data-reveal="stagger"] > *,
.no-reveal [data-reveal="lines"],
.no-reveal [data-reveal="lines"] .line__inner {
  opacity: 1 !important;
  transform: none !important;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .pathway__inner { grid-template-columns: 1fr; }
  .pathway__lead { position: static; }
  .feature { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .commitments { grid-template-columns: 1fr; gap: 1.6rem; }
  .commitment { padding-top: 1.4rem; border-top: 1px solid var(--line); }
  .case-detail__grid { grid-template-columns: 1fr; }
  .pathway-detail__deliverables { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }   /* 4 → 2 on medium screens */

  /* Hero stacks: headline + lede, then the framed video below */
  .hero__grid { grid-template-columns: 1fr; gap: clamp(1.8rem, 6vw, 2.8rem); }

  /* Editorial scatter collapses to a single column (needs width to scatter) */
  .editorial { grid-template-columns: 1fr; row-gap: clamp(1.2rem, 4vw, 2rem); }
  .editorial__intro { grid-column: 1; grid-row: auto; }
  .ed-fig { grid-column: 1; grid-row: auto; margin-top: 0; aspect-ratio: 16 / 10; }
  .editorial__intro .prose { max-width: 60ch; }
}

@media (max-width: 760px) {
  .nav, .nav__cta { display: none; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    margin-left: auto;
  }
  .nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s var(--ease); margin-inline: auto; }
  body.nav-open .nav-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
  body.nav-open .nav-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }

  .scroll-cue { display: none; }

  .compare__row { grid-template-columns: auto 1fr; gap: 0.5rem 1.2rem; }
  .compare__title { grid-column: 1 / -1; }
  .compare__no { grid-row: 1; }
  .compare__meta { font-size: 0.8rem; }
  .compare__go { display: none; }

  .case-grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }

  /* Team roster collapses: no pinning, hide the names list, show every card in flow */
  .roster-track { height: auto; margin-top: clamp(2rem, 6vw, 3rem); }
  .roster-pin { position: static; min-height: 0; display: block; padding: 0; }
  .roster { grid-template-columns: 1fr; }
  .roster__names { display: none; }
  .js .roster__stage { display: block; }
  .js .roster__card { grid-area: auto; opacity: 1; visibility: visible; transform: none; }
  .roster__card + .roster__card { margin-top: clamp(2.2rem, 7vw, 3.2rem); border-top: 1px solid var(--line); padding-top: clamp(2.2rem, 7vw, 3.2rem); }
  .roster__portrait { max-width: 13rem; }

  /* Manifesto: no pinning + no side images on mobile — keep the centred text effect */
  .manifesto-track { height: auto; }
  .manifesto-pin { position: static; min-height: 0; display: block; padding: 0; }
  .manifesto__media { display: none; }
  .manifesto__item { min-height: 42vh; }
  .manifesto__line { max-width: 18ch; }

  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 460px) {
  .pathway__facts { flex-direction: column; gap: 1.2rem; }
  .site-footer__cols { grid-template-columns: 1fr; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal],
  .js [data-reveal="stagger"] > *,
  .js [data-reveal="lines"] .line__inner,
  .js .ed-fig {
    opacity: 1 !important;
    transform: none !important;
  }
  .scroll-cue svg { animation: none; }
}
