/* ==========================================================================
   LAW AVENUE  |  styles.css
   One shared stylesheet for every page. Direction: "Emerald, Ivory & Gold".

   CONTENTS
    1. Tokens
    2. Reset and base
    3. Typography helpers
    4. Layout and surfaces
    5. Utilities (rules, crop marks, links, buttons, TO CONFIRM mark, checkbox)
    6. Page chrome: skip link, noscript strip, header, nav, footer, call bar
    7. Disclaimer dialog (markup is injected by script.js)
    8. Homepage: hero and the avenue plan
    9. Section head (numbered label + hairline)
   10. Tabs (shared by the practice explorer and the presence diagram)
   11. Homepage: areas of practice
   12. Homepage: the firm and its approach
   13. Homepage: founders (two profiles, each with a portrait photograph)
   14. Homepage: courts and presence
   15. Homepage: what to have ready (checklist)
   16. Contact block, sheet and enquiry form
   17. Interior pages: page hero, breadcrumb, editorial layout, prose,
       facts, stage list, note, contact strip, other areas
   18. Motion: hero sequence, reveal, stagger
   19. Print (default, and checklist-only mode)
   20. Reduced motion, forced colours
   After 20, two blocks added later, each complete in itself: the About
   page, then the Associates (the row on the homepage and the profiles on
   the About page).

   RULES OF THE SYSTEM
   - Gold TEXT on ivory is always --gold-deep. --gold-line, --line and
     --line-dark are decoration only.
   - Flat colour only: no metallic gradients, no glow, no drop shadows.
     The one exception is the firm's own mark (header and footer): it keeps
     its own gradient, as the firm supplied it.
   - Nothing is hidden unless <html> has class "js" (set in the <head>).
   ========================================================================== */


/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root {
  /* Palette (exact values from the build spec) */
  --noir: #0B1D18;
  --emerald: #12332A;
  --emerald-2: #173F34;
  --line-dark: #2A4A40;
  --on-dark: #F7F2E8;
  --on-dark-2: #B7C0B6;
  --ivory: #F7F2E8;
  --ivory-2: #EFE7D8;
  --line: #DCCFB8;
  --ink: #14201C;
  --ink-2: #4B554F;
  --gold: #D2B47A;
  --gold-deep: #7A5A1E;
  --gold-line: #B8975A;
  --tbc: #FFE27A;
  /* Error text on ivory (7.6:1) and ivory-2 (6.9:1). Outside the palette on purpose. */
  --error: #8C2B1F;

  /* Type */
  --font-display: "Jost", "Century Gothic", "Tw Cen MT", Futura, "Segoe UI", system-ui, sans-serif;
  --font-body: "Jost", "Century Gothic", "Tw Cen MT", Futura, "Segoe UI", system-ui, sans-serif;
  --track: 0.14em;
  --track-wide: 0.24em;

  /* Space and motion */
  --gutter: clamp(20px, 5vw, 72px);
  --space-section: clamp(72px, 10vw, 160px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Surface variables. Components read these, so the same component works
     on ivory and on dark. The default surface is ivory. */
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --accent: var(--gold-deep);
  --hair: var(--gold-line);
  --rule: var(--line);
  --control: var(--ink-2);
  --focus: var(--gold-deep);

  /* Grain: a tiny feTurbulence tile, light for dark surfaces, dark for ivory. */
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='1' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .97 0 0 0 0 .95 0 0 0 0 .91 .13 0 0 0 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='1' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .11 0 0 0 0 .09 .1 0 0 0 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");

  /* The avenue echo as a repeating tile: two rows of canopies and a centre line. */
  --avenue-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='22' viewBox='0 0 72 22' fill='none' stroke='%23D2B47A' stroke-width='.9'%3E%3Ccircle cx='8' cy='5' r='3.4'/%3E%3Ccircle cx='32' cy='5' r='2.6'/%3E%3Ccircle cx='56' cy='5' r='3.8'/%3E%3Ccircle cx='8' cy='17' r='2.8'/%3E%3Ccircle cx='32' cy='17' r='3.8'/%3E%3Ccircle cx='56' cy='17' r='3'/%3E%3Cpath d='M0 11h72' stroke-dasharray='5 4' opacity='.55'/%3E%3C/svg%3E");
  --avenue-brass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='22' viewBox='0 0 72 22' fill='none' stroke='%23B8975A' stroke-width='.9'%3E%3Ccircle cx='8' cy='5' r='3.4'/%3E%3Ccircle cx='32' cy='5' r='2.6'/%3E%3Ccircle cx='56' cy='5' r='3.8'/%3E%3Ccircle cx='8' cy='17' r='2.8'/%3E%3Ccircle cx='32' cy='17' r='3.8'/%3E%3Ccircle cx='56' cy='17' r='3'/%3E%3Cpath d='M0 11h72' stroke-dasharray='5 4' opacity='.55'/%3E%3C/svg%3E");
}

@media (max-width: 959.98px) {
  :root { --header-h: 62px; }
}


/* ==========================================================================
   2. RESET AND BASE
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 28px);
  scrollbar-gutter: stable;
  background: var(--noir);
}

body {
  margin: 0;
  background: var(--noir);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

main { display: block; background: var(--ivory); }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

/* :where() keeps these resets at zero specificity, so any class can override them. */
:where(ul[class], ol[class]) { list-style: none; margin: 0; padding: 0; }
:where(dl, dd) { margin: 0; }
address { font-style: normal; }
svg, img { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
summary { cursor: pointer; }
em { font-style: italic; }

[hidden] { display: none !important; }

::selection { background: var(--gold); color: var(--noir); }

/* Focus is always visible: brass on ivory, gold on dark (via --focus). */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }


/* ==========================================================================
   3. TYPOGRAPHY HELPERS
   ========================================================================== */

.label {
  margin: 0;
  font: 500 0.75rem/1.45 var(--font-body);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--accent);
}

.title-lg {
  font-size: clamp(2.125rem, 1.35rem + 3.3vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.title-md {
  font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.625rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.006em;
  color: var(--fg);
}

.title-sm {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--fg);
}

/* A statement paragraph in the display face. */
.lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.3125rem, 1.1rem + 0.95vw, 1.75rem);
  line-height: 1.42;
  letter-spacing: 0;
  color: var(--fg);
}


/* ==========================================================================
   4. LAYOUT AND SURFACES
   ========================================================================== */

.container {
  width: min(100% - 2 * var(--gutter), 1240px);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--space-section);
}

/* Ivory surfaces */
.section--ivory,
.section--ivory-2,
.sheet {
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --accent: var(--gold-deep);
  --hair: var(--gold-line);
  --rule: var(--line);
  --control: var(--ink-2);
  --focus: var(--gold-deep);
  color: var(--fg);
}

.section--ivory { background: var(--grain-dark), var(--ivory); }
.section--ivory-2 { background: var(--grain-dark), var(--ivory-2); --rule: #D6C8AE; }

/* Dark surfaces */
.section--emerald,
.site-header,
.hero,
.page-hero,
.contact-strip,
.site-footer,
.callbar {
  --fg: var(--on-dark);
  --fg-2: var(--on-dark-2);
  --accent: var(--gold);
  --hair: rgba(210, 180, 122, .45);
  --rule: var(--line-dark);
  --control: var(--on-dark-2);
  --focus: var(--gold);
  color: var(--fg);
}

/* Emerald: a slow, deep light across the surface, never a visible band. */
.section--emerald {
  background:
    var(--grain-light),
    radial-gradient(ellipse 70% 62% at 10% 0%, rgba(23, 63, 52, .95) 0%, rgba(23, 63, 52, 0) 72%),
    radial-gradient(ellipse 62% 70% at 100% 100%, rgba(11, 29, 24, .62) 0%, rgba(11, 29, 24, 0) 72%),
    var(--emerald);
}

/* Two-column grid with deliberate asymmetry: a narrow column and a wide one. */
.split { display: grid; gap: clamp(28px, 5vw, 56px); }

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: clamp(40px, 7vw, 112px);
    align-items: start;
  }
}


/* ==========================================================================
   5. UTILITIES
   ========================================================================== */

/* Controls that only work with JavaScript. */
html.no-js .js-only { display: none !important; }

/* The opposite: notes for when JavaScript is off, or is on but script.js did
   not load (the <head> then puts class "no-js" back on <html>). A <noscript>
   element would stay hidden in that second case, so these are plain elements. */
html.js .no-js-only,
html.js .noscript-strip { display: none !important; }

/* Shown in print only. */
.print-only { display: none; }

/* A heading that names a section for screen readers where the page already
   shows the same word in the section head. It is printed (see section 19). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Keeps a short name on one line ("South Extension-II", "Delhi High Court",
   "New Delhi 110049"), so that a line never ends on a stray "II" or "Court". */
.nw { white-space: nowrap; }

/* --- Rules ---------------------------------------------------------------- */

/* Thin double rule: two hairlines 3px apart. */
.rule-double {
  height: 5px;
  margin: 0;
  border: 0;
  border-block: 1px solid var(--hair);
  transform-origin: left center;
}

/* The avenue echo as a divider strip (decorative; add aria-hidden="true"). */
.avenue-rule {
  height: 22px;
  background: var(--avenue-brass) left center / 72px 22px repeat-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.section--emerald .avenue-rule,
.site-footer .avenue-rule,
.page-hero .avenue-rule,
.contact-strip .avenue-rule { background-image: var(--avenue-gold); }

/* --- Registration crosses at the four corners of a panel -------------------
   .crop-marks needs position: relative (set here). The crosses sit centred on
   the corners, like the marks on a printed sheet. */
.crop-marks { position: relative; }

.crop-marks::before,
.hero__frame::before {
  --m: linear-gradient(var(--mark-color, var(--hair)), var(--mark-color, var(--hair)));
  content: "";
  position: absolute;
  inset: -7px;
  pointer-events: none;
  background:
    var(--m) left 0 top 7px / 15px 1px no-repeat,
    var(--m) left 7px top 0 / 1px 15px no-repeat,
    var(--m) right 0 top 7px / 15px 1px no-repeat,
    var(--m) right 7px top 0 / 1px 15px no-repeat,
    var(--m) left 0 bottom 7px / 15px 1px no-repeat,
    var(--m) left 7px bottom 0 / 1px 15px no-repeat,
    var(--m) right 0 bottom 7px / 15px 1px no-repeat,
    var(--m) right 7px bottom 0 / 1px 15px no-repeat;
}

/* --- Text link with a drawn arrow -------------------------------------------
   The underline grows from the left and the arrow shifts 4px on hover. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
  min-height: 44px;
  padding-block: 0.55em;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--fg);
  text-decoration: none;
  background:
    linear-gradient(var(--fg), var(--fg)) left bottom 0.55em / 0 1px no-repeat,
    linear-gradient(var(--hair), var(--hair)) left bottom 0.55em / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}

.link-arrow::after {
  content: "";
  flex: none;
  width: 22px;
  height: 9px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 9'%3E%3Cpath d='M0 4.5h21M17 .8l4 3.7-4 3.7' fill='none' stroke='%23000' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 9'%3E%3Cpath d='M0 4.5h21M17 .8l4 3.7-4 3.7' fill='none' stroke='%23000' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s var(--ease);
}

.link-arrow:hover,
.link-arrow:focus-visible { background-size: 100% 1px, 100% 1px; }
.link-arrow:hover::after,
.link-arrow:focus-visible::after { transform: translateX(4px); }

.link-arrow--down::after { transform: rotate(90deg); }
.link-arrow--down:hover::after,
.link-arrow--down:focus-visible::after { transform: rotate(90deg) translateX(4px); }

/* --- Buttons: rectangular, fine border, fill that wipes ---------------------
   Default (.btn) is the primary button on ivory: noir fill, gold hairline. */
.btn {
  --btn-bg: var(--noir);
  --btn-fg: var(--on-dark);
  --btn-bd: var(--gold-line);
  --btn-bg-h: var(--emerald-2);
  --btn-fg-h: var(--on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  min-height: 52px;
  padding: 0.5em 1.9em;
  border: 1px solid var(--btn-bd);
  border-radius: 1px;
  background: linear-gradient(90deg, var(--btn-bg-h) 0 50%, var(--btn-bg) 50% 100%) 100% 0 / 201% 100% no-repeat;
  /* 20 Nov 2026: a button a fraction of a pixel wide left the sliding fill just short of its right border,
     a thin line inside the edge (the gold button on phones with Jost; Continue and Send enquiry at some widths,
     already on the live site). Placing the fill from the outer edge hides any such gap under the border.
     Every button border is a solid colour, so nothing else changes. Must stay after the shorthand above. */
  background-origin: border-box;
  color: var(--btn-fg);
  font: 500 0.8125rem/1.2 var(--font-body);
  letter-spacing: var(--track);
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
  transition: background-position .5s var(--ease), color .35s ease, border-color .35s ease;
}

.btn:hover,
.btn:focus-visible { background-position: 0 0; color: var(--btn-fg-h); }
.btn:focus-visible { outline-offset: 4px; }

/* Primary on dark: flat gold fill, noir text. */
.btn--gold {
  --btn-bg: var(--gold);
  --btn-fg: var(--noir);
  --btn-bd: var(--gold);
  --btn-bg-h: var(--noir);
  --btn-fg-h: var(--gold);
}

/* Secondary on dark: gold outline. */
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--on-dark);
  --btn-bd: var(--gold);
  --btn-bg-h: var(--gold);
  --btn-fg-h: var(--noir);
}

/* Secondary on ivory: ink outline. */
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--ink-2);
  --btn-bg-h: var(--noir);
  --btn-fg-h: var(--on-dark);
}

.btn--sm { min-height: 44px; padding-inline: 1.3em; font-size: 0.75rem; }

/* --- TO CONFIRM mark ---------------------------------------------------------
   A deliberate highlighter, outside the palette, so nothing unconfirmed can
   be missed before publishing. Find them all with: mark.tbc[data-tbc]. */
