/* =========================================================================
   Prudential Advocate, APC — design system
   Palette: logo red / warm near-black / white / warm grey
   Brand red #E32525 taken straight from the logo mark.
   Type: Source Serif 4 (headings) + Source Sans 3 (body/UI)
   All foreground/background pairings verified ≥ AA. The bright accent reds
   (--gold / --gold-bright) are used ON DARK ONLY; --gold-ink is the AA red
   for accent TEXT on light. Body text never relies on red alone.
   ========================================================================= */

:root {
  /* color — semantic names kept; values rebranded to red / black / white / grey */
  --ink:        #1A1714;  /* warm near-black — headlines, dark bands, primary text  ~16:1 on white */
  --ink-2:      #2A2723;  /* charcoal — body text on light                          ~13:1 on white */
  --ink-soft:   #5C544B;  /* warm grey — muted body / captions on light             ~7:1  on white */
  --ivory:      #FAF8F4;  /* page ground — warm white */
  --ivory-2:    #F1ECE4;  /* alt band on light */
  --surface:    #FFFFFF;  /* cards */
  --line:       #E6DFD4;  /* hairline borders on light (≥3:1 against ground) */
  --line-2:     #D6CDBF;  /* stronger hairline */
  --gold:       #FF6259;  /* bright accent — ON DARK ONLY (6:1 on ink) */
  --brand-red:  #E32525;  /* logo mark + primary buttons + large display accents */
  --gold-bright:#FF8079;  /* brighter accent for focus rings / strokes on dark */
  --gold-ink:   #C01A1A;  /* red accent TEXT on light (5.9:1 on white) */
  --green:      #8C1D1D;  /* secondary deep red on light (7:1) — was a green accent */
  --error:      #B42318;  /* form errors — always paired with text + icon */
  --error-bg:   #FDF1F0;
  --focus:      #1D4ED8;  /* focus ring — kept blue: an interaction state, AA on light & dark */
  --ink-tint:   rgba(26,23,20,.06);

  /* type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  /* wordmark only — firm letterhead is Gill Sans MT with spaced capitals */
  --brand-sans: "Gill Sans", "Gill Sans MT", "Gill Sans Nova", "Source Sans 3", system-ui, sans-serif;

  /* metrics */
  --header-h: 78px;
  --maxw: 1200px;
  --measure: 66ch;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(26,18,16,.07), 0 1px 3px rgba(26,18,16,.06);
  --shadow:    0 2px 4px rgba(26,18,16,.06), 0 8px 24px rgba(26,18,16,.09);
  --shadow-lg: 0 12px 40px rgba(26,18,16,.14);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px); /* keep focus/anchors clear of sticky header (WCAG 2.4.11) */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;            /* 17px desktop */
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (max-width: 640px) { body { font-size: 1.125rem; } } /* 18px mobile */

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }
:focus { outline: none; }

/* ---------- visible focus (context aware) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}
/* on dark surfaces the blue ring drops below 3:1 — use a bright ring instead */
.on-dark a:focus-visible, .on-dark button:focus-visible,
.on-dark [tabindex]:focus-visible, .on-dark input:focus-visible,
.on-dark select:focus-visible, .on-dark textarea:focus-visible {
  outline-color: #FFFFFF;
  box-shadow: 0 0 0 5px rgba(224,201,119,.55);
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  background: var(--ink); color: #fff;
  padding: .7rem 1.1rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
main { display: block; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
.h-display { font-size: clamp(2.5rem, 5.2vw, 4rem); line-height: 1.09; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.2; }
h4 { font-size: 1.12rem; line-height: 1.3; }
p { text-wrap: pretty; }
strong { font-weight: 600; color: var(--ink); }

.eyebrow {
  font-family: var(--sans);
  font-size: .8125rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink);
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; display: inline-block; }
.eyebrow--center { justify-content: center; }
.on-dark .eyebrow { color: var(--gold); }

.lede { font-size: clamp(1.18rem, 1.8vw, 1.4rem); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-soft); }
.measure { max-width: var(--measure); }
.center { text-align: center; }

