/*
 * Igandu Njue & Associates: the registered instrument.
 * Ivory and sand grounds with navy ink, from the firm's printed profile. The home page opens on a
 * duotone photograph of the Supreme Court with the crest struck into a gold guilloche seal.
 * One light theme; the photograph is the only dark ground.
 */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4.6a682eb0234e.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-italic.292223348723.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk.a6b899943e31.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-italic.1edbd51f5ac7.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* The ramp: night navy to ivory, with the profile's gold and umber. */
  --night: #080c1f;
  --navy-950: #0e1430;
  --navy-900: #141b3b;
  --navy-850: #1b2447;
  --navy-800: #283560;
  --navy-700: #36457a;
  --ivory: #f5f0e6;
  --sand-100: #ece5d7;
  --sand-200: #e2d8c5;
  --sand-300: #d9ccb2;
  --sand-700: #5f5440;
  --gold: #c9a45c;
  --gold-bright: #dcbb76;
  --gold-deep: #7a5c22; /* gold as text on ivory and sand (>= 4.4:1) */
  --umber: #2b2119;
  --danger-dark: #ffb4a6;
  --danger-light: #9b2c1f;

  /* Roles. The site is light; only the photograph hero (.on-photo) redefines them. */
  --bg: var(--ivory);
  --surface: var(--sand-100);
  --surface-2: var(--sand-200);
  --text: #121936;
  --muted: #4d4433;
  --accent: var(--gold-deep);
  --action-bg: var(--navy-800);
  --action-text: var(--ivory);
  --action-hover: var(--navy-700);
  --danger: var(--danger-light);
  --input-bg: #fffcf6;
  --line: var(--sand-300);

  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --text-face: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;

  --size-monument: clamp(3rem, 9.2vw, 8.25rem);
  --size-display: clamp(2.375rem, 5.8vw, 5.5rem);
  --size-title: clamp(2.125rem, 4vw, 3.625rem);
  --size-h2: clamp(1.75rem, 3vw, 2.6875rem);
  --size-h3: clamp(1.5rem, 2.2vw, 2rem);
  --size-statement: var(--size-h3);
  --size-lede: clamp(1.1875rem, 1.45vw, 1.3125rem);
  --size-body: 1.125rem;
  --size-ui: 1rem;
  --size-small: 0.9375rem;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --section: clamp(5rem, 11vw, 10rem);
  --max: 90rem;
  --measure: 38rem;
  --header: 5.5rem;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  color-scheme: light;
}

/* Brand navy #283560 bands (page titles, the method, the footer): ivory ink and gold actions. */
.navy,
.top {
  --bg: var(--navy-800);
  --surface: var(--navy-700);
  --surface-2: #415189;
  --text: var(--ivory);
  --muted: #e2dccf;
  --accent: var(--gold);
  --action-bg: var(--gold);
  --action-text: var(--night);
  --action-hover: var(--gold-bright);
  background: var(--navy-800);
  color: var(--text);
}
.navy ::selection,
.top ::selection {
  background: var(--gold);
  color: var(--night);
}
.navy :focus-visible,
.top :focus-visible {
  outline-color: var(--gold);
}

