/* ==========================================================================
   ANRA Associates — site theme
   Palette taken from the logo: brick red + deep navy, on warm paper.
   ========================================================================== */

/* Self-hosted fonts: Libre Caslon Text (headings) & Source Sans 3 (text), SIL Open Font License */
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/libre-caslon-text-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

:root {
    color-scheme: light;
    --ink: #0f2236;
    --ink-2: #172f48;
    --ink-3: #23405e;
    --paper: #f7f3ec;
    --paper-2: #eee6d8;
    --card: #fffdf9;
    --brick: #a8402f;
    --brick-dark: #8a3224;
    --brass: #b8925a;
    --text: #1c2630;
    --muted: #5a6470;
    --on-dark: #e9e3d8;
    --on-dark-muted: #a9b3bf;
    --line: rgba(15, 34, 54, 0.14);
    --line-dark: rgba(233, 227, 216, 0.16);
    --serif: "Libre Caslon Text", "Baskerville", "Iowan Old Style", Georgia, serif;
    --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --radius: 4px;
    --section: clamp(60px, 9vw, 60px);
    --shadow: 0 1px 2px rgba(15, 34, 54, 0.06), 0 12px 32px -12px rgba(15, 34, 54, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.012em;
    color: var(--ink);
    margin: 0 0 0.5em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.45rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }

.sr-only {
    position: absolute; 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: 16px; top: -60px; z-index: 100;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.wrap {width: 100%;/* max-width: var(--wrap); */margin: 0 auto;padding: 0 var(--gutter);}
.wrap-narrow {/* max-width: 860px; */}
.section { padding: var(--section) 0; }

.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--brick); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--brass); }

.lead { font-size: 1.125rem; color: var(--muted); max-width: 52ch; }

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 0 26px;
    font-family: var(--sans); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    text-decoration: none; border: 1px solid transparent; border-radius: var(--radius);
    cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn .icon { transition: transform .2s; }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-dark); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-block { width: 100%; }

.text-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--brick); text-decoration: none;
    border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.text-link .icon { transition: transform .2s; }
