/* Hallmark · component: mobile menu · genre: editorial · theme: ACES preserved
 * states: default · hover · focus · active · disabled · loading · error · success
 * contrast: pass (navy/gold/off-white)
 */
/* ============================================
   ACES Development Group — Shared Stylesheet
   ============================================ */

:root {
  --color-navy:        #0D1B2A;
  --color-navy-mid:    #1A2E44;
  --color-navy-light:  #243B55;
  --color-gold:        #C9A84C;
  --color-gold-light:  #E8C97A;
  --color-gold-dim:    rgba(201,168,76,0.1);
  --color-white:       #FFFFFF;
  --color-off-white:   #FAFAF8;
  --color-surface:     #F4F2EE;
  --color-border:      #E8E4DC;
  --color-border-dark: rgba(201,168,76,0.2);
  --color-text:        #111827;
  --color-text-muted:  #6B7280;
  --color-text-light:  #9CA3AF;
  --color-error:       #B42318;
  --color-success:     #2F7D32;

  --font-display: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --font-body:    "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1400px;
  --gutter: clamp(20px, 4vw, 64px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
img, svg { display: block; max-width: 100%; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
}

/* ---------- TYPE ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--color-navy);
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-gold);
}

.eyebrow-navy {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-navy);
}

.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--color-text-muted);
  font-weight: 400;
  text-wrap: pretty;
  max-width: 60ch;
}

h2.display { font-size: clamp(36px, 4.5vw, 56px); }
h3.display { font-size: clamp(28px, 3vw, 38px); }

/* ---------- LAYOUT ---------- */

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

section { padding-block: clamp(72px, 9vw, 128px); }

.rule-gold { border-top: 1px solid var(--color-border-dark); }
.rule { border-top: 1px solid var(--color-border); }

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-navy);
}
.btn-primary:hover {
  background: var(--color-gold-light);
  transform: translateY(-1px);
}

.btn-navy {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn-navy:hover { background: var(--color-navy-mid); }

.btn-ghost {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-navy);
}
.btn-ghost:hover { background: var(--color-navy); color: var(--color-white); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 4px;
  transition: gap 0.2s ease;
}
.btn-link:hover { gap: 16px; }

.btn .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- NAV ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-navy);
  min-width: 0;
}
.nav a:focus-visible,
.nav button:focus-visible,
.mobile-menu a:focus-visible,
.mobile-menu button:focus-visible {
  outline: none;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--color-navy);
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--color-navy); }
.nav-links a.active { color: var(--color-navy); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-gold);
}

.nav-cta {
  padding: 12px 22px;
  font-size: 13px;
}

.nav-menu-toggle {
  min-height: 44px;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 0 10px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-navy);
  white-space: nowrap;
}
.nav-menu-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  background: var(--color-off-white);
  position: relative;
}
.nav-menu-icon::before,
.nav-menu-icon::after {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--color-navy);
  position: absolute;
  transition: transform 180ms var(--ease-out), background-color 180ms var(--ease-out);
}
.nav-menu-icon::before { transform: translateY(-4px); }
.nav-menu-icon::after { transform: translateY(4px); }
.nav-menu-toggle:hover .nav-menu-icon,
.nav-menu-toggle:focus-visible .nav-menu-icon {
  border-color: var(--color-gold);
}
.nav-menu-toggle:active .nav-menu-icon::before { transform: translateY(-3px); }
.nav-menu-toggle:active .nav-menu-icon::after { transform: translateY(3px); }
.nav-menu-toggle[disabled],
.nav-menu-toggle[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}
.nav-menu-toggle[data-state="loading"] .nav-menu-icon::before {
  transform: rotate(90deg);
}
.nav-menu-toggle[data-state="loading"] .nav-menu-icon::after {
  transform: rotate(0deg);
}
.nav-menu-toggle[data-state="error"] .nav-menu-icon {
  border-color: var(--color-error);
}
.nav-menu-toggle[data-state="success"] .nav-menu-icon {
  border-color: var(--color-success);
}

