/* ==========================================================================
   Andrews Accounting & Tax Service — lead-magnet landing page
   Law Firm template grammar; evergreen / warm cream / wheat; Mona Sans Expanded.
   ========================================================================== */

@font-face {
  font-family: "Mona Sans";
  src: url("fonts/mona-sans-var-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #1F3A2E;
  --green-deep: #183025;
  --green-ink: #10221A;
  --night: #0F1E17;
  --pine: #2F5A44;          /* small text on cream */
  --pine-ink: #284E3B;      /* small text on sand */
  --sage-light: #A9C4AE;    /* text on green */
  --cream: #F4EFE4;
  --paper: #FAF7F0;
  --sand: #EAE2D1;
  --rule: #CDBFA4;
  --wheat: #D4B26A;         /* fills, marks; text only on green */
  --wheat-hover: #C6A257;
  --wheat-deep: #7E5F27;    /* wheat text on cream */

  --ink: var(--green-ink);
  --muted: #4A564F;
  --on-dark: #F4EFE4;
  --on-dark-soft: #C9D1C8;
  --line-dark: rgba(244, 239, 228, 0.2);

  --font: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: 125%;
  --semi: 112%;

  --gutter: clamp(16px, 3.4vw, 48px);
  --maxw: 1380px;
  --header-h: 84px;
  --section-pad: clamp(88px, 11vw, 150px);

  --r-btn: 8px;
  --r-card: 8px;
  --r-panel: 10px;
  --r-chip: 6px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);

  --focus: var(--wheat-deep);
}

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

html {
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--pine) var(--cream);
}
html.has-smoothscroll { scroll-behavior: auto !important; }

/* Lenis' required rules, inlined */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-stretch: 100%;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--green);
}

