/* ═══════════════════════════════════════════════════════════════════════
   JJ Badenhorst Associates and Attorneys
   styles.css — single stylesheet, no build step

   CONTENTS
     00  Fonts
     01  Reset
     02  Tokens
     03  Base typography
     04  Accessibility — skip link, focus, screen-reader text
     05  Containers
     06  Buttons and links
     07  Rules, eyebrows, numerals
     08  Header
     09  Mobile menu
     10  Footer
     11  Mobile call bar
     12  Reveal system
     13  Section patterns
     14  Forms
     15  Responsive
     16  Reduced motion
   ═══════════════════════════════════════════════════════════════════════ */


/* ═══ 00 · FONTS ═════════════════════════════════════════════════════ */
/* Self-hosted, so the site makes no request to Google. These are the same
   woff2 subsets Google Fonts served, with the same family names, weights,
   styles and unicode-range values, so the type renders exactly as before.
   Only the latin and latin-ext subsets are carried; the Cyrillic and
   Vietnamese subsets are not used by any page.

   font-display: swap — Georgia shows immediately and is swapped for Caslon
   on arrival, which is why the fallback stack in --f-display and --f-text
   starts with Georgia. */

/* Libre Caslon Display is built from the upstream OFL release rather than
   taken from Google, because Google's web build strips the OpenType layout
   features and that silently disables the old-style figures. Every numeral on
   the site is set in this face, so .numeral depends on it. Its metrics are
   identical to the Google build — same 1000 unit em, ascender, descender, cap
   height, x-height and advance widths — so no type moved. One file carries
   the latin and latin-ext ranges together. */
@font-face {
  font-family: 'Libre Caslon Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/libre-caslon-display.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2000-206F, U+2020, U+20A0-20AB, U+20AC, U+20AD-20C4, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+A720-A7FF, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/libre-caslon-text-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/libre-caslon-text-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Italic Caslon Text — the pull-quote on the home page and The Firm */
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/libre-caslon-text-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Libre Caslon Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/libre-caslon-text-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Hanken Grotesk is one variable file per subset covering 400 to 500, so both
   weights point at the same woff2. Declared as two fixed weights rather than
   a 400 500 range, which is how Google served it. */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ═══ 01 · RESET ═════════════════════════════════════════════════════ */

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

html { -webkit-text-size-adjust: 100%; }

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
  padding: 0;
}

ul[class], ol[class] { list-style: none; }

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

/* Safety net carried over from the starter template: a failed reveal must
   never be able to hide a photograph. The reveal system fades the wrapping
   figure, never the <img> itself, so this rule and the animation coexist. */
img { opacity: 1 !important; height: auto; }

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

/* A class that sets display, such as .btn, otherwise beats the browser's own
   [hidden] rule and the element stays on screen. */
[hidden] { display: none !important; }

table { border-collapse: collapse; }


/* ═══ 02 · TOKENS ════════════════════════════════════════════════════ */

:root {

  /* Colour */
  --paper:      #F5F1EA;  /* main background, warm ivory */
  --paper-deep: #EBE4D8;  /* alternate section background */
  --ink:        #1D1C1A;  /* primary text and dark sections */
  --ink-soft:   #4A4741;  /* body text */
  --rule:       #CFC6B6;  /* hairlines and borders */
  --oxblood:    #5E2129;  /* single accent: CTAs, links, small details */
  --oxblood-dk: #481820;  /* hover state */
  --brass:      #9C7F52;  /* decorative only: fine rules and borders */

  /* The same brass walked down its own hue until it clears WCAG AA as text:
     5.14:1 on --paper and 4.58:1 on --paper-deep. Every brass label, numeral
     and role on the site uses this, never --brass itself. */
  --brass-text: #7A6238;

  /* Brass over --ink, 7.16:1 */
  --brass-ink:  #C0A47A;

  /* Hairline over a dark ground, and muted text on --ink */
  --rule-dark:  rgba(245, 241, 234, 0.22);
  --paper-mute: rgba(245, 241, 234, 0.72);

  /* Type families */
  --f-display: 'Libre Caslon Display', Georgia, 'Times New Roman', serif;
  --f-text:    'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --f-ui:      'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type scale — fluid */
  --fs-display: clamp(2.6rem, 6vw, 5.2rem);
  --fs-title:   clamp(2.1rem, 4.6vw, 3.6rem);
  --fs-h2:      clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3:      clamp(1.15rem, 1.8vw, 1.4rem);
  --fs-lead:    clamp(1.35rem, 2.4vw, 1.9rem);
  --fs-body:    clamp(1.0625rem, 0.4vw + 1rem, 1.125rem);
  --fs-sm:      0.9375rem;
  --fs-eyebrow: 0.8125rem;

  /* Line height */
  --lh-display: 1.06;
  --lh-title:   1.1;
  --lh-heading: 1.2;
  --lh-lead:    1.42;
  --lh-body:    1.65;

  /* Spacing — 4px base */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Rhythm */
  --section-y: clamp(5rem, 10vw, 9rem);
  --gutter:    clamp(1.25rem, 4vw, 2.5rem);

  /* Measure */
  --w-page: 1200px;
  --w-mid:  52rem;
  --w-text: 66ch;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-hover:  240ms;

  /* One reveal, used everywhere: content rises and fades in. Nothing on the
     site animates on any other distance, duration or curve. The 80ms step is
     also hardcoded once in main.js, where the stagger delays are set. */
  --reveal-rise: 16px;
  --reveal-dur:  600ms;
  --reveal-step: 80ms;

  /* Header height, used for scroll-margin on anchor targets */
  --header-h: 74px;
}


