/* ============================================================
   Northgate Partners, concept site by Apex Quantum
   Art direction: institutional calm. Deep ink blue, bone, muted
   gold, slate. Cormorant Garamond display, Inter Tight text,
   monospace for every figure. Hairline rules do the structural
   work; nothing shouts.
   ============================================================ */

/* ---------- Typefaces (self-hosted, same origin) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-500-italic.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/inter-tight-300-normal.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/inter-tight-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/inter-tight-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/inter-tight-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink:       #0F1E33;
  --ink-deep:  #0A1524;
  --ink-mid:   #16273D;
  --ink-soft:  #1D3250;
  --bone:      #F4F0E8;
  --bone-dim:  #E7E1D5;
  --bone-warm: #FAF7F1;
  --gold:      #C9A961;   /* for ink grounds only */
  --gold-lt:   #E0C98A;
  --gold-deep: #7E5F18;   /* 5.2:1 on bone */
  --slate:     #4A5665;   /* 6.6:1 on bone */
  --slate-lt:  #9FB0C4;   /* 7.6:1 on ink */
  --blue-mid:  #5C7FA8;
  --blue-dp:   #3E5A7A;

  --serif: 'Cormorant Garamond', Constantia, 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --sans:  'Inter Tight', system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono:  ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Courier New', monospace;

  --text:   clamp(1rem, 0.955rem + 0.22vw, 1.09rem);
  --small:  clamp(0.83rem, 0.805rem + 0.12vw, 0.885rem);
  --micro:  0.72rem;
  --h1:     clamp(2.65rem, 1.35rem + 5.6vw, 5.4rem);
  --h2:     clamp(1.95rem, 1.25rem + 2.5vw, 3.3rem);
  --h3:     clamp(1.2rem, 1.08rem + 0.55vw, 1.5rem);
  --display: clamp(1.6rem, 1rem + 2.6vw, 2.6rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --wrap:   1320px;
  --pad:    clamp(2.75rem, 4.5vw, 4rem);

  /* theme defaults: bone ground */
  --bg: var(--bone);
  --fg: var(--ink);
  --fg-dim: var(--slate);
  --accent: var(--gold-deep);
  --rule: rgba(15, 30, 51, 0.16);
  --rule-soft: rgba(15, 30, 51, 0.09);
  --focus: var(--gold-deep);
}

.t-ink {
  --bg: var(--ink);
  --fg: var(--bone);
  --fg-dim: var(--slate-lt);
  --accent: var(--gold);
  --rule: rgba(244, 240, 232, 0.2);
  --rule-soft: rgba(244, 240, 232, 0.1);
  --focus: var(--gold);
}
.t-deep { --bg: var(--ink-deep); }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Smoothing lives in app.js, not here: a CSS scroll-behavior also
   smooths programmatic scrolls, which makes scripted screenshots
   catch the page mid-animation. */

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 500; font-family: var(--serif); line-height: 1.04; letter-spacing: -0.012em; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
svg { display: block; }
b, strong { font-weight: 600; }
em, i { font-style: italic; }

a { color: inherit; }
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}

.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.band { background: var(--bg); color: var(--fg); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* figures always tabular and monospaced */
.fig-num, .mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  letter-spacing: -0.01em;
}

/* small letterspaced label, used throughout as the structural voice */
.label {
  font-family: var(--sans);
  font-size: var(--micro);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: 50%; top: 0; z-index: 90;
  transform: translate(-50%, -120%);
  background: var(--bone); color: var(--ink);
  padding: 0.7rem 1.4rem; font-size: var(--small); font-weight: 500;
  text-decoration: none; border: 1px solid var(--ink);
}
.skip:focus { transform: translate(-50%, 0); }

/* ---------- Concept banner: sticky, never hidden ----------
   The chrome blocks below (banner, masthead, ledger strip, footer)
   each sit on an ink ground without carrying the .t-ink token block,
   so each one restates --focus. The bone-ground default (gold-deep)
   measures 2.5 to 3.1 : 1 on these grounds, under the 3:1 that
   WCAG 1.4.11 asks of a focus indicator; --gold is 6.7 to 8.2 : 1. */
.concept {
  position: sticky; top: 0; z-index: 60;
  background: var(--ink-deep);
  color: var(--bone);
  border-bottom: 1px solid rgba(201, 169, 97, 0.38);
  --focus: var(--gold);
}
.concept__inner {
  padding: 0.5rem 0;
  font-size: 0.775rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-align: center;
}
/* The disclaimer is never abbreviated by width: a third line on a
   phone is cheaper than a visitor who did not read the sentence. */
