/* ==========================================================================
   Larkmoor & Vance — fictional law firm demo
   Palette: deep ink navy + warm brass on ivory paper
   ========================================================================== */

:root {
  /* Colour */
  --ink-900: #0f1b2d;
  --ink-800: #16263d;
  --ink-700: #1f3350;
  --ink-600: #2c4466;
  --ink-100: #e6eaf0;
  --brass-500: #b8925a;   /* decorative / on dark only */
  --brass-400: #cfae7b;   /* text on navy */
  --brass-700: #7d5c28;   /* text on light (AA) */
  --paper: #faf7f1;
  --paper-2: #f3eee4;
  --white: #ffffff;
  --text: #1c2533;
  --text-muted: #4f5a69;
  --line: #e2dbcd;
  --line-strong: #cfc5b2;
  --focus: #1d5fd1;

  /* Type */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Cambria, Georgia, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h4: 1.25rem;
  --fs-h3: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem);
  --fs-h2: clamp(1.85rem, 1.5rem + 1.5vw, 2.6rem);
  --fs-h1: clamp(2.3rem, 1.7rem + 2.8vw, 3.9rem);

  /* Space & shape */
  --space-section: clamp(4rem, 3rem + 4vw, 7rem);
  --container: 72rem;
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.06);
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.05), 0 8px 24px -12px rgba(15, 27, 45, 0.18);
  --shadow-lg: 0 2px 4px rgba(15, 27, 45, 0.04), 0 18px 36px -18px rgba(15, 27, 45, 0.28);
  --header-h: 4.5rem;

  /* Motion — one small, shared vocabulary (see UI-SUMMARY.md) */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);   /* gentle decelerate, no overshoot */
  --ease-in-out: cubic-bezier(0.45, 0, 0.25, 1);
  --dur-fast: 180ms;   /* colour / border / underline changes */
  --dur: 260ms;        /* hover lifts, accordion, menu */
  --dur-slow: 480ms;   /* entrance + scroll reveal */
  --stagger: 80ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink-900);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 1.1em; }
p, li { text-wrap: pretty; }

a {
  color: var(--ink-700);
  text-decoration-color: var(--brass-500);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--ink-900); text-decoration-thickness: 2px; }

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

::selection { background: var(--brass-400); color: var(--ink-900); }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 200;
  padding: 0.75rem 1.1rem;
  background: var(--ink-900);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; color: var(--white); }

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

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink-900);
  min-height: 44px;
}
.brand:hover { color: var(--ink-900); }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand__sub {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink-900);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle__icon {
  position: relative;
  width: 18px; height: 2px;
  background: currentColor;
  transition: background 0.2s ease;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute; left: 0;
  width: 18px; height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 8px;
  height: 2px;
  background: var(--brass-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.site-nav__link:hover { color: var(--ink-900); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: var(--ink-900); font-weight: 650; }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__cta { margin-left: 0.75rem; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: 1.25rem var(--gutter) 2rem;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list > li { border-bottom: 1px solid var(--line); }
  .site-nav__list > li:last-child { border-bottom: 0; }
  .site-nav__link {
    width: 100%;
    min-height: 56px;
    padding: 0 0.25rem;
    font-family: var(--font-serif);
    font-size: 1.35rem;
  }
  .site-nav__link::after { left: 0.25rem; right: auto; width: 2rem; bottom: 10px; }
  .site-nav__cta { margin: 1.5rem 0 0; }
  .site-nav__cta .btn { width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink-900); color: var(--white); }
.btn--primary:hover { background: var(--ink-700); color: var(--white); }
.btn--gold { background: var(--brass-400); color: var(--ink-900); }
.btn--gold:hover { background: #dcc096; color: var(--ink-900); }
.btn--outline { border-color: var(--ink-900); color: var(--ink-900); background: transparent; }
.btn--outline:hover { background: var(--ink-900); color: var(--white); }
.btn--ghost-light { border-color: rgba(255,255,255,0.4); color: var(--white); background: transparent; }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }
.btn--sm { min-height: 44px; padding: 0.55rem 1.1rem; }
.btn svg { width: 1em; height: 1em; flex: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink-800);
  text-decoration: none;
}
.text-link span[aria-hidden] { transition: transform 0.18s ease; color: var(--brass-700); }
.text-link:hover span[aria-hidden] { transform: translateX(4px); }

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--space-section); }
.section--tint { background: var(--paper-2); }
.section--white { background: var(--white); }
.section--dark { background: var(--ink-900); color: #d7dde6; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--tight { padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-700);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
}
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--brass-400); }

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { font-size: var(--fs-lg); color: var(--text-muted); margin-bottom: 0; }
.section--dark .section-head p { color: #b9c3d1; }

.lead { font-size: var(--fs-lg); color: var(--text-muted); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  background: var(--ink-900);
  color: #d7dde6;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(184, 146, 90, 0.18), transparent 60%),
    radial-gradient(40rem 30rem at -10% 110%, rgba(44, 68, 102, 0.6), transparent 60%);
}
.hero::after {
  /* faint ruled "legal pad" texture */
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 100% 36px;
  mask-image: linear-gradient(to right, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 60%);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
  padding-block: clamp(4rem, 2.5rem + 6vw, 8rem);
}
.hero h1 { color: var(--white); margin-bottom: 0.5em; }
.hero h1 em { font-style: italic; color: var(--brass-400); font-weight: 500; }
.hero__lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: #c6cfdb; max-width: 36rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero__note {
  display: flex; align-items: center; gap: 0.6rem;
  margin-top: 1.75rem;
  font-size: var(--fs-sm);
  color: #aab5c4;
}
.hero__note svg { width: 18px; height: 18px; color: var(--brass-400); flex: none; }