.tbc {
  /* One box, never split across two lines; a long mark wraps inside the box. */
  display: inline-block;
  max-width: 100%;
  padding: 0.16em 0.5em 0.2em;
  border-radius: 2px;
  background: var(--tbc);
  color: var(--ink);
  font: 500 0.8125rem/1.5 var(--font-body);
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: normal;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

a > .tbc { text-decoration: none; }
a:has(> .tbc) { text-decoration: none; }
a:hover > .tbc, a:focus-visible > .tbc { background: #FFD43D; }

/* --- Custom checkbox (checklist and consent) -------------------------------- */
.checkbox {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 1px solid var(--control);
  border-radius: 1px;
  background: transparent center / 14px 14px no-repeat;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease;
}

/* A larger hit area than the visible box. */
.checkbox::before { content: ""; position: absolute; inset: -11px; }

.checkbox:checked {
  background-color: var(--noir);
  border-color: var(--noir);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.4l3.4 3.4L12 3.6' fill='none' stroke='%23D2B47A' stroke-width='1.6'/%3E%3C/svg%3E");
}

.checkbox[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }


/* ==========================================================================
   6. PAGE CHROME
   ========================================================================== */

/* --- Skip link -------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 13px 20px;
  background: var(--gold);
  color: var(--noir);
  font: 500 0.8125rem/1.2 var(--font-body);
  letter-spacing: var(--track);
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-220%);
}

.skip-link:focus { transform: none; outline: 2px solid var(--on-dark); outline-offset: 3px; }

/* --- noscript strip ---------------------------------------------------------
   A plain <p>, hidden under html.js (see "Utilities"): it shows when JavaScript
   is off, and when JavaScript is on but script.js did not load. */
.noscript-strip {
  margin: 0;
  padding: 12px var(--gutter);
  background: var(--ivory-2);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: center;
  border-bottom: 1px solid var(--gold-line);
}

.noscript-strip a { font-weight: 600; }

/* --- Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--grain-light), var(--noir);
  border-bottom: 1px solid transparent;
  transition: border-color .4s ease;
}

/* The gold hairline appears once the page has scrolled (class from script.js). */
.site-header.is-scrolled,
.site-header.is-open { border-bottom-color: rgba(210, 180, 122, .6); }

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  min-height: var(--header-h);
}

/* The logo: the firm's mark and, at its right, two lines centred on each
   other, the name and "Advocates & Solicitors". The HTML has the two lines in
   normal case, so that screen readers read words; they are set in capitals
   here. The mark keeps its own gradient (see the rules at the top).
   --brand-size is the size of the name; the mark, the gap and the tag line are
   all worked out from it, so the logo is made bigger or smaller by this one
   line.
   17 Nov 2026, on the owner's instruction (a bigger logo), the old logo grew
   from 320px wide to 375px and then kept its size. 20 Nov 2026, the firm's own
   logo: the name is 26px (the mark 44px tall) from 390px wide. Below that it
   shrinks in step with the screen, down to 18px at 320px, because the logo has
   to fit on one row with the Menu button (measured on 20 Nov 2026 at 320,
   340, 360, 375, 390 and 414px: besides the gap between them, 6.9px or more
   is left over; with the menu open, its wider "Close" still fits at 320px).
   The header keeps its height (--header-h). The tag line is 0.473 of the
   name, as in the firm's logo, and never smaller than 9px.
   The <svg> carries width and height attributes too: they give the mark a
   sensible size wherever this stylesheet is not in force (a browser that still
   holds an older copy of it, or none at all). */
.brand {
  --brand-size: clamp(1.125rem, calc(11.43vw - 1.161rem), 1.625rem);
  --brand-tag: max(9px, calc(var(--brand-size) * 0.473));
  --brand-mark: calc(var(--brand-size) * 0.8 + 23.2px);
  display: inline-flex;
  align-items: center;
  gap: calc(var(--brand-size) * 0.6 - 1.6px);
  min-height: 44px;
  color: var(--on-dark);
  text-decoration: none;
}

/* The mark keeps the 432:472 shape of its viewBox. */
.brand__mark {
  flex: none;
  width: calc(var(--brand-mark) * 432 / 472);
  height: var(--brand-mark);
}

.brand__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  font-kerning: normal;
  font-synthesis: none;
}

/* Letter-spacing and word-spacing as in the firm's logo. The negative right
   margin takes off the letter-space that follows the last letter, so that the
   two lines are truly centred on each other. */
.brand__name {
  font-size: var(--brand-size);
  font-weight: 400;
  letter-spacing: 0.105em;
  word-spacing: -0.074em;
  margin-right: -0.105em;
}

/* The space between the name's baseline and the tag line's capitals is 0.53 of
   the name's capital height, as in the firm's logo. */
.brand__tag {
  margin-top: calc(var(--brand-size) * 0.2185 - var(--brand-tag) * 0.1475);
  margin-right: -0.056em;
  font-size: var(--brand-tag);
  font-weight: 500;
  letter-spacing: 0.056em;
  word-spacing: -0.043em;
}

/* On the narrowest phones the logo and the Menu button have little room to
   share, so the least gap allowed between them is halved. With the old 24px
   the Menu button dropped to a row of its own at 320px. */
@media (max-width: 399.98px) {
  .site-header__inner { column-gap: 12px; }
}

/* Menu button: small screens with JavaScript only. */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 4px 0 14px;
  border: 0;
  background: none;
  color: var(--on-dark);
  font: 500 0.75rem/1 var(--font-body);
  letter-spacing: var(--track);
  text-transform: uppercase;
}

.nav-toggle::after {
  content: "";
  width: 22px;
  height: 9px;
  border-block: 1px solid var(--gold);
  transition: height .3s var(--ease);
}

.nav-toggle[aria-expanded="true"]::after { height: 1px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
}

.site-nav__link,
.nav-drop > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--on-dark);
  text-decoration: none;
  background: linear-gradient(var(--gold), var(--gold)) left bottom 10px / 0 1px no-repeat;
  transition: background-size .45s var(--ease), color .3s ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.nav-drop > summary:hover,
.nav-drop[open] > summary { background-size: 100% 1px; }

.site-nav__link[aria-current="page"],
.nav-drop__panel a[aria-current="page"] { color: var(--gold); background-size: 100% 1px; }

/* On a practice page the closed dropdown keeps its gold rule, so the header
   still shows where the reader is. */
.nav-drop:has(a[aria-current="page"]) > summary { background-size: 100% 1px; }

/* On contact.html the "Contact the firm" button is the current page: it stays filled. */
.site-nav__cta[aria-current="page"] { background-position: 0 0; color: var(--btn-fg-h); }

/* Dropdown: a native <details>, so it works without JavaScript. */
.nav-drop { position: relative; }

.nav-drop > summary { gap: 10px; list-style: none; }
.nav-drop > summary::-webkit-details-marker { display: none; }

.nav-drop > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
  transition: transform .3s var(--ease), margin .3s var(--ease);
}

.nav-drop[open] > summary::after { transform: rotate(225deg); margin-top: 3px; }

.nav-drop__panel {
  position: absolute;
  top: calc(100% + 13px);
  left: -22px;
  z-index: 5;
  min-width: 310px;
  padding: 8px 0;
  background: var(--emerald);
  border: 1px solid rgba(210, 180, 122, .5);
}

.nav-drop__panel a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-height: 48px;
  padding: 13px 22px;
  font-size: 1rem;
  color: var(--on-dark);
  text-decoration: none;
  transition: background-color .25s ease;
}

.nav-drop__panel a:hover,
.nav-drop__panel a:focus-visible { background: var(--emerald-2); }
.nav-drop__panel a:focus-visible { outline-offset: -3px; }

.nav-drop__num {
  font: 500 0.6875rem/1 var(--font-body);
  letter-spacing: var(--track);
  color: var(--gold);
}

@media (max-width: 959.98px) {
  .site-header__inner { flex-wrap: wrap; }

  .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 22px;
    border-top: 1px solid var(--line-dark);
  }

  .site-nav__link,
  .nav-drop > summary {
    display: flex;
    width: 100%;
    justify-content: space-between;
    min-height: 52px;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line-dark);
    background: none;
  }

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

  .site-nav__cta { margin-top: 20px; min-height: 52px; }

  .nav-drop__panel {
    position: static;
    min-width: 0;
    padding: 0 0 0 4px;
    border: 0;
    border-bottom: 1px solid var(--line-dark);
    background: none;
  }

  .nav-drop__panel a { padding-inline: 12px; }

  /* With JavaScript the nav becomes a panel under the header. */
  html.js .nav-toggle { display: inline-flex; }

  html.js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: calc(var(--gutter) * -1);
    right: calc(var(--gutter) * -1);
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    padding: 6px var(--gutter) 28px;
    overflow-y: auto;
    background: var(--noir);
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid rgba(210, 180, 122, .6);
  }

  html.js .site-header.is-open .site-nav { display: flex; }

  /* Without JavaScript the nav is simply visible and the header scrolls away. */
  html.no-js .site-header { position: static; }
}

/* --- Footer ----------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding-block: clamp(56px, 7vw, 104px) 36px;
  background: var(--grain-light), var(--noir);
  border-top: 1px solid rgba(210, 180, 122, .55);
  font-size: 1rem;
  line-height: 1.6;
}

.site-footer__grid { display: grid; gap: 44px; }

@media (min-width: 820px) {
  /* The middle column is never narrower than the email address, its longest
     unbreakable line (as in the hero facts strip). */
  .site-footer__grid {
    grid-template-columns: minmax(0, 5fr) minmax(min-content, 4fr) minmax(0, 3fr);
    column-gap: clamp(32px, 5vw, 88px);
  }
}

/* The firm's logo, stacked as in the logo itself: the mark centred over the
   name and "Advocates & Solicitors". Every size is worked out from --u, the
   width of the mark (64px on a phone, up to 80px), in the proportions of the
   firm's square logo: the name's capitals are 0.224u tall, the tag line's
   0.106u; the mark's foot is 0.241u above the name's capitals, and the name's
   baseline 0.127u above the tag line's capitals. The stack is as wide as its
   longest line and stands at the start of the column. The 40px below it keep
   the logo apart from the descriptor line, so that it reads as one unit. */
.site-footer__logo {
  --u: clamp(64px, 3.6vw + 50px, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  margin: 0 0 40px;
  font-family: var(--font-display);
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  font-kerning: normal;
  font-synthesis: none;
  color: var(--on-dark);
}

.site-footer__mark {
  flex: none;
  width: var(--u);
  height: calc(var(--u) * 472 / 432);
}

/* Spacing as in the header logo; the negative right margins centre the lines. */
.site-footer__name {
  margin: calc(var(--u) * 0.194) -0.105em 0 0;
  font-size: calc(var(--u) * 0.32);
  font-weight: 400;
  letter-spacing: 0.105em;
  word-spacing: -0.074em;
}

.site-footer__tag {
  margin: calc(var(--u) * 0.0557) -0.056em 0 0;
  font-size: calc(var(--u) * 0.1514);
  font-weight: 500;
  letter-spacing: 0.056em;
  word-spacing: -0.043em;
}

.site-footer__descriptor { margin-bottom: 22px; }

/* The firm's tagline: shown once per page, small. On about.html the firm's own
   text carries it, so this copy is hidden there (see "About page"). */
.site-footer__tagline {
  max-width: 24em;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 350;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--on-dark-2);
  text-wrap: balance;
}

.avenue-echo {
  width: min(300px, 100%);
  height: auto;
  margin-top: 30px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
}

.avenue-echo * { vector-effect: non-scaling-stroke; }
.avenue-echo .faint { stroke-opacity: .4; }
.avenue-echo .solid { fill: var(--gold); }

.site-footer__heading {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(210, 180, 122, .35);
  font: 500 0.75rem/1.45 var(--font-body);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--gold);
}

.site-footer address { margin-bottom: 18px; color: var(--on-dark); }

.site-footer__contact { display: grid; gap: 10px; }
.site-footer__contact dt { font-size: 0.875rem; color: var(--on-dark-2); }

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark);
  text-decoration: none;
  background: linear-gradient(var(--gold), var(--gold)) left bottom 11px / 0 1px no-repeat;
  transition: background-size .45s var(--ease);
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible,
.site-footer__links a[aria-current="page"] { background-size: 100% 1px; }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 32px;
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.875rem;
  color: var(--on-dark-2);
}

.site-footer__legal p { margin: 0; }
.site-footer__legal ul { display: flex; gap: 28px; }
.site-footer__legal .site-footer__note { flex-basis: 100%; max-width: 46em; }

@media (min-width: 1100px) {
  .site-footer__legal .site-footer__note { flex-basis: auto; margin-left: auto; text-align: right; }
}

/* --- Mobile call bar (720px and below) -------------------------------------- */
.callbar { display: none; }

@media (max-width: 720px) {
  .callbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--noir);
    border-top: 1px solid rgba(210, 180, 122, .7);
  }

  .callbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 60px;
    padding: 6px 4px;
    color: var(--on-dark);
    font: 500 0.75rem/1 var(--font-body);
    letter-spacing: var(--track);
    text-transform: uppercase;
    text-decoration: none;
  }

  .callbar__item + .callbar__item { border-left: 1px solid var(--line-dark); }
  .callbar__item:focus-visible { outline-offset: -4px; }
  .callbar__item--primary { background: var(--gold); color: var(--noir); }
  .callbar__item--primary:focus-visible { outline-color: var(--noir); }

  /* Room for the bar, so it never covers the end of the page. */
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }

  /* The same room when the browser scrolls to a focused control or an anchor,
     so that keyboard focus is never hidden under the bar (60px is the bar's
     min-height above: keep the two in step). */
  html { scroll-padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px) + 16px); }
}


/* ==========================================================================
   7. DISCLAIMER DIALOG
   The markup and the text are created in script.js (single source of the
   wording). Native <dialog>; .disclaimer--fallback covers old browsers.
   ========================================================================== */

