/* ============================================================
   Haynes Compliance — shared stylesheet
   Edit colours, fonts and spacing here once; applies sitewide.
   ============================================================ */

:root {
  --navy:        #16242F;
  --navy-dark:   #0F1A22;
  --navy-soft:   #1E3340;
  --gold:        #B08D4F;
  --gold-light:  #C9A767;
  --cream:       #F4F1EA;
  --cream-line:  #E4DECF;
  --white:       #FFFFFF;
  --slate:       #5A6B75;
  --slate-light: #8A98A0;
  --ink:         #1B2731;

  --maxw: 1180px;
  --gap:  clamp(1rem, 3vw, 2.5rem);

  /* one calm, consistent easing across the whole site */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  /* sticky-footer layout: page always fills the window */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
/* on short pages, the last section grows to fill the viewport (no blank gap) */
body > section:last-of-type { flex-grow: 1; }
.site-footer { margin-top: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* No drifting backgrounds or parallax — show everything settled */
  .hero-glow, .hero-shield, .ghost-shield { animation: none !important; }
  .hero-shield { opacity: 0.09 !important; transform: translateY(-50%) !important; }
  .ghost-shield { transform: translateY(-50%) !important; }
  .hero-line, .reveal,
  .page-intro .eyebrow, .page-intro h1, .page-intro p { opacity: 1 !important; transform: none !important; }
  .hero h1 .line > span { transform: none !important; animation: none !important; }
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  color: var(--navy);
  margin: 0 0 0.5em;
  letter-spacing: 0.03em;
  /* keep the f-i pair from colliding in Playfair */
  font-feature-settings: "liga" 0;
}

p { margin: 0 0 1.1em; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(var(--maxw), 92vw); margin: 0 auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 36, 47, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 0;
  transition: padding 0.3s ease;
}
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--white); }
.brand-logo {
  width: auto;
  height: 40px;
  display: block;
  transition: height 0.3s ease;
}
/* Sticky-header transition: shrinks + deepens on scroll */
.site-header.scrolled {
  background: rgba(15, 26, 34, 0.94);
  box-shadow: 0 10px 30px rgba(8, 14, 19, 0.28);
  border-bottom-color: rgba(176,141,79,0.22);
}
.site-header.scrolled .nav { padding: 0.6rem 0; }
.site-header.scrolled .brand-logo { height: 30px; }
.brand-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; }
.brand-sub  { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); display: block; margin-top: -2px; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative;
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1.5px; background: var(--gold-light);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.32s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after { transform: scaleX(1); }
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold-light) !important;
  padding: 0.5rem 1.1rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--gold); color: var(--navy) !important; }

