/* =========================================================================
   HALLOWAY & FINCH — Law Firm & Professional Services Kit
   One stylesheet. No frameworks, no build step, no external requests.
   -------------------------------------------------------------------------
   HOW TO REBRAND
   Edit the six seed values in section 01 (BRAND SEEDS). Every colour,
   piece of generated artwork, button, rule and shadow in both the light
   and dark themes is derived from them.
   -------------------------------------------------------------------------
   CONTENTS
     01  Brand seeds
     02  Light theme tokens
     03  Dark theme tokens
     04  Reset & base
     05  Typography
     06  Layout primitives
     07  Buttons & links
     08  Header, navigation, mobile nav
     09  Hero
     10  Generated artwork (portraits, interiors, facade, map)
     11  Cards & grids
     12  Practice areas
     13  Attorneys
     14  Credentials, stats, timeline
     15  Testimonials & quotes
     16  Insights & articles
     17  Forms
     18  Accordion & tabs
     19  Call-to-action bands
     20  Footer & disclaimer
     21  Utilities
     22  Motion & reveal
     23  Print
   ========================================================================= */


/* =========================================================================
   01. BRAND SEEDS — edit these six lines to rebrand the whole kit
   ========================================================================= */

:root {
  /* 1 — Paper. The warm stock the light theme is printed on. */
  --brand-paper: #f7f5f0;
  /* 2 — Ink. Body and headline colour in the light theme. */
  --brand-ink: #15191f;
  /* 3 — Navy. The firm colour: headers, dark bands, primary buttons. */
  --brand-navy: #1b2a41;
  /* 4 — Accent. Burgundy. Links, emphasis, the one warm colour. */
  --brand-accent: #7c2434;
  /* 5 — Metal. Brass rules, small caps flourishes, dark-theme links. */
  --brand-metal: #9a7b3f;
  /* 6 — Display face. Headlines, the wordmark, pull quotes. */
  --brand-font-display: "Iowan Old Style", "Hoefler Text", Georgia, "Times New Roman", Times, serif;
}


/* =========================================================================
   02. DERIVED TOKENS — LIGHT THEME
   ========================================================================= */

:root {
  color-scheme: light;

  /* Faces */
  --font-display: var(--brand-font-display);
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Surfaces */
  --bg: var(--brand-paper);
  --bg-sunk: #efebe3;
  --bg-raised: #fffdf9;
  --bg-veil: rgba(247, 245, 240, 0.86);
  --bg-ink: var(--brand-navy);
  --bg-ink-deep: #142031;

  /* Text */
  --fg: var(--brand-ink);
  --fg-muted: #4c535e;
  --fg-faint: #61676e;
  --fg-on-ink: #f2efe8;
  --fg-on-ink-muted: #b3bcca;

  /* Rules */
  --line: rgba(21, 25, 31, 0.13);
  --line-strong: rgba(21, 25, 31, 0.28);
  --line-on-ink: rgba(242, 239, 232, 0.18);
  --line-on-ink-strong: rgba(242, 239, 232, 0.34);

  /* Accents */
  --navy: var(--brand-navy);
  --accent: var(--brand-accent);
  --accent-hover: #641a29;
  --accent-text: var(--brand-accent);
  --accent-soft: rgba(124, 36, 52, 0.08);
  --accent-fg: #fff8f6;
  --metal: var(--brand-metal);
  /* Brass comes in three weights so it always clears 4.5:1 as text:
     --metal        decorative rules, borders and large display numerals
     --metal-text   small brass text on the paper background
     --metal-ink    small brass text and links on the dark bands */
  --metal-text: #7d6129;
  --metal-ink: #c9a464;
  --metal-soft: rgba(154, 123, 63, 0.16);
  --focus: var(--brand-accent);

  /* Generated artwork */
  --art-bg-1: #2b3d55;
  --art-bg-2: #16223a;
  --art-glow: rgba(214, 199, 170, 0.5);
  --art-figure-1: #0f1826;
  --art-figure-2: #1a2739;
  --art-figure-3: #4a5568;
  --art-figure-4: #d9d2c4;
  --art-stone: #ddd6c8;
  --art-stone-2: #c9c0ad;
  --art-stone-3: #b0a691;
  --art-shadow: rgba(12, 17, 26, 0.34);
  --art-metal: #b99a5c;
  --art-sky: #cfd8dd;
  --grain: 0.5;
  --art-vignette: rgba(10, 14, 22, 0.42);

  /* Shadows — quiet, printed, never a generic blur */
  --shadow-xs: 0 1px 2px rgba(21, 25, 31, 0.05);
  --shadow-sm: 0 1px 2px rgba(21, 25, 31, 0.05), 0 3px 12px -4px rgba(21, 25, 31, 0.09);
  --shadow-md: 0 2px 4px rgba(21, 25, 31, 0.04), 0 16px 40px -20px rgba(21, 25, 31, 0.28);
  --shadow-lg: 0 3px 8px rgba(21, 25, 31, 0.05), 0 40px 80px -36px rgba(21, 25, 31, 0.36);

  /* Geometry */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Measure & rhythm */
  --shell: 1240px;
  --shell-wide: 1440px;
  --shell-narrow: 760px;
  --gutter: clamp(1.15rem, 0.6rem + 2.4vw, 3rem);
  --section-y: clamp(3.6rem, 2.2rem + 5vw, 7.5rem);
  --section-y-tight: clamp(2.6rem, 1.8rem + 3vw, 4.75rem);

  /* Type scale */
  --step--2: clamp(0.72rem, 0.71rem + 0.06vw, 0.76rem);
  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.885rem);
  --step-0:  clamp(1rem, 0.975rem + 0.14vw, 1.075rem);
  --step-1:  clamp(1.12rem, 1.06rem + 0.3vw, 1.3rem);
  --step-2:  clamp(1.3rem, 1.18rem + 0.58vw, 1.68rem);
  --step-3:  clamp(1.55rem, 1.33rem + 1.05vw, 2.24rem);
  --step-4:  clamp(1.9rem, 1.5rem + 1.9vw, 3rem);
  --step-5:  clamp(2.3rem, 1.62rem + 3.1vw, 4.1rem);
  --step-6:  clamp(2.7rem, 1.72rem + 4.5vw, 5.2rem);

  /* Motion */
  --ease: cubic-bezier(0.33, 0.03, 0.2, 1);
  --dur: 0.32s;
}


