/* BFA Instrument. Tokens from STYLE-GUIDE.md. One accent per brand, used like a seconds hand. */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-wdth.woff2") format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4.woff2") format("woff2-variations"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #FBFBFA; --surface: #F1F2F2; --rule: #D9DCDE; --muted: #5E656C; --ink: #16191D; --ink-2: #23272C; --text-2: #2C3137;
  --on-ink: #FBFBFA; --on-ink-muted: #A9B0B6; --on-ink-rule: #353A40;
  --accent: #910811; --accent-bright: #C4313B; --accent-wash: #F6E8E9;
  --ok: #2E7D4F; --danger: #B3261E;
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wide: 125%;
  --max: 1200px;
  --gut: clamp(20px, 4vw, 40px);
  --sec: clamp(64px, 9vw, 112px);
}
.brand-taxlady { --accent: #556B00; --accent-bright: #88AA00; --accent-wash: #EEF2DF; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 18px; line-height: 1.6; font-optical-sizing: auto; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-stretch: var(--wide); font-weight: 650; letter-spacing: -0.012em; line-height: 1.06; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 680; line-height: 1.02; }
h2 { font-size: clamp(29px, 3.6vw, 42px); }
h3 { font-size: clamp(20px, 1.9vw, 23px); font-stretch: 100%; font-weight: 600; letter-spacing: 0; line-height: 1.25; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
p { margin: 0 0 1em; }
.mono, .tel { font-family: var(--f-mono); font-size: 0.86em; letter-spacing: 0.01em; }
.label { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; display: flex; align-items: center; gap: 6px; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); flex: none; }
.sr, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 40; top: 12px; left: 12px; width: auto; height: auto; clip: auto; background: var(--ink); color: var(--on-ink); padding: 10px 14px; }
.in { max-width: var(--max); margin: 0 auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.ico { flex: none; display: inline-block; vertical-align: middle; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: 0.01em; line-height: 1.2; text-decoration: none; background: var(--accent); color: #FFFFFF; border: 1px solid var(--accent); border-radius: 2px; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.on-ink { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.btn.on-ink:hover { background: transparent; color: var(--on-ink); }
.btn-block { width: 100%; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0; }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--rule); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: block; flex: none; }
.logo img { display: block; height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { font-family: var(--f-display); font-weight: 500; font-size: 15px; color: var(--ink); text-decoration: none; padding-block: 6px; border-bottom: 1px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.head-tel { color: var(--ink); text-decoration: none; font-size: 14px; }
.head-tel:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule); border-radius: 2px; color: var(--ink); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .ico-close { display: none; }

/* Hero */
.hero h1 { font-size: clamp(34px, 4.3vw, 54px); line-height: 1.04; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 8vw, 96px) clamp(48px, 7vw, 88px); }
.hero .lede { font-size: clamp(18px, 1.5vw, 20px); color: var(--text-2); max-width: 54ch; margin: 24px 0 32px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 30px; list-style: none; margin: 36px 0 0; padding: 22px 0 0; border-top: 1px solid var(--rule); font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.facts b { color: var(--ink); font-weight: 500; }
.hero-dial { justify-self: center; width: 100%; max-width: 520px; }
.dial { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.d-face { fill: #FFFFFF; stroke: var(--rule); stroke-width: 1; }
.d-ring { fill: none; stroke: var(--rule); stroke-width: 1; }
.d-tick { stroke: var(--rule); stroke-width: 1; }
.d-month { stroke: var(--ink); stroke-width: 1.5; }
.d-mlabel { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; fill: var(--muted); }
.d-dot { fill: var(--ink); }
.d-dot.is-next { fill: var(--accent); }
.d-k { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; fill: var(--muted); }
.d-big { font-family: var(--f-display); font-stretch: var(--wide); font-weight: 680; font-size: 46px; fill: var(--ink); }
.d-sub { font-family: var(--f-body); font-size: 17px; fill: var(--muted); }
.d-arc { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; opacity: 0.85; }
.d-days { font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; fill: var(--accent); }
.d-hand line { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: square; }
.d-hand path { fill: var(--accent); }
.dial-cap { font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-align: center; margin: 12px 0 0; letter-spacing: 0.03em; }

/* Deadline strip */
.strip { background: var(--surface); border-block: 1px solid var(--rule); }
.strip-in { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; padding-block: 22px; }
.strip-in > div { border-left: 1px solid var(--rule); padding-left: 12px; min-width: 0; }
.strip-in > div.is-next { border-left: 2px solid var(--accent); }
.strip b { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 14px; }
.strip span { display: block; font-size: 14px; line-height: 1.35; color: var(--muted); }

/* Sections */
.sec { padding-block: var(--sec); }
.sec-tight { padding-block: clamp(40px, 6vw, 72px); }
.sec-surface { background: var(--surface); border-block: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: end; margin-bottom: clamp(32px, 4vw, 48px); }
.sec-intro { color: var(--text-2); max-width: 60ch; margin: 0; }
.sec-note { font-family: var(--f-body); font-style: italic; color: var(--muted); margin: 28px 0 0; max-width: 70ch; }
.sec-cta { margin: 32px 0 0; }

/* Services index */
.index { border-top: 1px solid var(--ink); }
.index .row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr) minmax(0, 0.85fr) 24px; gap: 28px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.index .row.is-link { transition: border-color .15s; }
.index .row.is-link:hover { border-bottom-color: var(--accent); }
.index .row.is-link:hover .arrow { color: var(--accent); transform: translateX(3px); }
.index .name { font-size: 21px; margin: 0; }
.index .desc { font-size: 16px; line-height: 1.5; color: #3A4046; margin: 0; }
.index .forms { font-family: var(--f-mono); font-size: 13px; color: var(--muted); margin: 0; }
.index .arrow { color: var(--muted); transition: transform .15s, color .15s; }

/* Client types */
.clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); background: #FFFFFF; }
.client { padding: 30px 28px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; min-width: 0; }
.client:last-child { border-right: 0; }
.client.is-featured { box-shadow: inset 0 3px 0 var(--accent); }
.client h3 { font-stretch: var(--wide); font-size: 24px; margin-bottom: 12px; }
.client > p { font-size: 16px; line-height: 1.5; color: var(--text-2); }
.ticks { list-style: none; margin: 6px 0 22px; padding: 18px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 10px; }
.ticks li, .checklist li { display: flex; gap: 10px; align-items: baseline; font-size: 16px; line-height: 1.45; }
.ticks .ico, .checklist .ico { color: var(--accent); position: relative; top: 2px; }
.outcome { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--rule); font-style: italic; color: var(--muted); font-size: 15px; }
.client-link { margin: 14px 0 0; font-family: var(--f-display); font-weight: 600; font-size: 15px; }
.client-link a, .text-link { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }

/* Steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.steps li { padding: 28px 24px 4px 0; margin-right: 24px; border-right: 1px solid var(--rule); min-width: 0; }
.steps li:last-child { border-right: 0; margin-right: 0; }
.steps .n { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.06em; color: var(--accent); margin: 0 0 14px; }
.steps h3 { margin-bottom: 10px; }
.steps p:last-child { font-size: 16px; line-height: 1.5; color: #3A4046; margin: 0; }

/* Split layouts */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.split-lead h2 { margin-bottom: 18px; }
.points { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.points > div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.points dt { font-family: var(--f-display); font-weight: 600; font-size: 18px; line-height: 1.3; }
.points dd { margin: 0; font-size: 16px; line-height: 1.5; color: #3A4046; }
.checklist { background: #FFFFFF; border: 1px solid var(--rule); padding: clamp(22px, 3vw, 34px); }
.checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist-note { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 16px; color: var(--text-2); }
.prose { max-width: 66ch; }
.prose p { color: var(--text-2); }
.prose-page h2 { font-size: 26px; margin: 1.4em 0 .5em; }
.prose-page h3 { margin: 1.2em 0 .4em; }

/* Compare (who handles what) */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--rule); background: #FFFFFF; }
.compare-col { padding: 30px 28px; min-width: 0; }
.compare-col + .compare-col { border-left: 1px solid var(--rule); }
.compare-col.is-current { box-shadow: inset 0 3px 0 var(--accent); }
.compare-col h3 { font-stretch: var(--wide); font-size: 24px; margin-bottom: 16px; }
.compare-col ul { margin: 0 0 18px; padding-left: 18px; display: grid; gap: 8px; font-size: 16px; }
.compare-col li::marker { color: var(--accent); }

/* Office card, contact, forms */
.office-card { background: #FFFFFF; border: 1px solid var(--rule); padding: clamp(22px, 3vw, 32px); }
.office-tel { margin: 0 0 18px; }
.office-tel .tel { font-size: clamp(24px, 2.6vw, 32px); color: var(--ink); text-decoration: none; }
.office-tel .tel:hover { color: var(--accent); }
.office-list { list-style: none; margin: 0 0 22px; padding: 0 0 22px; border-bottom: 1px solid var(--rule); display: grid; gap: 12px; font-size: 16px; }
.office-list li { display: flex; gap: 12px; align-items: flex-start; }
.office-list .ico { color: var(--accent); margin-top: 3px; }
.office-list a { color: var(--ink); text-decoration: none; word-break: break-word; }
.office-list a:hover { color: var(--accent); text-decoration: underline; }
.office-hours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.office-hours .mono { font-size: 14px; line-height: 1.6; margin: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.form-card { background: #FFFFFF; border: 1px solid var(--rule); padding: clamp(22px, 3vw, 34px); }
.form-card h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 10px; }
.form-card > p { color: var(--text-2); font-size: 16px; }
.lead-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0 20px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.span-2 { grid-column: span 2; }
.field span { font-family: var(--f-display); font-weight: 600; font-size: 14px; }
.field small { font-family: var(--f-mono); font-weight: 400; font-size: 11px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin-left: 6px; }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/1.4 var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 2px; padding: 12px 13px; min-height: 48px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #FFFFFF; box-shadow: 0 0 0 3px var(--accent-wash); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.form-note .tel { color: var(--ink); }
.form-status { margin-top: 12px; font-size: 15px; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: var(--danger); }
.lead.is-sent .lead-grid, .lead.is-sent .btn { display: none; }

/* Inner page hero */
.page-hero { border-bottom: 1px solid var(--rule); }
.page-hero .in { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); max-width: 20ch; }
.page-hero .lede { font-size: clamp(18px, 1.5vw, 20px); color: var(--text-2); max-width: 60ch; margin: 22px 0 0; }
.page-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: start; }

/* Dark band: one per page */
.band { background: var(--ink); color: var(--on-ink); }
.band-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center; padding-block: clamp(56px, 7vw, 80px); }
.band .eyebrow { color: var(--on-ink-muted); }
.band .eyebrow::before { background: var(--accent-bright); }
.band h2 { color: var(--on-ink); font-stretch: 120%; margin-bottom: 14px; }
.band p { color: var(--on-ink-muted); max-width: 52ch; margin: 0; }
.band-call { display: grid; gap: 16px; justify-items: start; }
.band-tel { font-size: clamp(26px, 3vw, 38px); color: var(--on-ink); text-decoration: none; letter-spacing: 0.02em; }
.band-tel:hover { color: var(--accent-bright); }
.brand-beta .band-tel:hover { color: var(--on-ink); text-decoration: underline; text-decoration-color: var(--accent-bright); }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); background: var(--paper); font-size: 15px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 52px 36px; }
.foot-brand img { height: 40px; width: auto; display: block; margin-bottom: 16px; }
.foot-brand p { color: var(--text-2); max-width: 36ch; }
.foot-parent a { font-weight: 600; }
.site-foot p { margin: 0 0 10px; }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { color: var(--accent); text-decoration: underline; }
.foot-in .mono { font-size: 13px; letter-spacing: 0; }
.foot-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.1fr); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 18px 28px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; }
.foot-base p { margin: 0; }
.foot-base ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.foot-base a { color: var(--muted); }

