/* ==========================================================================
   4EG Bookkeeping LLC — lead-magnet landing page
   Law Firm template grammar, 4EG's own forest / sage / cream / gold identity.
   ========================================================================== */

@font-face {
  font-family: "Host Grotesk";
  src: url("fonts/host-grotesk-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* brand (from 4egbookkeeping.com CSS + logo pixels) */
  --forest: #2F3E2E;
  --forest-deep: #263325;
  --forest-ink: #1F2A1E;
  --sage: #6B7D4E;          /* large text / marks only on cream (3.99:1) */
  --olive: #5F7045;         /* small text on cream (4.79:1) */
  --olive-ink: #4E5D38;     /* small text on sand */
  --sage-light: #A8B88A;    /* text on forest (5.35:1) */
  --cream: #F5F1E8;
  --paper: #FBF8F2;
  --sand: #ECE4D3;
  --tan: #D8C3A5;
  --rule: #CDBFA6;
  --gold: #D4A440;          /* fills, marks; text only on forest (4.97:1) */
  --gold-hover: #C8962E;
  --gold-deep: #8A5F17;     /* gold text on cream (4.99:1) */
  --gold-bright: #F2C75A;

  --ink: var(--forest-ink);
  --muted: #4F5A4B;         /* 6.4:1 on cream */
  --on-dark: #F5F1E8;
  --on-dark-soft: #CBCFC0;  /* ~6.9:1 on forest */
  --line-dark: rgba(245, 241, 232, 0.2);

  --font: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --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-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);

  --focus: var(--gold-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(--sage) 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-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--forest);
}

::selection { background: var(--gold); color: var(--forest-ink); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
p { margin: 0; }
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-forest, .site-footer, .hero, .svc-link { --focus: var(--gold-bright); }

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(--forest); 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 {
  font-size: clamp(32px, 3.6vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.032em;
  font-weight: 500;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.022em;
  font-weight: 500;
  text-wrap: balance;
}
.lede {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
  text-wrap: pretty;
}
p { text-wrap: pretty; }

/* plain-text eyebrow / side labels with a square marker (house rule) */
.eyebrow, .side-label, .mini-label, .step-kicker, .footer-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.eyebrow::before, .side-label::before, .mini-label::before, .step-kicker::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  margin-top: 0.42em;
  border-radius: 2px;
  background: var(--gold);
}
.side-label { color: var(--olive); }
.section-sand .side-label { color: var(--olive-ink); }
.side-label-light, .mini-label { color: var(--sage-light); }
.mini-label-dark { color: var(--olive); }
.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;
  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: 40px; padding: 0 16px; font-size: 14px; }

.btn-gold { background: var(--gold); color: var(--forest-ink); }
.btn-forest { background: var(--forest); color: var(--cream); }
.btn-ghost-light { background: transparent; color: var(--cream); border-color: rgba(245, 241, 232, 0.55); }

@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover { background: var(--gold-hover); box-shadow: 0 12px 26px -12px rgba(154, 107, 31, 0.75); }
  .btn-forest:hover { background: var(--forest-deep); box-shadow: 0 12px 26px -12px rgba(31, 42, 30, 0.6); }
  .btn-ghost-light:hover { background: rgba(245, 241, 232, 0.12); border-color: var(--cream); }
}

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--forest); font-weight: 600; font-size: 16px;
  text-decoration: underline; text-decoration-color: var(--rule);
  min-height: 44px;
  transition: text-decoration-color 200ms var(--ease-soft);
}
.icon-arrow { width: 18px; height: 18px; flex: none; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { text-decoration-color: var(--forest); }
  .text-link:hover .icon-arrow { transform: translateX(4px); }
}