.text-link:hover .icon { transform: translateX(3px); }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--ink); color: var(--on-dark-muted); font-size: 0.8125rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-note { margin: 0; letter-spacing: 0.04em; }
.topbar-links { display: flex; gap: 24px; }
.topbar-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); text-decoration: none; }
.topbar-links a:hover { color: #fff; }
.topbar-links .icon { color: var(--brass); }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 253, 249, 0.94);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(15, 34, 54, 0.35); }
.header-inner {display: flex;align-items: center;justify-content: space-between;gap: 24px;min-height: 84px;}
.brand img { width: 170px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li > a,
.sub-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 11px;
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
    position: relative;
}
.nav-list > li > a::after,
.sub-toggle::after {
    content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 1px;
    background: var(--brick); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-list > li > a:hover::after,
.nav-list > li.is-current > a::after,
.has-sub.is-current .sub-toggle::after,
.has-sub:hover .sub-toggle::after { transform: scaleX(1); }
.sub-toggle .icon { width: 14px; height: 14px; transition: transform .2s; }

.has-sub { position: relative; }
.sub-menu {
    position: absolute; top: 100%; left: -12px; width: 560px;
    padding: 24px 28px; background: var(--card); border: 1px solid var(--line);
    border-top: 2px solid var(--brick); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu,
.has-sub.is-open .sub-menu { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .sub-toggle .icon, .has-sub.is-open .sub-toggle .icon { transform: rotate(180deg); }
.sub-menu-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.sub-menu ul { columns: 2; column-gap: 28px; }
.sub-menu li { break-inside: avoid; }
.sub-menu a {
    display: block; padding: 7px 0; font-size: 0.9rem; color: var(--text); text-decoration: none;
    border-bottom: 1px solid var(--line);
}
.sub-menu a:hover { color: var(--brick); }
.nav-cta { min-height: 44px; padding: 0 18px; font-size: 0.75rem; white-space: nowrap; }

.nav-toggle { display: none; }

/* ---------- Home hero ---------- */
/* Navy chamber: copy on the left, an arched (courthouse-window) portrait of Justice on the right. */
.hero {
    position: relative; overflow: hidden; color: var(--on-dark);
    background:
        radial-gradient(ellipse 60% 70% at 78% 42%, rgba(184, 146, 90, 0.20), rgba(184, 146, 90, 0) 70%),
        radial-gradient(ellipse 50% 60% at 0% 100%, rgba(168, 64, 47, 0.16), rgba(168, 64, 47, 0) 70%),
        linear-gradient(180deg, #102640 0%, #0c1d31 100%);
}
.hero::before {
    /* faint column lines, like a colonnade */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(90deg, rgba(233, 227, 216, 0.035) 0 1px, transparent 1px 120px);
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-grid {
    position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(32px, 5vw, 80px); align-items: center;
    padding-top: clamp(40px, 8vh, 96px); padding-bottom: clamp(40px, 7vh, 80px);
}
.hero-copy { min-width: 0; }
.hero h1 {
    color: #fff; font-weight: 400; max-width: 17ch; margin-bottom: 0.55em;
    font-size: clamp(2.2rem, min(4.1vw, 7.4vh), 3.7rem); line-height: 1.12; letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--brass); }
.hero-lead { text-wrap: pretty; font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 50ch; color: var(--on-dark); opacity: 0.86; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions .btn-primary { box-shadow: 0 10px 30px -10px rgba(168, 64, 47, 0.7); }
.hero-courts {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-dark);
    font-size: 0.85rem; color: var(--on-dark);
}
.hero-courts-label { flex-basis: 100%; margin-bottom: 2px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.hero-courts-list { display: contents; }
.hero-courts li { padding: 5px 14px; border: 1px solid var(--line-dark); border-radius: 999px; background: rgba(233, 227, 216, 0.04); }

.hero-visual { position: relative; justify-self: end; width: 100%; max-width: 420px; }
.hero-arch {
    position: relative; margin: 0; aspect-ratio: 4 / 5; max-height: 66vh; min-height: 340px; margin-left: auto;
    border-radius: 999px 999px 6px 6px; overflow: hidden; background: #1a2c40;
    border: 1px solid rgba(184, 146, 90, 0.45);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 74% 35%; }
.hero-arch::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(180deg, rgba(12, 29, 49, 0) 55%, rgba(12, 29, 49, 0.55) 100%);
}
.hero-visual::before {
    content: ""; position: absolute; inset: -16px -16px 16px 16px; border: 1px solid rgba(184, 146, 90, 0.55);
    border-radius: 999px 999px 6px 6px; pointer-events: none;
}
.hero-seal {
    position: absolute; left: -44px; bottom: 44px; z-index: 2;
    background: var(--paper); color: var(--ink); padding: 18px 22px 16px; min-width: 170px;
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6); border-top: 2px solid var(--brick);
}
.hero-seal-label { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.hero-seal-year { display: block; font-family: var(--serif); font-size: 2.3rem; line-height: 1.1; font-variant-numeric: lining-nums; }
.hero-seal-place { display: block; font-size: 0.85rem; color: var(--muted); }

.stats {
    position: relative; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line-dark);
}
.stat {
    display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px;
    padding: 24px 24px 28px 0; border-right: 1px solid var(--line-dark); margin-right: 24px;
}
.stat:last-child { border-right: 0; margin-right: 0; }
.stat dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-muted); }
.stat dd { font-variant-numeric: lining-nums; margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1; color: #fff; }
.stat dd small { font-size: 0.5em; color: var(--brass); }
.stat-call dd { font-family: var(--sans); font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 600; padding-top: 8px; }
.stat-call a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--brass); }