/* Titles that are labels, not headings (Pardeep's Fix 8): same look as before. */
.client-title { font-family: var(--f-display); font-stretch: var(--wide); font-weight: 650; font-size: 24px; line-height: 1.2; margin: 0 0 12px; }
.step-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 1.9vw, 23px); line-height: 1.25; margin: 0 0 10px; }
.index .name { font-family: var(--f-display); font-weight: 600; line-height: 1.3; }
.hero-tagline { font-family: var(--f-display); font-stretch: 115%; font-weight: 600; font-size: clamp(20px, 2vw, 26px); line-height: 1.25; margin: 18px 0 0; color: var(--ink); }
.hero--media .hero-tagline { color: var(--accent-on-ink); }
.faq { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.faq-item h3 { margin: 0 0 8px; }
.faq-item p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.notfit .ico { color: var(--muted); }
.prose-post { max-width: 72ch; margin: 0 auto; }
.prose-post h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 1.6em 0 .5em; }
.prose-post h3 { margin: 1.3em 0 .4em; }
.prose-post ul, .prose-post ol { padding-left: 1.2em; color: var(--text-2); }
.prose-post li { margin: .3em 0; }
.prose-post table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose-post th, .prose-post td { border-bottom: 1px solid var(--rule); padding: 8px 10px; text-align: left; }
.post-meta { color: var(--muted); margin: 16px 0 0; font-size: 13px; }