/* ==========================================================================
   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(880px, 100%);
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 8px 8px 16px;
  border-radius: var(--r-panel);
  background: rgba(250, 247, 240, 0.84);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
  box-shadow: 0 10px 30px -18px rgba(31, 42, 30, 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.96); box-shadow: 0 14px 34px -18px rgba(31, 42, 30, 0.5); }

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--forest); flex: none; }
.brand-mark { height: 27px; width: auto; }
.brand-word { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; color: var(--forest); }

.nav { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 0 12px;
  font-size: 12.5px; font-weight: 600; 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(47, 62, 46, 0.07); }
}
.nav-links .btn-forest { 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(--forest);
  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(31, 42, 30, 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(--forest-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: 50% 42%; transform-origin: 55% 40%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(22, 30, 21, 0.9) 0%, rgba(22, 30, 21, 0.66) 24%, rgba(22, 30, 21, 0.18) 50%, rgba(22, 30, 21, 0) 64%),
    linear-gradient(to right, rgba(22, 30, 21, 0.38) 0%, rgba(22, 30, 21, 0) 46%),
    linear-gradient(to bottom, rgba(22, 30, 21, 0.28) 0%, rgba(22, 30, 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(40px, calc((100vw - 2 * var(--gutter) - 420px) / 12.6), 78px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.hero-line { display: block; white-space: nowrap; }
.hero-lede { font-size: 17px; line-height: 1.55; color: rgba(245, 241, 232, 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(40px, min(calc((100vw - 2 * var(--gutter) - 420px) / 12.6), 9.2vh), 78px); }
  .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(44px, 7.4vw, 72px); }
  .hero-side { max-width: 560px; }
  .hero-actions .btn { flex: 0 1 auto; }
}

/* ==========================================================================
   BANDS & SECTIONS
   ========================================================================== */
.band { padding-block: var(--section-pad); }
.band-forest { background: var(--forest); 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: 880px; }
.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: 1000px; }
.statement blockquote { margin: 0; }
.statement-text {
  font-size: clamp(26px, 3.05vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.024em;
  font-weight: 400;
  color: var(--on-dark);
  text-wrap: pretty;
}
.statement-cite {
  display: flex; align-items: center; gap: 16px;
  margin-top: 30px;
  font-size: 14.5px; color: var(--on-dark-soft);
}
.swoosh { width: 120px; height: 20px; flex: none; overflow: visible; }
.swoosh-lg { width: 180px; height: 28px; margin-top: -4px; }

.glance {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(28px, 4.4vw, 72px);
  margin-top: clamp(72px, 9vw, 128px);
  align-items: start;
}
.glance-photo img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--r-card);
}
.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: 40ch; }
.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: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-light); }
.fact dd { margin: 10px 0 0; display: grid; gap: 4px; }
.fact-value { font-size: clamp(32px, 2.7vw, 44px); text-wrap: balance; line-height: 1; font-weight: 300; letter-spacing: -0.03em; color: var(--cream); }
.fact-note { font-size: 14.5px; line-height: 1.45; color: var(--on-dark-soft); }

/* ---------- paths ---------- */
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.8vw, 40px); }
.path { display: flex; flex-direction: column; }
.path-media { position: relative; overflow: hidden; border-radius: var(--r-card); aspect-ratio: 16 / 11; }
.path-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.path-tag {
  position: absolute; left: 16px; top: 16px;
  padding: 7px 12px; border-radius: var(--r-chip);
  background: rgba(250, 247, 240, 0.92);
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest);
}
.path-body { display: grid; gap: 16px; padding-top: 28px; justify-items: start; }
.path-body > p { color: var(--muted); max-width: 52ch; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; width: 100%; margin-top: 4px; }
.check-list li {
  position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.45; color: var(--ink);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; 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='%235F7045' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (hover: hover) and (pointer: fine) {
  .path:hover .path-media img { transform: scale(1.03); }
}

/* ---------- 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: 20px; letter-spacing: -0.015em; margin-bottom: 8px; }
.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(--forest);
}
.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(22, 30, 21, 0.92) 0%, rgba(22, 30, 21, 0.72) 26%, rgba(22, 30, 21, 0.22) 56%, rgba(22, 30, 21, 0) 72%);
  transition: opacity 400ms var(--ease-soft);
}
.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(21px, 1.85vw, 28px); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
.svc-desc { font-size: 15px; line-height: 1.45; color: rgba(245, 241, 232, 0.88); text-wrap: pretty; }
.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); }
}

/* ---------- what to expect (pinned photo column) ---------- */
.expect { background: var(--paper); }
.expect-grid { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); }
.expect-text { padding: var(--section-pad) clamp(28px, 4vw, 64px) var(--section-pad) max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
.expect-intro { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 80px); }
.stack-title span { display: block; }
.stack-title span:nth-child(2) { color: var(--olive); }
.stack-title span:nth-child(3) { color: var(--sage); }
.expect-steps { display: grid; }
.expect-step { display: grid; gap: 14px; align-content: center; min-height: 64vh; padding: 24px 0; }
.step-kicker { color: var(--olive); }
.step-text { font-size: clamp(22px, 1.9vw, 30px); line-height: 1.3; letter-spacing: -0.018em; color: var(--ink); max-width: 24ch; text-wrap: pretty; }
.expect-inline { display: none; }
.expect-media { position: relative; }
.expect-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.expect-sticky img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); filter: blur(3px);
  transition: opacity 1s var(--ease-soft), transform 1.4s var(--ease-out), filter 1s var(--ease-soft);
}
.expect-sticky img.is-active { opacity: 1; transform: none; filter: none; }

