/* ==========================================================================
   Flagstaff Partners — styles.css (v3 · "High Country Ledger")
   Locked palette: navy #002244 · orange #FB4F14 · amber #E5732B ·
                   ivory #FAF7F2 · white · charcoal #2B2F33
   Type: Switzer (grotesque) + Zodiak Light/Italic (serif) — Fontshare
   Reference DNA: Pacific Lake (italic-serif swap, warm system) ·
                  Osceola (brand-forward whitespace, mono landscape band) ·
                  Gryphon/Shore (GSAP reveal engineering, nav behavior)
   ========================================================================== */

:root {
  --ink: #002244;
  --ink-deep: #001a33;
  --spark: #FB4F14;
  --ember: #E5732B;
  --ground: #FAF7F2;
  --paper: #FFFFFF;
  --body: #2B2F33;

  --line-hair: rgba(0, 34, 68, 0.12);
  --line-soft: rgba(0, 34, 68, 0.3);
  --w-line: rgba(250, 247, 242, 0.18);
  --w-dim: rgba(250, 247, 242, 0.6);

  --font-sans: "Switzer", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Zodiak", "Times New Roman", serif;

  /* Fluid type scale — freezes above 1920px */
  --text-xs: 0.75rem;
  --text-sm: 0.9rem;
  --text-base: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --text-lg: clamp(1.15rem, 1.05rem + 0.5vw, 1.5rem);
  --text-h3: clamp(1.6rem, 1.3rem + 1.4vw, 2.6rem);
  --text-h2: clamp(2rem, 1.4rem + 2.8vw, 4rem);
  --text-statement: clamp(1.9rem, 1.3rem + 3vw, 3.9rem);
  --text-hero: clamp(3rem, 1.3rem + 8.4vw, 8.75rem);
  --text-stat: clamp(2.1rem, 1.5rem + 3.4vw, 5rem);

  --space-section: clamp(5rem, 3.5rem + 6vw, 8.75rem);
  --space-band: clamp(6.5rem, 4.5rem + 8vw, 12rem); /* downbeat before full-bleed bands */
  --space-block: clamp(2rem, 1.5rem + 2.5vw, 3.75rem);
  --container: 1440px;
  --gutter: clamp(1.35rem, 4vw, 4.5rem);
  --nav-h: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

h1, h2, h3 { margin: 0 0 0.5em; color: var(--ink); }

h2 {
  font-family: var(--font-sans);
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

h2 em, .statement-text em, .hero-title em {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1.1em; max-width: 60ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration: none; }

::selection { background: var(--ink); color: var(--ground); }

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

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

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff;
  padding: 0.6rem 1.1rem; z-index: 400;
}
.skip-link:focus { left: 0; }

/* Eyebrow — the system's small voice */
.eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}
.eyebrow-light { color: var(--w-dim); }

/* Text link — underline draws in from the left */
.text-link {
  display: inline-block;
  margin-top: var(--space-block);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
}
.text-link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--line-soft);
  transform: scaleX(1);
  transform-origin: left center;
  transition: transform 0.45s var(--ease-out), background-color 0.3s ease;
}
.text-link:hover::after { background: var(--spark); }
.link-arrow { color: var(--spark); }

/* --------------------------------------------------------------------------
   Intro curtain
   -------------------------------------------------------------------------- */

.curtain {
  position: fixed; inset: 0; z-index: 300;
  background: var(--ink);
  display: grid; place-items: center;
  pointer-events: none;
}
.curtain-logo { width: min(252px, 56vw); height: auto; opacity: 0; }
html.no-js .curtain, html.curtain-done .curtain { display: none; }
/* Failsafe: if main.js never runs, the curtain self-destructs after 4s */
@keyframes curtain-failsafe { to { visibility: hidden; } }
html.js .curtain { animation: curtain-failsafe 0s 4s forwards; }

/* --------------------------------------------------------------------------
   Navigation — transparent over hero, ivory + hairline once scrolled
   -------------------------------------------------------------------------- */

