/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/inter-tight.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/fraunces.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("../fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* Brand colors */
  --ae-green: #71BF45;
  --ae-deep: #04773B;
  --ae-ink: #151E11;
  --ae-tint: #E9F5E1;
  --ae-sage: #B1B6A4;
  --ae-line: #E3E3E3;
  --ae-muted: #5E665B;
  --ae-body: #30352E;
  --ae-nav: #474E45;
  --ae-text: #1D211B;
  --ae-gray-300: #CDCDCD;

  /* Clean look (default values) */
  --page-bg: #FFFFFF;
  --alt-bg: #F5F5F7;
  --hero-bg: #F5F5F7;
  --card-bg: #FFFFFF;
  --card-border: var(--ae-line);
  --shadow: 0 4px 24px rgba(21, 30, 17, .08);
  --radius: 8px;
  --radius-btn: 6px;
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-figure: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-eyebrow: "Inter", system-ui, sans-serif;
  --h1-weight: 600;
  --h2-weight: 500;
  --display-track: -0.02em;
  --eyebrow-size: 14px;
  --eyebrow-weight: 600;
  --eyebrow-track: .08em;
  --eyebrow-rule: 0px;
  --eyebrow-gap: 0px;
  --em-style: normal;
  --band-bg: #F5F5F7;
  --band-fg: var(--ae-text);
  --band-muted: var(--ae-muted);
  --band-card: #FFFFFF;
  --band-border: var(--ae-line);
  --band-accent: var(--ae-deep);
  --band-eyebrow: var(--ae-deep);

  --c: min(100% - 160px, 1280px);
}

/* Hybrid: the clean layout with editorial serif display type, warmer neutrals, and a dark band */
[data-look="hybrid"] {
  --alt-bg: #F7F6F1;
  --hero-bg: #F3F4EE;
  --radius: 6px;
  --font-display: "Fraunces", Georgia, serif;
  --h1-weight: 500;
  --h2-weight: 500;
  --display-track: -0.015em;
  --eyebrow-rule: 24px;
  --eyebrow-gap: 10px;
  --em-style: italic;
  --band-bg: var(--ae-ink);
  --band-fg: #FFFFFF;
  --band-muted: rgba(255, 255, 255, .72);
  --band-card: rgba(255, 255, 255, .04);
  --band-border: rgba(113, 191, 69, .3);
  --band-accent: var(--ae-green);
  --band-eyebrow: var(--ae-green);
}