/* Media heroes: photo or video behind, neutral graphite scrim (not a brand gradient), light text. */
:root { --accent-on-ink: #F2A9AE; }
.brand-taxlady { --accent-on-ink: #B5D33A; }
.hero--media, .page-hero--media { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--on-ink); border-bottom: 0; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media video { opacity: 0; transition: opacity 1.2s ease; }
.hero-media video.is-playing { opacity: 1; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(22,25,29,.92) 0%, rgba(22,25,29,.82) 38%, rgba(22,25,29,.42) 70%, rgba(22,25,29,.30) 100%), linear-gradient(0deg, rgba(22,25,29,.55) 0%, rgba(22,25,29,0) 35%); }
.hero--media .hero-in { min-height: clamp(600px, 84vh, 860px); padding-block: clamp(64px, 9vw, 120px); }
.hero--media h1, .page-hero--media h1 { color: var(--on-ink); }
.hero--media h1 em, .page-hero--media h1 em { color: var(--accent-on-ink); }
.hero--media .eyebrow, .page-hero--media .eyebrow { color: var(--on-ink-muted); }
.hero--media .eyebrow::before, .page-hero--media .eyebrow::before { background: var(--accent-on-ink); }
.hero--media .lede, .page-hero--media .lede { color: rgba(251,251,250,.84); }
.hero--media .facts { border-top-color: rgba(251,251,250,.18); color: var(--on-ink-muted); }
.hero--media .facts b { color: var(--on-ink); }
.hero--media .btn.ghost { color: var(--on-ink); border-color: rgba(251,251,250,.4); }
.hero--media .btn.ghost:hover { border-color: var(--on-ink); color: var(--on-ink); background: rgba(251,251,250,.08); }
.hero--media .btn:not(.ghost):hover { background: var(--on-ink); border-color: var(--on-ink); color: var(--ink); }
.hero--media .dial { filter: drop-shadow(0 24px 60px rgba(0,0,0,.42)); }
.hero--media .dial-cap { color: var(--on-ink-muted); }
.page-hero--media .in { padding-block: clamp(80px, 11vw, 150px) clamp(64px, 8vw, 104px); }
.page-hero--media .page-hero-aside .form-card { color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.32); }
@media (max-width: 980px) {
  .hero-scrim { background: linear-gradient(180deg, rgba(22,25,29,.78) 0%, rgba(22,25,29,.86) 55%, rgba(22,25,29,.92) 100%); }
  .hero--media .hero-in { min-height: 0; }
}