.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  transition: transform 0.5s var(--ease-out), background-color 0.4s ease,
              border-color 0.4s ease;
  border-bottom: 1px solid transparent;
  background: transparent;
}
.site-nav.is-hidden { transform: translateY(-100%); }
.site-nav.is-solid {
  background: rgba(250, 247, 242, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-hair);
}

.nav-inner {
  max-width: none;
  height: 100%;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}

.nav-brand { position: relative; display: block; line-height: 0; }
.nav-brand img { height: 34px; width: auto; transition: opacity 0.4s ease; }
.nav-brand .brand-color { position: absolute; inset: 0; opacity: 0; }
.site-nav.is-solid .brand-white { opacity: 0; }
.site-nav.is-solid .brand-color { opacity: 1; }

.nav-links { display: flex; gap: clamp(1.4rem, 2.6vw, 2.6rem); }
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ground);
  position: relative;
  padding: 6px 0;
  transition: color 0.4s ease;
}
.site-nav.is-solid .nav-links a { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 1.25rem; }

.nav-cta {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ground);
  border: 1px solid var(--w-line);
  padding: 0.6rem 1.3rem;
  transition: color 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}
.nav-cta:hover { background: var(--spark); border-color: var(--spark); color: #fff; }
.site-nav.is-solid .nav-cta { color: var(--ink); border-color: var(--line-soft); }
.site-nav.is-solid .nav-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--ground); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.nav-toggle-line {
  display: block; width: 24px; height: 2px;
  background: var(--ground);
  transition: transform 0.35s var(--ease-out), background-color 0.35s ease;
}
.site-nav.is-solid .nav-toggle-line { background: var(--ink); }
body.menu-open .nav-toggle-line:first-child { transform: translateY(4.5px) rotate(45deg); }
body.menu-open .nav-toggle-line:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  background: var(--ink);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.4rem; text-align: center; }
.mobile-menu a {
  color: var(--ground);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 1.35;
  transition: color 0.3s ease;
}
.mobile-menu a:hover { color: var(--ember); }

/* --------------------------------------------------------------------------
   Hero — pinned full-bleed video; the page scrolls over it
   -------------------------------------------------------------------------- */

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
  display: flex;
  align-items: flex-end;
  z-index: 0;
}

.hero-media { position: absolute; inset: 0; will-change: transform; }
.hero-media video,
.hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Grade toward brand navy; kills the stock teal LUT */
  filter: saturate(0.62) contrast(1.04);
}

.hero-scrim {
  position: absolute; inset: 0;
  opacity: 0.85; /* scrubbed to 1 on scroll-out (compositor-cheap darkening) */
  background:
    linear-gradient(to bottom,
      rgba(0, 26, 51, 0.48) 0%,
      rgba(0, 26, 51, 0.35) 38%,
      rgba(0, 26, 51, 0.42) 68%,
      rgba(0, 26, 51, 0.82) 100%),
    rgba(0, 34, 68, 0.26);
}

/* Filmic grain unifies video compression with the page */
.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: calc(var(--nav-h) + 1.5rem) var(--gutter) clamp(5.5rem, 11vh, 8rem);
}

.hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--w-dim);
  margin: 0 0 clamp(1.2rem, 2.5vh, 2rem);
}

.hero-title {
  margin: 0;
  color: var(--ground);
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

/* Masked line system */
.hline { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hline-inner { display: inline-block; will-change: transform; }
.hline-serif .hline-inner em {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.015em;
  color: var(--ember);
  padding-right: 0.08em; /* italic overhang */
}

.hero-sub {
  margin: clamp(1.4rem, 3vh, 2.2rem) 0 0;
  max-width: 54ch;
  color: var(--ground);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.55;
  text-shadow: 0 1px 20px rgba(0, 26, 51, 0.45);
}

/* Video pause control — WCAG 2.2.2 */
.hero-pause {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(2rem, 5vh, 3.25rem);
  z-index: 3;
  width: 42px; height: 42px;
  background: rgba(0, 26, 51, 0.35);
  border: 1px solid var(--w-line);
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.hero-pause:hover { border-color: var(--w-dim); }
.pause-glyph {
  width: 10px; height: 12px;
  border-left: 3px solid var(--ground);
  border-right: 3px solid var(--ground);
}
.hero-pause[aria-pressed="true"] .pause-glyph {
  border: 0;
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--ground);
  margin-left: 3px;
}

.hero-cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2rem, 5vh, 3.25rem);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  color: var(--w-dim);
}
.cue-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.cue-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--w-line), var(--spark));
  position: relative;
  overflow: hidden;
}
.cue-line::after {
  content: "";
  position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--spark);
  animation: cue-drop 2.4s var(--ease-out) infinite;
}
@keyframes cue-drop {
  0% { top: -100%; }
  55% { top: 100%; }
  100% { top: 100%; }
}
.hero-cue:hover { color: var(--ground); }