html.has-dialog { overflow: hidden; }

.disclaimer {
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --accent: var(--gold-deep);
  --hair: var(--gold-line);
  --rule: var(--line);
  --focus: var(--gold-deep);
  width: min(700px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  background: var(--grain-dark), var(--ivory);
  color: var(--ink);
  overflow: visible;
}

.disclaimer::backdrop { background: rgba(11, 29, 24, .92); }

.disclaimer[open] { display: flex; flex-direction: column; }

/* The inset gold hairline: an engraved card. */
.disclaimer::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold-line);
  pointer-events: none;
  z-index: 2;
}

.disclaimer__scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: clamp(30px, 6vw, 56px) clamp(24px, 6vw, 60px) 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* The text region takes keyboard focus (tabindex="0" in script.js), so that it
   can be scrolled with the arrow keys. Its ring sits inside the gold hairline. */
.disclaimer__scroll:focus-visible { outline-offset: -14px; }

.disclaimer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(20px, 4vw, 34px);
  font: 500 0.6875rem/1 var(--font-body);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* The firm's mark, in its heavier small cut (viewBox 432 x 484), flat in the
   text colour (--gold-deep): fill="currentColor" in script.js. */
.disclaimer__brand svg { flex: none; width: calc(24px * 432 / 484); height: 24px; }

.disclaimer__title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem);
  letter-spacing: -0.006em;
}

.disclaimer__title:focus-visible { outline-offset: 6px; }

.disclaimer__body { font-size: 1rem; line-height: 1.6; }
.disclaimer__body > p { padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }

.disclaimer__list { counter-reset: point; }

.disclaimer__list li {
  counter-increment: point;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.disclaimer__list li::before {
  content: counter(point);
  font: italic 400 1.125rem/1.4 var(--font-display);
  color: var(--gold-deep);
}

/* The buttons stay in view while the text scrolls above them. */
.disclaimer__actions {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-inline: clamp(24px, 6vw, 60px);
  padding: 18px 0 clamp(26px, 5vw, 40px);
  border-top: 1px solid var(--gold-line);
}

.disclaimer__actions .btn { flex: 1 1 200px; }

/* A phone held sideways: drop the brand row and tighten the spacing, so that
   the first numbered point is in view above the buttons. */
@media (max-height: 480px) {
  .disclaimer__brand { display: none; }
  .disclaimer__scroll { padding-top: 22px; }
  .disclaimer__title { margin-bottom: 10px; font-size: 1.75rem; }
  .disclaimer__actions { padding: 12px 0 20px; }
}

/* Fallback when showModal() is not available. */
.disclaimer--fallback {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  margin: 0;
  transform: translate(-50%, -50%);
}

.disclaimer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(11, 29, 24, .92);
}


/* ==========================================================================
   8. HOMEPAGE: HERO AND THE AVENUE PLAN
   ========================================================================== */

.hero {
  --frame: clamp(10px, 1.6vw, 22px);
  position: relative;
  container-type: inline-size;
  overflow: hidden;
  overflow: clip;
  background:
    var(--grain-light),
    radial-gradient(ellipse 46% 54% at 76% 44%, rgba(23, 63, 52, .92) 0%, rgba(18, 51, 42, .55) 42%, rgba(11, 29, 24, 0) 100%),
    radial-gradient(ellipse 62% 42% at 4% 100%, rgba(18, 51, 42, .72) 0%, rgba(11, 29, 24, 0) 100%),
    var(--noir);
}

/* The inset gold hairline frame, with registration crosses at its corners. */
.hero__frame {
  --mark-color: var(--gold);
  position: absolute;
  inset: var(--frame);
  z-index: 1;
  border: 1px solid rgba(210, 180, 122, .5);
  pointer-events: none;
}

.hero__frame::before { inset: -8px; }

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: clamp(36px, 6vw, 56px);
  padding-top: calc(var(--frame) + clamp(34px, 6vw, 76px));
  padding-bottom: calc(var(--frame) + clamp(26px, 3.4vw, 40px));
}

/* On small screens the text keeps a clear margin inside the frame. */
@media (max-width: 599.98px) {
  .hero__inner { padding-inline: 8px; }
}

.hero__eyebrow {
  margin: 0 0 clamp(20px, 3vw, 34px);
  font: 500 0.75rem/1.7 var(--font-body);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--gold);
  text-wrap: balance;
}

.hero__title {
  font-size: clamp(2.5rem, 5.8vw, 5.125rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--on-dark);
}

.hero__title em { font-weight: 300; color: var(--gold); letter-spacing: -0.008em; }

.hero__sub {
  max-width: 35em;
  margin: clamp(22px, 3vw, 34px) 0 0;
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  line-height: 1.62;
  color: var(--on-dark-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 38px;
  margin-top: clamp(28px, 3.6vw, 42px);
}

/* --- The avenue plan (inline SVG) -------------------------------------------
   Portrait drawing. Below 900px it is turned on its side and sits under the
   text as a strip. Strokes are 1px at every size (non-scaling-stroke). */
.hero__plan {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 800 / 480;
  margin-inline: auto;
}

.plan {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: auto;
  aspect-ratio: 480 / 800;
  max-width: none;
  overflow: visible;
  transform: translate(-50%, -50%) rotate(90deg);
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  stroke-opacity: .52;
}

.plan * { vector-effect: non-scaling-stroke; }
.plan .faint { stroke-opacity: .26; }
.plan .strong { stroke-opacity: .82; }
.plan .full { stroke-opacity: 1; }
.plan .solid { fill: var(--gold); stroke: none; }
.plan .block { fill: var(--gold); fill-opacity: .5; stroke: none; }
.plan .dash { stroke-dasharray: 9 7; }

.plan text {
  fill: var(--gold);
  fill-opacity: .78;
  stroke: none;
  font: 500 10px/1 var(--font-body);
  letter-spacing: 0.2em;
}

.plan .plan__title-text { font-size: 9.5px; letter-spacing: 0.14em; }

/* On its side: keep only the label that runs along the avenue. */
.plan .plan__txt,
.plan .plan__titleblock { display: none; }
.plan .plan__txt--along { display: block; font-size: 19px; }

/* --- Facts strip under the fold line --------------------------------------- */
.hero-facts {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-top: clamp(4px, 1vw, 12px);
}

/* A hairline that runs the full width of the frame. */
.hero-facts::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 1px;
  background: rgba(210, 180, 122, .5);
  transform: translateX(-50%);
}

@supports (width: 1cqw) {
  .hero-facts::before { width: calc(100cqw - 2 * var(--frame)); }
}

.hero-facts__item {
  padding: 20px 0;
  font-size: 1rem;
  line-height: 1.55;
}

.hero-facts__item + .hero-facts__item { border-top: 1px solid var(--line-dark); }

.hero-facts dt {
  margin-bottom: 8px;
  font: 500 0.75rem/1.45 var(--font-body);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--gold);
}

/* Balanced lines, so that a line never holds a single last word ("forums."). */
.hero-facts dd { color: var(--on-dark); text-wrap: balance; }

.hero-facts__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.hero-facts__contact .link-arrow { margin-top: -2px; }

/* The two "WhatsApp only" links (a.hero-facts__wa) are set the same way at
   every width: the words on one line, the number on the next. Left to wrap by
   themselves they broke inside a name, and differently from each other,
   because one name is longer than the other. */
.hero-facts__number { display: block; }

@media (min-width: 760px) {
  /* The third column is never narrower than its longest unbreakable line (the
     email address, or the words of a "WhatsApp only" link, which cannot wrap
     here), so neither can run across the frame. */
  .hero-facts { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(min-content, 4fr); }

  .hero-facts__wa { white-space: nowrap; }

  .hero-facts__item { padding: 26px clamp(20px, 3vw, 44px) 4px; }
  .hero-facts__item:first-child { padding-left: 0; }
  .hero-facts__item:last-child { padding-right: 0; }

  .hero-facts__item + .hero-facts__item {
    border-top: 0;
    border-left: 1px solid rgba(210, 180, 122, .28);
  }
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(28px, 5vw, 88px);
    align-items: center;
  }

  .hero-facts { grid-column: 1 / -1; }

  /* Upright drawing at the side of the text. */
  .hero__plan {
    max-width: 440px;
    aspect-ratio: 480 / 800;
    margin-inline: auto 0;
  }

  .plan {
    position: static;
    width: 100%;
    transform: none;
  }

  .plan .plan__txt,
  .plan .plan__titleblock { display: block; }
  .plan .plan__txt--along { font-size: 10px; }
}

/* A short, wide window (a 1366x768 or 1536x864 laptop): the text starts at the
   top instead of centring on the taller drawing, and everything is set a
   little smaller, so that the hero's own button is on the first screen. */
@media (min-width: 900px) and (max-height: 820px) {
  .hero__inner { align-items: start; padding-top: calc(var(--frame) + 40px); }
  .hero__plan { max-width: 340px; }
  .hero__title { font-size: clamp(2.5rem, 5.1vw, 4.375rem); }
  .hero__sub { margin-top: 22px; }
  .hero__actions { margin-top: 28px; }
}


/* ==========================================================================
   9. SECTION HEAD
   A small numbered label, a hairline that extends, and a one-word tag.
   Decorative: the <h2> that follows carries the meaning.
   ========================================================================== */

.section-head {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  margin-bottom: clamp(36px, 5.5vw, 76px);
  font: 500 0.75rem/1 var(--font-body);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--accent);
}

.section-head__num,
.section-head__tag { margin: 0; white-space: nowrap; }

.section-head__rule {
  flex: 1;
  height: 1px;
  background: var(--hair);
  transform-origin: left center;
}


/* ==========================================================================
   10. TABS
   One pattern for the practice explorer and the presence diagram.

   Markup:
     <div class="tabs" data-tabs>
       <div class="tabs__list" role="tablist" aria-label="..." aria-orientation="vertical">
         <button class="tabs__tab" type="button" role="tab" id="t1"
                 aria-controls="p1" aria-selected="true" data-key="one"> ... </button>
       </div>
       <div class="tabs__panels">
         <div class="tabs__panel" role="tabpanel" id="p1" aria-labelledby="t1"> ... </div>
       </div>
     </div>

   Without JavaScript the tab list is hidden and every panel is visible.
   With JavaScript the panels share one grid cell, so the tallest panel sets
   the height and switching tabs never moves the page.
   ========================================================================== */

html.no-js .tabs__list { display: none; }

.tabs__list { display: grid; }

.tabs__tab {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: baseline;
  width: 100%;
  min-height: 60px;
  margin: 0;
  padding: 15px 30px 15px 0;
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  background: none;
  color: var(--fg-2);
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  transition: color .3s ease;
}

.tabs__tab:last-child { border-bottom: 1px solid var(--rule); }

.tabs__num {
  font: 500 0.75rem/1 var(--font-body);
  letter-spacing: var(--track);
  color: var(--accent);
}

.tabs__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.08rem + 0.75vw, 1.625rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
}

/* Active tab: an ink rule that grows from the left, and a small diamond. */
.tabs__tab::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .55s var(--ease);
}

.tabs__tab::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: translateY(-50%) rotate(45deg) scale(0);
  transition: transform .35s var(--ease);
}

.tabs__tab:hover,
.tabs__tab[aria-selected="true"] { color: var(--fg); }
.tabs__tab[aria-selected="true"]::before { transform: scaleX(1); }
.tabs__tab[aria-selected="true"]::after { transform: translateY(-50%) rotate(45deg) scale(1); }
.tabs__tab:focus-visible { outline-offset: 2px; z-index: 1; }

.tabs__panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }

html.js .tabs__panels { gap: 0; }
html.js .tabs__panel { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .5s ease; }
html.js .tabs__panel[hidden] { display: block !important; }

/* Before script.js runs, the first panel shows. After, the active one. */
html.js .tabs:not([data-active]) .tabs__panel:first-child,
html.js .tabs__panel.is-active { visibility: visible; opacity: 1; }


/* ==========================================================================
   11. HOMEPAGE: AREAS OF PRACTICE (practice explorer)
   ========================================================================== */

.explorer { display: grid; gap: clamp(32px, 5vw, 48px); }

.explorer__intro .lede { margin: clamp(16px, 2vw, 24px) 0 clamp(28px, 4vw, 44px); max-width: 17em; }

@media (min-width: 960px) {
  .explorer {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(40px, 6vw, 96px);
    align-items: start;
  }
}

/* The panel: a deeper ivory card with an inset hairline. */
.practice-panel {
  position: relative;
  padding: clamp(30px, 5vw, 60px) clamp(24px, 5vw, 60px) clamp(28px, 4vw, 48px);
  background: var(--ivory-2);
}

.practice-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold-line);
  opacity: .6;
  pointer-events: none;
}

.practice-panel > * { position: relative; }

.practice-panel__title {
  margin: 12px 0 clamp(16px, 2vw, 22px);
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.125rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.practice-panel__desc {
  max-width: 30em;
  margin: 0 0 clamp(22px, 3vw, 32px);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem);
  line-height: 1.45;
  letter-spacing: 0;
}

.practice-panel .rule-double { margin-bottom: clamp(20px, 2.6vw, 28px); }

.practice-panel__sub { margin-bottom: 12px; }

/* "This covers": plain terms, with the full name beneath where one is needed. */
.cover-list {
  display: grid;
  gap: 0 clamp(24px, 4vw, 48px);
  margin-bottom: clamp(18px, 2.4vw, 26px);
}

@media (min-width: 620px) {
  .cover-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cover-list li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

.cover-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35em;
  width: 12px;
  height: 1px;
  background: var(--gold-deep);
}

.cover-list__gloss {
  display: block;
  margin-top: 2px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-2);
}


/* ==========================================================================
   12. HOMEPAGE: THE FIRM AND ITS APPROACH
   ========================================================================== */