/* ═══ 03 · BASE TYPOGRAPHY ═══════════════════════════════════════════ */

body {
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--f-ui);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 400;
  line-height: var(--lh-heading);
  text-wrap: balance;
}

h1 { font-family: var(--f-display); font-size: var(--fs-title); line-height: var(--lh-title); }
h2 { font-family: var(--f-text);    font-size: var(--fs-h2); }
h3 { font-family: var(--f-text);    font-size: var(--fs-h3); }

p { max-width: var(--w-text); }
p + p { margin-top: var(--sp-5); }

strong { font-weight: 500; color: var(--ink); }

/* Caslon statement paragraph — one large idea, nothing else beside it */
.lead {
  font-family: var(--f-text);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--ink);
  max-width: var(--w-mid);
  text-wrap: pretty;
}

.pull-quote {
  font-family: var(--f-text);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 34rem;
  border-left: 1px solid var(--brass);
  padding-left: var(--sp-6);
}

.text-sm { font-size: var(--fs-sm); }


/* ═══ 04 · ACCESSIBILITY ═════════════════════════════════════════════ */

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--fs-sm);
  text-decoration: none;
  transform: translateY(-110%);
}

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

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

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

/* Anchor targets clear the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + var(--sp-6)); }


/* ═══ 05 · CONTAINERS ════════════════════════════════════════════════ */

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

.container--mid  { max-width: calc(var(--w-mid) + var(--gutter) * 2); }
.container--text { max-width: calc(var(--w-text) + var(--gutter) * 2); }

.section        { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }

/* Where a section follows a hairline that already marks the break, its own
   top padding would double the gap. */
.section--flush-top { padding-top: 0; }
.section--deep  { background: var(--paper-deep); }
.section--ink   { background: var(--ink); color: var(--paper-mute); }

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


/* ═══ 06 · BUTTONS AND LINKS ═════════════════════════════════════════ */

/* Primary — the only filled control on the site */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 16px 28px;
  background: var(--oxblood);
  color: var(--paper);
  font-family: var(--f-ui);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  border-radius: 1px;
  cursor: pointer;
  transition: background-color var(--t-hover) ease;
}

.btn__arrow {
  display: inline-block;
  transition: transform var(--t-hover) var(--ease-out);
}

@media (hover: hover) {
  .btn:hover { background: var(--oxblood-dk); }
  .btn:hover .btn__arrow { transform: translateX(4px); }
}

.btn:disabled { opacity: 0.55; cursor: default; }

/* Secondary — a text link whose 1px underline grows from the left */
.link {
  position: relative;
  display: inline-block;
  color: var(--oxblood);
  font-weight: 500;
  font-size: var(--fs-sm);
  text-decoration: none;
  padding-block: 2px;
}

.link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-hover) var(--ease-out);
}

@media (hover: hover) {
  .link:hover::after { transform: scaleX(1); }
}

.link:focus-visible::after { transform: scaleX(1); }

/* On a dark ground the accent would fail contrast, so links invert */
.section--ink .link,
.site-footer .link { color: var(--paper); }

/* Body copy links */
.prose a {
  color: var(--oxblood);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (hover: hover) {
  .prose a:hover { color: var(--oxblood-dk); }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-6) var(--sp-8);
  margin-top: var(--sp-8);
}


/* ═══ 07 · RULES, EYEBROWS, NUMERALS ═════════════════════════════════ */

.eyebrow {
  display: block;
  font-family: var(--f-ui);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin-bottom: var(--sp-5);
}

.section--ink .eyebrow { color: var(--brass-ink); }

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.section--ink .rule { border-top-color: var(--rule-dark); }

/* Old-style numerals, set in Caslon like printed folios */
.numeral {
  font-family: var(--f-display);
  font-variant-numeric: oldstyle-nums;
  font-feature-settings: 'onum' 1;
  color: var(--brass-text);
  line-height: 1;
}


