/* =========================================================================
   Confessions of a Military Agent — v7 "The Flagship"
   Editorial-Luxury, agency-tier: Playfair Display, warm cream + espresso + sage,
   double-bezel (Doppelrand) cards, magnetic button-in-button CTAs, a floating
   island nav, film grain, macro-whitespace, spring-physics motion — with real
   Higgsfield-generated imagery. Plain HTML/CSS, WCAG 2.2 AA (ratios annotated).
   ========================================================================= */

:root {
  /* Surfaces — warm editorial */
  --cream: #FBF7EF;
  --cream-2: #F4ECDD;
  --card: #FEFCF7;
  --espresso: #211A14;
  --espresso-2: #2C231B;

  /* Text */
  --ink: #241C15;            /* body on cream — ~13:1 */
  --ink-2: #4C4235;          /* secondary — ~8:1 */
  --muted: #6E6353;          /* meta / captions — ~5.4:1 AA */
  --on-dark: #F2EADB;        /* text on espresso — ~16:1 */
  --on-dark-2: #C9BCA6;      /* secondary on espresso — ~8.9:1 AA */
  --on-dark-3: #9C8F7B;      /* faint on espresso — ~5.2:1 AA */

  /* Accents */
  --accent: #A03C28;         /* oxblood fill */
  --accent-hover: #82301F;
  --accent-text: #9B3A26;    /* oxblood AS TEXT on cream — ~6.4:1 AA */
  --sage: #5E6A54;           /* deep sage — secondary accent/fills */
  --sage-soft: #8B9880;
  --gold: #B08D3E;           /* brass fill */
  --gold-hover: #C6A253;
  --gold-text: #856A28;      /* brass AS TEXT on cream — ~4.7:1 AA */
  --gold-bright: #E3C079;    /* brass text/em ON espresso — ~9:1 AA */

  /* Lines / fields */
  --line: #E6DDCC;
  --line-strong: #D4C8B1;
  --line-dark: #3A2F24;
  --field: #9A8E75;          /* input boundary on cream — ~3.0:1 (§1.4.11) */
  --field-dark: #7C6F5B;     /* input boundary on espresso — ~3.4:1 (§1.4.11) */

  /* Type */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout — heavy breathing room */
  --shell: 1200px;
  --gutter: clamp(20px, 5vw, 34px);
  --section-y: clamp(88px, 14vw, 172px);

  /* Radius — exaggerated squircles */
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 30px; --r-pill: 999px;
  --bezel-pad: 7px;

  /* Soft, diffused shadows (never harsh) */
  --shadow-soft: 0 30px 60px -34px rgba(60,45,30,.30), 0 8px 18px -12px rgba(60,45,30,.14);
  --shadow-dark: 0 34px 70px -34px rgba(0,0,0,.6);
  --shadow-island: 0 12px 34px -14px rgba(45,33,22,.30);
  --shadow-modal: 0 60px 130px -34px rgba(20,14,10,.55);

  /* Spring-physics easings */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { font-size: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink); background: var(--cream);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.section--dark :focus-visible, .bezel--dark :focus-visible, .hero__media :focus-visible, .footer :focus-visible, .marquee :focus-visible, .search__core--img :focus-visible { outline-color: var(--gold-bright); }
/* The sticky CTA floats over light AND dark sections — a two-tone ring (cream inner,
   espresso outer) stays ≥3:1 against any backdrop. Island shadow kept for elevation. */
.sticky-cta:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; box-shadow: 0 0 0 6px var(--espresso), var(--shadow-island); }

/* ---------- Utilities ---------- */
.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: absolute; left: 12px; top: -60px; z-index: 200; background: var(--espresso); color: var(--on-dark); padding: 10px 16px; border-radius: var(--r-sm); font-size: .875rem; font-weight: 600; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; color: var(--on-dark); }

.shell { position: relative; z-index: 1; width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); scroll-margin-top: 96px; }
.section--dark { position: relative; overflow: hidden; background: var(--espresso); }
.on-dark { color: var(--on-dark); }
.on-dark-2 { color: var(--on-dark-2); }
.gold { color: var(--gold-text); }
.on-dark .gold, .section--dark .gold, em.gold { color: var(--gold-bright); }