.firm__body > p:not(.lede) { max-width: 36em; margin-top: 1.2em; color: var(--fg-2); }

/* Four numbered items in a row, hairlines between. */
.approach {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(44px, 6vw, 84px);
  border-top: 1px solid var(--hair);
}

.approach__item {
  position: relative;
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--rule);
}

.approach__num {
  display: block;
  margin-bottom: clamp(16px, 2.4vw, 34px);
  font: italic 350 2.25rem/1 var(--font-display);
  color: var(--accent);
}

.approach__title { margin-bottom: 10px; }

.approach__item p { font-size: 1rem; line-height: 1.6; color: var(--fg-2); }

@media (min-width: 640px) {
  .approach { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approach__item { padding: 26px clamp(20px, 2.6vw, 34px) 30px; }
  .approach__item:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--rule); }
}

@media (min-width: 1040px) {
  .approach { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .approach__item { border-bottom: 0; border-right: 1px solid var(--rule); }
  .approach__item:nth-child(odd) { padding-left: clamp(20px, 2.6vw, 34px); }
  .approach__item:first-child { padding-left: 0; }
  .approach__item:last-child { border-right: 0; padding-right: 0; }
}

.firm__more { margin-top: clamp(28px, 4vw, 44px); }


/* ==========================================================================
   13. HOMEPAGE: FOUNDERS (.profile)
   Two profiles of equal weight, one after the other: the founder, then the
   co-founder. Each is a sheet with crop marks that holds a portrait
   photograph (4:5, in a hairline frame), a role label, the name, a double
   rule and the particulars. The photographs are shown as photographs: no
   filter, no shadow, no hover effect, no rounding.

   Markup:
     article.profile.crop-marks
       div.profile__portrait   > img
       div.profile__head       > h3.profile__name + p.label.profile__role
                                 (shown the other way round: role, then name)
       div.profile__rule       > div.rule-double
       dl.particulars          > div.particulars__row > dt + dd
                                 (span.particulars__keep inside a dt keeps a
                                 bracketed part of the label together)

   Three arrangements:
     under 600px    one column: portrait, head, rule, particulars
     600 to 1099px  portrait beside the head; rule and particulars full width
     1100px and up  portrait in the left column; head, rule and particulars
                    in the right column
   ========================================================================== */

.profile {
  --mark-color: var(--gold);
  --mat: clamp(6px, 0.85vw, 10px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(26px, 4.4vw, 60px) clamp(4px, 3vw, 44px);
}

/* The calm between the two sheets. */
.profile + .profile { margin-top: clamp(60px, 7.5vw, 104px); }

/* The frame is a hairline with the photograph set inside it. On a phone the
   frame is as wide as the text column, and never wider than 400px. */
.profile__portrait {
  width: min(100%, 400px);
  padding: var(--mat);
  border: 1px solid var(--hair);
}

.profile__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--noir);
}

/* In the HTML the name heading comes first and the role label second, so a
   reader who moves from heading to heading hears the role straight after the
   name. On screen and on paper the role label stands above the name.
   The head is also a size container: the one-line names below are sized from
   the width of this column (cqi), not from the window. */
.profile__head {
  container-type: inline-size;
  display: flex;
  flex-direction: column-reverse;
  gap: clamp(12px, 1.7vw, 20px);
  margin-top: clamp(26px, 8vw, 34px);
}

.profile__role { letter-spacing: var(--track-wide); }

/* Both names are set the same way. Each is on one line, except between
   600px and 1099px, where each is set on two (see below).
   The type size of a one-line name is 14% of the width of its column
   (14cqi), up to a ceiling. At that size the longer name, "Vaibhav Sharma",
   fills about 89% of the column in Jost, and about 94% in Segoe UI, the
   fallback of a Windows PC without Office (measured 20 Nov 2026; with
   Office, Century Gothic is the fallback, and it is wider: while the web
   font loads, the name may take two lines for a moment). So it stays on one
   line when the reader's default text size is larger, and when a scrollbar
   narrows the page. Sizing from the window (vw)
   let it wrap in those cases while "Sudeep Singh" did not. The first
   font-size line is for browsers without container units. */
.profile__name {
  font-size: clamp(2.25rem, 11.5vw, 3.25rem);
  font-size: min(3.25rem, 14cqi);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.012em;
  color: var(--on-dark);
}

/* The double rule closes the head and opens the list of particulars, so the
   list has no top hairline of its own. */
.profile__rule { margin-top: clamp(22px, 3vw, 36px); }

@media (min-width: 600px) {
  .profile {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    column-gap: clamp(28px, 5vw, 56px);
  }

  .profile__portrait { width: auto; }

  /* The name stands at the foot of the portrait, first name over surname. */
  .profile__head { align-self: end; margin-top: 0; }

  .profile__name { width: min-content; font-size: clamp(3.25rem, 9vw, 5.5rem); line-height: 0.96; }

  .profile__rule,
  .particulars { grid-column: 1 / -1; }
}

@media (min-width: 1100px) {
  .profile {
    grid-template-columns: minmax(0, 5fr) minmax(0, 9fr);
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(40px, 6vw, 96px);
  }

  .profile__portrait { grid-row: 1 / span 3; align-self: start; }

  /* The capitals of the role label stand level with the top of the photograph. */
  .profile__head { align-self: start; padding-top: calc(var(--mat) - 3px); }

  /* One line again, sized from the column as under 600px. Browsers without
     container units keep the size set at 600px. */
  .profile__name { width: auto; font-size: min(5.5rem, 14cqi); line-height: 1; }

  .profile__rule,
  .particulars { grid-column: 2; }
}

/* On a wide screen a list that is a little shorter than the portrait beside
   it (the second profile, while it has four rows) shares the spare height
   between its rows, so that its last hairline meets the foot of the portrait
   frame instead of stopping some 20px above it. A list taller than the
   portrait has no spare height and is laid out exactly as before. On paper
   nothing changes. If a profile ever has fewer than four rows, remove this
   rule: its rows would be stretched too far. */
@media screen and (min-width: 1100px) {
  .particulars { display: grid; grid-template-columns: minmax(0, 1fr); }
}

/* The portrait travels with the list of particulars, where the screen is
   tall enough to show all of it under the header. */
@media (min-width: 1100px) and (min-height: 700px) {
  .profile__portrait { position: sticky; top: calc(var(--header-h) + 40px); }
}

/* Particulars: label and value in hairline rows. */
.particulars__row {
  display: grid;
  gap: 6px;
  padding: 16px 0 18px;
  border-bottom: 1px solid rgba(210, 180, 122, .24);
}

.particulars dt {
  font: 500 0.75rem/1.5 var(--font-body);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--accent);
}

/* The bracketed part of a label, "(current roll)", moves to the next line as
   one piece, so a line never ends on a stray "roll)". Unlike .nw it can still
   wrap inside, where the column is narrower than the bracket itself (very
   large text on a phone). */
.particulars__keep { display: inline-block; }

.particulars dd {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--fg);
}

.particulars dd .tbc { vertical-align: 0.14em; }

@media (min-width: 680px) {
  .particulars__row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
    column-gap: clamp(20px, 3vw, 40px);
    align-items: baseline;
    padding: 18px 0 20px;
  }
  .particulars dt { padding-top: 0.3em; }
}


/* ==========================================================================
   14. HOMEPAGE: COURTS AND PRESENCE (presence diagram)
   An abstract diagram of four nested tiers. It is not a map.
   The tabs root sets data-active to: office | delhi | ncr | india.
   ========================================================================== */

.presence { display: grid; gap: clamp(28px, 5vw, 48px); }

@media (min-width: 960px) {
  .presence {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: clamp(40px, 7vw, 112px);
    align-items: center;
  }
}

/* The figure is a framed plate: a detail of a larger drawing, with crop marks. */
.presence__figure {
  position: relative;
  width: 100%;
  max-width: 500px;
  border: 1px solid var(--line);
}

.presence__figure::before {
  --m: linear-gradient(var(--gold-line), var(--gold-line));
  content: "";
  position: absolute;
  inset: -8px;
  pointer-events: none;
  background:
    var(--m) left 0 top 7px / 15px 1px no-repeat,
    var(--m) left 7px top 0 / 1px 15px no-repeat,
    var(--m) right 0 top 7px / 15px 1px no-repeat,
    var(--m) right 7px top 0 / 1px 15px no-repeat,
    var(--m) left 0 bottom 7px / 15px 1px no-repeat,
    var(--m) left 7px bottom 0 / 1px 15px no-repeat,
    var(--m) right 0 bottom 7px / 15px 1px no-repeat,
    var(--m) right 7px bottom 0 / 1px 15px no-repeat;
}

.tiers { width: 100%; height: auto; overflow: hidden; fill: none; }
.tiers * { vector-effect: non-scaling-stroke; }

.tier__ring { stroke: var(--gold-line); stroke-width: 1; transition: stroke .4s ease, stroke-width .4s ease; }
.tier__fill { fill: var(--gold-line); fill-opacity: 0; stroke: none; transition: fill-opacity .5s ease; }
.tier__node { fill: var(--ivory); stroke: var(--gold-line); stroke-width: 1; transition: fill .4s ease, stroke .4s ease; }

.tier__label {
  fill: var(--ink-2);
  stroke: none;
  font: 500 14px/1 var(--font-body);
  letter-spacing: 0.02em;
  transition: fill .4s ease;
}

/* The diagram shrinks on small screens, so its labels are set larger there. */
@media (max-width: 640px) {
  .tier__label { font-size: 19px; }
}

.tiers__axis { stroke: var(--gold-line); stroke-width: 1; stroke-opacity: .7; }
.tiers__ticks { stroke: var(--gold-line); stroke-width: 7; stroke-dasharray: 1 13; stroke-opacity: .7; }
.tiers__office { fill: var(--gold-deep); stroke: none; }

.presence[data-active="office"] .tier--office .tier__ring,
.presence[data-active="delhi"] .tier--delhi .tier__ring,
.presence[data-active="ncr"] .tier--ncr .tier__ring,
.presence[data-active="india"] .tier--india .tier__ring { stroke: var(--noir); stroke-width: 1.75; }

.presence[data-active="office"] .tier--office .tier__fill,
.presence[data-active="delhi"] .tier--delhi .tier__fill,
.presence[data-active="ncr"] .tier--ncr .tier__fill,
.presence[data-active="india"] .tier--india .tier__fill { fill-opacity: .17; }

.presence[data-active="office"] .tier--office .tier__node,
.presence[data-active="delhi"] .tier--delhi .tier__node,
.presence[data-active="ncr"] .tier--ncr .tier__node,
.presence[data-active="india"] .tier--india .tier__node { fill: var(--noir); stroke: var(--noir); }

.presence[data-active="office"] .tier--office .tier__label,
.presence[data-active="delhi"] .tier--delhi .tier__label,
.presence[data-active="ncr"] .tier--ncr .tier__label,
.presence[data-active="india"] .tier--india .tier__label { fill: var(--ink); font-weight: 600; }

.presence__line { margin: clamp(14px, 2vw, 20px) 0 clamp(24px, 3vw, 36px); }

/* Introductory paragraphs (courts-and-presence.html) keep the prose measure
   when the block is a single wide column. */
.presence__content > p:not([class]) { max-width: 32em; }

.presence .tabs__name { font-size: clamp(1.1875rem, 1.06rem + 0.55vw, 1.4375rem); }

.presence .tabs__panels { margin-top: 22px; }
.presence .tabs__panel { max-width: 31em; }
.presence .tabs__panel p { color: var(--fg-2); }
.presence .tabs__panel .tbc { margin-top: 2px; }

/* With tabs, the panel title repeats the tab, so it is kept for assistive
   technology and for the no-JS list only. */
.tier-panel__title { margin-bottom: 6px; font: 500 1.0625rem/1.4 var(--font-body); letter-spacing: 0; }

html.js .tier-panel__title {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

html.no-js .presence .tabs__panel { padding: 16px 0; border-top: 1px solid var(--rule); }

.presence__more { margin-top: clamp(18px, 2.4vw, 28px); }


/* ==========================================================================
   15. HOMEPAGE: WHAT TO HAVE READY (checklist)
   Root: [data-checklist]. See script.js for the hooks.
   ========================================================================== */

.checklist { display: grid; gap: clamp(30px, 5vw, 48px); }

@media (min-width: 960px) {
  .checklist {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(40px, 6vw, 96px);
    align-items: start;
  }

  /* The count and the buttons stay in view while the list scrolls. */
  .checklist__side { position: sticky; top: calc(var(--header-h) + 36px); }
}

.checklist__side > p:not([class]) { max-width: 27em; margin-top: clamp(16px, 2vw, 24px); color: var(--fg-2); }

.checklist__count {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  margin: clamp(26px, 3.4vw, 40px) 0 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
}

.checklist__n {
  min-width: 0.62em;
  font: 300 clamp(3.25rem, 2.4rem + 3vw, 4.75rem)/0.9 var(--font-display);
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--accent);
}

.checklist__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.checklist__status { min-height: 1.6em; margin: 12px 0 0; font-size: 0.9375rem; color: var(--fg-2); }

.checklist__list { border-top: 1px solid var(--hair); }

.check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: clamp(14px, 2vw, 22px);
  padding: 20px 0 20px;
  border-bottom: 1px solid var(--rule);
}

.check .checkbox { margin-top: 3px; }

.check__label {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.03rem + 0.45vw, 1.3125rem);
  font-weight: 400;
  line-height: 1.38;
  letter-spacing: 0;
  color: var(--fg);
  cursor: pointer;
  transition: color .3s ease;
  text-wrap: pretty; /* no item ends on one word alone */
}

.check__help { grid-column: 2; margin: 6px 0 0; font-size: 1rem; line-height: 1.5; color: var(--fg-2); }

.checkbox:checked + .check__label { color: var(--fg-2); text-decoration: line-through; text-decoration-color: var(--gold-line); text-decoration-thickness: 1px; }