.mobile-menu {
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: none;
}
.mobile-menu::backdrop {
  background: rgba(13,27,42,0.34);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.mobile-menu[open] {
  animation: mobileMenuIn 260ms var(--ease-out) both;
}
.mobile-menu-panel {
  min-height: 100dvh;
  max-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  padding: 18px var(--gutter) max(18px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}
.mobile-menu-head .brand {
  min-width: 0;
}
.mobile-menu-close {
  min-height: 44px;
  padding: 10px 0 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.mobile-menu-close:hover {
  color: var(--color-navy);
}
.mobile-menu-close:active {
  transform: translateY(1px);
}
.mobile-menu-links {
  list-style: none;
  display: grid;
  gap: 0;
}
.mobile-menu-links a {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-navy);
  white-space: nowrap;
}
.mobile-menu-links a::after {
  content: "→";
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-gold);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.mobile-menu-links a:hover::after,
.mobile-menu-links a:focus-visible::after,
.mobile-menu-links a.active::after {
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-links a.active {
  color: var(--color-text);
}
.mobile-menu-cta {
  width: 100%;
  justify-content: space-between;
}
@keyframes mobileMenuIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .nav-inner { gap: 16px; }
  .nav-links,
  .nav-cta { display: none; }
  .nav .brand-name {
    max-width: min(56vw, 260px);
  }
  .nav-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    padding-inline: 0;
  }
  .nav-menu-icon { display: none; }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 15px;
  }
  .brand-name small {
    font-size: 8.5px;
  }
  .mobile-menu-links a {
    font-size: clamp(25px, 7.7vw, 30px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu[open] {
    animation-duration: 1ms;
  }
  .nav-menu-icon::before,
  .nav-menu-icon::after,
  .mobile-menu-links a::after {
    transition-duration: 1ms;
  }
}

/* ---------- HERO ---------- */

.hero {
  /* Top padding reduced 30% to tighten the gap below the nav */
  padding-block: clamp(56px, 7.7vw, 112px) clamp(72px, 9vw, 128px);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.hero h1.display {
  font-size: clamp(44px, 6.2vw, 88px);
  margin: 28px 0 clamp(24px, 2.6vw, 36px);
}

.hero .lede {
  margin: 0;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(24px, 2.6vw, 36px);
}

/* ---------- HERO FEED (animated dossier panel) ---------- */

.hero-feed {
  position: relative;
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  /* Nudges the panel down to start where the headline starts */
  margin-top: clamp(36px, 5vw, 64px);
  box-shadow: 0 1px 0 rgba(13,27,42,0.02), 0 24px 48px -32px rgba(13,27,42,0.18);
  overflow: hidden;
}

.hero-feed-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.hero-feed-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 0 rgba(201,168,76,0.55);
  animation: feedPulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes feedPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.55); }
  60%      { box-shadow: 0 0 0 8px rgba(201,168,76,0); }
}
.hero-feed-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-navy);
  font-weight: 500;
}
.hero-feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.hero-feed-item {
  position: relative;
  padding: 22px 20px 22px 30px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: background-color 0.45s ease, padding-left 0.45s cubic-bezier(0.2,0.7,0.2,1);
  opacity: 0;
  transform: translateX(10px);
}
.hero-feed-item:last-child { border-bottom: none; }

.hero-feed.is-ready .hero-feed-item {
  animation: feedItemIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-feed.is-ready .hero-feed-item:nth-child(1) { animation-delay: 0.10s; }
.hero-feed.is-ready .hero-feed-item:nth-child(2) { animation-delay: 0.20s; }
.hero-feed.is-ready .hero-feed-item:nth-child(3) { animation-delay: 0.30s; }
.hero-feed.is-ready .hero-feed-item:nth-child(4) { animation-delay: 0.40s; }
@keyframes feedItemIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-feed-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--color-text-light);
  min-width: 22px;
  transition: color 0.45s ease;
}
.hero-feed-label {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: -0.005em;
  transition: color 0.45s ease;
  line-height: 1.35;
}
.hero-feed-meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--color-text-light);
  text-transform: uppercase;
  transition: color 0.45s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-feed-meta::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-text-light);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.4s ease;
}