/* --------------------------------------------------------------------------
   Variant B — Osceola cut: brand-in-whitespace hero + duotone video band
   -------------------------------------------------------------------------- */

.nav-navy,
.nav-navy.is-solid {
  background: var(--ink);
  border-bottom-color: var(--w-line);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav-navy .nav-links a,
.nav-navy.is-solid .nav-links a { color: var(--ground); }
.nav-navy .nav-cta,
.nav-navy.is-solid .nav-cta { color: var(--ground); border-color: var(--w-line); }
.nav-navy .nav-cta:hover { background: var(--spark); border-color: var(--spark); color: #fff; }
.nav-navy .nav-toggle-line,
.nav-navy.is-solid .nav-toggle-line { background: var(--ground); }

.hero-b {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ground);
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 4rem;
}
.hero-b-inner { text-align: center; }
.hero-b-logo {
  width: min(460px, 62vw);
  height: auto;
  margin-inline: auto;
}
.hero-b-line {
  margin: clamp(2rem, 5vh, 3.5rem) 0 0;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--line-soft);
}
.hero-cue-b { color: var(--line-soft); }
.hero-cue-b .cue-line { background: linear-gradient(to bottom, var(--line-hair), var(--spark)); }
.hero-cue-b:hover { color: var(--ink); }

.brand-band {
  position: relative;
  height: clamp(380px, 64vh, 700px);
  background: var(--ink-deep);
  overflow: hidden;
}
.brand-band video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.9);
  mix-blend-mode: luminosity;
  opacity: 0.9;
}
.brand-band::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 34%;
  background: linear-gradient(to top, rgba(0, 26, 51, 0.6), transparent);
  pointer-events: none;
}
.brand-band .range-caption { z-index: 1; }
.hero-pause-b {
  left: auto;
  right: var(--gutter);
  bottom: clamp(1.6rem, 4vw, 3rem);
}

.page-body-b { box-shadow: none; }

/* Shorter laptop viewports: shrink the hero stack so the eyebrow clears the nav */
@media (max-height: 880px) {
  .hero-title { font-size: clamp(2.6rem, 1rem + 7vw, 7rem); }
  .hero-sub { font-size: var(--text-base); max-width: 60ch; margin-top: 1.1rem; }
  .hero-eyebrow { margin-bottom: 1rem; }
  .hero-content { padding-bottom: clamp(4.5rem, 9vh, 6rem); }
}

/* --------------------------------------------------------------------------
   Page body — rides over the hero
   -------------------------------------------------------------------------- */

.page-body {
  position: relative;
  z-index: 2;
  background: var(--ground);
  box-shadow: 0 -30px 60px rgba(0, 26, 51, 0.25);
}

/* --------------------------------------------------------------------------
   Statement
   -------------------------------------------------------------------------- */

.statement { padding: var(--space-band) 0 var(--space-section); }

.statement-text {
  font-size: var(--text-statement);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: 0;
}
.statement-text em { color: var(--ember); }

.statement-foot {
  margin-top: var(--space-block);
  padding-top: var(--space-block);
  border-top: 1px solid var(--line-hair);
  display: flex;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
}
.statement-foot p { max-width: 52ch; }
.statement-foot .text-link { margin: 0 0 0.2rem; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Stats — navy band, tabular count-ups
   -------------------------------------------------------------------------- */

.stats {
  background: var(--ink);
  color: var(--ground);
  padding: clamp(4.5rem, 4rem + 4vw, 8rem) 0;
}

.stats-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}
.stats-grid li {
  border-top: 1px solid var(--w-line);
  padding-top: 1.4rem;
}