/* ==========================================================================
   16. CONTACT BLOCK, SHEET AND ENQUIRY FORM
   .contact-block and .enquiry read the surface variables, so they work on
   ivory (contact.html) and on dark (homepage).
   ========================================================================== */

.contact__grid { display: grid; gap: clamp(36px, 5vw, 56px); }

@media (min-width: 960px) {
  .contact__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(40px, 6vw, 96px);
    align-items: start;
  }
}

.contact__intro > p:not([class]) { max-width: 26em; margin-top: clamp(16px, 2vw, 24px); color: var(--fg-2); }

.contact-block { margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--hair); }

.contact-block__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--rule);
}

.contact-block dt {
  font: 500 0.75rem/1.5 var(--font-body);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--accent);
}

.contact-block dd { color: var(--fg); line-height: 1.55; }

.contact-block address {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  line-height: 1.45;
  text-wrap: balance;
}

@media (min-width: 520px) {
  .contact-block__row { grid-template-columns: 8.5rem minmax(0, 1fr); column-gap: 20px; align-items: baseline; }
}

/* From 960px the block sits in the narrow column of .contact__grid: the label
   goes back above the value, so the email address and the hours lines fit. */
@media (min-width: 960px) {
  .contact-block__row { grid-template-columns: minmax(0, 1fr); }
}

/* --- Sheet: an ivory panel with an inset gold hairline. On a dark section it
   reads as paper on baize. ---------------------------------------------- */
.sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 5vw, 60px) clamp(22px, 5vw, 60px);
  background: var(--grain-dark), var(--ivory);
}

.sheet::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold-line);
  opacity: .7;
  pointer-events: none;
}

.sheet > * { position: relative; }

.section--ivory .sheet,
.section--ivory-2 .sheet { background: var(--grain-dark), #FBF8F1; }

.sheet__title { margin-bottom: clamp(16px, 2vw, 22px); }

/* --- Enquiry form ----------------------------------------------------------- */
.enquiry__notice {
  margin: 0 0 clamp(20px, 3vw, 30px);
  padding: 14px 0 15px;
  border-block: 1px solid var(--gold-line);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
}

.enquiry__summary {
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 2px solid var(--error);
  font-size: 1rem;
}

.enquiry__summary:focus-visible { outline-color: var(--error); }
/* The heading is one level below the form's title: h4 on the homepage, h3 on contact.html. */
.enquiry__summary :is(h3, h4) { margin: 0 0 6px; font: 600 1.0625rem/1.4 var(--font-body); letter-spacing: 0; color: var(--error); }
.enquiry__summary ul { margin: 0; padding-left: 1.2em; }
.enquiry__summary a { color: var(--error); font-weight: 500; }

.enquiry__progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 14px;
  font: 500 0.75rem/1.45 var(--font-body);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--gold-deep);
}

.enquiry__bar { display: flex; gap: 6px; }
.enquiry__bar i { display: block; width: 44px; height: 3px; background: var(--line); transition: background-color .4s ease; }
.enquiry__bar i:first-child,
.enquiry[data-step-active="2"] .enquiry__bar i { background: var(--noir); }

.enquiry__steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }

.enquiry__step { display: flex; flex-direction: column; }

.enquiry__legend {
  display: block;
  width: 100%;
  margin-bottom: clamp(16px, 2vw, 22px);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.005em;
}

/* With JavaScript the two steps share one grid cell: no jump between steps. */
html.js .enquiry__steps { gap: 0; }
html.js .enquiry__step { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .45s ease; }
html.js .enquiry__step[hidden] { display: flex !important; }
html.js .enquiry:not([data-step-active]) .enquiry__step:first-child,
html.js .enquiry__step.is-active { visibility: visible; opacity: 1; }

.field { display: grid; gap: 7px; margin-bottom: 6px; }

.field > label { font-size: 1rem; font-weight: 500; line-height: 1.4; color: var(--ink); }

.field__opt { font-weight: 400; color: var(--ink-2); }

.field__hint { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid var(--ink-2);
  border-radius: 1px;
  background: rgba(255, 255, 255, .55);
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .25s ease, background-color .25s ease;
}

.field textarea { min-height: 148px; resize: vertical; }

.field input:hover,
.field textarea:hover { border-color: var(--ink); }

.field input:not(.checkbox):focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; border-color: var(--ink); background: #fff; }

/* The consent box takes the same ring, but not the white background: that
   would cover its dark fill and its tick, and a box ticked with the Space key
   would look empty for as long as it kept the focus. */
.field .checkbox:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

.field [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }

/* One line is always reserved for the error, so the form does not jump. */
.field__error {
  min-height: 1.45em;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--error);
}

.field__error:not(:empty)::before { content: "Error: "; font-weight: 600; }

.field__foot { display: flex; justify-content: space-between; gap: 16px; }
.field__count { flex: none; margin: 0; font-size: 0.875rem; line-height: 1.6; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.field-row { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 20px; }

@media (min-width: 560px) {
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field--check {
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 6px;
  align-items: start;
  margin-top: 4px;
}

.field--check .checkbox { margin-top: 2px; }
.field--check > label { font-weight: 400; line-height: 1.5; cursor: pointer; }
.field--check > label a { font-weight: 600; text-decoration-color: var(--gold-line); }
.field--check .field__error { grid-column: 2; }

/* Honeypot: off screen, out of the tab order, hidden from assistive tech. */
.enquiry__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.enquiry__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.enquiry__fail {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 2px solid var(--error);
  font-size: 1rem;
  color: var(--error);
}

/* Without JavaScript the form cannot be sent: this note says so before the
   first field (.no-js-only, see "Utilities"). It stands directly under
   .enquiry__notice and reads as the second part of that strip: the negative
   top margin takes up the notice's bottom margin, and the note closes the
   strip with its own bottom rule. */
.enquiry__nojs {
  margin: calc(-1 * clamp(20px, 3vw, 30px)) 0 clamp(20px, 3vw, 30px);
  padding: 14px 0 15px;
  border-bottom: 1px solid var(--gold-line);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}

.enquiry-success {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 12px;
}

/* Focus is moved here by script so that the confirmation is read out. It is
   not a control, so it carries no focus ring. */
.enquiry-success:focus,
.enquiry-success:focus-visible { outline: none; }
.enquiry-success .rule-double { width: 72px; margin: 0 0 clamp(20px, 3vw, 28px); }
.enquiry-success .title-md { margin-bottom: 14px; }
.enquiry-success p { max-width: 30em; color: var(--ink); }


/* ==========================================================================
   17. INTERIOR PAGES
   .page-hero > .container            compact dark band under the header
     .breadcrumb                      <nav aria-label="Breadcrumb"><ol>
     .label.page-hero__eyebrow        e.g. "Area of practice 01"
     h1.page-hero__title
     p.page-hero__lede
     svg.avenue-echo.page-hero__echo  copy the SVG from another interior page
   .section.section--ivory > .container.editorial
     .prose                           main column: h2, p, p.lede, ul, ol,
                                      dl.term-list, ol.stage-list, .note
     aside.facts                      "At a glance"
   .other-areas                       practice pages only
   .contact-strip                     closing band, every interior page
   ========================================================================== */

.page-hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding-block: clamp(22px, 3vw, 36px) clamp(48px, 7vw, 100px);
  background:
    var(--grain-light),
    radial-gradient(ellipse 52% 90% at 88% 70%, rgba(23, 63, 52, .9) 0%, rgba(18, 51, 42, .5) 45%, rgba(11, 29, 24, 0) 100%),
    var(--noir);
  border-bottom: 1px solid rgba(210, 180, 122, .6);
}

.page-hero > .container { position: relative; }

.breadcrumb { margin-bottom: clamp(30px, 5vw, 68px); }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--fg-2);
}

/* Each separator belongs to the crumb before it, so a line never begins with
   "/". The last crumb (the current page) takes the space left on the line and,
   when its name is long, wraps inside its own text. The list aligns on the
   first baseline, so a wrapped name still starts level with the trail. */
.breadcrumb li { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb li:not(:last-child) { flex: none; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin: 0 0.75em; color: var(--accent); }
.breadcrumb li:last-child { flex: 1 1 6em; min-width: 0; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg); text-decoration: none; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { text-decoration: underline; text-decoration-color: var(--accent); }

.page-hero__eyebrow { margin-bottom: clamp(14px, 2vw, 22px); letter-spacing: var(--track-wide); }

.page-hero__title {
  max-width: 13em;
  font-size: clamp(2.5rem, 1.5rem + 4.6vw, 5.25rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--on-dark);
}

.page-hero__title em { color: var(--gold); }

.page-hero__lede {
  max-width: 30em;
  margin: clamp(20px, 3vw, 32px) 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.1875rem, 1.05rem + 0.75vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--on-dark);
}

.page-hero__echo { margin-top: clamp(28px, 4vw, 40px); width: min(240px, 70%); }

@media (min-width: 1000px) {
  .page-hero__echo { position: absolute; right: 0; bottom: 6px; width: 300px; margin: 0; }

  /* The lede stops short of the echo, so the two never meet. */
  .page-hero__lede { max-width: min(30em, 100% - 348px); }
}

/* The reading surface starts a little closer to the hero than a homepage
   section does: the hero has already made the pause. */
.page-hero + .section { padding-top: clamp(56px, 7.5vw, 112px); }

/* --- Two-column editorial layout ---------------------------------------------
   The reading column keeps the left axis of the page (it sits under the H1).
   The aside holds the right edge. Below 960px the aside follows the prose. */
.editorial { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(56px, 8vw, 80px); }

@media (min-width: 960px) {
  .editorial {
    grid-template-columns: minmax(0, 1fr) clamp(15.5rem, 24vw, 22rem);
    column-gap: clamp(40px, 6vw, 112px);
    align-items: start;
  }
  .editorial--solo { grid-template-columns: minmax(0, 1fr); }
}

/* --- Prose --------------------------------------------------------------------
   Running text keeps a measure of about 66 characters (--measure). Headings,
   term lists and stage lists use the full column, on a shared set of tracks:
   --col-a (numerals), --col-b (titles), then the text. The column is a
   container, so the lists change layout by the width they actually have. */
.prose {
  --measure: 32em;
  --col-a: 4.25rem;
  --col-b: 12.5rem;
  --col-gap: clamp(16px, 2.2vw, 28px);
  max-width: 47.5rem;
  container: prose / inline-size;
}

.prose > * + *,
.prose > section > * + * { margin-top: 1.1em; }

.prose > section + section { margin-top: clamp(56px, 7vw, 96px); }

.prose > :is(p, ul, ol):not([class]),
.prose > section > :is(p, ul, ol):not([class]),
.prose .note { max-width: var(--measure); }

/* The note keeps the width of the paragraphs around it: the measure is set
   in the column's type size, the smaller type on the text inside. */
.prose .note { font-size: inherit; }
.prose .note > :not(.note__label) { font-size: 1rem; }

.prose h2 {
  padding-top: clamp(20px, 2.6vw, 28px);
  border-top: 1px solid var(--hair);
  font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem);
  letter-spacing: -0.006em;
}

.prose > * + h2 { margin-top: clamp(56px, 7vw, 96px); }
.prose h2 + * { margin-top: clamp(18px, 2.4vw, 28px); }

.prose h3 { margin-top: 1.9em; font-size: clamp(1.25rem, 1.12rem + 0.5vw, 1.4375rem); font-weight: 400; letter-spacing: 0; }

.prose p { margin-bottom: 0; }
.prose .lede { max-width: 27em; }
.prose .lede + p { margin-top: 1.4em; }
.prose abbr[title] { text-decoration: none; }

/* The underline is the only cue that these words are a link, so it uses the
   accent (5.7:1 on ivory), not the decorative hairline (2.5:1). */
.prose a:not([class]) { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); transition: text-decoration-color .3s ease; }
.prose a:not([class]):hover { text-decoration-color: var(--fg); }

.prose strong { font-weight: 600; }

.prose ul:not([class]) { margin-bottom: 0; padding: 0; list-style: none; }
.prose ul:not([class]) > li { position: relative; padding-left: 1.9em; }
.prose ul:not([class]) > li + li { margin-top: 0.55em; }
.prose ul:not([class]) > li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.95em; height: 1px; background: var(--accent); }

/* Ordered steps in running text: a quiet ruled list with italic numerals. */
.prose ol:not([class]) { counter-reset: step; margin-bottom: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.prose ol:not([class]) > li { counter-increment: step; position: relative; padding: 0.62em 0 0.68em 2.6em; border-bottom: 1px solid var(--rule); }
.prose ol:not([class]) > li::before {
  content: counter(step);
  position: absolute;
  left: 0.15em;
  top: 0.5em;
  font: italic 300 1.25em/1.3 var(--font-display);
  font-variant-numeric: lining-nums;
  color: var(--accent);
}

/* --- Term list: named items, each with a plain description --------------------
   <dl class="term-list"><div><dt>Term</dt><dd>Description</dd></div> ... </dl>
   Stacked in a narrow column; a ledger of two columns in a wide one. */
.prose .term-list,
.prose .stage-list { margin-top: clamp(26px, 3.2vw, 40px); }

.term-list { border-top: 1px solid var(--hair); }

.term-list > div { padding: 16px 0 19px; border-bottom: 1px solid var(--rule); }

.term-list dt,
.stage-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.3125rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--fg);
  text-wrap: balance;
}

.term-list dd { margin-top: 6px; color: var(--fg-2); }

/* --- Stage list: ordered stages of a proceeding -------------------------------
   <ol class="stage-list"><li><h3>Title</h3><p>Text</p></li> ... </ol>
   A measured sequence: the rule down the left is the dimension line of the
   avenue plan, with an end cap at the first and last stage and a tick at each
   stage between. Numerals are automatic. */
.stage-list { --tick: 30px; counter-reset: stage; }