/* The photograph hero and the header that lies over it: ivory ink and gold actions. */
.on-photo {
  --bg: var(--night);
  --surface: var(--navy-900);
  --surface-2: var(--navy-850);
  --text: var(--ivory);
  --muted: #cfc7b6;
  --accent: var(--gold);
  --action-bg: var(--gold);
  --action-text: var(--night);
  --action-hover: var(--gold-bright);
  color: var(--text);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 2rem;
  background: var(--ivory);
  scrollbar-color: var(--sand-300) var(--ivory);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--text-face);
  font-size: var(--size-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p,
li,
dd {
  text-wrap: pretty;
}
::selection {
  background: var(--sand-300);
  color: var(--navy-950);
}
:focus-visible {
  outline: 2px solid var(--navy-800);
  outline-offset: 3px;
}
.on-photo :focus-visible {
  outline-color: var(--gold);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px; /* taste-skill-ignore: visually hidden, not a rule */
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 60;
  background: var(--navy-800);
  color: var(--ivory);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}
.skip:focus {
  top: 1rem;
}

/* ---------- Grounds ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.night {
  background: var(--night);
}
.top.on-photo {
  background: var(--night);
}
/* Grounds step from ivory to sand to stone; cards on a ground take the next step lighter. */
.paper {
  background: var(--ivory);
}
.sand {
  background: var(--sand-100);
  --surface: var(--ivory);
  --surface-2: var(--sand-200);
}
.field,
.umber {
  background: var(--sand-200);
  --surface: var(--ivory);
  --surface-2: var(--sand-100);
}
.section {
  padding-block: var(--section);
}
.section-tight {
  padding-block: calc(var(--section) * 0.6);
}

/* ---------- Type ---------- */

.display {
  font-size: var(--size-display);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.title {
  font-size: var(--size-title);
  line-height: 1.04;
}
.h3-size {
  font-size: var(--size-h2);
  line-height: 1.06;
}
.statement {
  font-family: var(--display);
  font-size: var(--size-statement);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 400;
  max-width: 34ch;
}
.lede {
  font-size: var(--size-lede);
  line-height: 1.55;
  max-width: var(--measure);
}
.small {
  font-size: var(--size-small);
}
.quiet {
  color: var(--muted);
}
.prose {
  max-width: var(--measure);
}
.prose > * + * {
  margin-top: 1.1em;
}
.mt-s {
  margin-top: 1.5rem;
}
.mt-m {
  margin-top: 2rem;
}
.mt-l {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.mono {
  filter: grayscale(1);
}
address {
  font-style: normal;
}

/* ---------- Controls ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.375rem;
  padding: 0.9rem 1.6rem;
  border: 0;
  background: var(--action-bg);
  color: var(--action-text);
  font-weight: 600;
  font-size: var(--size-ui);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 200ms ease;
}
.button:active {
  transform: scale(0.97);
}
.button .arrow {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 200ms var(--ease-out);
}
.button.quiet-button {
  background: var(--navy-850);
  color: var(--ivory);
}
@media (hover: hover) and (pointer: fine) {
  .button:hover {
    background: var(--action-hover);
  }
  .button.quiet-button:hover {
    background: var(--navy-800);
  }
  .button:hover .arrow {
    transform: translateX(3px);
  }
}
.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.32em;
  transition:
    text-underline-offset 200ms var(--ease-out),
    color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .link:hover {
    text-underline-offset: 0.45em;
    color: var(--accent);
  }
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

/* ---------- Header ---------- */

.masthead {
  position: relative;
  z-index: 30;
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}
.wordmark svg {
  width: 2.75rem;
  height: 2.75rem;
}
.wordmark span {
  font-family: var(--display);
  font-size: var(--size-lede);
  font-weight: 500;
  line-height: 1;
}
.wordmark small {
  display: block;
  font-family: var(--text-face);
  font-size: var(--size-small);
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.35rem;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.primary-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
}
.primary-nav a:not(.button) {
  font-size: var(--size-ui);
  padding-block: 0.4rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.5em;
  transition:
    text-decoration-color 200ms ease,
    text-underline-offset 250ms var(--ease-out);
}
.primary-nav a[aria-current="page"],
.primary-nav a:not(.button):hover {
  text-decoration-color: var(--accent);
  text-underline-offset: 0.32em;
}
.primary-nav .button {
  min-height: 2.875rem;
  padding: 0.6rem 1.15rem;
}
.menu {
  display: none;
}
@media (max-width: 68rem) {
  .primary-nav {
    display: none;
  }
  .menu {
    display: block;
  }
  .menu summary {
    list-style: none;
    cursor: pointer;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
  }
  .menu summary::-webkit-details-marker {
    display: none;
  }
  .menu summary .bars {
    width: 1.5rem;
    height: 0.75rem;
    display: grid;
    align-content: space-between;
  }
  .menu summary .bars i {
    height: 2px;
    background: currentColor;
    transition: transform 220ms var(--ease-out);
  }
  .menu[open] summary .bars i:first-child {
    transform: translateY(5px) rotate(45deg);
  }
  .menu[open] summary .bars i:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }
  .menu .menu-label-close,
  .menu[open] .menu-label-open {
    display: none;
  }
  .menu[open] .menu-label-close {
    display: inline;
  }
  /* Open, the menu is a full-screen sheet. Its button stays pinned top right as "Close",
     so it can always be closed, however far the page was scrolled. */
  .menu[open] summary {
    position: fixed;
    z-index: 60;
    top: calc((var(--header) - 2.75rem) / 2);
    right: var(--gutter);
    color: var(--ivory);
  }
  .menu:not([open]) .panel {
    display: none;
  }
  .menu .panel {
    position: fixed;
    z-index: 55;
    inset: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    /* The sheet is the firm's navy, its ink ivory, its actions gold. */
    background: var(--navy-800);
    color: var(--ivory);
    --text: var(--ivory);
    --muted: #e2dccf;
    --surface: var(--navy-700);
    --accent: var(--gold);
    --action-bg: var(--gold);
    --action-text: var(--night);
    --action-hover: var(--gold-bright);
    display: flex;
    flex-direction: column;
    padding: 0 var(--gutter) max(1.25rem, env(safe-area-inset-bottom));
    animation: sheet 240ms var(--ease-out);
  }
  /* The sheet's top bar stays put while the links scroll beneath it; Close sits on it. */
  .menu .panel-mark {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: var(--header);
    margin: 0 calc(var(--gutter) * -1) clamp(0rem, 1dvh, 0.5rem);
    padding-inline: var(--gutter);
    background: var(--navy-800);
  }
  /* The page behind holds still while the sheet is open. */
  html:has(.menu[open]) {
    overflow: hidden;
  }
  .menu .panel :focus-visible {
    outline-color: var(--gold);
  }
  .sheet-nav ul {
    list-style: none;
    padding: 0;
  }
  .sheet-nav a {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.25rem;
    gap: 0.15rem 1rem;
    align-items: center;
    padding: clamp(0.3rem, 1.1dvh, 0.7rem) 0 clamp(0.3rem, 1.1dvh, 0.7rem) 1rem;
    text-decoration: none;
    transition: background-color 200ms ease;
  }
  .sheet-nav a:active {
    background: var(--navy-700);
  }
  .sheet-link {
    font-family: var(--display);
    font-size: clamp(1.375rem, min(7.5vw, 3.7dvh), 2.25rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
  }
  .sheet-note {
    grid-column: 1;
    font-size: clamp(0.8125rem, 1.8dvh, 0.9375rem);
    color: var(--muted);
  }
  .sheet-nav .arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gold);
  }
  /* The page you're on carries the gold mark. */
  .sheet-nav a::before {
    content: "";
    position: absolute;
    left: 0;
    top: clamp(0.3rem, 1.1dvh, 0.7rem);
    bottom: clamp(0.3rem, 1.1dvh, 0.7rem);
    width: 0.25rem;
    background: var(--navy-700);
  }
  .sheet-nav a[aria-current="page"]::before {
    background: var(--gold);
  }
  .sheet-nav a[aria-current="page"] .sheet-link {
    color: var(--gold-bright);
  }
  @media (max-width: 24rem) {
    .menu .panel-mark span {
      display: none; /* just the crest, so "Close" always has room */
    }
  }
  /* One action under the links, held at the foot of the screen. */
  .sheet-actions {
    margin-top: auto;
    padding-top: clamp(0.75rem, 2.5vh, 1.5rem);
  }
  .sheet-actions .button {
    width: 100%;
  }
  /* Opening: each row rises in turn, quickly. */
  .menu[open] .sheet-nav li,
  .menu[open] .sheet-actions {
    animation: rise-in 420ms var(--ease-out) both;
    animation-delay: calc(60ms + var(--i, 0) * 35ms);
  }
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes sheet {
  from {
    opacity: 0;
    transform: translateY(-0.75rem);
  }
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
}

/* ---------- Hero: the court at dusk ---------- */

.cinema {
  position: relative;
  isolation: isolate;
  margin-top: calc(var(--header) * -1);
  min-height: max(36rem, calc(100svh - 11rem));
  display: grid;
  align-items: end;
  padding-top: calc(var(--header) + 3rem);
  padding-bottom: clamp(7rem, 11vw, 9rem);
  overflow: clip;
  background: var(--night);
}
.cinema-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.cinema-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}
/* The one permitted scrim: a neutral shade under the headline, so it reads on the photograph. */
.cinema::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(8 12 31 / 0.9) 0%, rgb(8 12 31 / 0.62) 40%, rgb(8 12 31 / 0) 78%), /* taste-skill-ignore: scrim under text on a photograph */
    linear-gradient(0deg, rgb(8 12 31 / 1) 0%, rgb(8 12 31 / 0) 42%); /* taste-skill-ignore: scrim under text on a photograph */
}
.cinema .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
}
.cinema h1 {
  max-width: 17ch;
}
.cinema .lede {
  margin-top: 1.75rem;
  color: var(--sand-100);
  max-width: 34rem;
}
.cinema .actions {
  margin-top: 2.5rem;
}
.cinema .seal-hero {
  width: clamp(8rem, 13vw, 12rem);
}
.cinema .photo-credit {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(4.25rem, 7vw, 6rem);
  font-size: var(--size-small);
  color: var(--muted);
}
.cinema .photo-credit a {
  color: inherit;
}
@media (prefers-reduced-motion: no-preference) {
  .cinema-photo img {
    animation: settle-in 2.4s var(--ease-out) both;
  }
  @keyframes settle-in {
    from {
      transform: scale(1.08);
      opacity: 0.35;
    }
  }
}

/* ---------- The instrument: your matter ---------- */