/* ═══ 08 · HEADER ════════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 300ms ease, border-color 300ms ease;
}

.site-header.is-scrolled {
  background: var(--paper);
  border-bottom-color: var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  min-height: var(--header-h);
}

/* Wordmark — Caslon name over small Hanken uppercase entity line */
.wordmark {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding-block: var(--sp-2);
}

.wordmark__name {
  display: block;
  font-family: var(--f-display);
  font-size: 1.375rem;
  line-height: 1.1;
  letter-spacing: 0.005em;
}

.wordmark__entity {
  display: block;
  font-family: var(--f-ui);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 3px;
}

/* Desktop navigation */
.site-nav { display: flex; align-items: center; gap: var(--sp-8); }

.site-nav__link {
  position: relative;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  text-decoration: none;
  padding-block: var(--sp-2);
  transition: color var(--t-hover) ease;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--oxblood);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-hover) var(--ease-out);
}

@media (hover: hover) {
  .site-nav__link:hover { color: var(--ink); }
  .site-nav__link:hover::after { transform: scaleX(1); }
}

.site-nav__link[aria-current='page'] {
  color: var(--ink);
}

.site-nav__link[aria-current='page']::after { transform: scaleX(1); }

.site-header .btn { padding: 12px 22px; min-height: 44px; }

/* Mobile menu trigger — plain text, never an icon in a circle */
.nav-toggle {
  display: none;
  min-height: 44px;
  padding: var(--sp-2) var(--sp-1);
  background: none;
  border: 0;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
}


/* ═══ 09 · MOBILE MENU ═══════════════════════════════════════════════ */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--paper);
  padding: var(--gutter);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition: opacity 300ms ease, transform 300ms var(--ease-out), visibility 0s linear 300ms;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity 300ms ease, transform 300ms var(--ease-out), visibility 0s;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--sp-6);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  margin-top: var(--sp-10);
  border-top: 1px solid var(--rule);
}

.mobile-menu__link {
  display: block;
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--f-display);
  font-size: 1.75rem;
  color: var(--ink);
  text-decoration: none;
}

.mobile-menu__link[aria-current='page'] { color: var(--oxblood); }

.mobile-menu__contact {
  margin-top: var(--sp-10);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
}

.mobile-menu__contact a {
  color: var(--ink);
  text-decoration: none;
  padding-block: var(--sp-2);
}

.mobile-menu__cta { margin-top: var(--sp-8); }
.mobile-menu__cta .btn { width: 100%; justify-content: center; }


/* ═══ 10 · FOOTER ════════════════════════════════════════════════════ */

.site-footer {
  background: var(--ink);
  color: var(--paper-mute);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) var(--sp-10);
  font-size: var(--fs-sm);
}

.site-footer .wordmark { color: var(--paper); }
.site-footer .wordmark__entity { color: var(--paper-mute); }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--sp-12) var(--sp-10);
}

.site-footer__blurb {
  margin-top: var(--sp-6);
  max-width: 30ch;
  color: var(--paper-mute);
}

.site-footer__heading {
  font-family: var(--f-ui);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-ink);
  margin-bottom: var(--sp-5);
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.site-footer a {
  color: var(--paper-mute);
  text-decoration: none;
  transition: color var(--t-hover) ease;
}

@media (hover: hover) {
  .site-footer a:hover { color: var(--paper); }
}

.site-footer address {
  font-style: normal;
  line-height: 1.7;
}

.site-footer__fax { font-size: 0.8125rem; opacity: 0.75; }

.site-footer__base {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--rule-dark);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--paper-mute);
}


/* ═══ 11 · MOBILE CALL BAR ═══════════════════════════════════════════ */
/* Phones only. Hides once the footer enters view so it never covers the
   footer's own contact details. */

.call-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--oxblood);
  border-top: 1px solid var(--oxblood-dk);
  transform: translateY(0);
  transition: transform 300ms var(--ease-out);
}

.call-bar.is-hidden { transform: translateY(100%); }

.call-bar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  color: var(--paper);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
}


/* ═══ 12 · REVEAL SYSTEM ═════════════════════════════════════════════ */
/* One reveal, used everywhere. Content rises --reveal-rise and fades in over
   --reveal-dur on --ease-out, and in a list each item follows the one above
   it by --reveal-step. Nothing else on the site animates on entry: no scale,
   no slide from the side, no second curve.

   Hidden states apply only under .js, which an inline <head> script sets.
   With JavaScript off or blocked the class is never added and every
   element renders in its final state. */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-rise));
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity var(--reveal-dur) var(--ease-out),
              transform var(--reveal-dur) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

/* Elements already on screen at load are marked visible before first paint
   and must not animate from the hidden state. */
.js [data-reveal].is-instant { transition: none; }