.stage-list > li {
  --inset: 30px;
  --row-line: var(--rule);
  counter-increment: stage;
  position: relative;
  padding: 18px 0 22px var(--inset);
  background: linear-gradient(var(--row-line), var(--row-line)) right top / calc(100% - var(--inset)) 1px no-repeat;
}

.stage-list > li:first-child { --row-line: var(--hair); }

.stage-list > li:last-child {
  background:
    linear-gradient(var(--row-line), var(--row-line)) right top / calc(100% - var(--inset)) 1px no-repeat,
    linear-gradient(var(--rule), var(--rule)) right bottom / calc(100% - var(--inset)) 1px no-repeat;
}

.stage-list > li::before {
  content: counter(stage, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  font: italic 350 1.5rem/1 var(--font-display);
  font-variant-numeric: lining-nums;
  color: var(--accent);
}

/* The dimension line: one segment per stage, so it follows a stagger. */
.stage-list > li::after {
  --l: linear-gradient(var(--hair), var(--hair));
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 13px;
  pointer-events: none;
  background:
    var(--l) 6px 0 / 1px 100% no-repeat,
    var(--l) 3px var(--tick) / 7px 1px no-repeat;
}

.stage-list > li:first-child::after {
  top: var(--tick);
  background:
    var(--l) 6px 0 / 1px 100% no-repeat,
    var(--l) 0 0 / 13px 1px no-repeat;
}

.stage-list > li:last-child::after {
  bottom: auto;
  height: calc(var(--tick) + 1px);
  background:
    var(--l) 6px 0 / 1px 100% no-repeat,
    var(--l) 0 100% / 13px 1px no-repeat;
}

.stage-list > li:only-child::after { display: none; }

.stage-list > li > * { margin: 0; }
.stage-list > li > * + * { margin-top: 0.45em; }
.stage-list p { color: var(--fg-2); }

/* A column of 30rem or more: numerals move into their own track. */
@container prose (min-width: 30rem) {
  .stage-list { --tick: 36px; }

  .stage-list > li {
    --inset: calc(var(--col-a) + var(--col-gap));
    display: grid;
    grid-template-columns: var(--col-a) minmax(0, 1fr);
    column-gap: var(--col-gap);
    padding: 22px 0 26px;
  }

  .stage-list > li::before {
    grid-column: 1;
    grid-row: 1 / span 6;
    margin: 0;
    padding-left: 26px;
    font-size: 1.625rem;
    line-height: 1.1;
  }

  .stage-list > li > * { grid-column: 2; }
}

/* A column of 42rem or more: title and text sit side by side, and the text
   of every term list and stage list starts on the same line down the page. */
@container prose (min-width: 42rem) {
  .term-list > div {
    display: grid;
    grid-template-columns: calc(var(--col-a) + var(--col-gap) + var(--col-b)) minmax(0, 1fr);
    column-gap: var(--col-gap);
    align-items: baseline;
    padding: 18px 0 21px;
  }

  .term-list dd { margin-top: 0; }

  .stage-list > li {
    grid-template-columns: var(--col-a) var(--col-b) minmax(0, 1fr);
    align-items: baseline;
  }

  .stage-list > li::before { grid-row: 1; }
  .stage-list > li > h3 { grid-column: 2; grid-row: 1; }
  .stage-list > li > :not(h3) { grid-column: 3; }
  .stage-list > li > h3 + * { grid-row: 1; margin-top: 0; }
}

/* --- Note: a quiet callout ---------------------------------------------------
   <div class="note"><p class="label note__label">Note</p><p>Text</p></div> */
.note {
  padding: 20px clamp(18px, 3vw, 28px) 22px;
  background: var(--ivory-2);
  border-top: 1px solid var(--gold-line);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}

.prose .note { margin-top: clamp(24px, 3vw, 34px); }
.prose .note + * { margin-top: clamp(24px, 3vw, 34px); }

.section--ivory-2 .note { background: var(--ivory); }
.note__label { margin-bottom: 8px; }
.note > * + * { margin-top: 0.7em; }

/* --- Facts: "At a glance" ----------------------------------------------------
   <aside class="facts" aria-labelledby="facts-title">
     <h2 class="facts__title" id="facts-title">At a glance</h2>
     <dl><div><dt>Label</dt><dd>Value</dd></div> ... </dl>
     <ul class="facts__links"><li><a class="link-arrow" href="...">...</a></li></ul>
   </aside> */
.facts { position: relative; max-width: 47.5rem; padding-top: 18px; border-top: 1px solid var(--hair); font-size: 1rem; line-height: 1.55; }

/* The second hairline of the double rule. */
.facts::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 1px; background: var(--hair); }

.facts__title { margin-bottom: 6px; font: 500 0.75rem/1.45 var(--font-body); letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--accent); }

.facts dl > div { padding: 12px 0 13px; border-bottom: 1px solid var(--rule); }
.facts dt { margin-bottom: 3px; font-size: 0.875rem; color: var(--fg-2); }
.facts dd { color: var(--fg); }

.facts__links { margin-top: 14px; }
.facts__links .link-arrow { display: flex; justify-content: space-between; }

/* Under the prose (tablet): label and value side by side, links in a row. */
@media (min-width: 600px) and (max-width: 959.98px) {
  .facts dl > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); column-gap: 24px; align-items: baseline; }
  .facts dt { margin-bottom: 0; }
  .facts__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.75rem, 1fr)); column-gap: 28px; }
}

/* Beside the prose (desktop): it travels with the reader, but only when the
   window is tall enough to show all of it. The narrower the column, the
   taller the box, so each range of widths has its own height. Otherwise it
   scrolls with the page.
   The About page's contents list (nav.facts) keeps its own two numbers.
   "At a glance" (aside.facts) is taller: it has a Founders row of two lines
   on the practice pages, and on Courts and presence its text wraps onto more
   lines. Height needed = header (68px) + 24px + the box, measured 16 Nov 2026:
     960 to 1099px wide   852px (Courts and presence); practice pages 807px
     1100 to 1279px wide  806px (Courts and presence); practice pages 760px
     1280px and wider     760px (Arbitration); Courts and presence 736px
   Each height below is the tallest of these plus about 20px of clear space.
   Any row added to one of these boxes means measuring again.
   (The About page's list was measured again on 17 Nov 2026, when it got an
   eighth entry: it needs 557px at most, so its two numbers still hold.) */
@media (min-width: 960px) and (min-height: 800px), (min-width: 1280px) and (min-height: 760px) {
  nav.facts { position: sticky; top: calc(var(--header-h) + 24px); }
}

@media (min-width: 960px) and (min-height: 872px), (min-width: 1100px) and (min-height: 824px), (min-width: 1280px) and (min-height: 784px) {
  aside.facts { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* --- Other areas of practice -------------------------------------------------
   <nav class="other-areas" aria-labelledby="other-areas-title">
     <div class="container">
       <h2 class="other-areas__title" id="other-areas-title">Other areas of practice</h2>
       <ul class="other-areas__list">
         <li><a href="civil-law.html"><span class="other-areas__num">02</span>
             <span class="other-areas__name">Civil Law</span></a></li> ...
       </ul></div></nav> */
.other-areas {
  --rule: #D6C8AE;
  padding-block: clamp(48px, 7vw, 96px);
  background: var(--grain-dark), var(--ivory-2);
  color: var(--ink);
}

.other-areas__title { margin-bottom: clamp(20px, 3vw, 32px); font: 500 0.75rem/1.45 var(--font-body); letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--gold-deep); }

.other-areas__list { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--gold-line); }

/* Equal heights when one name runs to two lines. */
.other-areas__list > li { display: flex; }

.other-areas__list a {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: baseline;
  min-height: 72px;
  padding: 22px 44px 22px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}

.other-areas__list a::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 22px;
  height: 9px;
  margin-top: -4px;
  background: var(--gold-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 9'%3E%3Cpath d='M0 4.5h21M17 .8l4 3.7-4 3.7' fill='none' stroke='%23000' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 9'%3E%3Cpath d='M0 4.5h21M17 .8l4 3.7-4 3.7' fill='none' stroke='%23000' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s var(--ease);
}

.other-areas__list a:hover::after,
.other-areas__list a:focus-visible::after { transform: translateX(4px); }

.other-areas__num { font: 500 0.75rem/1 var(--font-body); letter-spacing: var(--track); color: var(--gold-deep); }
.other-areas__name { font-family: var(--font-display); font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem); font-weight: 300; line-height: 1.15; letter-spacing: -0.005em; }

@media (min-width: 820px) {
  .other-areas__list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); border-top: 0; }
  .other-areas__list a { border-top: 1px solid var(--gold-line); }
}

/* --- Contact strip: the closing band on interior pages ----------------------
   <section class="contact-strip" aria-labelledby="contact-strip-title">
     <div class="container contact-strip__inner">
       <div class="contact-strip__lead"><p class="label">Contact</p>
            <h2 class="contact-strip__title" id="contact-strip-title">Contact the firm</h2></div>
       <address class="contact-strip__address"> ... </address>
       <dl class="contact-strip__list"><div><dt>Phone</dt><dd> ... </dd></div> ... </dl>
       <a class="btn btn--gold contact-strip__action" href="contact.html">Contact the firm</a>
     </div></section> */
.contact-strip {
  padding-block: clamp(52px, 7vw, 100px);
  background:
    var(--grain-light),
    radial-gradient(ellipse 70% 90% at 6% 0%, rgba(23, 63, 52, .95) 0%, rgba(23, 63, 52, 0) 72%),
    var(--emerald);
}

.contact-strip__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }

.contact-strip__title { margin-top: 12px; font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem); letter-spacing: -0.008em; }

.contact-strip__address { font-family: var(--font-display); font-weight: 350; font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem); line-height: 1.45; }

.contact-strip__list { display: grid; gap: 12px; padding-top: 22px; border-top: 1px solid rgba(210, 180, 122, .3); font-size: 1rem; }
.contact-strip__list dt { margin-bottom: 3px; font: 500 0.6875rem/1.45 var(--font-body); letter-spacing: var(--track); text-transform: uppercase; color: var(--gold); }

.contact-strip__action { justify-self: start; }

/* Two by two: the title and the button on the left, the particulars on the right. */
@media (min-width: 700px) {
  .contact-strip__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "lead address" "action list";
    gap: 26px clamp(32px, 6vw, 80px);
    align-items: start;
  }
  .contact-strip__lead { grid-area: lead; }
  .contact-strip__address { grid-area: address; padding-top: 4px; }
  .contact-strip__list { grid-area: list; }
  .contact-strip__action { grid-area: action; }
}

/* Three columns: the address and the particulars stand side by side,
   divided by gold hairlines. From 1280px the first line of the address
   fits its column without breaking. */
@media (min-width: 1280px) {
  .contact-strip__inner {
    grid-template-columns: minmax(0, 4.4fr) minmax(0, 4.2fr) minmax(0, 3.4fr);
    grid-template-areas: "lead address list" "action address list";
    grid-template-rows: auto 1fr;
    column-gap: clamp(28px, 4vw, 64px);
  }
  .contact-strip__address,
  .contact-strip__list {
    align-self: stretch;
    padding-top: 6px;
    padding-left: clamp(20px, 2.4vw, 32px);
    border-top: 0;
    border-left: 1px solid rgba(210, 180, 122, .3);
  }
  .contact-strip__list { align-content: start; }
  .contact-strip__action { margin-top: 8px; }
}

/* --- Contact links on small screens: touch targets ---------------------------
   Phone, WhatsApp, email and map links in the hero facts strip, the contact
   block, the contact strip and the footer each get a 44px target. The lines
   that hold them become 44px tall, so two targets never overlap. Same
   breakpoint as the call bar. Wider layouts are left alone: some of their
   columns are narrower than the email address, which cannot wrap inside an
   inline-flex box.
   .term-list__link is for a link that stands alone as the value of a term
   list (the map link on courts-and-presence.html). It is a class, not a rule
   for every link in a term list, because a link inside a sentence (the
   checklist link on privacy.html) must stay in the line of its text. */
@media (max-width: 720px) {
  .hero-facts__contact > a:not(.link-arrow),
  .contact-block dd a,
  .contact-strip__list dd a,
  .site-footer__contact dd a,
  .term-list__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  /* The targets now give the spacing that the gap gave. */
  .hero-facts__contact { gap: 0; }
  .hero-facts__contact .link-arrow { margin-top: 0; }

  /* A two-line link (see .hero-facts__number): its two lines stack, and it
     gets above and below it the space that a one-line link has inside its
     44px, so that two such links one under the other read as two. */
  .hero-facts__contact > a.hero-facts__wa {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-block: 10px;
  }
}