.stat-value {
  display: block;
  font-size: var(--text-stat);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ground);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.7rem;
}
.stat-unit {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--w-dim);
  margin-left: 0.45em;
}
.stat-prefix { font-size: 0.6em; font-weight: 600; color: var(--w-dim); vertical-align: 0.28em; margin-right: 0.05em; }
.stat-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--w-dim);
  line-height: 1.55;
  max-width: 24ch;
}

/* --------------------------------------------------------------------------
   Range band — Osceola move, graded navy duotone
   -------------------------------------------------------------------------- */

.range-band {
  position: relative;
  background: var(--ink-deep);
  overflow: hidden;
}
.range-band::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 34%;
  background: linear-gradient(to top, rgba(0, 26, 51, 0.6), transparent);
  pointer-events: none;
}

.range-media {
  margin: 0;
  height: clamp(320px, 52vw, 620px);
  overflow: hidden;
}
.range-media img {
  width: 100%;
  height: 118%; /* headroom for parallax drift */
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.92);
  mix-blend-mode: luminosity;
  opacity: 0.9;
  will-change: transform;
}

.range-caption {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(1.6rem, 4vw, 3rem);
  margin: 0;
  z-index: 1;
  color: var(--ground);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
/* Longer narrative captions: readable sentence case instead of tracked caps */
.range-caption-long {
  right: var(--gutter);
  max-width: 58ch;
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.6;
  text-shadow: 0 1px 18px rgba(0, 26, 51, 0.7);
}

/* --------------------------------------------------------------------------
   Approach — numbered editorial rows (Back → Build → Hold is a real sequence)
   -------------------------------------------------------------------------- */

.approach { padding: var(--space-section) 0; }

.approach-list {
  list-style: none;
  margin: 0; padding: 0;
  counter-reset: none;
}

.approach-row {
  display: grid;
  grid-template-columns: minmax(60px, 1fr) minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: start;
  padding: clamp(2rem, 4vw, 3.25rem) 0;
  border-top: 1px solid var(--line-hair);
  transition: border-color 0.4s ease;
}
.approach-list .approach-row:last-child { border-bottom: 1px solid var(--line-hair); }

.approach-num {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--line-soft);
  padding-top: 0.55rem;
  transition: color 0.35s ease;
}
.approach-row:hover .approach-num { color: var(--spark); }

.approach-name {
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.approach-copy { max-width: 58ch; margin: 0; color: var(--body); justify-self: stretch; }

/* --------------------------------------------------------------------------
   Criteria — what we back
   -------------------------------------------------------------------------- */

.criteria { padding: 0 0 var(--space-band); }

.criteria-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: center;
}

.criteria-copy h2 { max-width: 16ch; }
.criteria-copy h2 em { color: var(--ember); }

.criteria-list {
  list-style: none;
  margin: var(--space-block) 0 0;
  padding: 0;
}
.criteria-list li {
  padding: 1.1rem 0 1.1rem 1.8rem;
  border-top: 1px solid var(--line-hair);
  position: relative;
  max-width: 52ch;
}
.criteria-list li:last-child { border-bottom: 1px solid var(--line-hair); }
.criteria-list li::before {
  content: "";
  position: absolute; left: 2px; top: 1.85rem;
  width: 7px; height: 7px;
  background: var(--spark);
}

.criteria-media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.criteria-media { position: relative; }
.criteria-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Same navy grade as the rest of the imagery — one art direction */
  filter: saturate(0.5) contrast(1.05) brightness(0.95);
  will-change: transform;
}
.criteria-media::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 34, 68, 0.18);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Team band
   -------------------------------------------------------------------------- */

.team-band {
  position: relative;
  overflow: hidden;
  background: var(--ink-deep);
  display: flex;
  align-items: center;
  min-height: clamp(480px, 72vh, 760px);
}