.hero-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
}
.hero-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 2rem; right: 2rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass-500), transparent);
}
.hero-card h2 {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.hero-card ol { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.hero-card li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(255,255,255,0.09);
}
.hero-card li:first-child { border-top: 0; padding-top: 0; }
.hero-card li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--brass-400);
  line-height: 1.5;
}
.hero-card strong { display: block; color: var(--white); font-weight: 600; }
.hero-card span { font-size: var(--fs-sm); color: #aab5c4; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--ink-900);
  color: #c6cfdb;
  padding-block: clamp(3.25rem, 2rem + 4vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -6rem; top: 50%;
  width: 26rem; height: 26rem;
  transform: translateY(-50%);
  border: 1px solid rgba(207, 174, 123, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(207,174,123,0.04), 0 0 0 6rem rgba(207,174,123,0.03);
  pointer-events: none;
}
.page-hero h1 { color: var(--white); max-width: 22ch; }
.page-hero p { font-size: var(--fs-lg); max-width: 40rem; margin-bottom: 0; }
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  list-style: none; margin: 0 0 1.25rem; padding: 0;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: #9aa6b6;
}
.breadcrumb a { color: #c6cfdb; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: #6b788b; }
.breadcrumb li { display: inline-flex; align-items: center; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: clamp(1rem, 0.75rem + 1vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.card h3 { font-size: var(--fs-h4); margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: var(--fs-sm); }
.card p:last-child { margin-bottom: 0; }
.card--link:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--brass-700);
  border: 1px solid var(--line);
}
.card__icon svg { width: 22px; height: 22px; }
.card__foot { margin-top: auto; padding-top: 0.75rem; }
/* whole-card click target, keeping one real link */
.card--link .stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--link:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card--link .stretched:focus-visible { outline: none; }

/* ---------- Why us / features ---------- */
.why {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }
.why__aside { position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 860px) { .why__aside { position: static; } }

.feature-list { list-style: none; margin: 0; padding: 0; }
.feature {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.feature:first-child { border-top: 0; padding-top: 0; }
.feature__num {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--brass-700);
}
.feature h3 { font-size: var(--fs-h4); margin-bottom: 0.35rem; }
.feature p { margin: 0; color: var(--text-muted); }

/* ---------- Quote / testimonial ---------- */
.quote {
  margin: 0;
  display: flex; flex-direction: column;
  height: 100%;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.quote__mark { font-family: var(--font-serif); font-size: 3.5rem; line-height: 0.6; color: var(--brass-500); height: 1.5rem; }
.quote blockquote { margin: 0 0 1.5rem; font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.55; color: var(--ink-900); }
.quote blockquote p { margin: 0; }
.quote figcaption { margin-top: auto; font-size: var(--fs-sm); color: var(--text-muted); }
.quote figcaption strong { display: block; color: var(--text); font-weight: 600; }

.disclaimer-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  background: var(--white);
}
.section--dark .disclaimer-chip { background: transparent; border-color: rgba(255,255,255,0.25); color: #b9c3d1; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--ink-900);
  color: #c6cfdb;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.5rem + 3vw, 3.75rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(30rem 18rem at 100% 0%, rgba(184,146,90,0.22), transparent 70%);
}
.cta-band h2 { color: var(--white); margin-bottom: 0.4rem; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.cta-band p { margin: 0; max-width: 38rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Practice areas page ---------- */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.subnav__list {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__list a {
  display: inline-flex; align-items: center;
  min-height: 52px;
  padding: 0 0.9rem;
  white-space: nowrap;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.subnav__list a:hover { color: var(--ink-900); }
.subnav__list a.is-active { color: var(--ink-900); border-bottom-color: var(--brass-500); }
.has-subnav { scroll-padding-top: calc(var(--header-h) + 52px + 1rem); }

.area {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  padding-block: clamp(3rem, 2rem + 3vw, 5rem);
  border-top: 1px solid var(--line);
}
.area:first-of-type { border-top: 0; }
@media (max-width: 860px) { .area { grid-template-columns: 1fr; } }
.area__head .card__icon { margin-bottom: 1rem; }
.area__head h2 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem); }
.area__head p { color: var(--text-muted); }
.area__body h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-700);
  margin: 0 0 0.85rem;
}
.area__cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2rem; }
@media (max-width: 560px) { .area__cols { grid-template-columns: 1fr; gap: 1.5rem; } }
.area__for {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  background: var(--paper-2);
  border-left: 3px solid var(--brass-500);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.area__for p { margin: 0; }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: 0.6rem;
  font-size: var(--fs-sm);
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 0.7rem; height: 0.4rem;
  border-left: 2px solid var(--brass-700);
  border-bottom: 2px solid var(--brass-700);
  transform: rotate(-45deg);
}
.section--dark .check-list li::before { border-color: var(--brass-400); }

/* ---------- Attorneys ---------- */
.attorney {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
  border-top: 1px solid var(--line);
}
.attorney:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 760px) { .attorney { grid-template-columns: 1fr; } }