/* =========================================================================
   03. DERIVED TOKENS — DARK THEME
   The dark theme is a night-time reading room: deep navy-black paper,
   warm brass rules, no neon. Declared twice so the OS preference and the
   explicit toggle both work, and so [data-theme="light"] always wins.
   ========================================================================= */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --bg: #0f141c;
    --bg-sunk: #0a0e15;
    --bg-raised: #161d27;
    --bg-veil: rgba(15, 20, 28, 0.88);
    --bg-ink: #131b28;
    --bg-ink-deep: #0b111b;

    --fg: #e9e6df;
    --fg-muted: #aab3c0;
    --fg-faint: #98a1ae;
    --fg-on-ink: #e9e6df;
    --fg-on-ink-muted: #a9b2c0;

    --line: rgba(233, 230, 223, 0.14);
    --line-strong: rgba(233, 230, 223, 0.3);
    --line-on-ink: rgba(233, 230, 223, 0.14);
    --line-on-ink-strong: rgba(233, 230, 223, 0.3);

    --navy: #22334d;
    --accent: #8f2e3e;
    --accent-hover: #a3384a;
    --accent-text: #d8a566;
    --accent-soft: rgba(216, 165, 102, 0.12);
    --accent-fg: #fdf6f4;
    --metal: #c9a464;
    --metal-text: #c9a464;
    --metal-ink: #c9a464;
    --metal-soft: rgba(201, 164, 100, 0.16);
    --focus: #d8a566;

    --art-bg-1: #223047;
    --art-bg-2: #0e1727;
    --art-glow: rgba(190, 160, 105, 0.4);
    --art-figure-1: #070c14;
    --art-figure-2: #121b29;
    --art-figure-3: #38445a;
    --art-figure-4: #b6ae9d;
    --art-stone: #9aa0a8;
    --art-stone-2: #7d838c;
    --art-stone-3: #62686f;
    --art-shadow: rgba(3, 6, 12, 0.5);
    --art-metal: #c9a464;
    --art-sky: #4a5766;
    --grain: 0.34;
    --art-vignette: rgba(3, 6, 12, 0.55);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 3px 12px -4px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 40px -20px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 3px 8px rgba(0, 0, 0, 0.45), 0 40px 80px -36px rgba(0, 0, 0, 0.8);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0f141c;
  --bg-sunk: #0a0e15;
  --bg-raised: #161d27;
  --bg-veil: rgba(15, 20, 28, 0.88);
  --bg-ink: #131b28;
  --bg-ink-deep: #0b111b;

  --fg: #e9e6df;
  --fg-muted: #aab3c0;
  --fg-faint: #98a1ae;
  --fg-on-ink: #e9e6df;
  --fg-on-ink-muted: #a9b2c0;

  --line: rgba(233, 230, 223, 0.14);
  --line-strong: rgba(233, 230, 223, 0.3);
  --line-on-ink: rgba(233, 230, 223, 0.14);
  --line-on-ink-strong: rgba(233, 230, 223, 0.3);

  --navy: #22334d;
  --accent: #8f2e3e;
  --accent-hover: #a3384a;
  --accent-text: #d8a566;
  --accent-soft: rgba(216, 165, 102, 0.12);
  --accent-fg: #fdf6f4;
  --metal: #c9a464;
  --metal-text: #c9a464;
  --metal-ink: #c9a464;
  --metal-soft: rgba(201, 164, 100, 0.16);
  --focus: #d8a566;

  --art-bg-1: #223047;
  --art-bg-2: #0e1727;
  --art-glow: rgba(190, 160, 105, 0.4);
  --art-figure-1: #070c14;
  --art-figure-2: #121b29;
  --art-figure-3: #38445a;
  --art-figure-4: #b6ae9d;
  --art-stone: #9aa0a8;
  --art-stone-2: #7d838c;
  --art-stone-3: #62686f;
  --art-shadow: rgba(3, 6, 12, 0.5);
  --art-metal: #c9a464;
  --art-sky: #4a5766;
  --grain: 0.34;
  --art-vignette: rgba(3, 6, 12, 0.55);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 3px 12px -4px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 40px -20px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 3px 8px rgba(0, 0, 0, 0.45), 0 40px 80px -36px rgba(0, 0, 0, 0.8);
}


/* =========================================================================
   04. RESET & BASE
   ========================================================================= */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.68;
  letter-spacing: 0.001em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

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

img { height: auto; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: 0; }

ul, ol { padding: 0; list-style: none; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: var(--section-y-tight);
}

::selection {
  background: var(--accent);
  color: var(--accent-fg);
}

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

:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 999;
  transform: translateY(-160%);
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s var(--ease);
}

.skip-link:focus { transform: translateY(0); }


/* =========================================================================
   05. TYPOGRAPHY
   ========================================================================= */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.012em;
  text-wrap: balance;
  color: var(--fg);
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.24; }
h4 { font-size: var(--step-1); line-height: 1.3; letter-spacing: -0.006em; }
h5 { font-size: var(--step-0); line-height: 1.4; }

p { text-wrap: pretty; }

p + p { margin-top: 1.05em; }

.display {
  font-family: var(--font-display);
  font-size: var(--step-6);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.62;
  color: var(--fg-muted);
  max-width: 62ch;
}

.lead--serif {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.5;
  color: var(--fg-muted);
  letter-spacing: -0.006em;
}

.prose { max-width: 68ch; }

.prose > * + * { margin-top: 1.15em; }

.prose h2 {
  font-size: var(--step-3);
  margin-top: 2.2em;
  margin-bottom: 0.1em;
}

.prose h3 {
  font-size: var(--step-1);
  margin-top: 1.9em;
  margin-bottom: 0.1em;
}

.prose p,
.prose li { color: var(--fg-muted); }

.prose strong { color: var(--fg); font-weight: 650; }

.prose ul,
.prose ol {
  padding-left: 1.35rem;
  display: grid;
  gap: 0.5rem;
}

.prose ul li { list-style: none; position: relative; }

.prose ul li::before {
  content: "";
  position: absolute;
  left: -1.05rem;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--metal);
}

.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--metal-text); font-variant-numeric: tabular-nums; }

.prose blockquote {
  border-left: 2px solid var(--metal);
  padding: 0.15rem 0 0.15rem 1.35rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--fg);
  font-style: italic;
}

/* Small-caps eyebrow with a brass rule — the kit's signature flourish */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 1.15rem;
}

.eyebrow::before {
  content: "";
  width: 2.1rem;
  height: 1px;
  flex: none;
  background: var(--metal);
}

.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 2.1rem;
  height: 1px;
  flex: none;
  background: var(--metal);
}

.eyebrow--on-ink { color: var(--fg-on-ink-muted); }

.overline {
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.num {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.rule--metal {
  height: 2px;
  width: 3rem;
  background: var(--metal);
  border-radius: 2px;
}


/* =========================================================================
   06. LAYOUT PRIMITIVES
   ========================================================================= */

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

.shell--wide { max-width: var(--shell-wide); }
.shell--narrow { max-width: var(--shell-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--section-y-tight); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

.section--sunk { background: var(--bg-sunk); }

.section--ink {
  background: var(--bg-ink);
  color: var(--fg-on-ink);
  position: relative;
  isolation: isolate;
}

.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink h4 { color: var(--fg-on-ink); }

.section--ink .lead,
.section--ink p { color: var(--fg-on-ink-muted); }

.section--ink .rule { background: var(--line-on-ink); }

.section--ink::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    radial-gradient(120% 90% at 8% 0%, rgba(201, 164, 100, 0.14), transparent 55%),
    radial-gradient(90% 80% at 100% 100%, rgba(124, 36, 52, 0.2), transparent 60%);
}

.section-head {
  display: grid;
  gap: 1.1rem;
  max-width: 60ch;
  margin-bottom: clamp(2.2rem, 1.4rem + 2vw, 3.6rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 1.4rem;
}

@media (min-width: 60em) {
  .section-head--split {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 3rem;
  }
  .section-head--split > :last-child { padding-bottom: 0.35rem; }
}

.grid { display: grid; gap: clamp(1.1rem, 0.7rem + 1.4vw, 2rem); }

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }

.stack { display: grid; gap: 1.1rem; align-content: start; }
.stack--sm { gap: 0.6rem; }
.stack--lg { gap: 1.9rem; }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cluster--gap-lg { gap: 1.4rem 2.2rem; }

.split {
  display: grid;
  gap: clamp(2rem, 1.2rem + 3.5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 62em) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--wide-left { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); }
  .split--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); }
  .split--sidebar { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); align-items: start; }
  .split--aside-left { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); align-items: start; }
}