/* prose / reading column */
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.15em; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.7; }
.prose h2 { margin-top: 2.2em; margin-bottom: .5em; }
.prose h3 { margin-top: 1.8em; margin-bottom: .4em; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--ink); }
.prose ul { margin: 1.1em 0; }
.prose ul li { position: relative; padding-left: 1.5rem; margin-bottom: .55em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--gold-ink); transform: rotate(45deg); }
.prose strong { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  --btn-pad-y: .8rem; --btn-pad-x: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.1;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  min-height: 48px; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease), box-shadow .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
/* default icon size so inline SVGs never balloon when a context forgets to size them */
.ic { width: 1.15em; height: 1.15em; flex: none; }
.btn .ic { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--brand-red); color: #fff; border-color: var(--brand-red); }
.btn--primary:hover { background: #C2161B; border-color: #C2161B; box-shadow: var(--shadow); }
.btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ink:hover { background: #2E2723; border-color: #2E2723; box-shadow: var(--shadow); }
.btn--gold { background: var(--brand-red); color: #fff; border-color: var(--brand-red); }
.btn--gold:hover { background: #C2161B; border-color: #C2161B; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--ink); background: var(--ink-tint); }
.on-dark .btn--outline, .btn--outline.on-dark { color: #fff; border-color: rgba(255,255,255,.4); }
.on-dark .btn--outline:hover, .btn--outline.on-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--lg { font-size: 1.06rem; --btn-pad-y: .95rem; --btn-pad-x: 1.7rem; min-height: 54px; }
.btn--block { width: 100%; }

/* text link with arrow */
.tlink {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; color: var(--gold-ink); text-decoration: none;
  min-height: 24px;
}
.tlink span { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; text-decoration-color: rgba(107,84,24,.4); }
.tlink:hover span { text-decoration-color: currentColor; }
.tlink .ic { width: 17px; height: 17px; transition: transform .18s var(--ease); }
.tlink:hover .ic { transform: translateX(3px); }
.on-dark .tlink { color: var(--gold); }
.on-dark .tlink span { text-decoration-color: rgba(194,161,77,.5); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,244,.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { width: auto; height: 33px; flex: none; display: inline-flex; align-items: center; color: var(--brand-red); }
.brand__mark svg { height: 100%; width: auto; display: block; }
.brand__name { display: block; font-family: var(--brand-sans); font-weight: 400; font-size: 1.03rem; line-height: 1; letter-spacing: .28em; text-transform: uppercase; white-space: nowrap; }
.brand__sub { display: block; font-family: var(--brand-sans); font-weight: 400; font-size: .6rem; line-height: 1; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-top: .16rem; }

.nav__primary { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-weight: 600; font-size: .98rem; color: var(--ink-2); text-decoration: none;
  padding: .55rem .7rem; border-radius: var(--radius); min-height: 40px;
  position: relative; white-space: nowrap;
}
.nav__link:hover { color: var(--ink); background: var(--ink-tint); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 6px; height: 2px; background: var(--gold-ink);
}

/* services disclosure */
.nav__has-menu { position: relative; }
.nav__disc { background: none; border: 0; cursor: pointer; }
.nav__disc .chev { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav__disc[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: .5rem; display: none; z-index: 120;
}
.nav__menu[data-open="true"] { display: block; animation: pop .16s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav__menu a {
  display: flex; flex-direction: column; gap: 1px;
  padding: .6rem .75rem; border-radius: var(--radius); text-decoration: none; color: var(--ink);
}
.nav__menu a:hover, .nav__menu a:focus-visible { background: var(--ivory-2); }
.nav__menu a .mi-t { font-weight: 600; font-size: .98rem; }
.nav__menu a .mi-d { font-size: .82rem; color: var(--ink-soft); }
.nav__menu .menu-foot { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .35rem; }

.nav__utility { display: flex; align-items: center; gap: 1rem; flex: none; }
.callbtn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--ink); text-decoration: none; padding: .5rem .4rem; min-height: 44px; }
.callbtn .ic { width: 18px; height: 18px; color: var(--gold-ink); }
.callbtn .lbl { display: flex; flex-direction: column; line-height: 1.05; }
.callbtn .lbl small { font-weight: 600; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.callbtn:hover { color: var(--gold-ink); }

/* language selector (nav) — single-click toggle, always visible in the bar */
.nav__lang { position: relative; }
.nav__langbtn { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: .42rem .7rem; font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink); cursor: pointer; line-height: 1; }
.nav__langbtn:hover { border-color: var(--ink); }
.nav__langbtn .globe { width: 16px; height: 16px; color: var(--gold-ink); flex: none; }

.nav__toggle { display: none; }

/* mobile nav */
.mnav { display: none; }
.mnav__lang { margin-top: 1.25rem; }
.mnav__langrow { display: flex; gap: .5rem; margin-top: .5rem; }
.mnav__langrow button { flex: 1; padding: .65rem; border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; border-radius: var(--radius); font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; }
.mnav__langrow button[aria-current="true"] { background: var(--brand-red); border-color: var(--brand-red); }
@media (max-width: 980px) {
  .nav { gap: .5rem; }
  .nav__primary, .nav__utility .callbtn .lbl, .nav__utility .btn { display: none; }
  .nav__utility { gap: .3rem; margin-left: auto; }
  .nav__langbtn { padding: .4rem; border: 0; border-radius: 50%; }
  .nav__langbtn [data-lang-label] { display: none; }
  .nav__toggle {
    display: inline-grid; place-items: center; width: 48px; height: 48px;
    background: var(--ink); color: #fff; border: 0; border-radius: var(--radius); cursor: pointer;
  }
  .nav__toggle .ic { width: 24px; height: 24px; }
  .mnav { display: block; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .brand__sub { display: none; }
  .brand__name { font-size: .88rem; letter-spacing: .16em; }
  .brand__mark { height: 28px; }
  .brand { gap: .5rem; }
}
.mnav__panel {
  position: fixed; inset: 0; z-index: 150;
  background: var(--ink); color: #fff;
  display: flex; flex-direction: column;
  padding: 1.2rem clamp(1.1rem,5vw,2rem) 2rem;
  transform: translateX(100%); transition: transform .28s var(--ease);
  overflow-y: auto;
}
.mnav__panel[data-open="true"] { transform: none; }
.mnav__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.mnav__close { width: 48px; height: 48px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 0; color: #fff; border-radius: var(--radius); cursor: pointer; }
.mnav__close .ic { width: 24px; height: 24px; }
.mnav__list { margin-top: 1rem; display: flex; flex-direction: column; }
.mnav__list a { color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.4rem; padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.12); min-height: 56px; display: flex; align-items: center; }
.mnav__list .sub a { font-family: var(--sans); font-size: 1.05rem; padding-left: 1rem; color: rgba(255,255,255,.85); }
.mnav__group-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 1.2rem 0 .25rem; font-weight: 700; }
.mnav__cta { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.mnav__call { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.mnav__call .ic { width: 22px; height: 22px; color: var(--gold); }
.scroll-lock { overflow: hidden; }

/* ---------- hero (full-bleed rolling image carousel) ---------- */
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: center;
  min-height: clamp(540px, 82vh, 820px);
  background: var(--ink); overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden; will-change: opacity;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity .9s ease; }
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  will-change: transform; transform: scale(1.04);
  /* transform eases in step with the .9s cross-fade, so the outgoing slide never snaps */
  transition: transform .9s ease;
}
/* legibility scrim — left-weighted so overlaid text stays ≥AA over any image */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20,15,13,.88) 0%, rgba(20,15,13,.70) 36%, rgba(20,15,13,.34) 66%, rgba(20,15,13,.14) 100%),
    linear-gradient(0deg, rgba(20,15,13,.5), rgba(20,15,13,0) 42%);
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero__content { max-width: 41rem; padding-block: clamp(3rem, 9vh, 5.5rem); }
.hero__content .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; margin-top: 1rem; }
.hero__sub { margin-top: 1.4rem; font-size: clamp(1.08rem,1.5vw,1.24rem); line-height: 1.6; color: rgba(255,255,255,.92); max-width: 37rem; }
.hero__cta { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: .9rem; }
/* slide controls */
.hero__dots { margin-top: 2.6rem; display: flex; gap: .7rem; align-items: center; }
.hero__dot {
  position: relative; width: 44px; height: 4px; padding: 0; border: 0; cursor: pointer;
  border-radius: 2px; background: rgba(255,255,255,.34);
  transition: background .2s var(--ease);
}
.hero__dot::after { content: ""; position: absolute; inset: -14px -4px; } /* ≥44px touch target */
.hero__dot:hover { background: rgba(255,255,255,.6); }
.hero__dot[aria-current="true"] { background: var(--brand-red); }
/* Cinematic ken-burns: each slide drifts differently so consecutive images
   feel distinct. Runs 9s (longer than the display interval) so motion never
   visibly stops before the cross-fade to the next slide. */
@media (prefers-reduced-motion: no-preference) {
  /* gentle, scale-only ken-burns — no translate, so movement stays smooth (no jitter) */
  .hero__slide.is-active img { animation: heroZoom 7s ease-out both; }
}
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1.12); } }
html.pa-reduce-motion .hero__slide.is-active img { animation: none; transform: none; transition: none; }
@media (max-width: 860px) {
  .hero { min-height: clamp(480px, 76vh, 640px); }
  .hero__content { max-width: 100%; }
  /* text runs full-width on mobile — use an even, heavier scrim so white stays ≥AA over any image */
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(20,15,13,.62) 0%, rgba(20,15,13,.5) 40%, rgba(20,15,13,.66) 100%),
      linear-gradient(90deg, rgba(20,15,13,.45), rgba(20,15,13,.2));
  }
}