/* The figure carries the reveal, never the <img>, so the
   img { opacity: 1 !important } safety net above stays intact. */
.media {
  overflow: hidden;
  background: var(--paper-deep);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Aspect ratios per slot — reserved before the image loads, so nothing
   shifts. Paired with width/height on every <img>. */
.media--portrait { aspect-ratio: 4 / 5; }
.media--wide     { aspect-ratio: 3 / 2; }
.media--group    { aspect-ratio: 16 / 9; }

/* The hero cannot wait for a scroll, so it plays the same reveal on load as
   a keyframe, on the same rise, duration, curve and 80ms step. */
@keyframes reveal-rise {
  from { opacity: 0; transform: translateY(var(--reveal-rise)); }
  to   { opacity: 1; transform: none; }
}

.js .hero__eyebrow,
.js .hero__headline,
.js .hero__standfirst,
.js .hero__actions,
.js .hero__media {
  opacity: 0;
  animation: reveal-rise var(--reveal-dur) var(--ease-out) forwards;
}

.js .hero__headline   { animation-delay: calc(var(--reveal-step) * 1); }
.js .hero__standfirst { animation-delay: calc(var(--reveal-step) * 2); }
.js .hero__actions    { animation-delay: calc(var(--reveal-step) * 3); }
.js .hero__media      { animation-delay: calc(var(--reveal-step) * 4); }


/* ═══ 13 · SECTION PATTERNS ══════════════════════════════════════════ */

/* ── hero-split ─────────────────────────────────────────────────────── */

/* The hero fills the first screen. The sticky header sits above it in the
   flow, so its height comes off the top: header plus hero together make the
   90vh, rather than the hero alone pushing past the fold. svh keeps mobile
   browser chrome from cutting it off, with vh as the fallback.

   There is no top padding. The grid centres the content in the box instead,
   so nothing stands empty above the headline. */
.hero {
  min-height: calc(90vh - var(--header-h));
  min-height: calc(90svh - var(--header-h));
  display: flex;
  align-items: center;
  padding-block: 0 clamp(2.5rem, 5vw, 4rem);
}

.hero > .container { width: 100%; }

.hero__layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero__headline {
  font-family: var(--f-display);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 14ch;
}

.hero__standfirst {
  margin-top: var(--sp-8);
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
}

/* ── page-head ──────────────────────────────────────────────────────── */

.page-head {
  padding-block: clamp(3.5rem, 8vw, 7rem) 0;
}

/* 404 and the thank-you page carry their content inside the header block and
   have no closing rule, so they keep padding on both edges. */
.page-head--plain { padding-bottom: clamp(3.5rem, 8vw, 7rem); }

.page-head__title { max-width: 18ch; }

.page-head__standfirst {
  margin-top: var(--sp-6);
  max-width: 54ch;
}

.page-head__rule { margin-top: clamp(2.5rem, 5vw, 4rem); }

.breadcrumb {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  margin-bottom: var(--sp-6);
}

.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb span { color: var(--brass-text); margin-inline: 0.5em; }

@media (hover: hover) {
  .breadcrumb a:hover { color: var(--oxblood); }
}

/* ── index-list — numbered editorial rows, never cards ──────────────── */

.index-list { border-top: 1px solid var(--rule); }

.index-row {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: baseline;
  gap: var(--sp-6);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t-hover) ease;
}

.index-row__numeral { font-size: 1.5rem; }

.index-row__title {
  display: block;
  font-family: var(--f-text);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  color: var(--ink);
  line-height: 1.2;
}

.index-row__desc {
  display: block;
  margin-top: var(--sp-3);
  max-width: 52ch;
  font-size: var(--fs-sm);
}

.index-row__arrow {
  color: var(--oxblood);
  font-size: 1.25rem;
  transition: transform var(--t-hover) var(--ease-out);
}

@media (hover: hover) {
  .index-row:hover { border-bottom-color: var(--ink); }
  .index-row:hover .index-row__arrow { transform: translateX(5px); }
  .index-row:hover .index-row__title { color: var(--oxblood); }
}

.index-row:focus-visible { outline-offset: -2px; }

/* ── offset-feature — narrow text against a wide offset image ───────── */

.offset {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

/* The image alternates sides between pages by source order rather than by a
   modifier class, so the reading order always matches the visual one. */
.offset__body { max-width: 44ch; }
.offset__body > * + * { margin-top: var(--sp-6); }
.offset__body .pull-quote { margin-top: var(--sp-8); }

/* ── principles — hairline-topped numbered columns, no icons ────────── */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-10);
}

.principle { border-top: 1px solid var(--rule); padding-top: var(--sp-6); }

.principle__numeral { font-size: 1.125rem; display: block; margin-bottom: var(--sp-4); }