::selection { background: var(--wheat); color: var(--green-ink); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.band-green, .band-night, .site-footer, .hero, .svc-link { --focus: var(--wheat); }

section[id] { scroll-margin-top: var(--header-h); }

.nowrap { white-space: nowrap; }
.couplet span { display: block; text-wrap: balance; }

.sr-only {
  position: absolute !important; 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: 16px; top: -60px; z-index: 200;
  background: var(--green); color: var(--cream);
  padding: 12px 18px; border-radius: var(--r-btn); font-weight: 600; text-decoration: none;
  transition: top 200ms var(--ease-out);
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

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

/* ---------- type ---------- */
.h2, .hero-title, .h3, .statement-text, .svc-title, .about-name, .quiet-title, .a11y-title, .prose h2, .fact-value, .step-num, .record-term, .ev-name, .form-title, .pain-title, .step-title {
  font-stretch: var(--wide);
}
.h2 {
  font-size: clamp(30px, 3.3vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 500;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(21px, 1.8vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.pain-title, .step-title, .ev-name, .form-title, .record-term, .about-name { text-wrap: balance; }
.lede {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
}

/* plain-text eyebrow / side labels with a square marker (house rule) */
.eyebrow, .side-label, .mini-label, .footer-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  font-stretch: var(--semi);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.eyebrow::before, .side-label::before, .mini-label::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  margin-top: 0.42em;
  border-radius: 2px;
  background: var(--wheat);
}
.side-label { color: var(--pine); }
.section-sand .side-label { color: var(--pine-ink); }
.side-label-light, .mini-label { color: var(--sage-light); }
.mini-label-dark { color: var(--pine); }
.eyebrow-light { color: var(--cream); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 600;
  font-stretch: 106%;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 220ms var(--ease-soft),
    color 220ms var(--ease-soft),
    border-color 220ms var(--ease-soft),
    box-shadow 260ms var(--ease-out),
    transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 14px; }

.btn-wheat { background: var(--wheat); color: var(--green-ink); }
.btn-green { background: var(--green); color: var(--cream); }
.btn-ghost-light { background: transparent; color: var(--cream); border-color: rgba(244, 239, 228, 0.55); }

@media (hover: hover) and (pointer: fine) {
  .btn-wheat:hover { background: var(--wheat-hover); box-shadow: 0 12px 26px -12px rgba(126, 95, 39, 0.75); }
  .btn-green:hover { background: var(--green-deep); box-shadow: 0 12px 26px -12px rgba(16, 34, 26, 0.6); }
  .btn-ghost-light:hover { background: rgba(244, 239, 228, 0.12); border-color: var(--cream); }
}

/* ==========================================================================
   HEADER — floating cream bar (Law Firm)
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 14px 0 auto 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.nav-bar {
  pointer-events: auto;
  position: relative;
  width: min(900px, 100%);
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 8px 8px 12px;
  border-radius: var(--r-panel);
  background: rgba(250, 247, 240, 0.86);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
  box-shadow: 0 10px 30px -18px rgba(16, 34, 26, 0.45);
  transition: background-color 300ms var(--ease-soft), box-shadow 300ms var(--ease-soft);
}
.site-header.is-scrolled .nav-bar { background: rgba(250, 247, 240, 0.97); box-shadow: 0 14px 34px -18px rgba(16, 34, 26, 0.5); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); flex: none; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: var(--r-chip);
  background: var(--green); color: var(--wheat);
  font-size: 19px; font-weight: 600; font-stretch: var(--wide); line-height: 1;
}
.brand-text { display: grid; line-height: 1; gap: 4px; }
.brand-word { font-size: 18px; font-weight: 600; font-stretch: var(--wide); letter-spacing: -0.03em; color: var(--green); }
.brand-sub { font-size: 11px; font-weight: 600; font-stretch: 100%; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pine); white-space: nowrap; }

.nav { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a:not(.btn) {
  display: inline-flex; align-items: center;
  min-height: 42px; padding: 0 12px;
  font-size: 12px; font-weight: 600; font-stretch: var(--semi); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; border-radius: var(--r-chip);
  transition: background-color 200ms var(--ease-soft);
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:not(.btn):hover { background: rgba(31, 58, 46, 0.07); }
}
.nav-links .btn-green { color: var(--cream); }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; margin-left: auto;
  border: 0; border-radius: var(--r-chip);
  background: var(--green);
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle-bar { display: block; width: 18px; height: 1.5px; background: var(--cream); border-radius: 1px; transition: transform 240ms var(--ease-out); }
.site-header.menu-open .nav-toggle-bar:first-child { transform: translateY(3.75px) rotate(45deg); }
.site-header.menu-open .nav-toggle-bar:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav { margin-left: 0; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px;
    border-radius: var(--r-panel);
    background: var(--paper);
    box-shadow: 0 22px 44px -20px rgba(16, 34, 26, 0.5);
  }
  .nav-links.is-open { display: flex; animation: menuIn 220ms var(--ease-out); }
  .nav-links a:not(.btn) { min-height: 48px; padding: 0 14px; font-size: 13px; }
  .nav-cta-mobile { display: block; margin-top: 6px; }
  .nav-cta-mobile .btn { width: 100%; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   HERO — full bleed, headline bottom-left, lede + CTA bottom-right
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--cream);
  background: var(--green-deep);
  overflow: hidden;
  isolation: isolate;
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 62% 30%; transform-origin: 60% 35%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(14, 28, 21, 0.94) 0%, rgba(14, 28, 21, 0.84) 30%, rgba(14, 28, 21, 0.5) 48%, rgba(14, 28, 21, 0.14) 62%, rgba(14, 28, 21, 0) 72%),
    linear-gradient(to right, rgba(14, 28, 21, 0.5) 0%, rgba(14, 28, 21, 0) 48%),
    linear-gradient(to left, rgba(14, 28, 21, 0.5) 0%, rgba(14, 28, 21, 0) 40%),
    linear-gradient(to bottom, rgba(14, 28, 21, 0.3) 0%, rgba(14, 28, 21, 0) 18%);
}
.hero-inner {
  position: absolute; z-index: 2;
  left: 0; right: 0; bottom: 0;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter) clamp(36px, 6.5vh, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 40px;
  align-items: end;
}
.hero-copy .eyebrow { margin-bottom: 20px; }
.hero-title {
  font-size: clamp(38px, calc((100vw - 2 * var(--gutter) - 420px) / 13.4), 74px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.hero-line { display: block; white-space: nowrap; }
.hero-lede { font-size: 17px; line-height: 1.55; color: rgba(244, 239, 228, 0.92); margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 auto; }

@media (max-height: 820px) and (min-width: 761px) {
  .hero-title { font-size: clamp(38px, min(calc((100vw - 2 * var(--gutter) - 420px) / 13.4), 8.8vh), 74px); }
  .hero-inner { padding-bottom: clamp(28px, 5vh, 56px); }
}

@media (max-width: 1080px) and (min-width: 761px) {
  .hero-inner { grid-template-columns: 1fr; gap: 22px; }
  .hero-title { font-size: clamp(42px, 6.6vw, 66px); }
  .hero-scrim {
    background:
      linear-gradient(to top, rgba(14, 28, 21, 0.95) 0%, rgba(14, 28, 21, 0.9) 36%, rgba(14, 28, 21, 0.76) 50%, rgba(14, 28, 21, 0.34) 62%, rgba(14, 28, 21, 0) 76%),
      linear-gradient(to right, rgba(14, 28, 21, 0.45) 0%, rgba(14, 28, 21, 0) 50%),
      linear-gradient(to bottom, rgba(14, 28, 21, 0.3) 0%, rgba(14, 28, 21, 0) 18%);
  }
  .hero-side { max-width: 560px; }
  .hero-actions .btn { flex: 0 1 auto; }
}

/* ==========================================================================
   BANDS & SECTIONS
   ========================================================================== */
.band { padding-block: var(--section-pad); }
.band-green { background: var(--green); color: var(--on-dark); }
.band-night {
  background:
    radial-gradient(60% 90% at 85% 10%, rgba(212, 178, 106, 0.16) 0%, rgba(212, 178, 106, 0) 60%),
    var(--night);
  color: var(--on-dark);
}
.section { padding-block: var(--section-pad); }
.section-sand { background: var(--sand); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 22%) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: clamp(44px, 5vw, 72px);
}
.section-head .side-label { padding-top: 0.9em; }
.section-head-main { display: grid; gap: 20px; max-width: 900px; }
.section-head-light .h2 { color: var(--on-dark); }

/* ---------- statement band ---------- */
.statement-row {
  display: grid;
  grid-template-columns: minmax(0, 22%) minmax(0, 1fr);
  gap: 24px;
}
.statement-row .side-label { padding-top: 0.75em; }
.statement { margin: 0; max-width: 1020px; }
.statement blockquote { margin: 0; }
.statement-text {
  font-size: clamp(25px, 2.75vw, 42px);
  line-height: 1.22;
  letter-spacing: -0.022em;
  font-weight: 400;
  color: var(--on-dark);
}
.statement-cite {
  display: flex; align-items: center; gap: 16px;
  margin-top: 30px;
  font-size: 14.5px; color: var(--on-dark-soft);
}
.cite-rule { width: 56px; height: 2px; background: var(--wheat); flex: none; border-radius: 1px; }

.glance {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(28px, 6vw, 110px);
  margin-top: clamp(72px, 9vw, 128px);
  margin-left: calc(22% + 24px);
  align-items: start;
}
.glance-why { display: grid; gap: 20px; align-content: start; justify-items: start; }
.glance-why p { color: var(--on-dark-soft); font-size: 17px; max-width: 42ch; }
.glance-facts { display: grid; gap: 18px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 3vw, 40px); margin: 0; }
.fact { padding: 22px 0 24px; border-bottom: 1px solid var(--line-dark); }
.fact:nth-child(-n+2) { border-top: 1px solid var(--line-dark); }
.fact dt { font-size: 12px; font-weight: 600; font-stretch: var(--semi); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-light); }
.fact dd { margin: 10px 0 0; display: grid; gap: 6px; }
.fact-value { font-size: clamp(26px, 2.2vw, 36px); text-wrap: balance; line-height: 1.05; font-weight: 300; letter-spacing: -0.025em; color: var(--cream); }
.fact-note { font-size: 14.5px; line-height: 1.45; color: var(--on-dark-soft); }

/* ---------- sound familiar ---------- */
.familiar .section-head { margin-bottom: clamp(36px, 4vw, 56px); }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(28px, 4vw, 64px);
  margin-left: calc(22% + 24px);
  max-width: 900px;
}
.pain { padding: 24px 0 30px; border-top: 1px solid var(--rule); }
.pain-title { font-size: 19px; letter-spacing: -0.025em; margin-bottom: 8px; line-height: 1.25; }
.pain p { color: var(--muted); font-size: 16.5px; max-width: 38ch; }

