/* Mary E. McDonald, CPA — structure after the Advisory reference, Mary's own brand colours */

@font-face {
  font-family: "Parkinsans";
  src: url("fonts/Parkinsans-300-800.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0b2015;
  --night-2: #12301f;
  --night-3: #1a3d29;
  --forest: #006e33;
  --forest-deep: #00592a;
  --lime: #a9c23f;
  --lime-hi: #c4db5c;
  --sage: #f2f6ee;
  --sage-2: #e7eee0;
  --paper: #fbfcf8;
  --white: #ffffff;
  --ink: #16201a;
  --muted: #4a574f;
  --line: #d9e1d3;
  --line-dark: rgba(242, 246, 238, 0.14);
  --on-dark: #f2f6ee;
  --on-dark-muted: #b9c8bd;
  --focus: var(--forest);

  --font: "Parkinsans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1240px;
  --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  --header-h: 76px;
  --section-pad: clamp(84px, 10vw, 144px);

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

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
}
html.has-smoothscroll { scroll-behavior: auto !important; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
svg { display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.028em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button, input, textarea { font: inherit; color: inherit; }

::selection { background: var(--lime); color: var(--night); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.band-dark, .site-footer, .hero, .menu-panel { --focus: var(--lime-hi); }

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
#main:focus { outline: none; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--lime); color: var(--night); padding: 12px 18px; border-radius: var(--r-btn);
  font-weight: 600; text-decoration: none; transition: top 160ms var(--ease-out);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-pad) 0; }

/* ---------- eyebrow: mono + lime square (Advisory) ---------- */
.eyebrow {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; line-height: 1.4;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--forest);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.3em;
  background: var(--lime); border-radius: 1px;
}
.eyebrow-on-dark { color: var(--on-dark); }
.eb-short { display: none; }
.center .eyebrow { justify-content: center; }

.lead { font-size: clamp(17px, 1.25vw, 19px); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.band-dark .lead { color: var(--on-dark-muted); }

h2 { font-size: clamp(32px, 3.6vw, 52px); }

.section-head { margin-bottom: clamp(44px, 5vw, 72px); }
.section-head.center { text-align: center; }
.section-head.center .lead { margin: 18px auto 0; }
.section-head h2 + .lead { margin-top: 18px; }

/* ---------- buttons ---------- */
.btn {
  --btn-pad-l: 6px;
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 14px;
  min-height: 52px; padding: 6px 22px 6px var(--btn-pad-l);
  border-radius: var(--r-btn); border: 1px solid transparent;
  font-size: 16px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-icon {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill);
  background: var(--night); transition: transform 200ms var(--ease-out);
}
.btn-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-lime { background: var(--lime); color: var(--night); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset; }
.btn-ghost-light { color: var(--on-dark); border-color: rgba(242, 246, 238, 0.55); padding: 6px 24px; }
.btn-header { background: var(--white); color: var(--ink); min-height: 44px; padding: 6px 18px; font-size: 14.5px; }
@media (hover: hover) and (pointer: fine) {
  .btn-lime:hover { background: var(--lime-hi); box-shadow: 0 10px 28px -12px rgba(169, 194, 63, 0.75); }
  .btn-lime:hover .btn-icon, .tag-link:hover .btn-icon { transform: translateX(3px); }
  .btn-ghost-light:hover { background: rgba(242, 246, 238, 0.1); border-color: var(--on-dark); }
  .btn-header:hover { background: var(--lime); color: var(--night); }
}

/* ---------- header (transparent over hero, solid after) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--on-dark);
  transition: background-color 260ms ease, color 260ms ease, box-shadow 260ms ease;
}
.nav-bar {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--header-h); padding: 0 var(--edge);
}
.site-header.is-scrolled {
  background: rgba(251, 252, 248, 0.94); color: var(--ink);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  --focus: var(--forest);
}
.site-header.is-scrolled .btn-header { background: var(--night); color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) {
  .site-header.is-scrolled .btn-header:hover { background: var(--forest); color: var(--white); }
}

.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 48px; }
.wordmark-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-pill);
  background: var(--lime); color: var(--night); font-weight: 700; font-size: 18px; letter-spacing: -0.04em;
}
.wordmark-text { font-size: 19px; font-weight: 600; letter-spacing: -0.025em; white-space: nowrap; }
.wordmark-cpa { font-weight: 400; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: grid; place-content: center; gap: 5px; width: 48px; height: 48px; padding: 0;
  border: 0; background: transparent; color: inherit; border-radius: var(--r-btn); cursor: pointer;
}
.nav-toggle .bar { display: block; width: 22px; height: 2px; border-radius: 1px; background: currentColor; transition: transform 220ms var(--ease-out), opacity 160ms ease; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-panel {
  position: absolute; top: calc(100% - 6px); right: var(--edge);
  width: min(360px, calc(100vw - var(--gutter) * 2));
  padding: 14px; border-radius: var(--r-panel);
  background: var(--night); color: var(--on-dark);
  box-shadow: 0 24px 60px -24px rgba(11, 32, 21, 0.6);
  transform-origin: top right;
  opacity: 0; transform: translateY(-6px) scale(0.98); visibility: hidden; pointer-events: none;
  transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
}
.menu-panel.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.menu-links { list-style: none; }
.menu-links a {
  display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: var(--r-pill);
  text-decoration: none; font-size: 17px; color: var(--on-dark);
}
.menu-links a:hover { background: var(--night-2); }
.menu-cta { width: 100%; margin-top: 10px; }
.menu-cta .btn-label { flex: 1; text-align: center; padding-right: 40px; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--night); color: var(--on-dark);
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 72% 38%; z-index: -2; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 24, 15, 0.9) 0%, rgba(8, 24, 15, 0.84) 34%, rgba(8, 24, 15, 0.6) 52%, rgba(8, 24, 15, 0.2) 66%, rgba(8, 24, 15, 0) 74%),
    linear-gradient(0deg, rgba(8, 24, 15, 0.92) 0%, rgba(8, 24, 15, 0.6) 26%, rgba(8, 24, 15, 0) 52%),
    linear-gradient(180deg, rgba(8, 24, 15, 0.5) 0%, rgba(8, 24, 15, 0) 18%);
}
.hero-inner { padding: calc(var(--header-h) + 24px) var(--edge) clamp(118px, 15vh, 150px); max-width: calc(var(--edge) * 2 + 880px); }
.hero-title {
  font-size: clamp(42px, calc(100vw / 22.5), 78px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.02;
}
.hero-line { display: block; white-space: nowrap; }
.accent { font-style: normal; color: var(--lime-hi); }
.hero-sub { margin-top: 24px; max-width: 34em; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; color: #dfe8e1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-base {
  position: absolute; left: var(--edge); right: var(--edge); bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0 26px; border-top: 1px solid rgba(242, 246, 238, 0.2);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
}
.scroll-cue { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: var(--on-dark); }
.scroll-cue svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.hero-facts { list-style: none; display: flex; gap: clamp(18px, 3vw, 40px); }
.hero-facts li { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.hero-facts svg { width: 18px; height: 18px; fill: none; stroke: var(--lime-hi); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* hero entrance: words rise out of a light blur */
.js-motion .is-split .split-w {
  display: inline-block; opacity: 0; filter: blur(6px); transform: translateY(0.35em);
  animation: word-in 900ms var(--ease-out) forwards; animation-delay: var(--wd, 0ms);
}
@keyframes word-in { to { opacity: 1; filter: blur(0); transform: none; } }
.js-motion .hero-actions, .js-motion .hero-base { animation: fade-up 800ms var(--ease-out) 900ms both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- statement + facts ---------- */
.statement { background: var(--paper); }
.statement-grid { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 40px; }
.statement-grid > .eyebrow { margin-top: 0.6em; }
.statement-text { font-size: clamp(26px, 2.75vw, 42px); font-weight: 500; line-height: 1.2; letter-spacing: -0.025em; max-width: 26em; }
.scrub-w { transition: opacity 120ms linear; }
.fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(44px, 5vw, 68px); }
.fact-card {
  display: flex; flex-direction: column; padding: 26px 26px 30px;
  background: var(--sage); border-radius: var(--r-card);
}
.icon-badge {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill);
  background: var(--white); box-shadow: 0 1px 2px rgba(11, 32, 21, 0.08);
}
.icon-badge svg { width: 21px; height: 21px; fill: none; stroke: var(--forest); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fact-label { margin-top: 0; padding-top: 32px; font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fact-value { margin-top: 8px; font-size: clamp(30px, 2.6vw, 38px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; color: var(--ink); text-wrap: balance; }
.fact-note { margin-top: 12px; font-size: 15.5px; line-height: 1.5; color: var(--muted); }

/* ---------- dark band: services ---------- */
.band-dark { background: var(--night); color: var(--on-dark); }
.services-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 4vw, 64px); padding: 0 var(--edge); }
.services-intro { max-width: 640px; }
@media (min-width: 1100px) {
  .services-intro { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 96px); align-items: start; }
  .services-intro > .eyebrow { grid-column: 1; grid-row: 1; }
  .services-intro > h2 { grid-column: 1; grid-row: 2 / span 3; }
  .services-intro > .lead { grid-column: 2; grid-row: 2; margin-top: 6px; }
  .services-intro > .btn { grid-column: 2; grid-row: 3; justify-self: start; }
  .services-intro > .services-not { grid-column: 2; grid-row: 4; }
}
.services-intro h2 { color: var(--white); }
.services-intro .lead { margin: 20px 0 34px; }
.services-not { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 15.5px; color: var(--on-dark-muted); }
.not-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark); margin-right: 6px; }
.service-row { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-card { display: flex; flex-direction: column; padding: 10px; border-radius: var(--r-panel); background: var(--night-2); border: 1px solid var(--line-dark); }
.service-card img { width: 100%; height: auto; aspect-ratio: 4 / 4.3; object-fit: cover; border-radius: var(--r-card); }
.service-body { padding: 22px 14px 16px; }
.service-body h3 { font-size: clamp(19px, 1.75vw, 22px); color: var(--white); letter-spacing: -0.02em; }
.service-body p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--on-dark-muted); }