.team-media { position: absolute; inset: 0; margin: 0; }
.team-media img {
  width: 100%; height: 118%;
  object-fit: cover;
  filter: saturate(0.55) brightness(0.72) contrast(1.04);
  will-change: transform;
}
.team-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(0, 26, 51, 0.92) 8%,
    rgba(0, 26, 51, 0.6) 55%,
    rgba(0, 26, 51, 0.38) 100%);
}

.team-content { position: relative; z-index: 2; width: 100%; }

.team-title {
  color: var(--ground);
  font-size: var(--text-h2);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.06;
}
.team-title em { color: var(--ember); }

.team-names {
  list-style: none;
  margin: var(--space-block) 0 0;
  padding: 0;
  display: flex;
  gap: clamp(2rem, 4vw, 4rem);
  flex-wrap: wrap;
}
.team-names li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--w-line);
  min-width: 150px;
}
.team-name { color: var(--ground); font-weight: 600; font-size: var(--text-base); }
.team-role {
  color: var(--w-dim);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn-solid {
  display: inline-block;
  margin-top: var(--space-block);
  background: var(--ground);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1px solid var(--ground);
  padding: 0.9rem 1.8rem;
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
.btn-solid:hover { background: var(--spark); border-color: var(--spark); color: #fff; }

/* --------------------------------------------------------------------------
   Footer — dark navy, oversized italic serif links
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink-deep);
  color: var(--w-dim);
  padding: var(--space-section) 0 2.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(2.5rem, 6vw, 7rem);
  flex-wrap: wrap;
  padding-bottom: var(--space-block);
}

.footer-brand { display: flex; flex-direction: column; gap: 2.2rem; }
.footer-office {
  font-style: normal;
  font-size: var(--text-sm);
  line-height: 1.7;
}
.footer-office .eyebrow { margin-bottom: 0.6rem; display: block; }

.footer-links { display: flex; flex-direction: column; gap: 0.3rem; text-align: right; }
.footer-links a {
  color: var(--ground);
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--ember); }

.footer-bottom {
  border-top: 1px solid var(--w-line);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: var(--text-xs);
}
.footer-bottom p { margin: 0; }
.footer-meta { display: flex; gap: 1.6rem; }
.footer-meta a {
  color: var(--w-dim);
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}
.footer-meta a:hover { color: var(--ground); }

/* --------------------------------------------------------------------------
   Interior pages
   -------------------------------------------------------------------------- */

/* Nav that is always solid ivory (pages without a dark hero) */
.nav-static,
.nav-static.is-solid {
  background: rgba(250, 247, 242, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-hair);
}
.nav-static .nav-links a { color: var(--ink); }
.nav-static .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-static .nav-cta { color: var(--ink); border-color: var(--line-soft); }
.nav-static .nav-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.nav-static .brand-white { opacity: 0; }
.nav-static .brand-color { opacity: 1; }
.nav-static .nav-toggle-line { background: var(--ink); }

/* Page head — every interior page opens the same way */
.page-head {
  padding: calc(var(--nav-h) + clamp(4rem, 8vw, 8rem)) 0 clamp(3rem, 5vw, 5rem);
}
.page-head h1 {
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin: 0;
}
.page-head h1 em {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  color: var(--ember);
}
.page-head .lede {
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
  font-size: var(--text-lg);
  line-height: 1.55;
  max-width: 46ch;
  color: var(--body);
}
.page-head-rule {
  border: 0;
  border-top: 1px solid var(--line-hair);
  margin: clamp(3rem, 5vw, 5rem) 0 0;
}

/* Editorial prose blocks */
.prose-section { padding: var(--space-section) 0; }
.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
}
.prose-grid h2 {
  font-size: var(--text-h3);
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.prose p + p { margin-top: 1.1em; }
.prose p { max-width: 58ch; }

/* Team — editorial rows, no stock headshots */
.team-list { list-style: none; margin: 0; padding: 0; }
.team-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line-hair);
  align-items: start;
}
.team-list .team-row:last-child { border-bottom: 1px solid var(--line-hair); }
.team-row h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.3rem;
}
.team-row .role {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
}
.team-row .bio { margin: 0; max-width: 56ch; }
.team-row .team-contact { justify-self: end; text-align: right; }
.team-row .team-contact a {
  font-size: var(--text-sm);
  font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 3px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.team-row .team-contact a:hover { border-color: var(--spark); color: var(--spark); }

/* Criteria/fact table rows (portfolio, approach) */
.fact-list { list-style: none; margin: 0; padding: 0; }
.fact-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  padding: 1.4rem 0;
  border-top: 1px solid var(--line-hair);
}
.fact-list .fact-row:last-child { border-bottom: 1px solid var(--line-hair); }
.fact-row dt {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--line-soft);
  padding-top: 0.35rem;
}
.fact-row dd { margin: 0; max-width: 56ch; }