.focus-ready .focus-item { transition: opacity 200ms linear, filter 200ms linear; will-change: opacity, filter; }

/* ---------- about (forest band) ---------- */
.about-row {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4.4vw, 72px);
  align-items: start;
}
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); }
.about-body { display: grid; gap: 18px; }
.about-name { font-size: clamp(28px, 2.4vw, 36px); letter-spacing: -0.025em; line-height: 1.1; }
.about-role { font-size: 13px; font-weight: 600; 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; }
.tags { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px; margin-top: 6px; }
.tags li {
  padding: 8px 12px; border-radius: var(--r-chip);
  border: 1px solid rgba(245, 241, 232, 0.28);
  font-size: 13.5px; line-height: 1.2; color: var(--cream);
}
.about-meaning { display: grid; gap: 18px; justify-items: start; }
.meaning { width: 100%; counter-reset: m; }
.meaning li { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line-dark); }
.meaning li:last-child { border-bottom: 1px solid var(--line-dark); }
.meaning-term { font-size: 21px; letter-spacing: -0.015em; font-weight: 500; color: var(--gold); }
.meaning-note { font-size: 15px; color: var(--on-dark-soft); }
.about-meaning .btn { margin-top: 10px; }

/* ---------- process 01–04 ---------- */
.process { background: var(--cream); }
.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: 40% 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 .h2 { margin-bottom: clamp(36px, 4vw, 56px); }
.steps { display: grid; }
.step {
  display: grid; grid-template-columns: auto; 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(44px, 4vw, 60px); line-height: 1; font-weight: 300; letter-spacing: -0.04em; color: var(--sage); font-variant-numeric: tabular-nums; }
.step-title { font-size: 21px; letter-spacing: -0.015em; margin-top: 8px; }
.step p { color: var(--muted); max-width: 46ch; }

/* ---------- 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(18px, 1.45vw, 21px); font-weight: 500; letter-spacing: -0.015em; 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(47, 62, 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(--forest); border-radius: 1px; transition: transform 260ms var(--ease-out);
}
.acc-icon::after { transform: rotate(90deg); }
.acc-item.is-open .acc-icon { background: var(--gold); }
.acc-item.is-open .acc-icon::after { transform: rotate(0deg); }
@media (hover: hover) and (pointer: fine) {
  .acc-trigger:hover .acc-icon { background: rgba(47, 62, 46, 0.14); }
  .acc-item.is-open .acc-trigger:hover .acc-icon { background: var(--gold-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; }

/* ---------- 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: 24px; justify-items: start; position: sticky; top: calc(var(--header-h) + 24px); }
.contact-direct { display: grid; gap: 8px; margin-top: 16px; }
.contact-phone { font-size: clamp(28px, 2.6vw, 38px); font-weight: 500; letter-spacing: -0.025em; color: var(--forest); text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.contact-place { color: var(--muted); font-size: 15px; max-width: 40ch; }

.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(31, 42, 30, 0.38), 0 2px 6px -2px rgba(31, 42, 30, 0.08);
}
.form-title { font-size: 26px; letter-spacing: -0.02em; }
.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; }
.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 #8F8775;
  border-radius: var(--r-chip);
  background: #fff;
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color 200ms var(--ease-soft), box-shadow 200ms var(--ease-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field textarea:hover { border-color: var(--forest); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 1px; border-color: var(--forest); }
.field input[aria-invalid="true"] { border-color: #A3341F; }
.field-error { color: #A3341F; font-size: 14px; }
.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 20px; }
.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(--forest); cursor: pointer; }
.btn-submit { justify-self: start; }
.form-status { font-weight: 600; color: var(--olive); }
.form-status:empty { display: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--forest); 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: 18px; align-content: start; }
.brand-footer .brand-word { color: var(--cream); }
.brand-footer .brand-mark { height: 30px; }
.footer-brand p { color: var(--on-dark-soft); max-width: 36ch; 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(245, 241, 232, 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(--gold); } }
.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-line a { color: var(--cream); }

/* ---------- accessibility statement page ---------- */
.a11y-hero {
  background: var(--forest);
  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(40px, 5.4vw, 76px); line-height: 1; letter-spacing: -0.035em; 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(--forest); text-decoration: underline; } }
