/* ==========================================================================
   The Law Offices of Marc S. Henzel : global stylesheet
   Clean Light Professional (2026). Single stylesheet for the whole site.
   Sections:  1 Tokens · 2 Reset · 3 Typography · 4 Layout · 5 Header/Nav
              6 Footer · 7 Buttons · 8 Cards & media · 9 Forms
              10 Components · 11 Motion/reveal · 12 Utilities · 13 Print
              14 Motion & colour pass (v3)
   ========================================================================== */

/* 1. TOKENS ================================================================ */
:root {
  --ink: #131A24;
  --ink-soft: #3D4A5C;
  --paper: #FCFBF8;
  --paper-2: #F4F1EA;
  --accent: #8C6A2F;
  --accent-deep: #6E5222;
  --navy: #16324F;
  --line: #E3DED2;
  --success: #2F6B4F;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 26, 36, .07);
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* derived : not in the spec table, layered on top of it */
  --accent-light: #C9A667;          /* bronze that passes AA on navy */
  --navy-deep: #0E2338;
  --paper-3: #EFEADF;
  --line-strong: #D3CBB9;
  --ink-faint: #6B7787;
  --shadow-sm: 0 2px 8px rgba(19, 26, 36, .05);
  --shadow-lg: 0 24px 60px rgba(19, 26, 36, .10);
  --ease: cubic-bezier(.2, .6, .2, 1);
  --dur: 420ms;
  --wrap: 1140px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --header-h: 76px;
}

/* css/pages.css re-declares --header-h as a "fallback"; because it loads after
   this file, an equal-specificity :root would win. Raise specificity so the
   header measures identically on every page of the site. */
html:root { --header-h: 76px; }

/* 2. RESET ================================================================= */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* No overflow-x:hidden here : it can interfere with position:sticky.
     Sections that bleed (hero motif, gradient bands) clip themselves. */
}

body.nav-open { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }
svg { fill: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

ul, ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }
li { margin-bottom: .45rem; }
li:last-child { margin-bottom: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: clamp(2rem, 5vw, 3.5rem) 0;
}

table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: rgba(140, 106, 47, .18); color: var(--ink); }

/* 3. TYPOGRAPHY ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); letter-spacing: -.028em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); letter-spacing: -.022em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: -.015em; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }

p { margin: 0 0 1.25rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent-deep);
  text-decoration-color: rgba(110, 82, 34, .32);
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
a:hover { color: var(--accent); text-decoration-color: currentColor; }

strong, b { font-weight: 600; }

small { font-size: .875rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 1rem;
}
.eyebrow--line { position: relative; padding-left: 2.6rem; }
.eyebrow--line::before {
  content: "";
  position: absolute;
  left: 0; top: .58em;
  width: 1.9rem; height: 1px;
  background: var(--accent);
}

.lede {
  font-size: clamp(1.06rem, 1.7vw, 1.28rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 62ch;
}

.display {
  font-family: var(--font-serif);
  font-weight: 600;
}

blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--accent);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink);
}

/* 4. LAYOUT ================================================================ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 760px; }
.wrap--wide { max-width: 1280px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--alt { background: var(--paper-2); }
.section--paper3 { background: var(--paper-3); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: rgba(255, 255, 255, .82); }
.section--navy .eyebrow { color: var(--accent-light); }
.section--navy .eyebrow--line::before { background: var(--accent-light); }
.section--hairline { border-top: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }
.section-head p:last-child { margin-bottom: 0; }

.section-head--split {
  max-width: none;
  display: grid;
  gap: 1.5rem 3rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}
@media (min-width: 860px) {
  .section-head--split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--reverse > :first-child { order: 2; }
}

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { color: var(--ink-soft); }
.prose li::marker { color: var(--accent); }

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: .75rem 1.15rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* 5. HEADER / NAV ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(252, 251, 248, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(19, 26, 36, .02), 0 8px 24px rgba(19, 26, 36, .045);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .5s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg); }
.brand-text {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1;
  white-space: nowrap;
}
.brand-text strong { font-weight: 700; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}
.site-nav > a {
  position: relative;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: .35rem;
  white-space: nowrap;
}
.site-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .32s var(--ease);
}
.site-nav > a:not(.btn):hover::after,
.site-nav > a[aria-current="page"]:not(.btn)::after {
  transform: scaleX(1);
  transform-origin: left;
}
.site-nav > a:not(.btn):hover { color: var(--accent-deep); }
.site-nav > a[aria-current="page"]:not(.btn) { color: var(--accent-deep); }

/* scrim is injected by main.js; hidden entirely on desktop */
.nav-scrim { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  position: relative;
  border-radius: 10px;
  flex-shrink: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 22px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .32s var(--ease), opacity .2s var(--ease), width .32s var(--ease);
}
.nav-toggle span { top: 50%; margin-top: -.75px; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; left: 0; transform: none; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; width: 15px; }
.nav-toggle[aria-expanded="true"] span { transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(-90deg); top: 0; }
.nav-toggle[aria-expanded="true"] span::after { opacity: 0; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }

  /* IMPORTANT: backdrop-filter establishes a containing block for fixed-position
     descendants, which would trap the off-canvas nav inside the header. Below the
     breakpoint the header uses a solid background instead. */
  .site-header.scrolled {
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(400px, 88vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-h) + 1.75rem) clamp(1.5rem, 6vw, 2.5rem) 2.5rem;
    background: var(--paper);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateX(102%);
    transition: transform .42s var(--ease), visibility .42s;
    visibility: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-nav.open { transform: none; visibility: visible; }

  .site-nav > a {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    padding-block: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav > a:not(.btn)::after { display: none; }
  .site-nav > a.btn {
    margin-top: 1.75rem;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: .95rem;
    padding-block: .95rem;
    border-bottom: 0;
  }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(19, 26, 36, .38);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    z-index: 99;
    transition: opacity .42s var(--ease), visibility .42s;
    border: 0;
    width: 100%;
  }
  body.nav-open .nav-scrim { opacity: 1; visibility: visible; }
}