.principle__title {
  font-family: var(--f-text);
  font-size: var(--fs-h3);
  color: var(--ink);
  margin-bottom: var(--sp-4);
}

.principle p { font-size: var(--fs-sm); }

/* ── band — quiet full-width image with a short caption ─────────────── */

.band__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-4) var(--sp-8);
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--rule);
}

.band__caption h2 { max-width: 20ch; }
.band__caption p  { font-size: var(--fs-sm); max-width: 38ch; }

/* ── ledger — two-column list of matters ────────────────────────────── */

.ledger {
  columns: 2;
  column-gap: var(--sp-12);
  border-top: 1px solid var(--rule);
  margin-top: var(--sp-8);
}

.ledger li {
  break-inside: avoid;
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-sm);
  color: var(--ink);
}

/* ── timeline ───────────────────────────────────────────────────────── */

.timeline { border-top: 1px solid var(--rule); margin-top: var(--sp-8); }

.timeline__row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: var(--sp-6);
  padding-block: var(--sp-8);
  border-bottom: 1px solid var(--rule);
}

.timeline__year { font-size: 1.75rem; }
.timeline__body h3 { margin-bottom: var(--sp-3); }
.timeline__body p { font-size: var(--fs-sm); }

/* ── era — the two founding dates, read across one hairline ─────────────
   A horizontal timeline, not the stacked .timeline used on The Firm. Set in
   Caslon old-style figures on the ivory ground, with a short brass tick over
   each date marking its place on the line. Two entries only. */

.era {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-10) clamp(2rem, 6vw, 5rem);
  border-top: 1px solid var(--rule);
  max-width: var(--w-mid);
}

.era__item {
  position: relative;
  padding-top: var(--sp-6);
}

.era__item::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: var(--sp-8);
  height: 1px;
  background: var(--brass);
}

.era__year {
  display: block;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
}

.era__label {
  display: block;
  margin-top: var(--sp-4);
  max-width: 30ch;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

/* ── people-grid ────────────────────────────────────────────────────── */

.people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.person__media { margin-bottom: var(--sp-6); }

.person__name {
  font-family: var(--f-text);
  font-size: var(--fs-h3);
  color: var(--ink);
}

.person__role {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin-top: var(--sp-2);
}

.person__meta {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--rule);
  font-size: var(--fs-sm);
}

.person__meta dt {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.8;
}

.person__meta dd { margin: 0 0 var(--sp-3); color: var(--ink); }
.person__meta dd:last-child { margin-bottom: 0; }

.person__bio { margin-top: var(--sp-5); font-size: var(--fs-sm); }

/* Support staff — a simpler, smaller list */
.staff-list {
  border-top: 1px solid var(--rule);
  margin-top: var(--sp-8);
  max-width: var(--w-mid);
}

.staff-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-6);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-sm);
}

.staff-list__name { color: var(--ink); }
.staff-list__role { color: var(--ink-soft); }

/* ── faq — native details, no JavaScript ────────────────────────────── */

.faq { border-top: 1px solid var(--rule); margin-top: var(--sp-8); max-width: var(--w-mid); }

.faq details { border-bottom: 1px solid var(--rule); }

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-6);
  padding-block: var(--sp-5);
  min-height: 44px;
  font-family: var(--f-text);
  font-size: 1.0625rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  flex: none;
  color: var(--oxblood);
  font-family: var(--f-ui);
}

.faq details[open] summary::after { content: '\2212'; }

.faq details > div { padding-bottom: var(--sp-6); }
.faq details p { font-size: var(--fs-sm); }

.faq__note {
  margin-top: var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  max-width: var(--w-mid);
}

/* ── cta-dark ───────────────────────────────────────────────────────── */

.cta__line {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  color: var(--paper);
  max-width: 20ch;
}

.cta__tel {
  display: inline-block;
  margin-top: var(--sp-8);
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--rule-dark);
  padding-bottom: var(--sp-2);
  transition: border-color var(--t-hover) ease;
}

@media (hover: hover) {
  .cta__tel:hover { border-bottom-color: var(--paper); }
}

.cta .btn {
  background: var(--paper);
  color: var(--ink);
}

@media (hover: hover) {
  .cta .btn:hover { background: #FFFFFF; }
}

/* ── practice-area cross links ──────────────────────────────────────── */

.also {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-8);
  margin-top: var(--sp-6);
}

/* ── prose blocks ───────────────────────────────────────────────────── */

.prose > * + *  { margin-top: var(--sp-6); }
.prose h2       { margin-top: var(--sp-12); }
.prose h3       { margin-top: var(--sp-8); }
.prose ul       { padding-left: 1.2em; max-width: var(--w-text); }
.prose li       { margin-top: var(--sp-2); }
.prose li::marker { color: var(--brass-text); }