.prose { display: grid; gap: clamp(40px, 5vw, 64px); }
.prose section { display: grid; gap: 16px; }
.prose h2 { font-size: clamp(26px, 2.3vw, 34px); letter-spacing: -0.025em; line-height: 1.15; }
.prose p, .prose li { color: var(--muted); max-width: 66ch; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a:not(.btn) { color: var(--forest); font-weight: 500; text-decoration-color: var(--gold); }
.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(--gold); }
.contact-card { display: grid; gap: 10px; padding: 24px 26px; border-radius: var(--r-panel); background: var(--paper); box-shadow: 0 20px 44px -30px rgba(31, 42, 30, 0.4); }
.contact-card p { color: var(--ink); }
.contact-card-label { display: inline-block; min-width: 92px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive); }
.back-link { justify-self: start; margin-top: 8px; }
.footer-bottom-solo { border-top: 0; padding-top: 0; }
.page-a11y .site-footer { padding-top: 40px; }

@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; }
  .swoosh path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out); }
  .swoosh.is-drawn path { stroke-dashoffset: 0; }

  .pre-reveal { opacity: 0; transform: translateY(16px); filter: blur(4px); }
  .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 { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .glance-facts { grid-column: 1 / -1; }
  .about-row { grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.2fr); }
  .about-meaning { 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 { margin-left: 0; }
  .path-grid { grid-template-columns: 1fr; gap: 56px; }
  .svc-grid { grid-template-columns: 1fr; }

  .expect-grid { grid-template-columns: 1fr; }
  .expect-media { display: none; }
  .expect-text { padding: var(--section-pad) var(--gutter); }
  .expect-step { min-height: 0; padding: 0 0 48px; gap: 12px; }
  .expect-inline {
    display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: var(--r-card); margin-bottom: 10px;
  }
  .step-text { max-width: none; }

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

  .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% 30%; }
  .hero-scrim {
    background:
      linear-gradient(to top, rgba(22, 30, 21, 0.96) 0%, rgba(22, 30, 21, 0.9) 34%, rgba(22, 30, 21, 0.62) 50%, rgba(22, 30, 21, 0) 70%),
      linear-gradient(to bottom, rgba(22, 30, 21, 0.3) 0%, rgba(22, 30, 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(29px, 9.3vw, 44px); line-height: 1.02; }
  .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, .text-link { width: auto; }
  .nav-cta-mobile .btn { width: 100%; }
  .btn-submit { justify-self: stretch; }

  .glance { grid-template-columns: 1fr; gap: 40px; }
  .glance-photo img { aspect-ratio: 4 / 3; }
  .glance-why { justify-items: stretch; }
  .facts { grid-template-columns: 1fr 1fr; }

  .check-list { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr; }

  .svc-link { aspect-ratio: 4 / 3; }

  .about-row { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 160px; }
  .tags { display: flex; flex-wrap: wrap; }
  .footer-top { grid-template-columns: 1fr; }
  .swoosh-lg { width: 120px; height: 20px; }
  .about-meaning { grid-column: auto; justify-items: stretch; }

  .field-row, .choice-grid { grid-template-columns: 1fr; }
  .acc-inner p { padding-right: 0; }
  .statement-cite { gap: 12px; }
  .swoosh { width: 64px; }

  .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(32px, 9.4vw, 40px); }
}

@media (max-width: 400px) {
  .eyebrow, .side-label, .mini-label, .step-kicker { font-size: 11.5px; letter-spacing: 0.12em; }
  .btn { font-size: 15px; padding: 0 16px; }
  .facts { grid-template-columns: 1fr; }
  .fact:nth-child(2) { border-top: 0; }
}
