/* ==========================================================================
   TFT Legal Service — Design System
   ========================================================================== */

:root {
  --navy-950: #060d1a;
  --navy-900: #081120;
  --navy-800: #0c1b33;
  --navy-700: #12244a;
  --navy-600: #1b3260;
  --gold: #c6a15b;
  --gold-strong: #b08a3e;
  --gold-light: #e6cd95;
  --ivory: #f7f4ee;
  --paper: #ffffff;
  --ink: #182230;
  --muted: #5b6474;
  --line: rgba(24, 34, 48, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 1px 2px rgba(8, 17, 32, 0.06), 0 4px 14px rgba(8, 17, 32, 0.06);
  --shadow-md: 0 6px 18px rgba(8, 17, 32, 0.08), 0 18px 44px rgba(8, 17, 32, 0.12);
  --shadow-lg: 0 12px 28px rgba(8, 17, 32, 0.14), 0 32px 72px rgba(8, 17, 32, 0.2);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", -apple-system, sans-serif;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--navy-700); text-decoration-color: rgba(198, 161, 91, 0.55); text-underline-offset: 3px; }
a:hover { color: var(--gold-strong); }

::selection { background: var(--gold); color: var(--navy-900); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-800);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.12;
  color: var(--navy-800);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

.display-xl { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.display-lg { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.display-md { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-strong);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.eyebrow--center::after {
  content: "";
  width: 42px;
  height: 2px;
  background: linear-gradient(270deg, var(--gold), transparent);
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
}

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section--tight { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s, color 0.35s;
  border-bottom: 1px solid transparent;
  color: #fff;
}
.site-header .brand { color: inherit; }
.site-header .brand-sub { color: rgba(255, 255, 255, 0.55); }
.site-header .main-nav a { color: rgba(255, 255, 255, 0.92); }
.site-header .main-nav a[aria-current="page"] { color: var(--gold-light); }
.site-header .nav-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}
.site-header .nav-toggle span,
.site-header .nav-toggle span::before,
.site-header .nav-toggle span::after { background: #fff; }

.site-header.is-scrolled {
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  border-color: var(--line);
  color: var(--navy-800);
}
.site-header.is-scrolled .brand-sub { color: var(--muted); }
.site-header.is-scrolled .main-nav a { color: var(--navy-800); }
.site-header.is-scrolled .main-nav a[aria-current="page"] { color: var(--gold-strong); }
.site-header.is-scrolled .nav-toggle {
  background: var(--paper);
  border-color: var(--line);
}
.site-header.is-scrolled .nav-toggle span,
.site-header.is-scrolled .nav-toggle span::before,
.site-header.is-scrolled .nav-toggle span::after { background: var(--navy-800); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--navy-800);
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(198, 161, 91, 0.35), var(--shadow-sm);
  flex: none;
}
.brand-mark svg { width: 28px; height: 28px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: 0.01em;
}
.brand-name em { font-style: normal; color: var(--gold-strong); }
.brand-sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  position: relative;
  padding: 0.55rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-800);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--gold-strong); }

.nav-cta { margin-left: 0.75rem; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-800);
  position: relative;
  transition: background 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--navy-800);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 50%, var(--gold-strong));
  color: var(--navy-900);
  box-shadow: 0 8px 20px rgba(176, 138, 62, 0.22);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(176, 138, 62, 0.32); color: var(--navy-950); }

.btn--navy {
  background: var(--navy-800);
  color: #fff;
  box-shadow: 0 8px 18px rgba(8, 17, 32, 0.18);
}
.btn--navy:hover { transform: translateY(-2px); background: var(--navy-700); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: rgba(24, 34, 48, 0.28);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-strong); transform: translateY(-2px); }

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--ghost-light:hover { border-color: var(--gold-light); color: var(--gold-light); transform: translateY(-2px); }


/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(100vh, 920px);
  display: flex;
  align-items: flex-end;
  padding: 10rem 0 5.5rem;
  color: #fff;
  overflow: hidden;
  background: var(--navy-950);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: heroDrift 22s var(--ease) infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 13, 26, 0.92) 0%, rgba(8, 17, 32, 0.78) 42%, rgba(8, 17, 32, 0.45) 70%, rgba(12, 27, 51, 0.55) 100%),
    linear-gradient(180deg, rgba(6, 13, 26, 0.45) 0%, transparent 28%, transparent 62%, rgba(247, 244, 238, 0.95) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1.4'%3E%3Cpath d='M70 22v96'/%3E%3Cpath d='M50 118h40'/%3E%3Cpath d='M34 38h72'/%3E%3Cpath d='M46 38 32 70a14 14 0 0 0 28 0L46 38'/%3E%3Cpath d='M94 38 80 70a14 14 0 0 0 28 0L94 38'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 140px;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 2; max-width: 900px; }

.hero-brand-lockup {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  margin: 0 0 1.1rem;
}
.hero-brand-lockup span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 0.35rem;
}

.hero h1 { color: #fff; margin-bottom: 1.25rem; max-width: 14ch; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.hero .lede { color: rgba(255, 255, 255, 0.84); margin-bottom: 2rem; max-width: 46ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 0; }

.hero-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 0.85rem; }
.hero-list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.96rem; color: rgba(255, 255, 255, 0.88); }
.hero-list svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--gold-light); }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
}
.scroll-hint::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold-light);
  animation: hint 1.8s infinite;
}
@keyframes hint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  position: relative;
  padding: 11rem 0 5.5rem;
  color: #fff;
  background:
    radial-gradient(900px 420px at 88% -20%, rgba(198, 161, 91, 0.2), transparent 60%),
    linear-gradient(155deg, var(--navy-700), var(--navy-900) 60%, var(--navy-950));
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1.4'%3E%3Cpath d='M70 22v96'/%3E%3Cpath d='M50 118h40'/%3E%3Cpath d='M34 38h72'/%3E%3Cpath d='M46 38 32 70a14 14 0 0 0 28 0L46 38'/%3E%3Cpath d='M94 38 80 70a14 14 0 0 0 28 0L94 38'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 140px;
  mask-image: radial-gradient(70% 90% at 50% 0%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 90% at 50% 0%, #000 20%, transparent 100%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lede { color: rgba(255, 255, 255, 0.8); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.breadcrumbs a { color: var(--gold-light); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; color: rgba(255, 255, 255, 0.4); }
.breadcrumbs [aria-current] { color: rgba(255, 255, 255, 0.75); }

/* ---------- Cards & grids ---------- */

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-strong));
  opacity: 0;
  transition: opacity 0.35s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(198, 161, 91, 0.45);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  color: var(--gold-strong);
  background: linear-gradient(150deg, rgba(198, 161, 91, 0.16), rgba(198, 161, 91, 0.05));
  border: 1px solid rgba(198, 161, 91, 0.3);
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 1.28rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.97rem; margin: 0 0 1.1rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-strong);
  text-decoration: none;
}
.card-link svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.card-link:hover svg { transform: translateX(4px); }