.matter {
  --overlap: clamp(4rem, 6vw, 5.5rem);
  position: relative;
  z-index: 5;
  margin-top: calc(var(--overlap) * -1);
}
/* The night continues below the photograph; the panel's overlap stays over the picture. */
.matter.night {
  background: none;
}
.matter.night::before {
  content: "";
  position: absolute;
  inset: var(--overlap) 0 0 0;
  z-index: -1;
  background: var(--night);
}
.instrument {
  position: relative;
  background: var(--sand-100);
  color: #121936;
  --surface: var(--ivory);
  --surface-2: var(--sand-200);
  --text: #121936;
  --muted: #4d4433;
  --accent: var(--gold-deep);
  --action-bg: var(--navy-800);
  --action-text: var(--ivory);
  --action-hover: var(--navy-700);
  padding: clamp(1.75rem, 3.5vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: 2rem clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.instrument h2 {
  font-size: var(--size-h2);
}
.instrument .intro p {
  margin-top: 1rem;
  color: var(--muted);
}
.instrument fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}
.instrument legend {
  font-size: var(--size-small);
  color: var(--muted);
  margin-bottom: 1rem;
}
.matters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.matters label {
  position: relative;
  cursor: pointer;
}
.matters input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.matters span {
  display: block;
  padding: 0.65rem 1rem;
  background: var(--surface);
  font-size: var(--size-ui);
  line-height: 1.3;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 160ms var(--ease-out);
}
.matters label:active span {
  transform: scale(0.97);
}
@media (hover: hover) and (pointer: fine) {
  .matters label:hover span {
    background: var(--surface-2);
  }
}
.matters input:checked + span {
  background: var(--action-bg);
  color: var(--action-text);
  font-weight: 600;
}
.matters input:focus-visible + span {
  outline: 2px solid var(--navy-800);
  outline-offset: 2px;
}
.bring {
  min-height: 12rem;
}
.bring h3 {
  font-family: var(--text-face);
  font-weight: 600;
  font-size: var(--size-ui);
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--muted);
}
.bring-list {
  display: none;
}
.bring-list ul,
.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.bring-list ul {
  margin-top: 0.9rem;
}
.bring-list li,
.checklist li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.6rem;
  line-height: 1.45;
}
.bring-list li::before,
.checklist li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.5em;
  background: var(--accent);
  transform: rotate(45deg);
}
/* The checked matter decides which list shows; the first shows when nothing is checked. */
.instrument:not(:has(input:checked)) .bring-list:first-of-type,
.instrument:has(#m-insurance-law:checked) [data-area="insurance-law"],
.instrument:has(#m-labour-employment-law:checked) [data-area="labour-employment-law"],
.instrument:has(#m-constitutional-administrative-law:checked) [data-area="constitutional-administrative-law"],
.instrument:has(#m-probate-succession-law:checked) [data-area="probate-succession-law"],
.instrument:has(#m-commercial-law:checked) [data-area="commercial-law"],
.instrument:has(#m-property-conveyancing-law:checked) [data-area="property-conveyancing-law"],
.instrument:has(#m-general-litigation:checked) [data-area="general-litigation"] {
  display: block;
  animation: settle 320ms var(--ease-out);
}
@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.instrument .sheet-foot {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

/* ---------- The seal ---------- */

.seal-img {
  width: 100%;
  height: auto;
}
.seal-turn {
  animation: turn 240s linear infinite;
}
@keyframes turn {
  to {
    transform: rotate(1turn);
  }
}
.strike {
  animation: strike 1100ms var(--ease-out) 300ms both;
}
@keyframes strike {
  from {
    opacity: 0;
    transform: scale(1.16) rotate(-14deg);
  }
}

/* ---------- Statement: the firm in its own words ---------- */

.creed blockquote {
  max-width: 54rem;
}
.creed blockquote p {
  font-family: var(--display);
  font-size: var(--size-h3);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.creed blockquote footer {
  margin-top: 2rem;
  color: var(--muted);
  font-size: var(--size-small);
}

/* ---------- Plate: a photograph of the city ---------- */

.plate {
  position: relative;
  overflow: hidden;
  background: var(--night);
}
.plate img {
  width: 100%;
  height: clamp(22rem, 52vw, 46rem);
  object-fit: cover;
  filter: brightness(0.8); /* already graded to the dusk duotone */
}
.caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.1rem;
  font-size: var(--size-small);
  color: var(--muted);
}
.caption a {
  color: inherit;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .drift img {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    @keyframes drift {
      from {
        transform: scale(1.12) translateY(-4%);
      }
      to {
        transform: scale(1.12) translateY(4%);
      }
    }
  }
}

/* ---------- Practice register ---------- */

.register-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.register-head .lede {
  color: var(--muted);
}
.register {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}
.register a.entry {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr) 3rem;
  gap: 1.5rem clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2.5rem);
  background: var(--surface);
  text-decoration: none;
  transition: background-color 260ms ease;
}
.register h3,
.register h2 {
  font-size: var(--size-h2);
  line-height: 1.06;
  transition: color 260ms ease;
}
.register p {
  max-width: 36ch;
  color: var(--muted);
}
.register ul {
  list-style: none;
  padding: 0;
  font-size: var(--size-small);
  color: var(--muted);
  line-height: 1.75;
}
.register .go {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--accent);
  transition:
    transform 260ms var(--ease-out),
    background-color 260ms ease,
    color 260ms ease;
}
.register .go svg {
  width: 1.15rem;
  height: 1.15rem;
}
@media (hover: hover) and (pointer: fine) {
  .register a.entry:hover {
    background: var(--surface-2);
  }

  .register a.entry:hover .go {
    transform: translateX(4px);
    background: var(--action-bg);
    color: var(--action-text);
  }
}

/* ---------- Practice mosaic on the home page ---------- */

.mosaic {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(13rem, 19vw, 17rem);
  gap: 0.5rem;
}
/* Insurance leads, two rows tall; the rest step down in size around it. */
.tile-1 { grid-column: span 6; grid-row: span 2; }
.tile-2 { grid-column: span 3; }
.tile-3 { grid-column: span 3; }
.tile-4 { grid-column: span 3; }
.tile-5 { grid-column: span 3; }
.tile-6 { grid-column: span 7; }
.tile-7 { grid-column: span 5; }
.tile a {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  overflow: hidden;
  padding: clamp(1.25rem, 2.2vw, 2rem);
  color: var(--ivory);
  text-decoration: none;
  background: var(--navy-900);
}
.tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
/* A neutral scrim under the words, so they read on any photograph. */
.tile a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgb(8 12 31 / 0.88) 0%, rgb(8 12 31 / 0.35) 55%, rgb(8 12 31 / 0.05) 100%); /* taste-skill-ignore: scrim under text on a photograph */
  transition: background-color 400ms ease;
}
.tile-text {
  display: grid;
  gap: 0.6rem;
  padding-right: 3.5rem;
}
.tile-title {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.7vw, 1.625rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.tile-1 .tile-title {
  font-size: var(--size-h2);
}
.tile-6 .tile-title,
.tile-7 .tile-title {
  font-size: var(--size-h3);
}
.tile-summary {
  font-size: var(--size-small);
  line-height: 1.5;
  color: #e2dccf;
  max-width: 46ch;
  /* Held below until the tile is pointed at; always shown on the lead tile and on touch screens. */
  max-height: 0;
  opacity: 0;
  transform: translateY(6px);
  overflow: hidden;
  transition:
    opacity 300ms var(--ease-out),
    transform 400ms var(--ease-out),
    max-height 400ms var(--ease-out);
}
.tile-1 .tile-summary {
  max-height: 8rem;
  opacity: 1;
  transform: none;
  font-size: var(--size-ui);
}
.tile-go {
  position: absolute;
  right: clamp(1.25rem, 2.2vw, 2rem);
  bottom: clamp(1.25rem, 2.2vw, 2rem);
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--night);
  transition: transform 300ms var(--ease-out);
}
.tile-go svg {
  width: 1.1rem;
  height: 1.1rem;
}
@media (hover: hover) and (pointer: fine) {
  .tile a:hover img,
  .tile a:focus-visible img {
    transform: scale(1.06);
  }
  .tile a:hover .tile-summary,
  .tile a:focus-visible .tile-summary {
    max-height: 8rem;
    opacity: 1;
    transform: none;
  }
  .tile a:hover .tile-go {
    transform: translateX(4px);
  }
}
@media (hover: none) {
  .tile-summary {
    max-height: 8rem;
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 68rem) {
  .mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 15rem;
  }
  .tile-1,
  .tile-6 {
    grid-column: span 2;
  }
  .tile-1 {
    grid-row: span 1;
  }
  .tile-2, .tile-3, .tile-4, .tile-5, .tile-7 {
    grid-column: span 1;
  }
  .tile-7 {
    grid-column: span 2;
  }
}
@media (max-width: 40rem) {
  .mosaic {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
  }
  .mosaic .tile {
    grid-column: auto;
    grid-row: auto;
  }
  .tile a {
    min-height: 15rem;
  }
  .tile a::before {
    background: linear-gradient(0deg, rgb(8 12 31 / 0.94) 0%, rgb(8 12 31 / 0.7) 60%, rgb(8 12 31 / 0.2) 100%); /* taste-skill-ignore: scrim under text on a photograph */
  }
  .tile-summary {
    max-height: 8rem;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Method: four words ---------- */

.method-intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
  align-items: end;
}
.method-intro .lede {
  color: var(--muted);
}
/* The four stages: a list of tabs beside the chosen stage, as photograph and points. */
.stages {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  align-items: stretch;
}
.stage-list {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  display: grid;
  gap: 0.25rem;
  align-content: start;
}
.stage-tab {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 1.5rem 1.35rem 1.75rem;
  background: var(--surface);
  cursor: pointer;
  transition:
    background-color 220ms ease,
    transform 160ms var(--ease-out);
}
.stage-tab:active {
  transform: scale(0.99);
}
/* The chosen stage is marked by a gold bar that grows in from the top. */
.stage-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.3rem;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 320ms var(--ease-out);
}
.stage-tab input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.stage-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--size-h3);
  line-height: 1.1;
}
.stage-line {
  font-size: var(--size-small);
  color: var(--muted);
  max-width: 40ch;
}
.stage-tab:has(input:checked) {
  background: var(--ivory);
  color: #121936;
}
.stage-tab:has(input:checked) .stage-line {
  color: #4d4433;
}
.stage-tab:has(input:checked)::before {
  transform: scaleY(1);
}
.stage-tab:has(input:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .stage-tab:not(:has(input:checked)):hover {
    background: var(--surface-2);
  }
}
.stage-panels {
  display: grid;
  min-width: 0;
}
.stage-panel {
  grid-area: 1 / 1;
  display: none;
  background: var(--surface);
}
.stages:not(:has(input:checked)) .stage-panel:first-child,
.stages:has(#stage-preparation:checked) [data-stage="preparation"],
.stages:has(#stage-precision:checked) [data-stage="precision"],
.stages:has(#stage-advocacy:checked) [data-stage="advocacy"],
.stages:has(#stage-persistence:checked) [data-stage="persistence"] {
  display: grid;
  grid-template-rows: auto 1fr;
  animation: settle 360ms var(--ease-out);
}
.stage-photo {
  margin: 0;
  overflow: hidden;
}
.stage-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
@media (prefers-reduced-motion: no-preference) {
  .stage-panel .stage-photo img {
    animation: develop 900ms var(--ease-out) both;
  }
  @keyframes develop {
    from {
      transform: scale(1.06);
      opacity: 0.4;
    }
  }
}
.stage-body {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  gap: 1.25rem;
  align-content: start;
}
.stage-body h3 {
  font-size: var(--size-h2);
}
.stage-body .checklist {
  font-size: var(--size-lede);
  gap: 0.85rem;
}

/* ---------- People ---------- */

.lead {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.portrait {
  margin: 0;
}
.portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  background: var(--surface);
}
.portrait figcaption {
  padding-top: 1.1rem;
}
.portrait figcaption b {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--size-lede);
  line-height: 1.2;
}
.portrait figcaption span {
  display: block;
  font-size: var(--size-small);
  color: var(--muted);
}
.lead-portrait {
  max-width: 22rem;
}
.lead .credentials {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.lead .credentials li {
  background: var(--surface);
  padding: 0.55rem 0.9rem;
  font-size: var(--size-small);
}
.partners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 17rem));
  gap: 2rem clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(3rem, 5vw, 4rem);
}
.monogram {
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--display);
  font-size: var(--size-title);
}