/* ---------- approach ---------- */
.approach { background: var(--paper); }
.approach-card {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 4vw, 64px);
  padding: 14px; border-radius: var(--r-panel); background: var(--white); border: 1px solid var(--line);
}
.approach-photo { margin: 0; position: relative; }
.approach-photo img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; object-position: 40% 30%; border-radius: var(--r-card); position: absolute; inset: 0; }
.steps { list-style: none; padding: 18px clamp(4px, 2vw, 28px) 18px 0; counter-reset: none; }
.step { display: grid; grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr); gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); transition: opacity 300ms ease, filter 300ms ease; }
.step:last-child { border-bottom: 0; }
.step-num { grid-column: 1; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.step h3 { grid-column: 1; font-size: 21px; letter-spacing: -0.02em; margin-top: 6px; }
.step > p:last-child { grid-column: 2; grid-row: 1 / span 2; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* ---------- question cards (stacked, sticky like Advisory's case studies) ---------- */
.questions { background: var(--sage); }
.q-stack { display: grid; gap: 22px; }
.q-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px);
  padding: 14px; border-radius: var(--r-panel); background: var(--paper);
  box-shadow: 0 -1px 0 var(--line), 0 18px 40px -30px rgba(11, 32, 21, 0.45);
}
.q-text { display: flex; flex-direction: column; padding: clamp(18px, 2.4vw, 32px) 0 clamp(18px, 2.4vw, 32px) clamp(14px, 2.2vw, 30px); }
.q-text h3 { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.03em; }
.q-text > p { margin-top: 16px; color: var(--muted); max-width: 44ch; }
.q-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: auto 0 0; padding-top: 30px; }
.q-meta div { padding-top: 18px; border-top: 1px solid var(--line); }
.q-meta dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.q-meta dd { margin: 6px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.q-photo { width: 100%; height: 100%; min-height: 360px; max-height: 470px; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-card); }
.tag-link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; margin-top: 30px;
  min-height: 48px; padding: 4px 18px 4px 4px; border-radius: var(--r-btn); border: 1px solid var(--line);
  background: var(--white); text-decoration: none;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  transition: transform 160ms var(--ease-out), border-color 200ms ease;
}
.tag-link .btn-icon { width: 38px; height: 38px; background: var(--lime); }
.tag-link .btn-icon svg { stroke: var(--night); }
.tag-link:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .tag-link:hover { border-color: var(--forest); } }