.hero-feed-item.is-active {
  background: var(--color-gold-dim);
  padding-left: 38px;
}
.hero-feed-item.is-active .hero-feed-num { color: var(--color-gold); }
.hero-feed-item.is-active .hero-feed-label { color: var(--color-navy); }
.hero-feed-item.is-active .hero-feed-meta { color: var(--color-navy); }
.hero-feed-item.is-active .hero-feed-meta::before {
  opacity: 1;
  transform: scale(1);
  background: var(--color-gold);
}

/* Travelling gold indicator */
.hero-feed-indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 25%; /* 1 of 4 rows */
  background: var(--color-gold);
  transform: translateY(calc(var(--pos, 0) * 100%));
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 2;
  opacity: 0;
}
.hero-feed.is-ready .hero-feed-indicator {
  opacity: 1;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.4s ease 0.5s;
}
.hero-feed-indicator::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 1px;
  background: var(--color-gold);
}

/* Progress ticks under the panel */
.hero-feed-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-top: 1px solid var(--color-border);
  background: var(--color-white);
}
.hero-feed-progress {
  display: flex;
  gap: 8px;
  flex: 1;
}
.hero-feed-tick {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  position: relative;
  overflow: hidden;
}
.hero-feed-tick::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-feed-tick.is-active::after {
  animation: tickFill 3.5s linear forwards;
}
.hero-feed-tick.is-done::after {
  transform: scaleX(1);
  background: var(--color-gold);
  opacity: 0.4;
}
@keyframes tickFill {
  to { transform: scaleX(1); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-feed { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-feed-dot { animation: none; }
  .hero-feed.is-ready .hero-feed-item { animation: none; opacity: 1; transform: none; }
  .hero-feed-indicator { transition: none; }
  .hero-feed-tick.is-active::after { animation: none; transform: scaleX(1); }
}

/* ---------- SECTION HEADERS ---------- */

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 6vw, 96px);
  margin-bottom: clamp(48px, 6vw, 80px);
  align-items: end;
}
.section-head .eyebrow { margin-bottom: 16px; display: block; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- PROCESS / NUMBERED STEPS ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-border);
}
.process-item {
  padding: 40px 32px 40px 0;
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.process-item:last-child { border-right: none; padding-right: 0; }
.process-item:not(:last-child) { padding-right: 32px; }
.process-item:not(:first-child) { padding-left: 32px; }

.process-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-gold);
  letter-spacing: 0.16em;
}
.process-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.process-body {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
  text-wrap: pretty;
}

@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-item { border-right: none; border-bottom: 1px solid var(--color-border); padding: 32px 0 !important; }
  .process-item:last-child { border-bottom: none; }
}

.about-approach .process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--color-border);
}
.about-approach .process-item {
  min-width: 0;
  min-height: 272px;
  gap: 18px;
  padding: clamp(40px, 4vw, 56px) clamp(30px, 3vw, 44px);
  border-right: 1px solid var(--color-border);
}
.about-approach .process-item:first-child {
  padding-left: 0;
}
.about-approach .process-item:last-child {
  border-right: none;
  padding-right: 0;
}
.about-approach .process-num {
  font-size: 12px;
  letter-spacing: 0.22em;
  margin-bottom: 10px;
}
.about-approach .process-title {
  font-size: clamp(24px, 2.1vw, 31px);
  line-height: 1.08;
  max-width: 15ch;
}
.about-approach .process-body {
  font-size: clamp(15.5px, 1.25vw, 18px);
  line-height: 1.55;
  max-width: 28ch;
}