/* =========================================================================
   07. BUTTONS & LINKS
   ========================================================================= */

a {
  color: var(--accent-text);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color 0.18s var(--ease);
}

a:hover { color: var(--accent-hover); }

.section--ink a { color: var(--metal-ink); }

.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  --btn-border: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.92em 1.65em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.15;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:active { transform: translateY(0); }

.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--primary {
  --btn-bg: var(--navy);
  --btn-border: var(--navy);
}

.btn--primary:hover {
  --btn-bg: var(--bg-ink-deep);
  --btn-border: var(--bg-ink-deep);
}

.btn--accent {
  --btn-bg: var(--accent);
  --btn-border: var(--accent);
  --btn-fg: var(--accent-fg);
}

.btn--accent:hover {
  --btn-bg: var(--accent-hover);
  --btn-border: var(--accent-hover);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-border: var(--line-strong);
}

.btn--ghost:hover {
  --btn-bg: var(--accent-soft);
  --btn-border: var(--accent-text);
  --btn-fg: var(--fg);
}

.btn--on-ink {
  --btn-bg: transparent;
  --btn-fg: var(--fg-on-ink);
  --btn-border: var(--line-on-ink-strong);
}

.btn--on-ink:hover {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-border: var(--metal);
  --btn-fg: #fff;
}

.btn--light {
  --btn-bg: var(--bg-raised);
  --btn-fg: var(--brand-navy);
  --btn-border: var(--bg-raised);
}

.btn--light:hover {
  --btn-bg: #fff;
  --btn-border: #fff;
}

.btn--sm { padding: 0.7em 1.15em; font-size: var(--step--2); }
.btn--lg { padding: 1.05em 2.1em; font-size: var(--step--1); }
.btn--block { width: 100%; }

/* Quiet text link with an arrow that travels on hover */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-text);
}

.arrow-link svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  transition: transform 0.24s var(--ease);
}

.arrow-link:hover svg { transform: translateX(4px); }

 /* Add --cover on a card's link to make the whole card clickable.
    The card itself must be position: relative. */
.arrow-link--cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--fg-muted);
  background: transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.icon-btn:hover {
  color: var(--fg);
  border-color: var(--line-strong);
  background: var(--bg-sunk);
}

.icon-btn svg { width: 1.15rem; height: 1.15rem; }

/* Theme toggle: swap the glyph on the resolved theme */
.theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle__moon { display: block; }
  :root[data-theme="dark"] .theme-toggle__sun { display: none; }
  :root[data-theme="dark"] .theme-toggle__moon { display: block; }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34em 0.75em;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--bg-raised);
  white-space: nowrap;
}

.tag--accent {
  color: var(--accent-text);
  border-color: color-mix(in srgb, var(--accent-text) 34%, transparent);
  background: var(--accent-soft);
}

/* Tags sit inside grid containers all over the kit; without this they
   stretch to the full column width. */
.stack > .tag,
.article-row__body > .tag,
.practice-detail__body > .tag { justify-self: start; }

.tag--metal {
  color: var(--metal-text);
  border-color: var(--metal-soft);
  background: var(--metal-soft);
}


/* =========================================================================
   08. HEADER, NAVIGATION, MOBILE NAV
   ========================================================================= */

.site-topbar {
  background: var(--bg-ink-deep);
  color: var(--fg-on-ink-muted);
  font-size: var(--step--2);
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.site-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 2.6rem;
  padding-block: 0.35rem;
}

.site-topbar__note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.site-topbar__note svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: none;
  color: var(--metal-ink);
}

.site-topbar__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-topbar a {
  color: var(--fg-on-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.site-topbar a:hover { color: var(--metal-ink); }
.site-topbar a svg { width: 0.95rem; height: 0.95rem; flex: none; }

@media (max-width: 61.99em) {
  .site-topbar__note { display: none; }
  .site-topbar__inner { justify-content: center; }
  .site-topbar__links { gap: 1.15rem; }
}

@media (max-width: 26em) {
  .site-topbar__links .is-optional { display: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg-veil);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
  }
}

.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.9rem;
  padding-block: 0.75rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--fg);
  flex: none;
}

.wordmark__mark {
  width: 2.05rem;
  height: 2.05rem;
  flex: none;
  color: var(--accent-text);
}

.wordmark__text { display: grid; gap: 0.12rem; }

.wordmark__name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.32rem);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1;
  white-space: nowrap;
}

.wordmark__sub {
  font-size: 0.585rem;
  font-weight: 700;
  letter-spacing: 0.235em;
  text-transform: uppercase;
  color: var(--fg-faint);
  line-height: 1;
  white-space: nowrap;
}

.wordmark:hover .wordmark__mark { color: var(--metal); }

@media (max-width: 22.5em) {
  .wordmark__mark { display: none; }
  .wordmark__name { font-size: 1.05rem; }
}

.nav--primary {
  display: none;
  align-items: center;
  gap: clamp(1.1rem, 0.2rem + 1.4vw, 2.1rem);
}

@media (min-width: 64em) {
  .nav--primary { display: flex; }
}

.nav__link {
  position: relative;
  padding-block: 0.4rem;
  font-size: var(--step--2);
  font-weight: 650;
  letter-spacing: 0.115em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg-muted);
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--metal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.26s var(--ease);
}

.nav__link:hover { color: var(--fg); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link[aria-current="page"] { color: var(--fg); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}

.header__cta { display: none; }

@media (min-width: 64em) {
  .header__cta { display: inline-flex; }
}

.nav-toggle { display: inline-grid; }

@media (min-width: 64em) {
  .nav-toggle { display: none; }
}

/* --- Mobile panel --- */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg-ink);
  color: var(--fg-on-ink);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-1.25rem);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}

.mobile-nav[data-open="true"] {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem var(--gutter);
  border-bottom: 1px solid var(--line-on-ink);
}

.mobile-nav__head .wordmark { color: var(--fg-on-ink); }
.mobile-nav__head .wordmark__mark { color: var(--metal-ink); }
.mobile-nav__head .wordmark__sub { color: var(--fg-on-ink-muted); }

.mobile-nav .icon-btn {
  color: var(--fg-on-ink);
  border-color: var(--line-on-ink-strong);
}

.mobile-nav .icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mobile-nav__body {
  padding: 1.6rem var(--gutter) 2rem;
  display: grid;
  align-content: start;
  gap: 0.15rem;
}

.mobile-nav__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.92rem 0;
  border-bottom: 1px solid var(--line-on-ink);
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--fg-on-ink);
  text-decoration: none;
}

.mobile-nav__link span {
  font-family: var(--font-body);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-on-ink-muted);
}

.mobile-nav__link:hover,
.mobile-nav__link[aria-current="page"] { color: var(--metal-ink); }