/* 6. FOOTER ================================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .78);
  font-size: .95rem;
  padding-block: clamp(3.5rem, 7vw, 5rem) 2rem;
  margin-top: auto;
}
.site-footer a {
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
  text-decoration-color: transparent;
}
.site-footer a:hover { color: var(--accent-light); text-decoration: underline; }

/* Layout row: brand · address · nav.
   Two markup variants exist across the site (.footer-inner and .footer-top);
   both are supported so every page renders an identical footer. */
.footer-inner,
.footer-top {
  display: grid;
  gap: clamp(2.25rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) {
  .footer-inner,
  .footer-top { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, .85fr); }
}

.footer-brand > :first-child { margin-top: 0; }
.footer-brand .brand-mark { color: var(--accent-light); width: 32px; height: 32px; }
div.footer-brand > .brand-mark { margin-bottom: 1rem; }

a.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}
a.footer-brand .brand-mark { margin-bottom: 0; flex-shrink: 0; }
a.footer-brand:hover { color: inherit; }
a.footer-brand:hover .footer-name { color: var(--accent-light); }

.footer-name {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}
.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--accent-light);
  margin: .85rem 0 0;
  max-width: 26ch;
}

address.footer-address,
.footer-address { font-style: normal; line-height: 1.8; margin: 0; }

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
}
.footer-nav a { position: relative; }

/* Column headings + link lists (used by the .footer-top variant) */
.footer-heading {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin: 0 0 1rem;
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: .6rem; }
.footer-list li:last-child { margin-bottom: 0; }

/* Legal block : a wrapper <div> in one variant, plain <p>s in the other */
div.footer-legal,
.footer-bottom {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.footer-disclaimer,
p.footer-legal {
  font-size: .8rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .58);
  max-width: 82ch;
  margin: 0 0 .9rem;
  padding: 0;
  border: 0;
}
.footer-copyright {
  font-size: .8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .58);
  margin: 1.5rem 0 0;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1.5rem;
  font-size: .8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .58);
}

/* 7. BUTTONS =============================================================== */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  --btn-bd: var(--accent);
  box-shadow: 0 6px 18px rgba(140, 106, 47, .22);
}
.btn-primary:hover {
  --btn-bg: var(--accent-deep);
  --btn-bd: var(--accent-deep);
  color: #fff;
  box-shadow: 0 10px 26px rgba(110, 82, 34, .28);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
}
.btn-ghost:hover {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-bd: var(--ink);
  color: var(--paper);
}

.btn-navy { --btn-bg: var(--navy); --btn-fg: #fff; --btn-bd: var(--navy); }
.btn-navy:hover { --btn-bg: var(--navy-deep); --btn-bd: var(--navy-deep); color: #fff; }

.btn-light {
  --btn-bg: #fff;
  --btn-fg: var(--navy);
  --btn-bd: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
}
.btn-light:hover { --btn-bg: var(--paper-2); --btn-bd: var(--paper-2); color: var(--navy); }

.btn-outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, .42);
}
.btn-outline-light:hover {
  --btn-bd: #fff;
  --btn-bg: rgba(255, 255, 255, .10);
  color: #fff;
}