@media (max-width: 1100px) {
  .about-approach .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-approach .process-item {
    border-bottom: 1px solid var(--color-border);
  }
  .about-approach .process-item:nth-child(2n) {
    border-right: none;
    padding-right: 0;
  }
  .about-approach .process-item:nth-child(2n + 1) {
    padding-left: 0;
  }
  .about-approach .process-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .about-approach .process-grid {
    grid-template-columns: 1fr;
  }
  .about-approach .process-item {
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 32px 0 !important;
  }
  .about-approach .process-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--color-border);
  }
  .about-approach .process-item:last-child {
    border-bottom: none;
  }
  .about-approach .process-title,
  .about-approach .process-body {
    max-width: none;
  }
}

/* ---------- AUDIENCE CARDS ---------- */

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.audience-card {
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}
.audience-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-2px);
}
.audience-card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--color-gold);
  text-transform: uppercase;
}
.audience-card h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.audience-card p {
  color: var(--color-text-muted);
  font-size: 15.5px;
}
.audience-card .btn-link { margin-top: 12px; align-self: flex-start; }

@media (max-width: 800px) { .audience-grid { grid-template-columns: 1fr; } }

/* ---------- TRUST PILLARS ---------- */

.trust-section {
  background: var(--color-off-white);
  position: relative;
  overflow: clip;
}
.trust-section .section-head {
  margin-bottom: clamp(44px, 5vw, 68px);
}
.trust-section .lede {
  max-width: 54ch;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding-top: clamp(26px, 3vw, 34px);
  border-top: 1px solid var(--color-navy);
  position: relative;
}
.pillar::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 46px;
  height: 2px;
  background: var(--color-gold);
}

/* Animated variant — used with IntersectionObserver toggling .in-view on .pillars.animate */
html.js .pillars.animate .pillar {
  border-top: none;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.52s var(--ease-out),
    transform 0.72s var(--ease-out);
  transition-delay: var(--pd, 0s);
}
html.js .pillars.animate .pillar::before { display: none; }
.pillar-rule,
.pillar-accent {
  position: absolute;
  left: 0;
  transform: scaleX(0);
  transform-origin: left center;
}
.pillar-rule {
  top: 0;
  right: 0;
  height: 1px;
  background: var(--color-navy);
  opacity: 0.9;
  transition: transform 0.82s var(--ease-out);
  transition-delay: calc(var(--pd, 0s) + 0.04s);
}
.pillar-accent {
  top: -1px;
  width: 46px;
  height: 2px;
  background: var(--color-gold);
  transition: transform 0.5s var(--ease-out);
  transition-delay: calc(var(--pd, 0s) + 0.26s);
}
html.js .pillars.animate .pillar .num,
html.js .pillars.animate .pillar h4,
html.js .pillars.animate .pillar p {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.62s var(--ease-out);
}
html.js .pillars.animate .pillar .num { transition-delay: calc(var(--pd, 0s) + 0.18s); }
html.js .pillars.animate .pillar h4  { transition-delay: calc(var(--pd, 0s) + 0.28s); }
html.js .pillars.animate .pillar p   { transition-delay: calc(var(--pd, 0s) + 0.38s); }