.concept__mark {
  font-family: var(--mono);
  margin-right: 0.5rem;
  white-space: nowrap;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.concept a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  font-weight: 500;
}
.concept a:hover { color: var(--gold-lt); }

/* ---------- Masthead ---------- */
.masthead {
  background: var(--ink);
  color: var(--bone);
  border-bottom: 1px solid rgba(244, 240, 232, 0.14);
  --focus: var(--gold);
}
/* Phones get the brand and the telephone number and nothing else.
   Five uppercase links wrapped into two ragged centred rows and pushed
   the headline to 341px, 40% of the first screen; the footer carries
   all seven section links for anyone who wants the list. From 48rem
   the five links fit on one line of their own, and from 64rem they sit
   on the same line as the brand. */
.masthead__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand tel";
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.95rem 0 0.9rem;
}
.masthead .brand { grid-area: brand; justify-self: start; }
.masthead .nav { grid-area: nav; }
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.brand__mark { width: 2.5rem; height: 2.5rem; flex: none; }
.brand__words { display: grid; gap: 0.12rem; }
.brand__name {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.42rem; line-height: 1;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bone);
}
.brand__sub {
  font-family: var(--sans); font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold);
}
.nav { display: none; }
.nav ul {
  display: flex; flex-wrap: wrap; justify-content: flex-end;
  gap: 0.1rem 0.35rem;
}
.nav a {
  display: block;
  padding: 0.3rem 0.55rem;
  font-size: 0.735rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--slate-lt);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.nav a:hover { color: var(--bone); }
.nav a[aria-current] { color: var(--gold); border-bottom-color: var(--gold); }
.masthead__tel {
  display: inline-block;
  padding: 0.4rem 0;                   /* 24px minimum target, SC 2.5.8 */
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.04em; color: var(--slate-lt);
  text-decoration: none;
  grid-area: tel;
  justify-self: end;
  font-variant-numeric: lining-nums tabular-nums;
}
.masthead__tel:hover { color: var(--gold); }
.masthead__tel span { color: var(--gold); }

@media (min-width: 48rem) {
  .masthead__inner {
    grid-template-areas: "brand tel" "nav nav";
    padding: 1.15rem 0 0.9rem;
    gap: 0.9rem 1rem;
  }
  .nav { display: block; }
  .nav ul { justify-content: flex-start; margin-left: -0.55rem; }
}
/* One line needs 888px of measure for brand, five links and the
   number. That arrives at 992px of viewport with 25px to spare, which
   is not enough if the webfont fails and a wider fallback is used, so
   the single row waits for 64rem. */
@media (min-width: 64rem) {
  .masthead__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav tel";
    align-items: center; justify-items: start;
    padding: 1.5rem 0 1.4rem;
    gap: 2rem;
  }
  .nav { justify-self: end; }
  .nav ul { justify-content: flex-end; margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.85rem, 3.25vw, 2.5rem);
}
.hero__guilloche {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(620px, 115vw, 1180px);
  height: auto;
  transform: translate(-18%, -52%);
  color: var(--gold);
  opacity: 0.1;
  pointer-events: none;
}
/* On a wide screen the engraving was parked behind the opaque Fig. 1
   plate, which left two stray arcs in the top corner and nothing else.
   It now sits behind the copy, with the plate overlapping it on
   purpose, which is how a banknote would be laid out. */
@media (min-width: 62rem) {
  .hero__guilloche {
    width: min(86vw, 1120px);
    transform: translate(-62%, -47%);
    opacity: 0.17;
  }
}
.hero__inner { position: relative; display: grid; gap: clamp(2.75rem, 5vw, 4rem); }
@media (min-width: 62rem) {
  .hero__inner { grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); align-items: center; gap: clamp(3rem, 5vw, 5.5rem); }
}
.hero__eyebrow { margin-bottom: 1.6rem; }
h1 {
  font-size: var(--h1);
  max-width: 17ch;
  margin-bottom: 1.5rem;
}
h1 em { color: var(--gold); font-style: italic; }
.hero__lead {
  font-size: clamp(1.06rem, 1rem + 0.42vw, 1.3rem);
  font-weight: 300;
  line-height: 1.62;
  max-width: 46ch;
  color: var(--bone);
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
  margin-top: 2.1rem;
}
/* Stacked, two buttons of different widths read as an accident.
   Below this width they share one edge. */
