/* =========================================================================
   Confessions of a Military Agent — homepage styles
   Rebuilt from the approved Claude Design mockup. Token-driven, mobile-first.
   Color note: the source label gray #6E7568 on cream is only 4.18:1 (fails AA
   for text). It is kept for decorative borders; --muted-text (#5F665A, ~5.2:1)
   is used wherever the gray is actual text. (WCAG 2.2 §1.4.3)
   ========================================================================= */

:root {
  /* Surfaces */
  --cream: #F4F0E6;
  --cream-2: #EDE7D8;
  --card: #FDFBF5;
  --green: #232B24;
  --green-2: #2B342C;
  /* Ink / text */
  --ink: #1F2620;
  --ink-2: #46503F;
  --muted: #6E7568;          /* borders / decorative only */
  --muted-text: #5F665A;     /* text on cream — AA corrected */
  /* Accents */
  --accent: #A6402C;
  --accent-hover: #7E2F20;
  --gold: #B08D3E;
  --gold-hover: #C9A554;
  /* Borders */
  --border: #DCD5C3;         /* decorative card borders */
  --border-dark: #3A453B;
  --field-border: #8E856B;   /* form-input boundary — 3.3:1 on cream/card (WCAG 1.4.11) */
  /* Accents (deep variants for text on light — AA) */
  --gold-deep: #8A6A2A;      /* gold text on cream/card — ~4.6:1 (was #B08D3E @3:1) */
  /* On dark */
  --on-dark: #C9C2AE;
  --on-dark-2: #B7BFAF;
  --on-dark-3: #96A08C;      /* nudged darker→lighter of #8B9483 for 4.5:1 on green */
  --field-dark-border: #7C8876;  /* dark-field boundary — ~3.5:1 on green (WCAG 1.4.11) */

  /* Type */
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 28px);
  --section-y: clamp(56px, 9vw, 88px);

  /* Radius */
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 14px; --r-2xl: 16px; --r-pill: 999px;

  /* Shadows (from source) */
  --shadow-btn: 0 8px 20px -8px rgba(166,64,44,.5);
  --shadow-card: 0 14px 28px -16px rgba(31,38,32,.28);
  --shadow-sticky: 0 12px 30px -8px rgba(31,38,32,.5);
  --shadow-modal: 0 40px 90px -20px rgba(0,0,0,.5);

  /* Motion */
  --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(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  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-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-weight: 400; line-height: 1.1; }
em { font-style: italic; }

/* Accessible focus for everyone */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}
/* gold ring only on genuinely dark surfaces; the modal is cream, so it keeps
   the higher-contrast accent outline (5.4:1 vs gold-on-cream 2.7:1) */
.section--dark :focus-visible { outline-color: var(--gold); }

/* ---------- 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(--ink); color: var(--cream); padding: 10px 16px;
  border-radius: var(--r-md); font-size: .875rem; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--cream); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); scroll-margin-top: 76px; }
.section--dark { background: var(--green); }
.on-dark { color: var(--cream); }
.on-dark-2 { color: var(--on-dark-2); }
.gold { color: var(--gold); }

/* ---------- Reveal on scroll (guarded so no-JS shows everything) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); filter: blur(6px); }
.js .reveal.is-visible {
  opacity: 1; transform: none; filter: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
}

/* =====================================================================
   ATOMS
   ===================================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .18em; margin-bottom: 18px;
}
.eyebrow--accent { color: var(--accent); }
.eyebrow--gold { color: var(--gold); }
.eyebrow__rule { width: 26px; height: 2px; background: currentColor; border-radius: 2px; }

.btn {
  --btn-bg: var(--ink); --btn-fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border: 1px solid transparent; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-size: .875rem; font-weight: 600; line-height: 1;
  text-align: center;
  transition: transform .5s var(--ease), background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: scale(.975); }
.btn--lg { padding: 16px 26px; font-size: .95rem; }
.btn--sm { padding: 10px 16px; font-size: .8125rem; }
.btn--block { display: flex; width: 100%; }

.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--cream); box-shadow: var(--shadow-btn); }
.btn--accent:hover { --btn-bg: var(--accent-hover); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--cream); }
.btn--dark:hover { --btn-bg: var(--accent); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--ink); }
.btn--gold:hover { --btn-bg: var(--gold-hover); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--cream); border-color: var(--ink); }
.btn--ghost.btn--on-dark { --btn-fg: var(--cream); border-color: var(--field-dark-border); }
.btn--ghost.btn--on-dark:hover { --btn-bg: var(--cream); --btn-fg: var(--ink); border-color: var(--cream); }

/* magnetic inner icon */
.btn__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(244,240,230,.18);
  transition: transform .5s var(--ease);
}
.btn:hover .btn__icon { transform: translate(3px, -1px); }