.mobile-nav__foot {
  padding: 1.4rem var(--gutter) 2.2rem;
  border-top: 1px solid var(--line-on-ink);
  display: grid;
  gap: 1rem;
}

.mobile-nav__contact {
  display: grid;
  gap: 0.3rem;
  font-size: var(--step--1);
  color: var(--fg-on-ink-muted);
}

.mobile-nav__contact a {
  color: var(--fg-on-ink);
  text-decoration: none;
  font-weight: 600;
}

.mobile-nav__contact a:hover { color: var(--metal-ink); }


/* =========================================================================
   09. HERO & PAGE HEADS
   ========================================================================= */

.hero {
  position: relative;
  background: var(--bg-ink);
  color: var(--fg-on-ink);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(90% 120% at 78% 0%, rgba(201, 164, 100, 0.16), transparent 58%),
    radial-gradient(80% 100% at 0% 100%, rgba(124, 36, 52, 0.26), transparent 62%),
    linear-gradient(168deg, var(--bg-ink) 0%, var(--bg-ink-deep) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: calc(var(--grain) * 0.34);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.hero__inner {
  display: grid;
  gap: clamp(2.4rem, 1.2rem + 4vw, 4.5rem);
  padding-block: clamp(3.2rem, 2rem + 5vw, 6.5rem);
  align-items: center;
}

@media (min-width: 64em) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    padding-block: clamp(4rem, 2rem + 6vw, 7.5rem);
  }
}

.hero__copy { max-width: 44ch; }

.hero h1 {
  color: var(--fg-on-ink);
  /* A shade under --step-6: a firm's headline should read as confident,
     not as a poster. */
  font-size: clamp(2.35rem, 1.55rem + 3.3vw, 4.3rem);
  line-height: 1.06;
  letter-spacing: -0.019em;
}

.hero h1 em {
  font-style: italic;
  color: var(--metal-ink);
}

.hero__lead {
  margin-top: 1.5rem;
  font-size: var(--step-1);
  line-height: 1.62;
  color: var(--fg-on-ink-muted);
  max-width: 48ch;
}

.hero__actions {
  margin-top: 2.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__proof {
  margin-top: clamp(2.4rem, 1.6rem + 2vw, 3.4rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-on-ink);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 1.4rem 1.8rem;
}

.hero__proof-item { display: grid; gap: 0.25rem; }

.hero__proof-value {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
  color: var(--metal-ink);
}

.hero__proof-label {
  font-size: var(--step--2);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fg-on-ink-muted);
  line-height: 1.4;
}

.hero__art { position: relative; }

/* Interior page header */
.page-head {
  background: var(--bg-ink);
  color: var(--fg-on-ink);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(78% 130% at 88% 6%, rgba(201, 164, 100, 0.15), transparent 60%),
    radial-gradient(70% 110% at 4% 100%, rgba(124, 36, 52, 0.24), transparent 62%),
    linear-gradient(165deg, var(--bg-ink) 0%, var(--bg-ink-deep) 100%);
}

.page-head__inner {
  padding-block: clamp(2.6rem, 1.6rem + 4vw, 5.4rem);
  display: grid;
  gap: 1.35rem;
  max-width: 66ch;
}

.page-head h1 {
  color: var(--fg-on-ink);
  font-size: var(--step-5);
}

.page-head__lead {
  font-size: var(--step-1);
  line-height: 1.62;
  color: var(--fg-on-ink-muted);
  max-width: 56ch;
}

.page-head--wide .page-head__inner { max-width: none; }

.breadcrumb {
  font-size: var(--step--2);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg-on-ink-muted);
}

.breadcrumb li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--metal);
  flex: none;
}

.breadcrumb a {
  color: var(--fg-on-ink-muted);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover { color: var(--metal-ink); }

.breadcrumb [aria-current="page"] { color: var(--fg-on-ink); font-weight: 600; }


/* =========================================================================
   10. GENERATED ARTWORK
   Every image in this kit is drawn with CSS and inline SVG — no files, no
   requests, nothing to go missing. Each block is an art-directed stand-in
   for a real photograph; see the README for how to swap one out.
   ========================================================================= */

.artwork {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(62% 48% at 50% 26%, var(--art-glow), transparent 72%),
    linear-gradient(166deg, var(--art-bg-1) 0%, var(--art-bg-2) 100%);
  box-shadow: var(--shadow-md);
}

/* Grain + vignette, painted over the figure so it reads as a photograph */
.artwork::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image:
    radial-gradient(118% 96% at 50% 34%, transparent 42%, var(--art-vignette) 100%);
}

.artwork__grain {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: calc(var(--grain) * 0.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23g)' opacity='0.55'/%3E%3C/svg%3E");
}

/* Thin brass hairline inside the edge */
.artwork--framed { box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(201, 164, 100, 0.28); }

.artwork__svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
}

/* --- Portrait ---------------------------------------------------------- */

.portrait {
  aspect-ratio: 4 / 5;
}

/* Floor light pooling behind the figure */
.portrait::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 130%;
  height: 48%;
  transform: translateX(-50%);
  z-index: 1;
  background: radial-gradient(60% 100% at 50% 100%, rgba(0, 0, 0, 0.28), transparent 72%);
}

.portrait--wide { aspect-ratio: 3 / 2; }
.portrait--square { aspect-ratio: 1 / 1; }

/* Tone variants — vary the backdrop so a team grid never looks repetitive.
   All six are drawn from the same restrained palette. */
