/* Valet Operations Labs Website V3 Design System */
/* Positioning: Operational Intelligence for Service Businesses */

:root {
  /* Core Colors */
  --valet-navy: #07111F;
  --command-charcoal: #151A22;
  --executive-ivory: #F5F2EB;
  --brass-gold: #C7A267;
  --heritage-bronze: #9A7B4F;
  --slate: #56616B;

  /* Tints */
  --navy-950: #03080F;
  --navy-900: #07111F;
  --navy-850: #0B1828;
  --navy-800: #0E2134;
  --ivory-100: #F8F6F0;
  --ivory-200: #F5F2EB;
  --ivory-300: #E7E0D4;
  --gold-300: #D9BD82;
  --gold-400: #C7A267;
  --gold-500: #A98247;

  /* Functional Colors - muted, executive only */
  --success: #2D6A4F;
  --warning: #B78727;
  --risk: #8F3D3D;

  /* Typography */
  --font-display: Canela, "Tiempos Headline", Georgia, "Times New Roman", serif;
  --font-body: "Neue Haas Grotesk", "Suisse Int'l", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Layout */
  --max-page: 1440px;
  --content: 1180px;
  --reading: 760px;
  --gutter: clamp(24px, 4vw, 72px);

  /* Spacing */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;
  --space-9: 160px;

  /* Motion */
  --ease-executive: cubic-bezier(.19,1,.22,1);
  --duration-slow: 900ms;
  --duration-medium: 520ms;
  --duration-fast: 240ms;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--valet-navy);
}

body {
  margin: 0;
  color: var(--executive-ivory);
  background: var(--valet-navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

img, svg { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--content), calc(100vw - (var(--gutter) * 2)));
  margin-inline: auto;
}

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

.section--ivory {
  background: var(--executive-ivory);
  color: var(--valet-navy);
}

.section--navy {
  background: linear-gradient(180deg, var(--navy-950), var(--valet-navy));
  color: var(--executive-ivory);
}

/* Resolution-independent atmosphere sections (CSS glow + SVG geometry, crisp at any res) */
.section--svg {
  position: relative;
  overflow: hidden;
  background: var(--valet-navy);
}
.section--svg > .section__geo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none;
}
.section--svg > .section__glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.section__glow--helm     { background: radial-gradient(ellipse 44% 72% at 56% 20%, rgba(199,162,103,.22), rgba(199,162,103,.05) 46%, rgba(7,17,31,0) 74%); }
.section__glow--briefing { background: radial-gradient(ellipse 52% 82% at 50% 40%, rgba(199,162,103,.15), rgba(7,17,31,0) 70%); }
.section--svg::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(7,17,31,.74) 0%, rgba(7,17,31,.34) 46%, rgba(7,17,31,.06) 80%, rgba(7,17,31,0) 100%);
}
.section--svg > .container { position: relative; z-index: 2; }

/* Sections carrying a layered atmosphere image (base img + HTML text on top) */
.section--imaged {
  position: relative;
  overflow: hidden;
  background: var(--valet-navy);
}

.section--imaged > .section__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: .9;
}

/* Navy scrim keeps ivory text legible over the atmosphere image */
.section--imaged::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgba(7,17,31,.82) 0%, rgba(7,17,31,.52) 46%, rgba(7,17,31,.18) 76%, rgba(7,17,31,.05) 100%);
}

.section--imaged > .container {
  position: relative;
  z-index: 2;
}

/* Centered sections (Executive Briefing CTAs, centered doctrine quotes) need a
   SYMMETRIC scrim — the default left-to-right gradient is weakest exactly where
   centered text sits. This keeps ivory text legible over the brightest assets. */
.section--imaged.cta-briefing::after {
  background:
    linear-gradient(90deg, rgba(7,17,31,.74) 0%, rgba(7,17,31,.56) 50%, rgba(7,17,31,.74) 100%),
    radial-gradient(ellipse 80% 75% at 50% 50%, rgba(7,17,31,.30), rgba(7,17,31,.66));
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass-gold);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.035em;
  margin: 0;
}