.play-icon {
  width: 0; height: 0; border-style: solid;
  border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor;
  margin-right: 2px;
}
.play-icon--lg { border-width: 9px 0 9px 15px; }

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

.badge {
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 6px 11px; border-radius: var(--r-sm);
}
.badge--corner {
  position: absolute; top: 16px; right: -8px;
  background: var(--cream); color: var(--accent);
  border: 1px solid var(--accent); transform: rotate(7deg); box-shadow: var(--shadow-card);
}

.tag {
  font-family: var(--font-mono); font-size: .6875rem; text-transform: uppercase;
  letter-spacing: .1em; padding: 8px 14px; border-radius: var(--r-sm);
}
.tag--accent { position: absolute; bottom: 16px; right: -8px; background: var(--accent); color: var(--cream); transform: rotate(4deg); }

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

.check-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; font-size: 1.5rem; font-weight: 700;
}
.check-circle--accent { background: var(--accent); color: var(--cream); }
.check-circle--gold { width: 44px; height: 44px; font-size: 1.25rem; background: var(--gold); color: var(--ink); }

/* Fields */
.field {
  width: 100%; padding: 13px 15px; border-radius: var(--r-md);
  border: 1px solid var(--field-border); 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-text); opacity: 1; }
.field:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(166,64,44,.18); }
.field--dark {
  background: rgba(244,240,230,.05); border-color: var(--field-dark-border); color: var(--cream);
}
.field--dark::placeholder { color: var(--on-dark-2); }
.field--dark:focus-visible { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,62,.25); }
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='%235F665A' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px 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='%23B7BFAF' 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(166,64,44,.18); }

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

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,240,230,.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__badge {
  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(--font-mono); font-size: .75rem; font-weight: 600; letter-spacing: .04em;
  transform: rotate(-8deg);
}
.logo__word { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; }
.logo__tag { font-family: var(--font-mono); font-size: .5625rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-text); }

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links > a { color: var(--ink); font-size: .875rem; font-weight: 500; padding: 6px 2px; }
.nav__links > a:hover { color: var(--accent); }
.nav__cta { margin-left: 6px; }

.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: transparent;
}
.nav__toggle-bar { width: 20px; height: 2px; background: var(--ink); margin-inline: auto; transition: transform .4s 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: 859px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream); border-bottom: 1px solid var(--border);
    padding: 12px var(--gutter) 20px;
    box-shadow: var(--shadow-card);
    clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none; visibility: hidden;
    transition: clip-path .45s var(--ease), opacity .3s var(--ease), visibility 0s .45s;
  }
  .nav__links.is-open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; visibility: visible; transition: clip-path .45s var(--ease), opacity .3s var(--ease), visibility 0s; }
  .nav__links > a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav__cta { margin: 10px 0 0; }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero { padding-top: clamp(48px, 7vw, 72px); padding-bottom: clamp(48px, 7vw, 64px); }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__title { font-family: var(--font-display); font-size: clamp(2.75rem, 6vw, 4.25rem); line-height: 1.04; letter-spacing: -.01em; margin-bottom: 22px; }
.hero__title em { color: var(--accent); }
.hero__lead { font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); max-width: 52ch; margin-bottom: 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__trust { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .8125rem; color: var(--muted-text); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust li + li::before { content: "·"; margin-right: 22px; margin-left: 0; color: var(--muted); }

.photo-frame {
  position: relative; background: var(--cream-2); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 12px;
}
.photo-frame img { width: 100%; border-radius: var(--r-md); object-fit: cover; }
.photo-frame--hero { transform: rotate(1.2deg); }
.photo-frame--hero img { height: clamp(300px, 58vw, 440px); }
.quote-tag {
  position: absolute; left: 14px; bottom: 14px; max-width: 74%;
  font-family: var(--font-display); font-style: italic; font-size: 1rem; line-height: 1.3;
  background: rgba(31,38,32,.88); color: var(--cream);
  padding: 12px 16px; border-radius: var(--r-md); transform: rotate(-1.5deg);
}

/* =====================================================================
   TICKER
   ===================================================================== */
.ticker { background: var(--ink); color: var(--on-dark); overflow: hidden; }
.ticker__row {
  display: flex; align-items: center; gap: 28px; white-space: nowrap;
  padding: 14px var(--gutter);
  font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .16em;
}
.ticker__dot { color: var(--accent); }

/* =====================================================================
   SECTION HEAD
   ===================================================================== */
.section-head { margin-bottom: 40px; }
.section-head--center { text-align: center; max-width: 720px; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 2.875rem); line-height: 1.1; }
.section-title em { color: var(--accent); }
.section-title.on-dark em { color: var(--gold); }
.section-lead { margin-top: 16px; font-size: 1.0625rem; line-height: 1.6; color: var(--muted-text); }
.section-lead.on-dark-2 { color: var(--on-dark-2); }