.nav-toggle { display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 0.4rem; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--navy-dark);
    padding: 0.5rem 4vw 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.85rem 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-cta {
    margin-top: 1rem;
    display: block !important;
    width: 100%;
    padding: 0.85rem 1.1rem;
    text-align: center;
    border: 1px solid var(--gold) !important;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(540px, 86vh, 820px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(130% 130% at 78% 12%, #1F3543 0%, var(--navy) 46%, var(--navy-dark) 100%);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

/* ---- Hero background: one soft glow + a single quiet shield ---- */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.hero-glow-a {
  width: 46vw; height: 46vw; max-width: 640px; max-height: 640px;
  top: -14%; right: -6%;
  opacity: 0.42;
  background: radial-gradient(circle, rgba(176,141,79,0.38) 0%, rgba(176,141,79,0) 68%);
  animation: glowDrift 26s var(--ease) infinite;
}
.hero-glow-b { display: none; }
@keyframes glowDrift {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50%     { transform: translate3d(-2%,3%,0) scale(1.05); }
}

.hero-grid { display: none; }

/* real brand shield: fades up once, then drifts very gently. --py from parallax JS */
.hero-shield {
  position: absolute;
  right: -1%;
  top: 50%;
  width: clamp(240px, 36vw, 480px);
  aspect-ratio: 466 / 600;
  background: url("shield-mark.png") center/contain no-repeat;
  opacity: 0.09;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translateY(-50%);
  animation:
    shieldIn 1.4s var(--ease) both,
    heroFloat 14s ease-in-out 1.4s infinite;
}
@keyframes shieldIn {
  0%   { opacity: 0; transform: translateY(-50%) scale(0.96); }
  100% { opacity: 0.09; transform: translateY(-50%) scale(1); }
}
@keyframes heroFloat {
  0%,100% { transform: translateY(calc(-50% + var(--py, 0px))); }
  50%     { transform: translateY(calc(-50% + var(--py, 0px) - 12px)); }
}

.hero .wrap { position: relative; z-index: 1; padding: clamp(3.5rem, 9vw, 6rem) 0; }

/* ---- Headline: smooth line-by-line rise ---- */
.hero h1 {
  color: var(--white);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.8vw, 4.4rem);
  line-height: 1.12;
  max-width: 18ch;
  margin-bottom: 2.4rem;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span {
  display: block;
  transform: translateY(105%);
  animation: lineUp 1s var(--ease) both;
  animation-delay: calc(0.25s + var(--i) * 0.14s);
}
.hero h1 .gold { margin-top: 0.55em; }
.hero h1 .gold > span { color: var(--gold-light); font-style: italic; font-weight: 500; }
@keyframes lineUp { to { transform: none; } }

/* ---- Supporting hero lines: quiet fade + rise ---- */
.hero-line { opacity: 0; transform: translateY(16px); animation: heroRise 1s var(--ease) both; animation-delay: calc(0.5s + var(--i) * 0.12s); }
@keyframes heroRise { to { opacity: 1; transform: none; } }

.hero-lead {
  color: rgba(255,255,255,0.80);
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
  line-height: 1.6;
  max-width: 46ch;
  margin-bottom: 2.4rem;
}
.hero-locations {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-top: 3rem;
  display: flex; align-items: center; gap: 0.9rem;
}
.hero-locations::before { content: ""; width: 30px; height: 1px; background: var(--gold); opacity: 0.7; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.8rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
/* arrow affordance that nudges forward on hover */
.btn::after {
  content: "→";
  font-size: 1.02em;
  line-height: 1;
  transform: translateX(-2px);
  transition: transform 0.28s cubic-bezier(.2,.7,.2,1);
}
.btn:hover::after { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--navy); border: 1px solid var(--gold); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(176,141,79,0.28); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.32); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 62ch; margin-bottom: 3.2rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 500; }
.section-head p { color: var(--slate); font-size: 1.1rem; }
.section-navy .section-head p { color: rgba(255,255,255,0.72); }

/* centred section head variant */
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Industry tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag {
  font-size: 0.88rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--cream-line);
  border-radius: 100px;
  padding: 0.5rem 1.05rem;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease), background 0.35s var(--ease);
}
.tag:hover { border-color: var(--gold); color: var(--gold); }
.section-navy .tag { background: transparent; color: rgba(255,255,255,0.86); border-color: rgba(255,255,255,0.16); }
.section-navy .tag:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* ---------- Service quick-index with hover explainer ---------- */
.svc-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1.6rem; border-top: 1px solid var(--cream-line); }
@media (max-width: 720px) { .svc-grid { grid-template-columns: 1fr; gap: 0; } }
.svc-item {
  display: block;
  padding: 1.3rem 0.4rem 1.3rem 1.4rem;
  border-bottom: 1px solid var(--cream-line);
  position: relative;
  color: var(--navy);
  transition: padding 0.4s var(--ease), background 0.35s var(--ease);
}
.svc-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--gold); transform: scaleY(0); transform-origin: center;
  transition: transform 0.4s var(--ease);
}
.svc-item:hover, .svc-item:focus-visible { padding-left: 1.9rem; background: rgba(176,141,79,0.05); outline: none; }
.svc-item:hover::before, .svc-item:focus-within::before { transform: scaleY(1); }
.svc-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.svc-item .svc-name { font-family: var(--serif); font-size: 1.14rem; font-weight: 500; }
.svc-item .svc-arrow { color: var(--gold); opacity: 0; transform: translateX(-6px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.svc-item:hover .svc-arrow, .svc-item:focus-within .svc-arrow { opacity: 1; transform: none; }

/* explainer: a small navy hover-menu on desktop, inline text on touch */
.svc-desc { color: rgba(255,255,255,0.85); font-size: 0.9rem; line-height: 1.55; }
@media (hover: hover) {
  .svc-desc {
    position: absolute; left: 0.6rem; right: 0.6rem; top: calc(100% - 6px);
    background: var(--navy); border: 1px solid rgba(176,141,79,0.3);
    border-radius: 5px; padding: 0.85rem 1.05rem;
    box-shadow: 0 18px 40px rgba(15,26,34,0.28);
    opacity: 0; transform: translateY(6px); pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
    z-index: 6;
  }
  .svc-item:hover .svc-desc, .svc-item:focus-within .svc-desc { opacity: 1; transform: none; }
}
@media (hover: none) {
  .svc-desc { color: var(--slate); margin-top: 0.45rem; }
}

/* ---------- Editorial service index (Services page) ---------- */
.service-index { border-top: 1px solid var(--cream-line); }
.service-row {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  column-gap: 1.5rem;
  padding: 2.2rem 1rem 2.2rem 0;
  border-bottom: 1px solid var(--cream-line);
  scroll-margin-top: 92px;
  transition: background 0.35s var(--ease);
}
.service-row:hover { background: rgba(176,141,79,0.04); }
.service-row:target { background: rgba(176,141,79,0.07); }
.sr-num {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
  color: var(--gold); line-height: 1; padding-top: 0.35rem;
  transition: color 0.35s var(--ease);
}
.service-row:hover .sr-num { color: var(--gold-light); }
.sr-title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 500; margin-bottom: 0.5rem; }
.sr-desc { color: var(--slate); font-size: 1rem; max-width: 64ch; margin-bottom: 1.1rem; }
.sr-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sr-tags span {
  font-size: 0.8rem; color: var(--slate);
  background: var(--cream); border: 1px solid var(--cream-line);
  border-radius: 100px; padding: 0.32rem 0.85rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.service-row:hover .sr-tags span { border-color: rgba(176,141,79,0.4); }
@media (max-width: 560px) {
  .service-row { grid-template-columns: 1fr; row-gap: 0.6rem; padding: 1.8rem 0; }
  .sr-num { font-size: 1.2rem; padding-top: 0; }
}

/* ---------- Feature points (icon + text rows) ---------- */
.points { display: grid; gap: 1.6rem; }
.point { display: flex; gap: 1rem; align-items: flex-start; }
.point .pico {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(176,141,79,0.12); color: var(--gold);
  display: grid; place-items: center;
}
.point h3 { font-size: 1.1rem; margin-bottom: 0.3rem; font-weight: 600; font-family: var(--sans); }
.point p { color: var(--slate); font-size: 0.96rem; margin: 0; }
.section-navy .point p { color: rgba(255,255,255,0.72); }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--cream-line);
  padding: 1.9rem 1.7rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
/* thin gold top accent that stays subtle, brightens on hover */
.card::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--gold);
  opacity: 0.55;
  transition: opacity 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(22,36,47,0.10);
  border-color: rgba(176,141,79,0.5);
}
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.card p { color: var(--slate); font-size: 0.95rem; margin: 0; }
.section-cream .card { background: var(--white); }