/* Photos: framed, cropped by aspect ratio, never stretched. */
.media { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--rule); max-width: 100%; }
.media .media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lead-media { margin-top: clamp(24px, 3vw, 36px); }
.hero-media { width: 100%; }
.page-hero-in .page-hero-aside { align-self: stretch; }
.fig-band { margin: 0; padding-block: 0 var(--sec); }
.fig-band .band-media { border: 0; }
.fig-band figcaption { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); margin-top: 12px; display: flex; gap: 12px; align-items: center; }
.fig-band figcaption::before { content: ""; width: 28px; height: 1px; background: var(--accent); flex: none; }
@media (max-width: 600px) { .fig-band .band-media { aspect-ratio: 4 / 3 !important; } }

/* Motion layer (assets/js/motion.js). Content is visible without script; .intro only covers the first frame. */
html.intro .hero .hero-copy, html.intro .hero .hero-dial, html.intro .page-hero .in { opacity: 0; }
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.wi { display: inline-block; will-change: transform; }
.d-ring-pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.steps { position: relative; }
.steps-rail { position: absolute; top: -1px; left: 0; width: 100%; height: 2px; background: var(--accent); transform-origin: left center; transform: scaleX(0); pointer-events: none; }
.site-head .head-in { transition: min-height .25s ease; }
.site-head.is-scrolled .head-in { min-height: 62px; }
.site-head .logo img { transition: height .25s ease; }
.site-head.is-scrolled .logo img { height: 36px; }
@media (max-width: 980px) { .site-head.is-scrolled .head-in { min-height: 62px; } .site-head.is-scrolled ~ * .site-nav, .is-scrolled .site-nav { inset: 62px 0 auto; } }

/* Legacy Elementor content on legal pages: keep it readable inside the theme. */
.prose-page .elementor-section, .prose-page .e-con { padding: 0 !important; }