.btn-sm { padding: .6rem 1.15rem; font-size: .875rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn .icon { width: 1em; height: 1em; flex-shrink: 0; }
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .92rem;
  font-weight: 500;
  color: var(--accent-deep);
  text-decoration: none;
}
.link-arrow::after {
  content: "→";
  transition: transform .3s var(--ease);
  font-size: 1.05em;
  line-height: 1;
}
.link-arrow:hover::after { transform: translateX(4px); }

/* 8. CARDS & MEDIA ========================================================= */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .96rem; }
.card > :last-child { margin-bottom: 0; }

.card--link { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card--link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
  color: inherit;
}
.card--link .link-arrow { margin-top: auto; padding-top: 1.25rem; }

.card--flat { box-shadow: none; background: transparent; }
.card--paper { background: var(--paper); }

.card-index {
  font-family: var(--font-serif);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent);
  display: block;
  margin-bottom: 1.25rem;
}

.card-icon {
  width: 42px; height: 42px;
  color: var(--accent);
  margin-bottom: 1.25rem;
  stroke-width: 1.5;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.chip--accent { border-color: rgba(140, 106, 47, .3); background: rgba(140, 106, 47, .09); color: var(--accent-deep); }
.chip--mono { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .72rem; letter-spacing: .06em; }

.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--paper-2);
  border-radius: 10px;
  padding: 1.1rem 1.35rem;
  font-size: .92rem;
  color: var(--ink-soft);
}
.notice strong { color: var(--ink); }

.media-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--paper-2), var(--paper));
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow);
}

/* 9. FORMS ================================================================= */
.form-grid {
  display: grid;
  gap: 1.25rem 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 660px) {
  .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .field--full { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }

label,
.field > label,
.label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.label-hint,
.field .hint {
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-faint);
}
.required { color: var(--accent-deep); }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="number"], input[type="date"], input[type="search"], input[type="password"],
select, textarea {
  width: 100%;
  padding: .82rem 1rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
textarea { min-height: 150px; resize: vertical; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%233D4A5C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  padding-right: 2.6rem;
  cursor: pointer;
}

input::placeholder, textarea::placeholder { color: #9AA3AF; opacity: 1; }

input:hover, select:hover, textarea:hover { border-color: #C0B7A2; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(140, 106, 47, .16);
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }

input:disabled, select:disabled, textarea:disabled {
  background: var(--paper-2);
  color: var(--ink-faint);
  cursor: not-allowed;
}

input[type="checkbox"], input[type="radio"] {
  width: 1.05rem; height: 1.05rem;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.choice-row { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; padding-top: .3rem; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .96rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  cursor: pointer;
}

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend {
  padding: 0;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .5rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}
.form-note { font-size: .85rem; color: var(--ink-faint); max-width: 46ch; margin: 0; }

/* honeypot */
.hp, [name="bot-field"] { position: absolute !important; left: -9999px; opacity: 0; height: 0; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow);
}

/* 10. COMPONENTS =========================================================== */

/* Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 6.5rem));
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(1100px 620px at 84% -8%, rgba(140, 106, 47, .10), transparent 62%),
    radial-gradient(900px 560px at 4% 8%, rgba(22, 50, 79, .07), transparent 60%),
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 68%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
}

.hero-inner { position: relative; z-index: 2; max-width: 780px; }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em {
  font-style: normal;
  color: var(--accent-deep);
}
.hero .lede { max-width: 56ch; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1rem;
  margin-top: 2.25rem;
}

.hero-motif {
  position: absolute;
  right: clamp(-140px, -6vw, -40px);
  top: 50%;
  transform: translateY(-46%);
  width: clamp(320px, 46vw, 620px);
  color: var(--navy);
  opacity: .07;
  z-index: 1;
  pointer-events: none;
  stroke-width: 1.1;
}
@media (max-width: 820px) {
  .hero-motif { top: auto; bottom: -8%; right: -18%; transform: none; width: 78vw; opacity: .05; }
}

/* Trust strip ---------------------------------------------------------- */
.trust-strip {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.trust-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
  padding-block: 1.35rem;
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  font-size: .845rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.trust-list svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; stroke-width: 1.8; }

/* Stats band ----------------------------------------------------------- */
.stats-band { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 420px at 88% 110%, rgba(201, 166, 103, .22), transparent 62%);
  pointer-events: none;
}
.stats-band .wrap { position: relative; z-index: 1; }

.stats-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}
.stat { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 1.5rem; }
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--accent-light);
  font-variant-numeric: tabular-nums;
}
.stat-num--text { font-size: clamp(1.9rem, 3.6vw, 2.5rem); letter-spacing: -.02em; }
.stat-label {
  display: block;
  margin-top: .85rem;
  font-size: .875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .74);
}