.portrait--slate  { --art-bg-1: #35404f; --art-bg-2: #1a222d; }
.portrait--navy   { --art-bg-1: #2b3d55; --art-bg-2: #16223a; }
.portrait--stone  { --art-bg-1: #6d6558; --art-bg-2: #35302a; --art-glow: rgba(226, 213, 186, 0.42); }
.portrait--forest { --art-bg-1: #33453f; --art-bg-2: #18241f; }
.portrait--claret { --art-bg-1: #4b3038; --art-bg-2: #241419; }
.portrait--ash    { --art-bg-1: #4a4c52; --art-bg-2: #232529; }

:root[data-theme="dark"] .portrait--slate  { --art-bg-1: #2a3441; --art-bg-2: #121820; }
:root[data-theme="dark"] .portrait--stone  { --art-bg-1: #524c42; --art-bg-2: #26221d; }
:root[data-theme="dark"] .portrait--forest { --art-bg-1: #27342f; --art-bg-2: #111a16; }
:root[data-theme="dark"] .portrait--claret { --art-bg-1: #3a252b; --art-bg-2: #1a0f13; }
:root[data-theme="dark"] .portrait--ash    { --art-bg-1: #3a3c41; --art-bg-2: #1a1c1f; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .portrait--slate  { --art-bg-1: #2a3441; --art-bg-2: #121820; }
  :root:not([data-theme="light"]) .portrait--stone  { --art-bg-1: #524c42; --art-bg-2: #26221d; }
  :root:not([data-theme="light"]) .portrait--forest { --art-bg-1: #27342f; --art-bg-2: #111a16; }
  :root:not([data-theme="light"]) .portrait--claret { --art-bg-1: #3a252b; --art-bg-2: #1a0f13; }
  :root:not([data-theme="light"]) .portrait--ash    { --art-bg-1: #3a3c41; --art-bg-2: #1a1c1f; }
}

/* --- Scene artworks ---------------------------------------------------- */

.scene { aspect-ratio: 4 / 5; }
.scene--wide { aspect-ratio: 16 / 10; }
.scene--panorama { aspect-ratio: 21 / 9; }
.scene--tall { aspect-ratio: 3 / 4; }

@media (max-width: 47.99em) {
  .scene--tall { aspect-ratio: 4 / 3; }
}

.scene--map {
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, var(--art-bg-1), var(--art-bg-2));
}

/* --- Hero art plate: portrait on an offset brass rule ------------------ */

.art-plate { position: relative; }

.art-plate::before {
  content: "";
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border: 1px solid rgba(201, 164, 100, 0.4);
  border-radius: var(--radius-sm);
  z-index: 0;
}

.art-plate > .artwork { position: relative; z-index: 1; }

@media (max-width: 47.99em) {
  .art-plate::before { inset: 0.9rem -0.9rem -0.9rem 0.9rem; }
}

/* A small floating credential card overlapping the art */
.art-badge {
  position: absolute;
  z-index: 5;
  right: clamp(-1rem, -0.4rem - 1vw, 0rem);
  bottom: clamp(-1rem, -0.4rem - 1vw, 0rem);
  background: var(--bg-raised);
  color: var(--fg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--metal);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.9rem 1.15rem;
  display: grid;
  gap: 0.15rem;
  max-width: 15rem;
}

.art-badge__value {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1;
}

.art-badge__label {
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  line-height: 1.35;
}

@media (max-width: 47.99em) {
  .art-badge { right: 0.75rem; bottom: 0.75rem; padding: 0.7rem 0.9rem; }
}

/* --- Article thumbnail: a paper-stack motif with a ghost numeral ------- */

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: linear-gradient(158deg, var(--thumb-1, #2b3d55), var(--thumb-2, #16223a));
}

.thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 1.35rem, 1.35rem 100%;
  opacity: 0.65;
  mask-image: linear-gradient(120deg, #000 10%, transparent 78%);
  -webkit-mask-image: linear-gradient(120deg, #000 10%, transparent 78%);
}

/* The sheets of paper */
.thumb::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -46%;
  width: 68%;
  height: 128%;
  background: rgba(255, 255, 255, 0.09);
  border-top: 1px solid rgba(201, 164, 100, 0.5);
  transform: rotate(-14deg);
  box-shadow: -1.6rem 1.6rem 0 rgba(255, 255, 255, 0.055), -3.2rem 3.2rem 0 rgba(255, 255, 255, 0.03);
}

.thumb__glyph {
  position: absolute;
  left: clamp(0.9rem, 0.4rem + 1.6vw, 1.5rem);
  bottom: -0.24em;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 3rem + 9vw, 8rem);
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.13);
  letter-spacing: -0.04em;
  user-select: none;
}

.thumb__tag {
  position: absolute;
  z-index: 3;
  top: 0.85rem;
  left: 0.85rem;
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  padding: 0.3em 0.72em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.thumb--a { --thumb-1: #2b3d55; --thumb-2: #16223a; }
.thumb--b { --thumb-1: #4b3038; --thumb-2: #241419; }
.thumb--c { --thumb-1: #33453f; --thumb-2: #18241f; }
.thumb--d { --thumb-1: #5b5346; --thumb-2: #2b2721; }
.thumb--e { --thumb-1: #3a4150; --thumb-2: #1d2028; }
.thumb--f { --thumb-1: #43364d; --thumb-2: #1f1826; }


/* =========================================================================
   11. CARDS
   ========================================================================= */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.4rem, 1rem + 1.1vw, 2.1rem);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.24s var(--ease), box-shadow 0.24s var(--ease),
              transform 0.24s var(--ease);
}

.card--link:hover {
  border-color: color-mix(in srgb, var(--metal) 55%, var(--line));
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card--link:focus-within {
  border-color: var(--focus);
  box-shadow: var(--shadow-md);
}

.card--flush { padding: 0; overflow: hidden; }
.card--flush .card__body { padding: clamp(1.35rem, 1rem + 1vw, 1.85rem); display: grid; gap: 0.7rem; }

.card--plain { background: transparent; border: 0; box-shadow: none; padding: 0; }

.card__title { font-size: var(--step-1); }
.card__title a { color: inherit; text-decoration: none; }

.card__text { color: var(--fg-muted); font-size: var(--step--1); line-height: 1.65; }

.card__foot {
  margin-top: auto;
  padding-top: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  font-size: var(--step--2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.card__meta > * { display: inline-flex; align-items: center; gap: 0.4rem; }

.card__meta svg { width: 0.9rem; height: 0.9rem; color: var(--metal); }

.card--ink {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-on-ink);
  color: var(--fg-on-ink);
}

.card--ink .card__text { color: var(--fg-on-ink-muted); }
.card--ink .card__title { color: var(--fg-on-ink); }


/* =========================================================================
   12. PRACTICE AREAS
   ========================================================================= */

.practice-card {
  position: relative;
  display: grid;
  gap: 0.95rem;
  align-content: start;
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-top: 2px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-top-color 0.28s var(--ease), box-shadow 0.28s var(--ease),
              transform 0.28s var(--ease);
}

.practice-card:hover {
  border-top-color: var(--metal);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.practice-card:focus-within {
  border-top-color: var(--focus);
  box-shadow: var(--shadow-md);
}

.practice-card__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid color-mix(in srgb, var(--accent-text) 22%, transparent);
}

.practice-card__icon svg { width: 1.5rem; height: 1.5rem; }

.practice-card h3 { font-size: var(--step-1); }
.practice-card h3 a { color: inherit; text-decoration: none; }

.practice-card p { color: var(--fg-muted); font-size: var(--step--1); line-height: 1.68; }

.practice-card__list {
  display: grid;
  gap: 0.4rem;
  font-size: var(--step--1);
  color: var(--fg-muted);
}

.practice-card__list li {
  position: relative;
  padding-left: 1.1rem;
  line-height: 1.5;
}

.practice-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--metal);
}

/* Detailed practice section on practice-areas.html */
.practice-detail {
  display: grid;
  gap: clamp(1.6rem, 1rem + 2.4vw, 3.2rem);
  padding-block: clamp(2.4rem, 1.6rem + 2.6vw, 4rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 7rem;
}

@media (min-width: 60em) {
  .practice-detail { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
}

.practice-detail__aside { display: grid; gap: 1rem; align-content: start; }

@media (min-width: 60em) {
  .practice-detail__aside { position: sticky; top: 7rem; }
}

.practice-detail__index {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
  color: var(--metal);
}

.practice-detail__body { display: grid; gap: 1.5rem; }

.practice-detail h2 { font-size: var(--step-3); }

.practice-detail__grid {
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
}

.practice-detail__col h4 {
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 0.6rem;
}

.practice-detail__col ul { display: grid; gap: 0.4rem; font-size: var(--step--1); color: var(--fg-muted); }

.practice-detail__col li {
  position: relative;
  padding-left: 1.05rem;
  line-height: 1.5;
}

.practice-detail__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 1px;
  background: var(--metal);
}


/* =========================================================================
   13. ATTORNEYS
   ========================================================================= */

.attorney-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1.15rem;
}

.attorney-card .artwork {
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.attorney-card:hover .artwork {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.attorney-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
}

.attorney-card__name {
  font-size: var(--step-1);
  letter-spacing: -0.004em;
}

.attorney-card__name a { color: inherit; text-decoration: none; }

.attorney-card__role {
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.attorney-card__focus {
  font-size: var(--step--1);
  color: var(--fg-muted);
  line-height: 1.6;
}

.attorney-card__meta {
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.3rem;
  align-content: end;
  font-size: var(--step--2);
  color: var(--fg-faint);
  line-height: 1.5;
}

.attorney-card__meta dt {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  opacity: 0.85;
}

.attorney-card__meta dd { margin: 0; color: var(--fg-muted); }

.attorney-card__row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
}

/* Attorney detail hero */
.profile-head {
  display: grid;
  gap: clamp(1.8rem, 1.2rem + 2.6vw, 3.4rem);
  align-items: start;
}

@media (min-width: 60em) {
  .profile-head { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); }
}

@media (min-width: 78em) {
  .profile-head { grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); }
}

.profile-head__name {
  font-size: var(--step-5);
  line-height: 1.05;
}

.profile-head__role {
  margin-top: 0.7rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--metal-ink);
}

.profile-contact {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-on-ink);
  border-radius: var(--radius-sm);
}

.profile-contact__row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--step--1);
  color: var(--fg-on-ink-muted);
}

.profile-contact__row svg { width: 1.05rem; height: 1.05rem; flex: none; color: var(--metal-ink); }
.profile-contact__row a { color: var(--fg-on-ink); text-decoration: none; }
.profile-contact__row a:hover { color: var(--metal-ink); text-decoration: underline; }

.profile-nav {
  position: sticky;
  top: 5rem;
  z-index: 20;
  background: var(--bg-veil);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.profile-nav__list {
  display: flex;
  gap: 1.6rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 0.9rem;
}

.profile-nav__list::-webkit-scrollbar { display: none; }

.profile-nav__list a {
  font-size: var(--step--2);
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg-muted);
  white-space: nowrap;
  padding-bottom: 0.2rem;
  border-bottom: 1.5px solid transparent;
}

.profile-nav__list a:hover { color: var(--fg); border-bottom-color: var(--metal); }


/* =========================================================================
   14. CREDENTIALS, STATS, TIMELINE
   ========================================================================= */

/* Dotted-leader credential rows — a nod to a printed CV */
.credentials { display: grid; gap: 0.15rem; }

.credential {
  display: grid;
  gap: 0.15rem 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 42em) {
  .credential { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
}

.credential__title {
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--fg);
}

.credential__sub {
  font-size: var(--step--1);
  color: var(--fg-muted);
  line-height: 1.55;
}

.credential__year {
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  color: var(--fg-faint);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1px;
  background: var(--line-on-ink);
  border: 1px solid var(--line-on-ink);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.stat {
  background: var(--bg-ink);
  padding: clamp(1.35rem, 1rem + 1.2vw, 2.1rem);
  display: grid;
  gap: 0.4rem;
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1;
  color: var(--metal-ink);
  letter-spacing: -0.02em;
}

.stat__label {
  font-size: var(--step--2);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fg-on-ink-muted);
  line-height: 1.45;
}

.stat__note {
  font-size: var(--step--1);
  color: var(--fg-on-ink-muted);
  line-height: 1.55;
  opacity: 0.82;
}

/* Light variant for use on paper sections */
.stat-band--paper { background: var(--line); border-color: var(--line); }
.stat-band--paper .stat { background: var(--bg-raised); }
.stat-band--paper .stat__value { color: var(--accent-text); }
.stat-band--paper .stat__label { color: var(--fg-faint); }
.stat-band--paper .stat__note { color: var(--fg-muted); }

/* Numbered feature rows (why choose us) */
.feature {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--line);
  transition: border-color 0.24s var(--ease);
}

.feature:hover { border-left-color: var(--metal); }

.feature__index {
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  color: var(--metal-text);
}

.section--ink .feature__index { color: var(--metal-ink); }

.feature h3 { font-size: var(--step-1); }

.feature p { color: var(--fg-muted); font-size: var(--step--1); line-height: 1.68; }

.section--ink .feature { border-left-color: var(--line-on-ink); }
.section--ink .feature p { color: var(--fg-on-ink-muted); }

/* Firm history timeline */
.timeline {
  display: grid;
  gap: 0;
  position: relative;
}

.timeline__item {
  display: grid;
  gap: 0.5rem 2rem;
  padding: 1.6rem 0 1.6rem 2.1rem;
  position: relative;
  border-left: 1px solid var(--line);
}

@media (min-width: 52em) {
  .timeline__item {
    grid-template-columns: 7rem minmax(0, 1fr);
    padding-left: 3rem;
  }
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 2.05rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--metal);
}

.timeline__item:last-child { border-left-color: transparent; }

.timeline__item:last-child::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 2.05rem;
  background: var(--line);
}

.timeline__year {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.1;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

.timeline__body { display: grid; gap: 0.5rem; }
.timeline__body h3 { font-size: var(--step-1); }
.timeline__body p { color: var(--fg-muted); font-size: var(--step--1); line-height: 1.68; }

/* Awards / recognition list */
.award-list { display: grid; gap: 0; }

.award {
  display: grid;
  gap: 0.3rem 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

@media (min-width: 48em) {
  .award { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; }
}

.award__name { font-family: var(--font-display); font-size: var(--step-1); }
.award__body { font-size: var(--step--1); color: var(--fg-muted); line-height: 1.6; }
.award__year {
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  color: var(--metal-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}


/* =========================================================================
   15. TESTIMONIALS & QUOTES
   ========================================================================= */

.quote {
  display: grid;
  gap: 1.6rem;
  position: relative;
}

.quote__mark {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 0.6;
  color: var(--metal);
  height: 2rem;
}

.quote__text {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.42;
  letter-spacing: -0.008em;
  color: var(--fg);
  max-width: 30ch;
}

.section--ink .quote__text { color: var(--fg-on-ink); }

.quote--lg .quote__text { font-size: var(--step-4); max-width: 22ch; }

.quote__cite {
  display: grid;
  gap: 0.2rem;
  font-style: normal;
}

.quote__author {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--fg);
}

.section--ink .quote__author { color: var(--fg-on-ink); }

.quote__role {
  font-size: var(--step--2);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.section--ink .quote__role { color: var(--fg-on-ink-muted); }

.testimonial-card {
  display: grid;
  gap: 1.15rem;
  align-content: start;
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.testimonial-card__text {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--fg);
}

.testimonial-card__text::before { content: "\201C"; }
.testimonial-card__text::after { content: "\201D"; }

/* Case-result cards */
.result {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: clamp(1.35rem, 1rem + 1vw, 1.9rem);
  border: 1px solid var(--line-on-ink);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
}

.result__value {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
  color: var(--metal-ink);
}

.result__title {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--fg-on-ink);
}

.result__text {
  font-size: var(--step--1);
  color: var(--fg-on-ink-muted);
  line-height: 1.6;
}


/* =========================================================================
   16. INSIGHTS & ARTICLES
   ========================================================================= */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 1.4rem + 1.6vw, 3rem);
}

.filter-btn {
  padding: 0.55em 1.1em;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: var(--step--2);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
              background-color 0.2s var(--ease);
}

.filter-btn:hover {
  color: var(--fg);
  border-color: var(--line-strong);
}

.filter-btn[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

:root[data-theme="dark"] .filter-btn[aria-pressed="true"] { color: var(--fg-on-ink); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .filter-btn[aria-pressed="true"] { color: var(--fg-on-ink); }
}

/* The lead article — image left, copy right */
.featured-article {
  display: grid;
  gap: clamp(1.6rem, 1rem + 2.4vw, 3rem);
  align-items: center;
  padding-bottom: clamp(2.2rem, 1.6rem + 2vw, 3.4rem);
  margin-bottom: clamp(2.2rem, 1.6rem + 2vw, 3.4rem);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 60em) {
  .featured-article { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}

.featured-article .thumb { border-radius: var(--radius-sm); }

.featured-article__body { display: grid; gap: 1rem; align-content: center; }
.featured-article__body h3 { font-size: var(--step-3); }
.featured-article__body h3 a { color: inherit; text-decoration: none; }
.featured-article__body h3 a:hover { color: var(--accent-text); }

/* Article list rows (secondary items) */
.article-list { display: grid; gap: 0; }

.article-row {
  position: relative;
  display: grid;
  gap: 0.6rem 2.5rem;
  padding: clamp(1.4rem, 1.1rem + 1vw, 2.1rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background-color 0.24s var(--ease);
}

@media (min-width: 54em) {
  .article-row { grid-template-columns: 9.5rem minmax(0, 1fr) auto; }
}

.article-row:hover { background: var(--accent-soft); }

.article-row__date {
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
  padding-top: 0.35em;
}

.article-row__body { display: grid; gap: 0.5rem; }
.article-row__body h3 { font-size: var(--step-1); }
.article-row__body h3 a { color: inherit; text-decoration: none; }
.article-row__body p { color: var(--fg-muted); font-size: var(--step--1); line-height: 1.65; }

.article-row__aside {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg-faint);
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.article-row.is-hidden,
.featured-article.is-hidden { display: none; }

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: clamp(2.2rem, 1.6rem + 2vw, 3.2rem);
}

.pagination a,
.pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--step--1);
  text-decoration: none;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}

.pagination a:hover { border-color: var(--line-strong); color: var(--fg); }

.pagination [aria-current="page"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.pagination .is-disabled { opacity: 0.45; pointer-events: none; }

/* Newsletter sign-up strip */
.subscribe {
  display: grid;
  gap: 1.4rem;
  align-items: center;
  padding: clamp(1.8rem, 1.3rem + 2vw, 3rem);
  border: 1px solid var(--line);
  border-left: 3px solid var(--metal);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
}

@media (min-width: 56em) {
  .subscribe { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 3rem; }
}

.subscribe__form { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.subscribe__form .input { flex: 1 1 11rem; }


/* =========================================================================
   17. FORMS
   ========================================================================= */

.form { display: grid; gap: 1.35rem; }

.form-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.field { display: grid; gap: 0.45rem; }

.field__label {
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.field__label .req { color: var(--accent-text); margin-left: 0.15em; }

.field__hint {
  font-size: var(--step--1);
  color: var(--fg-faint);
  line-height: 1.5;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.85em 1em;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-size: var(--step-0);
  line-height: 1.5;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background-color 0.2s var(--ease);
}

.input::placeholder,
.textarea::placeholder { color: var(--fg-faint); opacity: 0.75; }

.input:hover,
.select:hover,
.textarea:hover { border-color: var(--fg-faint); }

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent);
}

.textarea { min-height: 9.5rem; resize: vertical; }

/* Native select, restyled without losing the OS control */
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 1.25rem) calc(50% + 2px),
    calc(100% - 0.95rem) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea { border-color: var(--accent); }

.field__error {
  display: none;
  font-size: var(--step--1);
  color: var(--accent-text);
  font-weight: 600;
}

.field.is-invalid .field__error { display: block; }

/* Radio / checkbox groups drawn as selectable cards */
.choice-group {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  font-size: var(--step--1);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.choice:hover { border-color: var(--fg-faint); }

.choice input {
  appearance: none;
  -webkit-appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  margin: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.choice input[type="checkbox"] { border-radius: var(--radius-xs); }

.choice input:checked {
  border-color: var(--accent-text);
  box-shadow: inset 0 0 0 3.5px var(--bg-raised), inset 0 0 0 1rem var(--accent-text);
}

.choice input[type="checkbox"]:checked {
  box-shadow: inset 0 0 0 2px var(--bg-raised), inset 0 0 0 1rem var(--accent-text);
}

.choice:has(input:checked) {
  border-color: var(--accent-text);
  background: var(--accent-soft);
}

.choice input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Consent row — checkbox beside a paragraph of small print */
.consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  font-size: var(--step--1);
  color: var(--fg-muted);
  line-height: 1.6;
}

.consent input {
  appearance: none;
  -webkit-appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-xs);
  cursor: pointer;
  flex: none;
}

.consent input:checked {
  border-color: var(--accent-text);
  box-shadow: inset 0 0 0 2px var(--bg-raised), inset 0 0 0 1rem var(--accent-text);
}

.consent input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 0.4rem;
}

.form__note {
  font-size: var(--step--1);
  color: var(--fg-faint);
  line-height: 1.55;
}

/* Success / error message revealed by main.js */
.form-status {
  display: none;
  gap: 0.85rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--metal);
  border-radius: var(--radius-sm);
  background: var(--metal-soft);
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--fg);
}

.form-status.is-visible { display: grid; }
.form-status strong { display: block; font-size: var(--step-0); margin-bottom: 0.2rem; }
.form-status svg { width: 1.25rem; height: 1.25rem; color: var(--metal); }


/* =========================================================================
   18. ACCORDION, OFFICES, CALLOUTS
   ========================================================================= */

.accordion { display: grid; gap: 0; border-top: 1px solid var(--line); }

.accordion__item { border-bottom: 1px solid var(--line); }

.accordion__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--fg);
  transition: color 0.2s var(--ease);
}

.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary:hover { color: var(--accent-text); }

.accordion__item summary::after {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  flex: none;
  border-right: 1.5px solid var(--metal);
  border-bottom: 1.5px solid var(--metal);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.26s var(--ease);
}

.accordion__item[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }

.accordion__body {
  padding-bottom: 1.5rem;
  max-width: 68ch;
  color: var(--fg-muted);
  font-size: var(--step--1);
  line-height: 1.7;
}

.accordion__body > * + * { margin-top: 0.85em; }

/* Office location card */
.office {
  display: grid;
  gap: 1.1rem;
  align-content: start;
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.office--primary { border-top: 2px solid var(--metal); }

.office__name { font-size: var(--step-1); }

.office__tag {
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.office__address {
  font-style: normal;
  color: var(--fg-muted);
  font-size: var(--step--1);
  line-height: 1.7;
}

.office__address a { color: var(--fg-muted); text-decoration: none; }
.office__address a:hover { color: var(--accent-text); text-decoration: underline; }

.hours {
  display: grid;
  gap: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
}

.hours__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: var(--fg-muted);
}

.hours__row dt { color: var(--fg-faint); }
.hours__row dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours__row--closed dd { color: var(--fg-faint); }

/* Contact method rows with an icon */
.contact-list { display: grid; gap: 1.15rem; }

.contact-item {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.contact-item__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-sunk);
  color: var(--accent-text);
}

.contact-item__icon svg { width: 1.2rem; height: 1.2rem; }

.contact-item__label {
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 0.15rem;
}

.contact-item__value {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--fg);
  text-decoration: none;
  line-height: 1.3;
}

a.contact-item__value:hover { color: var(--accent-text); }

.contact-item__note { font-size: var(--step--1); color: var(--fg-muted); margin-top: 0.15rem; }

/* Small bordered callout for asides and legal notes */
.callout {
  padding: clamp(1.2rem, 1rem + 0.8vw, 1.75rem);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--bg-sunk);
  font-size: var(--step--1);
  line-height: 1.65;
  color: var(--fg-muted);
}

.callout__title {
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.4rem;
}

.callout--metal { border-left-color: var(--metal); }

/* Map plate — a drawn street grid, ready to swap for an embed */
.map-plate { position: relative; }

.map-plate__pin {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  color: var(--accent);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55));
}