@media (prefers-reduced-motion: no-preference) {
    .hero-copy > *, .hero-visual { animation: hero-in 0.9s cubic-bezier(.2, .7, .2, 1) both; }
    .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
    .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
    .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
    .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
    .hero-visual { animation-name: hero-arch-in; animation-duration: 1.2s; animation-delay: 0.1s; }
}
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hero-arch-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.intro-media { position: relative; margin: 0; }
.intro-media::before {
    content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid var(--brass); z-index: 0;
}
.intro-media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.intro-media figcaption {
    position: absolute; z-index: 2; left: -1px; bottom: 32px;
    background: var(--brick); color: #fff; padding: 12px 18px;
    font-family: var(--serif); font-size: 1.1rem; font-style: italic;
}
.byline { font-size: 0.95rem; font-weight: 600; color: var(--muted); padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.prose { color: var(--text); }
.prose p { margin-bottom: 1.1em; }
.prose-lg { font-size: 1.0625rem; line-height: 1.75; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.2em; list-style: disc; }
.prose strong { color: var(--ink); }
.intro-text .text-link { margin-top: 8px; }

/* ---------- Section heads ---------- */
.section-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap;
    margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head h2 { margin: 0; }
.section-head-note { max-width: 42ch; color: var(--muted); margin: 0; }

/* ---------- Practice areas ---------- */
.practice { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.practice-grid > li { display: flex; }
.practice-card {
    display: flex; flex-direction: column; width: 100%; text-decoration: none; position: relative;
    background: var(--card); border: 1px solid var(--line);
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s;
}
.practice-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(15, 34, 54, 0.35); border-color: transparent; }
.practice-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-2); }
.practice-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .4s; filter: saturate(0.9); }
.practice-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(12, 29, 49, 0) 50%, rgba(12, 29, 49, 0.55) 100%);
    transition: opacity .4s;
}
.practice-card:hover .practice-media img { transform: scale(1.06); filter: saturate(1.05); }
.practice-num {
    position: absolute; left: 0; bottom: 0; z-index: 1;
    background: var(--ink); color: var(--brass); padding: 8px 14px 7px;
    font-family: var(--serif); font-style: italic; font-size: 1rem; font-variant-numeric: lining-nums;
}
.practice-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 24px; position: relative; }
.practice-body::before {
    content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
    background: var(--brick); transform: scaleX(0); transform-origin: left; transition: transform .45s;
}
.practice-card:hover .practice-body::before { transform: scaleX(1); }
.practice-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.practice-card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 20px; }
.practice-more {
    margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brick);
}
.practice-more .icon { transition: transform .2s; }
.practice-card:hover .practice-more .icon { transform: translateX(4px); }
.practice-cta {
    position: relative; overflow: hidden; color: var(--on-dark);
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(184, 146, 90, 0.22), rgba(184, 146, 90, 0) 70%),
        var(--ink);
}
.practice-cta-inner { position: relative; padding: 36px 32px; display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
.practice-cta-inner > .icon { width: 44px; height: 44px; color: var(--brass); margin-bottom: 22px; stroke-width: 1.2; }
.practice-cta h3 { color: #fff; font-size: 1.45rem; }
.practice-cta p { color: var(--on-dark-muted); font-size: 0.95rem; margin-bottom: 24px; }
.practice-cta .btn { margin-top: auto; }

/* ---------- Courts band ---------- */
.courts { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.courts::after {
    content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
    border: 1px solid var(--line-dark); border-radius: 50%; pointer-events: none;
}
.courts-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 88px); position: relative; z-index: 1; }
.courts h2 { color: #fff; }
.courts-head p:not(.eyebrow) { color: var(--on-dark-muted); max-width: 34ch; }
.courts-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 1px solid var(--line-dark); }
.courts-list li {
    display: flex; gap: 18px; align-items: baseline; padding: 20px 0;
    border-bottom: 1px solid var(--line-dark);
    font-family: var(--serif); font-size: 1.15rem; line-height: 1.35; color: #fff;
}
.courts-list span { font-family: var(--sans); font-size: 0.75rem; font-weight: 700; color: var(--brass); letter-spacing: 0.08em; }

/* ---------- People ---------- */
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; }
.person-photo { position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 5; margin-bottom: 18px; }
.person-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--brick); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.person:hover .person-photo::after { transform: scaleX(1); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transition: transform .6s; }
.person:hover .person-photo img { transform: scale(1.03); }
.person-name { font-size: 1.25rem; margin-bottom: 4px; }
.person-quals { font-size: 0.875rem; color: var(--muted); margin-bottom: 10px; }
.person-focus {
    display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--brick); border: 1px solid rgba(168, 64, 47, 0.35); padding: 4px 10px; margin: 0;
}