/* ==========================================================================
   18. MOTION
   Hidden-initial states apply only when <html> has class "js" and the visitor
   has not asked for reduced motion.

   - Hero: .rise elements fade up in sequence (style="--i:N"), and the plan
     draws itself, once <html> has class "is-ready" (disclaimer accepted).
   - Scroll: IntersectionObserver adds .is-in to .reveal elements.
   - Safety net: if script.js never runs (no data-script on <html>), everything
     is shown after a few seconds.
   ========================================================================== */

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes plan-draw {
  0% { opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1; }
  12% { opacity: 1; }
  100% { opacity: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
}

@keyframes plan-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes show-anyway {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {

  /* Hero sequence */
  html.js:not(.is-ready) .rise,
  html.js:not(.is-ready) .plan .draw,
  html.js:not(.is-ready) .plan .fade { opacity: 0; }

  html.js.is-ready .rise {
    animation: rise .7s var(--ease) backwards;
    animation-delay: calc(var(--i, 0) * 90ms + 60ms);
  }

  /* The largest text on each page (the h1 and the paragraph under it) is
     painted at once and takes no part in the sequence: hidden, it would hold
     back Largest Contentful Paint until script.js had run and the fade had
     ended. This rule must stay after the two above (same specificity). */
  html.js .hero__title.rise,
  html.js .hero__sub.rise,
  html.js .page-hero__title.rise,
  html.js .page-hero__lede.rise { opacity: 1; animation: none; }

  html.js.is-ready .plan .draw {
    animation: plan-draw .85s cubic-bezier(.45, .05, .2, 1) backwards;
    animation-delay: calc(var(--d, 0) * 1ms + 260ms);
  }

  html.js.is-ready .plan .fade {
    animation: plan-fade .9s ease backwards;
    animation-delay: calc(var(--d, 0) * 1ms + 260ms);
  }

  /* Scroll reveal */
  html.js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .85s var(--ease), transform .85s var(--ease);
  }

  html.js .reveal.is-in { opacity: 1; transform: none; }

  /* Hairlines extend */
  html.js .reveal .section-head__rule,
  html.js .reveal .rule-double { transform: scaleX(0); transition: transform 1.2s var(--ease) .15s; }

  html.js .reveal.is-in .section-head__rule,
  html.js .reveal.is-in .rule-double { transform: scaleX(1); }

  /* Presence diagram: the rings draw */
  html.js .reveal:not(.is-in) .tier__ring { opacity: 0; }

  html.js .reveal.is-in .tier__ring {
    animation: plan-draw 1.5s var(--ease) backwards;
    animation-delay: calc(var(--t, 0) * 160ms + 150ms);
  }

  /* Stagger: children of .stagger follow their parent .reveal */
  html.js .reveal .stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  html.js .reveal.is-in .stagger > * { opacity: 1; transform: none; }
  html.js .reveal.is-in .stagger > :nth-child(2) { transition-delay: 90ms; }
  html.js .reveal.is-in .stagger > :nth-child(3) { transition-delay: 180ms; }
  html.js .reveal.is-in .stagger > :nth-child(4) { transition-delay: 270ms; }
  html.js .reveal.is-in .stagger > :nth-child(5) { transition-delay: 360ms; }
  html.js .reveal.is-in .stagger > :nth-child(n + 6) { transition-delay: 450ms; }

  /* Safety net */
  html.js:not([data-script]) .rise,
  html.js:not([data-script]) .reveal,
  html.js:not([data-script]) .reveal .stagger > *,
  html.js:not([data-script]) .reveal .section-head__rule,
  html.js:not([data-script]) .reveal .rule-double,
  html.js:not([data-script]) .reveal .tier__ring,
  html.js:not([data-script]) .plan .draw,
  html.js:not([data-script]) .plan .fade { animation: show-anyway 0s linear 4s forwards; }
}


/* ==========================================================================
   19. PRINT
   Default: black on white, no chrome, everything expanded.
   Checklist-only: script.js adds .print-checklist to <body> for one print.
   ========================================================================== */

@media print {
  @page { margin: 18mm 16mm; }

  html, body, main { background: #fff !important; }

  body { padding: 0 !important; color: #000; font-size: 11.5pt; line-height: 1.5; }

  .skip-link,
  .noscript-strip,
  .nav-toggle,
  .site-nav,
  .callbar,
  .disclaimer,
  .disclaimer-backdrop,
  .hero__frame,
  .hero__plan,
  .hero__actions,
  .section-head,
  .tabs__list,
  .avenue-rule,
  .avenue-echo,
  .checklist__actions,
  .checklist__status,
  .enquiry,
  .sheet__title,
  .js-only,
  .btn { display: none !important; }

  .print-only { display: block !important; }

  .site-header,
  .hero,
  .page-hero,
  .section,
  .contact-strip,
  .other-areas,
  .site-footer,
  .sheet,
  .practice-panel {
    --fg: #000; --fg-2: #333; --accent: #000; --hair: #777; --rule: #bbb;
    position: static !important;
    background: none !important;
    color: #000 !important;
    border-color: #999 !important;
  }

  .section, .hero__inner, .page-hero, .contact-strip, .other-areas, .site-footer { padding-block: 10mm 4mm !important; }
  .container { width: 100% !important; }

  .hero__title, .hero__title em, .hero__sub, .hero__eyebrow, .hero-facts dt, .hero-facts dd,
  .brand, .site-footer__logo, .page-hero__title, .page-hero__lede, .profile__name,
  .particulars dd, .contact-strip__list dt,
  .site-footer address, .site-footer__tagline, .site-footer__contact dt,
  .site-footer__heading, .site-footer__legal, .site-footer__links a { color: #000 !important; }

  /* The form does not print, so its sheet has no heading and no padding on
     paper. The confirmation shown after an enquiry still prints. On screen
     script.js holds the sheet at the height the form had (showSuccess sets a
     min-height); on paper that height is let go, so that the confirmation
     does not stand in the middle of an empty block. */
  .sheet { padding: 0 !important; min-height: 0 !important; }

  .hero__title { font-size: 28pt; }

  /* Founders: the section head does not print, so its hidden heading does.
     Each profile is a small portrait beside the name, particulars beneath. */
  .visually-hidden { position: static !important; width: auto !important; height: auto !important; margin: 0 0 6mm !important; overflow: visible !important; clip: auto !important; white-space: normal !important; font-size: 18pt; }
  .profile { grid-template-columns: 38mm minmax(0, 1fr) !important; grid-template-rows: auto !important; column-gap: 8mm !important; padding: 0 !important; }
  .profile + .profile { margin-top: 12mm !important; }
  .profile__portrait { grid-row: auto !important; align-self: end !important; position: static !important; width: auto !important; padding: 0 !important; border: 0 !important; break-inside: avoid; }
  .profile__portrait img { background: none !important; }
  .profile__head { align-self: end !important; margin-top: 0 !important; padding-top: 0 !important; break-inside: avoid; }
  .profile__rule, .particulars { grid-column: 1 / -1 !important; }
  .profile__rule { margin-top: 5mm !important; }
  .profile__name { width: auto !important; font-size: 24pt; line-height: 1.05 !important; }
  /* A portrait and name never end a page with the particulars starting on the
     next one: the head, the rule and the first row stay together. (The h3 is
     inside a grid item, so the heading rule further down does not do this.)
     The two break rules ask for it. Edge and Chrome do not always honour them
     between rows of a grid, so the head also reserves 30mm under itself: its
     box is 30mm taller than it looks and is pulled back by the same amount,
     which leaves the layout as it was. A box that may not be split only stays
     on a page where all of it fits, so the head moves to the next page unless
     there is room under it for the rule and the first row. */
  .profile__portrait, .profile__head, .profile__rule { break-after: avoid; }
  .profile__rule, .particulars { break-before: avoid; }
  .profile__head { padding-bottom: 30mm; margin-bottom: -30mm; }
  /* The firm's mark in black on paper (its gradient's light end would not show). */
  .brand__mark path,
  .site-footer__mark path { fill: #000; }

  /* Everything that JavaScript collapses is expanded on paper. */
  .tabs__panels, .enquiry__steps { gap: 12pt !important; }
  .tabs__panel, .enquiry__step { grid-area: auto !important; visibility: visible !important; opacity: 1 !important; }
  .tier-panel__title { position: static !important; width: auto !important; height: auto !important; margin: 0 0 4pt !important; clip: auto !important; }

  .rise, .reveal, .reveal .stagger > *, .reveal .section-head__rule, .reveal .rule-double { opacity: 1 !important; transform: none !important; animation: none !important; }
  .reveal .tier__ring { opacity: 1 !important; animation: none !important; }

  .practice-panel::before, .sheet::before, .crop-marks::before { display: none; }

  .tbc { border: 1px solid #000; background: none !important; color: #000 !important; }

  .checkbox { -webkit-appearance: auto; appearance: auto; width: 13pt; height: 13pt; }
  .checkbox:checked + .check__label { text-decoration: none; color: #000; }
  .checklist__side { position: static !important; }

  a { color: #000 !important; text-decoration: underline; }
  h1, h2, h3 { break-after: avoid; }
  .check, .particulars__row, .approach__item, .stage-list > li, .term-list > div { break-inside: avoid; }
  .facts { position: static !important; }

  /* --- Checklist-only mode --- */
  body.print-checklist .site-header,
  body.print-checklist .site-footer,
  body.print-checklist main > :not([data-print-checklist]) { display: none !important; }

  body.print-checklist [data-print-checklist] { padding: 0 !important; }
  body.print-checklist .checklist { display: block; }
  body.print-checklist .checklist__count { display: none !important; }
  body.print-checklist .checklist__side { margin-bottom: 8mm; }

  .checklist__printhead { margin-bottom: 8mm; padding-bottom: 4mm; border-bottom: 1px solid #000; font-size: 10pt; }
  .checklist__printhead strong { display: block; font: 400 18pt/1.2 var(--font-display); }
  body:not(.print-checklist) .checklist__printhead { display: none !important; }
}


/* ==========================================================================
   20. REDUCED MOTION AND FORCED COLOURS
   ========================================================================== */

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

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

  .rise,
  .reveal,
  .reveal .stagger > * { opacity: 1 !important; transform: none !important; }

  .reveal .section-head__rule,
  .reveal .rule-double { transform: none !important; }

  /* Opacity only: SVG text keeps its own transform attribute. */
  .plan .draw,
  .plan .fade,
  .reveal .tier__ring { opacity: 1 !important; }
}

@media (forced-colors: active) {
  .checkbox { -webkit-appearance: auto; appearance: auto; }
  .btn, .tbc, .sheet, .practice-panel, .disclaimer { border: 1px solid CanvasText; }
  .link-arrow::after, .other-areas__list a::after { background: CanvasText; }
  .hero__frame { border-color: CanvasText; }

  /* The firm's mark in the colour of its own lettering (the gradient is not a
     system colour): in the header that is the link colour, as for the name. */
  .brand__mark path,
  .site-footer__mark path,
  .disclaimer__brand svg path { fill: currentColor; }

  /* The selected tab is drawn with two backgrounds (the rule and the diamond),
     which forced colours would flatten: keep them, in the system highlight. */
  .tabs__tab[aria-selected="true"]::before,
  .tabs__tab[aria-selected="true"]::after { forced-color-adjust: none; background: Highlight; }
}


/* ==========================================================================
   ABOUT PAGE (about.html only). Appended after section 20.
   The one page that carries the firm's own text word for word. Everything
   here reads the existing tokens and surface variables, and no rule above
   is changed.

   .page-hero
     h1.page-hero__title
       span.page-hero__kicker     "About Us", set as the gold eyebrow
       span.page-hero__name       "Law Avenue", set in capitals as supplied
     div.page-hero__creds > p     four stacked lines on hairlines
     p.page-hero__motto           the quiet italic line
   .container.editorial
     nav.facts.contents           "On this page". First in the HTML, so it
       ol.contents__list          opens the band on small screens; it moves
                                  to the right-hand column from 960px.
     .prose
       div.colophon.crop-marks    the closing block of the supplied text

   Capitals: only the kicker and the name are transformed (the supplied text
   has both in capitals). Every other line keeps the case it was typed in.
   ========================================================================== */

/* --- Hero ------------------------------------------------------------------- */
.page-hero__kicker,
.page-hero__name { display: block; }

.page-hero__kicker {
  margin-bottom: clamp(14px, 2vw, 22px);
  font: 500 0.75rem/1.45 var(--font-body);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--accent);
}

/* Capitals stand taller than mixed case, so the name is set a little smaller
   than the other interior titles. */
.page-hero__name { font-size: 0.86em; letter-spacing: 0.03em; text-transform: uppercase; }

.page-hero__creds,
.page-hero__motto { max-width: 34rem; }

.page-hero__creds { margin-top: clamp(24px, 3.4vw, 40px); border-bottom: 1px solid var(--rule); font-size: 1rem; line-height: 1.5; }
.page-hero__creds p { margin: 0; padding: 11px 0 12px; border-top: 1px solid var(--rule); letter-spacing: 0.02em; color: var(--fg-2); text-wrap: balance; }
.page-hero__creds p:first-child { border-top-color: var(--hair); font-weight: 500; letter-spacing: 0.06em; color: var(--accent); }
/* The founder line and the co-founder line are set the same. */
.page-hero__creds p:nth-child(2),
.page-hero__creds p.page-hero__person { font: 350 clamp(1.0625rem, 0.9rem + 0.9vw, 1.25rem)/1.3 var(--font-display); letter-spacing: 0; color: var(--fg); }

.page-hero__motto { margin: clamp(22px, 3vw, 32px) 0 0; font: italic 350 clamp(1.125rem, 1.05rem + 0.5vw, 1.375rem)/1.4 var(--font-display); color: var(--fg-2); text-wrap: balance; }

/* Like the lede on other interior pages, these stop short of the echo. */
@media (min-width: 1000px) {
  .page-hero__creds,
  .page-hero__motto { max-width: min(34rem, 100% - 348px); }
}

/* --- "On this page" --------------------------------------------------------- */
.contents__list li { border-bottom: 1px solid var(--rule); }

.contents__list a {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: baseline;
  min-height: 44px;
  padding: 11px 0 12px;
  line-height: 1.4;
  color: var(--fg);
  text-decoration: none;
}

.contents__num { font: 500 0.75rem/1 var(--font-body); letter-spacing: var(--track); color: var(--accent); }

.contents__list a:hover .contents__name,
.contents__list a:focus-visible .contents__name { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; }

/* Under the hero on a tablet: two columns, read downwards. Eight entries since
   17 Nov 2026 (four rows: four entries, then four). */
@media (min-width: 600px) and (max-width: 959.98px) {
  .contents__list { display: grid; grid-template-rows: repeat(4, auto); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 28px; }
}

@media (min-width: 960px) {
  .editorial > .contents { grid-column: 2; grid-row: 1; }
  .editorial > .contents + .prose { grid-column: 1; grid-row: 1; }
}

/* --- Colophon --------------------------------------------------------------- */
.prose > .colophon {
  margin-top: clamp(56px, 7vw, 96px);
  padding: clamp(30px, 5vw, 48px) clamp(18px, 4vw, 44px) clamp(32px, 5vw, 50px);
  border-block: 1px solid var(--hair);
  background: var(--ivory-2);
  text-align: center;
}

/* The firm's name is set as in its logo (weight, letter- and word-spacing). */
.colophon__name { font: 400 clamp(1.5rem, 1.3rem + 0.9vw, 2rem)/1.15 var(--font-display); letter-spacing: 0.105em; word-spacing: -0.074em; color: var(--fg); }
.colophon__tagline { margin-top: 10px; font: italic 350 clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem)/1.45 var(--font-display); color: var(--accent); text-wrap: balance; }
.colophon .avenue-rule { width: 144px; margin: clamp(20px, 3vw, 28px) auto; }
.colophon__label { font: 500 0.875rem/1.45 var(--font-body); letter-spacing: 0.05em; color: var(--fg-2); }
.colophon__address { margin-top: 6px; font: 350 clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem)/1.45 var(--font-display); color: var(--fg); }

/* The city and PIN code move to a new line together when the line is short. */
.colophon__address span { display: inline-block; }

/* The colophon above carries the firm's tagline, so the footer's copy is hidden
   on this page: the tagline shows once per page. The footer markup stays
   identical on every page (.colophon exists only on about.html). */
body:has(.colophon) .site-footer__tagline { display: none; }

/* On paper: no contents list (its links go nowhere), no panel tint. */
@media print {
  .contents { display: none; }
  .prose > .colophon { background: none; }
}


/* ==========================================================================
   ASSOCIATES (index.html and about.html). Added 17 Nov 2026, after the
   About page block. Every rule for the four associates is in this block,
   so that it can be found, changed or taken out in one piece. It reads
   the existing tokens and surface variables.

   Two things, one for each page:

   A. Homepage: a compact row under the Founders, in the same emerald band.
        section.section.section--emerald.associates
          div.associates__sheet.crop-marks.reveal
            div.associates__head     > h2.associates__title + the hairline
            ul.associates__list.stagger
              li.associate-card
                div.associate-card__portrait > img
                div.associate-card__text     > h3.associate-card__name > a
                                               + p.label.associate-card__role
      Two by two under 900px (from 600px each card lies on its side, the
      name beside a small portrait); four in a row from 900px.

   B. About page: the full profiles, in the reading column.
        article.associate
          div.associate__portrait > img
          div.associate__head     > h3.associate__name + p.label.associate__role
          div.associate__text     the firm's words (a profile may have none)
      Under 600px the name stands beside a small portrait and the text runs
      below them. From 600px the portrait is on the left, with the name and
      the text on its right.

   On both pages the name heading comes first in the HTML and the label
   "Advocate, Associate" second; on screen and on paper the label stands
   above the name, as in the Founders section.

   The photographs: each file is 480 by 600 pixels (two of the photographs
   as received were no bigger). A portrait is therefore never shown wider
   than 240px, so that the file is enough on a sharp (2x) screen. If a rule
   below is changed, keep to that limit. The four photographs have four
   different backgrounds. They are shown as they are: no tint, no filter,
   no shadow, no rounding. The equal frames and the equal spacing hold the
   row together.
   ========================================================================== */

/* --- A. Homepage: the row under the Founders -------------------------------- */

/* The Founders section above ends with its own bottom padding, and this
   section adds none at its top: that padding is the pause between the two.
   The background carries on from the Founders section. That one ends with a
   shade in its bottom right corner; this one starts with the same shade in
   its top right corner, so that no line shows where the two meet. */
.associates {
  padding-top: 0;
  background:
    var(--grain-light),
    radial-gradient(ellipse 62% 70% at 100% 0%, rgba(11, 29, 24, .62) 0%, rgba(11, 29, 24, 0) 72%),
    var(--emerald);
}

/* A third sheet with crop marks, after the two founders' sheets, with the
   same padding: the first portrait of the row stands under the founders'
   portraits. */
.associates__sheet {
  --mark-color: var(--gold);
  padding: clamp(26px, 4.4vw, 60px) clamp(4px, 3vw, 44px);
}

/* The heading is set as the section tag "Founders" is set: small capitals in
   gold, with a hairline that runs on to the edge of the sheet. */
.associates__head {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  margin-bottom: clamp(24px, 3.6vw, 44px);
}

.associates__title {
  font: 500 0.75rem/1 var(--font-body);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent);
}

.associates__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 6vw, 48px) clamp(16px, 4vw, 40px);
}

/* A card is never wider than 254px: a 240px photograph, a 6px mat and a 1px
   hairline on each side.
   The card is also a size container: the name is sized from the width of the
   card (cqi, see .associate-card__name). This is set on the card itself and
   not on a box inside it, because some browsers of 2023 and 2024 keep a
   stretched link inside the nearest size container: on a box inside the card
   the link would then cover the label and the name only, not the portrait. */
.associate-card {
  --mat: 6px;
  position: relative;
  container-type: inline-size;
  max-width: calc(240px + 2 * var(--mat) + 2px);
}

.associate-card__portrait {
  padding: var(--mat);
  border: 1px solid var(--hair);
  transition: border-color .3s ease;
}

.associate-card__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--noir);
}