/* Two-column label / body split used on inner pages */
.split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.split__label { font-family: var(--f-text); font-size: var(--fs-h3); color: var(--ink); }

/* A run of hairline-separated label and body pairs, as on The Firm page */
.glossary .split { padding-block: var(--sp-6); }


/* ═══ 14 · FORMS ═════════════════════════════════════════════════════ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}

.detail-block + .detail-block {
  margin-top: var(--sp-8);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--rule);
}

.detail-block__label {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin-bottom: var(--sp-4);
}

.detail-block a { color: var(--ink); text-decoration: none; }

@media (hover: hover) {
  .detail-block a:hover { color: var(--oxblood); }
}

.detail-block address { font-style: normal; line-height: 1.7; }

.detail-block__tel {
  font-family: var(--f-display);
  font-size: 1.75rem;
  line-height: 1.2;
  display: inline-block;
  padding-block: var(--sp-1);
}

/* Fields — bottom border only, square corners, labels above.
   Checkboxes and radios are deliberately excluded from the rules below:
   they need their native appearance, and -webkit-appearance: none would
   erase them entirely. */
.field { margin-bottom: var(--sp-8); }

.field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}

.field .req { color: var(--oxblood); }

.field input:not([type='checkbox']):not([type='radio']),
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--sp-3) 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  font-size: var(--fs-body);
  color: var(--ink);
  transition: border-color var(--t-hover) ease;
  -webkit-appearance: none;
  appearance: none;
}

/* A thin chevron drawn as a single SVG line. Inlined as a data URI so it
   costs no request, and deliberately not a gradient. */
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7' fill='none' stroke='%234A4741' stroke-width='1.25'%3E%3Cpath d='M1 1l4.5 4.5L10 1'/%3E%3C/svg%3E");
  background-position: right 2px center;
  background-size: 11px 7px;
  background-repeat: no-repeat;
  padding-right: var(--sp-8);
}

.field textarea { min-height: 8rem; resize: vertical; line-height: var(--lh-body); }

.field input:not([type='checkbox']):not([type='radio']):focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--oxblood);
  outline: 2px solid transparent;
  outline-offset: 3px;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline-color: var(--oxblood); }

/* Radios and checkboxes keep the browser's own control, tinted oxblood */
.choice input,
.consent input {
  -webkit-appearance: auto;
  appearance: auto;
  accent-color: var(--oxblood);
}

.field.has-error input:not([type='checkbox']):not([type='radio']),
.field.has-error select,
.field.has-error textarea { border-bottom-color: var(--oxblood); border-bottom-width: 2px; }

/* A consent box in error is marked on its own rules, not on the input */
.field.has-error .consent { border-color: var(--oxblood); }

.field__error {
  display: none;
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--oxblood);
}

.field.has-error .field__error { display: block; }

/* Radio and checkbox groups */
.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-8);
}

.choice {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 44px;
  font-size: var(--fs-sm);
  cursor: pointer;
}

.choice input {
  width: 18px;
  height: 18px;
  min-height: 0;
  flex: none;
  accent-color: var(--oxblood);
  border: 0;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-sm);
  cursor: pointer;
}

.consent input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 3px;
  flex: none;
  accent-color: var(--oxblood);
  border: 0;
}

.consent a { color: var(--oxblood); }

/* Honeypot — never visible, never announced, never tabbable */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Inline form messages */
.form-note {
  padding: var(--sp-5) var(--sp-6);
  border-left: 2px solid var(--oxblood);
  background: var(--paper-deep);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-8);
}

.form-note[hidden] { display: none; }

.form-note--success { border-left-color: var(--brass); }

.form-note h3 { margin-bottom: var(--sp-2); }

/* Booking — the Cal.com trigger wears the site's own button, and the embed
   is only injected on click. */
.booking {
  padding: var(--sp-8);
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  margin-bottom: var(--sp-10);
}

.booking h2 { font-size: var(--fs-h3); margin-bottom: var(--sp-3); }
.booking p  { font-size: var(--fs-sm); margin-bottom: var(--sp-6); }

#booking-embed:empty { display: none; }

#booking-embed {
  margin-top: var(--sp-6);
  min-height: 32rem;
  background: var(--paper);
  border: 1px solid var(--rule);
}

/* Cal.com ships rounded corners and its own accent — contain both */
#booking-embed iframe { width: 100%; min-height: 32rem; border: 0; border-radius: 0; }

/* Map — lazy-loaded, grayscale so it sits quietly on the page */
.map {
  margin-top: var(--sp-10);
  border: 1px solid var(--rule);
  aspect-ratio: 16 / 9;
  background: var(--paper-deep);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(0.92);
}

.disclaimer {
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--rule);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}