/* Steps ---------------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  counter-reset: step;
}
.steps > li { margin: 0; position: relative; padding-top: 2.5rem; }
.steps > li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--accent);
}
.steps > li::after {
  content: "";
  position: absolute;
  top: .55rem; left: 2.4rem; right: 0;
  height: 1px;
  background: var(--line);
}
.steps h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.steps p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* Timeline ------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: .55rem; bottom: .55rem;
  width: 1px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--line) 100%);
}
.timeline > li {
  position: relative;
  margin: 0;
  padding: 0 0 1.65rem 2.15rem;
}
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: 0; top: .5rem;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--accent);
  transition: background-color .3s var(--ease);
}
.timeline > li:hover::before { background: var(--accent); }
.timeline-year {
  display: block;
  font-family: var(--font-serif);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent-deep);
  line-height: 1.4;
}
.timeline-body { display: block; color: var(--ink); font-size: 1rem; line-height: 1.5; margin-top: .1rem; }
.timeline-group {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 2rem 0 1.1rem;
}
.timeline-group:first-child { margin-top: 0; }

/* Definition rows (office info / facts) --------------------------------- */
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.info-card-head {
  padding: 1.35rem clamp(1.35rem, 3vw, 1.85rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.info-card-head h3 { margin: 0; font-size: 1.2rem; }
.info-card-body { padding: clamp(1.35rem, 3vw, 1.85rem); }

.dl { margin: 0; display: grid; gap: 1.15rem; }
.dl dt {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .2rem;
}
.dl dd { margin: 0; color: var(--ink); line-height: 1.6; }
.dl dd a { font-weight: 500; }

/* CTA band -------------------------------------------------------------- */
.cta-band {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(720px 460px at 12% 0%, rgba(201, 166, 103, .18), transparent 60%);
  pointer-events: none;
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .8); }
.cta-inner {
  display: grid;
  gap: 2rem 3rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 880px) {
  .cta-inner { grid-template-columns: minmax(0, 1.4fr) auto; }
}
.cta-actions { display: flex; flex-wrap: wrap; gap: .85rem 1rem; }

/* Page hero (interior pages) -------------------------------------------- */
.page-hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(900px 480px at 88% -20%, rgba(140, 106, 47, .10), transparent 60%),
    linear-gradient(180deg, var(--paper-2), var(--paper));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero .lede { max-width: 60ch; }
.page-hero-inner { position: relative; z-index: 1; max-width: 780px; }

/* Breadcrumb-ish / meta rows -------------------------------------------- */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .85rem;
  align-items: center;
  font-size: .85rem;
  color: var(--ink-faint);
}

/* Teaser band ------------------------------------------------------------ */
.teaser-tickers {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .6rem;
  list-style: none;
  margin: 0; padding: 0;
}
.teaser-tickers li { margin: 0; }

/* Message / status pages -------------------------------------------------- */
.center-panel {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 10vw, 8rem);
}
.center-panel .wrap { width: 100%; }
.status-mark {
  width: 68px; height: 68px;
  color: var(--accent);
  margin: 0 auto 2rem;
  stroke-width: 1.35;
}
.status-code {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.05em;
  color: var(--line-strong);
  margin: 0 0 1.25rem;
}

/* 11. MOTION / REVEAL ====================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .58s var(--ease), transform .58s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.is-visible { will-change: auto; }

.reveal--left { transform: translateX(-24px); }
.reveal--right { transform: translateX(24px); }
.reveal--scale { transform: translateY(16px) scale(.985); }
.reveal--fade { transform: none; }

/* hero load-in (no observer needed) */
.hero-in {
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn .72s var(--ease) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}
@keyframes heroIn { to { opacity: 1; transform: none; } }