.map-plate__pin svg { width: 3.1rem; height: 3.1rem; stroke-width: 1.2; }

.map-plate__label {
  position: absolute;
  z-index: 5;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-veil);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: var(--step--1);
  color: var(--fg);
}


/* =========================================================================
   19. CALL-TO-ACTION BANDS
   ========================================================================= */

.cta-band {
  position: relative;
  isolation: isolate;
  background: var(--bg-ink);
  color: var(--fg-on-ink);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 130% at 82% 0%, rgba(201, 164, 100, 0.16), transparent 58%),
    radial-gradient(80% 120% at 6% 100%, rgba(124, 36, 52, 0.28), transparent 62%),
    linear-gradient(160deg, var(--bg-ink) 0%, var(--bg-ink-deep) 100%);
}

.cta-band__inner {
  display: grid;
  gap: clamp(1.8rem, 1.2rem + 2.4vw, 3.5rem);
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
  align-items: center;
}

@media (min-width: 60em) {
  .cta-band__inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .cta-band__actions { justify-self: end; }
}

.cta-band h2 { color: var(--fg-on-ink); font-size: var(--step-4); max-width: 20ch; }
.cta-band p { color: var(--fg-on-ink-muted); max-width: 52ch; margin-top: 1rem; }

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* Compact inline CTA used at the end of a practice-area block */
.inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-sunk);
}