/* ---------- services (photo cards) ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.4vw, 20px); }
.svc-link {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 2 / 1;
  border-radius: var(--r-card);
  color: var(--cream); text-decoration: none;
  background: var(--green);
}
.svc-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.svc-link::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14, 28, 21, 0.93) 0%, rgba(14, 28, 21, 0.74) 28%, rgba(14, 28, 21, 0.22) 58%, rgba(14, 28, 21, 0) 74%);
}
.svc-text {
  position: absolute; z-index: 1; left: 0; right: 64px; bottom: 0;
  padding: 0 0 clamp(20px, 2vw, 28px) clamp(20px, 2vw, 28px);
  display: grid; gap: 6px;
}
.svc-title { font-size: clamp(20px, 1.7vw, 26px); line-height: 1.15; font-weight: 500; letter-spacing: -0.022em; text-wrap: balance; }
.svc-desc { font-size: 15px; line-height: 1.45; color: rgba(244, 239, 228, 0.9); text-wrap: pretty; max-width: 44ch; }
.svc-arrow {
  position: absolute; z-index: 1; right: clamp(20px, 2vw, 28px); bottom: clamp(22px, 2.1vw, 30px);
  width: 22px; height: 22px; color: var(--cream);
  transition: transform 260ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .svc-link:hover img { transform: scale(1.04); }
  .svc-link:hover .svc-arrow { transform: translateX(4px); }
}

/* ---------- process 01–04 (pinned photo) ---------- */
.process { background: var(--paper); }
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.process-media { position: relative; }
.process-media img {
  position: sticky; top: 0;
  width: 100%; height: 100vh; height: 100svh; object-fit: cover; object-position: 45% 30%;
}
.process-body { padding: var(--section-pad) max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))) var(--section-pad) clamp(32px, 5vw, 88px); }
.process-body .side-label { margin-bottom: 18px; }
.process-body .h2 { margin-bottom: clamp(36px, 4vw, 56px); }
.steps { display: grid; }
.step { display: grid; gap: 10px; padding: 30px 0 34px; border-top: 1px solid var(--rule); }
.step:last-child { border-bottom: 1px solid var(--rule); }
.step-num { font-size: clamp(40px, 3.6vw, 56px); line-height: 1; font-weight: 300; letter-spacing: -0.035em; color: var(--pine); font-variant-numeric: tabular-nums; }
.step-title { font-size: 20px; letter-spacing: -0.025em; margin-top: 8px; }
.step p { color: var(--muted); max-width: 46ch; }
.focus-ready .focus-item { transition: opacity 200ms linear, filter 200ms linear; will-change: opacity, filter; }