.h1 {
  font-size: clamp(54px, 7.5vw, 112px);
  line-height: .92;
  max-width: 760px;
}

.h2 {
  font-size: clamp(40px, 5vw, 76px);
  line-height: .98;
}

.h3 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
}

.body-large {
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.55;
  max-width: var(--reading);
}

.body {
  font-size: 16px;
  line-height: 1.65;
}

.caption {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.metric {
  font-family: var(--font-mono);
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid rgba(199,162,103,.65);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  transition: transform var(--duration-fast) var(--ease-executive),
              background var(--duration-fast) var(--ease-executive),
              border-color var(--duration-fast) var(--ease-executive);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--gold-300);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--valet-navy);
}

.btn--ghost {
  background: transparent;
  color: var(--executive-ivory);
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 86px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(245,242,235,.08);
  background: rgba(7,17,31,.72);
  backdrop-filter: blur(18px);
}

.nav__inner {
  width: min(var(--max-page), calc(100vw - 64px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  height: 42px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 42px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 132px var(--gutter) 80px;
  display: grid;
  align-items: center;
  background: #07111F;
  overflow: hidden;
}

/* Layer 1 — clean constellation/rings base image (no baked text) */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Left-side navy scrim so headline copy stays legible over the map */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    #07111F 0%, rgba(7,17,31,.78) 34%, rgba(7,17,31,.10) 62%, rgba(7,17,31,0) 78%);
}

/* Resolution-independent hero atmosphere: CSS-gradient glow + SVG geometry
   (replaces the raster hero image — crisp at any display resolution) */
.hero__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle 320px at 71% 50%, rgba(199,162,103,.30), rgba(199,162,103,.08) 45%, rgba(7,17,31,0) 75%);
}
.hero__dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.hero__grid {
  position: relative;
  z-index: 2;
  width: min(var(--max-page), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(48px, 5vw, 100px);
  align-items: center;
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__copy .body-large {
  margin: 30px 0 38px;
  color: rgba(245,242,235,.82);
}

.hero__ctas {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero__ecosystem {
  position: relative;
  min-height: 640px;
}

/* concentric SVG rings — share the compass's exact center */
.hero__rings {
  position: absolute; left: 46%; top: 50%; transform: translate(-50%, -50%);
  width: min(780px, 96%); height: auto; z-index: 0; opacity: .65; pointer-events: none;
}
.ecosystem-mark {
  position: absolute;
  width: min(420px, 56vw);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  filter: drop-shadow(0 0 60px rgba(199,162,103,.45));
}

.ecosystem-label {
  position: absolute;
  width: 150px;
  text-align: center;
  z-index: 2;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--executive-ivory);
}

.ecosystem-label span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--brass-gold);
  font-weight: 500;
}

/* corner labels around the GROW wheel (matches mockup: GW top-left, REL top-right, OPP bottom-left, WEALTH bottom-right) */
.ecosystem-label--tl { top: 19%;    left: 4%; }
.ecosystem-label--tr { top: 19%;    right: 4%; }
.ecosystem-label--bl { bottom: 19%; left: 4%; }
.ecosystem-label--br { bottom: 19%; right: 4%; }

.doctrine {
  display: grid;
  grid-template-columns: .9fr 1.4fr;
  gap: var(--space-7);
  align-items: start;
}

.doctrine__quote {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.doctrine__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid rgba(7,17,31,.18);
}

.doctrine__item {
  min-height: 150px;
  padding: 22px 28px;
  border-right: 1px solid rgba(7,17,31,.18);
  font-size: 15px;
  line-height: 1.35;
}

.doctrine__item:after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--brass-gold);
  margin-top: 28px;
}

.architecture-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(199,162,103,.28);
  border: 1px solid rgba(199,162,103,.28);
}

.architecture-card {
  background: rgba(7,17,31,.82);
  padding: 42px;
  min-height: 280px;
}

/* light variant — dark text columns on an ivory section (Knowledge) */
.architecture-3--light {
  background: rgba(7,17,31,.14);
  border-color: rgba(7,17,31,.14);
}
.architecture-3--light .architecture-card { background: var(--executive-ivory); }
.architecture-3--light .architecture-card h3 { color: var(--valet-navy); }
.architecture-3--light .architecture-card p { color: rgba(7,17,31,.66); }
.arch-icon { width: 42px; height: 42px; margin-bottom: 24px; display: block; }