/* ---------- The undertaking: the promise as a sealed sheet over the court's gates ---------- */

.undertaking {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--night);
  padding-block: clamp(5rem, 11vw, 9.5rem);
}
.undertaking-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
}
.undertaking-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
}
.undertaking .wrap {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
}
.deed {
  grid-column: 2;
  position: relative;
  background: var(--ivory);
  color: #121936;
  --text: #121936;
  --muted: #4d4433;
  --accent: var(--gold-deep);
  padding: clamp(2rem, 5vw, 4.5rem);
}
.deed-seal {
  position: absolute;
  top: clamp(-3.5rem, -4vw, -2.25rem);
  right: clamp(1.5rem, 4vw, 3.5rem);
  width: clamp(6.5rem, 10vw, 9rem);
}
.deed-lead {
  font-size: var(--size-h2);
  line-height: 1.12;
  padding-right: clamp(6rem, 10vw, 9rem);
}
.clauses {
  list-style: none;
  padding: 0;
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}
.clauses li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.clauses p {
  font-family: var(--display);
  font-size: var(--size-h3);
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.tick {
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0.1rem;
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 2.4;
  stroke-linecap: square;
  stroke-dasharray: 30;
  stroke-dashoffset: 0;
}
/* Each tick is drawn in turn as the undertaking enters the screen. */
.js .clauses .tick {
  stroke-dashoffset: 30;
}
.js .clauses.in .tick,
.js .in > .clauses .tick {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 520ms var(--ease-out);
  transition-delay: calc(400ms + var(--i, 0) * 260ms);
}
.deed-foot {
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.deed-foot p {
  font-size: var(--size-ui);
  font-weight: 600;
}
.deed-foot p span {
  font-weight: 400;
  color: var(--muted);
}
.deed .deed-stamp {
  width: clamp(6rem, 9vw, 8rem);
  color: var(--gold-deep);
  flex-shrink: 0;
}
.undertaking-credit {
  position: absolute;
  left: var(--gutter);
  bottom: 1.25rem;
  font-size: var(--size-small);
  color: #cfc7b6;
}
.undertaking-credit a {
  color: inherit;
}
@media (prefers-reduced-motion: reduce) {
  .js .clauses .tick {
    stroke-dashoffset: 0;
  }
}

/* ---------- Insights ---------- */

.reading-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}
.reading-list a {
  display: grid;
  grid-template-columns: minmax(0, 9fr) minmax(0, 3fr);
  gap: 0.75rem clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.5rem, 2.5vw, 2.25rem) clamp(1rem, 2.5vw, 2.25rem);
  background: var(--surface);
  text-decoration: none;
  align-items: baseline;
  transition: background-color 220ms ease;
}
.reading-list h3 {
  font-size: var(--size-h3);
  line-height: 1.12;
  transition: color 220ms ease;
}
.reading-list p {
  margin-top: 0.75rem;
  max-width: 52ch;
  color: var(--muted);
}
.reading-list .meta,
.reading-list .when {
  font-size: var(--size-small);
  color: var(--muted);
}
.reading-list .when {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (hover: hover) and (pointer: fine) {
  .reading-list a:hover {
    background: var(--surface-2);
  }
  .reading-list a:hover h3 {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 0.2em;
  }
}

/* ---------- Clients: one voice at a time, and the clients in a slow-moving strip ---------- */

.clients-section {
  overflow: clip;
  padding-bottom: 0;
}
.voices {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 1.5rem clamp(2rem, 4vw, 4rem);
  align-items: stretch;
}
.voice-stage {
  display: grid;
  background: var(--ivory);
  min-width: 0;
}
.voice {
  grid-area: 1 / 1;
  margin: 0;
  padding: clamp(2rem, 5vw, 4.5rem);
  display: grid;
  align-content: space-between;
  gap: 2.5rem;
  opacity: 0;
  visibility: hidden;
  filter: blur(6px);
  transform: translateY(8px);
  /* Leaving is quick; arriving is slower and waits for the last voice to clear. */
  transition:
    opacity 180ms ease-out,
    filter 180ms ease-out,
    transform 180ms ease-out,
    visibility 0s linear 180ms;
}
.voices:not(:has(input:checked)) .voice:first-child,
.voices:has(#voice-1:checked) [data-voice="1"],
.voices:has(#voice-2:checked) [data-voice="2"],
.voices:has(#voice-3:checked) [data-voice="3"] {
  opacity: 1;
  visibility: visible;
  filter: none;
  transform: none;
  transition:
    opacity 450ms var(--ease-out) 180ms,
    filter 450ms var(--ease-out) 180ms,
    transform 450ms var(--ease-out) 180ms,
    visibility 0s linear 0s;
}
.voice-mark {
  width: 3rem;
  height: 3rem;
  color: var(--gold);
}
.voice blockquote p {
  font-family: var(--display);
  font-size: var(--size-h3);
  line-height: 1.32;
  letter-spacing: -0.01em;
  max-width: 44ch;
}
.voice figcaption {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: var(--size-small);
  color: var(--muted);
}
.voice figcaption b {
  display: block;
  font-size: var(--size-ui);
  color: var(--text);
}
.voice-badge {
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--sand-100);
  padding: 0.6rem;
}
.voice-badge img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.voice-initials {
  font-family: var(--display);
  font-size: var(--size-h3);
  color: var(--navy-800);
}
.voice-list {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  display: grid;
  gap: 0.25rem;
  align-content: stretch;
}
.voice-tab {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: 0.3rem;
  padding: 1.35rem 1.5rem;
  background: var(--sand-200);
  cursor: pointer;
  transition:
    background-color 220ms ease,
    transform 160ms var(--ease-out);
}
.voice-tab:active {
  transform: scale(0.99);
}
.voice-tab input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.voice-who {
  font-family: var(--display);
  font-size: var(--size-lede);
  line-height: 1.25;
}
.voice-matter {
  font-size: var(--size-small);
  color: var(--muted);
}
.voice-tab:has(input:checked) {
  background: var(--ivory);
}
.voice-tab:has(input:focus-visible) {
  outline: 2px solid var(--navy-800);
  outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .voice-tab:not(:has(input:checked)):hover {
    background: var(--ivory);
  }
}
/* The progress line: gold, filling across the chosen voice while the voices advance on their own. */
.voice-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.2rem; /* taste-skill-ignore: a progress bar, not a divider */
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}
.voice-tab:has(input:checked) .voice-progress {
  transform: scaleX(1);
}
.voices.auto .voice-tab:has(input:checked) .voice-progress {
  animation: progress var(--voice-time, 9s) linear both;
}
.voices.auto:hover .voice-progress,
.voices.auto:focus-within .voice-progress {
  animation-play-state: paused;
}
@keyframes progress {
  from {
    transform: scaleX(0);
  }
}

.client-strip {
  margin-top: clamp(4rem, 8vw, 6.5rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  background: var(--sand-200);
  display: flex;
  overflow: hidden;
}
.client-track {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(3rem, 6vw, 5.5rem);
  padding-right: clamp(3rem, 6vw, 5.5rem);
  animation: drift-left 46s linear infinite;
}
.client-strip:hover .client-track {
  animation-play-state: paused;
}
@keyframes drift-left {
  to {
    transform: translateX(-100%);
  }
}
.client-track img {
  height: 2.75rem;
  width: auto;
  max-width: 10rem;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition:
    filter 250ms ease,
    opacity 250ms ease;
}
.client-track img.tall {
  height: 4rem;
}
@media (hover: hover) and (pointer: fine) {
  .client-track li:hover img {
    filter: none;
    opacity: 1;
  }
}
.client-track .name-only {
  font-family: var(--display);
  font-size: var(--size-lede);
  color: var(--muted);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .client-strip {
    flex-wrap: wrap;
    justify-content: center;
  }
  .client-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 2rem;
    padding-inline: var(--gutter);
  }
  .client-track[aria-hidden] {
    display: none;
  }
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.faq-head {
  position: sticky;
  top: 2rem;
}
.faq-head .lede {
  color: var(--muted);
}
.faq-list {
  display: grid;
  gap: 0.25rem;
}
.faq details {
  background: var(--surface);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 1.6rem;
  font-weight: 600;
  font-size: var(--size-body);
  line-height: 1.35;
  transition: background-color 200ms ease;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .plus {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  color: var(--accent);
  transition: transform 250ms var(--ease-out);
}
.faq details[open] summary .plus {
  transform: rotate(45deg);
}
.faq details > div {
  padding: 0 1.6rem 1.6rem;
  max-width: 62ch;
  color: var(--muted);
}
.faq details[open] > div {
  animation: settle 280ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover {
    background: var(--surface-2);
  }
}

/* ---------- Close and footer ---------- */

.site-footer {
  font-size: var(--size-small);
}
/* The invitation: one line from the firm and the two ways to act on it. */
.footer-invite .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem 3rem;
  padding-block: clamp(2.75rem, 5vw, 4rem);
}
.invite-line {
  font-family: var(--display);
  font-size: var(--size-h3);
  line-height: 1.2;
  max-width: 30ch;
}
.footer-body {
  background: #222d55; /* one step below the brand navy */
  padding-top: clamp(3rem, 5vw, 4.5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr));
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.footer-brand {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}
.footer-motto {
  font-family: var(--display);
  font-size: var(--size-lede);
  color: var(--muted);
}
.footer-stamp {
  width: 5.5rem;
  color: var(--gold);
  opacity: 0.85;
  transform: rotate(-9deg);
}
.footer-grid h2 {
  font-family: var(--text-face);
  font-size: var(--size-small);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ivory);
  margin-bottom: 0.9rem;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}
.footer-grid address {
  margin-block: 1rem 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}
.footer-grid ul a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.3em;
  transition:
    color 200ms ease,
    text-decoration-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .footer-grid ul a:hover {
    color: var(--ivory);
    text-decoration-color: var(--gold);
  }
}
.footer-legal {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-block: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  color: var(--muted);
}
.footer-legal p {
  max-width: 72ch;
}
.credits summary {
  cursor: pointer;
  color: var(--ivory);
}
.credits ul {
  margin-top: 0.75rem;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

/* ---------- Inner pages ---------- */

.page-head {
  padding-block: clamp(3rem, 7vw, 6.5rem) clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: clip;
}
.page-head .wrap {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.page-head h1 {
  max-width: 18ch;
}
.page-head .lede {
  margin-top: 1.75rem;
}
.page-head .seal-side {
  width: min(100%, 15rem);
  justify-self: end;
}
.crumbs {
  font-size: var(--size-small);
  color: var(--muted);
  margin-top: 2rem;
}
.crumbs a {
  color: inherit;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.split-even {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
}
.sticky {
  position: sticky;
  top: 2rem;
}
.services {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}
.services li {
  background: var(--surface);
  padding: 1.15rem 1.4rem;
  font-family: var(--display);
  font-size: var(--size-lede);
  line-height: 1.25;
}
.services li p {
  margin-top: 0.4rem;
  font-family: var(--text-face);
  font-size: var(--size-small);
  line-height: 1.55;
  color: var(--muted);
}
.sheet {
  position: relative;
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.75rem);
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}
.facts dt {
  font-family: var(--display);
  font-size: var(--size-title);
  line-height: 1;
  letter-spacing: -0.02em;
}
.facts dd {
  margin-top: 0.75rem;
  max-width: 20ch;
  color: var(--muted);
}
.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem clamp(2rem, 6vw, 6rem);
}
.values h3 {
  font-size: var(--size-h3);
  line-height: 1.12;
  margin-bottom: 0.85rem;
}
.values p {
  color: var(--muted);
}
.next-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  text-decoration: none;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.next-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--size-h2);
  line-height: 1.08;
  transition: color 250ms ease;
}
.next-area svg {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 250ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .next-area:hover svg {
    transform: translateX(6px);
  }
  .next-area:hover .next-title {
    color: var(--accent);
  }
}