/* film grain — fixed, GPU-cheap, non-interactive */
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ---------- Reveal (heavy fade-up + blur) ---------- */
.js .reveal { opacity: 0; transform: translateY(38px); filter: blur(8px); }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out); }

/* =====================================================================
   MAGNETIC BUTTONS (button-in-button)
   ===================================================================== */
.btn {
  --btn-bg: var(--espresso); --btn-fg: var(--on-dark); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 16px 14px 24px; border: 1px solid var(--btn-bd); border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--sans); font-size: .9rem; font-weight: 600; letter-spacing: .005em; line-height: 1;
  transition: transform .55s var(--ease), background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:not(:has(.btn__orb)) { padding: 14px 24px; }
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: scale(.975); }
.btn--lg { padding: 17px 18px 17px 30px; font-size: 1rem; }
.btn--lg:not(:has(.btn__orb)) { padding: 17px 30px; }
.btn--sm { padding: 10px 12px 10px 18px; font-size: .82rem; }
.btn--sm:not(:has(.btn__orb)) { padding: 10px 18px; }
.btn--block { display: flex; width: 100%; }

.btn__label { display: inline-block; }
.btn__orb { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.16); font-size: .95rem; transition: transform .55s var(--ease), background-color .35s var(--ease); flex: none; }
.btn:hover .btn__orb { transform: translate(3px, -1px) scale(1.06); }
.btn--sm .btn__orb { width: 22px; height: 22px; font-size: .82rem; }