/* ---------- Consult / why us ---------- */
.consult { background: var(--paper-2); }
.consult-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.consult-grid-page { grid-template-columns: 5fr 6fr; }
.why-list { margin-top: 36px; border-top: 1px solid var(--line); }
.why-list li {
    display: flex; align-items: baseline; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line);
}
.why-num { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--brick); width: 28px; flex: none; }
.why-text { font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; color: var(--ink); }

.form-card {
    background: var(--card); padding: clamp(28px, 4vw, 44px); border-top: 3px solid var(--brick);
    box-shadow: var(--shadow);
}
.form-title { font-size: 1.6rem; margin-bottom: 8px; }
.form-intro { color: var(--muted); margin-bottom: 26px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-row-end { align-items: end; }
.field-row-end .btn { margin-bottom: 18px; }
.field label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink); }
.optional { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--text);
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 12px 14px; min-height: 48px; transition: border-color .2s, background-color .2s;
    appearance: none; -webkit-appearance: none;
}
.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6470' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field-hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.8rem; color: var(--muted); margin: 4px 0 0; }
.form-status { padding: 12px 16px; border-radius: var(--radius); font-size: 0.925rem; margin-bottom: 22px; }
.form-status-ok { background: #e6efe6; color: #24502c; border-left: 3px solid #3b7a47; }
.form-status-err { background: #f6e3df; color: #7a2a1d; border-left: 3px solid var(--brick); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
    margin: 0; background: var(--card); padding: 30px 30px 26px; border: 1px solid var(--line);
    display: flex; flex-direction: column;
}
.quote .icon-quote { width: 28px; height: 28px; color: var(--brass); margin-bottom: 16px; }
.quote blockquote { margin: 0 0 20px; }
.quote blockquote p { font-family: var(--serif); font-size: 1.05rem; line-height: 1.6; color: var(--ink); margin: 0; }
.quote figcaption {
    margin-top: auto; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
    padding-top: 16px; border-top: 1px solid var(--line);
}
.quotes-masonry {display: block;columns: 2;column-gap: 24px;}
.quotes-masonry .quote { break-inside: avoid; margin-bottom: 24px; }

/* ---------- Articles ---------- */
.journal { background: var(--card); border-top: 1px solid var(--line); }
.article-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.article-row { display: grid; grid-template-columns: 280px 1fr; gap: 36px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: start; }
.article-thumb { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper-2); }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.article-row:hover .article-thumb img { transform: scale(1.04); }
.article-meta { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brick); margin-bottom: 10px; }
.article-row h2, .article-row h3 { font-size: 1.5rem; margin-bottom: 12px; }
.article-row h2 a, .article-row h3 a { text-decoration: none; }
.article-row h2 a:hover, .article-row h3 a:hover { color: var(--brick); }
.article-row p { color: var(--muted); }
.article-hero-img { width: 100%; margin-bottom: 40px; }
.article-back { margin-top: 40px; }
.article-back .icon { transform: rotate(180deg); }