.architecture-card h3 {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--executive-ivory);
}

.architecture-card p {
  color: rgba(245,242,235,.72);
  max-width: 320px;
}

.grow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grow-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(199,162,103,.32);
  padding: 34px;
  min-height: 440px;
  background: var(--valet-navy);
}

/* Layer 1 — photographic V3 card texture (1x mobile / 2x desktop via <picture>) */
.grow-panel__bg,
.grow-panel__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Light navy scrim — keeps ivory text legible without crushing the V3 texture */
.grow-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7,17,31,.28) 0%, rgba(7,17,31,.22) 55%, rgba(7,17,31,.45) 100%);
}

.grow-panel__content {
  position: relative;
  z-index: 2;
}

.grow-panel h3 {
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.grow-panel .pillar-sub {
  color: var(--brass-gold);
  margin: 6px 0 0;
}
.grow-list { list-style: none; padding: 0; margin: 22px 0 0; }
.grow-list li {
  font-size: 14px; line-height: 1.55; color: rgba(245,242,235,.84);
  padding: 9px 0; border-bottom: 1px solid rgba(245,242,235,.10);
}
.grow-tag { font-family: var(--font-display); font-style: italic; font-size: 14.5px; color: var(--brass-gold); margin: 22px 0 0; }

.timeline {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-7);
}

.timeline__track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  align-items: start;
  position: relative;
}

.timeline__track:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 1px;
  background: rgba(154,123,79,.45);
}

.timeline__item {
  position: relative;
  padding-top: 38px;
  font-size: 13px;
  color: rgba(7,17,31,.78);
}

.timeline__item:before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--brass-gold);
}

.flywheel-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: var(--space-7);
  align-items: center;
}

/* ===== 2-up split rows (two topics side by side, like the mockup) ===== */
.split-row { display: grid; grid-template-columns: 1fr 1fr; }
.split-half {
  position: relative;
  overflow: hidden;
  padding: var(--space-8) clamp(32px, 4vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-half--ivory { background: var(--executive-ivory); color: var(--valet-navy); }
.split-half--dark  { background: var(--valet-navy); color: var(--executive-ivory); }
.split-half__content { position: relative; z-index: 2; }
.split-half .eyebrow { margin-bottom: var(--space-3); }
@media (max-width: 980px) {
  .split-row { grid-template-columns: 1fr; }
}

/* numbered 01/02/03 stack blocks (Three-Stack) */
.stack-blocks { display: flex; flex-direction: column; gap: 1px; background: rgba(7,17,31,.16); border: 1px solid rgba(7,17,31,.16); }
.stack-block { display: flex; gap: 20px; align-items: flex-start; background: var(--executive-ivory); padding: 24px 26px; }
.stack-block--gold { background: var(--brass-gold); }
.stack-num { font-family: var(--font-mono); font-size: 13px; color: var(--brass-gold); padding-top: 3px; min-width: 24px; }
.stack-block--gold .stack-num { color: var(--valet-navy); }
.stack-block h3 { font-family: var(--font-body); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--valet-navy); margin: 0 0 6px; }
.stack-block p { font-size: 14px; line-height: 1.5; color: rgba(7,17,31,.66); margin: 0; }
.stack-block--gold p { color: rgba(7,17,31,.82); }

/* founder half — real compass photo + signature */
.split-half__photo { object-position: center 28%; opacity: .5; }
.section__glow--founder { background: radial-gradient(ellipse 64% 74% at 62% 48%, rgba(199,162,103,.16), rgba(7,17,31,0) 72%); }
.founder-sig { font-family: var(--font-display); font-style: italic; font-size: 26px; color: var(--brass-gold); margin-top: 30px; }

/* Executive Briefing — 2-column with mantra */
.briefing-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-7); align-items: center; }
.briefing-mantra { display: flex; flex-direction: column; gap: 22px; border-left: 1px solid rgba(199,162,103,.32); padding-left: 38px; }
.briefing-mantra div { font-family: var(--font-display); font-size: clamp(20px, 1.9vw, 27px); line-height: 1.15; color: var(--brass-gold); }
@media (max-width: 980px) { .briefing-grid { grid-template-columns: 1fr; } .briefing-mantra { border-left: none; padding-left: 0; } }