.inline-cta p {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--fg);
  max-width: 40ch;
}


/* =========================================================================
   20. FOOTER & DISCLAIMERS
   ========================================================================= */

.site-footer {
  background: var(--bg-ink-deep);
  color: var(--fg-on-ink-muted);
  font-size: var(--step--1);
  border-top: 3px solid var(--metal);
}

.site-footer h2,
.site-footer h3 { color: var(--fg-on-ink); }

.footer__top {
  display: grid;
  gap: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  padding-block: clamp(3rem, 2rem + 3.6vw, 5rem);
}

@media (min-width: 60em) {
  .footer__top { grid-template-columns: minmax(0, 1.35fr) minmax(0, 2.4fr); }
}

.footer__brand { display: grid; gap: 1.2rem; align-content: start; max-width: 34ch; }
.footer__brand .wordmark { color: var(--fg-on-ink); }
.footer__brand .wordmark__mark { color: var(--metal-ink); }
.footer__brand .wordmark__sub { color: var(--fg-on-ink-muted); }
.footer__brand p { color: var(--fg-on-ink-muted); line-height: 1.7; }

.footer__cols {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
}

.footer__title {
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-on-ink);
  margin-bottom: 1rem;
}

.footer__links { display: grid; gap: 0.6rem; }

.footer__links a {
  color: var(--fg-on-ink-muted);
  text-decoration: none;
  line-height: 1.5;
}