/* Classic: closest to the earlier editorial concepts */
[data-look="classic"] {
  --page-bg: #FBF9F4;
  --alt-bg: #F3EEE2;
  --hero-bg: #F6F2E8;
  --card-bg: #FFFFFF;
  --card-border: rgba(21, 30, 17, .1);
  --shadow: none;
  --radius: 2px;
  --radius-btn: 2px;
  --font-display: "Fraunces", Georgia, serif;
  --font-figure: "Fraunces", Georgia, serif;
  --font-eyebrow: "IBM Plex Mono", Consolas, monospace;
  --h1-weight: 500;
  --h2-weight: 500;
  --display-track: -0.01em;
  --eyebrow-size: 12px;
  --eyebrow-weight: 500;
  --eyebrow-track: .14em;
  --eyebrow-rule: 26px;
  --eyebrow-gap: 10px;
  --em-style: italic;
  --band-bg: var(--ae-ink);
  --band-fg: #FFFFFF;
  --band-muted: rgba(255, 255, 255, .7);
  --band-card: transparent;
  --band-border: rgba(113, 191, 69, .32);
  --band-accent: var(--ae-green);
  --band-eyebrow: var(--ae-green);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
html, body { margin: 0; }
body { font: 400 16px/1.55 var(--font-body); color: var(--ae-text); background: var(--page-bg); -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.sprite { position: absolute; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 80px; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 50; padding: 10px 16px; background: var(--ae-ink); color: #fff; border-radius: var(--radius-btn); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ae-deep); outline-offset: 3px; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 16px/24px var(--font-body); padding: 10px 20px; border-radius: var(--radius-btn); background: var(--ae-green); color: var(--ae-ink); white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
.btn svg { width: 22px; height: 22px; transition: transform .15s ease-out; }
.btn:hover { background: var(--ae-deep); color: #fff; }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--lg { padding: 14px 28px; }
.link { display: inline-flex; align-items: center; gap: 8px; font: 600 16px/24px var(--font-body); color: var(--ae-deep); }
.link svg { width: 22px; height: 22px; transition: transform .15s ease-out; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link:hover svg { transform: translate(2px, -2px); }
.link--sm { font-size: 15px; }
.link--sm svg { width: 20px; height: 20px; }

/* ---------- Shared type ---------- */
.eyebrow { display: flex; align-items: center; gap: var(--eyebrow-gap); margin: 0 0 14px; font: var(--eyebrow-weight) var(--eyebrow-size)/1.2 var(--font-eyebrow); letter-spacing: var(--eyebrow-track); text-transform: uppercase; color: var(--ae-deep); }
.eyebrow::before { content: ""; width: var(--eyebrow-rule); height: 1px; background: currentColor; }
.h2 { font: var(--h2-weight) 40px/1.15 var(--font-display); letter-spacing: var(--display-track); color: var(--ae-text); }
.lead { font-size: 19px; line-height: 1.55; color: var(--ae-muted); }
.section { padding: 80px 0; background: var(--page-bg); }
.section--alt { background: var(--alt-bg); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.section-head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-head__text { font-size: 17px; color: var(--ae-muted); max-width: 600px; }

/* Cards share the language of the hero's report card */
.card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card__label { font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ae-muted); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--page-bg); border-bottom: 1px solid var(--ae-line); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(21, 30, 17, .06); }
.site-header__inner { height: 76px; display: flex; align-items: center; gap: 32px; white-space: nowrap; }
.brand { display: flex; align-items: center; flex: none; padding-right: 32px; border-right: 1px solid var(--ae-line); align-self: stretch; }
.brand img { width: auto; height: 42px; }
.brand__logo--light { display: none; }
.site-nav ul { display: flex; gap: 24px; font: 500 16px/24px var(--font-body); color: var(--ae-nav); }
.site-nav a:hover { color: var(--ae-deep); }
.site-nav__contact { display: none; }
.site-header__contact { margin-left: auto; display: flex; align-items: center; gap: 24px; font: 500 16px/24px var(--font-body); color: var(--ae-nav); }
.site-header__contact a:not(.btn):hover { color: var(--ae-deep); text-decoration: underline; text-underline-offset: 4px; }
.menu-toggle { display: none; margin-left: 4px; padding: 8px; border: 1px solid var(--ae-line); border-radius: var(--radius-btn); background: transparent; color: var(--ae-ink); cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle__close, .menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--hero-bg); min-height: clamp(600px, 78svh, 700px); display: flex; overflow: hidden; }
.hero__inner { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 80px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.hero__text { grid-column: 1 / 7; padding: 72px 0; position: relative; z-index: 1; }
.hero h1 { font: var(--h1-weight) 58px/1.08 var(--font-display); letter-spacing: var(--display-track); color: var(--ae-ink); max-width: 640px; }
.hero h1 em { font-style: var(--em-style); color: var(--ae-deep); }
.hero__sub { font-size: 20px; line-height: 1.5; color: #3C4A38; max-width: 560px; margin: 22px 0 32px; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(21, 30, 17, .1); max-width: 600px; font-size: 14.5px; color: var(--ae-body); }
.hero__proof li { display: flex; align-items: center; gap: 8px; }
.hero__proof svg { width: 18px; height: 18px; flex: none; }

/* Hero animation */
.hv { position: absolute; top: 0; bottom: 0; right: 0; left: calc((100% - var(--c)) / 2 + (var(--c) + 24px) / 2); overflow: hidden; pointer-events: none; user-select: none; container-type: size; }
.hv__canvas, .hv__fallback { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hv__fallback { display: none; }
.hv.is-fallback .hv__canvas { display: none; }
.hv.is-fallback .hv__fallback { display: block; }
.hv [data-hv-anchor], .hv__point, .hv-card { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.hv__axis { font: 400 12px/1 var(--font-body); color: var(--ae-muted); white-space: nowrap; transform-origin: 0 0; }
.hv__approach { font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ae-deep); white-space: nowrap; }
.hv__point { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ae-deep); box-shadow: 0 0 0 2px #fff; }
.hv__point::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(113, 191, 69, .3); }
.hv-card { width: 228px; padding: 20px; background: #fff; border: 1px solid var(--ae-line); border-radius: var(--radius); box-shadow: 0 4px 24px rgba(21, 30, 17, .08); }
.hv-card__head { display: flex; align-items: center; justify-content: space-between; }
.hv-card__label { margin: 0 12px 0 0; white-space: nowrap; font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ae-muted); }
.hv-card__value { margin: 14px 0 18px; font: 600 32px/1 var(--font-figure); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; color: var(--ae-ink); }
.hv-card__bars i { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: var(--ae-line); transform-origin: 0 50%; }
.hv-card__bars i:first-child { margin-top: 0; width: 100%; }
.hv-card__bars i:nth-child(2) { width: 84%; }
.hv-card__bars i:nth-child(3) { width: 58%; }
.hv-card__check { width: 24px; height: 24px; flex: none; }
.hv-card__check circle { transform-origin: 12px 12px; }

/* ---------- Clients ---------- */
.clients { background: #EAF1E5; padding: 30px 0 32px; }
.clients__label { font: 400 11.5px/1.4 "IBM Plex Mono", Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--ae-muted); text-align: center; margin-bottom: 18px; }
[data-look="clean"] .clients__label { font: 600 12px/1.4 var(--font-body); letter-spacing: .1em; }
.clients__names { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 48px; }
.clients__names li { font: 500 19px/1.3 var(--font-display); letter-spacing: .01em; color: var(--ae-text); opacity: .45; white-space: nowrap; }
[data-look="classic"] .clients { background: var(--alt-bg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro ---------- */
.intro__grid { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 680px); justify-content: space-between; align-items: center; gap: 48px; }
.intro .lead { margin: 20px 0 28px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 28px; padding: 20px 0; border-top: 1px solid var(--ae-line); border-bottom: 1px solid var(--ae-line); }
.facts strong { display: block; font: 600 20px/1.2 var(--font-figure); letter-spacing: -0.01em; color: var(--ae-ink); margin-bottom: 6px; }
.facts span { display: block; font-size: 14px; line-height: 1.45; color: var(--ae-muted); }

/* Monte Carlo card */
.mc { padding: 28px; }
.mc__plot { position: relative; margin-top: 20px; height: 240px; }
.mc__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mc__tag { position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; background: #fff; border: 1px solid var(--ae-line); border-radius: 999px; box-shadow: 0 4px 16px rgba(21, 30, 17, .08); font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ae-text); white-space: nowrap; opacity: 0; transform: translate(-50%, 6px); transition: opacity .35s ease-out, transform .35s ease-out; }
.mc__tag svg { width: 20px; height: 20px; }
.mc__tag.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service { display: flex; flex-direction: column; padding: 26px 28px; transition: border-color .2s ease, transform .2s ease; }
.service:hover { border-color: var(--ae-green); transform: translateY(-2px); }
.service__num { font: 500 13px/1 var(--font-eyebrow); letter-spacing: .06em; color: var(--ae-deep); margin-bottom: 18px; }
.service h3 { font: 500 22px/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--ae-text); margin-bottom: 10px; }
.service p { font-size: 15px; color: var(--ae-muted); margin-bottom: 18px; flex: 1; }
.assets { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 28px; }
.assets__label { font: 600 12px/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ae-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--ae-tint); color: var(--ae-deep); font: 500 14px/1.2 var(--font-body); }
.chips--quiet li { background: transparent; border: 1px solid var(--card-border); color: var(--ae-body); }
[data-look="classic"] .chips li { border-radius: var(--radius); }

/* ---------- Track record (KPI cards) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
@media (min-width: 1280px) {   /* five across: the zero card takes the middle of the top row */
  .stat-grid > :nth-child(-n+2) { order: -2; }
  .stat-grid > .stat--zero { order: -1; }
}
.stat { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 22px 24px 24px; }
.stat__visual { height: 48px; width: 100%; overflow: visible; }
.stat__visual text { font: 400 12px var(--font-body); fill: var(--ae-muted); }
.stat__visual .stat__viz-strong { font: 600 15px var(--font-figure); fill: var(--ae-text); }
.stat__visual--tall { height: 60px; }   /* map and scales use their own fitted viewBox */
.stat__visual.conflict { height: auto; min-height: 48px; }
.stat__figure { font: 500 42px/1.05 var(--font-figure); letter-spacing: -0.02em; color: var(--ae-text); font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 8px; font: 400 16px/1.35 var(--font-body); color: var(--ae-body); }
.stat--placeholder { border-style: dashed; box-shadow: none; background: transparent; }
.stat--placeholder .stat__figure { color: var(--ae-gray-300); }
.stat__badge { position: absolute; top: 14px; right: 14px; padding: 3px 8px; border-radius: 999px; background: #FFF4D6; color: #7A5B00; font: 600 11px/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }

/* "0 conflicts" visual is HTML so the words stay crisp */
.conflict { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 4px; }
.conflict__item { position: relative; padding: 4px 7px; border-radius: 999px; border: 1px solid var(--ae-line); font: 500 11px/1 var(--font-body); color: var(--ae-muted); }
.conflict__item:not(.conflict__item--on)::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 1.5px; background: var(--ae-gray-300); transform-origin: 0 50%; }
.conflict__item--on { display: inline-flex; align-items: center; gap: 6px; padding-left: 5px; border-color: transparent; background: var(--ae-tint); color: var(--ae-deep); font-weight: 600; }
.conflict__item--on svg { width: 14px; height: 14px; }

/* KPI motion (set by script; reduced motion shows the final state) */
.js-motion .stat [data-draw] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js-motion .stat [data-bar] { transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%; }
.js-motion .stat [data-pop] { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: 50% 50%; }
.js-motion .stat [data-fade] { opacity: 0; }
.js-motion .conflict__item:not(.conflict__item--on)::after { transform: scaleX(0); }
.js-motion .conflict__item--on { opacity: 0; transform: scale(.85); }
/* Visuals run on the same ~3.5s clock as the counters */
.stat.is-in [data-draw] { transition: stroke-dashoffset 3.8s cubic-bezier(.33, 1, .68, 1); stroke-dashoffset: 0; }
.stat.is-in [data-bar] { transition: transform 2.4s cubic-bezier(.16, 1, .3, 1); transform: scaleY(1); }
.stat.is-in [data-pop] { transition: opacity .3s ease-out, transform .45s cubic-bezier(.34, 1.56, .64, 1); opacity: 1; transform: scale(1); }
.stat.is-in [data-fade] { transition: opacity 1.2s ease-out; opacity: 1; }
.stat .tick { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .22s ease-out; }   /* accounting checks, toggled by script */
.stat .tick.is-on { stroke-dashoffset: 0; }
.stat .pop { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: 50% 50%; transition: opacity .3s ease-out, transform .45s cubic-bezier(.34, 1.56, .64, 1); }   /* sports icons, toggled by script */
.stat .pop.is-on { opacity: 1; transform: none; }

/* Replay: a click or tap flips a KPI card between light and dark (set by script) and replays it */
.stat, .mc { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.stat { --stat-dark: #1B2419; transition: background-color .45s ease, border-color .45s ease; }
[data-version="4"] .stat { --stat-dark: #3E4A42; }
.stat.no-anim *, .stat.no-anim *::after { transition: none !important; }
.stat.is-dark { background: var(--stat-dark); border-color: rgba(255, 255, 255, .1); }
.stat.is-dark .stat__figure { color: #FFFFFF; }
.stat.is-dark .stat__label { color: rgba(255, 255, 255, .78); }
.stat.is-dark .stat__visual text { fill: rgba(255, 255, 255, .75); }
.stat.is-dark [fill="#E1E3DD"], .stat.is-dark [fill="#CDCDCD"] { fill: rgba(255, 255, 255, .2); }
.stat.is-dark [stroke="#CDCDCD"] { stroke: rgba(255, 255, 255, .3); }
.stat.is-dark [fill="#ECEEE9"] { fill: rgba(255, 255, 255, .08); }
.stat.is-dark [fill="#04773B"] { fill: #9BE070; }
.stat.is-dark [stroke="#04773B"] { stroke: #9BE070; }
.stat.is-dark .conflict__item { border-color: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .72); }
.stat.is-dark .conflict__item--on { border-color: transparent; color: var(--ae-deep); }
/* --strike is set per pill by script: one strike-out per odometer turn, Valuation on the final single 0 */
.stat.is-in .conflict__item:not(.conflict__item--on)::after { transition: transform .5s ease-out var(--strike, .9s); transform: scaleX(1); }
.stat.is-in .conflict__item--on { transition: opacity .4s ease-out var(--strike, 7.2s), transform .5s cubic-bezier(.34, 1.56, .64, 1) var(--strike, 7.2s); opacity: 1; transform: none; }

/* "0 conflicts" odometer (built by home.js): strike-outs above land on n0ne, zer0, and n0; Valuation pops on the final 0 */
/* Each character sits on its own dark drum tile, like an old odometer or flip clock */
.odo { display: inline-flex; font: 400 .86em/1 "IBM Plex Mono", Consolas, monospace; letter-spacing: 0; vertical-align: top; }
.odo__cell { position: relative; display: inline-block; width: .74em; height: 1.2em; margin-right: .09em; overflow: hidden; border-radius: .12em; background: linear-gradient(180deg, #2C332D 0%, #1D211B 50%, #2C332D 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 1px 3px rgba(21, 30, 17, .3); transition: width .45s ease, margin .45s ease, opacity .3s ease; }
.odo__cell::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .38), transparent 28%, transparent 72%, rgba(0, 0, 0, .38)); pointer-events: none; }
.odo__cell::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; z-index: 2; height: 1px; background: rgba(0, 0, 0, .55); box-shadow: 0 1px 0 rgba(255, 255, 255, .07); }
.odo__cell.is-empty { width: 0; margin-right: 0; opacity: 0; }
.odo__strip { display: flex; flex-direction: column; transition: transform .55s cubic-bezier(.34, 1.3, .64, 1); }
.odo__strip span { display: block; height: 1.2em; line-height: 1.2em; text-align: center; color: rgba(242, 244, 239, .62); }
/* Zeros standing in for "o" pop: brighter, heavier, and faintly lit; letters stay soft gray */
.odo__zero { color: #9BE070 !important; font-weight: 500; text-shadow: 0 0 .22em rgba(140, 212, 101, .55); }

/* ---------- Inside the model ---------- */
.section.model { padding-bottom: 0; }
.model__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tag { padding: 3px 8px; border-radius: 999px; background: var(--alt-bg); color: var(--ae-muted); font: 600 11px/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.chart-note { margin-top: 14px; font-size: 13px; line-height: 1.45; color: var(--ae-muted); }

/* Football field */
.ff { --name-w: 176px; margin: 0; padding: 24px 28px; }
.ff__plot { position: relative; margin-top: 46px; }
.ff__rows { position: relative; }
.ff__row { display: grid; grid-template-columns: var(--name-w) minmax(0, 1fr); align-items: center; border-bottom: 1px dashed var(--ae-line); }
.ff__row:last-child { border-bottom: 0; }
.ff__name { padding: 8px 12px 8px 0; font: 500 14.5px/1.25 var(--font-body); color: var(--ae-text); }
.ff__short { display: none; }
.ff__approach { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--ae-muted); }
.ff__track { position: relative; height: 50px; }
.ff__bar { position: absolute; top: 50%; height: 16px; margin-top: -8px; border-radius: 3px; background: var(--ae-green); }
.ff__bar--income { background: var(--ae-deep); }
.ff__bar--sim { background: #A9D98E; }
.ff__bar--asset { background: var(--ae-sage); }
.ff__lo, .ff__hi, .ff__range { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); padding: 2px 4px; border-radius: 3px; background: var(--card-bg); font: 500 12px/1 var(--font-body); color: var(--ae-body); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ff__lo { right: calc(100% + 2px); }
.ff__hi { left: calc(100% + 2px); }
.ff__range { display: none; }
.ff__band { position: absolute; top: -8px; bottom: 0; background: rgba(113, 191, 69, .13); border-left: 1px dashed rgba(4, 119, 59, .35); border-right: 1px dashed rgba(4, 119, 59, .35); }
.ff__line { position: absolute; z-index: 2; top: -8px; bottom: 0; width: 2px; margin-left: -1px; background: var(--ae-ink); transform-origin: 50% 0; }
.ff__line-label { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 5px 10px; border-radius: 999px; background: var(--ae-ink); color: #fff; font: 500 12px/1 var(--font-body); white-space: nowrap; }
.ff__line-label strong { font-weight: 600; color: var(--ae-green); }
.ff__axis { position: relative; height: 26px; margin-left: var(--name-w); border-top: 1px solid var(--ae-gray-300); }
.ff__tick { position: absolute; top: 0; height: 6px; border-left: 1px solid var(--ae-gray-300); }
.ff__tick span { position: absolute; top: 9px; left: 0; transform: translateX(-50%); font-size: 11.5px; color: var(--ae-muted); white-space: nowrap; }
.ff__tick:last-child span { transform: translateX(-100%); }
.js-motion .ff__bar { transform: scaleX(0); }
.js-motion .ff__lo, .js-motion .ff__hi, .js-motion .ff__range, .js-motion .ff__band { opacity: 0; }
.js-motion .ff__line { transform: scaleY(0); }
.js-motion .ff__line-label { opacity: 0; transform: translate(-50%, 6px); }
.ff.is-in .ff__bar { transform: none; transition: transform 1.4s cubic-bezier(.16, 1, .3, 1); }
.ff.is-in .ff__lo, .ff.is-in .ff__hi, .ff.is-in .ff__range { opacity: 1; transition: opacity .5s ease-out; }
.ff.is-in .ff__band { opacity: 1; transition: opacity 1s ease-out 2.4s; }
.ff.is-in .ff__line { transform: none; transition: transform 1s cubic-bezier(.65, 0, .35, 1) 2.8s; }
.ff.is-in .ff__line-label { opacity: 1; transform: translate(-50%, 0); transition: opacity .4s ease-out 3.6s, transform .4s ease-out 3.6s; }

/* EV / EBITDA comps */
.comps { margin: 0; padding: 24px 28px; display: flex; flex-direction: column; }
.comps__plot { width: 100%; height: auto; overflow: visible; margin-top: 6px; }
.comps__plot text { font: 500 11px var(--font-body); fill: var(--ae-muted); }
.comps__plot .comps__strong { font-weight: 600; fill: var(--ae-deep); }
.comps__calc { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--ae-line); font: 500 21px/1.1 var(--font-figure); color: var(--ae-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.comps__calc small { display: block; margin-bottom: 6px; font: 600 10.5px/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ae-muted); }
.comps__op { color: var(--ae-sage); }
.comps__ev b { font-weight: 600; color: var(--ae-deep); }
.js-motion .comps [data-drop] { opacity: 0; transform: translateY(-46px); transform-box: fill-box; }
.js-motion .comps [data-fade] { opacity: 0; }
.js-motion .comps [data-draw] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js-motion .comps [data-slide] { opacity: 0; transform: translateX(-90px); }
.comps.is-in [data-drop] { opacity: 1; transform: none; transition: opacity .2s ease-out, transform .8s cubic-bezier(.34, 1.56, .64, 1); }
.comps.is-in [data-fade] { opacity: 1; transition: opacity 1s ease-out 1.9s; }
.comps.is-in [data-draw] { stroke-dashoffset: 0; transition: stroke-dashoffset .8s ease-out 2.3s; }
.comps.is-in [data-slide] { opacity: 1; transform: none; transition: opacity .4s ease-out 2.9s, transform 1.2s cubic-bezier(.16, 1, .3, 1) 2.9s; }

/* Formula cards: dark "graph paper" panels */
.math-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.math-card { position: relative; isolation: isolate; display: flex; flex-direction: column; padding: 28px 32px; border-radius: var(--radius); background: var(--ae-ink); color: #fff; overflow: hidden; }
.math-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(160deg, #000 10%, transparent 75%); }
.math-card__label { font: 600 12px/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ae-green); }
.math-card h3 { margin: 8px 0 22px; font: 500 17px/1.35 var(--font-body); color: rgba(255, 255, 255, .78); }
.formula { font-family: "Fraunces", Georgia, serif; font-weight: 400; color: #fff; }
.formula__line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 14px; font-size: 27px; line-height: 1.25; }
.formula__line--sm { font-size: 20px; color: rgba(255, 255, 255, .86); }
.formula i { font-style: italic; }
.formula sub, .formula sup { font-size: .62em; line-height: 0; }
.formula .op { color: var(--ae-green); }
.formula .sep { color: rgba(255, 255, 255, .5); }
.frac { display: inline-flex; flex-direction: column; align-items: center; font-size: .8em; vertical-align: middle; }
.frac__num { padding: 0 4px 4px; }
.frac__den { align-self: stretch; padding: 4px 4px 0; border-top: 1.5px solid currentColor; text-align: center; }
.sqrt { display: inline-flex; align-items: flex-start; }
.sqrt__rad { margin-left: 1px; padding: 0 2px; border-top: 1.5px solid currentColor; }
.sum { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.sum__sig { font-size: 1.45em; line-height: .95; }
.sum__top, .sum__bot { font-size: .5em; }
.v { border-radius: 4px; padding: 0 2px; cursor: help; transition: background-color .25s ease, color .25s ease; }
.v:hover, .v.is-active { background: rgba(113, 191, 69, .2); color: var(--ae-green); }
.formula sup .v, .formula sub .v { padding: 0; }
.math-card__viz { width: 100%; height: auto; margin-top: auto; padding-top: 6px; overflow: visible; }
.math-card__viz text { font: 500 10.5px var(--font-body); fill: rgba(255, 255, 255, .55); }
.math-card__viz .viz-strong { font: italic 500 14px "Fraunces", Georgia, serif; fill: var(--ae-green); }
.math-card__legend { min-height: 2.9em; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .72); }
.math-card__legend b { font: italic 500 16px "Fraunces", Georgia, serif; color: var(--ae-green); }
.js-motion .math-card .t { opacity: 0; transform: translateY(8px); }
.math-card.is-in .t { opacity: 1; transform: none; transition: opacity .5s ease-out, transform .6s cubic-bezier(.16, 1, .3, 1); }
.js-motion .math-card [data-draw] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.math-card.is-in [data-draw] { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s ease-out; }
.js-motion .math-card [data-pop] { opacity: 0; transform: scale(.3); transform-box: fill-box; transform-origin: 50% 50%; }
.math-card.is-in [data-pop] { opacity: 1; transform: none; transition: opacity .3s ease-out, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.js-motion .math-card [data-grow] { transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%; }
.math-card.is-in [data-grow] { transform: none; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.js-motion .math-card [data-fade] { opacity: 0; }
.math-card.is-in [data-fade] { opacity: 1; transition: opacity .8s ease-out; }

/* Hidden in the noise */
.noise { display: block; width: 100%; max-width: 440px; aspect-ratio: 25 / 20.7; margin: 0 auto; }
.egg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 18px; font: 400 23px/1.3 "Fraunces", Georgia, serif; color: #fff; }
.egg__est { font-size: .8em; color: rgba(255, 255, 255, .6); }
.egg sup, .footer-est sup { font-size: .6em; line-height: 0; }
.egg__term { display: inline-flex; align-items: center; }
.egg__ans { color: var(--ae-green); }
.egg__ans a { white-space: nowrap; text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.egg__ans a:hover { text-decoration-style: solid; }
.egg__note { margin-top: 10px; font-size: 13px; line-height: 1.45; font-weight: 500; color: #C4E1FF; }   /* light blue: 4.6:1 on the version 4 card */
.js-motion .egg__ans { opacity: 0; transform: translateX(-8px); }
.js-motion .egg__note { opacity: 0; }
.math-card.is-revealed .egg__ans { opacity: 1; transform: none; transition: opacity .6s ease-out, transform .6s ease-out; }
.math-card.is-revealed .egg__note { opacity: 1; transition: opacity .6s ease-out .5s; }
.int { display: inline-flex; align-items: center; margin-right: 2px; }
.int__sign { font-size: 1.35em; font-style: italic; line-height: 1; }
.int__lims { display: inline-flex; flex-direction: column; justify-content: space-between; margin-left: -1px; font-size: .5em; line-height: 1.2; }
.int__lims sup, .int__lims sub { font-size: 1em; line-height: 1.1; vertical-align: baseline; }
.footer-est { margin-left: 8px; font-family: "Fraunces", Georgia, serif; color: rgba(255, 255, 255, .7); white-space: nowrap; cursor: help; }
.footer-est__proof { opacity: 0; transition: opacity .3s ease-out; }   /* the working shows on hover, or on tap/keyboard focus */
.footer-est:hover .footer-est__proof, .footer-est:focus .footer-est__proof { opacity: 1; }
.footer-est i { font-style: italic; }

/* Formula strip */
.formula-strip { margin-top: 56px; padding: 16px 0; border-top: 1px solid var(--ae-line); background: var(--page-bg); overflow: hidden; }
.formula-strip__track { display: flex; width: max-content; animation: marquee 120s linear infinite; }
.formula-strip:hover .formula-strip__track { animation-play-state: paused; }
.formula-strip__group { display: flex; flex: none; gap: 56px; padding-right: 56px; font: 400 20px/1.4 "Fraunces", Georgia, serif; color: #8A9285; white-space: nowrap; }
.formula-strip__group i { font-style: italic; }
.formula-strip__group sub, .formula-strip__group sup { font-size: .62em; line-height: 0; }
.formula-strip__group span::after { content: "\00b7"; margin-left: 56px; color: var(--ae-green); }

/* ---------- Experience ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 64px; }
.split__col { padding-top: 22px; border-top: 2px solid var(--ae-green); }
.split h3 { font: 500 24px/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--ae-text); margin-bottom: 12px; }
.split p { font-size: 16px; color: var(--ae-muted); margin-bottom: 22px; }
.creds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.creds li { padding: 14px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); }
.creds strong { display: block; font: 600 18px/1.1 var(--font-figure); color: var(--ae-deep); margin-bottom: 6px; }
.creds span { display: block; font-size: 13px; line-height: 1.35; color: var(--ae-muted); }

/* ---------- Industries band ---------- */
.band { background: var(--band-bg); color: var(--band-fg); }
.band .eyebrow { color: var(--band-eyebrow); }
.band .h2 { color: var(--band-fg); }
.band .section-head__text { color: var(--band-muted); }
.industry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.industry { padding: 24px 26px; background: var(--band-card); border: 1px solid var(--band-border); border-radius: var(--radius); transition: border-color .2s ease, transform .2s ease; }
.industry:hover { border-color: var(--band-accent); transform: translateY(-2px); }
.industry h3 { display: flex; align-items: center; gap: 10px; font: 600 17px/1.3 var(--font-body); color: var(--band-fg); margin-bottom: 8px; }
.industry h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--band-accent); flex: none; }
.industry p { font-size: 15px; color: var(--band-muted); }

/* ---------- Insights ---------- */
.article-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.article { display: flex; flex-direction: column; padding: 24px; }
.article__tag { font: 600 12px/1.2 var(--font-eyebrow); letter-spacing: .08em; text-transform: uppercase; color: var(--ae-deep); margin-bottom: 12px; }
.article h3 { flex: 1; font: 500 19px/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--ae-text); margin-bottom: 18px; }

/* ---------- Contact band and offices ---------- */
.cta { background: var(--ae-tint); padding: 64px 0; }
.cta__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 32px 72px; margin-top: 36px; }
/* The photo is a wide panorama: full width on desktop, cropped toward the entrance on narrow screens */
.office { margin: 0; }
.office img { width: 100%; height: auto; aspect-ratio: 1600 / 696; object-fit: cover; object-position: 52% 50%; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--alt-bg); }
.office figcaption { margin-top: 10px; font-size: 13px; color: var(--ae-muted); }
.cta__body > p:not(.eyebrow) { margin-top: 14px; font-size: 18px; color: var(--ae-body); max-width: 600px; }
.cta__address { display: grid; grid-template-columns: repeat(2, max-content); gap: 16px 40px; margin: 0 0 24px; padding: 18px 0; border-top: 1px solid rgba(4, 119, 59, .18); border-bottom: 1px solid rgba(4, 119, 59, .18); font-style: normal; font-size: 15.5px; line-height: 1.6; color: var(--ae-body); }
.cta__address strong { display: block; color: var(--ae-ink); }
.cta__address > span + span { padding-top: 1.6em; }   /* phone and email sit beside the two address lines, not the firm name */
.cta__address a { color: var(--ae-deep); font-weight: 500; }
.cta__address a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ae-ink); color: rgba(255, 255, 255, .7); padding: 56px 0 28px; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer__brand img { width: 280px; height: auto; margin-bottom: 18px; }
.site-footer__brand p { max-width: 320px; margin-bottom: 14px; }
.site-footer__contact a:hover, .site-footer li a:hover { color: var(--ae-green); }
.site-footer h2 { font: 600 12px/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ae-green); margin-bottom: 16px; }
.site-footer li { margin-bottom: 10px; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 13px; color: rgba(255, 255, 255, .55); }

/* ---------- Homepage versions (set by version.js from ?v=) ---------- */
[data-version="2"] [data-show]:not([data-show~="2"]),
[data-version="3"] [data-show]:not([data-show~="3"]),
[data-version="4"] [data-show]:not([data-show~="4"]) { display: none !important; }
[data-version="2"] .stats { background: var(--page-bg); }
[data-version="2"] .cta__inner, [data-version="3"] .cta__inner { margin-top: 0; }

/* Version 4: medium-gray header and the "firm at a glance" hero from the earlier in-house concept */
[data-version="4"] {
  --v4-header: #5C6B61;
  --v4-hero-top: #64736A;
  --v4-hero-bottom: #57655C;
  --v4-panel: #56645B;
  --v4-footer: #4C5951;
  --v4-green: #E2F5D6;
  --band-bg: var(--v4-panel);
  --band-muted: rgba(255, 255, 255, .84);
  --band-eyebrow: var(--v4-green);
  --band-accent: var(--v4-green);
}
[data-version="4"] .site-header { background: var(--v4-header); border-bottom-color: rgba(255, 255, 255, .16); }
[data-version="4"] .site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .28); }
[data-version="4"] .brand { border-right-color: rgba(255, 255, 255, .16); }
[data-version="4"] .brand__logo--dark { display: none; }
[data-version="4"] .brand__logo--light { display: block; }
[data-version="4"] .site-nav ul, [data-version="4"] .site-header__contact { color: rgba(255, 255, 255, .88); }
[data-version="4"] .site-nav a:hover, [data-version="4"] .site-header__contact a:not(.btn):hover { color: var(--v4-green); }
[data-version="4"] .hero-ledger { background: radial-gradient(ellipse at 80% 0%, rgba(140, 196, 108, .2), transparent 55%), linear-gradient(180deg, var(--v4-hero-top) 0%, var(--v4-hero-bottom) 100%); }
[data-version="4"] .hero-ledger h1 em, [data-version="4"] .ledger__label { color: var(--v4-green); }
[data-version="4"] .hero-ledger .eyebrow { color: #FFFFFF; }
[data-version="4"] .hero-ledger__lead { color: rgba(255, 255, 255, .92); }
[data-version="4"] .ledger { background: rgba(21, 30, 17, .14); border-color: rgba(255, 255, 255, .3); }
[data-version="4"] .ledger dt { color: rgba(255, 255, 255, .92); }
[data-version="4"] .math-card { background: var(--v4-panel); }
[data-version="4"] .math-card__label, [data-version="4"] .formula .op, [data-version="4"] .v:hover, [data-version="4"] .v.is-active, [data-version="4"] .math-card__legend b, [data-version="4"] .egg__ans { color: var(--v4-green); }
[data-version="4"] .math-card__viz .viz-strong { fill: var(--v4-green); }
[data-version="4"] .site-footer { background: var(--v4-footer); color: rgba(255, 255, 255, .82); }
[data-version="4"] .site-footer h2, [data-version="4"] .site-footer__contact a:hover, [data-version="4"] .site-footer li a:hover { color: var(--v4-green); }
[data-version="4"] .site-footer__bottom { color: rgba(255, 255, 255, .7); }
[data-version="4"] .menu-toggle { color: #FFFFFF; border-color: rgba(255, 255, 255, .3); }
.hero-ledger { position: relative; overflow: hidden; padding: 88px 0 100px; color: #FFFFFF; background: radial-gradient(ellipse at 80% 0%, rgba(98, 161, 65, .18), transparent 55%), linear-gradient(180deg, #303734 0%, #1E2422 100%); }
.hero-ledger::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, .9) 40%, transparent 95%); pointer-events: none; }
.hero-ledger__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero-ledger .eyebrow { color: #8CC46C; }
.hero-ledger h1 { font: 500 clamp(36px, 4.6vw, 58px)/1.1 var(--font-display); letter-spacing: -0.01em; color: #FFFFFF; margin-bottom: 22px; }
.hero-ledger h1 em { font-style: italic; color: #8CC46C; }
.hero-ledger__lead { max-width: 540px; margin-bottom: 32px; font-size: 17.5px; line-height: 1.6; color: rgba(255, 255, 255, .8); }
.btn--ghost { background: transparent; color: #FFFFFF; border: 1px solid rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: transparent; color: #8CC46C; border-color: #8CC46C; }
.ledger { padding: 28px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 4px; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.ledger__label { margin-bottom: 12px; font: 400 11px/1.2 "IBM Plex Mono", Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; color: #8CC46C; }
.ledger dl { margin: 0; }
.ledger dl div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font: 400 13.5px/1.35 "IBM Plex Mono", Consolas, monospace; }
.ledger dl div:last-child { border-bottom: 0; }
.ledger dt { color: rgba(255, 255, 255, .66); }
.ledger dd { margin: 0; color: #FFFFFF; font-weight: 500; text-align: right; }

/* Version 3: the same hero in the lighter palette, with no grid texture */
[data-version="3"] .hero-ledger { color: var(--ae-ink); background: radial-gradient(ellipse at 85% 0%, rgba(113, 191, 69, .16), transparent 55%), var(--hero-bg); }
[data-version="3"] .hero-ledger::before { display: none; }
[data-version="3"] .hero-ledger .eyebrow { color: var(--ae-deep); }
[data-version="3"] .hero-ledger h1 { color: var(--ae-ink); }
[data-version="3"] .hero-ledger h1 em { color: var(--ae-deep); }
[data-version="3"] .hero-ledger__lead { color: var(--ae-body); }
[data-version="3"] .hero-ledger .btn--ghost { color: var(--ae-ink); border-color: rgba(21, 30, 17, .3); }
[data-version="3"] .hero-ledger .btn--ghost:hover { color: var(--ae-deep); border-color: var(--ae-deep); }
[data-version="3"] .ledger { background: var(--card-bg); border-color: var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: none; }
[data-version="3"] .ledger__label { color: var(--ae-deep); }
[data-version="3"] .ledger dl div { border-bottom-color: var(--ae-line); }
[data-version="3"] .ledger dt { color: var(--ae-muted); }
[data-version="3"] .ledger dd { color: var(--ae-ink); }

/* ---------- Expert witness explainer ---------- */
.witness__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: start; }
.witness__compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.witness__who { padding: 18px 20px; }
.witness__who p:last-child { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ae-muted); }
.witness__who--expert { border-color: var(--ae-green); }
.witness__who--expert .card__label { color: var(--ae-deep); }
.witness__intro h3 { margin-bottom: 10px; font: 500 22px/1.25 var(--font-display); letter-spacing: -0.01em; color: var(--ae-text); }
.witness__intro > p { font-size: 16px; color: var(--ae-muted); }
.witness__rule { padding: 26px 28px; }
.witness__lead { margin: 10px 0 8px; font-size: 15.5px; color: var(--ae-body); }
.witness__list { list-style: none; margin: 0; padding: 0; }
.witness__list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 14px 0; border-top: 1px solid var(--ae-line); font-size: 15px; line-height: 1.5; color: var(--ae-muted); }
.witness__list li > span { padding-top: 2px; font: 500 13px/1.4 var(--font-eyebrow); color: var(--ae-deep); }
.witness__list strong { display: block; margin-bottom: 3px; font: 600 16px/1.3 var(--font-body); color: var(--ae-text); }
.witness__report { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.witness__cite { font-size: 12.5px; font-style: italic; color: var(--ae-muted); }
.witness__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px 40px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--ae-line); }
.witness__foot p { max-width: 760px; color: var(--ae-body); }
.witness__foot .link { flex: none; }
.witness__note { margin-top: 14px; font-size: 12.5px; color: var(--ae-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1599px) {
  .site-header__contact a[href^="mailto"] { display: none; }
}
@media (max-width: 1279px) {
  .site-header__contact a[href^="tel"] { display: none; }
  .brand { padding-right: 24px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
  .wrap, .hero__inner { padding: 0 48px; }
  :root { --c: min(100% - 96px, 1280px); }
  .intro__grid { grid-template-columns: 1fr; }
  .mc { max-width: 520px; }
  .hero h1 { font-size: 50px; }
}
@media (max-width: 1199px) {
  .site-header__inner { gap: 24px; }
  .site-nav ul { gap: 18px; }
}
@media (max-width: 1099px) {
  .menu-toggle { display: inline-flex; }
  .site-header__contact { margin-left: auto; }
  .site-nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; padding: 24px 48px; background: var(--page-bg); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; overflow-y: auto; }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .site-nav ul { flex-direction: column; gap: 0; font-size: 20px; }
  .site-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--ae-line); }
  .site-nav__contact { display: block; font-size: 16px; color: var(--ae-muted); }
  [data-version="4"] .site-nav { background: var(--v4-header); }
  [data-version="4"] .site-nav li a { border-bottom-color: rgba(255, 255, 255, .12); }
  [data-version="4"] .site-nav__contact { color: rgba(255, 255, 255, .65); }
}
@media (max-width: 1023px) {
  .section-head--split { grid-template-columns: 1fr; }
  .hero-ledger__inner, .witness__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .service-grid, .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .cta__inner { grid-template-columns: 1fr; align-items: start; }
  .office img { aspect-ratio: 16 / 9; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 46px; }
}
@media (max-width: 767px) {
  .wrap, .hero__inner { padding: 0 20px; }
  .site-header__inner { height: 64px; gap: 16px; }
  .site-nav { top: 64px; padding: 16px 20px; }
  .brand { padding-right: 0; border-right: 0; }
  .brand img { height: 36px; }
  .site-header__contact .btn { display: none; }
  .hero { display: block; min-height: 0; }
  .hero__inner { display: block; }
  .hero__text { padding: 40px 0 0; }
  .hero h1 { font-size: 38px; }
  .hero__sub { font-size: 18px; margin: 18px 0 26px; }
  .hero__proof { margin-top: 28px; flex-direction: column; }
  .hv { position: relative; left: auto; height: 340px; margin-top: 8px; }
  .section { padding: 56px 0; }
  .h2 { font-size: 30px; }
  .section-head { margin-bottom: 28px; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .eyebrow { font-size: 12px; }
  .clients { padding: 24px 0 26px; }
  .clients__names { gap: 8px 26px; }
  .clients__names li { font-size: 17px; }
  .hero__proof { gap: 8px; margin-top: 24px; padding-top: 18px; font-size: 14px; }
  .lead { font-size: 17px; }
  .facts { grid-template-columns: 1fr; gap: 14px; }
  .service-grid, .industry-grid, .article-grid { grid-template-columns: 1fr; gap: 12px; }
  .service { padding: 20px; }
  .service__num { margin-bottom: 10px; }
  .service h3 { font-size: 20px; margin-bottom: 6px; }
  .service p { font-size: 14.5px; margin-bottom: 12px; }
  .industry { padding: 18px 20px; }
  .industry p, .split p { font-size: 15px; }
  .article { padding: 20px; }
  .article h3 { font-size: 18px; margin-bottom: 12px; }
  /* Track record stays a 2-up grid on phones so eight cards do not become one long column */
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { gap: 14px; padding: 16px 14px; }
  .stat__visual { height: 30px; }
  .stat__visual--tall { height: 42px; }
  .stat__figure { font-size: 30px; }
  .stat__label { margin-top: 6px; font-size: 13.5px; }
  .stat__badge { position: static; display: inline-block; margin-top: 8px; font-size: 10px; padding: 2px 7px; }
  .conflict { height: auto; gap: 4px; }
  .conflict__item { font-size: 10.5px; padding: 3px 6px; }
  .conflict__item--on svg { width: 12px; height: 12px; }
  .creds li { padding: 12px; }
  .cta { padding: 48px 0; }
  .cta__inner { margin-top: 28px; }
  .office img { aspect-ratio: 4 / 3; }
  .cta__address { grid-template-columns: 1fr; }
  .cta__address > span + span { padding-top: 0; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero-ledger { padding: 48px 0 56px; }
  .hero-ledger__lead { font-size: 16.5px; }
  .ledger { padding: 20px; }
  .ledger dl div { font-size: 12.5px; }
  .witness__compare { grid-template-columns: 1fr; }
  .witness__foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 359px) {
  .brand img { height: 32px; }
  .comps__calc { flex-wrap: wrap; gap: 10px 4px; white-space: normal; }
}
@media (max-width: 379px) {
  .wrap, .hero__inner { padding: 0 16px; }
  .site-nav { padding: 16px; }
  .hero h1 { font-size: 34px; }
  .h2 { font-size: 27px; }
}
/* Inside the model: smaller screens */
@media (max-width: 1279px) {
  .formula__line { font-size: 24px; }
  .formula__line--sm { font-size: 18px; }
}
@media (max-width: 1023px) {
  .model__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .ff { --name-w: 94px; padding: 20px; }
  .ff__long { display: none; }
  .ff__short { display: inline; }
  .ff__name { font-size: 13px; padding-right: 8px; }
  .ff__approach { font-size: 11px; }
  .ff__track { height: 54px; }
  .ff__bar { top: 66%; height: 14px; margin-top: -7px; }
  .ff__lo, .ff__hi { display: none; }
  .ff__range { display: block; top: 10px; transform: translateX(-50%); font-size: 11px; }
  .ff__tick:nth-child(even) span { display: none; }
  .ff__line-label { font-size: 11px; }
  .comps { padding: 20px; }
  .comps__calc { font-size: 16px; gap: 4px; }
  .comps__calc small { font-size: 9px; letter-spacing: .03em; }
  .math-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .math-card { padding: 22px 20px; }
  .math-card h3 { font-size: 15.5px; margin-bottom: 18px; }
  .formula__line { font-size: 21px; gap: 4px 6px; }
  .formula__line--sm { font-size: 16px; }
  .egg { font-size: 21px; }
  .formula-strip { margin-top: 40px; }
  .formula-strip__group { font-size: 17px; gap: 40px; padding-right: 40px; }
  .formula-strip__group span::after { margin-left: 40px; }
}
@media (max-width: 379px) {
  .ff { --name-w: 84px; padding: 16px; }
  .formula__line { font-size: 19px; }
  .formula__line--sm { font-size: 15px; }
  .egg { font-size: 19px; }
  .comps__calc { font-size: 14.5px; }
}
@container (max-width: 600px) {
  .hv-card { width: auto; padding: 14px; }
  .hv-card__value { font-size: 24px; margin: 10px 0 12px; }
  .hv-card__check { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .formula-strip__track { animation: none; }
}
@media print {
  .site-header, .hv { display: none; }
}