.flywheel-dial { text-align: center; }
.flywheel-svg { width: min(540px, 100%); height: auto; overflow: visible; }
.fw-num  { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; fill: var(--brass-gold); }
.fw-name { font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: .04em; fill: var(--valet-navy); }
.fw-desc { font-family: var(--font-body); font-size: 11.5px; letter-spacing: .01em; fill: var(--slate); }

.footer {
  background: #03080F;
  color: rgba(245,242,235,.72);
  padding: 84px 0 40px;
  border-top: 1px solid rgba(199,162,103,.18);
}
.footer__top {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.4fr;
  gap: var(--space-6);
  padding-bottom: 64px;
}
.footer__head {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass-gold);
  font-weight: 700;
  margin-bottom: 22px;
}
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__col a {
  font-size: 14px;
  color: rgba(245,242,235,.74);
  transition: color var(--duration-fast) var(--ease-executive);
}
.footer__col a:hover { color: var(--executive-ivory); }
.footer__cta p { font-size: 14px; line-height: 1.55; margin: 0 0 24px; max-width: 320px; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 36px;
  border-top: 1px solid rgba(245,242,235,.08);
}
.footer__logo { height: 50px; width: auto; }
.footer__meta {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(245,242,235,.5);
}
.footer__meta a { color: rgba(245,242,235,.5); }
.footer__meta a:hover { color: var(--executive-ivory); }
@media (max-width: 980px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__meta { flex-wrap: wrap; gap: 16px; }
}

/* Inside page */
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 64vh;
  padding: 160px var(--gutter) 96px;
  display: flex;
  align-items: end;
  background: linear-gradient(180deg, var(--navy-950), var(--valet-navy));
}

/* Atmospheric layered header — base image + scrim + live text (same method as the homepage hero) */
.page-hero--imaged { background: var(--valet-navy); }

.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: .92;
}

.page-hero--imaged::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7,17,31,.88) 0%, rgba(7,17,31,.62) 46%, rgba(7,17,31,.20) 80%, rgba(7,17,31,.04) 100%),
    linear-gradient(180deg, rgba(7,17,31,.5) 0%, rgba(7,17,31,0) 32%);
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  width: min(var(--content), 100%);
  margin: 0 auto;
}

/* Optional faint brand motif on inside-page headers */
.page-hero__overlay {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 34vw, 460px);
  z-index: 1;
  opacity: .5;
  pointer-events: none;
}

.breadcrumb {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass-gold);
  margin-bottom: 36px;
}

/* ============ ARTICLES / INSIGHTS ============ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(7,17,31,.12);
  border: 1px solid rgba(7,17,31,.12);
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--executive-ivory);
  padding: 40px 34px 36px;
  text-decoration: none;
  color: var(--valet-navy);
  transition: background .5s cubic-bezier(.19,1,.22,1), transform .5s cubic-bezier(.19,1,.22,1);
}
.article-card:hover {
  background: #fff;
  transform: translateY(-3px);
}
.article-card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--heritage-bronze);
  margin-bottom: 18px;
}
.article-card__title {
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}
.article-card__excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(7,17,31,.68);
  margin: 0 0 28px;
}
.article-card__more {
  margin-top: auto;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brass-gold);
}

/* Featured first card spans full width */
.article-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-6);
  align-items: center;
  padding: 56px 48px;
}
.article-card--featured .article-card__title { font-size: clamp(34px, 3.4vw, 50px); }
.article-card--featured .article-card__excerpt { font-size: 18px; }

/* Article reading layout */
.article-body {
  width: min(var(--reading), 100%);
  margin: 0 auto;
}
.article-body > * + * { margin-top: 28px; }
.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-top: 64px;
}
.article-body p {
  font-size: 19px;
  line-height: 1.62;
  color: rgba(7,17,31,.82);
}
.article-body blockquote {
  margin: 40px 0;
  padding-left: 28px;
  border-left: 3px solid var(--brass-gold);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.32;
  color: var(--valet-navy);
}
.article-body .lead {
  font-size: 23px;
  line-height: 1.5;
  color: var(--valet-navy);
}