/* ---------- People: partners without a biography share one row of portraits ---------- */

.partner-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.partner-portraits {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 21rem)); /* the photographs are 330px wide; never blown up */
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.partner-portraits figure {
  margin: 0;
}
.partner-portraits img,
.partner-portraits .monogram {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}
.partner-portraits figcaption {
  margin-top: 1rem;
  display: grid;
  gap: 0.2rem;
}
.partner-portraits h3 {
  font-size: var(--size-h3);
  line-height: 1.15;
}
.partner-portraits figcaption > p {
  color: var(--muted);
}
.partner-cred {
  font-size: var(--size-small);
}
.partner-portraits .actions {
  margin-top: 0.75rem;
}
@media (max-width: 40rem) {
  .partner-portraits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .partner-portraits h3 {
    font-size: var(--size-lede);
  }
}

/* ---------- The firm ---------- */

.story-section {
  padding-block: clamp(3.5rem, 6vw, 5.5rem) var(--section);
}
.story {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 2.5rem clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.story-text .title {
  margin-bottom: 0.4em;
}
.story-portrait {
  margin: 0;
  position: sticky;
  top: 2rem;
  max-width: 22rem;
}
.story-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}
.story-portrait figcaption {
  margin-top: 1rem;
  display: grid;
}
.story-portrait b {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--size-lede);
}
.story-portrait span {
  font-size: var(--size-small);
  color: var(--muted);
}
.story-text > p {
  max-width: var(--measure);
}
.story-text .title {
  white-space: nowrap;
}
@media (max-width: 40rem) {
  .story-text .title {
    white-space: normal;
  }
}
.story-text > * + * {
  margin-top: 1.2em;
}
.story-close {
  font-family: var(--display);
  font-size: var(--size-lede);
  line-height: 1.45;
  padding: 1.5rem 1.75rem;
  background: var(--sand-100);
}

.timeline {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 3vw, 3rem);
  position: relative;
  padding-top: 3.5rem;
}
/* The track: a gold bar across the top that fills, left to right, as the record enters. */
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0.55rem;
  height: 0.3rem; /* taste-skill-ignore: the timeline's track, not a divider */
}
.timeline::before {
  background: var(--sand-300);
}
.timeline::after {
  background: var(--gold);
  transform-origin: left;
}
.js .timeline::after {
  transform: scaleX(0);
}
.js .timeline.in::after {
  transform: scaleX(1);
  transition: transform 1400ms var(--ease-in-out) 200ms;
}
.timeline li {
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  top: -3.5rem;
  left: 0;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--navy-800);
  transform: rotate(45deg);
}
.timeline-when {
  display: block;
  font-family: var(--display);
  font-size: var(--size-title);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy-800);
}
.timeline h3 {
  margin-top: 1rem;
  font-size: var(--size-h3);
}
.timeline p {
  margin-top: 0.75rem;
  max-width: 34ch;
}
@media (prefers-reduced-motion: reduce) {
  .js .timeline::after {
    transform: none;
  }
}