@media (max-width: 29.99rem) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; }
}
.btn {
  display: inline-block;
  padding: 0.82rem 1.6rem;
  font-size: var(--small); font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  color: var(--ink);
  background: var(--gold);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn:hover { background: var(--gold-lt); border-color: var(--gold-lt); }
.btn--ghost { background: transparent; color: var(--bone); border-color: rgba(244, 240, 232, 0.4); }
.btn--ghost:hover { background: rgba(244, 240, 232, 0.08); border-color: var(--bone); color: var(--bone); }

.hero__risk {
  margin-top: 2.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule-soft);
  font-size: var(--small);
  color: var(--slate-lt);
  max-width: 48ch;
}

/* ---------- Ledger strip ---------- */
.ledger {
  border-top: 1px solid rgba(244, 240, 232, 0.14);
  background: var(--ink-mid);
  color: var(--bone);
  --focus: var(--gold);
}
.ledger__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 52rem) { .ledger__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ledger__item {
  padding: 1.25rem clamp(0.5rem, 2vw, 1.75rem) 1.2rem 0;
  border-bottom: 1px solid rgba(244, 240, 232, 0.1);
}
@media (min-width: 52rem) { .ledger__item { border-bottom: 0; } }
.ledger__item + .ledger__item { padding-left: clamp(0.9rem, 2.5vw, 2rem); border-left: 1px solid rgba(244, 240, 232, 0.1); }
@media (max-width: 51.99rem) {
  .ledger__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .ledger__item:nth-last-child(-n+2) { border-bottom: 0; }
}
.ledger__k {
  font-family: var(--sans); font-size: var(--micro); font-weight: 500;
  letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--slate-lt);
  margin: 0 0 0.5rem;
}
/* This rule beats .fig-num on its own elements, so it has to carry the
   figure settings itself. Without lining numerals Cormorant sets
   "11 yrs" as two x-height strokes that read as lower-case L. */
.ledger__v {
  font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  line-height: 1.05; color: var(--gold); margin: 0;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}
.ledger__v small { display: block; font-family: var(--sans); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.02em; color: var(--slate-lt); margin-top: 0.4rem; line-height: 1.4; }

/* ---------- Section scaffolding ---------- */
.sec { position: relative; padding: var(--pad) 0; scroll-margin-top: 4.5rem; }
.sec:focus, #main:focus { outline: none; }
#main { scroll-margin-top: 4.5rem; }
.sec > .wrap { position: relative; z-index: 1; }
.ruled { border-top: 1px solid var(--rule-soft); }

.sec__head {
  display: grid; gap: 0.9rem;
  padding-bottom: clamp(1.4rem, 2.6vw, 2rem);
  margin-bottom: clamp(1.5rem, 2.6vw, 2rem);
  border-bottom: 1px solid var(--rule);
}
.sec__num {
  font-family: var(--mono); font-size: var(--micro);
  letter-spacing: 0.22em; color: var(--accent); margin: 0;
}
.sec__title { font-size: var(--h2); max-width: 24ch; }
.sec__title em { font-style: italic; color: var(--accent); }
.sec__stand {
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.2rem);
  font-weight: 300; line-height: 1.6;
  color: var(--fg-dim); max-width: 44ch; margin: 0.35rem 0 0;
}
@media (min-width: 62rem) {
  .sec__head {
    grid-template-columns: 7.5rem minmax(0, 30ch) minmax(0, 1fr);
    align-items: start; gap: 0 clamp(2rem, 4vw, 4rem);
  }
  .sec__num { grid-row: 1; padding-top: 0.75rem; }
  .sec__stand { margin-top: 0.4rem; max-width: 42ch; }
}

.prose { max-width: 63ch; }
.prose p { line-height: 1.74; }
.prose p + p { margin-top: 0; }

/* ---------- Tenets: numeral gutter + marginalia ---------- */
.tenets { display: grid; }
.tenet {
  display: grid; gap: 0.75rem;
  padding: clamp(1.4rem, 2.4vw, 1.8rem) 0;
  border-top: 1px solid var(--rule-soft);
}
.tenet:first-child { border-top: 0; padding-top: 0; }
.tenet:last-child { padding-bottom: 0; }
.tenet__num {
  font-family: var(--serif); font-size: 1.35rem; font-style: italic;
  color: var(--accent); margin: 0; line-height: 1;
}
.tenet h3 { font-size: var(--h3); margin-bottom: 0.7rem; max-width: 30ch; }
.tenet__body { max-width: 62ch; }
.tenet__note {
  margin-top: 0.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule-soft);
  font-size: var(--small);
  line-height: 1.62;
  color: var(--fg-dim);
  max-width: 44ch;
}
.tenet__note b { color: var(--fg); font-weight: 500; }
@media (min-width: 62rem) {
  .tenet { grid-template-columns: 7.5rem minmax(0, 62ch) minmax(0, 1fr); gap: 0 clamp(2rem, 4vw, 4rem); }
  .tenet__num { padding-top: 0.35rem; }
  .tenet__note {
    margin: 0; padding: 0 0 0 1.5rem;
    border-top: 0; border-left: 1px solid var(--rule);
    align-self: start;
    font-family: var(--sans);
  }
}