.btn--accent { --btn-bg: var(--accent); --btn-fg: #FBF7EF; box-shadow: 0 16px 32px -16px rgba(160,60,40,.6); }
.btn--accent:hover { --btn-bg: var(--accent-hover); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: #241705; }
.btn--gold:hover { --btn-bg: var(--gold-hover); }
.btn--gold .btn__orb { background: rgba(36,23,5,.14); }
.btn--ink { --btn-bg: var(--espresso); --btn-fg: var(--on-dark); }
.btn--ink:hover { --btn-bg: var(--accent); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost .btn__orb { background: rgba(36,28,21,.08); }
.btn--ghost:hover { --btn-bg: var(--espresso); --btn-fg: var(--on-dark); --btn-bd: var(--espresso); }
.btn--ghost.btn--on-dark { --btn-fg: var(--on-dark); --btn-bd: var(--field-dark); }
.btn--ghost.btn--on-dark .btn__orb { background: rgba(255,255,255,.12); }
.btn--ghost.btn--on-dark:hover { --btn-bg: var(--cream); --btn-fg: var(--espresso); --btn-bd: var(--cream); }

.stars { color: var(--gold); letter-spacing: 2px; }
.section--dark .stars { color: var(--gold-bright); }

/* eyebrow pill */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .68rem; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: rgba(255,255,255,.5); }
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.eyebrow--onDark { color: var(--on-dark-2); border-color: var(--line-dark); background: rgba(255,255,255,.04); }
.eyebrow--onDark .eyebrow__dot { background: var(--gold-bright); }

.pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.pill { font-family: var(--mono); font-size: .72rem; letter-spacing: .03em; color: var(--muted); border: 1px solid var(--line); padding: 8px 14px; border-radius: var(--r-pill); background: var(--card); }

.check { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; font-size: 1.45rem; font-weight: 700; }
.check--accent { background: var(--accent); color: #FBF7EF; }
.check--gold { width: 44px; height: 44px; font-size: 1.2rem; background: var(--gold); color: #241705; }

/* =====================================================================
   DOUBLE-BEZEL (Doppelrand)
   ===================================================================== */
.bezel { background: rgba(36,28,21,.04); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--bezel-pad); }
.bezel__core { position: relative; background: var(--card); border-radius: calc(var(--r-xl) - var(--bezel-pad)); box-shadow: inset 0 1px 1px rgba(255,255,255,.7), var(--shadow-soft); overflow: hidden; }
.bezel--dark { background: rgba(255,255,255,.045); border-color: var(--line-dark); }
.bezel--dark .bezel__core { background: var(--espresso-2); box-shadow: inset 0 1px 1px rgba(255,255,255,.06), var(--shadow-dark); }

/* Fields */
.field { width: 100%; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--field); background: var(--card); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.field::placeholder { color: var(--muted); opacity: 1; }
.field:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(160,60,40,.16); }
.field--dark { background: rgba(255,255,255,.05); border-color: var(--field-dark); color: var(--on-dark); }
.field--dark::placeholder { color: var(--on-dark-3); }
.field--dark:focus-visible { border-color: var(--gold-bright); box-shadow: 0 0 0 3px rgba(227,192,121,.22); }
select.field { -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236E6353' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
select.field--dark { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23C9BCA6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); }
.field[aria-invalid="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(160,60,40,.16); }

.consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.section--dark .consent, .referral__form .consent { color: var(--on-dark-2); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

/* =====================================================================
   FLOATING ISLAND NAV
   ===================================================================== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; pointer-events: none; padding: clamp(12px, 2vw, 20px) var(--gutter) 0; }
.nav__island { pointer-events: auto; width: 100%; max-width: var(--shell); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 20px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: rgba(251,247,239,.72); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: var(--shadow-island); transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.nav.is-stuck .nav__island { background: rgba(251,247,239,.9); box-shadow: 0 16px 40px -16px rgba(45,33,22,.4); }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .04em; flex: none; }
.brand__word { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--serif); font-style: italic; font-size: 1.28rem; }
.brand__tag { font-family: var(--mono); font-size: .54rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }

.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links > a { color: var(--ink-2); font-size: .875rem; font-weight: 500; position: relative; padding: 4px 0; }
.nav__links > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 1.5px; background: var(--accent); border-radius: 2px; transition: right .4s var(--ease); }
.nav__links > a:hover { color: var(--accent-text); }
.nav__links > a:hover::after { right: 0; }
.nav__cta { margin-left: 4px; }

.nav__toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(255,255,255,.4); flex: none; }
.nav__toggle-bar { width: 18px; height: 2px; background: var(--ink); margin-inline: auto; border-radius: 2px; transition: transform .45s var(--ease), opacity .3s var(--ease); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 899px) {
  /* backdrop-filter makes the pill a containing block for position:fixed children,
     which would trap the full-screen menu inside the pill — drop it on mobile. */
  .nav__island { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(251,247,239,.95); }
  .brand, .nav__toggle { position: relative; z-index: 41; }
  .nav__links {
    position: fixed; inset: 0; z-index: 40;
    flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    background: rgba(251,247,239,.92); -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .5s var(--ease), visibility 0s .5s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .5s var(--ease); }
  .nav__links > a { font-family: var(--serif); font-size: 2rem; color: var(--ink); padding: 8px; opacity: 0; transform: translateY(24px); }
  .nav__links.is-open > a { opacity: 1; transform: none; transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
  .nav__links.is-open > a:nth-child(1) { transition-delay: .08s; }
  .nav__links.is-open > a:nth-child(2) { transition-delay: .14s; }
  .nav__links.is-open > a:nth-child(3) { transition-delay: .20s; }
  .nav__links.is-open > a:nth-child(4) { transition-delay: .26s; }
  .nav__links.is-open > a:nth-child(5) { transition-delay: .32s; }
  .nav__links > a::after { display: none; }
  .nav__cta { margin: 18px 0 0; opacity: 0; transform: translateY(24px); }
  .nav__links.is-open .nav__cta { opacity: 1; transform: none; transition: opacity .5s var(--ease-out) .38s, transform .6s var(--ease-out) .38s; }
  .nav__toggle { display: flex; }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero { padding-top: clamp(120px, 18vw, 180px); padding-bottom: clamp(56px, 9vw, 104px); }
.hero__grid { display: grid; gap: clamp(40px, 6vw, 68px); align-items: center; }
.hero__copy { max-width: 620px; }
.eyebrow + .hero__title, .eyebrow { margin-bottom: 24px; }
.hero__title { font-size: clamp(2.7rem, 6vw, 4.6rem); line-height: .98; letter-spacing: -.02em; font-weight: 400; margin-bottom: 26px; }
.hero__title em { font-style: italic; color: var(--accent-text); }
.hero__lead { font-size: 1.1875rem; line-height: 1.65; color: var(--ink-2); max-width: 48ch; margin-bottom: 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__trust { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-family: var(--mono); font-size: .72rem; letter-spacing: .03em; color: var(--muted); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust li + li::before { content: "✦"; margin-right: 22px; color: var(--gold); font-size: .6rem; }

.hero__media { position: relative; }
.bezel--hero .bezel__core img { width: 100%; height: clamp(320px, 46vw, 520px); object-fit: cover; }
.island-quote { position: absolute; left: clamp(-8px, 2vw, 24px); bottom: clamp(-28px, -3vw, -20px); max-width: 320px; display: block; padding: 18px 22px; border-radius: var(--r-lg); background: rgba(33,26,20,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--on-dark); box-shadow: var(--shadow-dark); }
.island-quote blockquote { font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.35; }
.island-quote figcaption { margin-top: 8px; font-family: var(--mono); font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-bright); }

/* home band — golden-hour home moved below the (Elizabeth) hero */
.homeband { position: relative; height: clamp(300px, 42vw, 480px); overflow: hidden; }
.homeband img { width: 100%; height: 100%; object-fit: cover; }
.homeband::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(28,20,14,.62), rgba(28,20,14,.12) 45%, rgba(28,20,14,.04)); }
.homeband__cap { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(22px, 4vw, 44px); text-align: center; font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark); }
.homeband__cap .stars { color: var(--gold-bright); margin-right: 8px; }

/* =====================================================================
   MARQUEE
   ===================================================================== */
.marquee { position: relative; background: var(--espresso); color: var(--on-dark-2); overflow: hidden; border-block: 1px solid var(--line-dark); }
.marquee__row { display: flex; align-items: center; gap: 30px; white-space: nowrap; width: max-content; padding: 16px 0; font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; animation: marquee 42s linear infinite; }
.marquee__dot { color: var(--gold-bright); }
/* WCAG 2.2.2 Pause, Stop, Hide — on-page control for the auto-scrolling ticker */
.marquee__pause { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; padding: 0; font-size: .8rem; line-height: 1; color: var(--gold-bright); background: var(--espresso); border: 1px solid var(--line-dark); border-radius: 50%; cursor: pointer; }
.marquee.is-paused .marquee__row { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =====================================================================
   SECTION HEAD
   ===================================================================== */
.secthead { margin-bottom: clamp(44px, 6vw, 72px); max-width: 760px; }
.secthead--center { text-align: center; margin-inline: auto; }
.secthead .eyebrow { margin-bottom: 22px; }
.secthead__title { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.02; letter-spacing: -.015em; font-weight: 400; }
.secthead__title em { font-style: italic; color: var(--accent-text); }
.secthead__title.on-dark em { color: var(--gold-bright); }
.secthead__lead { margin-top: 20px; font-size: 1.125rem; line-height: 1.6; color: var(--muted); max-width: 56ch; }
.secthead--center .secthead__lead { margin-inline: auto; }
.secthead__lead.on-dark-2 { color: var(--on-dark-2); }

.reviews-link { margin-top: 20px; }
.reviews-link a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.reviews-link a:hover { text-decoration: underline; }

/* =====================================================================
   ACADEMY (imagery + Coming Soon)
   ===================================================================== */
.academy__grid { display: grid; gap: clamp(24px, 3.5vw, 36px); }
.video { display: flex; flex-direction: column; }
.video__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.video__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,10,.15), rgba(20,14,10,.55)); }
.video__tag { position: absolute; z-index: 2; bottom: 12px; right: 14px; font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--on-dark-2); background: rgba(20,14,10,.6); padding: 5px 9px; border-radius: var(--r-sm); }
.soon { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.soon__badge { font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 8px 15px; border-radius: var(--r-pill); background: var(--gold); color: #241705; }
.soon__note { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark); }
.video__body { padding: clamp(22px, 3vw, 30px); }
.video__title { font-size: clamp(1.6rem, 3vw, 2.05rem); color: var(--on-dark); margin-bottom: 10px; font-weight: 400; }
.video__desc { font-size: 1.0625rem; line-height: 1.6; color: var(--on-dark-2); margin-bottom: 24px; max-width: 46ch; }
.video__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* =====================================================================
   GUIDES (asymmetric bento)
   ===================================================================== */
.guides__grid { display: grid; gap: clamp(16px, 2vw, 22px); grid-template-columns: 1fr; }
.guide .bezel__core { display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding: clamp(24px, 3vw, 32px); transition: transform .6s var(--ease); }
.guide:hover .bezel__core { transform: translateY(-4px); }
.guide__num { font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 16px; }
.guide__title { font-size: 1.55rem; margin-bottom: 10px; font-weight: 400; }
.guide__desc { font-size: .9375rem; line-height: 1.55; color: var(--muted); margin-bottom: 24px; flex: 1; }
.guide .btn { margin-top: auto; }

/* =====================================================================
   SEARCH PANELS
   ===================================================================== */
.search__grid { display: grid; gap: clamp(18px, 2.5vw, 26px); }
.search__panel .bezel__core { height: 100%; }
.search__core { padding: clamp(30px, 4vw, 52px); }
.search__core--ink { background: var(--espresso-2); }
.search__core--img { position: relative; background-image: var(--panel-img); background-size: cover; background-position: center; color: var(--on-dark); }
.search__core--img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(28,20,14,.94) 0%, rgba(28,20,14,.78) 48%, rgba(28,20,14,.34) 100%); }
.search__inner { position: relative; z-index: 1; }
.search__core--img .eyebrow { color: var(--on-dark-2); border-color: var(--line-dark); background: rgba(255,255,255,.05); }
.search__core--img .eyebrow__dot { background: var(--gold-bright); }
.search__ptitle { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.06; margin: 4px 0 18px; font-weight: 400; }
.search__ptitle em { font-style: italic; color: var(--accent-text); }
.search__core--img .search__ptitle { color: var(--on-dark); }
.search__core--img .search__ptitle em { color: var(--gold-bright); }
.search__ptitle.on-dark { color: var(--on-dark); }
.search__ptitle.on-dark em.gold { color: var(--gold-bright); }
.search__pbody { font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); margin-bottom: 30px; max-width: 42ch; }
.search__core--img .search__pbody { color: var(--on-dark-2); }
.search__pbody.on-dark-2 { color: var(--on-dark-2); }