/* ---------- Inner page hero (banner with photo) ---------- */
.page-hero {
    background: var(--ink); color: var(--on-dark);
    padding: clamp(64px, 10vh, 120px) 0 clamp(56px, 8vh, 96px);
    position: relative; overflow: hidden; isolation: isolate;
}
.page-hero-media { position: absolute; inset: 0; z-index: -1; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.04); }
@media (prefers-reduced-motion: no-preference) {
    .page-hero-media img { animation: banner-drift 14s ease-out both; }
}
@keyframes banner-drift { from { transform: scale(1.12); } to { transform: scale(1.04); } }
.page-hero-media::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 29, 49, 0.95) 0%, rgba(12, 29, 49, 0.78) 42%, rgba(12, 29, 49, 0.25) 100%),
        linear-gradient(0deg, rgba(12, 29, 49, 0.7) 0%, rgba(12, 29, 49, 0) 50%);
}
.page-hero::after {
    /* thin brass rule along the bottom edge */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, var(--brick) 0 120px, rgba(184, 146, 90, 0.6) 120px 100%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 {color: #fff;font-weight: 400;/* max-width: 22ch; */margin-bottom: 0.35em;font-size: clamp(2.2rem, 4.2vw, 3.5rem);}
.page-hero-lead {max-width: 90ch;font-size: 1.1rem;color: var(--on-dark);opacity: 0.82;margin: 0;text-wrap: pretty;}
.crumbs ol {
    display: inline-flex; flex-wrap: wrap; gap: 6px; font-size: 0.8rem; color: var(--on-dark-muted);
    margin-bottom: 32px; padding: 6px 14px; border: 1px solid var(--line-dark); border-radius: 999px;
    background: rgba(12, 29, 49, 0.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--brass); }
.crumbs a { color: var(--on-dark); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li[aria-current] { color: #fff; }
.page-hero-article h1 { max-width: 24ch; font-size: clamp(2rem, 3.8vw, 3.1rem); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.dropcap > p:first-child::first-letter {
    float: left; font-family: var(--serif); font-size: 3.6em; line-height: 0.9; padding: 6px 12px 0 0; color: var(--brick);
}
.about-aside { position: sticky; top: 120px; }
.about-image { background: #fff; border: 1px solid var(--line); padding: 20px; margin-bottom: 28px; }
.fact-list { margin: 0; border-top: 1px solid var(--line); }
.fact-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact-list dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.fact-list dd { font-variant-numeric: lining-nums; margin: 0; font-family: var(--serif); font-size: 1.05rem; color: var(--ink); text-align: right; }

/* ---------- Practice area detail ---------- */
.area-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.area-nav { position: sticky; top: 116px; background: var(--card); border: 1px solid var(--line); padding: 24px; }
.area-nav-title {font-size: 20px;font-weight: 700;/* letter-spacing: 0.18em; */text-transform: uppercase;color: var(--muted);margin-bottom: 10px;}
.area-nav a {
    display: block; padding: 10px 0 10px 14px; font-size: 0.92rem; text-decoration: none; color: var(--text);
    border-left: 2px solid transparent; border-bottom: 1px solid var(--line);
}
.area-nav li:last-child a { border-bottom: 0; }
.area-nav a:hover { color: var(--brick); }
.area-nav a[aria-current="page"] { border-left-color: var(--brick); color: var(--ink); font-weight: 700; background: var(--paper); }
.area-body { max-width: 760px; }
.area-image { float: right; width: 300px; margin: 6px 0 24px 36px; border: 1px solid var(--line); }
.area-body h2 { font-size: 1.6rem; margin-top: 0.4em; }
.area-list-title { clear: both; padding-top: 24px; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1px solid var(--line); margin-bottom: 48px; }
.check-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; line-height: 1.5; }
.check-list .icon { color: var(--brick); margin-top: 3px; }
.area-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    background: var(--ink); color: var(--on-dark); padding: 32px 36px; clear: both;
}
.area-cta h3 { color: #fff; margin-bottom: 4px; font-size: 1.3rem; }
.area-cta p { margin: 0; color: var(--on-dark-muted); }

/* ---------- Gallery & lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery a { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.gallery a:hover img { transform: scale(1.04); filter: brightness(1.05); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1200px); max-height: 90vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 20, 32, 0.88); }
.lightbox img { max-width: 100%; max-height: 86vh; margin: 0 auto; }
.lightbox-close {
    position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; display: grid; place-items: center;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-info { display: grid; gap: 20px; }
.office-card { background: var(--card); border: 1px solid var(--line); padding: 28px 30px; }
.office-card h2 { font-size: 1.5rem; margin-bottom: 14px; }
.office-card .eyebrow { margin-bottom: 10px; }
.office-line { display: flex; gap: 14px; color: var(--muted); }
.office-line .icon { color: var(--brick); margin-top: 4px; }
.office-line p { margin: 0; }
.office-card-dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.contact-lines li { display: flex; gap: 14px; align-items: center; padding: 8px 0; }
.contact-lines .icon, .office-hours .icon { color: var(--brass); }
.contact-lines a { color: #fff; text-decoration: none; word-break: break-word; }
.contact-lines a:hover { text-decoration: underline; }
.office-hours { display: flex; gap: 14px; margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line-dark); color: var(--on-dark-muted); }
.office-hours .icon { margin-top: 4px; }
.office-hours li { padding: 2px 0; }
.map iframe { display: block; width: 100%; height: 440px; border: 0; filter: grayscale(0.5) contrast(1.05); }

.steps { counter-reset: step; margin: 28px 0 32px; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; position: relative; padding: 20px 0 20px 52px; border-bottom: 1px solid var(--line); color: var(--muted); }
.steps li::before {
    content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 18px;
    font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--brick);
}
.steps strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.15rem; font-weight: 400; margin-bottom: 2px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brick); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.cta-band p { margin: 0; opacity: 0.85; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-primary { background: var(--ink); }
.cta-band .btn-primary:hover { background: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: #0b1a2a; color: var(--on-dark-muted); font-size: 0.925rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1.1fr; gap: 48px; padding-top: 80px; padding-bottom: 64px; }
.footer-brand img { width: 170px; margin-bottom: 22px; }
.footer-brand p { max-width: 34ch; }
.footer-title {
    font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
    color: #fff; margin: 6px 0 20px;
}
.footer-areas ul { columns: 2; column-gap: 20px; }
.footer-areas li { break-inside: avoid; padding: 4px 0; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-office { margin-bottom: 18px; }
.footer-office-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); margin: 0 0 6px; }
.footer-rich p { margin: 0; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; padding: 4px 0; word-break: break-word; }
.footer-contact .icon { color: var(--brass); margin-top: 4px; }
.footer-contact { margin-bottom: 20px; }
.footer-hours li { padding: 2px 0; }
.social { display: flex; gap: 10px; margin-top: 24px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-dark); border-radius: 50%; }
.social a:hover { background: var(--brick); border-color: var(--brick); }
.footer-bottom { border-top: 1px solid var(--line-dark); font-size: 0.8125rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.footer-bottom p { margin: 0; }
.footer-bottom .link-btn { color: var(--on-dark); }

/* ---------- Disclaimer dialog ---------- */
.disclaimer {
    border: 0; padding: 0; max-width: 640px; width: calc(100% - 32px); max-height: calc(100vh - 48px);
    background: var(--card); color: var(--text); border-top: 3px solid var(--brick);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
}
.disclaimer::backdrop { background: rgba(10, 20, 32, 0.72); backdrop-filter: blur(3px); }
.disclaimer-inner { padding: clamp(28px, 5vw, 44px); }
.disclaimer h2 { font-size: 1.7rem; }
.disclaimer-body { font-size: 0.925rem; color: var(--muted); }
.disclaimer-body ul { list-style: none; margin: 0 0 1em; padding: 0; border-top: 1px solid var(--line); }
.disclaimer-body li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); position: relative; }
.disclaimer-body li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 8px; height: 1px; background: var(--brick); }
.disclaimer-actions { display: flex; justify-content: flex-end; margin-top: 8px; }

.empty { color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
    .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1320px) {
    .nav-list > li > a, .sub-toggle { padding: 10px 8px; font-size: 0.84rem; }
    .site-nav { gap: 14px; }
    .brand img { width: 150px; }
}

@media (max-width: 1200px) {
    /* backdrop-filter would trap the fixed menu panel inside the header */
    .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--card); }
    .nav-toggle {
        display: grid; place-items: center; width: 46px; height: 46px; margin-right: -8px;
        background: none; border: 0; cursor: pointer; color: var(--ink);
    }
    .nav-toggle .icon { width: 26px; height: 26px; }
    .nav-toggle-close { display: none; }
    .nav-open .nav-toggle-open { display: none; }
    .nav-open .nav-toggle-close { display: block; }

    .site-nav {
        position: fixed; inset: var(--header-h, 84px) 0 0 0; z-index: 49;
        flex-direction: column; align-items: stretch; gap: 24px;
        background: var(--card); padding: 12px var(--gutter) 40px; overflow-y: auto;
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .25s, transform .25s, visibility .25s;
    }
    .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
    .nav-open { overflow: hidden; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list > li { border-bottom: 1px solid var(--line); }
    .nav-list > li > a, .sub-toggle { width: 100%; justify-content: space-between; padding: 16px 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
    .nav-list > li > a::after, .sub-toggle::after { display: none; }
    .sub-toggle .icon { width: 20px; height: 20px; }
    .has-sub:hover .sub-toggle .icon { transform: none; }
    .has-sub.is-open .sub-toggle .icon { transform: rotate(180deg); }
    .sub-menu {
        position: static; width: auto; padding: 0 0 12px; border: 0; box-shadow: none; background: none;
        opacity: 1; visibility: visible; transform: none; display: none;
    }
    .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { display: none; }
    .has-sub.is-open .sub-menu { display: block; }
    .sub-menu-label { display: none; }
    .sub-menu ul { columns: 1; }
    .nav-cta { min-height: 52px; }

    .intro-grid, .consult-grid, .consult-grid-page, .contact-grid, .about-grid, .courts-grid { grid-template-columns: 1fr; }
    .intro-media { max-width: 520px; }
    .about-aside { position: static; max-width: 520px; }
    .people-grid { grid-template-columns: repeat(3, 1fr); }
    .practice-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .quotes { grid-template-columns: 1fr 1fr; }
    .quotes > :nth-child(n+5) { display: none; }
    .quotes-masonry { columns: 2; }
    .quotes-masonry > * { display: block !important; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .area-grid { grid-template-columns: 1fr; }
    .area-nav { position: static; order: 2; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); }
    .hero-seal { left: -24px; }
    .stat:nth-child(2) { border-right: 0; margin-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
}

@media (max-width: 720px) {
    .page-hero-media::after { background: linear-gradient(180deg, rgba(12, 29, 49, 0.78) 0%, rgba(12, 29, 49, 0.92) 100%); }
    body { font-size: 16px; }
    .topbar-note { display: none; }
    .topbar-inner { justify-content: center; }
    .topbar-links { gap: 18px; font-size: 0.78rem; }
    .topbar-links li:last-child span { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
    .header-inner { min-height: 68px; }
    .brand img { width: 128px; }
    .hero-grid { grid-template-columns: 1fr; padding-top: 44px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-eyebrow-long { display: none; }
    .hero-visual { justify-self: center; max-width: 300px; margin: 8px 0 12px; }
    .hero-arch { min-height: 0; max-height: none; }
    .hero-seal { left: -14px; bottom: 24px; padding: 12px 16px; min-width: 0; }
    .hero-seal-year { font-size: 1.7rem; }
    .hero-courts { margin-top: 28px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .stat { padding: 22px 12px 24px 0; margin-right: 12px; }
    .people-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
    .person-name { font-size: 1.1rem; }
    .person-focus { font-size: 0.62rem; padding: 3px 8px; }
    .practice-grid { grid-template-columns: 1fr; }
    .practice-grid { gap: 14px; }
    .practice-card { flex-direction: row; align-items: stretch; }
    .practice-media { width: 116px; flex: none; aspect-ratio: auto; min-height: 104px; }
    .practice-num { font-size: 0.8rem; padding: 5px 9px 4px; }
    .practice-card p { display: none; }
    .practice-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
    .practice-body { padding: 16px 16px 14px; justify-content: center; }
    .practice-more { margin-top: 0; font-size: 0.7rem; }
    .practice-cta-inner { padding: 26px 22px; }
    .page-hero { padding: 52px 0 44px; }
    .page-hero-lead { font-size: 1rem; }
    .courts-list { grid-template-columns: 1fr; }
    .courts-list li { font-size: 1.05rem; padding: 16px 0; }
    .quotes, .quotes-masonry { grid-template-columns: 1fr; columns: 1; }
    .quotes > :nth-child(n+4) { display: none; }
    .field-row { grid-template-columns: 1fr; }
    .article-row { grid-template-columns: 1fr; gap: 18px; }
    .article-row h2, .article-row h3 { font-size: 1.3rem; }
    .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
    .area-image { float: none; width: 100%; margin: 0 0 24px; }
    .check-list { grid-template-columns: 1fr; }
    .area-cta { padding: 26px 22px; }
    .why-text { font-size: 1.1rem; }
    .intro-media::before { inset: 14px -12px -14px 14px; }
    .map iframe { height: 320px; }
    .disclaimer h2 { font-size: 1.45rem; }
}