/* =====================================================================
   ACADEMY
   ===================================================================== */
.academy .section-head { display: grid; gap: 18px; align-items: end; }
.academy .section-head__aside { font-size: 1rem; line-height: 1.6; color: var(--on-dark-2); max-width: 40ch; }
.academy__grid { display: grid; gap: 24px; }
.video-card { background: var(--green-2); border: 1px solid var(--border-dark); border-radius: var(--r-xl); padding: 16px; scroll-margin-top: 84px; }
.video-thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.video-thumb--buyer { background: linear-gradient(160deg, #384437, #1F2620); }
.video-thumb--seller { background: linear-gradient(200deg, #443E32, #1F2620); }
.video-thumb__play {
  width: 60px; height: 60px; border-radius: 50%; border: none;
  background: rgba(244,240,230,.95); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  transition: transform .5s var(--ease), background-color .3s var(--ease);
}
.video-thumb__play:hover { transform: scale(1.08); background: var(--cream); }
.video-thumb__label {
  position: absolute; bottom: 10px; right: 12px;
  font-family: var(--font-mono); font-size: .625rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--on-dark-2); background: rgba(31,38,32,.6); padding: 4px 8px; border-radius: var(--r-sm);
}
.video-card__title { font-family: var(--font-display); font-size: 1.6875rem; color: var(--cream); margin-bottom: 8px; }
.video-card__body { font-size: 1rem; line-height: 1.6; color: var(--on-dark-2); margin-bottom: 20px; }
.video-card__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* =====================================================================
   GUIDES
   ===================================================================== */
.guides__grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.guide-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px 22px;
  transition: transform .5s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.guide-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-card); }
.guide-card__num { font-family: var(--font-mono); font-size: .6875rem; font-weight: 600; letter-spacing: .1em; color: var(--gold-deep); margin-bottom: 14px; }
.guide-card__title { font-family: var(--font-display); font-size: 1.3125rem; margin-bottom: 8px; }
.guide-card__desc { font-size: .9375rem; line-height: 1.55; color: var(--muted-text); margin-bottom: 20px; flex: 1; }
.guide-card .btn { margin-top: auto; }

/* =====================================================================
   SEARCH (MLS + PRE-APPROVAL)
   ===================================================================== */
.search__grid { display: grid; gap: 24px; }
.feature-card { border-radius: var(--r-2xl); padding: clamp(28px, 4vw, 44px); }
.feature-card--cream { background: var(--cream-2); border: 1px solid var(--border); }
.feature-card--ink { background: var(--ink); }
.feature-card__title { font-family: var(--font-display); font-size: 2rem; line-height: 1.15; margin-bottom: 16px; }
.feature-card__title em { color: var(--accent); }
.feature-card__title em.gold { color: var(--gold); }
.feature-card__body { font-size: 1rem; line-height: 1.6; color: var(--ink-2); margin-bottom: 26px; max-width: 46ch; }
.feature-card__body.on-dark-2 { color: var(--on-dark-2); }

/* =====================================================================
   NETWORK / STATE MAP
   ===================================================================== */
.network__grid { display: grid; gap: 40px; }
.network__map-wrap { }
.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(--border-dark);
  background: rgba(244,240,230,.07); color: var(--on-dark);
  font-family: var(--font-mono); font-size: clamp(.5rem, 1.1vw, .6875rem); font-weight: 500;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.statemap__cell:hover { background: rgba(176,141,62,.35); transform: translateY(-1px); }
.statemap__cell.is-selected { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 600; }
.statemap__select { margin-top: 4px; }

@media (min-width: 620px) {
  .statemap { display: grid; }
  .statemap__select { display: none; }
}

.referral-card { background: var(--green-2); border: 1px solid var(--border-dark); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 32px); }
.referral-card__heading { font-family: var(--font-display); font-size: 1.75rem; color: var(--cream); margin: 6px 0 22px; }
.referral-form { display: grid; gap: 14px; }
.referral-form__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
   ===================================================================== */