@media (max-width: 980px) {
  .article-grid { grid-template-columns: 1fr 1fr; }
  .article-card--featured { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .article-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  /* Mobile nav: keep links reachable (no JS hamburger needed). Let the bar grow,
     stack logo over a wrapping link row, and tighten spacing/type. */
  .nav { height: auto; padding: 12px 0; }
  .nav__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: min(var(--max-page), calc(100vw - 40px));
  }
  .nav__logo { height: 34px; width: auto; }
  .nav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    width: 100%;
    font-size: 11px;
    letter-spacing: .1em;
  }
  /* Duplicate briefing CTA lives in the page body — drop it from the mobile bar */
  .nav__links .btn { display: none; }
  .hero__grid,
  .doctrine,
  .timeline,
  .flywheel-grid {
    grid-template-columns: 1fr;
  }
  /* Stack the compass + labels into a centered legend (no overlap) */
  .hero__ecosystem {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 48px;
  }
  .ecosystem-mark {
    position: static;
    transform: none;
    width: 200px;
    margin: 0 auto 8px;
  }
  .ecosystem-label,
  .ecosystem-label--top,
  .ecosystem-label--right,
  .ecosystem-label--bottom,
  .ecosystem-label--left {
    position: static;
    inset: auto;
    text-align: center;
  }
  .doctrine__list,
  .architecture-3,
  .grow-grid {
    grid-template-columns: 1fr;
  }
  .timeline__track {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .timeline__track:before { display: none; }

  /* Inside-page sections use inline multi-column grids — force them to stack on mobile */
  .section .container[style*="grid-template-columns"] {
    display: block !important;
  }
  .section .container[style*="grid-template-columns"] > * + * {
    margin-top: 40px;
  }
  /* Inline multi-column content blocks (mission/vision, GROW capability grids,
     3-up comparisons) stack — and keep spacing between the stacked children */
  .section [style*="grid-template-columns:1fr 1fr"],
  .section [style*="grid-template-columns: 1fr 1fr"] {
    display: block !important;
  }
  .section [style*="grid-template-columns:1fr 1fr"] > * + *,
  .section [style*="grid-template-columns: 1fr 1fr"] > * + * {
    margin-top: 32px;
  }
  /* Inline repeat(N,…) grids (e.g. Operational Credentials 3-up on About) —
     inline style beats the .doctrine__list rule below, so stack explicitly */
  .section [style*="grid-template-columns:repeat"],
  .section [style*="grid-template-columns: repeat"] {
    display: block !important;
    border-left: none !important;
  }
  .section [style*="grid-template-columns:repeat"] > * + *,
  .section [style*="grid-template-columns: repeat"] > * + * {
    margin-top: 24px;
  }
  /* Doctrine credential list stacks single-column on mobile */
  .doctrine__list { grid-template-columns: 1fr !important; }
  .doctrine__item { border-right: none !important; }
  /* Footer sitemap grid (1fr auto) also stacks on mobile */
  .footer .container[style*="grid-template-columns"] {
    display: block !important;
  }
  .footer .container[style*="grid-template-columns"] > * + * {
    margin-top: 32px;
  }
  .footer nav[style*="text-align:right"] {
    text-align: left !important;
  }
}

@media (max-width: 640px) {
  .section { padding: 82px 0; }
  .hero { padding-top: 120px; }
  .hero__ecosystem { min-height: 380px; }
  .ecosystem-mark { width: 260px; }
  .ecosystem-label { font-size: 10px; }
  .btn { width: 100%; justify-content: center; }
}

/* PHONE: hero display type scaled to a comfortable phone size (was clamp min 54px) */
@media (max-width: 600px) {
  .h1 { font-size: clamp(30px, 8.6vw, 40px); line-height: 1.08; }
  .h2 { font-size: clamp(26px, 7.2vw, 34px); }
}