/* =====================================================================
   NETWORK / STATE MAP
   ===================================================================== */
.network__grid { display: grid; gap: clamp(34px, 5vw, 52px); }
.statemap { display: none; grid-template-columns: repeat(11, minmax(26px, 1fr)); grid-auto-rows: 1fr; gap: 5px; }
.statemap__cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: var(--r-sm); border: 1px solid var(--line-dark); background: rgba(255,255,255,.05); color: var(--on-dark-2); font-family: var(--mono); font-size: clamp(.5rem, 1.1vw, .68rem); font-weight: 500; transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease); }
.statemap__cell:hover { background: rgba(176,141,62,.35); color: var(--on-dark); transform: translateY(-1px); border-color: var(--gold); }
.statemap__cell.is-selected { background: var(--gold); color: #241705; border-color: var(--gold); font-weight: 600; }
.statemap__select { margin-top: 4px; }
@media (min-width: 620px) { .statemap { display: grid; } .statemap__select { display: none; } }

.referral .bezel__core { padding: clamp(26px, 3.5vw, 38px); }
.referral__heading { font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--on-dark); margin: 12px 0 24px; font-weight: 400; }
.referral__form { display: grid; gap: 14px; }
.referral__fine { font-size: .75rem; line-height: 1.5; color: var(--on-dark-3); margin-top: 4px; }
.referral__sent { display: grid; gap: 16px; justify-items: start; }
.referral__sent p { color: var(--on-dark-2); line-height: 1.6; }