/* ═══ 15 · RESPONSIVE ════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero__layout   { grid-template-columns: 6fr 5fr; }
  .offset         { grid-template-columns: 1fr 1fr; }
  .site-nav       { gap: var(--sp-6); }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }

  .site-nav { display: none; }
  .nav-toggle { display: block; }

  /* Stacked on a phone, the hero is as tall as its content needs, so the
     90vh floor is dropped rather than leaving a gap under the button. */
  .hero {
    min-height: 0;
    display: block;
    padding-block: var(--sp-6) clamp(3rem, 8vw, 5rem);
  }

  .hero__layout,
  .offset,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* The message lands first on a phone; the portrait follows it. */
  .hero__media { margin-top: var(--sp-10); max-width: 26rem; }
  .hero__headline { max-width: 18ch; }

  .principles     { grid-template-columns: 1fr; gap: var(--sp-8); }
  .people         { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }

  /* Clear the sticky call bar. The room is made inside the footer rather than
     on the body, so that when the bar slides away over the footer it does not
     leave a strip of paper below the dark ground. */
  .site-footer { padding-bottom: calc(var(--sp-10) + 52px); }
  .call-bar { display: block; }
}

@media (max-width: 620px) {
  .index-row {
    grid-template-columns: 2.5rem 1fr auto;
    gap: var(--sp-4);
  }

  .index-row__numeral { font-size: 1.125rem; }

  .ledger { columns: 1; }

  .timeline__row { grid-template-columns: 1fr; gap: var(--sp-3); }

  /* Two dates side by side leave no room for the sentence on a phone */
  .era { grid-template-columns: 1fr; gap: 0; }
  .era__item { padding-block: var(--sp-6); border-bottom: 1px solid var(--rule); }
  .era__item:last-child { border-bottom: 0; padding-bottom: 0; }

  .site-footer__grid { grid-template-columns: 1fr; gap: var(--sp-10); }

  .actions { gap: var(--sp-5); }
  .actions .btn { width: 100%; justify-content: center; }

  .booking { padding: var(--sp-6); }
}

@media (max-width: 380px) {
  .wordmark__name   { font-size: 1.1875rem; }
  .wordmark__entity { font-size: 0.5625rem; letter-spacing: 0.12em; }
}


/* ═══ 16 · REDUCED MOTION ════════════════════════════════════════════ */
/* Everything is shown instantly, in its final state. */