/* ---------- Plates (hand-drawn figures) ---------- */
.plate {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  border: 1px solid rgba(201, 169, 97, 0.3);
  padding: clamp(1.15rem, 2.6vw, 1.9rem);
}
.t-ink .plate { background: var(--ink-mid); }
.plate__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.9rem;
  padding-bottom: 0.9rem; margin-bottom: 1.1rem;
  border-bottom: 1px solid rgba(244, 240, 232, 0.14);
}
.plate__fig {
  font-family: var(--mono); font-size: var(--micro);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin: 0; flex: none;
}
.plate__title {
  font-family: var(--serif); font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.12; margin: 0; color: var(--bone);
}
.plate__sub { font-size: var(--small); color: var(--slate-lt); margin: 0.55rem 0 1.1rem; max-width: 50ch; }
.plate__canvas { position: relative; }
.plate__cap {
  margin-top: 1.1rem; padding-top: 0.9rem;
  border-top: 1px solid rgba(244, 240, 232, 0.14);
  font-size: 0.78rem; line-height: 1.6; color: var(--slate-lt);
}
.plate__cap b { color: var(--gold); font-weight: 500; letter-spacing: 0.02em; }

/* chart typography inside the SVGs */
.c-axis { fill: #9FB0C4; font-family: 'Inter Tight', system-ui, sans-serif; font-size: 13px; letter-spacing: 0.08em; }
.c-note { fill: #C9A961; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; letter-spacing: 0.04em; }
.c-grid { stroke: rgba(244, 240, 232, 0.14); stroke-width: 1; }
.c-axisline { stroke: rgba(244, 240, 232, 0.34); stroke-width: 1; }
.c-band { fill: rgba(201, 169, 97, 0.07); }
.c-area { fill: url(#ng-area); }
.c-line-a { fill: none; stroke: #C9A961; stroke-width: 2.6; stroke-linecap: round; }
.c-line-b { fill: none; stroke: #9FB0C4; stroke-width: 1.8; stroke-dasharray: 920; stroke-linecap: round; }
.c-dot-a { fill: #C9A961; }
.c-dot-b { fill: #9FB0C4; }

/* the draw-in: base state is the finished line, the animation only
   plays the introduction, so killing animation never hides a chart */
.c-line-a { stroke-dasharray: 920; stroke-dashoffset: 0; }
.c-line-b { stroke-dasharray: 810; stroke-dashoffset: 0; }
.reveal.is-in .c-line-a { animation: ng-draw-a 2.1s cubic-bezier(0.25, 0.1, 0.25, 1); }
.reveal.is-in .c-line-b { animation: ng-draw-b 2.1s cubic-bezier(0.25, 0.1, 0.25, 1) 0.18s backwards; }
@keyframes ng-draw-a { from { stroke-dashoffset: 920; } }
@keyframes ng-draw-b { from { stroke-dashoffset: 810; } }

/* ---------- Allocation donut ---------- */
.alloc { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; }
@media (min-width: 34rem) { .alloc { grid-template-columns: minmax(160px, 16.5rem) minmax(0, 1fr); } }
.donut { width: 100%; height: auto; }
.donut__seg {
  fill: none; stroke-width: 15;
  transition: opacity 0.4s ease, stroke-width 0.4s ease;
}
/* Six steps that actually read as six. The ring alternates warm, cool,
   warm, cool, so no two neighbours differ by hue alone or by less than
   1.36 : 1, and every segment clears 3:1 against the plate ground
   (#0F1E33): gold 7.4, #6E8CB0 4.8, #E0C98A 10.3, #9FB0C4 7.6,
   bone 14.9, #5C7FA8 4.0. The deep #3E5A7A this replaces measured
   2.35:1, so the slice could not be told from the gap around it. */
.sg-1 { stroke: #C9A961; }   /* global equities      */
.sg-2 { stroke: #6E8CB0; }   /* UK equities          */
.sg-3 { stroke: #E0C98A; }   /* index-linked gilts   */
.sg-4 { stroke: #9FB0C4; }   /* investment-grade     */
.sg-5 { stroke: #F4F0E8; }   /* listed infrastructure*/
.sg-6 { stroke: #5C7FA8; }   /* cash and near cash   */

/* Hovering a legend row lifts its slice out of the ring. Nothing is
   dimmed: fading the other five to 0.22 took them to under 2:1 and
   turned the whole chart into dark shapes, which is a worse chart than
   no interaction at all. The hovered slice grows instead, and every
   row carries its own figure, so nothing here is colour alone. */
.alloc:has(.legend__row:nth-child(1):hover) .donut__seg:nth-child(1),
.alloc:has(.legend__row:nth-child(2):hover) .donut__seg:nth-child(2),
.alloc:has(.legend__row:nth-child(3):hover) .donut__seg:nth-child(3),
.alloc:has(.legend__row:nth-child(4):hover) .donut__seg:nth-child(4),
.alloc:has(.legend__row:nth-child(5):hover) .donut__seg:nth-child(5),
.alloc:has(.legend__row:nth-child(6):hover) .donut__seg:nth-child(6) { stroke-width: 22; }
.donut__ring { fill: none; stroke: rgba(244, 240, 232, 0.12); stroke-width: 1; }
.donut__cx { fill: #F4F0E8; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 25px; }
.donut__cs { fill: #9FB0C4; font-family: ui-monospace, Consolas, monospace; font-size: 11px; letter-spacing: 0.18em; }

.legend { display: grid; }
.legend__row {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr) auto;
  align-items: baseline; gap: 0 0.75rem;
  padding: 0.52rem 0;
  color: var(--slate-lt);
  border-top: 1px solid rgba(244, 240, 232, 0.12);
  transition: color 0.3s ease;
}
.legend__row:first-child { border-top: 0; }
.legend__row:hover { color: var(--bone); }
/* A bar, not a dot: twice the colour area and a long edge to compare
   against the row above, which is what tells two warm tones apart at
   this size. It also matches the rule swatches on Fig. 1. */
.legend__sw {
  width: 1.1rem; height: 0.38rem; border-radius: 1px;
  align-self: center; display: block;
}
.legend--lines { margin-top: 1rem; }
.legend--lines .legend__row { grid-template-columns: 1.75rem minmax(0, 1fr); align-items: center; }
.legend__rule { height: 2px; width: 1.75rem; display: block; border-radius: 1px; }
.lr-a { background: #C9A961; height: 2.5px; }
.lr-b { background: #9FB0C4; }

.sw-1 { background: #C9A961; }
.sw-2 { background: #6E8CB0; }
.sw-3 { background: #E0C98A; }
.sw-4 { background: #9FB0C4; }
.sw-5 { background: #F4F0E8; }
.sw-6 { background: #5C7FA8; }
.legend__name { font-size: var(--small); line-height: 1.35; }
.legend__pct {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: var(--small); color: var(--gold);
}
.legend__total {
  display: grid; grid-template-columns: 1.1rem minmax(0, 1fr) auto; gap: 0 0.75rem;
  padding: 0.6rem 0 0; margin-top: 0.1rem;
  border-top: 1px solid rgba(201, 169, 97, 0.34);
  font-size: var(--micro); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--slate-lt);
}
.legend__total .legend__pct { font-size: var(--small); letter-spacing: 0; }

/* ---------- Approach: two column + process ---------- */
.split { display: grid; gap: clamp(2.25rem, 4vw, 3.5rem); }
@media (min-width: 64rem) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); align-items: start; } }
.split > div > .note-block:first-child { margin-top: 0; }

.steps { display: grid; margin-top: 0.4rem; }
.step {
  display: grid; gap: 0.3rem 1.35rem;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule-soft);
}
.step:first-child { border-top: 1px solid var(--rule); }
.step__n { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); margin: 0; padding-top: 0.28rem; }
.step h3 { font-size: 1.12rem; letter-spacing: -0.005em; }
.step p { font-size: var(--small); color: var(--fg-dim); margin: 0.4rem 0 0; max-width: 56ch; }

.note-block {
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--rule);
}
.note-block h3 { font-size: var(--h3); margin-bottom: 0.8rem; max-width: 24ch; }
.note-block p { font-size: var(--small); color: var(--fg-dim); max-width: 56ch; line-height: 1.68; }

/* These were boxed, which made six statements look like six buttons
   on a page where the real buttons are also 1px boxes. They are a
   ruled list now, crossed through, and they cannot be mistaken for
   anything clickable. The crosses answer the ticks in section 04. */
.refuse { margin-top: clamp(1.75rem, 3vw, 2.25rem); }
.refuse h3 { font-size: var(--h3); margin-bottom: 1rem; }
.chips { display: grid; border-top: 1px solid var(--rule); }
@media (min-width: 40rem) {
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.25rem, 3vw, 2.25rem); }
}
.chips li {
  display: grid; grid-template-columns: 1rem minmax(0, 1fr); gap: 0 0.65rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: var(--small); line-height: 1.5;
  color: var(--fg-dim);
}
.chips svg { width: 0.72rem; height: 0.72rem; margin-top: 0.42rem; color: var(--accent); }

/* ---------- Client cards ---------- */
.cards { display: grid; gap: 0; }
@media (min-width: 48rem) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 48rem) {
  .card { padding: clamp(1.75rem, 2.5vw, 2.25rem) clamp(1.25rem, 2.5vw, 2rem) 2rem 0; }
  .card + .card { border-left: 1px solid var(--rule-soft); padding-left: clamp(1.25rem, 2.5vw, 2rem); }
}
.card__n { font-family: var(--mono); font-size: var(--micro); letter-spacing: 0.2em; color: var(--accent); margin: 0 0 0.9rem; }
.card h3 { font-size: var(--h3); margin-bottom: 0.85rem; }
.card p { font-size: var(--small); color: var(--fg-dim); line-height: 1.68; }
.card__q {
  margin: 1.1rem 0 0; padding-top: 0.9rem;
  margin-top: auto;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--serif); font-style: italic;
  font-size: 1.02rem; line-height: 1.45; color: var(--fg);
}
.minimum {
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: grid; gap: 1rem;
}
@media (min-width: 62rem) {
  .minimum { grid-template-columns: 7.5rem minmax(0, 54ch) minmax(0, 1fr); gap: 0 clamp(2rem, 4vw, 4rem); align-items: start; }
}
.minimum p { color: var(--fg-dim); max-width: 58ch; }
.minimum p b { color: var(--fg); }
/* The last sentence of that paragraph, pulled out: it is the point of
   the block, and it fills the half-width of navy the block used to
   stop in the middle of. */
.minimum p.minimum__pull {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.05rem + 0.85vw, 1.7rem);
  line-height: 1.26; letter-spacing: -0.01em;
  color: var(--fg); max-width: 30ch;
}
@media (min-width: 62rem) {
  .minimum p.minimum__pull { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
}

/* ---------- Fees ---------- */
.fees { display: grid; gap: clamp(2.25rem, 4vw, 3.5rem); }
@media (min-width: 64rem) { .fees { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: start; } }
.rate { width: 100%; border-collapse: collapse; table-layout: fixed; }
.rate caption {
  text-align: left; padding-bottom: 0.9rem;
  font-size: var(--small); color: var(--fg-dim);
}
.rate th, .rate td {
  padding: 0.85rem 0.5rem 0.85rem 0;
  border-bottom: 1px solid var(--rule-soft);
  text-align: left; vertical-align: baseline;
}
.rate thead th {
  font-size: var(--micro); font-weight: 500;
  letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
}
.rate tbody th { font-weight: 400; font-size: var(--text); }
.rate td {
  text-align: right; padding-right: 0;
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 1.1rem; color: var(--fg);
}
.rate thead th:last-child { text-align: right; padding-right: 0; }
.rate tbody tr:last-child th, .rate tbody tr:last-child td { border-bottom: 1px solid var(--rule); }

.worked {
  margin-top: 1.6rem; padding: 1.35rem 1.5rem;
  background: var(--bone-warm);
  border-left: 2px solid var(--gold-deep);
}
.t-ink .worked { background: var(--ink-mid); border-left-color: var(--gold); }
.worked p { font-size: var(--small); color: var(--fg-dim); }
.worked .fig-num { color: var(--fg); font-size: 1.02rem; }
.worked__h { font-size: var(--micro); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.7rem; font-weight: 500; }

.fees__intro { font-size: var(--small); color: var(--fg-dim); margin: 0 0 0.9rem; }
.colhead {
  font-family: var(--sans); font-size: var(--micro); font-weight: 500;
  letter-spacing: 0.17em; text-transform: uppercase; color: var(--accent);
  padding: 0 0 0.85rem; margin: 0;
  border-bottom: 1px solid var(--rule);
  line-height: 1.5;
}
.colhead + .deflist > div:first-child { border-top: 0; }
.deflist { display: grid; }
.deflist > div {
  display: grid; gap: 0.3rem;
  padding: 0.9rem 0; border-top: 1px solid var(--rule-soft);
}
.deflist > div:first-child { border-top: 1px solid var(--rule); }
.deflist dt { font-size: var(--text); font-weight: 500; }
.deflist dd { margin: 0; font-size: var(--small); color: var(--fg-dim); max-width: 56ch; }
/* The strongest block in this section, so it runs the full measure
   under both columns rather than hanging off the bottom of the right
   one and leaving a quarter of the section empty on the left. */
.never {
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--rule);
}
@media (min-width: 64rem) {
  .never { grid-column: 1 / -1; }
  .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.75rem, 4vw, 3.5rem); }
}
.never h3 { font-size: var(--h3); margin-bottom: 1rem; }
.ticks { display: grid; gap: 0.55rem; }
.ticks li {
  display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: 0.6rem;
  font-size: var(--small); color: var(--fg-dim);
}
.ticks svg { width: 0.85rem; height: 0.85rem; margin-top: 0.42rem; color: var(--accent); flex: none; }

/* ---------- Standards ---------- */
.ledgers { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 52rem) { .ledgers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); } }
.ledgers h3 {
  font-family: var(--sans); font-size: var(--micro); font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.9rem; margin-bottom: 0.2rem;
  border-bottom: 1px solid var(--rule);
  line-height: 1.5;
}
.ledgers ul li {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: var(--small); line-height: 1.66;
  color: var(--fg-dim);
}
.ledgers ul li b { color: var(--fg); font-weight: 500; }

/* The closing spread. The testimonial and the disclosure used to be
   stacked, which left a 700px hole of bone beside the quote and made
   the disclosure the largest empty rectangle on the page. Side by side
   they answer each other: an invented client, and a list of every
   credential this firm does not have. */
.closing {
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  padding-top: clamp(1.6rem, 2.8vw, 2rem);
  border-top: 1px solid var(--rule);
  display: grid; gap: clamp(2rem, 3.5vw, 2.75rem);
}
@media (min-width: 68rem) {
  .closing {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr);
    align-items: start; gap: clamp(2.5rem, 4vw, 3.5rem);
  }
}
.quote { margin: 0; display: grid; gap: 1.1rem; }
/* The hanging label only earns its 7.5rem gutter while the quote has
   the full page width. Inside the two-column spread the label sits
   above the quote and the quote keeps the measure. */
@media (min-width: 62rem) and (max-width: 67.99rem) {
  .quote { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0 clamp(2rem, 4vw, 4rem); }
}
.quote blockquote {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: var(--display); line-height: 1.26;
  letter-spacing: -0.012em;
}
/* Same measure as the quote above it. A 42ch Inter caption under a
   30ch Cormorant quote is two different column widths, which rags. */
.quote figcaption { margin-top: 1.2rem; font-size: var(--small); color: var(--fg-dim); }
.quote .label { margin: 0; }

.disclosure {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--rule);
  background: var(--bone-warm);
  display: grid; gap: clamp(1.25rem, 2.5vw, 1.6rem);
  align-content: start;
}
/* Its own content splits from tablet up: the prose on the left, and on
   the right the list of what this firm has, which is what turns the
   empty half of the panel into the point of the panel. */
@media (min-width: 46rem) {
  .disclosure {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: start; gap: clamp(1.5rem, 3vw, 2.5rem);
  }
}
.t-ink .disclosure { background: rgba(244, 240, 232, 0.04); }
.disclosure h3 { font-size: var(--h3); margin-bottom: 0.9rem; }
.disclosure p { font-size: var(--small); color: var(--fg-dim); max-width: 64ch; }
.disclosure a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.absent { display: grid; align-content: start; }
.absent .label { margin-bottom: 0.55rem; }
.absent__list > div {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 1rem; align-items: baseline;
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule-soft);
}
.absent__list > div:first-of-type { border-top: 1px solid var(--rule); }
.absent__list dt { display: flex; align-items: baseline; gap: 0.55rem; font-size: var(--small); line-height: 1.45; }
.absent__list dt svg { width: 0.66rem; height: 0.66rem; flex: none; color: var(--accent); transform: translateY(0.14rem); }
.absent__list dd {
  margin: 0; font-family: var(--mono); font-size: var(--micro);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}

/* ---------- About ---------- */
.people { display: grid; margin-top: 0.4rem; }
.people > div {
  display: grid; gap: 0.2rem 1.5rem;
  padding: 1.05rem 0; border-top: 1px solid var(--rule-soft);
}
.people > div:first-child { border-top: 1px solid var(--rule); }
@media (min-width: 40rem) { .people > div { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); align-items: baseline; } }
.people dt { font-size: var(--text); font-weight: 500; }
.people dd { margin: 0; font-size: var(--small); color: var(--fg-dim); }
/* Section 05 labels its testimonial as invented. Section 06 has to
   hold itself to the same standard. */
.people__note {
  margin: 0; padding-top: 0.85rem;
  border-top: 1px solid var(--rule-soft);
  font-size: var(--small); color: var(--fg-dim);
}

/* ---------- Contact ---------- */
#contact { position: relative; overflow: hidden; }
/* Previously anchored at left:-7%, bottom:-34%, which put one quadrant
   of a rosette on screen and read as an offcut. It is now a whole
   ornament, centred behind the contact column. */
.contact__guilloche { display: none; }
@media (min-width: 48rem) {
  .contact__guilloche {
    display: block; position: absolute;
    left: 50%; top: 50%;
    width: min(54vw, 560px); height: auto;
    transform: translate(-50%, -44%);
    color: var(--gold); opacity: 0.12; pointer-events: none;
  }
}
@media (min-width: 62rem) {
  .contact__guilloche { left: 26%; transform: translate(-50%, -42%); opacity: 0.15; }
}
.contact { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 62rem) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.reach { display: grid; gap: 1.75rem; }
.reach__item { display: grid; gap: 0.5rem; }
.reach a {
  font-family: var(--serif); font-size: var(--display);
  line-height: 1.1; letter-spacing: -0.01em;
  color: var(--bone); text-decoration: none;
  border-bottom: 1px solid rgba(201, 169, 97, 0.45);
  padding-bottom: 0.12rem;
  display: inline-block;
  overflow-wrap: anywhere;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.reach a:hover { color: var(--gold); border-bottom-color: var(--gold); }
/* The telephone number is the one string on the page a visitor might
   copy down. Cormorant sets figures old-style by default, so the zeros
   sat at x-height and the 7 descended; lining numerals keep the face
   and the size, which hold the pairing with the email below it, and
   make the number legible at a glance. Same treatment as the ledger. */
.reach a.fig-num {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
  letter-spacing: 0.012em;
}
.hours { margin-top: 0.4rem; }
.hours p { font-size: var(--small); color: var(--fg-dim); }
.hours .fig-num { color: var(--fg); }
.noform {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid rgba(201, 169, 97, 0.3);
  background: rgba(244, 240, 232, 0.035);
}
.noform .label { margin-bottom: 0.8rem; }
.noform p { font-size: var(--small); color: var(--fg-dim); max-width: 54ch; }
.noform p b { color: var(--fg); font-weight: 500; }

/* ---------- Footer ---------- */
.foot {
  background: var(--ink-deep); color: var(--slate-lt);
  padding: clamp(2.25rem, 4vw, 3.25rem) 0 2rem;
  border-top: 1px solid rgba(244, 240, 232, 0.12);
  --focus: var(--gold);
}
.foot__top {
  display: grid; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(244, 240, 232, 0.12);
}
@media (min-width: 52rem) { .foot__top { grid-template-columns: auto 1fr; align-items: start; gap: 3rem; } }
/* 17px tall links 5.6px apart failed SC 2.5.8 on a phone: 24px target
   circles on two wrapped rows intersected, which the spacing exception
   does not forgive. Padding and a wider row gap fix it. */
.foot nav ul { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
@media (min-width: 52rem) { .foot nav { justify-self: end; } .foot nav ul { justify-content: flex-end; } }
.foot nav a {
  display: inline-block;
  padding: 0.35rem 0;
  font-size: var(--small); color: var(--slate-lt); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.foot nav a:hover { color: var(--bone); border-bottom-color: rgba(201, 169, 97, 0.6); }
.foot__legal { display: grid; gap: 1rem; padding-top: 1.75rem; font-size: 0.79rem; line-height: 1.62; }
@media (min-width: 62rem) { .foot__legal { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem; } }
.foot__legal p { margin: 0; max-width: 64ch; }
.foot__legal a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.foot__rule { color: var(--bone); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Stagger the groups that actually have siblings. The old
   .reveal:nth-child(2) landed on whatever happened to be the second
   child of its parent, which was the hero plate and the middle card,
   so a row of three animated 1 and 3 together and then 2. */
.js .tenets .reveal:nth-child(2),
.js .cards .reveal:nth-child(2) { transition-delay: 0.07s; }
.js .tenets .reveal:nth-child(3),
.js .cards .reveal:nth-child(3) { transition-delay: 0.14s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal.is-in .c-line-a, .reveal.is-in .c-line-b { animation: none; }
  .donut__seg { transition: none; }
}