/* =====================================================================
   TESTIMONIALS
   ===================================================================== */
.quotes__grid { display: grid; gap: clamp(18px, 2.5vw, 26px); }
.quote .bezel__core { padding: clamp(26px, 3vw, 34px); height: 100%; }
.quote .stars { display: block; margin-bottom: 16px; }
.quote blockquote { font-family: var(--serif); font-style: italic; font-size: 1.3125rem; line-height: 1.42; color: var(--ink); margin-bottom: 18px; font-weight: 400; }
.quote figcaption { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.quote--feature .bezel__core { background: var(--espresso); }
.quote--feature blockquote { color: var(--on-dark); font-size: clamp(1.5rem, 3vw, 2.05rem); line-height: 1.3; }
.quote--feature figcaption { color: var(--gold-bright); }
.quote--feature .stars { color: var(--gold-bright); }

/* =====================================================================
   ABOUT
   ===================================================================== */
.about__grid { display: grid; gap: clamp(40px, 6vw, 64px); align-items: center; }
.bezel--about { max-width: 460px; }
.bezel--about .bezel__core img { width: 100%; height: clamp(360px, 60vw, 480px); object-fit: cover; }
.about__title { margin-top: 4px; }
.about__body { font-size: 1.1875rem; line-height: 1.75; color: var(--ink-2); margin-top: 22px; max-width: 60ch; }
.about__sign { font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: var(--accent-text); margin: 10px 0 24px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--espresso); color: var(--on-dark-2); padding-block: clamp(60px, 8vw, 88px) 36px; }
.footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
.footer .brand__name { color: var(--on-dark); font-family: var(--serif); font-style: italic; font-size: 1.5rem; }
.footer .brand__word { display: flex; flex-direction: column; }
.footer .brand__tag { font-family: var(--mono); font-size: .58rem; text-transform: uppercase; letter-spacing: .16em; color: var(--on-dark-3); }
.footer__blurb { margin-top: 16px; font-size: .9375rem; line-height: 1.6; color: var(--on-dark-2); max-width: 34ch; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer__label { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--on-dark-3); margin-bottom: 4px; }
.footer__col a { color: var(--on-dark-2); font-size: .9375rem; padding: 2px 0; }
.footer__col a:hover { color: var(--gold-bright); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.footer__legal, .footer__eho { font-size: .8125rem; color: var(--on-dark-3); }
.footer__legal a { color: var(--on-dark-2); text-decoration: underline; }
.footer__legal a:hover { color: var(--gold-bright); }
.footer__eho { display: inline-flex; align-items: center; gap: 8px; }

/* =====================================================================
   STICKY CTA
   ===================================================================== */
.sticky-cta { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border: none; border-radius: var(--r-pill); background: var(--accent); color: #FBF7EF; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-island); transition: transform .55s var(--ease), background-color .3s var(--ease); }
.sticky-cta:hover { background: var(--accent-hover); color: #FBF7EF; transform: translateY(-2px); }
.sticky-cta[hidden] { display: none; }

/* =====================================================================
   MODAL
   ===================================================================== */
.modal { width: min(93vw, 600px); max-height: 92vh; margin: auto; padding: 0; border: none; border-radius: var(--r-lg); background: var(--cream); color: var(--ink); box-shadow: var(--shadow-modal); overflow: hidden; }
.modal::backdrop { background: rgba(20,14,10,.55); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.modal__inner { display: flex; flex-direction: column; max-height: 92vh; }
.modal__bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); flex: none; }
.modal__label { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.modal__close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; font-size: 1.25rem; line-height: 1; color: var(--ink); display: flex; align-items: center; justify-content: center; transition: background-color .25s var(--ease), color .25s var(--ease); }
.modal__close:hover { background: var(--espresso); color: var(--on-dark); border-color: var(--espresso); }
.step { padding: clamp(24px, 4vw, 36px); overflow-y: auto; }
.step--thanks { text-align: center; display: grid; justify-items: center; gap: 10px; padding-block: clamp(36px, 6vw, 54px); }
.modal__title { font-size: clamp(1.9rem, 4vw, 2.4rem); line-height: 1.06; font-weight: 400; }
/* app.js focuses each step's h2 (tabindex="-1") so screen readers announce the step.
   It is not a keyboard-operable control, so suppress the ring the auto-open would paint. */
.modal__title:focus-visible { outline: none; }
.modal__title em { font-style: italic; color: var(--accent-text); }
.modal__sub { margin: 12px 0 24px; color: var(--muted); font-size: 1.0625rem; line-height: 1.55; }
.step--thanks .modal__sub { max-width: 42ch; }

.back-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; padding: 0 0 18px; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.back-link:hover { color: var(--accent-text); }

.choose__grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.choice { display: grid; gap: 6px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; transition: transform .5s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.choice:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-soft); }
.choice__no { font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .1em; color: var(--gold-text); }
.choice__title { font-family: var(--serif); font-size: 1.4rem; }
.choice__desc { font-size: .9rem; color: var(--muted); line-height: 1.45; }

.lead-form { display: grid; gap: 0; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.field-row--full { grid-column: 1 / -1; }

.chips { border: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 9px; }
.chip { font-family: var(--mono); font-size: .74rem; letter-spacing: .03em; padding: 9px 15px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); color: #FBF7EF; border-color: var(--accent); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (min-width: 620px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .choose__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  .academy__grid { grid-template-columns: 1fr 1fr; }
  .search__grid { grid-template-columns: 1fr 1fr; }
  .quotes__grid { grid-template-columns: 1fr 1fr; }
  .quote--feature { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .guides__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
  .network__grid { grid-template-columns: 1.15fr .85fr; align-items: start; }
  .about__grid { grid-template-columns: .82fr 1.18fr; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .guides__grid { grid-template-columns: repeat(4, 1fr); }
  .guides__grid > .guide:nth-child(1) { grid-column: span 2; }
  .guides__grid > .guide:nth-child(1) .guide__title { font-size: 1.85rem; }
}

/* =====================================================================
   MOTION PREFERENCES (WCAG 2.3.3 / 2.2.2)
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee__row { animation: none !important; }
  .marquee__pause { display: none; } /* ticker is static here — a pause control would claim motion that isn't running */
  .js .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .nav__links > a, .nav__cta { opacity: 1 !important; transform: none !important; }
}

/* =====================================================================
   LEAD PIPELINE UI — honeypot, failure message, test-mode banner
   Added when the forms were wired to /lead.php.
   ===================================================================== */
:root {
  --accent-bright: #E8998A;  /* oxblood AS TEXT on espresso — ~7.6:1 AA */
}

/* Honeypot. Deliberately NOT `display:none` or `visibility:hidden` — bots skip
   those, which is exactly the behaviour we want to avoid. Pushed off-screen
   instead, and kept out of the a11y tree via aria-hidden/tabindex in the HTML. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Shown only when a send actually failed. Until the forms were wired, failure
   and success both rendered the thank-you screen; this is the honest path. */
.form-error {
  margin: 0;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--accent-text);            /* on cream (modal forms) — ~6.4:1 AA */
  border-left: 3px solid var(--accent);
  padding: 10px 0 10px 12px;
  background: rgba(160, 60, 40, .06);
  border-radius: 0 var(--r-sm, 6px) var(--r-sm, 6px) 0;
}
.form-error a { color: inherit; text-decoration: underline; }

/* #net-form sits on the espresso section, where the cream-tuned red fails AA. */
.section--dark .form-error,
.referral__form .form-error {
  color: var(--accent-bright);          /* on espresso — ~7.6:1 AA */
  background: rgba(232, 153, 138, .10);
  border-left-color: var(--accent-bright);
}

/* Test-mode banner. Injected by app.js only when the endpoint reports
   mode:"test", so a test submission is unmistakable in any screenshot. */
#qa-banner {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9999;
  background: var(--accent);
  color: #FFFFFF;                        /* on oxblood — ~6.6:1 AA */
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 16px;
}
/* The error region is focusable (see showFormError) purely so it is announced;
   it is not an interactive control, so suppress the ring the .focus() would paint. */
.form-error:focus { outline: none; }
.form-error:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