.testimonials__grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.testimonial { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 24px; }
.testimonial .stars { display: block; margin-bottom: 16px; }
.testimonial blockquote { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.4; color: var(--ink); margin-bottom: 18px; }
.testimonial figcaption { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-text); }

/* =====================================================================
   ABOUT
   ===================================================================== */
.about__grid { display: grid; gap: 40px; align-items: center; }
.photo-frame--about { transform: rotate(-1.2deg); max-width: 420px; }
.photo-frame--about img { height: clamp(320px, 70vw, 400px); }
.about__body { font-size: 1.0625rem; line-height: 1.7; color: var(--ink-2); margin-top: 18px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--ink); color: var(--on-dark); padding-block: clamp(48px, 7vw, 64px) 32px; }
.footer__grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
.footer .logo__name { color: var(--cream); }
.footer .logo__tag { color: var(--on-dark-3); }
.footer__blurb { margin-top: 14px; font-size: .875rem; line-height: 1.6; color: var(--on-dark); max-width: 34ch; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer__label { font-family: var(--font-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .12em; color: var(--on-dark-3); font-weight: 600; margin-bottom: 4px; }
.footer__col a { color: var(--on-dark); font-size: .875rem; padding: 3px 0; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-dark); }
.footer__legal, .footer__eho { font-size: .8125rem; color: var(--on-dark); }
.footer__legal a { color: var(--on-dark); text-decoration: underline; }
.footer__legal a:hover { color: var(--gold); }
.footer__eho { display: inline-flex; align-items: center; gap: 8px; }
.eho-glyph { font-size: 1rem; }

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

/* =====================================================================
   MODAL
   ===================================================================== */
.modal {
  width: min(92vw, 620px); max-height: 92vh; margin: auto; padding: 0; border: none;
  border-radius: var(--r-2xl); background: var(--cream); color: var(--ink);
  box-shadow: var(--shadow-modal); overflow: hidden;
}
.modal::backdrop { background: rgba(31,38,32,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.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(--border); flex: none; }
.modal__filelabel { font-family: var(--font-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-text); }
.modal__close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: transparent; font-size: 1.25rem; line-height: 1; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.modal__close:hover { background: var(--ink); color: var(--cream); }
.step { padding: clamp(22px, 4vw, 34px); overflow-y: auto; }
.step--thanks { text-align: center; display: grid; justify-items: center; gap: 8px; padding-block: clamp(34px, 6vw, 52px); }
.modal__title { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.125rem); line-height: 1.1; }
.modal__title em { color: var(--accent); }
.modal__sub { margin: 10px 0 22px; color: var(--muted-text); font-size: 1rem; 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 16px; font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-text); }
.back-link:hover { color: var(--accent); }

.choose__grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.choice { display: grid; gap: 6px; text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; transition: transform .4s 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-card); }
.choice__num { font-family: var(--font-mono); font-size: .6875rem; font-weight: 600; letter-spacing: .1em; color: var(--gold-deep); }
.choice__title { font-family: var(--font-display); font-size: 1.35rem; }
.choice__desc { font-size: .875rem; color: var(--muted-text); 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 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .04em; padding: 9px 15px; border-radius: var(--r-pill); border: 1px solid var(--border); 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: var(--cream); border-color: var(--accent); }

/* =====================================================================
   RESPONSIVE — desktop grid enhancements (mobile-first base above)
   ===================================================================== */
@media (min-width: 560px) {
  .guides__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  .academy__grid { grid-template-columns: 1fr 1fr; }
  .search__grid { grid-template-columns: 1fr 1fr; }
  .academy .section-head { grid-template-columns: 1.4fr .9fr; }
  .choose__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .section { scroll-margin-top: 76px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .network__grid { grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
  .about__grid { grid-template-columns: .82fr 1.18fr; gap: 56px; }
  .testimonials__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
@media (min-width: 1100px) {
  .guides__grid { grid-template-columns: repeat(5, 1fr); }
}

/* =====================================================================
   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;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .photo-frame--hero, .photo-frame--about, .badge--corner, .tag--accent, .logo__badge, .quote-tag { transform: none !important; }
}
