/* ==========================================================================
   Verdicta LLP — site styles
   Brand: navy (#093D70, sampled from logo), deep navy (#06103C), logo grey.
   ========================================================================== */

:root {
  /* Brand primitives */
  --ink: #093d70;          /* brand blue — all dark surfaces (matches the "Send message" button) */
  --navy-deep: #093d70;    /* same brand blue (kept as an alias) */
  --navy-dark: #072f57;    /* slightly darker blue — hover states only */
  --navy: #093d70;         /* brand navy (logo) */
  --navy-bright: #145a9e;  /* hover / focus on light */
  --steel: #a9c3e0;        /* accent on dark surfaces */
  --grey: #c3c3c3;         /* logo "LLP" grey */
  --paper: #f3f4f7;
  --white: #ffffff;

  /* Semantic */
  --bg-dark: var(--ink);
  --fg-on-dark: #ffffff;
  --fg-on-dark-muted: rgba(255, 255, 255, 0.8);
  --fg-on-dark-subtle: rgba(255, 255, 255, 0.66);
  --line-on-dark: rgba(255, 255, 255, 0.2);
  --bg-light: var(--paper);
  --fg-on-light: #0b1328;
  --fg-on-light-muted: #4a5468;
  --line-on-light: rgba(6, 16, 60, 0.13);
  --focus: #7fb2ff;

  /* Type */
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fs-display: clamp(2.6rem, 6.3vw, 6.75rem);
  --fs-h1: clamp(2.5rem, 5.6vw, 5.25rem);
  --fs-h2: clamp(2.1rem, 4.2vw, 3.75rem);
  --fs-h3: clamp(1.3rem, 1.8vw, 1.6rem);
  --fs-lead: clamp(1.125rem, 1.5vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.75rem;

  /* Space (8pt rhythm) */
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(88px, 11vw, 168px);
  --container: 1320px;
  --radius: 2px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
  --t-slow: 900ms;

  /* Layers */
  --z-header: 50;
  --z-menu: 60;
  --z-skip: 100;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--fg-on-dark);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--navy); color: #fff; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: var(--z-skip);
  background: #fff; color: var(--ink); padding: 12px 18px;
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typographic helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-on-dark-subtle);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--plain::before { display: none; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--fg-on-dark-muted); font-weight: 400; }
.muted { color: var(--fg-on-dark-muted); }

/* ---------- Buttons ---------- */
.btn {
  --btn-fg: #fff; --btn-border: rgba(255,255,255,.55); --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 14px 26px;
  font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-border); border-radius: var(--radius);
  cursor: pointer; touch-action: manipulation;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.btn svg { width: 14px; height: 14px; flex: none; transition: transform var(--t-med) var(--ease-out); }
.btn:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-border: #fff; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--solid { --btn-bg: #fff; --btn-fg: var(--ink); --btn-border: #fff; }
.btn--solid:hover { --btn-bg: var(--steel); --btn-border: var(--steel); }
.btn--navy { --btn-bg: var(--navy); --btn-fg: #fff; --btn-border: var(--navy); }
.btn--navy:hover { --btn-bg: var(--navy-dark); --btn-border: var(--navy-dark); --btn-fg: #fff; }
.btn--dark-outline { --btn-fg: var(--fg-on-light); --btn-border: rgba(6,16,60,.35); }
.btn--dark-outline:hover { --btn-bg: var(--navy); --btn-fg: #fff; --btn-border: var(--navy); }
.btn[disabled] { opacity: .5; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: inherit; padding-block: 8px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--t-med) var(--ease-out);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow svg { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  transition: background-color var(--t-med) ease, backdrop-filter var(--t-med) ease, border-color var(--t-med) ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid,
.site-header--solid {
  background: rgba(9, 61, 112, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line-on-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; flex: none; min-height: 44px; }
.brand img { filter: brightness(0) invert(1); }
.brand__mark { height: 34px; width: auto; }
.brand__word { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 44px); list-style: none; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-size: 0.975rem; font-weight: 500; text-decoration: none; color: rgba(255,255,255,.92);
  background: none; border: 0; padding: 0; cursor: pointer;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease-out);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__item.is-active > .nav__link::after { transform: scaleX(1); }
.nav__link svg { width: 12px; height: 12px; transition: transform var(--t-fast) ease; }
.nav__item { position: relative; }
.nav__item.is-open .nav__link svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 560px;
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  transition: opacity var(--t-fast) ease, transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
  background: rgba(9, 61, 112, 0.97); border: 1px solid var(--line-on-dark);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; } /* hover bridge */
.nav__item.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.dropdown a {
  display: flex; align-items: center; gap: 14px; padding: 10px 12px; min-height: 48px;
  text-decoration: none; font-size: 0.95rem; color: rgba(255,255,255,.9);
  transition: background-color var(--t-fast) ease;
}
.dropdown__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; background: rgba(255,255,255,.06); color: var(--steel); border-radius: var(--radius); transition: background-color var(--t-fast) ease; }
.dropdown__icon svg { width: 18px; height: 18px; }
.dropdown a:hover .dropdown__icon { background: rgba(169,195,224,.16); }
.dropdown a.dropdown__all {
  grid-column: 1 / -1; justify-content: space-between; margin-top: 6px; padding: 14px 12px;
  border-top: 1px solid var(--line-on-dark);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel);
}
.dropdown__all svg { width: 14px; height: 14px; transition: transform var(--t-med) var(--ease-out); }
.dropdown__all:hover svg { transform: translateX(4px); }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: rgba(255,255,255,.07); }

.header-cta { display: flex; align-items: center; gap: 20px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: .08em; text-decoration: none; color: #fff;
  padding: 10px 16px; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius);
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.header-phone:hover { background: #fff; color: var(--ink); }
.header-phone svg { width: 15px; height: 15px; }

.menu-toggle {
  display: none; width: 48px; height: 48px; margin-right: -12px;
  background: none; border: 0; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 26px; height: 26px; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--ink); display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--t-med) ease, transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: 88px; flex: none; }