/* ---------- about (green band) ---------- */
.about-row {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4.4vw, 72px);
  align-items: start;
}
.about-card {
  display: grid; align-content: space-between; gap: 18px;
  aspect-ratio: 4 / 5;
  padding: clamp(22px, 2.2vw, 32px);
  border-radius: var(--r-card);
  background: var(--green-deep);
  border: 1px solid var(--line-dark);
}
.about-card-mono { font-size: clamp(76px, 8vw, 128px); line-height: 0.9; font-weight: 300; font-stretch: var(--wide); letter-spacing: -0.04em; color: var(--wheat); }
.about-card-label { font-size: 12px; font-weight: 600; font-stretch: var(--semi); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); }
.about-card-note { font-size: 14.5px; line-height: 1.45; color: var(--on-dark-soft); margin-top: -10px; }
.about-body { display: grid; gap: 18px; }
.about-name { font-size: clamp(26px, 2.3vw, 34px); letter-spacing: -0.025em; line-height: 1.1; }
.about-role { font-size: 12.5px; font-weight: 600; font-stretch: var(--semi); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-light); margin-top: -6px; }
.about-body p:not(.about-role) { color: var(--on-dark-soft); max-width: 60ch; }
.about-facts { display: grid; gap: 18px; justify-items: start; }
.record { width: 100%; }
.record li { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line-dark); }
.record li:last-child { border-bottom: 1px solid var(--line-dark); }
.record-term { font-size: 18px; letter-spacing: -0.025em; font-weight: 500; color: var(--wheat); line-height: 1.25; }
.record-note { font-size: 15px; color: var(--on-dark-soft); }
.about-facts .btn { margin-top: 10px; }