html.js .pillars.animate.in-view .pillar-rule,
html.js .pillars.animate.in-view .pillar-accent {
  transform: scaleX(1);
}
html.js .pillars.animate.in-view .pillar {
  opacity: 1;
  transform: translateY(0);
}
html.js .pillars.animate.in-view .pillar .num,
html.js .pillars.animate.in-view .pillar h4,
html.js .pillars.animate.in-view .pillar p {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  html.js .pillars.animate.in-view .pillar:hover {
    transform: translateY(-3px);
    transition-delay: 0s;
  }
  html.js .pillars.animate.in-view .pillar:hover .pillar-accent {
    transform: scaleX(1.18);
    transition-delay: 0s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pillar-rule,
  .pillar-accent,
  .pillars.animate .pillar,
  .pillars.animate .pillar .num,
  .pillars.animate .pillar h4,
  .pillars.animate .pillar p {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
.pillar .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-gold);
  letter-spacing: 0.14em;
}
.pillar h4 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 500;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.pillar p {
  font-size: 14.5px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .pillars {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- CTA STRIP ---------- */

.cta-strip {
  background: var(--color-navy);
  color: var(--color-white);
  padding: clamp(56px, 7vw, 96px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.cta-strip-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 48px;
  align-items: center;
}
.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-white);
  text-wrap: pretty;
}
.cta-strip h2 em {
  font-style: italic;
  color: var(--color-gold-light);
}
.cta-strip-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-strip .btn-ghost { color: var(--color-white); border-color: rgba(255,255,255,0.3); }
.cta-strip .btn-ghost:hover { background: var(--color-white); color: var(--color-navy); }

@media (max-width: 800px) {
  .cta-strip-inner { grid-template-columns: 1fr; }
}

/* ---------- FOOTER ---------- */

footer.site {
  background: var(--color-off-white);
  border-top: 1px solid var(--color-border);
  padding: 80px var(--gutter) 32px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--color-border);
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--color-text); font-size: 14px; }
.footer-col li a:hover { color: var(--color-navy); border-bottom: 1px solid var(--color-gold); }
.footer-tagline {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 20px 0 24px;
  text-wrap: pretty;
}
.footer-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.footer-col .footer-links {
  margin-top: 28px;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px 32px;
}
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom a {
  color: var(--color-text-muted);
}
.footer-bottom a:hover {
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-gold);
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- PLACEHOLDER IMAGE ---------- */

.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      var(--color-surface) 0px, var(--color-surface) 8px,
      var(--color-off-white) 8px, var(--color-off-white) 16px);
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ph-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  background: var(--color-off-white);
  padding: 8px 14px;
  border: 1px solid var(--color-border);
}
.ph-dark {
  background:
    repeating-linear-gradient(135deg,
      var(--color-navy-mid) 0px, var(--color-navy-mid) 8px,
      var(--color-navy) 8px, var(--color-navy) 16px);
  border: 1px solid var(--color-navy-light);
}
.ph-dark .ph-label {
  background: var(--color-navy);
  color: var(--color-gold-light);
  border: 1px solid var(--color-navy-light);
}

/* ---------- PAGE HEADER (inner pages) ---------- */

.page-head {
  /* Top padding reduced 30% to tighten the gap below the nav */
  padding-block: clamp(50px, 7vw, 101px) clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--color-border);
}
.page-head-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}
.page-head h1.display {
  font-size: clamp(40px, 5.6vw, 76px);
  margin-top: 24px;
}
.page-head .lede { margin-top: 28px; }
.page-head-meta {
  border-left: 1px solid var(--color-border);
  padding-left: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  line-height: 2;
  text-transform: uppercase;
}
.page-head-meta strong { color: var(--color-navy); font-weight: 500; }

@media (max-width: 800px) {
  .page-head-grid { grid-template-columns: 1fr; }
  .page-head-meta { border-left: none; border-top: 1px solid var(--color-border); padding: 24px 0 0; }
}

/* ---------- FORM ---------- */

.form {
  display: grid;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  border-radius: 2px;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out);
  width: 100%;
}
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline-color: var(--color-gold);
  border-color: var(--color-gold);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note {
  font-size: 13px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-note::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
}

/* ---------- BADGES ---------- */

.badge-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--color-gold-dim);
  border: 1px solid var(--color-border-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-navy);
}
.badge::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
}

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 28px 0;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 24px;
  align-items: start;
}
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-q {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 12px;
  text-wrap: pretty;
}
.faq-a {
  font-size: 15.5px;
  color: var(--color-text-muted);
  line-height: 1.65;
  text-wrap: pretty;
}
.faq-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--color-gold);
  padding-top: 8px;
}