.mobile-menu nav { padding-block: 16px 40px; }
.mobile-menu__list { list-style: none; }
.mobile-menu__list > li { border-bottom: 1px solid var(--line-on-dark); }
.mobile-menu__list > li > a {
  display: block; padding: 18px 0; font-size: 1.75rem; font-weight: 300; letter-spacing: -0.02em; text-decoration: none;
}
.mobile-menu__sub { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; padding: 0 0 18px; }
.mobile-menu__sub a { display: block; padding: 10px 0; font-size: 0.95rem; color: var(--fg-on-dark-muted); text-decoration: none; }
.mobile-menu__foot { margin-top: auto; padding-block: 24px 40px; display: grid; gap: 12px; }
.mobile-menu__foot .btn { width: 100%; }
body.menu-open { overflow: hidden; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  background: var(--navy-deep);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%;
  transform: scale(1.06); animation: hero-settle 2.8s var(--ease-out) forwards;
}
.hero::before { /* legibility gradients: top for nav, bottom for copy */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(9, 61, 112, .78) 0%, rgba(9, 61, 112, .15) 22%, rgba(9, 61, 112, 0) 42%),
    linear-gradient(0deg, rgba(9, 61, 112, .96) 0%, rgba(9, 61, 112, .72) 30%, rgba(9, 61, 112, .1) 62%),
    linear-gradient(90deg, rgba(9, 61, 112, .55) 0%, rgba(9, 61, 112, 0) 55%);
}
@keyframes hero-settle { to { transform: scale(1); } }

.hero__inner {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); align-items: end;
  gap: 48px clamp(40px, 8vw, 140px); padding-block: 160px clamp(56px, 8vh, 96px);
}
.hero__title { font-size: var(--fs-display); line-height: 0.98; letter-spacing: -0.035em; font-weight: 300; }
.hero__title em { font-style: normal; color: var(--steel); }
.hero__kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,.72); line-height: 1.4; }
.hero__kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.js .hero__kicker { opacity: 0; animation: fade-up 1s var(--ease-out) forwards; animation-delay: 150ms; }
.hero__aside { display: grid; gap: 32px; max-width: 460px; justify-self: end; padding-bottom: 10px; }
.hero__aside p { color: rgba(255,255,255,.84); font-size: 1.0625rem; line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__meta {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding-top: 28px; border-top: 1px solid var(--line-on-dark);
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-on-dark-muted);
}
.hero__meta a { text-decoration: none; }
.hero__meta a:hover { color: #fff; }
.rating { display: inline-flex; align-items: center; gap: 10px; }
.stars { display: inline-flex; gap: 2px; color: #f5c451; }
.stars svg { width: 13px; height: 13px; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(170px, 22vw, 260px) clamp(64px, 8vw, 110px);
  background: var(--ink);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; opacity: .38; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: grayscale(.2); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(9, 61, 112, .7) 0%, rgba(9, 61, 112, .55) 45%, var(--ink) 100%),
              radial-gradient(80% 60% at 80% 0%, rgba(9,61,112,.45), transparent 70%);
}
.page-hero__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px clamp(40px, 7vw, 120px); align-items: end; }
.page-hero h1 { font-size: var(--fs-h1); margin-top: 22px; }
.page-hero .lead { max-width: 520px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-on-dark-subtle); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section--light { background: var(--bg-light); color: var(--fg-on-light); }
.section--white { background: #fff; color: var(--fg-on-light); }
.section--navy { background: linear-gradient(180deg, var(--navy-deep) 0%, var(--ink) 100%); }
.section--light .eyebrow, .section--white .eyebrow { color: var(--fg-on-light-muted); }
.section--light .lead, .section--white .lead, .section--light .muted, .section--white .muted { color: var(--fg-on-light-muted); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(40px, 7vw, 120px); align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head h2 { font-size: var(--fs-h2); margin-top: 22px; }
.section-head__aside { display: grid; gap: 24px; justify-items: start; max-width: 480px; justify-self: end; }
.section--white .section-head__aside .lead a, .section--light .section-head__aside .lead a { color: var(--navy); text-underline-offset: 3px; }

/* Statement + facts */
.practice-strip { background: var(--ink); border-bottom: 1px solid var(--line-on-dark); }
.practice-strip ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.practice-strip li { border-left: 1px solid var(--line-on-dark); }
.practice-strip li:nth-child(4n+1) { border-left: 0; }
.practice-strip li:nth-child(n+5) { border-top: 1px solid var(--line-on-dark); }
.practice-strip a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 0 20px; font-size: 0.95rem; color: var(--fg-on-dark-muted); text-decoration: none; transition: color var(--t-fast) ease, background-color var(--t-fast) ease; }
.practice-strip li:nth-child(4n+1) a { padding-left: 0; }
.practice-strip a svg { width: 14px; height: 14px; flex: none; opacity: 0; transform: translateX(-4px); transition: opacity var(--t-fast) ease, transform var(--t-med) var(--ease-out); }
.practice-strip a:hover { color: #fff; }
.practice-strip a:hover svg { opacity: 1; transform: none; }
@media (max-width: 700px) {
  .practice-strip ul { grid-template-columns: 1fr 1fr; }
  .practice-strip li { border-left: 0; border-top: 1px solid var(--line-on-dark); }
  .practice-strip li:nth-child(-n+2) { border-top: 0; }
  .practice-strip li:nth-child(even) { border-left: 1px solid var(--line-on-dark); }
  .practice-strip li:nth-child(odd) a { padding-left: 0; }
  .practice-strip a { font-size: 0.875rem; padding: 0 14px; min-height: 56px; }
}
.statement { font-size: clamp(2.3rem, 4.8vw, 4.5rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 300; max-width: 16ch; }
.statement span { display: block; color: var(--steel); }
.intro-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px clamp(40px, 7vw, 120px); align-items: center; }
.intro-aside { display: grid; gap: 28px; justify-items: start; }
.serve-list { list-style: none; width: 100%; border-top: 1px solid var(--line-on-dark); }
.serve-list li { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line-on-dark); font-size: 1.125rem; }
.serve-list span { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .14em; color: var(--steel); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line-on-dark); }
.fact { padding: 28px 28px 0 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line-on-dark); }
.fact__value { font-size: clamp(2.2rem, 3.6vw, 3.25rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.fact__value [data-count] { font-variant-numeric: tabular-nums; } /* digits keep equal width while counting */
.fact__value small { font-size: .45em; letter-spacing: 0; color: var(--fg-on-dark-subtle); margin-left: 4px; }
.fact__label { margin-top: 14px; font-size: var(--fs-small); color: var(--fg-on-dark-muted); max-width: 26ch; }

/* Practice grid */
.practice-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-on-light); border-left: 1px solid var(--line-on-light); list-style: none; }
.practice-card {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 32px 30px 28px;
  border-right: 1px solid var(--line-on-light); border-bottom: 1px solid var(--line-on-light);
  text-decoration: none; color: var(--fg-on-light); background: transparent; overflow: hidden; isolation: isolate;
  transition: color var(--t-med) ease;
}
.practice-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy-deep);
  transform: translateY(101%); transition: transform 520ms var(--ease-out);
}
.practice-card:hover, .practice-card:focus-visible { color: #fff; }
.practice-card:hover::before, .practice-card:focus-visible::before { transform: none; }
.practice-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.practice-card__icon {
  display: grid; place-items: center; width: 64px; height: 64px;
  background: rgba(9, 61, 112, 0.08); color: var(--navy); border-radius: var(--radius);
  transition: background-color var(--t-med) ease, color var(--t-med) ease;
}
.practice-card__icon svg { width: 32px; height: 32px; }
.practice-card:hover .practice-card__icon, .practice-card:focus-visible .practice-card__icon { background: rgba(255,255,255,.1); color: var(--steel); }
.practice-card__num { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .16em; opacity: .55; }
.practice-card h3 { margin-top: 28px; font-size: var(--fs-h3); font-weight: 400; letter-spacing: -0.015em; }
.practice-card p { margin-top: 10px; font-size: var(--fs-small); line-height: 1.55; color: var(--fg-on-light-muted); transition: color var(--t-med) ease; }
.practice-card:hover p, .practice-card:focus-visible p { color: rgba(255,255,255,.75); }
.practice-card__more {
  display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 24px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--navy);
  transition: color var(--t-med) ease;
}
.practice-card__more svg { width: 14px; height: 14px; transition: transform var(--t-med) var(--ease-out); }
.practice-card:hover .practice-card__more, .practice-card:focus-visible .practice-card__more { color: var(--steel); }
.practice-card:hover .practice-card__more svg { transform: translateX(4px); }
.practice-grid > li { display: flex; }
.practice-grid > li > .practice-card { flex: 1; }