.footer__links a:hover { color: var(--metal-ink); text-decoration: underline; text-underline-offset: 0.25em; }

.footer__address { font-style: normal; line-height: 1.7; color: var(--fg-on-ink-muted); }
.footer__address a { color: var(--fg-on-ink); text-decoration: none; }
.footer__address a:hover { color: var(--metal-ink); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line-on-ink);
  font-size: var(--step--2);
  letter-spacing: 0.03em;
  color: var(--fg-on-ink-muted);
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
}

.footer__legal-links a { color: var(--fg-on-ink-muted); text-decoration: none; }
.footer__legal-links a:hover { color: var(--metal-ink); }

/* Advertising / no-legal-advice disclaimer above the footer bottom */
.disclaimer {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-on-ink);
  font-size: var(--step--2);
  line-height: 1.7;
  color: var(--fg-on-ink-muted);
  opacity: 0.9;
  max-width: 100ch;
}

.disclaimer strong { color: var(--fg-on-ink); font-weight: 700; }

/* Visible template notice — remove this element when you go live */
.template-notice {
  background: var(--metal-soft);
  border-bottom: 1px solid var(--metal-soft);
  color: var(--fg);
  font-size: var(--step--2);
  line-height: 1.55;
}

.template-notice__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.6rem;
}

.template-notice svg { width: 1rem; height: 1rem; flex: none; color: var(--metal); }
.template-notice strong { font-weight: 700; }


/* =========================================================================
   21. UTILITIES
   ========================================================================= */

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

.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: 0.75rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2.5rem; }
.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }
.full { width: 100%; }
.order-first { order: -1; }

@media (min-width: 62em) {
  .lg-order-first { order: -1; }
}

@media (max-width: 47.99em) {
  .hide-sm { display: none; }
}


/* =========================================================================
   22. MOTION — gentle scroll reveals, nothing playful
   ========================================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* If JS never runs, nothing may stay invisible */
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
}


/* =========================================================================
   23. PRINT — a clean letterhead version of any page
   ========================================================================= */

@media print {
  :root {
    --bg: #fff;
    --bg-raised: #fff;
    --bg-sunk: #fff;
    --fg: #000;
    --fg-muted: #222;
    --fg-on-ink: #000;
    --fg-on-ink-muted: #333;
    --line: #bbb;
  }

  .site-header,
  .site-topbar,
  .mobile-nav,
  .nav-toggle,
  .theme-toggle,
  .cta-band__actions,
  .profile-nav,
  .filter-bar,
  .pagination,
  .template-notice,
  .skip-link { display: none !important; }

  body { background: #fff; color: #000; font-size: 11pt; }

  .hero,
  .page-head,
  .section--ink,
  .cta-band,
  .site-footer {
    background: #fff !important;
    color: #000 !important;
    border-top: 1px solid #bbb;
  }

  .hero::before,
  .hero::after,
  .page-head::before,
  .cta-band::before,
  .section--ink::after { display: none !important; }

  .artwork,
  .thumb { box-shadow: none; border: 1px solid #ccc; }

  a { color: #000; text-decoration: underline; }

  .section { padding-block: 1.5rem; }

  h1, h2, h3 { break-after: avoid; }
  .practice-detail, .award, .credential, .article-row { break-inside: avoid; }
}