/* image placeholder styling for slots */
image-slot { background: repeating-linear-gradient(135deg, #ece6da 0 14px, #e6dfd1 14px 28px); border: 1px solid var(--line-2); color: var(--ink-soft); }
.slot-cap { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .72rem; letter-spacing: .02em; }

/* ---------- bands ---------- */
.band-ivory2 { background: var(--ivory-2); }
.band-navy { background: var(--ink); color: #fff; }
.band-navy h1, .band-navy h2, .band-navy h3 { color: #fff; }
.band-navy p { color: rgba(255,255,255,.84); }
.band-navy .lede { color: rgba(255,255,255,.9); }
/* bold text inside dark bands must stay light (avoid navy-on-navy) */
.band-navy strong, .pagehead strong, .on-dark strong { color: #fff; }

/* ---------- section heading block ---------- */
.shead { max-width: 46rem; }
.shead--center { margin-inline: auto; text-align: center; }
.shead h2 { margin-top: .9rem; }
.shead p { margin-top: 1rem; color: var(--ink-soft); }
.band-navy .shead p { color: rgba(255,255,255,.8); }
.shead__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

/* ---------- service cards ---------- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
/* soft office backdrop behind the services cards; overlay keeps the section legible */
.svc-bg { background:
    linear-gradient(rgba(250,248,244,.82), rgba(250,248,244,.90)),
    url("services-bg.jpg") center / cover no-repeat; }
@media (max-width: 580px) { .cards { grid-template-columns: 1fr; } }
.scard {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.6rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; min-height: 230px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.scard:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-3px); }
.scard h3 { margin-top: 0; }
.scard p { margin-top: .55rem; color: var(--ink-soft); font-size: .98rem; flex: 1; }
.scard .tlink { margin-top: 1.1rem; }
.scard__link { position: absolute; inset: 0; border-radius: var(--radius-lg); }
.scard__link span.vh { position: absolute; }
/* alternating (checkerboard) treatment — home services grid */
.cards--alt .scard:nth-child(2n) { background: var(--ink); border-color: var(--ink); }
.cards--alt .scard:nth-child(2n):hover { background: #2A211F; border-color: #2A211F; }
.cards--alt .scard:nth-child(2n) h3 { color: #fff; }
.cards--alt .scard:nth-child(2n) p { color: rgba(255,255,255,.82); }
.cards--alt .scard:nth-child(2n) .tlink { color: var(--gold); }
.cards--alt .scard:nth-child(2n) .tlink span { text-decoration-color: rgba(194,161,77,.5); }
.cards--alt .scard:nth-child(2n) .tlink:hover span { text-decoration-color: var(--gold); }

/* ---------- two-column feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center; }
.split--fill { align-items: stretch; }
.split--fill .split__media, .split--fill .split__media image-slot { height: 100%; }
.split--media-left .split__media { order: -1; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--media-left .split__media { order: 0; } }
.split__media image-slot, .split__media { min-height: 340px; }
.feature-list { margin-top: 1.6rem; display: grid; gap: 1rem; }
.feature-list li { display: flex; gap: .8rem; align-items: flex-start; }
.feature-list .ic { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 2px; }
.feature-list b { color: var(--ink); }

/* ---------- stat / credibility strip ---------- */
.cred { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 760px) { .cred { grid-template-columns: repeat(2,1fr); } }
.cred__cell { background: var(--surface); padding: 1.4rem 1.3rem; }
.cred__cell .k { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); font-weight: 600; }
.cred__cell .v { font-size: .92rem; color: var(--ink-soft); margin-top: .2rem; }
.band-navy .cred { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.14); }
.band-navy .cred__cell { background: var(--ink); }
.band-navy .cred__cell .k { color: var(--gold); }
.band-navy .cred__cell .v { color: rgba(255,255,255,.78); }

/* ---------- team cards ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
@media (max-width: 1040px) { .team-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 760px) { .team-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px) { .team-grid { grid-template-columns: 1fr; } }
.tcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.tcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tcard__photo { aspect-ratio: 4/5; width: 100%; }
.tcard__photo image-slot { width: 100%; height: 100%; }
.tcard__body { padding: 1rem 1.1rem 1.2rem; }
.tcard__name { font-family: var(--serif); font-size: 1.18rem; color: var(--ink); font-weight: 600; }
.tcard__role { margin-top: .15rem; font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-ink); }
.tcard__role[data-attorney="true"] { color: var(--green); }
.tcard .tlink { margin-top: .8rem; font-size: .95rem; }
.tcard__link { position: absolute; inset: 0; }

/* ---------- bio page ---------- */
.bio { display: grid; grid-template-columns: 320px 1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: start; }
@media (max-width: 860px) { .bio { grid-template-columns: 1fr; } }
.bio__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.25rem; }
@media (max-width: 860px) { .bio__aside { position: static; } }
.bio__photo { width: 100%; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; }
.bio__photo image-slot { width: 100%; height: 100%; }
.bio__contact { display: grid; gap: .6rem; }
.bio__contact a { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 600; min-height: 28px; }
.bio__contact a:hover { color: var(--gold-ink); }
.bio__contact .ic { width: 18px; height: 18px; color: var(--gold-ink); flex: none; }
.bio__contact .placeholder { color: var(--ink-soft); font-weight: 500; }

.sidebar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1.4rem; }
.sidebar h2 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.sidebar dl { margin-top: .9rem; display: grid; gap: 1rem; }
.sidebar dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--gold-ink); }
.sidebar dd { margin-top: .25rem; font-size: .96rem; color: var(--ink-2); line-height: 1.5; }
.sidebar dd ul li { padding-left: 1rem; position: relative; margin-bottom: .25rem; }
.sidebar dd ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; background: var(--gold-ink); transform: rotate(45deg); }
.placeholder-flag { color: var(--ink-soft); font-style: italic; font-size: .9rem; }