.card-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(176,141,79,0.12);
  color: var(--gold);
  border-radius: 50%;
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.card:hover .card-icon { background: var(--gold); color: var(--white); }

/* ---------- Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .stats { grid-template-columns: 1fr; } }
.stat { border-left: 3px solid var(--gold); padding-left: 1.2rem; }
.stat .num { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--gold-light); font-weight: 700; line-height: 1; }
.stat .lbl { color: rgba(255,255,255,0.72); font-size: 0.9rem; margin-top: 0.6rem; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--cream-line);
  padding: 1.7rem 1.35rem;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.step::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--gold);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.step:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(22,36,47,0.10); border-color: var(--gold-light); }
.step:hover::before { transform: scaleY(1); }
.step .n { font-family: var(--serif); font-size: 1.7rem; color: var(--gold); font-weight: 700; transition: color 0.3s ease; }
.step .rule { width: 28px; height: 2px; background: var(--gold); margin: 0.7rem 0 1rem; transition: width 0.35s cubic-bezier(.2,.7,.2,1); }
.step:hover .rule { width: 48px; }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--slate); font-size: 0.9rem; margin: 0; }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.quote-box {
  background:
    radial-gradient(120% 120% at 88% 0%, var(--navy-soft) 0%, var(--navy) 55%);
  color: var(--white);
  padding: 2.6rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
/* faint brand shield watermark in the corner */
.quote-box::after {
  content: "";
  position: absolute; right: -42px; bottom: -52px;
  width: 190px; height: 245px;
  background: url("shield-mark-cream.png") center/contain no-repeat;
  opacity: 0.06;
  pointer-events: none;
}
.quote-box > * { position: relative; z-index: 1; }
.quote-box .q { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.4; color: var(--white); }
.quote-box .src { color: var(--gold-light); font-size: 0.85rem; margin-top: 1.2rem; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.checklist li { display: flex; gap: 0.9rem; align-items: flex-start; }
.checklist .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: var(--white);
  display: grid; place-items: center; font-size: 0.8rem; margin-top: 2px;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.3rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-list .ico { flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(176,141,79,0.15); color: var(--gold); display: grid; place-items: center; }
.contact-list .lbl { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate-light); }
.contact-list a, .contact-list span { color: var(--white); font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 3rem 0 2rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer-top .brand svg { color: var(--gold); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem; letter-spacing: 0.04em; color: var(--slate-light);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1.5rem;
}
.footer-bottom a { color: var(--slate-light); border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.footer-bottom a:hover { color: var(--gold-light); border-bottom-color: var(--gold-light); }

/* ---------- Legal / long-form prose (privacy, terms) ---------- */
.legal { max-width: 74ch; }
.legal h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 500;
  margin: 3rem 0 0.9rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--cream-line);
}
.legal h2:first-of-type { margin-top: 1rem; }
.legal p { color: var(--slate); }
.legal ul { color: var(--slate); padding-left: 1.2rem; margin: 0 0 1.1em; }
.legal li { margin-bottom: 0.6rem; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--gold); border-bottom: 1px solid rgba(176,141,79,0.4); transition: border-color 0.2s; }
.legal a:hover { border-bottom-color: var(--gold); }
.legal-meta {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate-light); margin-bottom: 2rem;
}
.legal-contact { list-style: none; padding-left: 0; }