.card--navy {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  border-color: rgba(255, 255, 255, 0.1);
}
.card--navy h3 { color: #fff; }
.card--navy p { color: rgba(255, 255, 255, 0.72); }
.card--navy .card-link { color: var(--gold-light); }

.tag {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-strong);
  background: rgba(198, 161, 91, 0.12);
  border: 1px solid rgba(198, 161, 91, 0.3);
  margin-bottom: 0.9rem;
}

/* ---------- Split / media rows ---------- */

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

.media-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 4.4; }
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(198, 161, 91, 0.14), transparent 45%);
  pointer-events: none;
}
.media-badge {
  position: absolute;
  left: 1.4rem;
  bottom: 1.4rem;
  z-index: 2;
  background: rgba(8, 17, 32, 0.82);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(198, 161, 91, 0.45);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  font-size: 0.85rem;
  line-height: 1.45;
  max-width: 260px;
}
.media-badge strong { color: var(--gold-light); display: block; font-family: var(--font-display); font-size: 1.05rem; }

/* ---------- Stats band ---------- */

.stats-band {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-950));
  color: #fff;
  border-block: 1px solid rgba(198, 161, 91, 0.25);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: var(--gold-light);
  line-height: 1.1;
}
.stat span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }

/* ---------- Process timeline ---------- */

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.timeline li {
  position: relative;
  padding: 0 0 2.4rem 4.4rem;
  counter-increment: step;
}
.timeline li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold-strong);
  background: var(--paper);
  border: 1px solid rgba(198, 161, 91, 0.5);
  box-shadow: var(--shadow-sm);
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 56px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, rgba(198, 161, 91, 0.6), rgba(198, 161, 91, 0.08));
}
.timeline li:last-child::after { display: none; }
.timeline h3 { font-size: 1.22rem; margin-bottom: 0.35rem; }
.timeline p { margin: 0; color: var(--muted); max-width: 56ch; }

/* ---------- Tort / case cards ---------- */

.case-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(198, 161, 91, 0.45); }
.case-card h3 { font-size: 1.3rem; margin-bottom: 0.55rem; }
.case-card p { color: var(--muted); font-size: 0.96rem; flex: 1; }
.case-card .btn { align-self: flex-start; margin-top: 1.2rem; }
.case-card .meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-strong);
  margin-bottom: 0.8rem;
}
.case-card .meta svg { width: 15px; height: 15px; }

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