@media (min-width: 981px) {
  .q-card { position: sticky; top: calc(var(--header-h) + 24px); }
  .q-card:nth-child(2) { top: calc(var(--header-h) + 40px); }
  .q-card:nth-child(3) { top: calc(var(--header-h) + 56px); }
}

/* ---------- meet Mary ---------- */
.mary-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.mary-text h2 { color: var(--white); margin-bottom: 26px; }
.mary-text > p { color: var(--on-dark-muted); max-width: 58ch; }
.mary-text > p + p { margin-top: 16px; }
.career { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.career li {
  padding: 7px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-dark);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark);
}
.podcast { display: flex; align-items: flex-start; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-dark); color: var(--on-dark-muted); font-size: 16px; }
.podcast svg { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--lime-hi); stroke-width: 1.7; stroke-linecap: round; }
.podcast cite { font-style: normal; color: var(--on-dark); font-weight: 600; }
.mary-photo { position: relative; margin: 0; padding-bottom: 36px; }
.mary-photo img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: var(--r-panel); }
.mary-card {
  position: absolute; left: 24px; bottom: 0; display: flex; flex-direction: column; gap: 2px;
  padding: 16px 20px; border-radius: var(--r-card); background: var(--lime); color: var(--night);
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.6);
}
.mary-name { font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.mary-role { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- fit pill cloud ---------- */
.fit { background: var(--paper); }
.pill-cloud { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 980px; margin: 0 auto; }
.pill {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 18px 6px 6px;
  border-radius: var(--r-btn); background: var(--white); border: 1px solid var(--line);
  font-size: 16.5px; font-weight: 500; letter-spacing: -0.01em;
}
.pill-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill); background: var(--night); flex: none; }
.pill-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--lime-hi); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.not-fit-title { margin: 44px auto 16px; text-align: center; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pill-muted { background: transparent; border-style: dashed; border-color: #a7b3ab; color: var(--muted); }
.pill-muted .pill-icon { background: var(--sage-2); }
.pill-muted .pill-icon svg { stroke: var(--muted); }

/* ---------- FAQ ---------- */
.faq { background: var(--sage); }
.faq-wrap { max-width: calc(880px + var(--gutter) * 2); }
.acc-item { background: var(--paper); border-radius: var(--r-card); border: 1px solid var(--line); margin-bottom: 10px; transition: border-color 200ms ease; }
.acc-item.is-open { border-color: #b9c6b4; }
.acc-heading { font-size: inherit; }
.acc-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 64px;
  padding: 18px 22px; border: 0; background: transparent; text-align: left; cursor: pointer;
  font-size: 18.5px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35;
}
.acc-trigger > span:first-child { display: flex; align-items: flex-start; gap: 14px; }
.acc-trigger > span:first-child::before {
  content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.5em; border-radius: 1px;
  background: transparent; transition: background-color 200ms ease;
}
.acc-item.is-open .acc-trigger > span:first-child::before { background: var(--lime); }
.acc-icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: var(--r-pill); background: var(--sage); }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--forest); border-radius: 1px; transition: transform 240ms var(--ease-out); }
.acc-icon::after { transform: rotate(90deg); }
.acc-item.is-open .acc-icon { background: var(--night); }
.acc-item.is-open .acc-icon::before, .acc-item.is-open .acc-icon::after { background: var(--lime-hi); }
.acc-item.is-open .acc-icon::after { transform: rotate(0deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms var(--ease-out); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; }
.acc-inner p { padding: 0 64px 22px 44px; color: var(--muted); max-width: 70ch; }
.acc-panel { visibility: hidden; transition: grid-template-rows 300ms var(--ease-out), visibility 0s linear 300ms; }
.acc-item.is-open .acc-panel { visibility: visible; transition: grid-template-rows 300ms var(--ease-out), visibility 0s; }

/* ---------- contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; width: 900px; height: 900px; left: -320px; top: -360px; z-index: 0;
  background: radial-gradient(closest-side, rgba(0, 110, 51, 0.55), rgba(0, 110, 51, 0));
  pointer-events: none;
}
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-intro h2 { color: var(--white); }
.contact-intro .lead { margin-top: 20px; }
.contact-details { margin: 40px 0 0; display: grid; gap: 0; }
.contact-details div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-dark); }
.contact-details dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); padding-top: 3px; }
.contact-details dd { margin: 0; color: var(--on-dark); }
.contact-details a { color: var(--lime-hi); display: inline-block; padding: 6px 0; overflow-wrap: anywhere; }

.form-card { background: var(--paper); color: var(--ink); border-radius: var(--r-panel); padding: clamp(24px, 3vw, 40px); --focus: var(--forest); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.7); }
.form-required-note { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; margin-bottom: 8px; font-weight: 600; font-size: 16px; padding: 0; }
.req, .opt { font-weight: 400; color: var(--muted); font-size: 14.5px; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-pill);
  border: 1px solid #7d8a82; background: var(--white); font-size: 16px; line-height: 1.5;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(0, 110, 51, 0.28); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-hint { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.field-err { margin-top: 6px; font-size: 14.5px; color: #b3261e; font-weight: 500; }
.field-err:empty { display: none; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.radio { display: inline-flex !important; align-items: center; gap: 10px; min-height: 44px; font-weight: 400 !important; margin: 0 !important; cursor: pointer; }
.radio input { width: 20px; height: 20px; margin: 0; accent-color: var(--forest); }
.btn-submit { width: 100%; margin-top: 6px; }
.btn-submit .btn-label { flex: 1; text-align: center; padding-right: 40px; }
.form-legal { margin-top: 14px; font-size: 14px; color: var(--muted); }
.form-status:empty { display: none; }
.form-status { margin-top: 10px; color: #b3261e; font-weight: 500; }
.lead-form.is-sent { display: none; }
.form-success { padding: 12px 4px; }
.form-success:focus { outline: none; }
.icon-badge-lime { background: var(--lime); box-shadow: none; }
.icon-badge-lime svg { stroke: var(--night); stroke-width: 2.2; }
.form-success h3 { margin-top: 20px; font-size: 26px; }
.form-success p { margin-top: 12px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--on-dark); border-top: 1px solid var(--line-dark); padding: 56px 0 40px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line-dark); }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 26px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--on-dark-muted); }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.social { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-btn); border: 1px solid var(--line-dark); }
.social svg { width: 20px; height: 20px; }
.social .fill { fill: var(--on-dark); }
@media (hover: hover) and (pointer: fine) { .social:hover { background: var(--night-2); } }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 26px; font-size: 14.5px; color: var(--on-dark-muted); }
.footer-line a { color: var(--on-dark); }
.sep { margin: 0 8px; color: rgba(242, 246, 238, 0.35); }

/* ---------- scroll reveal (visible by default; JS opts in) ---------- */
.js-motion .pre-reveal { opacity: 0; transform: translateY(18px); filter: blur(3px); }
.js-motion .pre-reveal.is-visible {
  opacity: 1; transform: none; filter: none;
  transition: opacity 700ms var(--ease-out) var(--d, 0ms), transform 800ms var(--ease-out) var(--d, 0ms), filter 700ms var(--ease-out) var(--d, 0ms);
}
.focus-ready .focus-item { will-change: opacity, filter; }

/* ======================= responsive ======================= */
@media (max-width: 1080px) {
  .hero-facts li:nth-child(2) { display: none; }
}
@media (max-width: 980px) {
  .statement-grid { grid-template-columns: 1fr; gap: 0; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact-label { padding-top: 28px; }
  .approach-card { grid-template-columns: 1fr; }
  .approach-photo { aspect-ratio: 16 / 10; }
  .steps { padding: 0 10px 6px; }
  .q-card { grid-template-columns: minmax(0, 1fr); }
  .q-photo { grid-row: 1; min-height: 0; max-height: none; aspect-ratio: 16 / 10; height: auto; }
  .q-text { padding: 8px 10px 14px; }
  .mary-grid { grid-template-columns: 1fr; }
  .mary-photo { max-width: 520px; width: 100%; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1020px) {
  .service-row { grid-template-columns: 1fr; max-width: 560px; }
  .service-card img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
}
@media (max-width: 760px) {
  :root { --header-h: 66px; }
  body { font-size: 16.5px; }
  .wordmark-text { font-size: 17px; }
  .btn-header { display: none; }
  .hero-media img { top: -18%; height: 100%; object-position: 50% 0; }
  .hero-scrim {
    background:
      linear-gradient(0deg, rgba(8, 24, 15, 0.98) 0%, rgba(8, 24, 15, 0.95) 50%, rgba(8, 24, 15, 0.72) 58%, rgba(8, 24, 15, 0.3) 66%, rgba(8, 24, 15, 0) 74%),
      linear-gradient(180deg, rgba(8, 24, 15, 0.55) 0%, rgba(8, 24, 15, 0) 14%);
  }
  .eb-full { display: none; }
  .eb-short { display: inline; }
  .hero-inner > .eyebrow { white-space: nowrap; }
  .hero-sub { display: none; }
  .radio-row { flex-direction: column; gap: 6px; }
  .footer-line > span:not(.sep) { display: block; }
  .hero-inner { padding-bottom: 96px; }
  .hero-title { font-size: clamp(34px, 10vw, 44px); line-height: 1.04; }
  .hero-line { white-space: normal; }
  .hero-sub { margin-top: 16px; font-size: 16.5px; }
  .hero-actions { margin-top: 24px; flex-direction: column; }
  .hero-base { padding: 16px 0 20px; font-size: 11.5px; }
  .hero-facts { gap: 14px; }
  .hero-facts li:nth-child(1) { display: none; }
  .hero-facts li:nth-child(2) { display: none; }
  .btn { width: 100%; }
  .btn .btn-label { flex: 1; text-align: center; padding-right: 40px; }
  .btn-ghost-light { justify-content: center; }
  .tag-link { width: 100%; }
  .step { grid-template-columns: 1fr; gap: 0; padding: 24px 0; }
  .step > p:last-child { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .q-meta { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
  .q-meta div { padding: 14px 0; }
  .pill-cloud { flex-direction: column; align-items: stretch; }
  .pill { width: 100%; }
  .acc-trigger { padding: 16px 16px; font-size: 17px; }
  .acc-inner p { padding: 0 18px 20px 38px; }
  .contact-details div { grid-template-columns: 1fr; gap: 4px; }
  .mary-card { left: 14px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
  .footer-line .sep { display: none; }
  .footer-line > span:not(.sep) + span:not(.sep) { margin-top: 4px; }
}
@media (min-width: 540px) and (max-width: 760px) {
  .pill-cloud { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) and (max-height: 720px) {
  .hero-actions .btn-ghost-light { display: none; }
}
@media (max-width: 760px) and (max-height: 600px) {
  .hero-inner > .eyebrow { display: none; }
}
@media (max-width: 360px) {
  .wordmark-cpa { display: none; }
  .eb-loc { display: none; }
  .scroll-cue { display: none; }
  .form-card { padding: 22px 18px; }
  .btn-submit .btn-label { padding-right: 20px; }
}
@media (min-width: 761px) and (max-height: 820px) {
  .hero-title { font-size: clamp(40px, min(calc(100vw / 22.5), 9.4vh), 86px); }
  .hero-sub { margin-top: 18px; }
  .hero-actions { margin-top: 26px; }
  .hero-inner { padding-bottom: 108px; }
}
@media (min-width: 761px) and (max-aspect-ratio: 13/10) {
  .hero-media img { object-position: 64% 30%; }
}
@media (max-width: 400px) {
  .hero-base { font-size: 11px; letter-spacing: 0.06em; }
}

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

/* ---------- accessibility statement page ---------- */
.a11y-hero { padding: calc(var(--header-h) + clamp(64px, 9vw, 120px)) 0 clamp(56px, 7vw, 96px); }
.a11y-hero h1 { font-size: clamp(38px, 5vw, 68px); letter-spacing: -0.035em; color: var(--white); }
.a11y-hero .lead { margin-top: 20px; }
.a11y-updated { margin-top: 26px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); }
.a11y-wrap { max-width: calc(820px + var(--gutter) * 2); }
.a11y-block + .a11y-block { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.a11y-block h2 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 16px; }
.a11y-block p { color: var(--muted); }
.a11y-block p + p, .a11y-list + p { margin-top: 14px; }
.a11y-block a { color: var(--forest); }
.a11y-list { list-style: none; display: grid; gap: 10px; color: var(--muted); }
.a11y-list li { display: flex; gap: 12px; }
.a11y-list li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 0.65em; border-radius: 1px; background: var(--lime); }