/* ---------- everyday tax work ---------- */
.everyday { background: var(--cream); }
.everyday-list { margin-left: calc(22% + 24px); max-width: 900px; counter-reset: ev; }
.everyday-list li {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: baseline; gap: 16px;
  padding: 22px 0; border-top: 1px solid var(--rule);
}
.everyday-list li:last-child { border-bottom: 1px solid var(--rule); }
.ev-num { font-size: 14px; font-weight: 600; font-stretch: var(--semi); letter-spacing: 0.08em; color: var(--wheat-deep); font-variant-numeric: tabular-nums; }
.ev-name { font-size: clamp(21px, 2vw, 30px); letter-spacing: -0.025em; line-height: 1.15; font-weight: 400; }

/* ---------- referral band ---------- */
.referral-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: end;
}
.referral-head { display: grid; gap: 22px; }
.referral-head .h2 { color: var(--on-dark); max-width: 18ch; }
.referral-body { display: grid; gap: 26px; justify-items: start; }
.referral-body p { color: var(--on-dark-soft); max-width: 46ch; font-size: 17.5px; }

/* ---------- FAQ ---------- */
.faq-list { margin-left: calc(22% + 24px); max-width: 900px; }
.acc-item { border-top: 1px solid var(--rule); }
.acc-item:last-child { border-bottom: 1px solid var(--rule); }
.acc-heading { font-size: inherit; }
.acc-trigger {
  width: 100%; min-height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-size: clamp(17px, 1.35vw, 20px); font-weight: 500; font-stretch: var(--semi); letter-spacing: -0.02em; line-height: 1.3; color: var(--ink);
}
.acc-q { text-wrap: balance; }
.acc-icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: var(--r-chip); background: rgba(31, 58, 46, 0.08); transition: background-color 200ms var(--ease-soft); }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; margin: -0.8px 0 0 -7px;
  background: var(--green); border-radius: 1px; transition: transform 260ms var(--ease-out);
}
.acc-icon::after { transform: rotate(90deg); }
.acc-item.is-open .acc-icon { background: var(--wheat); }
.acc-item.is-open .acc-icon::after { transform: rotate(0deg); }
@media (hover: hover) and (pointer: fine) {
  .acc-trigger:hover .acc-icon { background: rgba(31, 58, 46, 0.14); }
  .acc-item.is-open .acc-trigger:hover .acc-icon { background: var(--wheat-hover); }
}
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease-out); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; }
.acc-inner p { color: var(--muted); max-width: 64ch; padding: 0 60px 26px 0; }

/* ---------- quiet room ---------- */
.quiet { background: var(--cream); padding-top: var(--section-pad); }
.quiet-figure {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: end;
}
.quiet-figure img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-panel); }
.quiet-caption { display: grid; gap: 18px; padding-bottom: clamp(8px, 2vw, 32px); }
.quiet-title { font-size: clamp(36px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -0.032em; font-weight: 500; text-wrap: balance; max-width: 11ch; }
.quiet-caption p { color: var(--muted); font-size: clamp(17px, 1.3vw, 19px); max-width: 34ch; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 110px);
  align-items: start;
}
.contact-intro { display: grid; gap: 22px; justify-items: start; position: sticky; top: calc(var(--header-h) + 24px); }
.assure { display: grid; gap: 10px; margin-top: 6px; }
.assure li { position: relative; padding-left: 28px; font-size: 16px; color: var(--ink); }
.assure li::before {
  content: ""; position: absolute; left: 0; top: 0.22em; width: 16px; height: 16px;
  background: no-repeat center / 16px 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%232F5A44' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.lead-form {
  display: grid; gap: 22px;
  padding: clamp(24px, 3.2vw, 44px);
  border-radius: var(--r-panel);
  background: var(--paper);
  box-shadow: 0 30px 60px -36px rgba(16, 34, 26, 0.38), 0 2px 6px -2px rgba(16, 34, 26, 0.08);
}
.form-title { font-size: 24px; letter-spacing: -0.022em; line-height: 1.15; }
.form-note { color: var(--muted); font-size: 14.5px; margin-top: -12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field-group legend { font-size: 15px; font-weight: 600; color: var(--ink); }
.req { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #857D6B;
  border-radius: var(--r-chip);
  background: #fff;
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color 200ms var(--ease-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field textarea:hover { border-color: var(--green); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--wheat-deep); outline-offset: 1px; border-color: var(--green); }
.field input[aria-invalid="true"] { border-color: #A3341F; }
.field-error { color: #A3341F; font-size: 14px; }
.field-error::before { content: "! "; font-weight: 700; }
.field-group { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.field-group legend { padding: 0; margin-bottom: 10px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; }
.choice {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px;
  font-size: 15.5px; line-height: 1.3; cursor: pointer;
}
.choice input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--green); cursor: pointer; }
.btn-submit { justify-self: start; }
.form-status { font-weight: 600; color: var(--pine); }
.form-status:empty { display: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--green); color: var(--on-dark); padding: clamp(64px, 7vw, 96px) 0 32px; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(48px, 5vw, 72px);
}
.footer-brand { display: grid; gap: 20px; align-content: start; justify-items: start; }
.brand-footer .brand-word { color: var(--cream); }
.brand-footer .brand-sub { color: var(--sage-light); }
.brand-footer .brand-mark { background: var(--wheat); color: var(--green-ink); }
.footer-brand p { color: var(--on-dark-soft); max-width: 38ch; font-size: 15.5px; }
.footer-label { color: var(--sage-light); margin-bottom: 14px; font-size: 12px; }
.footer-col p, .footer-col li { font-size: 15.5px; color: var(--on-dark-soft); line-height: 1.6; }
.footer-col ul { display: grid; gap: 4px; }
.footer-col a { color: var(--cream); text-decoration-color: rgba(244, 239, 228, 0.35); display: inline-flex; min-height: 32px; align-items: center; }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover { text-decoration-color: var(--wheat); } }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding-top: 26px; border-top: 1px solid var(--line-dark);
  font-size: 14px; color: var(--on-dark-soft);
}
.footer-disclaimer { margin-top: 14px; font-size: 13px; color: var(--sage-light); }