@media (max-width: 980px) {
  .hero-in, .sec-head, .split, .band-in, .contact-grid, .page-hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-dial { max-width: 380px; }
  .strip-in { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .clients { grid-template-columns: minmax(0, 1fr); }
  .client { border-right: 0; border-bottom: 1px solid var(--rule); }
  .client:last-child { border-bottom: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(2) { border-right: 0; margin-right: 0; }
  .index .row { grid-template-columns: minmax(0, 1fr) 24px; gap: 6px 16px; }
  .index .desc, .index .forms { grid-column: 1; }
  .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: 76px 0 auto; z-index: 19; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px max(var(--gut), env(safe-area-inset-left, 0px)) 24px; display: none; }
  .nav-open .site-nav { display: flex; }
  .nav-open .nav-toggle .ico-open { display: none; }
  .nav-open .nav-toggle .ico-close { display: inline-block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 18px; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 14px; padding-top: 20px; }
  .head-tel { font-size: 18px; text-align: center; padding: 8px 0; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .logo img { height: 38px; }
  .head-in { min-height: 68px; }
  .site-nav { inset: 68px 0 auto; }
  .strip-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 22px; }
  .compare { grid-template-columns: minmax(0, 1fr); }
  .compare-col + .compare-col { border-left: 0; border-top: 1px solid var(--rule); }
  .points > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .lead-grid { grid-template-columns: minmax(0, 1fr); }
  .field.span-2 { grid-column: auto; }
  .office-hours { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .ctas .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Service pages: at-a-glance card in the hero aside. */
.svc-card .ticks { margin: 12px 0 22px; }
.svc-card .svc-cta { margin: 0; }
.svc-card .svc-cta .btn { width: 100%; justify-content: center; }

/* Services dropdown in the main menu */
.site-nav .has-sub { position: relative; }
.site-nav .has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.site-nav .sub { display: none; position: absolute; top: 100%; left: -16px; z-index: 21; flex-direction: column; gap: 0; min-width: 240px; padding: 8px 16px; background: var(--paper); border: 1px solid var(--rule); }
.site-nav .has-sub:hover > .sub, .site-nav .has-sub:focus-within > .sub { display: flex; }
.site-nav .sub a { display: block; padding-block: 10px; }
@media (max-width: 980px) {
  .site-nav { max-height: calc(100dvh - 76px); overflow-y: auto; }
  .site-nav .has-sub > a::after { display: none; }
  .site-nav .sub { display: flex; position: static; min-width: 0; padding: 0 0 0 16px; border: 0; background: none; }
  .site-nav .sub a { padding-block: 13px; font-size: 16px; }
}

/* Client reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; margin-top: 32px; }
.review { margin: 0; padding-top: 18px; border-top: 2px solid var(--accent); }
.review blockquote { margin: 0 0 14px; font-size: 19px; line-height: 1.5; color: var(--ink); }
.review figcaption { margin: 0; }
.head-portal { font-family: var(--f-display); font-weight: 500; font-size: 15px; color: var(--ink); text-decoration: none; }
.head-portal:hover { color: var(--accent); }

/* Sections with a photo: heading row, then photo and content side by side at the same height */
.split-top { align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.split-top .split-lead h2 { margin-bottom: 0; }
.split-intro > :last-child { margin-bottom: 0; }
.split-body { align-items: stretch; }
@media (min-width: 981px) {
  .split-body .side-media { aspect-ratio: auto !important; min-height: 320px; height: 100%; }
}
.split-intro .sec-intro:not(:last-child) { margin-bottom: 18px; }

/* Team page */
.team { display: grid; gap: clamp(32px, 4vw, 48px); margin-top: clamp(24px, 3vw, 36px); }
.team-row { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--rule); }
.team-photo .media-img { object-position: center top; }
.team-row h3 { margin: 0 0 8px; }
.team-row p:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .team-row { grid-template-columns: minmax(0, 1fr); } .team-photo { max-width: 280px; } }

/* Careers and job pages */
.jobs dt a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.jobs dt a:hover { color: var(--accent); }
.job-pay { font-family: var(--f-display); font-weight: 600; font-size: 28px; line-height: 1.2; margin: 0 0 18px; color: var(--ink); }
.job-form .gform_wrapper input:not([type="submit"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]), .job-form .gform_wrapper select, .job-form .gform_wrapper textarea { width: 100%; max-width: 100%; }
#apply { scroll-margin-top: 80px; }
.form-card .job-pay { font-family: var(--f-display); font-weight: 600; font-size: 28px; line-height: 1.2; margin: 0 0 18px; color: var(--ink); }
/* Fuller menu: keep it on one line between the phone menu and full desktop width */
.site-nav a { white-space: nowrap; }
@media (min-width: 981px) and (max-width: 1240px) {
  .head-in { gap: 14px; }
  .site-nav { gap: 14px; }
  .site-nav > ul { gap: 13px; }
  .site-nav ul a, .head-portal { font-size: 14px; }
  .nav-actions { gap: 12px; }
  .head-tel { font-size: 12px; }
  .site-nav .btn { padding-inline: 14px; font-size: 13px; }
  .logo img { height: 38px; }
}