/* The label above the name (see the note at the top of this block). */
.associate-card__text {
  display: flex;
  flex-direction: column-reverse;
  gap: 7px;
  margin-top: 16px;
}

/* The name is sized from the width of the card (cqi), so that the longest of
   the four names fits on one line in the narrowest card and all four are set
   at the same size (in Jost the longest, "Vinayak Gautam", takes about 87% of
   the card; measured 20 Nov 2026). The first font-size line is for browsers
   without container units. */
.associate-card__name {
  font-size: 1.125rem;
  font-size: clamp(1rem, 13.4cqi, 1.5rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.006em;
  color: var(--on-dark);
}

/* The link is the name. Its ::after covers the whole card, so the portrait,
   the label and the name are one target (far more than 44px each way). */
.associate-card__name a { color: inherit; text-decoration: none; }
.associate-card__name a::after { content: ""; position: absolute; inset: 0; }

/* On a wide screen the label line ends in the small drawn arrow that marks a
   link elsewhere on the site (.link-arrow). See the note under this rule. */
.associate-card__role { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.associate-card__role::after {
  content: "";
  flex: none;
  width: 22px;
  height: 9px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 9'%3E%3Cpath d='M0 4.5h21M17 .8l4 3.7-4 3.7' fill='none' stroke='%23000' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 9'%3E%3Cpath d='M0 4.5h21M17 .8l4 3.7-4 3.7' fill='none' stroke='%23000' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s var(--ease);
}

/* The label "Advocate, Associate" is 172px long on one line, more than a
   narrow card is wide. So that it never breaks by chance, it is set in one
   of two ways, the same for all four cards:
   - under 900px (a card can be as narrow as 122px, and the column beside
     a portrait as narrow as 128px): on two lines, "Advocate," over
     "Associate";
   - from 900px: on one line. Up to 1279px the letters stand a little
     closer, so that the line fits the narrowest card of the row (168px).
   The arrow is drawn from 1280px only: below that it would stand close to
   the next card's label, and the row would read as one line of capitals. */
@media (max-width: 899.98px) {
  .associate-card__role { width: min-content; }
}

@media (min-width: 900px) and (max-width: 1279.98px) {
  .associate-card__role { letter-spacing: 0.1em; }
}

@media (max-width: 1279.98px) {
  .associate-card__role::after { display: none; }
}

/* Hover and keyboard focus, kept quiet: the hairline of the frame turns to
   full gold, the name is underlined and the arrow (where it is drawn) moves
   4px. Nothing happens to the photograph. The focus ring is drawn round the
   whole card. */
.associate-card:hover .associate-card__portrait,
.associate-card:focus-within .associate-card__portrait { border-color: var(--accent); }

.associate-card:hover .associate-card__name a,
.associate-card__name a:focus-visible { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; }

.associate-card:hover .associate-card__role::after,
.associate-card:focus-within .associate-card__role::after { transform: translateX(4px); }

.associate-card__name a:focus-visible { outline: none; }
.associate-card__name a:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 6px; }

/* 600px to 899px: still two by two, but each card lies on its side, a small
   portrait with the label and the name beside it, at its foot. In this range
   a founder's portrait stands beside the name and is only 190px to 280px
   wide; an upright card would be as wide as that. Laid this way an
   associate's portrait is about half as wide as a founder's. The name is set
   on two lines, first name over surname, as the founders' names are here. */
@media (min-width: 600px) and (max-width: 899.98px) {
  .associate-card {
    --mat: 5px;
    display: grid;
    grid-template-columns: clamp(96px, 16vw, 132px) minmax(0, 1fr);
    column-gap: clamp(16px, 2.6vw, 22px);
    align-items: end;
    max-width: none;
  }

  .associate-card__text { margin-top: 0; }

  .associate-card__name { width: min-content; font-size: clamp(1.25rem, 3vw, 1.625rem); line-height: 1.04; }
}

/* Four in a row. The cards share the width of the sheet and stop growing at
   254px; from there the space between them grows instead, so the first card
   keeps the left edge of the sheet and the last one its right edge. */
@media (min-width: 900px) {
  .associates__list {
    grid-template-columns: repeat(4, minmax(0, 254px));
    justify-content: space-between;
    column-gap: clamp(20px, 2.6vw, 40px);
  }
}


/* --- B. About page: the full profiles ---------------------------------------- */

/* Under 600px: a small portrait with the name beside it, at its foot; the
   text below, across the column. The portrait is 38% of the column and never
   wider than 150px. */
.associate {
  --mat: 5px;
  display: grid;
  grid-template-columns: clamp(100px, 38%, 150px) minmax(0, 1fr);
  column-gap: clamp(16px, 5vw, 24px);
  align-items: end;
}

/* A visitor who follows the first card of the homepage lands on the first
   profile with the heading "Associates" still in view above it. */
.prose h2 + .associate { scroll-margin-top: clamp(72px, 9vw, 104px); }

/* A hairline, with the same space above and below it, between two profiles. */
.associate + .associate {
  margin-top: clamp(34px, 5vw, 52px);
  padding-top: clamp(34px, 5vw, 52px);
  border-top: 1px solid var(--rule);
}

.associate__portrait {
  padding: var(--mat);
  border: 1px solid var(--hair);
}

.associate__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--ivory-2);
}

.associate__head {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  min-width: 0;
}

/* Under 600px each name is set on two lines, first name over surname, so
   that the four read alike beside their portraits whatever their length.
   At every width a name is a step smaller than the heading "Associates".
   (.associate comes first in these selectors so that they outrank the
   general rule for an h3 in the reading column.) */
.associate .associate__name {
  width: min-content;
  margin: 0;
  font-size: clamp(1.375rem, 1rem + 2vw, 1.625rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.008em;
  color: var(--fg);
}

.associate__text { grid-column: 1 / -1; margin-top: clamp(20px, 5vw, 26px); }
.associate__text > * + * { margin-top: 1.1em; }

/* Particulars in the reading column: the same list as on the homepage, with
   the label above the value at every width, since this column is narrow.
   The last row has no hairline under it: the hairline between two profiles,
   or the one over the next heading, closes the list. */
.associate .particulars--stacked { margin-top: 1.5em; border-top: 1px solid var(--hair); }
.associate .particulars--stacked .particulars__row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 13px 0 15px; border-bottom-color: var(--rule); }
.associate .particulars--stacked .particulars__row:last-child { padding-bottom: 0; border-bottom: 0; }
.associate .particulars--stacked dt { padding-top: 0; }
.associate .particulars--stacked dd { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); }

/* From 600px: the portrait on the left, never wider than 208px; the name,
   on one line, and the text on its right. A profile with no text is laid
   out in the same way: its label and name stand at the top of the right
   column, beside the top of the photograph, as the others do. */
@media (min-width: 600px) {
  .associate {
    grid-template-columns: clamp(156px, 30%, 208px) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: clamp(24px, 4.5vw, 40px);
    align-items: start;
  }

  .associate__portrait { grid-row: 1 / span 2; }

  /* The capitals of the label stand level with the top of the photograph. */
  .associate__head { grid-column: 2; padding-top: 2px; }

  .associate .associate__name { width: auto; font-size: clamp(1.625rem, 1.3rem + 0.9vw, 2rem); line-height: 1.08; }

  .associate__text { grid-column: 2; margin-top: clamp(16px, 2.2vw, 22px); }
}


/* --- Both pages: paper and forced colours ------------------------------------ */

@media print {
  /* Homepage. The heading prints at the size of the heading "Founders". The
     row is kept on one page: four small portraits, each over its name. */
  .associates__head .section-head__rule,
  .associate-card__role::after { display: none; }
  .associates__sheet { padding: 0 !important; break-inside: avoid; }
  .associates__head { margin-bottom: 6mm; }
  .associates__title { font: 300 18pt/1.1 var(--font-display); letter-spacing: -0.005em; text-transform: none; color: #000; }
  .associates__list { grid-template-columns: repeat(4, 34mm) !important; justify-content: start !important; gap: 8mm !important; }
  .associate-card { display: block !important; max-width: none !important; }
  .associate-card__portrait,
  .associate__portrait { padding: 0; border: 0; }
  .associate-card__portrait img,
  .associate__portrait img { background: none; }
  .associate-card__text { margin-top: 3mm !important; }
  .associate-card__name { width: auto !important; font-size: 11pt !important; line-height: 1.15 !important; color: #000; }

  /* About page. A small portrait beside the name and the text; a profile is
     not split over two pages where it fits on one. */
  .associate { grid-template-columns: 34mm minmax(0, 1fr) !important; column-gap: 8mm !important; break-inside: avoid; }
  .associate + .associate { margin-top: 8mm; padding-top: 8mm; }
  .associate .associate__name { font-size: 18pt; }
}

@media (forced-colors: active) {
  .associate-card__role::after { background: CanvasText; }
}