/* ---------- LIST WITH GOLD DOTS ---------- */

.gold-list {
  list-style: none;
  display: grid;
  gap: 14px;
}
.gold-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--color-text);
}
.gold-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 1px;
  background: var(--color-gold);
}

/* ---------- COUNTY / ZIP TABLES ---------- */

.data-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--color-border);
}
.data-table tr { border-bottom: 1px solid var(--color-border); }
.data-table th, .data-table td {
  text-align: left;
  padding: 18px 16px;
  vertical-align: top;
}
.data-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.data-table td.county {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  width: 30%;
}
.data-table td.zips {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text);
  letter-spacing: 0.04em;
}
.data-table td.focus {
  font-size: 14px;
  color: var(--color-text-muted);
  width: 28%;
}
.data-table tr.primary td.county { color: var(--color-navy); }
.data-table tr.primary td::after {}
.data-table .focus-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid var(--color-border-dark);
  padding: 4px 8px;
  margin-right: 6px;
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .data-table tr {
    padding: 24px 0;
  }

  .data-table th,
  .data-table td {
    padding: 0;
  }

  .data-table td.county {
    width: auto;
    margin-bottom: 10px;
    font-size: 32px;
    line-height: 1.08;
  }

  .data-table td.zips {
    font-size: 14px;
    line-height: 1.65;
    letter-spacing: 0.02em;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .data-table td.focus {
    width: auto;
    margin-top: 14px;
  }
}

/* ---------- TWO-COL EDITORIAL ---------- */

.editorial {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.editorial .col-side {
  /* Removed sticky scroll behavior */
}
.editorial .col-body p { margin-bottom: 20px; color: var(--color-text); font-size: 16.5px; line-height: 1.75; }
.editorial .col-body p:last-child { margin-bottom: 0; }
.editorial .col-body p.first { font-family: var(--font-display); font-size: 24px; color: var(--color-navy); line-height: 1.4; letter-spacing: -0.01em; }

@media (max-width: 800px) {
  .editorial { grid-template-columns: 1fr; }
  .editorial .col-side { position: static; }
}

/* ---------- VALUES GRID ---------- */

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.value {
  padding: 36px 24px 36px 0;
  border-right: 1px solid var(--color-border);
}
.value:not(:first-child) { padding-left: 24px; }
.value:last-child { border-right: none; padding-right: 0; }
.value .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-gold);
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.value h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.15;
}
.value p { font-size: 14.5px; color: var(--color-text-muted); line-height: 1.55; }

@media (max-width: 800px) {
  .values { grid-template-columns: 1fr 1fr; }
  .value { border-right: none; border-bottom: 1px solid var(--color-border); padding: 28px 0 !important; }
}

/* ---------- RESOURCE STRIP ---------- */

.resource-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.resource {
  padding: 36px 20px;
  border-right: 1px solid var(--color-border);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.resource:last-child { border-right: none; }
.resource .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-gold);
  letter-spacing: 0.14em;
}
.resource h4 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.resource p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .resource-strip { grid-template-columns: 1fr 1fr; }
  .resource { border-right: none; border-bottom: 1px solid var(--color-border); }
}

/* ---------- DARK SECTION ---------- */

section.dark {
  background: var(--color-navy);
  color: var(--color-white);
}
section.dark .display { color: var(--color-white); }
section.dark .lede { color: rgba(255,255,255,0.7); }
section.dark .eyebrow { color: var(--color-gold-light); }

/* ---------- UTIL ---------- */

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: 12px; }
.gap-md { gap: 20px; }
.gap-lg { gap: 32px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
.center { text-align: center; }

/* ---------- SCROLL REVEAL ----------
   Apply only when JS has marked <html class="js"> — protects no-JS users
   from invisible content. reveal.js tags elements and observes them. */

html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-d, 0ms),
    transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-d, 0ms);
  will-change: opacity, transform;
}
html.js .reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