/* Results */
.results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-on-dark); border: 1px solid var(--line-on-dark); list-style: none; }
.result { background: var(--ink); padding: clamp(28px, 3.4vw, 48px); display: grid; gap: 16px; align-content: start; }
.section--navy .result { background: var(--navy); }
.result__tag { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.result h3 { font-size: clamp(1.3rem, 1.9vw, 1.7rem); font-weight: 400; line-height: 1.25; letter-spacing: -0.015em; }
.result p { color: var(--fg-on-dark-muted); font-size: var(--fs-small); }
.disclaimer { margin-top: 24px; font-size: 0.8125rem; color: var(--fg-on-dark-subtle); }
.section--light .disclaimer, .section--white .disclaimer { color: var(--fg-on-light-muted); }

/* Partners logo wall (About) */
.partners { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.partners > li { flex: 0 1 calc((100% - 36px) / 4); min-width: 200px; }
.partner {
  display: flex; align-items: center; justify-content: center; height: 150px; padding: 24px;
  background: var(--paper); border: 1px solid transparent; text-decoration: none;
  transition: background-color var(--t-med) ease, border-color var(--t-med) ease;
}
.partner__logo {
  display: block; max-width: 100%; background-color: var(--navy); opacity: .72;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
  transition: opacity var(--t-med) ease, transform var(--t-med) var(--ease-out), background-color var(--t-med) ease;
}
.partner:hover, .partner:focus-visible { background: #fff; border-color: var(--line-on-light); }
.partner:hover .partner__logo, .partner:focus-visible .partner__logo { opacity: 1; transform: scale(1.04); }
@media (max-width: 900px) { .partners > li { flex-basis: calc((100% - 12px) / 2); min-width: 0; } }
@media (max-width: 420px) { .partner { height: 120px; } }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); list-style: none; }
.team-card { position: relative; display: block; text-decoration: none; color: #fff; }
.team-card__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #000; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: transform 1.1s var(--ease-out), filter var(--t-med) ease; filter: grayscale(1) contrast(1.05); }
.team-card__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(9, 61, 112, .85) 100%); }
.team-card:hover .team-card__photo img { transform: scale(1.035); }
.team-card__body { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-top: 22px; }
.team-card h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); font-weight: 400; }
.team-card__role { margin-top: 8px; font-size: var(--fs-small); color: var(--fg-on-dark-muted); }
.team-card__arrow { flex: none; width: 44px; height: 44px; border: 1px solid var(--line-on-dark); border-radius: 50%; display: grid; place-items: center; transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
.team-card__arrow svg { width: 16px; height: 16px; }
.team-card:hover .team-card__arrow { background: #fff; color: var(--ink); }
.team-card__areas { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.team-card__areas li { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .1em; white-space: nowrap; text-transform: uppercase; padding: 5px 9px; border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.88); }
.team-card__areas li.more { border-style: dashed; color: var(--steel); border-color: rgba(169,195,224,.5); }
.team-card:hover .team-card__areas li.more { background: rgba(169,195,224,.12); }
.tag { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border: 1px solid rgba(255,255,255,.35); color: rgba(255,255,255,.9); background: rgba(9, 61, 112, .35); }
.section--light .tag, .section--white .tag { border-color: var(--line-on-light); color: var(--fg-on-light-muted); background: transparent; }

/* Reviews */
.reviews-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.google-badge { display: inline-flex; align-items: center; gap: 16px; padding: 14px 20px; background: #fff; border: 1px solid var(--line-on-light); text-decoration: none; color: var(--fg-on-light); min-height: 44px; }
.google-badge strong { font-size: 1.75rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.google-badge small { display: block; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-on-light-muted); margin-top: 4px; }
.google-badge:hover { border-color: var(--navy); }
.google-badge .g { width: 26px; height: 26px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); list-style: none; }
.reviews > li { display: flex; }
.reviews .review { flex: 1; }
.review { display: flex; flex-direction: column; gap: 24px; padding: clamp(28px, 3vw, 40px); background: #fff; border: 1px solid var(--line-on-light); }
.section--white .review { background: var(--paper); border-color: transparent; }
.review blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.65; color: var(--fg-on-light); }
.review figcaption { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line-on-light); }
.review figcaption strong { font-weight: 600; }
.review figcaption span { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-on-light-muted); }
.review .quote-mark { width: 30px; height: 30px; color: var(--navy); }