.compass {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.compass-side {
  display: grid;
  gap: 1.25rem;
}
.compass-side:last-child {
  text-align: right;
  justify-items: end;
}
.compass-side .statement {
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.4;
  max-width: 30ch;
}
.compass-seal {
  width: clamp(9rem, 15vw, 13rem);
}

.answers-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.answers-photo {
  margin: 0;
  position: sticky;
  top: 2rem;
}
.answers-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 40% 50%;
}
.answers-photo figcaption {
  margin-top: 0.75rem;
  font-size: var(--size-small);
  color: var(--muted);
}
.answers-photo figcaption a {
  color: inherit;
}
.qa {
  list-style: none;
  padding: 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.qa-question {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--size-h3);
  line-height: 1.25;
  color: var(--muted);
}
/* The answer hangs from a gold bar, as a reply set against the question. */
.qa-answer {
  position: relative;
  margin-top: 1.25rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 2.5vw, 2rem);
  background: var(--sand-100);
}
.qa-answer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.3rem;
  background: var(--gold);
  transform-origin: top;
}
.js [data-reveal] .qa-answer::before {
  transform: scaleY(0);
}
.js [data-reveal].in .qa-answer::before {
  transform: scaleY(1);
  transition: transform 700ms var(--ease-out) 350ms;
}
.qa-answer h3 {
  font-size: var(--size-h3);
}
.qa-answer p {
  margin-top: 0.6rem;
  max-width: 48ch;
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] .qa-answer::before {
    transform: none;
  }
}