.monogram {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 15rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(160deg, var(--ink-700), var(--ink-900));
  color: var(--brass-400);
  font-family: var(--font-serif);
  font-size: 4.25rem;
  letter-spacing: 0.04em;
  overflow: hidden;
}
.monogram::before {
  content: "";
  position: absolute; inset: 10px;
  border: 1px solid rgba(207,174,123,0.35);
  border-radius: 6px;
}
.monogram--b { background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.08), transparent 60%), linear-gradient(160deg, #3a3f52, #1b2030); }
.monogram--c { background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.08), transparent 60%), linear-gradient(160deg, #24414a, #11232a); }
.monogram--d { background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.08), transparent 60%), linear-gradient(160deg, #4a3b2c, #241c14); }
@media (max-width: 760px) {
  .monogram { max-width: 9rem; font-size: 2.75rem; aspect-ratio: 1; }
}
.monogram--sm {
  width: 56px; height: 56px; max-width: none; aspect-ratio: 1;
  font-size: 1.25rem; border-radius: 50%;
}
.monogram--sm::before { inset: 4px; border-radius: 50%; }

.attorney__role {
  margin: -0.25rem 0 1.25rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-700);
}
.attorney__body h2 { font-size: clamp(1.6rem, 1.35rem + 1vw, 2.1rem); margin-bottom: 0.4rem; }
.attorney__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--line-strong);
}
@media (max-width: 560px) { .attorney__meta { grid-template-columns: 1fr; } }
.attorney__meta h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0; padding: 0; }
.tags li {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 500;
  background: var(--white);
}

.team-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.team-strip .card { flex-direction: row; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; }
.team-strip .card h3 { font-size: 1.1rem; margin: 0; }
.team-strip .card p { margin: 0; font-size: var(--fs-xs); }