.bio__role-note { display: inline-flex; align-items: center; gap: .5rem; font-size: .86rem; color: var(--ink-soft); background: var(--ivory-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .55rem .8rem; }
.bio__role-note .ic { width: 16px; height: 16px; color: var(--gold-ink); }

.titlechip { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; font-size: .82rem; color: var(--gold-ink); }
.titlechip[data-attorney="true"] { color: var(--green); }
.titlechip::before { content: ""; width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); }

/* draft / placeholder banner */
.notice { display: flex; gap: .7rem; align-items: flex-start; background: #FBF6EA; border: 1px solid #E7D9B0; border-radius: var(--radius); padding: .85rem 1rem; font-size: .92rem; color: #5b4a1e; }
.notice .ic { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--gold-ink); }

/* ---------- breadcrumb ---------- */
.crumbs { font-size: .9rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current="page"] { color: var(--ink-2); font-weight: 600; }
.crumbs .sep { color: var(--line-2); }
.on-dark .crumbs, .on-dark .crumbs a { color: rgba(255,255,255,.7); }
.on-dark .crumbs [aria-current="page"] { color: #fff; }

/* page header band */
.pagehead { background: var(--ink); color: #fff; }
.pagehead .container { padding-block: clamp(2.4rem,5vw,3.6rem); }
.pagehead h1 { color: #fff; margin-top: .9rem; max-width: 20ch; }
.pagehead p { color: rgba(255,255,255,.88); margin-top: 1rem; max-width: 52ch; }
/* banner is a dark context — lift breadcrumb + eyebrow to readable light tones */
.pagehead .crumbs, .pagehead .crumbs a { color: rgba(255,255,255,.78); }
.pagehead .crumbs a:hover { color: #fff; }
.pagehead .crumbs [aria-current="page"] { color: #fff; }
.pagehead .crumbs .sep { color: rgba(255,255,255,.45); }
.pagehead .eyebrow { color: var(--gold); }

/* page header band — full-bleed photo variant */
.pagehead--photo { position: relative; overflow: hidden; background: var(--ink); }
.pagehead__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.pagehead--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,16,14,.72) 0%, rgba(20,16,14,.6) 55%, rgba(20,16,14,.82) 100%);
}
.pagehead--photo .container { position: relative; z-index: 2; }

/* ---------- office cards ---------- */
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 720px) { .offices { grid-template-columns: 1fr; } }
.office { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.office__media { aspect-ratio: 16/10; }
.office__media image-slot { width: 100%; height: 100%; }
.office__body { padding: 1.3rem 1.4rem 1.5rem; }
.office__body h3 { font-size: 1.25rem; }
.office__row { display: flex; gap: .6rem; align-items: flex-start; margin-top: .8rem; color: var(--ink-2); }
.office__row .ic { width: 18px; height: 18px; color: var(--gold-ink); flex: none; margin-top: 3px; }
.office__row a { color: var(--ink); text-decoration: none; font-weight: 600; }
.office__row a:hover { color: var(--gold-ink); text-decoration: underline; }
.band-navy .office { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); }
.band-navy .office__body h3 { color: #fff; }
.band-navy .office__row { color: rgba(255,255,255,.82); }
.band-navy .office__row a { color: #fff; }
.band-navy .office__row .ic { color: var(--gold); }

/* ---------- form ---------- */
.form-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem,3vw,2.2rem); box-shadow: var(--shadow-sm); }
.form-intro { margin-bottom: 1.4rem; }
.field { display: grid; gap: .4rem; margin-bottom: 1.2rem; }
.field > label, .legend-txt { font-weight: 600; color: var(--ink); font-size: .98rem; }
.req { color: var(--error); font-weight: 700; }
.opt { color: var(--ink-soft); font-weight: 500; font-size: .86rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; background: var(--ivory); border: 1.5px solid var(--line-2); border-radius: var(--radius);
  padding: .75rem .85rem; min-height: 48px; color: var(--ink-2); transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(29,78,216,.16); outline: none; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 540px) { .field-2 { grid-template-columns: 1fr; gap: 0; } }
.hint { font-size: .86rem; color: var(--ink-soft); }
.field[aria-invalid] input, .input-invalid { border-color: var(--error) !important; }
.err-msg { display: none; align-items: center; gap: .4rem; color: var(--error); font-size: .88rem; font-weight: 600; margin-top: .15rem; }
.err-msg .ic { width: 15px; height: 15px; flex: none; }
.has-error > .err-msg, .has-error .err-msg { display: flex; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field.has-error input:focus, .field.has-error select:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(180,35,24,.18); }

fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; }
fieldset legend { padding: 0; margin-bottom: .6rem; }
.radio-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .5rem; }
.radio-grid--3 { grid-template-columns: repeat(3,1fr); }
@media (max-width: 540px) { .radio-grid, .radio-grid--3 { grid-template-columns: 1fr; } }
.opt-card { display: flex; align-items: center; gap: .65rem; padding: .7rem .85rem; border: 1.5px solid var(--line-2); border-radius: var(--radius); cursor: pointer; min-height: 48px; background: var(--ivory); transition: border-color .15s, background .15s; }
.opt-card:hover { border-color: var(--ink-soft); }
.opt-card input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.opt-card:has(input:checked) { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.opt-card span { font-size: .96rem; font-weight: 500; }

.consent { display: flex; gap: .75rem; align-items: flex-start; background: var(--ivory-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1.2rem; }
.consent input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; margin-top: 2px; }
.consent label { font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.consent a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 2px; }
.consent.has-error { border-color: var(--error); background: var(--error-bg); }

.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.error-summary { display: none; background: var(--error-bg); border: 1.5px solid var(--error); border-left-width: 5px; border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.error-summary[data-show="true"] { display: block; }
.error-summary h2 { color: var(--error); font-family: var(--sans); font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.error-summary .ic { width: 20px; height: 20px; }
.error-summary ul { margin-top: .6rem; display: grid; gap: .3rem; }
.error-summary a { color: var(--error); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.form-success { display: none; background: #EEF6F0; border: 1.5px solid var(--green); border-left-width: 5px; border-radius: var(--radius-lg); padding: 1.6rem 1.6rem; }
.form-success[data-show="true"] { display: block; }
.form-success h2 { color: var(--green); display: flex; align-items: center; gap: .6rem; }
.form-success .ic { width: 26px; height: 26px; flex: none; }
.form-success p { margin-top: .6rem; color: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(3rem,6vw,4.5rem); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__mark { color: #fff; height: 42px; }
.footer-resp { margin-top: 1.1rem; font-size: .92rem; line-height: 1.6; }
.footer-resp strong { color: #fff; }
.footer-offices { margin-top: 1.3rem; display: grid; gap: 1rem; }
.footer-office { font-size: .9rem; line-height: 1.55; }
.footer-office .ofc-name { color: var(--gold); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .76rem; }
.footer-office a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer-office a:hover { color: #fff; text-decoration: underline; }
.footer-col h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .96rem; display: inline-flex; min-height: 28px; align-items: center; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-block: 1.8rem 2.4rem; display: grid; gap: 1rem; text-align: center; }
.footer-disclaimer { font-size: .82rem; line-height: 1.6; color: rgba(255,255,255,.62); max-width: 75ch; margin-inline: auto; }
.footer-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; justify-content: center; font-size: .84rem; color: rgba(255,255,255,.7); }
.footer-meta .adv { color: var(--gold); font-weight: 600; }

/* ---------- reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: .07s; }
.js .reveal[data-d="2"] { transition-delay: .14s; }
.js .reveal[data-d="3"] { transition-delay: .21s; }
.js .reveal[data-d="4"] { transition-delay: .28s; }
.js .reveal[data-d="5"] { transition-delay: .35s; }
.js .reveal[data-d="6"] { transition-delay: .42s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-visible { opacity: 1 !important; transform: none !important; transition: none !important; }
  .nav__menu[data-open="true"], .mnav__panel { animation: none !important; }
}

/* ---------- visually hidden ---------- */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- misc helpers ---------- */
.stack-sm > * + * { margin-top: .8rem; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.divider { height: 1px; background: var(--line); border: 0; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
@media (max-width: 760px) { .related-grid { grid-template-columns: 1fr; } }
.rel-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.2rem 1.3rem; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.rel-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.rel-card h3 { font-size: 1.12rem; margin-top: 0; }
.rel-card .rc-arrow { margin-top: .7rem; color: var(--gold-ink); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: .35rem; }
@media (prefers-reduced-motion: no-preference) {
  .rel-card .rc-arrow svg, .rel-card:hover .rc-arrow svg { transition: transform .25s var(--ease); }
  .rel-card:hover .rc-arrow svg { transform: translateX(3px); }
}

/* ================= resources / articles ================= */
.res-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
@media (max-width: 900px) { .res-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .res-grid { grid-template-columns: 1fr; } }

.res-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.5rem 1.4rem; text-decoration: none; color: inherit; height: 100%; transition: border-color .2s, box-shadow .2s, transform .2s; }
.res-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.res-tag { align-self: flex-start; font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); background: var(--ink-tint); border-radius: 999px; padding: .28rem .7rem; }
.res-card__title { font-family: var(--serif); font-size: 1.24rem; line-height: 1.25; margin-top: .9rem; color: var(--ink); }
.res-card__excerpt { color: var(--ink-soft); font-size: .96rem; margin-top: .6rem; }
.res-card__meta { margin-top: 1rem; font-size: .84rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.res-card__meta .dot, .article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }
.res-card__more { margin-top: auto; padding-top: 1.1rem; color: var(--gold-ink); font-weight: 600; font-size: .92rem; }
.res-card:hover .res-card__more { text-decoration: underline; }

/* single-article body */
.article-body { max-width: none; }
.article-body > * + * { margin-top: 1.15rem; }
.article-body h2 { font-family: var(--serif); font-size: 1.5rem; margin-top: 2.2rem; color: var(--ink); }
.article-body h3 { font-family: var(--serif); font-size: 1.2rem; margin-top: 1.8rem; color: var(--ink); }
.article-body ul, .article-body ol { padding-left: 1.3rem; }
.article-body li + li { margin-top: .5rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1rem; font-size: .9rem; color: var(--ink-soft); }
.pagehead .article-meta { color: rgba(255,255,255,.85); }
.pagehead .article-meta .dot { background: rgba(255,255,255,.45); }

/* ================= interaction & motion enhancements =================
   Every animated effect below is gated on (prefers-reduced-motion: no-preference)
   so reduced-motion users get the calm, static layout with no movement. */

/* sticky header gains a soft shadow once the page is scrolled */
.site-header { transition: box-shadow .3s var(--ease), background-color .3s var(--ease); }
.site-header.is-scrolled { background: rgba(250,248,244,.97); box-shadow: 0 10px 30px -14px rgba(26,18,16,.22); }

/* animated underline for primary nav links (current page stays underlined statically) */
.nav__link::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 6px; height: 2px; background: var(--gold-ink); transform: scaleX(0); transform-origin: left center; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* photo containers clip their image so a hover zoom stays inside the frame */
.tcard__photo, .office__media { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  .nav__link::after { transition: transform .28s var(--ease); }
  .nav__link:hover::after { transform: scaleX(1); }

  .tcard__photo img, .office__media img { transition: transform .55s var(--ease); }
  .tcard:hover .tcard__photo img, .office:hover .office__media img { transform: scale(1.045); }

  /* staggered hero entrance on load */
  .js .hero__content > * { animation: heroIn .7s var(--ease) both; }
  .js .hero__content > *:nth-child(1) { animation-delay: .04s; }
  .js .hero__content > *:nth-child(2) { animation-delay: .12s; }
  .js .hero__content > *:nth-child(3) { animation-delay: .20s; }
  .js .hero__content > *:nth-child(4) { animation-delay: .28s; }

  /* the small eyebrow rule draws itself in when its section scrolls into view */
  .reveal .eyebrow::before { transform: scaleX(0); transform-origin: left center; transition: transform .6s var(--ease) .12s; }
  .reveal.is-visible .eyebrow::before { transform: scaleX(1); }
}
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* office cards lift on hover (contact page) */
.office { transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease); }
.office:hover { box-shadow: var(--shadow); border-color: var(--line-2); }

@media (prefers-reduced-motion: no-preference) {
  .office:hover { transform: translateY(-3px); }

  /* mobile menu: items cascade in when the panel opens */
  .mnav__panel[data-open="true"] .mnav__list a,
  .mnav__panel[data-open="true"] .mnav__group-label,
  .mnav__panel[data-open="true"] .mnav__cta > * { animation: mnavIn .42s var(--ease) both; }
  .mnav__panel[data-open="true"] .mnav__list a:nth-child(1) { animation-delay: .06s; }
  .mnav__panel[data-open="true"] .mnav__list a:nth-child(2) { animation-delay: .10s; }
  .mnav__panel[data-open="true"] .mnav__list a:nth-child(3) { animation-delay: .14s; }
  .mnav__panel[data-open="true"] .mnav__list a:nth-child(4) { animation-delay: .18s; }
  .mnav__panel[data-open="true"] .mnav__list a:nth-child(5) { animation-delay: .22s; }
  .mnav__panel[data-open="true"] .mnav__list a:nth-child(6) { animation-delay: .26s; }
  .mnav__panel[data-open="true"] .mnav__list a:nth-child(7) { animation-delay: .30s; }
  .mnav__panel[data-open="true"] .mnav__cta > *:nth-child(2) { animation-delay: .34s; }
}
@keyframes mnavIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

/* ===================== print ===================== */
@media print {
  *, *::before, *::after { box-shadow: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; color: #1a1a1a; font-size: 11.5pt; }
  .skip-link, .nav__toggle, .mnav, .hero__cta, .scard__link, .tcard__link,
  .error-summary, .honeypot, .nav__menu { display: none !important; }
  .site-header { position: static; background: #fff; border-bottom: 1px solid #bbb; backdrop-filter: none; }
  .nav__primary, .nav__utility .btn { display: none !important; }
  a { color: #1a1a1a; text-decoration: underline; }
  .band-navy, .pagehead, .site-footer, .cards--alt .scard:nth-child(2n) { background: #fff !important; color: #1a1a1a !important; }
  .band-navy *, .pagehead *, .site-footer *, .cards--alt .scard:nth-child(2n) * { color: #1a1a1a !important; }
  .brand__mark { color: var(--brand-red) !important; }
  .scard, .office, .sidebar, .form-wrap, .tcard, .rel-card, .cred { border: 1px solid #cfcfcf !important; break-inside: avoid; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero__content > * { animation: none !important; }
  .section, .section--tight { padding-block: 1.1rem !important; }
  img { max-height: 320px; width: auto; }
  h1, h2, h3 { break-after: avoid; }
  .pagehead .eyebrow { color: var(--gold-ink) !important; }
}

/* =====================================================================
   AUDIT ENHANCEMENTS
   Real imagery · brand motif · accessibility view modes ·
   language + accessibility controls · demo page.
   ===================================================================== */

/* ---------- real imagery ---------- */
.media-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; }
.split__media .media-img { min-height: 340px; }
.office__media .media-img { min-height: 0; }
@media (prefers-reduced-motion: no-preference) {
  .split__media .media-img { transition: transform .6s var(--ease); }
  .split:hover .split__media .media-img { transform: scale(1.04); }
}

/* ---------- brand motif (where no photo exists) ---------- */
.motif { position: relative; overflow: hidden; border-radius: var(--radius-lg); display: grid; place-items: center; min-height: 300px; }
.motif--dark  { background: radial-gradient(130% 130% at 0% 0%, #3A1416 0%, var(--ink) 62%); color: #fff; }
.motif--light { background: linear-gradient(160deg, var(--ivory-2), #fff 70%); border: 1px solid var(--line); }
.motif__icon { width: 84px; height: 84px; z-index: 1; }
.motif--dark .motif__icon  { color: var(--gold); }
.motif--light .motif__icon { color: var(--gold-ink); }
.motif__wm { position: absolute; right: -36px; bottom: -48px; width: 250px; height: 250px; opacity: .09; color: currentColor; }
.motif--light .motif__wm { color: var(--ink); }
.motif__label { position: absolute; left: 1.2rem; bottom: 1.05rem; font-family: var(--serif); font-size: 1.05rem; z-index: 1; }
.motif--dark .motif__label  { color: #fff; }
.motif--light .motif__label { color: var(--ink); }
.motif__label small { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.motif--dark .motif__label small  { color: var(--gold); }
.motif--light .motif__label small { color: var(--gold-ink); }
/* illustrated skyline (place card where no photo exists) */
.office-place .place-skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 64%; color: var(--gold); }
.office-place .motif__label { z-index: 2; }

/* service page: centered article column, full-width image band in the middle,
   and a "how we help / talk to an attorney" band below. */
.svc-article { max-width: none; }   /* match the full-width image band */
/* reformatted practice-area article: readable measure, centered, friendly headings */
.svc-prose { max-width: none; margin-inline: auto; }
.svc-prose h2 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); color: var(--ink); }
.svc-prose h2:not(:first-child) { margin-top: 2em; }
.svc-article p, .svc-article li { color: var(--ink-2); line-height: 1.7; }
.svc-article p + p { margin-top: 1.15em; }
.svc-article > :first-child { margin-top: 0; }
.svc-banner { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); height: clamp(260px, 34vw, 440px); }
.svc-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.svc-help { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.25rem; align-items: start; max-width: 1000px; margin-inline: auto; }
@media (max-width: 760px) { .svc-help { grid-template-columns: 1fr; } }

/* =====================================================================
   ACCESSIBILITY VIEW MODES (user-toggleable, persisted)
   ===================================================================== */
/* larger text — scales every rem-based size */
html.pa-textlarge { font-size: 115%; }

/* always underline content links (not nav/buttons/card overlays) */
html.pa-underline a:not(.btn):not(.nav__link):not(.nav__disc):not(.brand):not(.callbtn):not(.scard__link):not(.tcard__link):not(.pa-lang button):not(.pa-fab) {
  text-decoration: underline !important; text-underline-offset: 2px;
}

/* reduce motion on demand (mirrors prefers-reduced-motion) */
html.pa-reduce-motion *, html.pa-reduce-motion *::before, html.pa-reduce-motion *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important;
  transition-duration: .001ms !important; scroll-behavior: auto !important;
}
html.pa-reduce-motion .reveal { opacity: 1 !important; transform: none !important; }

/* high-contrast theme */
html.pa-contrast {
  --ink: #000000; --ink-2: #000000; --ink-soft: #1a1a1a;
  --ivory: #ffffff; --ivory-2: #ffffff; --surface: #ffffff;
  --line: #000000; --line-2: #000000; --ink-tint: rgba(0,0,0,.08);
  --gold-ink: #000000; --gold: #ffd400; --gold-bright: #ffe14d;
  --green: #0a4a25; --focus: #0033cc;
}
html.pa-contrast body { background: #fff; color: #000; }
html.pa-contrast a:not(.btn):not(.brand):not(.scard__link):not(.tcard__link) { color: #0033cc; text-decoration: underline; text-underline-offset: 2px; }
html.pa-contrast .btn--primary, html.pa-contrast .btn--gold { background: #000; color: #fff; border-color: #000; }
html.pa-contrast .btn--outline { color: #000; border-color: #000; border-width: 2px; }
html.pa-contrast .scard, html.pa-contrast .tcard, html.pa-contrast .office, html.pa-contrast .sidebar,
html.pa-contrast .form-wrap, html.pa-contrast .rel-card, html.pa-contrast .cred, html.pa-contrast .cred__cell,
html.pa-contrast .opt-card, html.pa-contrast .motif, html.pa-contrast .pa-panel,
html.pa-contrast .field input, html.pa-contrast .field select, html.pa-contrast .field textarea { border: 2px solid #000 !important; }
html.pa-contrast .site-header { background: #fff; border-bottom: 2px solid #000; }
html.pa-contrast .nav__link, html.pa-contrast .callbtn, html.pa-contrast .brand { color: #000 !important; }
/* dark bands → pure black with high-contrast accents */
html.pa-contrast .band-navy, html.pa-contrast .pagehead, html.pa-contrast .site-footer,
html.pa-contrast .mnav__panel, html.pa-contrast .motif--dark,
html.pa-contrast .cards--alt .scard:nth-child(2n), html.pa-contrast .pa-fab { background: #000 !important; }
html.pa-contrast .band-navy *, html.pa-contrast .pagehead *, html.pa-contrast .site-footer *,
html.pa-contrast .mnav__panel *, html.pa-contrast .cards--alt .scard:nth-child(2n) * { color: #fff !important; }
html.pa-contrast .on-dark a, html.pa-contrast .band-navy a, html.pa-contrast .site-footer a,
html.pa-contrast .pagehead a, html.pa-contrast .mnav__panel a { color: #ffe14d !important; }
html.pa-contrast .hero__media::after { background: none; }
html.pa-contrast .eyebrow::before, html.pa-contrast .prose ul li::before { background: currentColor !important; }

/* =====================================================================
   FLOATING ACCESSIBILITY + LANGUAGE CONTROLS
   ===================================================================== */
.pa-fab {
  position: fixed; left: 18px; bottom: 18px; z-index: 160;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 2px solid #fff;
  box-shadow: var(--shadow-lg); cursor: pointer; display: grid; place-items: center;
  transition: background .18s var(--ease), transform .12s var(--ease);
}
.pa-fab:hover { background: #2E2723; }
.pa-fab:active { transform: translateY(1px); }
.pa-fab svg { width: 26px; height: 26px; }
@media (max-width: 600px) { .pa-fab { width: 48px; height: 48px; left: 12px; bottom: 12px; } }

.pa-panel {
  position: fixed; left: 18px; bottom: 84px; z-index: 161;
  width: 330px; max-width: calc(100vw - 36px);
  background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.15rem 1.2rem 1.3rem; display: none;
}
.pa-panel[data-open="true"] { display: block; }
@media (max-width: 600px) { .pa-panel { left: 12px; bottom: 70px; } }
.pa-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.pa-panel__head h2 { font-family: var(--sans); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.pa-panel__close { width: 34px; height: 34px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--ink-soft); border-radius: var(--radius); }
.pa-panel__close:hover { background: var(--ivory-2); color: var(--ink); }
.pa-panel__close svg { width: 20px; height: 20px; }
.pa-panel__reset { margin-top: .9rem; font: inherit; font-size: .85rem; font-weight: 600; color: var(--gold-ink); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; padding: .3rem 0; }

.pa-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.pa-row:last-of-type { border-bottom: 0; }
.pa-row__label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.pa-row__label small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .79rem; }

/* toggle switch */
.pa-switch { position: relative; flex: none; width: 46px; height: 26px; }
.pa-switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pa-switch .track { position: absolute; inset: 0; background: var(--line-2); border-radius: 999px; transition: background .18s var(--ease); }
.pa-switch .thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease); }
.pa-switch input:checked ~ .track { background: var(--green); }
.pa-switch input:checked ~ .thumb { transform: translateX(20px); }
.pa-switch input:focus-visible ~ .track { outline: 3px solid var(--focus); outline-offset: 2px; }

/* language segmented control */
.pa-lang { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: 999px; overflow: hidden; background: var(--surface); }
.pa-lang button { appearance: none; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 700; font-size: .8rem; letter-spacing: .03em; padding: .3rem .72rem; color: var(--ink-soft); min-height: 36px; }
.pa-lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pa-lang button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.nav__utility .pa-lang { margin-right: .1rem; }
@media (max-width: 980px) { .nav__utility .pa-lang { display: none; } }
.on-dark .pa-lang { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.on-dark .pa-lang button { color: rgba(255,255,255,.85); }
.on-dark .pa-lang button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.mnav__lang { margin-top: 1.4rem; display: flex; align-items: center; gap: .8rem; }
.mnav__lang .pa-lang { }

/* =====================================================================
   DEMO / BENEFITS PAGE
   ===================================================================== */
.demo-toolbar { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.3rem 1.4rem 1.4rem; }
.demo-toolbar__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 2rem; }
@media (max-width: 680px) { .demo-toolbar__grid { grid-template-columns: 1fr; } }
.demo-chip { display: inline-flex; align-items: center; gap: .5rem; background: var(--ivory-2); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; font-size: .82rem; font-weight: 600; color: var(--ink); }
.demo-chip .ic { width: 16px; height: 16px; color: var(--green); }

.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; }
.pillar__ic { width: 30px; height: 30px; color: var(--gold-ink); }
.pillar h3 { margin-top: .9rem; }
.pillar p { margin-top: .5rem; color: var(--ink-soft); font-size: .98rem; }
.pillar ul { margin-top: .9rem; display: grid; gap: .55rem; }
.pillar ul li { display: flex; gap: .55rem; align-items: flex-start; font-size: .94rem; color: var(--ink-2); }
.pillar ul .ic { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 3px; }

.roi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 760px) { .roi { grid-template-columns: 1fr; } }
.roi__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.roi__k { font-family: var(--serif); font-size: 2rem; color: var(--ink); font-weight: 600; line-height: 1.05; }
.roi__t { font-weight: 700; color: var(--ink); margin-top: .5rem; }
.roi__d { color: var(--ink-soft); font-size: .92rem; margin-top: .3rem; }
.band-navy .roi__card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); }
.band-navy .roi__k { color: var(--gold); }
.band-navy .roi__t { color: #fff; }
.band-navy .roi__d { color: rgba(255,255,255,.78); }

.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.compare caption { text-align: left; }
.compare th, .compare td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.compare thead th { background: var(--ivory-2); font-family: var(--sans); font-weight: 700; color: var(--ink); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td.feat { font-weight: 600; color: var(--ink); }
.compare td.old { color: var(--ink-soft); }
.compare td.new { color: var(--ink-2); }
.compare .row-ic { display: inline-flex; width: 18px; height: 18px; margin-right: .45rem; vertical-align: -3px; }
.compare .x { color: var(--error); }
.compare .ok { color: var(--green); }
@media (max-width: 680px) {
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tr { border-bottom: 1px solid var(--line-2); padding: .4rem 0; }
  .compare td { border: 0; padding: .3rem 1rem; }
  .compare td.feat { padding-top: .8rem; }
  .compare td.old::before { content: "Before (Wix): "; font-weight: 700; color: var(--error); }
  .compare td.new::before { content: "Now: "; font-weight: 700; color: var(--green); }
}

/* ===================== dark mode ===================== */
html.pa-dark {
  --ink: #F4EFE8; --ink-2: #E8E1D7; --ink-soft: #ABA093;
  --ivory: #14110E; --ivory-2: #1E1A16; --surface: #221C18;
  --line: #342C25; --line-2: #473D33;
  --gold-ink: #FF7063; --green: #FF8A7F;
  --ink-tint: rgba(255,255,255,.07);
  color-scheme: dark;
}
html.pa-dark body { background: var(--ivory); color: var(--ink-2); }
html.pa-dark .site-header { background: rgba(20,17,14,.86); }
html.pa-dark .site-header.is-scrolled { background: rgba(20,17,14,.96); box-shadow: 0 10px 30px -14px rgba(0,0,0,.55); }
html.pa-dark .svc-bg { background:
    linear-gradient(rgba(20,17,14,.84), rgba(20,17,14,.92)),
    url("services-bg.jpg") center / cover no-repeat; }
html.pa-dark .pa-fab { background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); }
html.pa-dark .pa-fab:hover { background: var(--ivory-2); }
html.pa-dark .opt-card:has(input:checked) { background: var(--surface); }
/* surfaces that are intentionally dark (they use --ink as a *background*, which would
   otherwise flip to light) must stay dark in dark mode */
html.pa-dark .pagehead,
html.pa-dark .band-navy,
html.pa-dark .band-navy .cred__cell,
html.pa-dark .site-footer,
html.pa-dark .hero { background: #100D0B; }
html.pa-dark .svc-help .sidebar[style*="var(--ink)"] { background: #100D0B !important; border-color: #2a241f !important; }
html.pa-dark .tcard[style*="var(--ink)"] { background: #100D0B !important; }
/* notice callout: cream box + fixed dark text don't work on a dark page — tint it dark */
html.pa-dark .notice { background: rgba(227,37,37,.10); border-color: rgba(255,110,99,.30); color: var(--ink-2); }

/* dark-mode toggle button (nav) */
.nav__theme { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; background: none; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); cursor: pointer; }
.nav__theme:hover { border-color: var(--ink); }
.nav__theme .ic, .mnav__theme .ic { width: 18px; height: 18px; }
[data-theme-toggle] .sun { display: none; }
html.pa-dark [data-theme-toggle] .moon { display: none; }
html.pa-dark [data-theme-toggle] .sun { display: inline-block; }
@media (max-width: 980px) { .nav__theme { display: none; } }
.mnav__toggles { display: flex; gap: .5rem; margin-top: .6rem; }
.mnav__toggles button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem; border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; border-radius: var(--radius); font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; }