.motif-in { animation: motifIn 1.4s var(--ease) both; animation-delay: .25s; }
@keyframes motifIn {
  from { opacity: 0; transform: translateY(-46%) translateX(28px); }
}
@media (max-width: 820px) {
  @keyframes motifIn { from { opacity: 0; transform: translateX(28px); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .hero-in, .motif-in { opacity: 1 !important; transform: none !important; }
  .btn:hover, .card--link:hover { transform: none; }
}

/* 12. UTILITIES ============================================================ */
.center { text-align: center; }
.center-x { margin-inline: auto; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.accent { color: var(--accent-deep); }
.serif { font-family: var(--font-serif); }
.uppercase { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mt-4 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1.5rem; }
.hairline { border-top: 1px solid var(--line); }
.list-clean { list-style: none; padding-left: 0; }
.list-check { list-style: none; padding-left: 0; }
.list-check li { position: relative; padding-left: 1.75rem; color: var(--ink-soft); }
.list-check li::before {
  content: "";
  position: absolute;
  left: 0; top: .58em;
  width: 10px; height: 6px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.flow > * + * { margin-top: 1.25rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }

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

.site-shell { display: flex; flex-direction: column; min-height: 100vh; }

/* 13. PRINT ================================================================ */
@media print {
  :root { --paper: #fff; --paper-2: #fff; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.45; }
  .site-header, .nav-toggle, .site-nav, .nav-scrim,
  .hero-motif, .cta-band, .btn, .skip-link { display: none !important; }
  .hero, .page-hero { margin-top: 0; padding-top: 1rem; background: none; }
  .section { padding-block: 1rem; }
  .card, .info-card, .form-card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .site-footer { background: none; color: #000; border-top: 1px solid #ccc; padding-block: 1rem; }
  .site-footer a, .footer-disclaimer, .footer-copyright, .footer-legal,
  .footer-meta, .footer-heading, .footer-name, .footer-tagline { color: #000; }
  div.footer-legal, .footer-bottom { border-top-color: #ccc; }
  .footer-nav, .footer-list { display: none; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .reveal, .hero-in { opacity: 1 !important; transform: none !important; }
  h1, h2, h3 { break-after: avoid; }
}


/* ===================================================================
   Mobile polish pass (v2): Home nav, solid mobile header, trust strip,
   nav panel contact block, active-page indicator.
   =================================================================== */
.nav-extra { display: none; }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--accent-deep); }

@media (min-width: 881px) {
  .site-nav a[aria-current="page"]:not(.btn) {
    box-shadow: inset 0 -2px 0 var(--accent);
  }
}

@media (max-width: 880px) {
  /* header is always solid on small screens: no content bleeding through */
  .site-header {
    background: var(--paper);
    border-bottom-color: var(--line);
  }

  /* contact block pinned to the bottom of the off-canvas panel */
  .nav-extra {
    display: block;
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
  }
  .nav-extra-label {
    margin: 0 0 .4rem;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
  .nav-extra a {
    display: block;
    padding: .35rem 0;
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
  }
  .nav-extra a:hover { color: var(--accent-deep); }

  /* trust strip: tighter, no awkward hanging wraps */
  .trust-list li {
    font-size: .72rem;
    letter-spacing: .05em;
    line-height: 1.45;
    text-wrap: balance;
  }
}


/* ==========================================================================
   14. MOTION & COLOR PASS (v3)
   Animated scales motif, secondary palette (oxblood + forest), section
   washes, scroll progress bar, richer hover states.
   All motion is wrapped in prefers-reduced-motion guards.
   ========================================================================== */

/* 14.1 Extra tokens -------------------------------------------------------- */
:root {
  /* secondary palette: two accents doing real work */
  --oxblood: #7A2E2E;          /* AA on paper: 9.0:1 */
  --oxblood-deep: #5E2222;
  --oxblood-soft: rgba(122, 46, 46, .10);
  --oxblood-glow: rgba(122, 46, 46, .17);

  --forest: #2F6B4F;           /* same value as --success; AA on paper: 6.1:1 */
  --forest-deep: #245540;
  --forest-soft: rgba(47, 107, 79, .10);
  --forest-glow: rgba(47, 107, 79, .17);

  --bronze-soft: rgba(140, 106, 47, .11);
  --bronze-glow: rgba(140, 106, 47, .19);
  --navy-soft: rgba(22, 50, 79, .09);
  --navy-glow: rgba(22, 50, 79, .16);

  /* signature colour per practice area / case category.
     Home cards and archive chips read from the same four tokens. */
  --cat-class-action: var(--accent);
  --cat-merger: var(--navy);
  --cat-insider: var(--oxblood);
  --cat-arbitration: var(--forest);
  --cat-investigation: var(--oxblood);
  --cat-consumer: var(--forest);
}

/* 14.2 Animated scales of justice ------------------------------------------
   The motif is grouped: a static frame (post, finial, base), a beam that
   pivots on the post, and two pans that counter-rotate about their own
   suspension point so they stay level while the beam tilts. A second,
   slower drift group inside each pan adds the settle. */
.scales .scales-beam,
.scales .scales-pan,
.scales .scales-pan-drift {
  transform-box: view-box;
  transform-origin: 32px 16px;
}
.scales .scales-pan--left,
.scales .scales-pan--left .scales-pan-drift { transform-origin: 11px 16px; }
.scales .scales-pan--right,
.scales .scales-pan--right .scales-pan-drift { transform-origin: 53px 16px; }

@keyframes scalesBeam {
  from { transform: rotate(-2.9deg); }
  to   { transform: rotate(2.9deg); }
}
@keyframes scalesPanLevel {
  from { transform: rotate(2.9deg); }
  to   { transform: rotate(-2.9deg); }
}
@keyframes scalesDriftA {
  from { transform: translateY(-.5px); }
  to   { transform: translateY(.5px); }
}
@keyframes scalesDriftB {
  from { transform: translateY(.38px); }
  to   { transform: translateY(-.38px); }
}

@media (prefers-reduced-motion: no-preference) {
  /* 8.4s per swing, ease-in-out, alternating forever. The negative delay
     starts the beam level rather than at full tilt. */
  .scales--live .scales-beam,
  .scales--live .scales-pan {
    animation-duration: 8.4s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-delay: -4.2s;
  }
  .scales--live .scales-beam { animation-name: scalesBeam; }
  .scales--live .scales-pan { animation-name: scalesPanLevel; }

  .scales--live .scales-pan--left .scales-pan-drift {
    animation: scalesDriftA 6.6s ease-in-out -1.4s infinite alternate;
  }
  .scales--live .scales-pan--right .scales-pan-drift {
    animation: scalesDriftB 7.8s ease-in-out -.5s infinite alternate;
  }
}

/* 404: the scales never find level. Off balance even with motion disabled. */
.scales--tipped .scales-beam { transform: rotate(-10deg); }
.scales--tipped .scales-pan { transform: rotate(10deg); }

@keyframes scalesTipBeam {
  from { transform: rotate(-11.4deg); }
  to   { transform: rotate(-8.6deg); }
}
@keyframes scalesTipPan {
  from { transform: rotate(11.4deg); }
  to   { transform: rotate(8.6deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .scales--tipped .scales-beam { animation: scalesTipBeam 4.6s ease-in-out infinite alternate; }
  .scales--tipped .scales-pan { animation: scalesTipPan 4.6s ease-in-out infinite alternate; }
  .scales--tipped .scales-pan--left .scales-pan-drift {
    animation: scalesDriftA 3.3s ease-in-out infinite alternate;
  }
  .scales--tipped .scales-pan--right .scales-pan-drift {
    animation: scalesDriftB 3.9s ease-in-out -.6s infinite alternate;
  }
}

/* 14.3 Brand mark: playful tilt on hover only ------------------------------ */
.brand:hover .brand-mark { transform: none; }

@keyframes markTip {
  0%   { transform: rotate(0); }
  30%  { transform: rotate(-7deg); }
  62%  { transform: rotate(4deg); }
  100% { transform: rotate(0); }
}
@keyframes markRock {
  0%   { transform: rotate(0); }
  20%  { transform: rotate(-10deg); }
  46%  { transform: rotate(7deg); }
  70%  { transform: rotate(-3.5deg); }
  100% { transform: rotate(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .brand:hover .brand-mark,
  .brand:focus-visible .brand-mark { animation: markTip .8s var(--ease); }
  .footer-brand:hover .brand-mark,
  .footer-brand:focus-visible .brand-mark { animation: markRock 1.15s var(--ease); }
}

.footer-brand .brand-mark { transition: color .3s var(--ease); }
.footer-brand:hover .brand-mark { color: #E0C48C; }

/* 14.4 Hero: bronze text-gradient on one word ------------------------------ */
.hero h1 em {
  position: relative;
  display: inline-block;
  font-style: normal;
  color: var(--accent-deep);
}
/* The gradient lives on an inner span so the swash below is never affected
   by background-clip:text. Every stop clears AA for large text on paper:
   #6E5222 = 7.0:1, #A97C33 = 3.6:1, #7A2E2E = 9.0:1. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 em > span {
    background-image: linear-gradient(96deg, var(--accent-deep) 0%, #A97C33 46%, var(--oxblood) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.05em;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--oxblood));
  opacity: .5;
  transform: scaleX(0);
  transform-origin: left;
}
@keyframes swashIn { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 em::after { animation: swashIn .9s var(--ease) 1.05s forwards; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 em::after { transform: none; }
}

/* warmer rule under the hero than a flat hairline */
.hero::after {
  height: 2px;
  background: linear-gradient(90deg,
    rgba(227, 222, 210, 0) 0%,
    rgba(140, 106, 47, .40) 22%,
    rgba(122, 46, 46, .26) 52%,
    rgba(22, 50, 79, .24) 74%,
    rgba(227, 222, 210, 0) 100%);
}

/* interior page motif, sized for the shorter page hero */
.hero-motif--sm {
  right: clamp(-110px, -4vw, -30px);
  width: clamp(240px, 34vw, 400px);
  opacity: .06;
}
@media (max-width: 820px) {
  .hero-motif--sm { bottom: -22%; right: -24%; width: 64vw; opacity: .045; }
}

/* 14.5 Section washes and angled band edges -------------------------------- */
.section--wash {
  background-image: linear-gradient(180deg, var(--paper-2) 0%, rgba(244, 241, 234, 0) 58%);
}
.section--wash.section--alt {
  background-image: linear-gradient(180deg, var(--paper-3) 0%, rgba(244, 241, 234, 0) 62%);
}

/* navy stats band cuts in on a slight angle instead of a hard edge */
.stats-band {
  clip-path: polygon(0 0, 100% clamp(12px, 2.1vw, 32px), 100% 100%, 0 100%);
}

/* bronze filament along the top of the closing CTA band */
.cta-band::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(201, 166, 103, 0) 0%,
    var(--accent) 18%,
    var(--accent-light) 48%,
    rgba(201, 166, 103, .30) 78%,
    rgba(201, 166, 103, 0) 100%);
  opacity: .7;
  pointer-events: none;
  z-index: 1;
}

/* 14.6 Practice-area cards: one signature colour each ---------------------- */
.card--tint {
  --tint: var(--accent);
  --tint-ink: var(--accent-deep);
  --tint-soft: var(--bronze-soft);
  --tint-glow: var(--bronze-glow);
  box-shadow: inset 3px 0 0 0 var(--tint), var(--shadow-sm);
}
.card--tint::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(148deg, var(--tint-soft) 0%, rgba(255, 255, 255, 0) 48%);
  opacity: .8;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.card--tint > * { position: relative; }
.card--tint .card-icon { color: var(--tint); }
.card--tint .link-arrow { color: var(--tint-ink); }
.card--tint h3 { transition: color .3s var(--ease); }

.card-icon { transition: transform .45s var(--ease), color .3s var(--ease); }

.card--link.card--tint:hover {
  box-shadow: inset 5px 0 0 0 var(--tint-ink), 0 18px 42px var(--tint-glow);
  border-color: var(--line-strong);
}
.card--link.card--tint:hover::before { opacity: 1; }
.card--link.card--tint:hover h3 { color: var(--tint-ink); }
.card--link.card--tint:hover .card-icon { transform: translateY(-2px) scale(1.06); }

.card--bronze  { --tint: var(--cat-class-action); --tint-ink: var(--accent-deep);  --tint-soft: var(--bronze-soft);  --tint-glow: var(--bronze-glow); }
.card--navy    { --tint: var(--cat-merger);       --tint-ink: var(--navy-deep);    --tint-soft: var(--navy-soft);    --tint-glow: var(--navy-glow); }
.card--oxblood { --tint: var(--cat-insider);      --tint-ink: var(--oxblood-deep); --tint-soft: var(--oxblood-soft); --tint-glow: var(--oxblood-glow); }
.card--forest  { --tint: var(--cat-arbitration);  --tint-ink: var(--forest-deep);  --tint-soft: var(--forest-soft);  --tint-glow: var(--forest-glow); }

@media (prefers-reduced-motion: reduce) {
  .card--link.card--tint:hover .card-icon { transform: none; }
}

/* matching chip tints, so archive category chips can mirror the cards */
.chip--bronze,  .chip--cat-class-action { border-color: rgba(140, 106, 47, .32); background: var(--bronze-soft);  color: var(--accent-deep); }
.chip--navy,    .chip--cat-merger       { border-color: rgba(22, 50, 79, .28);   background: var(--navy-soft);    color: var(--navy); }
.chip--oxblood, .chip--cat-insider,
.chip--cat-investigation                { border-color: rgba(122, 46, 46, .30);  background: var(--oxblood-soft); color: var(--oxblood); }
.chip--forest,  .chip--cat-arbitration,
.chip--cat-consumer                     { border-color: rgba(47, 107, 79, .30);  background: var(--forest-soft);  color: var(--forest-deep); }

/* 14.7 Trust strip: icons tick in when revealed ---------------------------- */
/* shorter lift than the default reveal; keep the .is-visible rule more
   specific than the resting state or the items never settle */
.trust-list li.reveal { transform: translateY(12px); }
.trust-list li.reveal.is-visible { transform: none; }
.trust-list svg { transition: transform .35s var(--ease), color .3s var(--ease); }
.trust-list li:hover { color: var(--ink); }
.trust-list li:hover svg { color: var(--accent-deep); transform: scale(1.12); }

@keyframes tickDraw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .trust-list li svg > * {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  .trust-list li.is-visible svg > * {
    animation: tickDraw .9s var(--ease) forwards;
    animation-delay: calc(var(--reveal-delay, 0ms) + 140ms);
  }
  .trust-list li.is-visible svg > *:nth-child(2) { animation-delay: calc(var(--reveal-delay, 0ms) + 260ms); }
  .trust-list li.is-visible svg > *:nth-child(3) { animation-delay: calc(var(--reveal-delay, 0ms) + 360ms); }
  .trust-list li.is-visible svg > *:nth-child(4) { animation-delay: calc(var(--reveal-delay, 0ms) + 440ms); }
}

/* 14.8 Status marks (thanks / 404) -----------------------------------------
   Colour carries meaning here: forest for a confirmed submission, oxblood
   for the page that could not be found. */
.status-mark--check { color: var(--forest); }
.status-mark--scales { color: var(--oxblood); width: 92px; height: 92px; stroke-width: 1.5; }

/* the numerals were near-invisible in --line-strong; #A96A6A is 4.1:1 on
   paper, comfortably past AA for text this large */
.status-code--404 { color: #A96A6A; }

@media (prefers-reduced-motion: no-preference) {
  .status-mark--check > * { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .status-mark--check circle { animation: tickDraw .95s var(--ease) .35s forwards; }
  .status-mark--check path { animation: tickDraw .55s var(--ease) 1s forwards; }
}

/* 14.9 Stats: hairline draws itself in ------------------------------------- */
.stat { position: relative; }
.stat::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 100%; height: 1px;
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .75s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0ms) + 180ms);
}
.stat.is-visible::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .stat::before { transform: scaleX(1); }
}

/* 14.10 Richer hover states ------------------------------------------------ */
.teaser-tickers .chip {
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              border-color .25s var(--ease), color .25s var(--ease);
}
.teaser-tickers .chip:hover {
  transform: translateY(-2px);
  border-color: rgba(140, 106, 47, .34);
  background: var(--bronze-soft);
  color: var(--accent-deep);
}
@media (prefers-reduced-motion: reduce) {
  .teaser-tickers .chip:hover { transform: none; }
  .trust-list li:hover svg { transform: none; }
}

.notice { transition: border-left-color .3s var(--ease), background-color .3s var(--ease); }
.notice:hover { border-left-color: var(--oxblood); }

.steps > li h3 { transition: color .3s var(--ease); }
.steps > li:hover h3 { color: var(--accent-deep); }
.steps > li::after { transition: background-color .35s var(--ease); }
.steps > li:hover::after { background: var(--accent); }

/* footer link sweep, same language as the top nav */
.footer-list a { position: relative; }
.footer-nav a::after,
.footer-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .32s var(--ease);
}
.footer-nav a:hover::after,
.footer-list a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-nav a:hover,
.footer-list a:hover { text-decoration: none; }

/* 14.11 Scroll progress bar ------------------------------------------------ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.scroll-progress.is-active { opacity: 1; }
/* the off-canvas nav owns the top edge while it is open */
body.nav-open .scroll-progress { opacity: 0; }
.scroll-progress > span {
  display: block;
  width: 100%; height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent-deep) 0%, var(--accent) 45%, var(--accent-light) 100%);
  box-shadow: 0 0 12px rgba(140, 106, 47, .34);
}

@media print {
  .scroll-progress { display: none !important; }
  .stats-band { clip-path: none; }
}