/* Navy CTA band shared across interior pages */
.cta-band {
  background: var(--ink);
  color: var(--ground);
  padding: clamp(4.5rem, 4rem + 4vw, 8rem) 0;
}
.cta-band h2 {
  color: var(--ground);
  font-size: var(--text-h2);
  max-width: 18ch;
}
.cta-band h2 em {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  color: var(--ember);
}
.cta-band p { color: var(--w-dim); max-width: 50ch; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}
.contact-block { border-top: 1px solid var(--line-hair); padding-top: 1.4rem; }
.contact-block + .contact-block { margin-top: var(--space-block); }
.contact-block .eyebrow { margin-bottom: 0.8rem; }
.contact-mail {
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
  word-break: break-word;
}
.contact-mail:hover { color: var(--spark); }
.contact-note { color: var(--body); font-size: var(--text-sm); max-width: 40ch; }

@media (max-width: 1023px) {
  .prose-grid { grid-template-columns: 1fr; }
  .prose-grid h2 { position: static; }
  .team-row { grid-template-columns: 1fr; gap: 0.8rem; }
  .team-row .team-contact { justify-self: start; text-align: left; }
  .fact-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Reveal system — initial states only when JS + motion are live.
   No-JS and reduced-motion users see everything, always.
   -------------------------------------------------------------------------- */

html.js.motion [data-reveal] { opacity: 0; }
html.js.motion [data-hero-eyebrow],
html.js.motion [data-hero-sub],
html.js.motion [data-hero-cue] { opacity: 0; }
html.js.motion [data-hero-line] { transform: translateY(112%); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* No-JS: nav is always solid ivory with visible links; menu toggle is useless */
html.no-js .site-nav {
  background: var(--ground);
  border-bottom-color: var(--line-hair);
}
html.no-js .nav-links a, html.no-js .nav-cta { color: var(--ink); border-color: var(--line-soft); }
html.no-js .brand-white { opacity: 0; }
html.no-js .brand-color { opacity: 1; }
html.no-js .nav-toggle { display: none !important; }
html.no-js .hero-pause { display: none; }

@media (max-width: 1023px) {
  .nav-links { display: none; }
  html.no-js .nav-links { display: flex; }
  .nav-toggle { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-row { grid-template-columns: 48px minmax(0, 1fr); }
  .approach-copy { grid-column: 2; }
  .criteria-grid { grid-template-columns: 1fr; }
  .criteria-media { aspect-ratio: 4 / 3; order: -1; }
  .footer-links { text-align: left; }
}

@media (max-width: 639px) {
  :root { --nav-h: 64px; }
  .nav-brand img { height: 28px; }
  .nav-cta { display: none; }
  .br-desk { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .hero-cue { display: none; }
  .statement-foot { flex-direction: column; }
  .footer-top { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   Reduced motion — kill everything, show everything
   -------------------------------------------------------------------------- */

@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;
  }
  html.js.motion [data-reveal],
  html.js.motion [data-hero-eyebrow],
  html.js.motion [data-hero-sub],
  html.js.motion [data-hero-cue] { opacity: 1; }
  html.js.motion [data-hero-line] { transform: none; }
  .curtain { display: none; }
}