/* ---------- accessibility statement page ---------- */
.a11y-hero {
  background: var(--green);
  color: var(--on-dark);
  padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) 0 clamp(56px, 7vw, 96px);
}
.a11y-hero .eyebrow { margin-bottom: 20px; }
.a11y-title { font-size: clamp(38px, 5vw, 70px); line-height: 1.02; letter-spacing: -0.032em; font-weight: 500; margin-bottom: 24px; }
.a11y-lede { max-width: 640px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--on-dark-soft); margin-bottom: 24px; }
.a11y-updated { font-size: 14px; color: var(--sage-light); }
.a11y-body { padding-block: clamp(56px, 7vw, 104px) var(--section-pad); }
.a11y-grid { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 760px); gap: clamp(32px, 6vw, 110px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; }
.toc ul { display: grid; gap: 2px; border-left: 1px solid var(--rule); }
.toc a { display: flex; align-items: center; min-height: 40px; padding-left: 16px; color: var(--muted); text-decoration: none; font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--green); text-decoration: underline; } }
.prose { display: grid; gap: clamp(40px, 5vw, 64px); }
.prose section { display: grid; gap: 16px; }
.prose h2 { font-size: clamp(24px, 2.1vw, 32px); letter-spacing: -0.025em; line-height: 1.15; }
.prose p, .prose li { color: var(--muted); max-width: 60ch; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a:not(.btn) { color: var(--green); font-weight: 500; text-decoration-color: var(--wheat-deep); }
.prose ul { display: grid; gap: 12px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: var(--wheat); }
.contact-card { display: grid; gap: 10px; padding: 24px 26px; border-radius: var(--r-panel); background: var(--paper); box-shadow: 0 20px 44px -30px rgba(16, 34, 26, 0.4); }
.contact-card p { color: var(--ink); }
.back-link { justify-self: start; margin-top: 8px; }
.page-a11y .site-footer { padding-top: 40px; }
.footer-bottom-solo { border-top: 0; padding-top: 0; }

@media (max-width: 900px) {
  .a11y-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}
@media (max-width: 760px) {
  .back-link { justify-self: stretch; }
}

/* ==========================================================================
   MOTION — Law Firm grammar: hero settle, word blur-up, statement fill
   (content is visible by default; JS opts elements into hidden states)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: heroSettle 2.2s var(--ease-out) both; }
  .is-split .split-w {
    display: inline-block;
    animation: wordIn 1s var(--ease-out) both;
    animation-delay: var(--wd, 0ms);
  }
  .hero .eyebrow, .hero-actions { animation: fadeUp 900ms var(--ease-out) both; }
  .hero .eyebrow { animation-delay: 200ms; }
  .hero-actions { animation-delay: 1150ms; }
  .scrub-w { transition: opacity 120ms linear; }

  .pre-reveal { opacity: 0; transform: translateY(16px); filter: blur(2.5px); }
  .pre-reveal.is-visible {
    opacity: 1; transform: none; filter: none;
    transition: opacity 1s var(--ease-soft), transform 1s var(--ease-out), filter 1s var(--ease-soft);
    transition-delay: var(--d, 0ms);
  }
}
@keyframes heroSettle { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes wordIn {
  from { opacity: 0.001; filter: blur(10px); transform: translateY(10px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .glance { margin-left: 0; }
  .about-row { grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.2fr); }
  .about-facts { grid-column: 2; }
}

@media (max-width: 900px) {
  :root { --header-h: 80px; }
  .section-head, .statement-row { grid-template-columns: 1fr; gap: 16px; }
  .section-head .side-label, .statement-row .side-label { padding-top: 0; }
  .pain-grid, .faq-list, .everyday-list { margin-left: 0; }
  .glance { grid-template-columns: 1fr; gap: 48px; }
  .svc-grid { grid-template-columns: 1fr; }

  .process-grid { grid-template-columns: 1fr; }
  .process-media img { position: static; height: auto; aspect-ratio: 4 / 3; object-position: 50% 28%; }
  .process-body { padding: clamp(56px, 9vw, 88px) var(--gutter) var(--section-pad); }

  .referral-grid { grid-template-columns: 1fr; align-items: start; }

  .quiet-figure { grid-template-columns: 1fr; gap: 28px; }
  .quiet-figure img { aspect-ratio: 4 / 3; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-intro { position: static; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }

  /* hero: copy stacked at the bottom of the phone-composed image */
  .hero-media img { object-position: 50% 20%; }
  .hero-scrim {
    background:
      linear-gradient(to top, rgba(14, 28, 21, 0.96) 0%, rgba(14, 28, 21, 0.92) 38%, rgba(14, 28, 21, 0.78) 50%, rgba(14, 28, 21, 0.3) 58%, rgba(14, 28, 21, 0) 68%),
      linear-gradient(to bottom, rgba(14, 28, 21, 0.32) 0%, rgba(14, 28, 21, 0) 16%);
  }
  .hero-inner { grid-template-columns: 1fr; gap: 18px; padding-bottom: 24px; }
  .hero-copy .eyebrow { margin-bottom: 14px; }
  .hero-title { font-size: clamp(28px, 8.6vw, 42px); line-height: 1.04; }
  .hero-line { white-space: normal; }
  .hero-lede { font-size: 16px; margin-bottom: 18px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; }

  .btn { width: 100%; }
  .nav-bar .btn { width: auto; }
  .nav-cta-mobile .btn { width: 100%; }
  .btn-submit { justify-self: stretch; }
  .glance-why, .referral-body, .about-facts { justify-items: stretch; }

  .facts { grid-template-columns: 1fr 1fr; }
  .pain-grid { grid-template-columns: 1fr; }
  .svc-link { aspect-ratio: 4 / 3; }
  .svc-text { right: 52px; }

  .about-row { grid-template-columns: 1fr; gap: 36px; }
  .about-card { aspect-ratio: auto; min-height: 220px; }
  .about-facts { grid-column: auto; }

  .everyday-list li { grid-template-columns: 44px minmax(0, 1fr); }
  .footer-top { grid-template-columns: 1fr; }

  .field-row, .choice-grid { grid-template-columns: 1fr; }
  .choice-row { flex-direction: column; gap: 0; }
  .acc-inner p { padding-right: 0; }
  .footer-bottom { flex-direction: column; }
}

/* short phones: keep the hero copy clear of the subject's face */
@media (max-width: 760px) and (max-height: 760px) {
  .hero-lede { display: none; }
  .hero-title { font-size: clamp(28px, 8.4vw, 38px); }
}

@media (max-width: 400px) {
  .eyebrow, .side-label, .mini-label { font-size: 11px; letter-spacing: 0.11em; }
  .btn { font-size: 15px; padding: 0 16px; }
  .facts { grid-template-columns: 1fr; }
  .fact:nth-child(2) { border-top: 0; }
  .brand-sub { font-size: 11px; letter-spacing: 0.01em; text-transform: none; }
  .h2 { font-size: 28px; }
  .pain-title, .step-title, .ev-name, .prose h2 { font-stretch: var(--semi); }
}
.prose h2 { text-wrap: balance; }