/* ---------- Reveal on scroll (staggered) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Page intro (inner pages) ---------- */
.page-intro {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: radial-gradient(130% 130% at 85% 0%, #21384A 0%, var(--navy) 46%, var(--navy-dark) 100%);
}
/* drifting gold glow */
.page-intro::before {
  content: "";
  position: absolute; top: -30%; right: -8%;
  width: 42vw; height: 42vw; max-width: 560px; max-height: 560px;
  background: radial-gradient(circle, rgba(176,141,79,0.34) 0%, rgba(176,141,79,0) 66%);
  filter: blur(60px);
  z-index: 0;
  animation: glowDriftA 18s ease-in-out infinite;
}
.page-intro .wrap { position: relative; z-index: 1; padding: clamp(3.5rem, 9vw, 6rem) 0; }
.page-intro h1 { color: var(--white); font-size: clamp(2.2rem, 5.4vw, 3.8rem); line-height: 1.08; max-width: 18ch; }
.page-intro p { color: rgba(255,255,255,0.78); max-width: 52ch; font-size: 1.12rem; margin: 0; }
/* ghosted brand shield inside intros, floats + parallax (--py from JS) */
.page-intro .ghost-shield {
  opacity: 0.1;
  width: clamp(220px, 26vw, 380px);
  background-image: url("shield-mark.png");
  animation: heroFloat 10s ease-in-out infinite;
}
/* intro text rises in on load (no per-element markup needed) */
.page-intro .eyebrow,
.page-intro h1,
.page-intro p {
  opacity: 0;
  transform: translateY(20px);
  animation: heroRise 0.85s cubic-bezier(.2,.7,.2,1) both;
}
.page-intro .eyebrow { animation-delay: 0.10s; }
.page-intro h1 { animation-delay: 0.20s; }
.page-intro p  { animation-delay: 0.34s; }

/* ---------- Footer logo ---------- */
.footer-top .brand-logo { height: 42px; width: auto; opacity: 0.96; }

/* ---------- Ghosted parallax shields ---------- */
.has-ghost { position: relative; overflow: hidden; }
.has-ghost > .wrap { position: relative; z-index: 1; }
.ghost-shield {
  position: absolute;
  top: 50%;
  right: -5%;
  width: clamp(240px, 28vw, 420px);
  aspect-ratio: 466 / 600;
  background: url("shield-mark-cream.png") center/contain no-repeat;
  opacity: 0.06;
  transform: translateY(calc(-50% + var(--py, 0px)));
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.ghost-shield-left {
  right: auto;
  left: -6%;
  background-image: url("shield-mark.png");
  opacity: 0.07;
}
@media (max-width: 700px) { .ghost-shield { opacity: 0.04; } }

/* ---------- Stat numbers (counting target) ---------- */
.stat .num { font-variant-numeric: tabular-nums; }