/* CTA band */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(96px, 12vw, 180px); }
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9, 61, 112, .95) 0%, rgba(9, 61, 112, .8) 50%, rgba(9, 61, 112, .55) 100%); }
.cta-band__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px clamp(40px, 7vw, 120px); align-items: end; }
.cta-band h2 { font-size: var(--fs-h2); }
.cta-band__aside { display: grid; gap: 28px; justify-items: start; }
.cta-band__phone { font-size: clamp(1.9rem, 3.2vw, 2.75rem); font-weight: 300; letter-spacing: -0.02em; text-decoration: none; line-height: 1; }
.cta-band__phone:hover { color: var(--steel); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px clamp(40px, 7vw, 120px); }
.contact-grid h2 { font-size: var(--fs-h2); margin-top: 22px; }
.contact-list { list-style: none; display: grid; gap: 0; margin-top: 44px; border-top: 1px solid var(--line-on-light); }
.contact-list li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line-on-light); }
.contact-list svg { width: 20px; height: 20px; color: var(--navy); margin-top: 3px; }
.contact-list .label { display: block; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-on-light-muted); margin-bottom: 4px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--navy-bright); text-decoration: underline; text-underline-offset: 3px; }
.urgent { margin-top: 28px; padding: 20px 22px; border-left: 2px solid var(--navy); background: #fff; font-size: var(--fs-small); color: var(--fg-on-light-muted); }
.urgent strong { color: var(--fg-on-light); }
.urgent a { color: var(--navy); font-weight: 600; white-space: nowrap; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; padding: clamp(28px, 4vw, 52px); background: #fff; border: 1px solid var(--line-on-light); }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--fg-on-light); }
.field label .req { color: #b42318; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; font: inherit; font-size: 1rem; color: var(--fg-on-light);
  background: var(--paper); border: 1px solid transparent; border-bottom-color: rgba(6,16,60,.3); border-radius: var(--radius);
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%230b1328' stroke-width='1.6' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--navy); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20,90,158,.18); }
.field[data-invalid] input, .field[data-invalid] textarea, .field[data-invalid] select { border-color: #b42318; background: #fff; }
.field__error { font-size: 0.8125rem; color: #b42318; display: none; }
.field[data-invalid] .field__error { display: block; }
.field__hint { font-size: 0.8125rem; color: var(--fg-on-light-muted); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.form__note { font-size: 0.8125rem; color: var(--fg-on-light-muted); max-width: 42ch; }
.form__status { grid-column: 1 / -1; padding: 16px 18px; font-size: var(--fs-small); display: none; }
.form__status.is-success { display: block; background: #ecf7f0; color: #0b5c2e; border-left: 2px solid #0b7a3b; }
.form__status.is-error { display: block; background: #fdf0ef; color: #8f1d14; border-left: 2px solid #b42318; }
.form__status a { color: inherit; font-weight: 600; }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* File upload (ticket submission) */
.field__label { font-size: 0.875rem; font-weight: 600; color: var(--fg-on-light); }
.field__label .req { color: #b42318; margin-left: 2px; }
.dropzone { position: relative; display: grid; justify-items: center; gap: 6px; padding: 26px 20px; text-align: center; cursor: pointer;
  background: var(--paper); border: 1.5px dashed rgba(6,16,60,.3); border-radius: var(--radius); transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease; }
.dropzone .dropzone__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone__actions { display: none; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 4px 0; position: relative; z-index: 1; }
.field .dropzone__btn { color: var(--btn-fg); font-size: 0.75rem; font-weight: 500; letter-spacing: .12em; white-space: nowrap; min-height: 48px; padding: 12px 18px; cursor: pointer; }
.dropzone__btn svg { width: 16px; height: 16px; }
.dropzone__clear { display: none; position: relative; z-index: 1; margin-top: 4px; min-height: 36px; padding: 6px 12px; background: none; border: 0; font-size: 0.8125rem; color: var(--fg-on-light-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dropzone.has-files .dropzone__clear { display: inline-block; }
/* Phones & tablets: explicit camera / library buttons instead of a tap-anywhere area */
@media (hover: none) and (pointer: coarse) {
  .dropzone { cursor: default; }
  .dropzone .dropzone__input { pointer-events: none; }
  .dropzone__text { display: none; }
  .dropzone__actions { display: flex; }
  .dropzone__actions .btn { flex: 1 1 200px; }
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--navy); background: #fff; }
.dropzone:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.dropzone__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(9,61,112,.1); color: var(--navy); }
.dropzone__icon svg { width: 20px; height: 20px; }
.dropzone__text { font-size: 0.95rem; }
.dropzone__text strong { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.dropzone__hint { font-size: 0.8125rem; color: var(--fg-on-light-muted); }
.dropzone__files { list-style: none; display: grid; gap: 4px; margin-top: 6px; }
.dropzone__files li { font-size: 0.8125rem; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.dropzone__files li::before { content: "✓ "; }
.dropzone.has-files { border-style: solid; border-color: var(--navy); background: #fff; }
.dropzone.is-busy { opacity: .6; pointer-events: none; }
.dropzone.is-busy .dropzone__hint::after { content: " — preparing photo…"; }
.field[data-invalid] .dropzone { border-color: #b42318; }
.field .check { font-size: 0.9rem; }
.field .check .req { color: #b42318; margin-left: 2px; }
.pay-steps.pay-steps--stack { grid-template-columns: 1fr; margin-top: 32px; }

/* ---------- Long-form content (practice, bio, blog) ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px clamp(48px, 7vw, 120px); align-items: start; }
.prose { max-width: 70ch; color: var(--fg-on-light); }
.prose > * + * { margin-top: 1.1em; }
.prose .prose-intro { font-size: var(--fs-lead); line-height: 1.6; color: var(--fg-on-light); padding-bottom: 1.4em; margin-bottom: 1.6em; border-bottom: 1px solid var(--line-on-light); }
.prose .prose-intro strong { font-weight: 600; }
.prose h2 { font-size: clamp(1.75rem, 2.8vw, 2.4rem); margin-top: 2em; letter-spacing: -0.02em; }
.prose h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 500; margin-top: 1.8em; letter-spacing: -0.01em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: #2b3447; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--navy); }
.prose strong { color: var(--fg-on-light); font-weight: 600; }
.prose a { color: var(--navy); text-underline-offset: 3px; }
.prose a:hover { color: var(--navy-bright); }
.prose .btn, .prose .btn:hover { color: var(--btn-fg); text-decoration: none; }
.prose .callout { padding: 22px 24px; background: var(--paper); border-left: 2px solid var(--navy); }
.section--light .prose .callout { background: #fff; }

.penalty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 1.2em; }
.penalty { padding: 20px; background: var(--paper); border-top: 2px solid var(--navy); }
.penalty h4 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; line-height: 1.4; }
.penalty ul { padding-left: 1.1em; }
.penalty li { font-size: 0.9375rem; line-height: 1.55; }
.penalty li + li { margin-top: .35em; }

/* Demerit points (traffic page + FAQ) */
.speed-ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 1em; }
.speed-ladder > div { display: grid; gap: 2px; padding: 14px 16px; background: var(--paper); border-top: 2px solid var(--navy); }
.speed-ladder > div:nth-child(2) { border-top-color: #3d6c9c; }
.speed-ladder > div:nth-child(3) { border-top-color: #c27a1a; }
.speed-ladder > div:nth-child(4) { border-top-color: #b42318; }
.speed-ladder span { font-size: 0.8125rem; color: var(--fg-on-light-muted); line-height: 1.35; }
.speed-ladder strong { font-size: 2rem; font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; color: var(--fg-on-light); }
.speed-ladder small { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-on-light-muted); }
.section--light .speed-ladder > div { background: #fff; }
.demerit-table { width: 100%; border-collapse: collapse; margin-top: 1em; font-size: 0.95rem; }
.demerit-table thead th { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-on-light-muted); text-align: left; padding: 0 0 10px; border-bottom: 2px solid var(--navy); }
.demerit-table thead th:last-child, .demerit-table td { text-align: right; }
.demerit-table tbody th { font-weight: 400; text-align: left; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line-on-light); color: #2b3447; }
.demerit-table td { padding: 10px 0; border-bottom: 1px solid var(--line-on-light); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy); width: 90px; }
.demerit-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; margin-top: 1.2em; align-items: start; }
.demerit-group h4 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); padding-bottom: 8px; border-bottom: 2px solid var(--navy); }
.demerit-group .demerit-table { margin-top: 0; font-size: 0.9rem; }
.demerit-group .demerit-table tbody th { padding: 8px 12px 8px 0; line-height: 1.4; }
.demerit-group .demerit-table td { padding: 8px 0; width: 40px; }
#demerit-points { scroll-margin-top: 110px; }
@media (max-width: 700px) { .demerit-groups { grid-template-columns: 1fr; } }
.prose .table-note { font-size: 0.8125rem; color: var(--fg-on-light-muted); margin-top: .8em; }
@media (max-width: 600px) { .speed-ladder { grid-template-columns: 1fr 1fr; } }

.aside-stack { display: grid; gap: 20px; position: sticky; top: 112px; }
.aside-card { padding: 28px; background: var(--paper); border: 1px solid var(--line-on-light); color: var(--fg-on-light); }
.section--light .aside-card { background: #fff; }
.aside-card--dark { background: var(--navy-deep); color: #fff; border-color: transparent; }
.aside-card--dark .muted { color: var(--fg-on-dark-muted); }
.aside-card h3 { font-size: 1.35rem; font-weight: 400; margin-bottom: 12px; }
.aside-card p { font-size: var(--fs-small); }
.aside-card .btn { width: 100%; margin-top: 20px; }
.aside-card__phone { display: block; margin-top: 16px; font-size: 1.6rem; font-weight: 300; letter-spacing: -0.02em; text-decoration: none; }
.aside-card__phone:hover { color: var(--steel); }
.mini-lawyer { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 14px 0; text-decoration: none; border-top: 1px solid var(--line-on-light); }
.mini-lawyer:first-of-type { border-top: 0; }
.mini-lawyer img { width: 64px; height: 64px; object-fit: cover; object-position: 50% 12%; filter: grayscale(1); border-radius: 50%; }
.mini-lawyer strong { display: block; font-weight: 600; }
.mini-lawyer span { font-size: 0.8125rem; color: var(--fg-on-light-muted); }
.mini-lawyer:hover strong { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

.checklist { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0; border-top: 1px solid var(--line-on-light); }
.checklist li { display: flex; gap: 14px; align-items: center; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line-on-light); font-weight: 500; line-height: 1.5; }
.checklist svg { width: 18px; height: 18px; color: var(--navy); flex: none; }
.prose .checklist li + li { margin-top: 0; } /* grid items — undo the prose list spacing */

.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split-card { padding: 28px; background: var(--navy-deep); color: #fff; }
.split-card h3 { font-size: 1.4rem; font-weight: 400; margin: 10px 0 12px; }
.split-card p { color: var(--fg-on-dark-muted); font-size: var(--fs-small); }
.split-card .eyebrow { color: var(--steel); }

/* Payments page */
.pay-steps { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-steps li { padding: 20px 22px; background: var(--paper); border-top: 2px solid var(--navy); margin: 0 !important; }
.pay-steps .num { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .16em; color: var(--navy); }
.pay-steps h3 { font-size: 1.1rem; font-weight: 500; margin: 8px 0 6px !important; }
.pay-steps p { font-size: 0.9375rem; color: var(--fg-on-light-muted); margin: 0 !important; }
@media (max-width: 600px) { .pay-steps { grid-template-columns: 1fr; } }

/* Mission / values */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-on-dark); border: 1px solid var(--line-on-dark); }
.mv { background: var(--ink); padding: clamp(32px, 4vw, 56px); display: grid; gap: 18px; align-content: start; }
.mv h3 { font-size: var(--fs-h3); font-weight: 400; }
.mv p { color: var(--fg-on-dark-muted); }
.values { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-on-light); }
.values li { padding: 32px 32px 0 0; }
.values li + li { padding-left: 32px; border-left: 1px solid var(--line-on-light); }
.values h3 { font-size: var(--fs-h3); font-weight: 400; margin: 16px 0 10px; }
.values p { color: var(--fg-on-light-muted); font-size: var(--fs-small); }
.values .num { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .16em; color: var(--navy); }

/* Bio */
.bio-hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px clamp(40px, 7vw, 120px); align-items: end; }
.bio-hero__photo { aspect-ratio: 4 / 5; overflow: hidden; background: #000; max-width: 520px; }
.bio-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; filter: grayscale(1) contrast(1.05); }
.bio-hero h1 { font-size: var(--fs-h1); margin-top: 22px; }
.bio-hero .lead { margin-top: 24px; }
.bio-contact { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.bio-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); border-top: 1px solid var(--line-on-dark); padding-top: clamp(64px, 7vw, 96px); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px 40px; padding-bottom: 64px; }
.footer-brand img { width: 190px; height: auto; filter: brightness(0) invert(1); }
.footer-brand p { margin-top: 24px; color: var(--fg-on-dark-muted); font-size: var(--fs-small); max-width: 32ch; }
.footer-col h2 { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-on-dark-subtle); margin-bottom: 18px; line-height: 1.4; }
.footer-col ul { list-style: none; display: grid; gap: 2px; }
.footer-col a, .footer-col address { font-style: normal; font-size: var(--fs-small); color: rgba(255,255,255,.86); text-decoration: none; line-height: 1.7; }
.footer-col a { display: inline-block; padding-block: 5px; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-on-dark); border-radius: 50%; transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
.socials a:hover { background: #fff; color: var(--ink); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 28px 36px; border-top: 1px solid var(--line-on-dark); font-size: 0.8125rem; color: var(--fg-on-dark-subtle); }
.footer-bottom p { max-width: 80ch; }
.footer-bottom a { color: inherit; }
.footer-wordmark { overflow: hidden; border-top: 1px solid var(--line-on-dark); padding-top: 24px; }
.footer-wordmark span { display: block; font-size: clamp(4rem, 17.5vw, 17rem); font-weight: 600; letter-spacing: -0.02em; line-height: 0.78; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14); white-space: nowrap; user-select: none; transform: translateY(8%); }


/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px clamp(40px, 7vw, 120px); align-items: start; }
.faq-title { font-size: var(--fs-h2); margin-top: 22px; }
.faq-grid .muted a { color: var(--navy); font-weight: 600; white-space: nowrap; }
.faq-list { border-top: 1px solid var(--line-on-light); }
.faq { border-bottom: 1px solid var(--line-on-light); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; }
.faq summary:hover h3 { color: var(--navy); }
.faq__icon { position: relative; flex: none; width: 36px; height: 36px; border: 1px solid var(--line-on-light); border-radius: 50%; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--navy); transform: translate(-50%, -50%); transition: transform var(--t-med) var(--ease-out); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 60px 26px 0; }
.faq__a p { color: #2b3447; line-height: 1.75; }


/* ---------- FAQ page ---------- */
.faq-jump { position: sticky; top: 88px; z-index: 10; background: rgba(9, 61, 112, 0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-on-dark); }
.faq-jump ul { list-style: none; display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.faq-jump ul::-webkit-scrollbar { display: none; }
.faq-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; white-space: nowrap; font-size: 0.875rem; color: var(--fg-on-dark-muted); text-decoration: none; border: 1px solid var(--line-on-dark); transition: color var(--t-fast) ease, border-color var(--t-fast) ease, background-color var(--t-fast) ease; }
.faq-jump a:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.faq-group { display: grid; grid-template-columns: 1fr 1.8fr; gap: 32px clamp(40px, 7vw, 120px); padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-on-light); scroll-margin-top: 170px; }
.faq-group:first-child { border-top: 0; padding-top: 0; }
.faq-group:last-child { padding-bottom: 0; }
.faq-group__head { display: grid; gap: 16px; align-content: start; justify-items: start; position: sticky; top: 180px; }
.faq-group__head h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); }
.faq-group__head .link-arrow { color: var(--navy); }
.faq__a > * + * { margin-top: 12px; }
.faq__a a { color: var(--navy); font-weight: 600; }
.faq__a .penalty-grid { margin-top: 16px; }
.section--light .faq__a .penalty { background: #fff; }
@media (max-width: 900px) {
  .faq-group { grid-template-columns: 1fr; }
  .faq-group__head { position: static; }
}
@media (max-width: 600px) { .faq-jump { top: 72px; } }

/* ---------- Fee estimator ---------- */
.estimator { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; color: var(--fg-on-light); border: 1px solid var(--line-on-dark); position: relative; }
.estimator__draft { grid-column: 1 / -1; margin: 0; padding: 12px 20px; background: #fff4d6; color: #6b4a00; font-size: 0.875rem; border-bottom: 1px solid #f0d99a; }
.estimator__form { padding: clamp(24px, 3.4vw, 44px); display: grid; gap: 28px; align-content: start; }
.estimator__types { border: 0; margin: 0; padding: 0; min-width: 0; }
.estimator__types legend, .estimator .field label { font-size: 0.875rem; font-weight: 600; margin-bottom: 12px; padding: 0; }
.chips { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 8px; } /* every option box the same height */
.chip { position: relative; display: flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { flex: 1; display: flex; align-items: center; min-height: 52px; line-height: 1.35; padding: 12px 16px; border: 1px solid var(--line-on-light); background: var(--paper); font-size: 0.95rem; transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease, color var(--t-fast) ease; }
.chip:hover span { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.estimator__inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.estimator__inputs .check { grid-column: 1 / -1; }
.estimator [hidden] { display: none !important; }
.money { position: relative; }
.money span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--fg-on-light-muted); }
.estimator .money input { padding-left: 32px; font-variant-numeric: tabular-nums; }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; min-height: 44px; font-size: 0.95rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex: none; cursor: pointer; }
.check small { display: block; color: var(--fg-on-light-muted); font-size: 0.8125rem; }
.estimator__result { padding: clamp(24px, 3.4vw, 44px); background: var(--paper); border-left: 1px solid var(--line-on-light); display: flex; flex-direction: column; gap: 20px; }
.estimator__result h3 { font-size: 1.35rem; font-weight: 400; }
.estimate-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.estimate-table th, .estimate-table td { padding: 10px 0; border-bottom: 1px solid var(--line-on-light); text-align: left; font-weight: 400; vertical-align: top; }
.estimate-table td { text-align: right; white-space: nowrap; padding-left: 16px; }
.estimate-table .group th { padding-top: 18px; border-bottom: 0; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-on-light-muted); }
.estimate-table .sub th, .estimate-table .sub td { color: var(--fg-on-light-muted); font-size: 0.875rem; }
.estimate-table tfoot th, .estimate-table tfoot td { padding-top: 18px; border-bottom: 0; border-top: 2px solid var(--navy); font-size: 1.1rem; font-weight: 600; }
.estimate-table tfoot td { font-size: 1.6rem; font-weight: 400; letter-spacing: -0.02em; color: var(--navy); }
.estimator__note { font-size: 0.8125rem; color: var(--fg-on-light-muted); line-height: 1.6; }
.estimator__extras { padding: 18px 20px; background: #fff; border: 1px solid var(--line-on-light); }
.estimator__extras-title { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-on-light-muted); margin-bottom: 10px; }
.estimator__extras ul { list-style: none; display: grid; gap: 10px; }
.estimator__extras li { display: grid; gap: 2px; font-size: 0.9rem; }
.estimator__extras li span { color: var(--fg-on-light-muted); font-size: 0.8125rem; }
.estimator__disclaimer { padding: 16px 18px; border-left: 2px solid var(--navy); background: rgba(9,61,112,.06); display: grid; gap: 8px; }
.estimator__disclaimer p { font-size: 0.8125rem; line-height: 1.6; color: var(--fg-on-light-muted); }
.estimator__disclaimer strong { color: var(--fg-on-light); }
.estimator__result .btn { align-self: flex-start; margin-top: auto; }
.footer-areas { font-size: 0.8125rem !important; color: var(--fg-on-dark-subtle) !important; margin-top: 12px !important; }
@media (max-width: 1000px) {
  .estimator { grid-template-columns: 1fr; }
  .estimator__result { border-left: 0; border-top: 1px solid var(--line-on-light); }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .chips, .estimator__inputs { grid-template-columns: 1fr; }
  .faq__a { padding-right: 0; }
}


/* ---------- Home fee teaser (receipt) ---------- */
.fee-teaser { overflow: hidden; }
.fee-teaser__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px clamp(40px, 7vw, 120px); align-items: center; }
.fee-teaser h2 { font-size: var(--fs-h2); margin-top: 22px; }
.fee-teaser h2 span { color: var(--steel); }
.fee-teaser .lead { margin-top: 24px; max-width: 52ch; }
.fee-teaser__points { list-style: none; display: grid; gap: 14px; margin-top: 32px; }
.fee-teaser__points li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.0625rem; }
.fee-teaser__points svg { width: 20px; height: 20px; color: var(--steel); flex: none; margin-top: 3px; }
.receipt {
  position: relative; background: #fff; color: var(--fg-on-light); padding: 28px 28px 34px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  --notch: radial-gradient(circle at 8px 0, transparent 7px, #fff 7.5px);
}
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: var(--notch) 0 0 / 16px 10px repeat-x; }
.receipt__head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px dashed rgba(6,16,60,.3); font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-on-light-muted); }
.receipt__controls { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 20px 0; border-bottom: 1px dashed rgba(6,16,60,.3); }
.receipt__controls [hidden] { display: none !important; }
.receipt__controls .field label { font-size: 0.8125rem; }
.receipt__controls .money input { padding-left: 32px; font-variant-numeric: tabular-nums; }
.receipt__lines { margin: 0; padding: 16px 0 6px; display: grid; gap: 10px; font-family: var(--font-mono); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.receipt__lines div { display: flex; align-items: baseline; gap: 10px; }
.receipt__lines dt { color: var(--fg-on-light-muted); white-space: nowrap; }
.receipt__lines dd { margin: 0 0 0 auto; }
.receipt__lines div { background: linear-gradient(90deg, rgba(6,16,60,.25) 33%, transparent 0) 0 calc(100% - 4px) / 6px 1px repeat-x; }
.receipt__lines dt, .receipt__lines dd { background: #fff; padding: 0 2px; }
.receipt__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; padding-top: 16px; border-top: 2px solid var(--navy); }
.receipt__total span { font-weight: 600; }
.receipt__total strong { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 400; letter-spacing: -0.02em; color: var(--navy); font-variant-numeric: tabular-nums; }
.receipt__cta { width: 100%; margin-top: 22px; }
.receipt__fine { margin-top: 12px; text-align: center; font-size: 0.75rem; color: var(--fg-on-light-muted); }
.estimator-section { scroll-margin-top: 80px; }
@media (max-width: 900px) {
  .fee-teaser__grid { grid-template-columns: 1fr; }

}
@media (max-width: 600px) { .receipt__controls { grid-template-columns: 1fr; } .receipt { padding: 22px 18px 28px; } }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .26em; margin-bottom: -.2em; white-space: nowrap; }
/* Size the headline to its own column (not the window) so the longest line always fits.
   "that matter most." is ~7.35× the font size wide → 13% of the column leaves a small margin. */
@supports (container-type: inline-size) {
  .hero__title { container-type: inline-size; }
  .hero__title .line { font-size: min(13cqi, 6.75rem); }
}
@supports not (container-type: inline-size) {
  .hero__title .line { white-space: normal; }
}
.hero__title .line > span { display: block; }
.js .hero__title .line > span { transform: translateY(105%); animation: line-up 1.1s var(--ease-out) forwards; animation-delay: calc(200ms + var(--i, 0) * 110ms); }
.js .hero__aside, .js .hero__meta { opacity: 0; animation: fade-up 1s var(--ease-out) forwards; animation-delay: 700ms; }
.js .hero__meta { animation-delay: 900ms; }
@keyframes line-up { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__media img { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav, .header-phone span { display: none; }
  .header-phone { padding: 10px 12px; }
  .menu-toggle { display: inline-flex; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .aside-stack { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 900px) {
  .hero__inner, .page-hero__grid, .section-head, .cta-band__grid, .contact-grid, .intro-grid, .bio-hero { grid-template-columns: 1fr; }
  .hero__aside, .section-head__aside { justify-self: start; }
  .hero__inner { padding-top: 140px; gap: 36px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { margin-top: 28px; border-top: 1px solid var(--line-on-dark); }
  .results, .mv-grid, .split-cards { grid-template-columns: 1fr; }
  .team-grid, .reviews { grid-template-columns: 1fr; max-width: 520px; }
  .values { grid-template-columns: 1fr; }
  .values li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-on-light); margin-top: 32px; }
  .bio-hero__photo { max-width: 420px; }
}
@media (max-width: 600px) {
  .header-inner, .mobile-menu__top { height: 72px; }
  .brand__mark { height: 28px; }
  .brand__word { height: 24px; }
  .header-phone { display: none; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-card { padding: 26px 22px 24px; }
  .practice-card__icon { width: 56px; height: 56px; }
  .practice-card__icon svg { width: 28px; height: 28px; }
  .form { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding-left: 0; border-left: 0; }
  .fact + .fact { margin-top: 28px; border-top: 1px solid var(--line-on-dark); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__meta { font-size: 0.6875rem; }
  .btn { width: 100%; }
  .hero__actions .btn, .page-hero__actions .btn { width: 100%; }
  .team-card__body .team-card__arrow { display: none; }
}

/* ---------- Light-section variants of dark components (for alternating backgrounds) ---------- */
/* Firm intro */
.section--white .statement, .section--light .statement { color: var(--fg-on-light); }
.section--white .statement span, .section--light .statement span { color: var(--navy); }
.section--white .serve-list, .section--white .serve-list li { border-color: var(--line-on-light); }
.section--white .serve-list span { color: var(--navy); }
.section--white .intro-aside .link-arrow { color: var(--navy); }
.section--white .facts { border-top-color: var(--line-on-light); }
.section--white .fact + .fact { border-left-color: var(--line-on-light); }
.section--white .fact__value { color: var(--fg-on-light); }
.section--white .fact__value small, .section--white .fact__label { color: var(--fg-on-light-muted); }
/* Results */
.section--white .results { background: var(--line-on-light); border-color: var(--line-on-light); }
.section--white .result { background: var(--paper); }
.section--white .result__tag { color: var(--navy); }
.section--white .result h3 { color: var(--fg-on-light); }
.section--white .result p { color: var(--fg-on-light-muted); }
/* Mission / vision: blue tiles on white */
.section--white .mv-grid { background: rgba(255,255,255,.25); border-color: var(--navy); }
.section--white .mv { background: var(--navy); color: #fff; }
.section--white .mv .eyebrow { color: var(--fg-on-dark-subtle); }
/* Team cards on a light background */
.section--light .team-card { color: var(--fg-on-light); }
.section--light .team-card__role { color: var(--fg-on-light-muted); }
.section--light .team-card__arrow { border-color: var(--line-on-light); }
.section--light .team-card:hover .team-card__arrow { background: var(--navy); color: #fff; }
.section--light .team-card__areas li { border-color: var(--line-on-light); color: var(--fg-on-light-muted); }
.section--light .team-card__areas li.more { color: var(--navy); border-color: rgba(9,61,112,.4); }
/* Estimator on a light background: give the card a defined edge */
.section--light .estimator { border-color: var(--line-on-light); box-shadow: 0 20px 50px rgba(9,61,112,.08); }

/* ==========================================================================
   Phone layout (≤700px) — simplified: hides repeated/secondary info and
   tightens spacing. Desktop and tablet are unaffected.
   ========================================================================== */
@media (max-width: 700px) {
  :root { --section: 60px; }

  /* Repeated elsewhere on the page (phone, consultation, links) */
  .cta-band, .practice-strip, .hero__meta, .facts, .serve-list,
  .footer-secondary, .footer-wordmark, .hide-mobile,
  .fee-teaser__points { display: none !important; }

  /* Section intros: keep the heading and button, drop the supporting sentence */
  .section-head { margin-bottom: 28px; }
  .section-head__aside .lead { display: none; }
  #fee-estimate .section-head__aside .lead, .fee-teaser .lead { display: block; }

  /* Interior page headers: the intro paragraph below repeats the lead */
  .page-hero { padding-block: 120px 44px; }
  .page-hero .eyebrow { display: none; }
  .page-hero--practice .lead { display: none; }
  .page-hero__actions { margin-top: 20px; }

  /* Practice areas: compact one-line tiles */
  .practice-grid { grid-template-columns: 1fr; }
  .practice-card { flex-direction: row; align-items: center; gap: 16px; padding: 14px 16px; min-height: 0; }
  .practice-card__num, .practice-card p, .practice-card__more { display: none; }
  .practice-card__icon { width: 44px; height: 44px; }
  .practice-card__icon svg { width: 22px; height: 22px; }
  .practice-card h3 { margin-top: 0; font-size: 1.1rem; flex: 1; }
  .practice-card::after { content: "→"; color: var(--navy); font-size: 1.1rem; transition: color var(--t-med) ease; }
  .practice-card:hover::after { color: #fff; }

  /* Results: titles only; reviews: two instead of three */
  .result { padding: 22px; gap: 10px; }
  .result p { display: none; }
  .reviews > li:nth-child(n+3) { display: none; }

  /* Home firm intro */
  .statement { font-size: 2rem; }
  .intro-aside { gap: 18px; }

  /* Footer: shorter */
  .site-footer { padding-top: 56px; }
  .footer-grid { gap: 32px; padding-bottom: 36px; }
  .footer-bottom p:first-child { font-size: 0.75rem; }
}