/* ---------- Process / steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.step {
  counter-increment: s;
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  padding-bottom: 2rem;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: counter(s);
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--brass-500);
  background: var(--white);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--ink-900);
  position: relative; z-index: 1;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.5rem; top: 3rem; bottom: 0;
  width: 1px;
  background: var(--line-strong);
}
.step h3 { font-size: var(--fs-h4); margin: 0.6rem 0 0.35rem; }
.step p { margin: 0; color: var(--text-muted); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem);
}
.panel--dark { background: var(--ink-900); border-color: var(--ink-900); color: #c6cfdb; }
.panel--dark h3 { color: var(--white); }

.fee-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 860px) { .fee-grid { grid-template-columns: 1fr; } }
.fee-grid .card h3 { display: flex; align-items: center; gap: 0.6rem; }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 2rem 2.5rem; }
.value h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.value h3::before {
  content: ""; display: block;
  width: 2rem; height: 2px;
  background: var(--brass-500);
  margin-bottom: 1rem;
}
.value p { margin: 0; color: #b9c3d1; font-size: var(--fs-sm); }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__q { margin: 0; font-size: inherit; font-family: inherit; }
.faq__btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 64px;
  padding: 1.1rem 0.25rem;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
}
.faq__btn:hover { color: var(--ink-700); }
.faq__icon {
  position: relative;
  flex: none;
  width: 28px; height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 10px; height: 1.5px;
  background: var(--ink-900);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__btn[aria-expanded="true"] .faq__icon { background: var(--ink-900); border-color: var(--ink-900); }
.faq__btn[aria-expanded="true"] .faq__icon::before { background: var(--white); }
.faq__btn[aria-expanded="true"] .faq__icon::after { opacity: 0; }
.faq__panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--dur) var(--ease-in-out);
}
.faq__panel > div {
  overflow: hidden;
  opacity: 1;
  transform: none;
  transition: opacity var(--dur) var(--ease-out) 60ms, transform var(--dur) var(--ease-out) 60ms;
}
.faq__panel p { padding: 0 3rem 1.4rem 0.25rem; margin: 0; color: var(--text-muted); }
.faq__panel p + p { padding-top: 0; margin-top: -0.6rem; }
.js .faq__panel[data-collapsed="true"] { grid-template-rows: 0fr; }
.js .faq__panel[data-collapsed="true"] > div {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease, visibility 0s linear var(--dur);
}
@media (max-width: 560px) { .faq__panel p { padding-right: 0.25rem; } }
@media (prefers-reduced-motion: reduce) {
  .faq__panel, .faq__icon, .faq__icon::before, .faq__icon::after { transition: none; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0; }
.contact-list li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:first-child { padding-top: 0; }
.contact-list .card__icon { width: 44px; height: 44px; margin: 0; }
.contact-list h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.2rem;
}
.contact-list p, .contact-list address { margin: 0; font-style: normal; }
.contact-list a { font-weight: 600; display: inline-flex; min-height: 32px; align-items: center; word-break: break-word; }

.hours { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.hours caption { text-align: left; }
.hours th, .hours td { padding: 0.55rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.hours th { font-weight: 500; color: var(--text); }
.hours td { text-align: right; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--ink-900); font-weight: 650; }
.hours tr.is-today th::after {
  content: "Today";
  margin-left: 0.6rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-700);
}

/* Form (demo) */
.demo-banner {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 1rem 1.15rem;
  margin-bottom: 1.75rem;
  border: 1px dashed var(--brass-700);
  border-radius: var(--radius);
  background: #fbf4e6;
  font-size: var(--fs-sm);
  color: #4a3a1f;
}
.demo-banner svg { width: 20px; height: 20px; flex: none; margin-top: 0.15rem; color: var(--brass-700); }
.demo-banner strong { color: #3a2c12; }

.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 0.4rem; font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.field .hint { font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  font-size: 1rem; /* 16px avoids iOS zoom */
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231c2533' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.5rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink-700);
  box-shadow: 0 0 0 3px rgba(29, 95, 209, 0.28);
}
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form__fine { margin: 0; font-size: var(--fs-xs); color: var(--text-muted); }
.form-status {
  display: none;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--ink-900);
  color: #dfe5ee;
  font-size: var(--fs-sm);
}
.form-status.is-visible { display: block; }
.form-status strong { color: var(--brass-400); }