.faq { display: grid; gap: 0.9rem; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item.is-open { border-color: rgba(198, 161, 91, 0.5); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 560;
  color: var(--navy-800);
}
.faq-q svg { width: 18px; height: 18px; flex: none; color: var(--gold-strong); transition: transform 0.3s var(--ease); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-a-inner { padding: 0 1.4rem 1.3rem; color: var(--muted); font-size: 0.97rem; }

/* ---------- Forms ---------- */

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-md);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 700; color: var(--navy-800); }
.form-field label .req { color: var(--gold-strong); }
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 0.97rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfaf7;
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  width: 100%;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(198, 161, 91, 0.16);
}
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] { border-color: #b3402e; box-shadow: 0 0 0 4px rgba(179, 64, 46, 0.12); }
.field-error { font-size: 0.8rem; color: #b3402e; display: none; }
.field-error.is-visible { display: block; }

.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(198, 161, 91, 0.07);
  border: 1px solid rgba(198, 161, 91, 0.25);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.consent input { margin-top: 3px; accent-color: var(--gold-strong); width: 16px; height: 16px; flex: none; }

.form-status { grid-column: 1 / -1; font-size: 0.95rem; font-weight: 600; }
.form-status.is-success { color: #226a3a; }
.form-status.is-error { color: #b3402e; }

/* ---------- Contact info ---------- */

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list .info-icon {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--gold-strong);
  background: rgba(198, 161, 91, 0.12);
  border: 1px solid rgba(198, 161, 91, 0.3);
}
.info-list .info-icon svg { width: 22px; height: 22px; }
.info-list strong { display: block; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
.info-list a, .info-list span.val { font-weight: 600; color: var(--navy-800); text-decoration: none; font-size: 1.05rem; }
.info-list a:hover { color: var(--gold-strong); }

.hours-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.hours-table td { padding: 0.55rem 0; border-bottom: 1px dashed var(--line); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--navy-800); }
.hours-table tr.is-closed td:last-child { color: var(--muted); font-weight: 500; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: clamp(2.6rem, 6vw, 4.5rem);
  color: #fff;
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(198, 161, 91, 0.3), transparent 60%),
    linear-gradient(140deg, var(--navy-700), var(--navy-950));
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p { color: rgba(255, 255, 255, 0.78); max-width: 56ch; margin: 0 auto 2rem; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- Dark section ---------- */

.section--dark {
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(198, 161, 91, 0.12), transparent 55%),
    linear-gradient(170deg, var(--navy-800), var(--navy-950));
  color: #fff;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lede, .section--dark p { color: rgba(255, 255, 255, 0.75); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.check-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--gold); margin-top: 2px; }
.check-list strong { display: block; color: inherit; }
.check-list span { color: var(--muted); font-size: 0.95rem; }
.section--dark .check-list span { color: rgba(255, 255, 255, 0.7); }

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

.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-photo { aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(160deg, var(--navy-700), var(--navy-950)); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.6s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-body { padding: 1.6rem 1.7rem 1.8rem; }
.team-body .role {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-strong);
  display: block;
  margin-bottom: 0.4rem;
}
.team-body h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.team-body p { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* ---------- Notice / disclaimer ---------- */

.notice {
  border: 1px solid rgba(198, 161, 91, 0.4);
  background: rgba(198, 161, 91, 0.08);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.notice strong { color: var(--navy-800); }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.4em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.3rem; display: grid; gap: 0.5rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
  border-top: 1px solid rgba(198, 161, 91, 0.25);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-light);
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-brand p { font-size: 0.92rem; max-width: 34ch; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-links a { color: rgba(255, 255, 255, 0.72); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-contact { font-size: 0.95rem; display: grid; gap: 0.55rem; }
.footer-contact a { color: var(--gold-light); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.social-link svg { width: 20px; height: 20px; color: var(--gold-light); }
.social-link:hover { color: var(--gold-light); }

.footer-legal { padding-top: 2rem; display: grid; gap: 1rem; }
.disclaimer {
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}
.disclaimer strong { color: rgba(255, 255, 255, 0.8); letter-spacing: 0.08em; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom nav { display: flex; gap: 1.4rem; }
.footer-bottom a { color: rgba(255, 255, 255, 0.65); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  z-index: 150;
  left: 50%;
  bottom: 1.25rem;
  transform: translate(-50%, 140%);
  width: min(680px, calc(100vw - 2rem));
  background: rgba(8, 17, 32, 0.96);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(198, 161, 91, 0.4);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s var(--ease);
}
.cookie-banner.is-visible { transform: translate(-50%, 0); }
.cookie-banner p { margin: 0; flex: 1; }
.cookie-banner .btn { flex: none; }

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

@media (max-width: 1020px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 88vh; align-items: flex-end; padding-bottom: 4.5rem; }
}

@media (max-width: 860px) {
  .header-inner {
    height: calc(72px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
  }
  .nav-toggle {
    display: grid;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
  .main-nav {
    position: fixed;
    inset: calc(72px + env(safe-area-inset-top, 0px)) 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(247, 244, 238, 0.985);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 0.5rem clamp(1.25rem, 4vw, 2.5rem) calc(1.5rem + env(safe-area-inset-bottom, 0px));
    border-bottom: 0;
    box-shadow: none;
    transform: translateX(100%);
    opacity: 1;
    pointer-events: none;
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 99;
  }
  .main-nav.is-open {
    transform: none;
    pointer-events: auto;
  }
  .main-nav a,
  .site-header .main-nav a,
  .site-header.is-scrolled .main-nav a {
    padding: 1.05rem 0.35rem;
    font-size: 1.12rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--navy-800);
  }
  .main-nav a::after { display: none; }
  .nav-cta {
    margin: 1.25rem 0 0;
    width: 100%;
    min-height: 52px;
    justify-content: center;
  }
  .brand-name { font-size: 1.12rem; }
  .brand-mark { width: 42px; height: 42px; }
  .split { grid-template-columns: 1fr; gap: 1.75rem; }
  .split .media-frame { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .page-hero {
    padding: calc(7.5rem + env(safe-area-inset-top, 0px)) 0 3.5rem;
  }
  .cta-band { padding: 2.2rem 1.35rem; border-radius: 20px; }
  .timeline li { padding-left: 3.6rem; }
  .timeline li::before { width: 44px; height: 44px; }
  .timeline li::after { left: 22px; }
  .hero-media img { animation: none; transform: scale(1.06); }
  .section { padding: clamp(3.25rem, 10vw, 5rem) 0; }
}

@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero {
    min-height: 100svh;
    min-height: 100dvh;
    padding: calc(6.5rem + env(safe-area-inset-top, 0px)) 0 calc(2.5rem + env(safe-area-inset-bottom, 0px));
    align-items: flex-end;
  }
  .hero h1 { max-width: none; font-size: clamp(2.15rem, 9.5vw, 2.7rem); }
  .hero .lede { font-size: 1.02rem; margin-bottom: 1.5rem; }
  .hero-brand-lockup { font-size: 1.05rem; }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.7rem;
  }
  .hero-actions .btn {
    width: 100%;
    min-height: 52px;
  }
  .page-hero h1 { max-width: none; }
  .display-md { font-size: clamp(1.55rem, 7vw, 2rem); }
  .card, .case-card, .form-card, .team-card { border-radius: 16px; }
  .team-photo {
    aspect-ratio: 4 / 5;
    background: linear-gradient(160deg, var(--navy-700), var(--navy-950));
  }
  .team-photo img {
    object-fit: cover;
    object-position: center top;
    width: 100%;
    height: 100%;
  }
  .media-frame img { aspect-ratio: 4 / 3; }
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px; /* prevent iOS zoom on focus */
    min-height: 48px;
  }
  .form-field textarea { min-height: 140px; }
  .consent { font-size: 0.8rem; padding: 0.9rem 1rem; }
  .btn { min-height: 48px; }
  .btn--sm { min-height: 44px; }
  .faq-q {
    font-size: 1.02rem;
    padding: 1.1rem 1.1rem;
    min-height: 52px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 1.5rem);
    font-size: 0.8rem;
    padding: 0.95rem 1rem;
    gap: 0.85rem;
  }
  .cookie-banner .btn { width: 100%; min-height: 48px; }
  .scroll-hint { display: none; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .stats-grid { gap: 1rem 0.75rem; }
  .stat strong { font-size: clamp(1.7rem, 8vw, 2.3rem); }
  .info-list .info-icon { width: 44px; height: 44px; }
}

@media (max-width: 380px) {
  .brand-sub { letter-spacing: 0.28em; }
  .container { padding-inline: 1.1rem; }
  .hero h1 { font-size: 2rem; }
}

/* ---------- Reduced motion (handled in harmonized block below) ---------- */

/* ---------- Print (handled in harmonized block below) ---------- */

/* ---------- Enterprise atmosphere ---------- */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 250;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-card,
.form-card,
.cta-band,
.team-card,
.case-card,
.card {
  background-clip: padding-box;
}

.media-frame {
  isolation: isolate;
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
  pointer-events: none;
}

.page-hero .display-lg {
  text-wrap: balance;
}
.hero .display-xl {
  text-wrap: balance;
}

/* Interior pages without dark hero still need readable fixed header once scrolled — covered.
   Soft lift on primary surfaces */
.section:nth-of-type(even):not(.section--dark):not(.stats-band) {
  background-image: radial-gradient(900px 400px at 10% 0%, rgba(198,161,91,0.05), transparent 60%);
}
/* ==========================================================================
   Harmonized system additions — replaces the round-1 + round-2 fragments.
   One :root for tokens. One of each @media block. One @layer declaration.
   All design decisions live as tokens, not as ad-hoc rules.
   ========================================================================== */

/* ---------- Semantic tokens (consolidates 3 :root blocks → 1) ----------
   Existing raw palette tokens (--navy-*, --gold-*, --ivory, --paper, --ink,
   --muted, --line, --shadow-*) are kept above. Below we add the
   semantic layer that components actually reference. */

:root {
  color-scheme: light dark;

  /* Surfaces & text — auto-adapt with light-dark() */
  --surface:        light-dark(var(--paper),    #0f1a2e);
  --surface-2:      light-dark(var(--ivory),    #0a1322);
  --surface-dark:   light-dark(var(--navy-800), #061226);
  --text:           light-dark(var(--ink),      #f1f5f9);
  --text-on-dark:   #f8fafc;
  --text-muted:     light-dark(var(--muted),    #94a3b8);
  --border:         light-dark(var(--line),     rgba(255, 255, 255, 0.10));
  --border-on-dark: var(--line-light);

  /* Brand & accents */
  --brand:        var(--gold);
  --brand-strong: var(--gold-strong);
  --brand-light:  var(--gold-light);
  --accent:       var(--gold);
  --link:         var(--navy-700);
  --link-hover:   var(--gold-strong);

  /* Status */
  --danger:        #dc2626;
  --danger-soft:   rgba(220, 38, 38, 0.12);
  --success:       #16a34a;
  --success-soft:  rgba(34, 197, 94, 0.55);
  --warning:       #f59e0b;
  --notice-bg:     rgba(198, 161, 91, 0.08);
  --notice-border: rgba(198, 161, 91, 0.28);

  /* Spacing rhythm (8px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-y:    clamp(2rem, 1rem + 6vw, 7rem);
  --section-y-sm: clamp(1.25rem, 0.5rem + 3vw, 3rem);
  --gutter:       clamp(1rem, 4vw, 2.5rem);

  /* Radius — one coherent scale */
  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Elevation — one coherent shadow language, light + dark */
  --elev-1: 0 1px 2px rgba(8, 17, 32, 0.06), 0 4px 14px rgba(8, 17, 32, 0.06);
  --elev-2: 0 6px 18px rgba(8, 17, 32, 0.08), 0 18px 44px rgba(8, 17, 32, 0.12);
  --elev-3: 0 12px 28px rgba(8, 17, 32, 0.14), 0 32px 72px rgba(8, 17, 32, 0.2);
  --elev-inset: inset 0 0 0 1px rgba(198, 161, 91, 0.08);
  --elev-1-d: 0 1px 2px rgba(0,0,0,0.4), 0 4px 14px rgba(0,0,0,0.4);
  --elev-2-d: 0 6px 18px rgba(0,0,0,0.5), 0 18px 44px rgba(0,0,0,0.5);
  --elev-3-d: 0 12px 28px rgba(0,0,0,0.55), 0 32px 72px rgba(0,0,0,0.6);

  /* Motion — one coherent timing language */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast:    0.18s;
  --dur:         0.25s;
  --dur-slow:    0.4s;
  --dur-deliberate: 0.6s;

  /* Layout */
  --container: 1180px;
  --container-prose: 65ch;
  --header-h:  72px;

  /* Form */
  --field-radius: 10px;
  --field-bg:        var(--surface);
  --field-border:    var(--border);
  --field-text:      var(--text);
  --field-placeholder: var(--text-muted);
  --focus-ring: 0 0 0 4px color-mix(in oklab, var(--brand) 18%, transparent);

  /* Native controls */
  accent-color: var(--brand);
  caret-color:  var(--brand-strong);
}

/* ---------- One dark-mode override (was 3, now 1) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --elev-1: var(--elev-1-d);
    --elev-2: var(--elev-2-d);
    --elev-3: var(--elev-3-d);
  }
  body {
    background: var(--surface-2);
    color: var(--text);
  }
  h1, h2, h3, h4,
  .display-md, .display-lg, .display-xl { color: var(--text); }
  a { color: var(--brand-light); }
  a:hover { color: var(--brand); }

  .eyebrow,
  .info-list .val,
  .muted,
  .lede,
  .hours-table td,
  .breadcrumbs li,
  .footer-meta,
  .footer-bottom,
  .form-field label,
  .stat span { color: var(--text-muted); }

  .section:not(.section--dark),
  .card,
  .form-card,
  .hero-card,
  .case-card,
  .team-card {
    background: var(--surface);
    color: var(--text);
  }

  .hours-table tr,
  .stat strong { border-color: var(--border); color: var(--text); }
  .notice { background: var(--notice-bg); border-color: var(--notice-border); }

  .form-field input,
  .form-field select,
  .form-field textarea {
    background: var(--field-bg);
    color: var(--field-text);
    border-color: var(--field-border);
  }
  .form-field input::placeholder,
  .form-field textarea::placeholder { color: var(--field-placeholder); }

  .form-status.is-success { color: var(--success); }
  .form-status.is-error,
  .field-error { color: var(--danger); }
}

/* ---------- Cards: one coherent treatment ----------
   Replaces the scattered per-type card rules. All .card-like surfaces
   share the same radius, border, padding, hover behavior. */
.case-card,
.team-card,
.form-card,
.grid > .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--elev-1), var(--elev-inset);
  isolation: isolate;
  min-inline-size: 0;
}

/* Gradient border (gold edge) — applied via padding-box on top of the
   standard card. Uses theme-aware surface so dark mode gets a dark fill. */
.grid > .card,
.case-card,
.team-card {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg,
      color-mix(in oklab, var(--brand) 35%, transparent),
      color-mix(in oklab, var(--navy-800) 12%, transparent) 40%,
      color-mix(in oklab, var(--brand) 35%, transparent)) border-box;
}

/* Card hover: one canonical lift, used everywhere */
@media (hover: hover) and (pointer: fine) {
  .case-card,
  .team-card,
  .grid > .card {
    transition:
      translate var(--dur) var(--ease),
      box-shadow var(--dur) var(--ease),
      scale var(--dur) var(--ease);
  }
  .case-card:hover { translate: 0 -6px; box-shadow: var(--elev-3); }
  .team-card:hover,
  .grid > .card:hover {
    translate: 0 -4px;
    scale: 1.012;
    box-shadow: var(--elev-3);
  }
}

/* ---------- Buttons: one canonical treatment ----------
   All .btn variants share the same height, radius, weight, focus ring. */
.btn {
  --btn-bg:      var(--navy-800);
  --btn-text:    #fff;
  --btn-border:  var(--navy-800);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-block-size: 44px;
  padding-inline: var(--space-5);
  padding-block: var(--space-3);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { background: var(--navy-900); border-color: var(--navy-900); }

.btn--gold {
  --btn-bg:     var(--brand);
  --btn-text:   var(--navy-900);
  --btn-border: var(--brand);
  background-image: linear-gradient(135deg, #e3c47a, var(--brand) 50%, #8e6d2e);
  position: relative;
  isolation: isolate;
}
.btn--gold:hover {
  background:
    hsl(from var(--brand) h s calc(l + 4));
  filter: saturate(1.08);
}

.btn--ghost,
.btn--outline {
  --btn-bg:     transparent;
  --btn-text:   var(--navy-800);
  --btn-border: var(--border);
}
.btn--ghost:hover,
.btn--outline:hover {
  background: color-mix(in oklab, var(--navy-800) 6%, transparent);
}

.btn:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

/* Small button: override the 44px min-height so it fits in nav bars */
.btn--sm {
  min-block-size: auto;
  padding: var(--space-2) var(--space-4);
  font-size: 0.86rem;
}

/* ---------- Forms: one canonical treatment ---------- */
.form-field {
  display: grid;
  gap: var(--space-2);
}
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--field-bg);
  color: var(--field-text);
  border: 1px solid var(--field-border);
  border-radius: var(--field-radius);
  font: inherit;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--field-placeholder); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.form-field:focus-within input,
.form-field:focus-within select,
.form-field:focus-within textarea {
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
  outline: none;
}
.form-field:focus-within label { color: var(--brand-strong); }

input:user-invalid,
textarea:user-invalid,
select:user-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
}
input:user-valid,
textarea:user-valid,
select:user-valid {
  border-color: var(--success-soft);
}

.field-error { color: var(--danger); font-size: 0.85rem; }

/* ---------- Typography: one hierarchy ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.12;
  color: var(--navy-800);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.display-xl { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.display-lg { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.display-md { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.prose p,
.section > .container p,
.lede { text-wrap: pretty; }

a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  text-decoration-skip-ink: auto;
}

.stat strong,
.timer,
[data-count] { font-variant-numeric: tabular-nums; }

/* ---------- Sticky header: one treatment, frosted on scroll ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
  border-block-end: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in oklab, var(--ivory) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-block-end-color: var(--border);
}

/* ---------- Focus: one canonical ring, applied via :focus-visible ---------- */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- FAQ :has() — single source of truth ---------- */
.faq-item:has(.faq-q[aria-expanded="true"]) {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 12%, transparent);
}
.faq-item:has(.faq-q[aria-expanded="true"]) .faq-q { color: var(--navy-800); }
details.faq-item[open] > .faq-a { animation: faq-reveal var(--dur) var(--ease) both; }
details.faq-item[open] > summary { color: var(--navy-800); }
@keyframes faq-reveal {
  from { opacity: 0; translate: 0 -0.4rem; }
  to   { opacity: 1; translate: 0 0; }
}

/* ---------- Process timeline: counter-based numbered circles ---------- */
.timeline ol.timeline-list {
  list-style: none;
  counter-reset: step;
  padding: 0;
}
.timeline ol.timeline-list > li {
  counter-increment: step;
  position: relative;
}
.timeline ol.timeline-list > li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: -2.6rem;
  inset-block-start: 0;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  font-family: var(--font-body);
}
.timeline-step[data-state="active"]   { --dot-color: var(--brand); }
.timeline-step[data-state="pending"]  { --dot-color: color-mix(in oklab, #fff 40%, transparent); }
.timeline-step .step-number { background: var(--dot-color, var(--brand)); }

/* ---------- :target pulse — one canonical animation ---------- */
:target {
  scroll-margin-block-start: 96px;
  outline: 3px solid var(--brand);
  outline-offset: 0.5rem;
  border-radius: 8px;
  animation: target-pulse 1.6s var(--ease) 1;
}
@keyframes target-pulse {
  from { outline-color: var(--brand); }
  to   { outline-color: transparent; }
}

/* ---------- Hero — one coherent treatment ---------- */
.hero h1 { text-wrap: balance; }
.hero h1 .accent {
  background:
    linear-gradient(120deg, var(--brand-light), var(--brand)) 0 0 / 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  text-shadow: 0 0 0.6em color-mix(in oklab, var(--brand) 35%, transparent);
  animation: gold-slide 8s linear infinite;
}
@keyframes gold-slide { to { background-position: 200% 0; } }

.btn--gold::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(
    from var(--glow-angle),
    color-mix(in oklab, var(--brand) 0%, transparent) 0deg,
    color-mix(in oklab, var(--brand) 60%, transparent) 90deg,
    color-mix(in oklab, var(--brand-light) 90%, transparent) 180deg,
    color-mix(in oklab, var(--brand) 60%, transparent) 270deg,
    color-mix(in oklab, var(--brand) 0%, transparent) 360deg);
  filter: blur(10px);
  opacity: 0.6;
  animation: glow-spin 6s linear infinite;
}
@property --glow-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.btn--gold { --glow-angle: 0deg; }
@keyframes glow-spin { to { --glow-angle: 1turn; } }

/* Scroll-driven hero parallax */
.hero-media img {
  animation: hero-drift 22s var(--ease) infinite alternate,
             hero-parallax linear;
  animation-timeline: scroll(root block);
  animation-range: 0 600px;
}
@keyframes hero-parallax { to { translate: 0 -120px; } }

/* ---------- Scroll progress + view transitions + scroll-snap helpers ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  block-size: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  transform-origin: left center;
  scale: 0 1;
  z-index: 9999;
  pointer-events: none;
  animation: scroll-fill linear;
  animation-timeline: scroll(root block);
}
@keyframes scroll-fill { to { scale: 1 1; } }
@supports not (animation-timeline: scroll()) {
  .scroll-progress { display: none; }
}

@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: var(--dur); }
::view-transition-group(root) { animation-duration: var(--dur); }

.case-rail {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-block-end: var(--space-4);
}
.case-rail > * { flex: 0 0 22rem; scroll-snap-align: start; }

/* ---------- Offset-path orb (decorative, single instance) ---------- */
.hero-orb {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,
    color-mix(in oklab, var(--brand) 18%, transparent), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  offset-path: path("M 0 0 C 200 -120, 400 120, 600 0");
  animation: orb-travel 22s var(--ease) infinite alternate;
  z-index: 0;
}
@keyframes orb-travel { to { offset-distance: 100%; } }

/* ---------- Anchor offset (sticky header clearance) ---------- */
[id] { scroll-margin-block-start: 96px; }
html { scrollbar-gutter: stable; }
html { scrollbar-color: color-mix(in oklab, var(--brand) 55%, transparent) transparent; }

/* ---------- Cookie banner entry ---------- */
.cookie-banner {
  opacity: 1;
  translate: 0 0;
  transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease);
  overscroll-behavior: contain;
  overflow-anchor: none;
  padding-block-end: max(1rem, env(safe-area-inset-bottom));
  padding-inline:
    max(1rem, env(safe-area-inset-left))
    max(1rem, env(safe-area-inset-right));
}
@starting-style {
  .cookie-banner.is-visible { opacity: 0; translate: 0 1rem; }
}

/* ---------- Section rhythm (one canonical vertical spacing) ---------- */
.section {
  padding-block: var(--section-y);
  padding-inline: var(--gutter);
}
.section--tight { padding-block: var(--section-y-sm); }

/* ---------- Container + prose measure ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.prose { max-inline-size: var(--container-prose); margin-inline: auto; }
.section--dark { background: var(--navy-900); color: var(--text-on-dark); }

/* ---------- Drop cap on mission body ---------- */
.page-hero + .section .container > p:first-of-type::first-letter,
.mission-body > p:first-of-type::first-letter {
  float: inline-start;
  font-family: var(--font-display);
  font-size: 3.4em;
  line-height: 0.85;
  font-weight: 600;
  color: var(--brand-strong);
  margin-inline-end: 0.12em;
  margin-block-start: 0.08em;
}

/* ---------- Decorative quotation mark ---------- */
blockquote {
  position: relative;
  padding-inline-start: 2.5rem;
  font-style: italic;
  color: var(--text-muted);
}
blockquote::before {
  content: open-quote;
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: -0.4em;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--brand);
  opacity: 0.45;
}

/* ---------- Duotone overlay on mission image ---------- */
.mission-image {
  position: relative;
  isolation: isolate;
}
.mission-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 27, 51, 0.05), rgba(12, 27, 51, 0.35));
  mix-blend-mode: multiply;
  pointer-events: none;
  border-radius: inherit;
}

/* ---------- sr-only utility + skip link (canonical recipes) ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  inset: 0.5rem auto auto 0.5rem;
  translate: 0 -200%;
  z-index: 999;
  background: var(--navy-800);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
  transition: translate var(--dur) var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { translate: 0 0; }

/* ---------- Cascade layers (declared once) ---------- */
@layer reset, base, components, utilities;

/* ---------- Counter-based numbering (general) ---------- */
li::marker { color: var(--brand-strong); }

/* ---------- Media handling: image focal point + masks ---------- */
.media-frame,
.hero-media,
.case-card .thumb {
  overflow: clip;
  border-radius: inherit;
}
.media-frame img { object-fit: cover; object-position: 50% 30%; }
.hero-media img { object-position: 50% 22%; }

/* ---------- ONE reduced-motion block (was 6) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn--gold::before,
  .hero h1 .accent,
  .hero-media img,
  .hero-orb { animation: none !important; }
  .card:hover, .case-card:hover, .team-card:hover { translate: 0; scale: 1; }
}

/* ---------- ONE forced-colors block ---------- */
@media (forced-colors: active) {
  .btn { border: 1px solid ButtonText; }
  .form-field input,
  .form-field select,
  .form-field textarea { border: 1px solid ButtonText; }
  .card,
  .case-card,
  .team-card { border: 1px solid ButtonText; }
  :focus-visible { outline: 3px solid Highlight; }
}

/* ---------- ONE prefers-contrast block ---------- */
@media (prefers-contrast: more) {
  :focus-visible { outline-width: 4px; }
  .card,
  .case-card,
  .team-card { border-width: 2px; border-color: currentColor; }
  .btn { border: 2px solid currentColor; }
}

/* ---------- ONE pointer:coarse block ---------- */
@media (pointer: coarse) {
  .btn,
  .nav-toggle,
  .cookie-banner button,
  .faq-q {
    min-block-size: 44px;
  }
}

/* ---------- Performance: content-visibility + contain ---------- */
.section--tight,
.cta-band,
.cookie-banner {
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}
.practice-grid,
.case-grid,
.team-grid,
.stats-grid {
  contain: layout paint;
}

/* ---------- ONE print block (was 2) ---------- */
@media print {
  .site-header, .nav-toggle, .hero-media, .hero-actions,
  .cta-band, .scroll-hint, .cookie-banner,
  .media-frame::before, body::before,
  nav, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .page-hero { padding: 0.5cm 0; }
  .card, .case-card, .team-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after,
  a[href^="/"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
  }
  .notice { background: #f5f5f5 !important; border: 1px solid #ccc !important; color: #000 !important; }
  .display-xl, .display-lg, .display-md { color: #000 !important; }
}

/* ==========================================================================
   Header + cookie-banner contrast fix (WCAG AA, 4.5:1+)
   The sticky header sits above the hero on the ivory page background, so the
   former transparent header left white nav text on ivory. The header is now
   always a solid deep-navy bar (top and scrolled), with near-white links,
   gold-light active/hover, and a lighter gold CTA with navy text. Same
   treatment for the mobile slide-in menu.
   ========================================================================== */
.site-header,
.site-header.is-scrolled {
  background: var(--navy-900);
  color: #fff;
  border-block-end: 1px solid rgba(198, 161, 91, 0.22);
}
.site-header.is-scrolled {
  background: rgba(8, 17, 32, 0.97);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 6px 20px rgba(6, 13, 26, 0.28);
}
.site-header .brand,
.site-header.is-scrolled .brand { color: #fff; }
.site-header .brand-name em,
.site-header.is-scrolled .brand-name em { color: var(--gold-light); }
.site-header .brand-sub,
.site-header.is-scrolled .brand-sub { color: rgba(255, 255, 255, 0.78); }
.site-header .main-nav a,
.site-header.is-scrolled .main-nav a { color: #f8fafc; }
.site-header .main-nav a:hover,
.site-header .main-nav a:focus-visible,
.site-header.is-scrolled .main-nav a:hover,
.site-header.is-scrolled .main-nav a:focus-visible,
.site-header .main-nav a[aria-current="page"],
.site-header.is-scrolled .main-nav a[aria-current="page"] { color: var(--gold-light); }
.site-header .main-nav a::after { background: var(--gold-light); }

/* CTA: lighter gold so navy text stays well above 4.5:1 across the gradient */
.site-header .main-nav a.nav-cta,
.site-header.is-scrolled .main-nav a.nav-cta {
  --btn-bg: var(--gold-light);
  --btn-border: var(--gold-light);
  background: linear-gradient(135deg, #efdcae, var(--gold-light) 45%, var(--gold));
  border-color: var(--gold-light);
  color: var(--navy-900);
}
.site-header .main-nav a.nav-cta:hover,
.site-header .main-nav a.nav-cta:focus-visible,
.site-header.is-scrolled .main-nav a.nav-cta:hover,
.site-header.is-scrolled .main-nav a.nav-cta:focus-visible {
  background: #f3e4bf;
  border-color: #f3e4bf;
  color: var(--navy-950);
  filter: none;
}
.site-header .main-nav a.nav-cta::after { display: none; }

.site-header .nav-toggle,
.site-header.is-scrolled .nav-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}
.site-header .nav-toggle span::before,
.site-header .nav-toggle span::after,
.site-header.is-scrolled .nav-toggle span::before,
.site-header.is-scrolled .nav-toggle span::after { background: #fff; }
.site-header .nav-toggle[aria-expanded="false"] span,
.site-header.is-scrolled .nav-toggle[aria-expanded="false"] span { background: #fff; }

@media (max-width: 860px) {
  .main-nav,
  .site-header .main-nav {
    background: var(--navy-900);
    border-block-start: 1px solid rgba(198, 161, 91, 0.22);
  }
  .main-nav a,
  .site-header .main-nav a,
  .site-header.is-scrolled .main-nav a {
    color: #f8fafc;
    border-bottom-color: rgba(255, 255, 255, 0.14);
  }
  .site-header .main-nav a[aria-current="page"],
  .site-header.is-scrolled .main-nav a[aria-current="page"],
  .site-header .main-nav a:hover,
  .site-header.is-scrolled .main-nav a:hover { color: var(--gold-light); }
  .site-header .main-nav a.nav-cta,
  .site-header.is-scrolled .main-nav a.nav-cta {
    color: var(--navy-900);
    border-bottom: 1px solid var(--gold-light);
    border-radius: var(--radius-sm);
  }
}

/* Cookie banner: readable privacy link on the dark banner */
.cookie-banner { color: rgba(255, 255, 255, 0.9); }
.cookie-banner a {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(230, 205, 149, 0.7);
  text-underline-offset: 3px;
  font-weight: 600;
}
.cookie-banner a:hover,
.cookie-banner a:focus-visible { color: #fff; text-decoration-color: #fff; }

.cookie-banner .btn--gold {
  background: linear-gradient(135deg, #efdcae, var(--gold-light) 45%, var(--gold));
  border-color: var(--gold-light);
  color: var(--navy-900);
}
.cookie-banner .btn--gold:hover { background: #f3e4bf; color: var(--navy-950); filter: none; }

/* ==========================================================================
   Contrast fix — 2026-10-02 (WCAG 2.x AA: 4.5:1 body text, 3:1 large text)
   Appended last so it wins the cascade without touching earlier rules.
   1. Light mode: navy cards (mortgage/MVA) were repainted white by the
      generic ".grid > .card" surface, leaving white text on white.
   2. Light mode: gold text (#b08a3e, 2.9:1 on ivory) on light surfaces is
      deepened to an "ink gold" (#7a5a22, 5.8:1 ivory / 6.3:1 white).
   3. Dark mode (iOS/Android system dark): the later "h1–h4 navy" rule beat
      the dark-mode heading colour, so card titles were navy on navy; muted
      body text was 2.9:1; navy "Read More" pills vanished on dark cards.
   4. Mobile sticky header: paint the area above the bar (iOS 26 Safari
      shows page content behind the status bar) and offset anchor jumps.
   ========================================================================== */
:root { --gold-ink: #7a5a22; }

/* --- 1. Navy cards keep their navy surface inside grids --- */
.grid > .card.card--navy {
  border: 1px solid rgba(198, 161, 91, 0.32);
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: #fff;
}
.grid > .card.card--navy h3 { color: #fff; }
.grid > .card.card--navy p { color: rgba(255, 255, 255, 0.86); }
.grid > .card.card--navy .card-link { color: var(--gold-light); }

/* --- 2. Gold text on light surfaces → ink gold --- */
.eyebrow,
.tag,
.case-card .meta,
.card-link,
.team-body .role,
.brand-name em { color: var(--gold-ink); }
.page-hero + .section .container > p:first-of-type::first-letter,
.mission-body > p:first-of-type::first-letter { color: var(--gold-ink); }
.tag { background: rgba(198, 161, 91, 0.14); border-color: rgba(128, 96, 42, 0.35); }

/* ...but stay bright gold on dark surfaces */
.hero .eyebrow,
.page-hero .eyebrow,
.section--dark .eyebrow,
.stats-band .eyebrow,
.cta-band .eyebrow,
.card--navy .eyebrow,
.section--dark .tag,
.card--navy .tag,
.section--dark .card-link,
.card--navy .card-link,
.site-header .brand-name em,
.site-footer .brand-name em { color: var(--gold-light); }
.section--dark .tag,
.card--navy .tag { background: rgba(230, 205, 149, 0.12); border-color: rgba(230, 205, 149, 0.4); }

/* Footer brand subtitle was muted grey on navy (3.25:1) */
.site-footer .brand-sub { color: rgba(255, 255, 255, 0.72); }

/* --- 3. Dark colour scheme --- */
@media (prefers-color-scheme: dark) {
  h1, h2, h3, h4,
  .display-md, .display-lg, .display-xl { color: #f1f5f9; }
  .case-card h3,
  .card h3,
  .team-body h3 { color: #ffffff; }

  body,
  .case-card p,
  .card p,
  .team-body p,
  .timeline p,
  .check-list span,
  .notice,
  blockquote { color: #c3ccd8; }
  .lede,
  .muted,
  .breadcrumbs li,
  .section-head .lede { color: #b4bfcd; }

  .eyebrow,
  .tag,
  .case-card .meta,
  .card-link,
  .team-body .role,
  .brand-name em,
  li::marker { color: var(--gold-light); }
  .page-hero + .section .container > p:first-of-type::first-letter,
  .mission-body > p:first-of-type::first-letter { color: var(--gold-light); }
  .tag { background: rgba(230, 205, 149, 0.12); border-color: rgba(230, 205, 149, 0.42); }
  .notice strong { color: var(--gold-light); }

  /* Links inside body copy */
  .prose a,
  .section p a,
  .notice a { color: var(--gold-light); }

  /* Navy buttons disappear on dark cards → gold pill with navy text */
  .btn--navy,
  .case-card .btn--navy {
    --btn-bg: var(--gold-light);
    --btn-text: var(--navy-900);
    --btn-border: var(--gold-light);
    background: linear-gradient(135deg, #efdcae, var(--gold-light) 45%, var(--gold));
    border-color: var(--gold-light);
    color: var(--navy-900);
  }
  .btn--navy:hover,
  .case-card .btn--navy:hover { background: #f3e4bf; border-color: #f3e4bf; color: var(--navy-950); }

  /* Ghost buttons on dark surfaces */
  .btn--ghost,
  .btn--outline {
    --btn-text: #f1f5f9;
    --btn-border: rgba(230, 205, 149, 0.5);
    color: #f1f5f9;
    border-color: rgba(230, 205, 149, 0.5);
  }
  .btn--ghost:hover,
  .btn--outline:hover { color: var(--gold-light); border-color: var(--gold-light); }

  /* Cards: a touch more separation from the page */
  .case-card,
  .grid > .card:not(.card--navy),
  .team-card { border-color: rgba(230, 205, 149, 0.28); }
}

/* --- 4. Sticky header never lets content show above/behind it --- */
.site-header::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 100%;
  height: 100vh;
  background: var(--navy-900);
  pointer-events: none;
}
html { scroll-padding-top: calc(var(--header-h, 72px) + env(safe-area-inset-top, 0px) + 1rem); }
[id],
:target { scroll-margin-block-start: calc(var(--header-h, 72px) + env(safe-area-inset-top, 0px) + 1rem); }

/* Dark colour scheme — remaining light-only components */
@media (prefers-color-scheme: dark) {
  /* About "Leadership" band uses an inline white→ivory gradient */
  .section.section--tight[style*="linear-gradient"] { background: var(--surface-2) !important; }

  /* Policy pages (prose) */
  .prose p,
  .prose li { color: #c3ccd8; }
  .prose strong { color: #ffffff; }

  /* Contact details + hours */
  .info-list strong { color: #b4bfcd; }
  .info-list a,
  .info-list span.val,
  .hours-table td:last-child { color: #f1f5f9; }
  .info-list a:hover { color: var(--gold-light); }
  .hours-table td { color: #c3ccd8; border-bottom-color: rgba(255, 255, 255, 0.14); }
  .hours-table tr.is-closed td:last-child { color: #b4bfcd; }

  /* Form card intro + consent copy (colour only; form markup/JS untouched) */
  .form-card > p { color: #c3ccd8 !important; }
  .consent span { color: #c3ccd8; }
}

/* --- Partner CTAs: CTA rows, notes, steps, mobile sticky bar --- */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.cta-row--center { justify-content: center; margin-top: 2.5rem; text-align: center; }
.cta-note { font-size: 0.85rem; margin-top: 0.9rem; color: var(--muted); }
.cta-row--center + .cta-note { text-align: center; }
.cta-note--on-dark,
.page-hero .cta-note--on-dark,
.section--dark .cta-note--on-dark,
.cta-band .cta-note--on-dark { color: rgba(255, 255, 255, 0.82); }
.cta-band .cta-note { margin: 0.9rem auto 0; }
.page-hero .hero-actions { margin-top: 1.6rem; }
.card-link--secondary { margin-left: 1rem; color: var(--navy-700); }

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  counter-reset: none;
}
.steps li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(230, 205, 149, 0.28);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.steps .step-no {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--navy-900);
  font-weight: 800;
  margin-bottom: 0.8rem;
}
.steps h3 { color: #fff; }
.steps p { color: rgba(255, 255, 255, 0.86); margin: 0; }

.sticky-cta { display: none; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .sticky-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem max(1rem, env(safe-area-inset-right)) calc(0.7rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    background: rgba(8, 17, 32, 0.97);
    border-top: 1px solid rgba(230, 205, 149, 0.35);
    box-shadow: 0 -8px 24px rgba(6, 13, 26, 0.3);
  }
  .sticky-cta__text { color: #fff; font-weight: 700; font-size: 0.95rem; }
  body.has-sticky-cta { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  html:has(body.has-sticky-cta) { scroll-padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
}

@media (prefers-color-scheme: dark) {
  .card-link--secondary { color: #e6cd95; }
  .cta-note { color: #b4bfcd; }
  .cta-note--on-dark,
  .page-hero .cta-note--on-dark,
  .section--dark .cta-note--on-dark,
  .cta-band .cta-note--on-dark { color: rgba(255, 255, 255, 0.82); }
  .steps h3 { color: #fff; }
}

/* Mobile menu fix: backdrop-filter on the scrolled header made it the containing
   block for the fixed .main-nav, collapsing the slide-in menu after scrolling.
   The scrolled header is already ~opaque, so drop the blur on mobile. */
@media (max-width: 860px) {
  .site-header,
  .site-header.is-scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-header.is-scrolled { background: rgb(8, 17, 32); }
}

/* Home hero (new 4K photo): extra scrim behind the text block on phones so the
   brand lockup/headline stay >= 4.5:1 over the brighter statue. */
@media (max-width: 860px) {
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(6, 13, 26, 0) 36%, rgba(6, 13, 26, 0.6) 50%, rgba(6, 13, 26, 0.6) 82%, rgba(6, 13, 26, 0) 96%),
      linear-gradient(105deg, rgba(6, 13, 26, 0.92) 0%, rgba(8, 17, 32, 0.78) 42%, rgba(8, 17, 32, 0.45) 70%, rgba(12, 27, 51, 0.55) 100%),
      linear-gradient(180deg, rgba(6, 13, 26, 0.45) 0%, transparent 28%, transparent 62%, rgba(247, 244, 238, 0.95) 100%);
  }
}