.people-strip {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.faces {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.faces a {
  display: block;
  text-decoration: none;
  overflow: hidden;
}
.faces img,
.faces .monogram {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  transition: transform 600ms var(--ease-out);
}
.face-name {
  display: grid;
  margin-top: 0.85rem;
  font-family: var(--display);
  font-size: var(--size-lede);
}
.face-name small {
  font-family: var(--text-face);
  font-size: var(--size-small);
  color: var(--muted);
}
@media (hover: hover) and (pointer: fine) {
  .faces a:hover img {
    transform: scale(1.04);
  }
}

/* ---------- Practice index: from situation to area ---------- */

/* "I'm here because…": the visitor finishes the sentence and the answer appears beneath it. */
.because-sentence {
  font-family: var(--display);
  font-size: var(--size-h2);
  line-height: 1.22;
  letter-spacing: -0.015em;
  max-width: 34em;
  min-height: 2.44em; /* two lines held, so changing the answer never jumps the page */
}
.because-lead {
  color: var(--muted);
}
.because-blank {
  display: none;
  color: var(--navy-800);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.16em;
}
.because-choices {
  border: 0;
  padding: 0;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  min-width: 0;
}
.because-choices legend {
  font-size: var(--size-small);
  color: var(--muted);
  margin-bottom: 1rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chips label {
  position: relative;
  cursor: pointer;
}
.chips input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.chips span {
  display: block;
  padding: 0.75rem 1.15rem;
  background: var(--ivory);
  font-size: var(--size-ui);
  line-height: 1.3;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 160ms var(--ease-out);
}
.chips label:active span {
  transform: scale(0.97);
}
@media (hover: hover) and (pointer: fine) {
  .chips label:hover span {
    background: var(--sand-200);
  }
}
.chips input:checked + span {
  background: var(--navy-800);
  color: var(--ivory);
  font-weight: 600;
}
.chips input:focus-visible + span {
  outline: 2px solid var(--navy-800);
  outline-offset: 2px;
}
.answers {
  display: grid;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.answer {
  grid-area: 1 / 1;
  display: none;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  background: var(--ivory);
}
.answer-main {
  padding: clamp(1.75rem, 4vw, 3.25rem);
  display: grid;
  gap: 1.1rem;
  align-content: start;
}
.answer-area {
  font-size: var(--size-h2);
}
.answer-main > p {
  max-width: 46ch;
}
.answer-main .actions {
  margin-top: 0.75rem;
}
.answer-bring {
  background: var(--navy-800);
  color: var(--ivory);
  --accent: var(--gold);
  padding: clamp(1.75rem, 4vw, 3.25rem);
}
.answer-bring h4 {
  font-family: var(--text-face);
  font-size: var(--size-ui);
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 1.1rem;
}
.because:not(:has(input:checked)) .because-blank:first-of-type,
.because:has(#sit-insurance-law:checked) [data-phrase="insurance-law"],
.because:has(#sit-insurance-law:checked) [data-answer="insurance-law"],
.because:has(#sit-labour-employment-law:checked) [data-phrase="labour-employment-law"],
.because:has(#sit-labour-employment-law:checked) [data-answer="labour-employment-law"],
.because:has(#sit-constitutional-administrative-law:checked) [data-phrase="constitutional-administrative-law"],
.because:has(#sit-constitutional-administrative-law:checked) [data-answer="constitutional-administrative-law"],
.because:has(#sit-probate-succession-law:checked) [data-phrase="probate-succession-law"],
.because:has(#sit-probate-succession-law:checked) [data-answer="probate-succession-law"],
.because:has(#sit-commercial-law:checked) [data-phrase="commercial-law"],
.because:has(#sit-commercial-law:checked) [data-answer="commercial-law"],
.because:has(#sit-property-conveyancing-law:checked) [data-phrase="property-conveyancing-law"],
.because:has(#sit-property-conveyancing-law:checked) [data-answer="property-conveyancing-law"],
.because:has(#sit-general-litigation:checked) [data-phrase="general-litigation"],
.because:has(#sit-general-litigation:checked) [data-answer="general-litigation"] {
  display: inline;
}
.because:not(:has(input:checked)) .answer:first-child,
.because:has(#sit-insurance-law:checked) [data-answer="insurance-law"],
.because:has(#sit-labour-employment-law:checked) [data-answer="labour-employment-law"],
.because:has(#sit-constitutional-administrative-law:checked) [data-answer="constitutional-administrative-law"],
.because:has(#sit-probate-succession-law:checked) [data-answer="probate-succession-law"],
.because:has(#sit-commercial-law:checked) [data-answer="commercial-law"],
.because:has(#sit-property-conveyancing-law:checked) [data-answer="property-conveyancing-law"],
.because:has(#sit-general-litigation:checked) [data-answer="general-litigation"] {
  display: grid;
  animation: settle 360ms var(--ease-out);
}
@media (max-width: 40rem) {
  .because-sentence {
    font-size: 1.5rem;
    min-height: 3.9em;
  }
  .answer {
    grid-template-columns: minmax(0, 1fr);
  }
}

.chapters-wrap {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  max-width: var(--max);
  margin-inline: auto;
  padding-left: var(--gutter);
}
.chapter-index {
  position: sticky;
  top: 0;
  align-self: start;
  padding-block: clamp(3rem, 6vw, 5rem);
  padding-right: 2rem;
}
.chapter-index ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}
.chapter-index a {
  position: relative;
  display: block;
  padding: 0.55rem 0 0.55rem 1.1rem;
  font-size: var(--size-small);
  color: var(--muted);
  text-decoration: none;
  transition: color 200ms ease;
}
.chapter-index a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 0.2rem;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform 300ms var(--ease-out);
}
.chapter-index a[aria-current="true"] {
  color: var(--text);
  font-weight: 600;
}
.chapter-index a[aria-current="true"]::before {
  transform: scaleY(1);
}
@media (hover: hover) and (pointer: fine) {
  .chapter-index a:hover {
    color: var(--text);
  }
}
.chapters {
  min-width: 0;
}
.chapter {
  scroll-margin-top: 1rem;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.chapter + .chapter {
  padding-top: clamp(1rem, 2vw, 1.5rem);
}
/* Generous space between chapters, so each area starts as its own page of the guide. */
.chapter + .chapter .chapter-inner {
  padding-top: clamp(3.5rem, 7vw, 6rem);
}
.chapter-inner {
  padding-inline: clamp(1.5rem, 4vw, 4rem) var(--gutter);
  max-width: 64rem;
}
.chapter-head .lede {
  margin-top: 1.5rem;
}
.chapter-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 4vw, 4rem);
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}
.chapter-body h3 {
  font-family: var(--text-face);
  font-size: var(--size-ui);
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 1rem;
}
.service-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}
.service-list li {
  font-family: var(--display);
  font-size: var(--size-lede);
  line-height: 1.3;
  padding: 0.8rem 1rem;
  background: var(--surface);
}
.chapter-bring {
  background: var(--navy-800);
  color: var(--ivory);
  --accent: var(--gold);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  align-self: start;
}
.chapter-bring h3 {
  color: var(--ivory);
}
.chapter-actions {
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* ---------- Careers: the roles board, who we hire, the general application ---------- */

.role-board {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}
.role-board > li > a {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr) 3rem;
  gap: 1.25rem clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2.5rem);
  background: var(--sand-100);
  text-decoration: none;
  transition: background-color 260ms ease;
}
.role-main h3 {
  font-size: var(--size-h2);
  line-height: 1.08;
}
.role-main p {
  margin-top: 0.75rem;
  max-width: 48ch;
  color: var(--muted);
}
.role-tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.role-tags li {
  padding: 0.4rem 0.75rem;
  background: var(--ivory);
  font-size: var(--size-small);
}
.role-close {
  display: grid;
  gap: 0.2rem;
}
.role-close b {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--size-lede);
  line-height: 1.25;
}
.role-close span {
  font-size: var(--size-small);
  color: var(--muted);
}
.role-go {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: var(--navy-800);
  color: var(--ivory);
  transition: transform 260ms var(--ease-out);
}
.role-go svg {
  width: 1.15rem;
  height: 1.15rem;
}
@media (hover: hover) and (pointer: fine) {
  .role-board > li > a:hover {
    background: var(--sand-200);
  }
  .role-board > li > a:hover .role-go {
    transform: translateX(4px);
  }
}

.paths {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.paths-photo {
  margin: 0;
}
.paths-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 45% 50%;
}
.paths-photo figcaption {
  margin-top: 0.75rem;
  font-size: var(--size-small);
  color: var(--muted);
}
.paths-photo figcaption a {
  color: inherit;
}
.path-list {
  list-style: none;
  padding: 0;
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: 0.25rem;
}
.path-list li {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 0.75rem 2rem;
  align-items: baseline;
  padding: clamp(1.25rem, 2.5vw, 1.85rem) clamp(1.25rem, 2.5vw, 2rem);
  background: var(--ivory);
}
.path-list h3 {
  font-size: var(--size-h3);
}

/* The role page: the brief, an at-a-glance card that stays beside it, and the application. */
.role-tags-dark li {
  background: var(--navy-700);
  color: var(--ivory);
}
.role-head .role-tags {
  margin-top: 1.75rem;
}
.brief {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 3rem clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.brief-body {
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
}
.brief-list .clauses {
  margin-top: 1.5rem;
}
.brief-list .clauses p {
  font-size: var(--size-lede);
  line-height: 1.4;
}
.brief-list .tick {
  width: 1.75rem;
  height: 1.75rem;
}
.brief-list .clauses li {
  grid-template-columns: 1.75rem minmax(0, 1fr);
}
.brief-card {
  position: sticky;
  top: 2rem;
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--sand-100);
}
.brief-card dl {
  display: grid;
  gap: 1.1rem;
}
.brief-card dt {
  font-size: var(--size-small);
  color: var(--muted);
}
.brief-card dd {
  font-family: var(--display);
  font-size: var(--size-lede);
  line-height: 1.25;
}
.brief-card dd small {
  display: block;
  font-family: var(--text-face);
  font-size: var(--size-small);
  color: var(--gold-deep);
  font-weight: 600;
}
.brief-prepare {
  background: var(--navy-800);
  color: var(--ivory);
  --accent: var(--gold);
  padding: 1.25rem 1.4rem;
}
.brief-prepare h2 {
  font-family: var(--text-face);
  font-size: var(--size-ui);
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 0.85rem;
}
.brief-prepare .checklist {
  font-size: var(--size-small);
  gap: 0.5rem;
}
.brief-card .button {
  width: 100%;
}
.apply-section {
  scroll-margin-top: 0;
}
.apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 2.5rem clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.apply-intro {
  position: sticky;
  top: 2rem;
}
.apply-next {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}
.apply-next li {
  padding-left: 1.25rem;
  position: relative;
}
.apply-next li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--gold-deep);
  transform: rotate(45deg);
}
.apply-grid .form-sheet {
  background: var(--ivory);
}

.general-sheet {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  background: var(--ivory);
  padding: clamp(1.75rem, 4vw, 3rem);
}
.general-seal {
  width: clamp(5rem, 8vw, 7rem);
}
.general-sheet p {
  max-width: 52ch;
}

.empty {
  background: var(--surface);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}
.empty h3 {
  font-size: var(--size-h3);
}
.empty p {
  color: var(--muted);
}
.role-facts {
  display: grid;
  gap: 1.25rem;
}
.role-facts dt {
  font-size: var(--size-small);
  color: var(--muted);
}
.role-facts dd {
  font-family: var(--display);
  font-size: var(--size-lede);
  line-height: 1.25;
}
.notice {
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  gap: 0.75rem;
}
.notice h2 {
  font-size: var(--size-h3);
}
.tel-big {
  display: block;
  font-family: var(--display);
  font-size: var(--size-h3);
  line-height: 1.2;
  text-decoration: none;
  transition: color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .tel-big:hover {
    color: var(--accent);
  }
}

/* ---------- Forms ---------- */

.form {
  display: grid;
  gap: 1.5rem;
}
.form .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.field-group {
  display: grid;
  gap: 0.45rem;
}
.field-group label {
  font-weight: 600;
  font-size: var(--size-ui);
}
.field-group .hint {
  font-size: var(--size-small);
  color: var(--muted);
  font-weight: 400;
}
.field-group input:not([type="checkbox"]):not([type="file"]),
.field-group select,
.field-group textarea {
  width: 100%;
  min-height: 3.375rem;
  padding: 0.85rem 1rem;
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: var(--size-body);
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}
.field-group input::placeholder,
.field-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
.field-group textarea {
  min-height: 10rem;
  resize: vertical;
  line-height: 1.55;
}
.field-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23283560' stroke-width='1.6'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.1rem;
  padding-right: 2.75rem;
}
.field-group input:hover,
.field-group select:hover,
.field-group textarea:hover {
  border-color: var(--sand-700);
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: 2px solid var(--navy-800);
  outline-offset: 0;
  border-color: var(--navy-800);
}
.field-group input[type="file"] {
  width: 100%;
  padding: 1rem;
  background: var(--input-bg);
  border: 1px dashed var(--sand-700);
  cursor: pointer;
}
.field-group input[type="file"]::file-selector-button {
  margin-right: 1rem;
  border: 0;
  padding: 0.6rem 1rem;
  background: var(--action-bg);
  color: var(--action-text);
  font-weight: 600;
  cursor: pointer;
}
.field-group [aria-invalid="true"] {
  border-color: var(--danger) !important;
}
.error {
  color: var(--danger);
  font-size: var(--size-small);
  font-weight: 600;
}
.form-error {
  background: #f7e4df;
  color: var(--danger);
  padding: 1rem 1.25rem;
  font-weight: 600;
}
.consent {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: var(--size-ui);
}
.consent input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: var(--navy-800);
}
.honey {
  position: absolute;
  left: -9999px;
}
.form-sheet {
  background: var(--surface);
  padding: clamp(1.5rem, 4vw, 3.5rem);
}
.button[aria-busy="true"] {
  opacity: 0.7;
  pointer-events: none;
}

/* ---------- Article ---------- */

.article-head {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 7vw, 6rem);
}
.article-head h1 {
  max-width: 20ch;
}
.article-head .lede {
  margin-top: 1.75rem;
}
.byline {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: var(--size-small);
  color: var(--muted);
}
.byline b {
  color: var(--text);
  font-weight: 600;
}
.article-cover img {
  width: 100%;
  max-height: 40rem;
  object-fit: cover;
}
.article {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) minmax(0, 2fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
}
.article aside {
  font-size: var(--size-small);
}
.article aside .sticky > * + * {
  margin-top: 1.5rem;
}
.body {
  max-width: 40rem;
  font-size: var(--size-body);
  line-height: 1.75;
}
.body > * + * {
  margin-top: 1.15em;
}
.body h2 {
  font-size: var(--size-h3);
  line-height: 1.15;
  margin-top: 2.25em;
}
.body h3 {
  font-size: var(--size-lede);
  line-height: 1.2;
  margin-top: 2em;
}
.body h2 + *,
.body h3 + * {
  margin-top: 0.7em;
}
.body ul,
.body ol {
  padding-left: 1.25rem;
}
.body li + li {
  margin-top: 0.4em;
}
.body li::marker {
  color: var(--accent);
}
.body blockquote {
  background: var(--surface);
  padding: 1.5rem 1.75rem;
  font-family: var(--display);
  font-size: var(--size-lede);
  line-height: 1.45;
}
.body a {
  color: var(--navy-800);
  font-weight: 600;
}
.body pre,
.body code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
}
.body pre {
  background: var(--surface);
  padding: 1rem;
  overflow-x: auto;
}
.body table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--size-ui);
}
.body th,
.body td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--sand-300);
}
.disclaimer {
  margin-top: 3.5rem;
  background: var(--surface);
  padding: 1.25rem 1.5rem;
  font-size: var(--size-small);
  max-width: 40rem;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}
.filters a {
  display: block;
  padding: 0.65rem 1.05rem;
  background: var(--surface);
  text-decoration: none;
  font-size: var(--size-ui);
  transition: background-color 180ms ease;
}
.filters a[aria-current="true"] {
  background: var(--action-bg);
  color: var(--action-text);
  font-weight: 600;
}
@media (hover: hover) and (pointer: fine) {
  .filters a:not([aria-current="true"]):hover {
    background: var(--surface-2);
  }
}
.featured {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
  text-decoration: none;
  align-items: center;
  background: var(--surface);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  transition: background-color 220ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .featured:hover {
    background: var(--surface-2);
  }
}
.featured h2 {
  font-size: var(--size-title);
  line-height: 1.04;
}
.featured .meta {
  font-size: var(--size-small);
  color: var(--muted);
}
.featured .seal-img {
  max-width: 14rem;
  justify-self: end;
}
.read-more {
  display: inline-block;
  margin-top: 2rem;
}

/* Messages */
.messages {
  list-style: none;
  padding: 0;
}
.messages li {
  background: var(--navy-800);
  color: var(--ivory);
  padding: 1rem 0;
  font-weight: 600;
}

/* ---------- Motion: entrances ---------- */

.js [data-reveal] > * {
  opacity: 0;
  transform: translateY(24px);
}
.js [data-reveal].in > * {
  opacity: 1;
  transform: none;
  transition:
    opacity 800ms var(--ease-out),
    transform 800ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .press {
  opacity: 0;
  transform: rotate(-9deg) scale(1.3);
}
.js .press.in {
  opacity: 0.85;
  transform: rotate(-9deg) scale(1);
  transition:
    opacity 260ms ease-out,
    transform 520ms var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] > * {
    opacity: 1;
    transform: none;
  }
  .js .press {
    opacity: 0.85;
    transform: rotate(-9deg);
  }
}

/* ---------- Narrow screens: their own composition ---------- */

@media (max-width: 68rem) {
  .cinema .wrap,
  .instrument,
  .creed,
  .page-head .wrap,
  .register-head,
  .method-intro,
  .lead,
  .faq,
  .split,
  .split-even,
  .featured {
    grid-template-columns: minmax(0, 1fr);
  }
  .cinema .seal-hero {
    display: none;
  }
  .cinema::before {
    background: linear-gradient(0deg, rgb(8 12 31 / 1) 0%, rgb(8 12 31 / 0.6) 60%, rgb(8 12 31 / 0.35) 100%); /* taste-skill-ignore: scrim under text on a photograph */
  }
  .page-head .seal-side {
    display: none;
  }
  .register a.entry {
    grid-template-columns: minmax(0, 1fr) 3rem;
  }
  .register a.entry > p,
  .register a.entry > ul {
    grid-column: 1;
  }
  .register a.entry > .go {
    grid-row: 1;
    grid-column: 2;
  }
  .register a.entry > ul {
    display: none;
  }
  .paths-photo figcaption {
    display: none; /* credited in the footer's picture credits */
  }
  .stages,
  .partner-row,
  .paths,
  .brief,
  .apply-grid,
  .chapter-body,
  .story,
  .timeline,
  .compass,
  .answers-split,
  .people-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .chapters-wrap {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 0;
  }
  .story-portrait,
  .answers-photo,
  .brief-card,
  .apply-intro {
    position: static;
  }
  .story-portrait {
    max-width: 16rem;
    order: 2;
  }
  .answers-photo img {
    aspect-ratio: 16 / 10;
  }
  .answers-photo figcaption {
    display: none; /* credited in the footer's picture credits */
  }
  .compass-side:last-child {
    text-align: left;
    justify-items: start;
  }
  .compass-seal {
    width: 7rem;
  }
  .timeline {
    padding-top: 0;
    padding-left: 2.75rem;
  }
  .timeline::before,
  .timeline::after {
    top: 0;
    bottom: 0;
    left: 0.55rem;
    right: auto;
    width: 0.3rem;
    height: auto;
  }
  .timeline::after {
    transform-origin: top;
  }
  .js .timeline::after {
    transform: scaleY(0);
  }
  .js .timeline.in::after {
    transform: scaleY(1);
  }
  .timeline li::before {
    top: 0.6rem;
    left: -2.75rem;
  }

  .chapter-index {
    display: none;
  }
  .chapter-inner {
    padding-inline: var(--gutter);
  }
  .stage-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stage-tab {
    padding: 1rem 1rem 1rem 1.25rem;
  }
  .stage-line {
    display: none;
  }
  .faq-head,
  .sticky {
    position: static;
  }
  .role-aside {
    order: 2;
  }
  .voices {
    grid-template-columns: minmax(0, 1fr);
  }
  .voice-list {
    order: -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .voice-tab {
    padding: 0.9rem 1rem;
  }
  .voice-matter,
  .voice-org {
    display: none;
  }
  .voice blockquote p {
    font-size: var(--size-lede);
  }
  .article {
    grid-template-columns: minmax(0, 1fr);
  }
  .article aside:last-child {
    display: none;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .featured .seal-img {
    display: none;
  }
  .lead-portrait {
    max-width: 18rem;
  }
}
@media (max-width: 68rem) {
  .undertaking {
    padding-top: 14rem;
  }
  .undertaking .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .deed {
    grid-column: 1;
  }
  .undertaking-photo {
    bottom: auto;
    height: 22rem;
  }
  .undertaking {
    background: var(--sand-100);
  }
  .undertaking-credit {
    display: none; /* credited in the footer's picture credits */
  }
  .deed-seal {
    top: -2.75rem;
    width: 5.5rem;
  }
  .deed-lead {
    padding-right: 0;
    padding-top: 1.25rem;
  }
}
@media (max-width: 30rem) {
  .deed-lead {
    font-size: 1.375rem;
  }
}
@media (max-width: 40rem) {
  .wordmark span {
    font-size: var(--size-body);
  }
  .wordmark small {
    display: none;
  }
  .wordmark svg {
    width: 2.25rem;
    height: 2.25rem;
  }
  .cinema {
    min-height: 44rem;
    padding-bottom: 7rem;
  }
  .cinema .photo-credit {
    display: none; /* credited in the footer's picture credits */
  }
  .matter {
    --overlap: 3rem;
  }
  .reading-list a {
    grid-template-columns: minmax(0, 1fr);
  }
  .reading-list .when {
    text-align: left;
    order: -1;
  }
  .role-board > li > a {
    grid-template-columns: minmax(0, 1fr) 3rem;
  }
  .role-board > li > a > :not(.role-go) {
    grid-column: 1;
  }
  .role-go {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }
  .path-list li,
  .general-sheet {
    grid-template-columns: minmax(0, 1fr);
  }
  .paths-photo img {
    aspect-ratio: 16 / 10;
  }
  .form .row,
  .values {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .partners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plate img {
    height: 22rem;
  }
}

@media print {
  .masthead,
  .site-footer,
  .matter {
    display: none;
  }
  body {
    background: #fff;
  }
}