/* CSS "map" */
.map {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background-color: #ece6da;
  background-image:
    /* minor streets */
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,0.75) calc(50% - 1px), rgba(255,255,255,0.75) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(255,255,255,0.75) calc(50% - 1px), rgba(255,255,255,0.75) calc(50% + 1px), transparent calc(50% + 1px));
  background-size: 56px 56px;
}
.map__river {
  position: absolute;
  left: -10%; right: -10%; bottom: 8%;
  height: 22%;
  background: #c9d6e0;
  border-radius: 50%;
  transform: rotate(-6deg);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.4);
}
.map__park {
  position: absolute;
  left: 8%; top: 12%;
  width: 24%; height: 28%;
  background: #d5dcc5;
  border-radius: 14px;
}
.map__park::after {
  content: "Commons Park";
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #5d6a4b; white-space: nowrap;
}
.map__road {
  position: absolute;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15,27,45,0.06);
}
.map__road--h { left: 0; right: 0; top: 52%; height: 12px; }
.map__road--v { top: 0; bottom: 0; left: 58%; width: 12px; }
.map__road--d { left: 30%; top: -10%; width: 10px; height: 130%; transform: rotate(32deg); transform-origin: top; }
.map__label {
  position: absolute;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6f6757;
  white-space: nowrap;
}
.map__label--h { left: 4%; top: calc(52% + 16px); }
.map__label--v { left: calc(58% + 18px); top: 6%; }
.map__label--river { right: 8%; bottom: 13%; color: #5a6e7d; font-style: italic; text-transform: none; letter-spacing: 0.04em; font-weight: 500; }
.map__pin {
  position: absolute;
  left: calc(58% + 6px); top: calc(52% + 6px);
  transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center;
}
.map__pin-card {
  margin-bottom: 0.5rem;
  padding: 0.45rem 0.75rem;
  background: var(--ink-900);
  color: var(--white);
  border-radius: var(--radius);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.map__pin-dot {
  position: relative;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brass-500);
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(15,27,45,0.35);
}
@media (prefers-reduced-motion: no-preference) {
  .map__pin-dot::after {
    content: "";
    position: absolute; inset: -9px;
    border-radius: 50%;
    border: 2px solid var(--brass-500);
    animation: pulse 2.4s ease-out infinite;
  }
}
@keyframes pulse {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}
.map__compass {
  position: absolute; right: 12px; top: 12px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  font-family: var(--font-serif);
  font-size: 0.85rem; font-weight: 700;
  color: var(--ink-900);
}
.map-caption { margin: 0.75rem 0 0; font-size: var(--fs-xs); color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: #aab5c4;
  padding-top: clamp(3.5rem, 2.5rem + 3vw, 5rem);
  font-size: var(--fs-sm);
}
.site-footer a { color: #d7dde6; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--brass-400); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand .brand { color: var(--white); }
.footer-brand .brand__sub { color: #8f9bab; }
.footer-brand p { margin: 1rem 0 0; max-width: 22rem; }
.site-footer h2 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-400);
  margin-bottom: 0.9rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
  font-size: var(--fs-xs);
  color: #8f9bab;
}
.footer-bottom p { margin: 0; }
.demo-note {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: #c6cfdb;
}
.demo-note::before {
  content: "";
  width: 8px; height: 8px; flex: none;
  border-radius: 50%;
  background: var(--brass-500);
}
.legal-fine { max-width: 48rem; color: #8f9bab; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(5rem, 4rem + 6vw, 9rem); }
.notfound__code { font-family: var(--font-serif); font-size: clamp(4rem, 3rem + 6vw, 7rem); color: var(--brass-700); line-height: 1; margin: 0 0 1rem; }
.notfound .hero__actions { justify-content: center; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.center { text-align: center; }

/* ---------- Reveal on scroll: see "Motion system" at the end of file ---------- */

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .subnav, .cta-band__actions, .form { display: none !important; }
  .hero, .page-hero, .site-footer, .section--dark { background: none !important; color: #000 !important; }
  .hero h1, .page-hero h1 { color: #000 !important; }
}

/* ---------- Additions (resume run) ---------- */
/* backdrop-filter makes the header a containing block for fixed children,
   which would collapse the fixed mobile menu — drop it on small screens. */
@media (max-width: 1080px) {
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
}
.form-status:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.section--dark a { color: var(--brass-400); }
.section--dark .btn--gold { color: var(--ink-900); }
.contact-aside { display: grid; gap: 1.5rem; }
.contact-aside .panel h2 { font-size: var(--fs-h4); }
.team-strip { list-style: none; margin: 0; padding: 0; }
.map-figure { margin: 0; }
.card h3 a { color: inherit; text-decoration: none; }
.card--link:hover h3 a { text-decoration: underline; text-decoration-color: var(--brass-500); }
/* Very narrow phones (360–400px): keep brand + menu button on one line */
@media (max-width: 400px) {
  .brand { gap: 0.6rem; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 1.1rem; }
  .brand__sub { font-size: 0.625rem; letter-spacing: 0.14em; }
  .nav-toggle { padding: 0 0.65rem; }
  .hero__actions .btn, .cta-band__actions .btn { width: 100%; }
}

/* ==========================================================================
   UI polish pass — one designed system
   (appended so earlier component rules stay readable; these refine them)
   ========================================================================== */

/* ---------- Typography rhythm ---------- */
body { font-feature-settings: "kern" 1; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-feature-settings: "kern" 1, "liga" 1, "lnum" 1; }
h2 { line-height: 1.14; margin-bottom: 0.5em; }
h3 { line-height: 1.25; }
.section-head h2 { margin-bottom: 0.45em; }
.section-head p, .lead, .page-hero p, .hero__lead { line-height: 1.6; }
.lead { max-width: 40rem; }
.eyebrow { line-height: 1.3; }
.feature__num, .notfound__code, .step::before { font-variant-numeric: lining-nums tabular-nums; }
.card h3, .feature h3, .step h3, .value h3 { letter-spacing: -0.005em; }
.card p, .feature p, .step p, .quote figcaption { line-height: 1.6; }
.quote blockquote { text-wrap: pretty; }

/* ---------- Links: consistent, eased underline changes ---------- */
a {
  transition: color var(--dur-fast) ease, text-decoration-color var(--dur-fast) ease,
              text-decoration-thickness var(--dur-fast) ease;
}
.text-link { transition: color var(--dur-fast) ease; }
.text-link:hover { color: var(--ink-900); }
.text-link span[aria-hidden] { transition: transform var(--dur) var(--ease-out); }

/* ---------- Focus: same ring everywhere, visible on light and dark ---------- */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hero :focus-visible, .page-hero :focus-visible, .section--dark :focus-visible,
.cta-band :focus-visible, .site-footer :focus-visible, .panel--dark :focus-visible {
  outline-color: var(--brass-400);
}
.faq__btn:focus-visible { outline-offset: 2px; border-radius: var(--radius); }

/* ---------- Header ---------- */
.site-header {
  transition: background-color var(--dur) ease, border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.site-header.is-scrolled {
  background: rgba(250, 247, 241, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(15, 27, 45, 0.03), 0 10px 24px -18px rgba(15, 27, 45, 0.35);
}
.brand__mark { transition: transform var(--dur) var(--ease-out); }
@media (hover: hover) { .brand:hover .brand__mark { transform: rotate(-3deg); } }

.site-nav__link {
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.site-nav__link::after { transition: transform var(--dur) var(--ease-out); }
.site-nav__link:focus-visible::after { transform: scaleX(1); }
.nav-toggle { transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease; }
.nav-toggle:hover { border-color: var(--ink-700); }
.nav-toggle__icon::before, .nav-toggle__icon::after { transition: transform var(--dur) var(--ease-out); }
@media (max-width: 1080px) {
  .site-nav { transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur); }
  .site-nav.is-open { transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
  .site-nav__link:hover { background: var(--paper-2); }
  .site-header.is-scrolled { background: var(--paper); }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease,
              border-color var(--dur-fast) ease, box-shadow var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.btn svg { transition: transform var(--dur) var(--ease-out); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
  .btn--primary:hover { box-shadow: 0 8px 18px -10px rgba(15, 27, 45, 0.55); }
  .btn--gold:hover { box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.55); }
  .btn--outline:hover { box-shadow: 0 8px 18px -12px rgba(15, 27, 45, 0.5); }
}
.btn:active { transform: translateY(0); box-shadow: none; transition-duration: 80ms; }

/* ---------- Cards & surfaces ---------- */
.card, .quote, .panel {
  transition: border-color var(--dur) ease, box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.card__icon { transition: background-color var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease; }
@media (hover: hover) {
  .card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
  .card--link:hover .card__icon { background: var(--ink-900); border-color: var(--ink-900); color: var(--brass-400); }
  .card--link:hover .text-link span[aria-hidden] { transform: translateX(4px); }
  /* Non-link surfaces only deepen their shadow — no lift, so they don't read as clickable */
  .card:not(.card--link):hover, .quote:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
}
@media (hover: none) { .card--link:hover { transform: none; } }
.quote { box-shadow: var(--shadow-sm); }
.panel { box-shadow: var(--shadow-sm); }
.panel--dark { box-shadow: none; }

/* ---------- Section dividers ---------- */
/* Adjacent sections that share the same paper background get a hairline */
.section:not(.section--tint):not(.section--white):not(.section--dark) + .section:not(.section--tint):not(.section--white):not(.section--dark),
.section--white + .section--white,
.section--tint + .section--tint { border-top: 1px solid var(--line); }
/* Brass hairline under dark heroes, tying them to the header/footer */
.page-hero, .hero { border-bottom: 1px solid rgba(207, 174, 123, 0.22); }
.page-hero h1 { margin-bottom: 0.45em; }

/* ---------- Practice-area subnav ---------- */
.subnav { box-shadow: 0 8px 18px -16px rgba(15, 27, 45, 0.4); }
.subnav__list a {
  transition: color var(--dur-fast) ease, border-color var(--dur) var(--ease-out);
}

/* ---------- Attorneys ---------- */
.monogram { transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.tags li { transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease; }
.team-strip .card p { color: var(--text-muted); line-height: 1.4; }

/* ---------- FAQ ---------- */
.faq__btn { transition: color var(--dur-fast) ease; }
.faq__icon { transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.faq__icon::before, .faq__icon::after { transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) ease, background-color var(--dur-fast) ease; }
.faq__btn:hover .faq__icon { border-color: var(--ink-700); }
.faq__btn[aria-expanded="true"] .faq__icon { transform: rotate(180deg); }
.faq__btn[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

/* ---------- Forms ---------- */
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-muted); }
.field input, .field select, .field textarea { transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease; }
.form-status.is-visible { animation: lv-fade-up var(--dur) var(--ease-out) both; }

/* ---------- Footer ---------- */
.site-footer { position: relative; }
.site-footer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(207, 174, 123, 0.45), transparent);
}
.site-footer h2 { letter-spacing: 0.16em; }
.footer-links a { transition: color var(--dur-fast) ease, transform var(--dur) var(--ease-out); }
@media (hover: hover) { .footer-links a:hover { transform: translateX(3px); } }
.footer-bottom { line-height: 1.55; }

/* ==========================================================================
   Motion system
   - lv-fade-up     : entrance for hero / page-hero / 404 content (on load, CSS-only)
   - lv-fade-in     : entrance for decorative hero layers
   - .reveal        : scroll reveal driven by IntersectionObserver in js/main.js
   Everything here is disabled under prefers-reduced-motion (see bottom).
   ========================================================================== */
@keyframes lv-fade-up {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes lv-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance: staggered, CSS-only so it always completes (no JS dependency) */
  .hero__inner > div > *,
  .page-hero .container > *,
  .notfound .container > * {
    animation: lv-fade-up var(--dur-slow) var(--ease-out) both;
  }
  .hero__inner > div > :nth-child(1), .page-hero .container > :nth-child(1), .notfound .container > :nth-child(1) { animation-delay: 60ms; }
  .hero__inner > div > :nth-child(2), .page-hero .container > :nth-child(2), .notfound .container > :nth-child(2) { animation-delay: 140ms; }
  .hero__inner > div > :nth-child(3), .page-hero .container > :nth-child(3), .notfound .container > :nth-child(3) { animation-delay: 220ms; }
  .hero__inner > div > :nth-child(4), .page-hero .container > :nth-child(4), .notfound .container > :nth-child(4) { animation-delay: 300ms; }
  .hero__inner > div > :nth-child(5) { animation-delay: 380ms; }
  .hero-card { animation: lv-fade-up var(--dur-slow) var(--ease-out) 320ms both; }
  .hero::before, .page-hero::after { animation: lv-fade-in 700ms ease-out both; }

  /* Scroll reveal. Hidden state is gated on .motion, which main.js adds only
     after the observer is ready — if JS fails, nothing is ever hidden. */
  .motion .reveal {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
    transition-delay: calc(var(--reveal-i, 0) * var(--stagger));
  }
  .motion .reveal.is-visible { opacity: 1; transform: none; }
  /* After the reveal finishes, main.js drops the .reveal class so each
     component's own hover transitions (e.g. card lift) take over again. */
}

/* ---------- Reduced motion: everything instant and readable ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .btn:hover, .card--link:hover, .footer-links a:hover, .brand:hover .brand__mark { transform: none !important; }
}