@media (prefers-reduced-motion: reduce) {

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* The reveal is switched off, not shortened: everything is simply there. */
  .js [data-reveal],
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .hero__eyebrow,
  .js .hero__headline,
  .js .hero__standfirst,
  .js .hero__actions,
  .js .hero__media {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .mobile-menu { transition: none; }
}

/* Full profile toggle on Our People */
.person__more { margin-top: var(--sp-5); }
.person__more summary { cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.person__more h4 { margin: var(--sp-5) 0 var(--sp-3); font-size: 1rem; }
.person__more p, .person__more li { margin-top: var(--sp-3); }
.person__more ul { padding-left: 1.2em; list-style: disc; }
.person__bio + .person__bio { margin-top: var(--sp-4); }

/* ═══ 12 · VISUAL ADDITIONS (Nov 2026) ════════════════════════════════
   Icons, number band, icon cards, attorney photo strips and the
   collapsible bios. Icons come from /assets/images/icons.svg. */

.icon { width: 2.5rem; height: 2.5rem; color: var(--oxblood); flex: none; display: block; }
.icon--sm { width: 1.75rem; height: 1.75rem; }
.icon--lg { width: 3.5rem; height: 3.5rem; }

.icon-tile {
  display: grid; place-items: center;
  width: 4.5rem; height: 4.5rem; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--rule);
  color: var(--oxblood); flex: none;
}
.section--deep .icon-tile { background: var(--paper); }
.icon-tile--lg { width: 7.5rem; height: 7.5rem; }
.icon-tile--lg .icon { width: 3.75rem; height: 3.75rem; }

/* index rows with an icon in place of the numeral */
.index-row--icon { align-items: center; grid-template-columns: 4.5rem 1fr auto; }
.index-row--icon .icon-tile { width: 3.5rem; height: 3.5rem; }
.index-row--icon .icon { width: 1.9rem; height: 1.9rem; }

/* number band */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.stat { padding: var(--sp-8) var(--sp-6); border-left: 1px solid var(--rule); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num {
  display: block; font-family: var(--f-display); line-height: 1;
  font-size: clamp(2.75rem, 5.5vw, 4.25rem); color: var(--oxblood);
}
.stat__label { display: block; margin-top: var(--sp-3); font-size: 0.95rem; color: var(--ink-soft); max-width: 18ch; }
.stats + .lead { margin-top: var(--sp-12); }

/* icon cards */
.cards {
  display: grid; gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.card {
  background: var(--paper); border: 1px solid var(--rule);
  padding: var(--sp-8); display: flex; flex-direction: column; gap: var(--sp-4);
}
.section--deep .card { background: var(--paper); }
.card__title { font-family: var(--f-text); font-size: var(--fs-h3); line-height: 1.2; }
.card p { font-size: 0.98rem; }
.principle .icon { margin-bottom: var(--sp-4); }

/* attorney photo strip on practice pages */
.avatars { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin-top: var(--sp-8); }
.avatar { display: flex; align-items: center; gap: var(--sp-4); text-decoration: none; color: inherit; }
.avatar__img, .avatar__initials {
  width: 5.5rem; height: 5.5rem; border-radius: 50%; flex: none;
  object-fit: cover; object-position: 50% 15%; border: 1px solid var(--rule);
}
.avatar__initials {
  display: grid; place-items: center; background: var(--paper);
  font-family: var(--f-display); font-size: 1.6rem; color: var(--oxblood);
}
.avatar__name { display: block; font-family: var(--f-text); font-size: 1.15rem; color: var(--ink); }
.avatar__role { display: block; font-size: 0.85rem; color: var(--brass-text); letter-spacing: 0.04em; }

/* page head with an icon beside the title */
.page-head__icon { margin-bottom: var(--sp-6); }

/* collapsible bios on Our People */
.person__more summary { list-style: none; display: inline-flex; align-items: center; gap: 0.4em; color: var(--oxblood); text-decoration: none; font-weight: 500; }
.person__more summary::-webkit-details-marker { display: none; }
.person__more summary::after { content: "+"; font-size: 1.1em; line-height: 1; }
.person__more[open] summary::after { content: "\2212"; }
.person__more[open] summary .more-label::after { content: ""; }

/* full-width photo under a page head */
.photo-band { margin-top: var(--sp-4); }
.photo-band figcaption { margin-top: var(--sp-3); font-size: 0.9rem; color: var(--ink-soft); }

/* contact detail labels with icons */
.contact-label { display: flex; align-items: center; gap: var(--sp-3); }
.contact-label .icon { width: 1.25rem; height: 1.25rem; }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 620px) {
  .index-row--icon { grid-template-columns: 3.25rem 1fr auto; }
  .index-row--icon .icon-tile { width: 2.75rem; height: 2.75rem; }
  .index-row--icon .icon { width: 1.5rem; height: 1.5rem; }
  .avatars { gap: var(--sp-5); }
  .avatar__img, .avatar__initials { width: 4.25rem; height: 4.25rem; }
}
@media (min-width: 1100px) { .cards--5 { grid-template-columns: repeat(5, 1fr); } }
.page-head .photo-band { margin-bottom: var(--sp-16); }

/* even cards on Our People: fixed-height teaser, everything else behind Read more */
.person { display: flex; flex-direction: column; }
.person__teaser {
  margin-top: var(--sp-5); font-size: var(--fs-sm); line-height: 1.7; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(4 * 1.7em);
}
.person:has(.person__more[open]) .person__teaser { display: none; }
.person__more { margin-top: var(--sp-5); }
.person__more > p, .person__more li { font-size: var(--fs-sm); line-height: 1.7; color: var(--ink-soft); }
.person__more .person__meta { margin: var(--sp-5) 0; }
.person__more .lbl-open { display: none; }
.person__more[open] .lbl-open { display: inline; }
.person__more[open] .lbl-closed { display: none; }
.person__monogram {
  display: grid; place-items: center; background: var(--paper-deep);
  border: 1px solid var(--rule);
}
.person__monogram span { font-family: var(--f-display); font-size: clamp(3rem, 7vw, 5.5rem); color: var(--oxblood); letter-spacing: 0.04em; }

/* 13. Chantelle's corrections, 10 Nov 2026: justified running text.
   The guard against hyphenated and broken words is kept separate from the
   alignment, so a paragraph can be set flush left and still never break a
   word across lines. */
.person__teaser, .person__more > p, .justify, .justify-p p, .flush-left {
  hyphens: none; -webkit-hyphens: none; overflow-wrap: normal; word-break: normal;
}

.person__teaser, .person__more > p, .justify, .justify-p p { text-align: justify; }

/* 15. The founder bio on the home page reads flush left. Justifying a measure
   this narrow opened large gaps between the words. */
.flush-left { text-align: left; }

/* 14. Hero location line links to Google Maps */
.hero__maplink { text-decoration: none; }
@media (hover: hover) { .hero__maplink:hover { text-decoration: underline; text-underline-offset: 4px; } }
.hero__maplink:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 4px; }

/* Agency credit, bottom of the footer */
.site-footer__credit { display: block; margin-top: var(--sp-2); opacity: 0.7; }
.site-footer__credit a { text-decoration: underline; text-underline-offset: 3px; }
