/* ============================================================
   Black Women's Wealth Lab® — Institutional Design System
   Approved by Cynthia, 2026-11-05 (PR #376).

   HOW THIS IS LOADED, AND WHY IT IS NOT IN styles.css
   ------------------------------------------------------------
   This sheet restyles bare elements (html, body, a, h1-h4, p,
   figure, figcaption, fieldset, legend). Appending it to
   src/assets/styles.css would restyle all 84 pages at once,
   including the paid conversion paths, in a single commit that
   could not be reviewed page by page.

   So it is a separate sheet and a page opts in:

       system: true        in the page's front matter

   tools/build-site.py then emits the link after /styles.css, so
   the system wins on the pages that ask for it and no other page
   changes by one pixel. A page is migrated by rebuilding its
   markup on the kit and adding that one line.

   When every page carries the flag, this sheet and styles.css
   are merged and the flag is removed. Not before.

   The palette is the one in src/assets/styles.css and in
   CLAUDE.md rule 27. Layer A renames those same values into a
   scale; it introduces no new pigment, only three documented
   tints (--paper-200, --gold-40, --clay-20).
   ============================================================ */

/* ============================================================
   Black Women's Wealth Lab® — Institutional Design System
   Layer 1 of 2: TOKENS
   ------------------------------------------------------------
   Two-layer model, after the reference site's method:

     Layer A  BRAND     the palette, the four faces, the raw scale.
                        Named for what it is. Changed almost never.
     Layer B  SEMANTIC  what a thing is FOR: surface, text, border,
                        button, table, field. Components reference
                        only this layer.

   The rule that holds the institution together: no component
   declares a brand value. A component that needs a colour asks
   for a role (--text-secondary), not a pigment (--navy-600).
   A new page cannot drift, because there is nothing to drift to.

   Re-skinned 2026-11-11 to the Ledgerscope Midnight scheme
   (docs/decisions/2026-11-11-ledgerscope-reskin.md). Names are
   kept; values match src/assets/styles.css. The contrast record
   below is the 2026-11-05 record, superseded by that decision.
   ============================================================ */

:root {

  /* ========================================================
     LAYER A — BRAND
     ======================================================== */

  /* --- Navy. One ink. Every dark on the site is this hue. --- */
  --navy-900:  #28334c;   /* footer, deepest band (Midnight)      */
  --navy-800:  #28304a;   /* primary ink, primary fill           */
  --navy-600:  #545f75;   /* secondary ink                       */
  --navy-300:  #d1daed;   /* de-emphasised type on navy only     */

  /* --- Paper. The warm ground. --- */
  --paper-000: #fafbfe;   /* raised surface: cards, panels       */
  --paper-100: #f1f3f8;   /* page ground                         */
  --paper-200: #e8ecf4;   /* sunk surface: inset, table stripe   */
  --paper-rule:#c5ccdc;   /* hairline                            */

  /* --- Gold. Structural only. Never body type on paper. ----- */
  --gold-100:  #9a7130;   /* rules, marks, focus ring            */
  --gold-40:   #e7d1a4;
  --gold-20:   #e0e6f2;   /* tint band, table row (Midnight tint) */

  /* --- Clay. The one editorial accent, and all error state. -- */
  --clay-100:  #864f3b;
  --clay-20:   #e5d9d1;

  /* --- Alpha derivations (keep the warm hue, no new pigment) - */
  --ink-a08:   rgba(40, 48, 74, .08);
  --ink-a14:   rgba(40, 48, 74, .14);
  --ink-a28:   rgba(40, 48, 74, .28);
  --paper-a18: rgba(241, 243, 248, .18);
  --paper-a60: rgba(241, 243, 248, .60);
  --navy-scrim:rgba(40, 51, 76, .58);   /* over photography      */
  --navy-glass:rgba(40, 51, 76, .82);   /* frosted panel on media*/

  /* --- Two faces, self-hosted (Ledgerscope, 2026-11-11). ---- */
  --face-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --face-body:    'Source Serif 4', Georgia, 'Times New Roman', serif;
  --face-ui:      'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --face-mono:    ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* --- Type scale. Every size on the site is one of these. --- */
  /* Display — Orpheus Pro 400, tracking -.02em                  */
  --t-d1:      clamp(2.9rem, 5.6vw, 4.9rem);   /* page opener    */
  --t-d1-lh:   1.04;
  --t-d2:      clamp(2rem, 3.4vw, 3.1rem);     /* section head   */
  --t-d2-lh:   1.08;
  --t-d3:      clamp(1.7rem, 2.2vw, 2.1rem);   /* sub-section    */
  --t-d3-lh:   1.12;
  --t-d4:      1.625rem;                        /* card title     */
  --t-d4-lh:   1.15;
  --t-d5:      1.25rem;                         /* small card     */
  --t-d5-lh:   1.2;
  --t-figure:  clamp(3rem, 5.2vw, 4.5rem);      /* the number     */
  --t-figure-lh: 1.02;
  --t-track-display: -.02em;

  /* Body — Minion 3                                              */
  --t-lede:    clamp(1.18rem, 1.6vw, 1.4rem);
  --t-lede-lh: 1.5;
  --t-body:    1.125rem;    /* 18px */
  --t-body-lh: 1.6;
  --t-small:   1rem;
  --t-small-lh:1.55;

  /* Interface — Freight Sans Pro / IBM Plex Mono                 */
  --t-nav:     .9rem;
  --t-button:  .95rem;
  --t-meta:    .85rem;      /* captions, dates, notes             */
  --t-tag:     .78rem;      /* uppercase meta tag, 600            */
  --t-tag-track: .08em;
  --t-eyebrow: .72rem;      /* mono, uppercase                    */
  --t-eyebrow-track: .16em;

  /* --- Measure. A line of text is never wider than these. ---- */
  --measure-head:  19ch;
  --measure-lede:  62ch;
  --measure-text:  68ch;
  --measure-note:  58ch;

  /* --- Space scale. ----------------------------------------- */
  --s-1:  .25rem;   --s-2:  .5rem;    --s-3:  .75rem;   --s-4:  1rem;
  --s-5:  1.25rem;  --s-6:  1.5rem;   --s-8:  2rem;     --s-10: 2.5rem;
  --s-12: 3rem;     --s-14: 3.5rem;   --s-16: 4rem;     --s-20: 5rem;
  --s-24: 6rem;     --s-30: 7.5rem;   --s-36: 9rem;     --s-48: 12rem;

  /* --- Block rhythm. A section's vertical space is one of      */
  /*     exactly four values. This is the single strongest       */
  /*     consistency device on the reference site.               */
  --block-none:    0;
  --block-tight:   var(--s-16);   /*  64px — inside a sequence   */
  --block:         var(--s-24);   /*  96px — the default         */
  --block-large:   var(--s-36);   /* 144px — a page's turn       */

  /* --- Grid. 12 columns on a 1376px frame. ------------------- */
  --grid-columns: 12;
  --grid-gap:     2rem;
  --frame-max:    1376px;
  --frame-gutter: 1rem;
  --header-h:     92px;

  /* --- Image ratios. No image uses a ratio not named here. --- */
  --ratio-hero:     16 / 9;
  --ratio-wide:     16 / 9;   /* article, insight, event card    */
  --ratio-feature:   3 / 2;   /* room, document, environment     */
  --ratio-portrait:  4 / 5;   /* a person                        */
  --ratio-square:    1 / 1;   /* author, headshot chip           */
  --ratio-band:     23 / 8;   /* opener banner, capped at 480px  */

  /* --- Motion. The layer the site is missing. ---------------- */
  --motion-short:   300ms;
  --motion-medium:  600ms;
  --motion-long:    900ms;
  --ease-out:       cubic-bezier(.33, 1, .68, 1);
  --reveal-rise:    1.5rem;
  --reveal-stagger: 80ms;

  /* --- Elevation. There is none. Depth is rule and surface. -- */
  --radius: 5px;        /* fields and panels (Ledgerscope, 2026-11-11) */
  --radius-pill: 30px;  /* buttons: the Ledgerscope pill */


  /* ========================================================
     LAYER B — SEMANTIC
     Components use only these.
     ======================================================== */

  /* Surfaces */
  --surface-page:     var(--paper-100);
  --surface-raised:   var(--paper-000);
  --surface-sunk:     var(--paper-200);
  --surface-tint:     var(--gold-20);
  --surface-dark:     var(--navy-800);
  --surface-deep:     var(--navy-900);
  --surface-glass:    var(--navy-glass);

  /* Text on light */
  --text-primary:     var(--navy-800);
  --text-secondary:   var(--navy-600);
  --text-accent:      var(--clay-100);   /* eyebrow, pull quote  */
  --text-link:        var(--navy-800);

  /* Text on dark */
  --text-on-dark:            var(--paper-100);
  --text-on-dark-secondary:  var(--navy-300);
  --text-on-dark-accent:     #dbbe81;   /* champagne, 7:1 on navy-900 */

  /* Borders */
  --border-hairline:  var(--paper-rule);
  --border-strong:    var(--ink-a28);
  --border-head:      var(--navy-800);   /* above a table head   */
  --border-on-dark:   var(--paper-a18);
  --border-accent:    var(--gold-100);   /* 2px marker rule      */

  /* Buttons */
  --button-fill-bg:          #dbbe81;   /* champagne, Ledgerscope 2026-11-11 */
  --button-fill-text:        var(--navy-800);
  --button-fill-bg-hover:    #f5e6c4;
  --button-outline-border:   var(--navy-800);
  --button-outline-text:     var(--navy-800);
  --button-outline-bg-hover: var(--ink-a08);
  --button-on-dark-bg:       #dbbe81;
  --button-on-dark-text:     var(--navy-800);

  /* Fields */
  --field-bg:         var(--paper-000);
  --field-border:     var(--ink-a28);
  --field-border-focus: var(--navy-800);
  --field-text:       var(--navy-800);
  --field-placeholder:var(--navy-600);
  --field-error:      var(--clay-100);

  /* Tables */
  --table-head-text:   var(--navy-800);
  --table-head-border: var(--navy-800);
  --table-row-stripe:  var(--gold-20);
  --table-row-border:  var(--paper-rule);

  /* Focus. WCAG 2.2: visible on every control. */
  --focus-ring:        3px solid var(--gold-100);
  --focus-offset:      3px;
}

@media (min-width: 768px) {
  :root { --frame-gutter: 2rem; }
}

/* Reduced motion: the system has one reveal, and it stops here. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-short: 1ms; --motion-medium: 1ms; --motion-long: 1ms;
    --reveal-rise: 0; --reveal-stagger: 0ms;
  }
}

/* ============================================================
   CONTRAST RECORD (WCAG 2.2 AA, measured, not assumed)

   navy-800 on paper-100 ............ 14.46 : 1   pass
   navy-600 on paper-100 ............  8.94 : 1   pass
   clay-100 on paper-100 ............  5.95 : 1   pass
   gold-100 on paper-100 ............  2.83 : 1   FAIL  — see note
   paper-100 on navy-900 ............ 15.97 : 1   pass
   gold-100 on navy-900 .............  5.64 : 1   pass
   navy-300 on navy-900 .............  9.62 : 1   pass

   NOTE ON GOLD. Gold type on paper fails AA at 2.83:1, and it
   fails the 3:1 floor for large text and UI boundaries too. The
   live site currently sets the .eyebrow in gold on paper at
   .72rem. This system corrects that and in doing so enforces the
   brand brief's own rule, "gold is structural only, never type":

     on paper  gold draws RULES AND MARKS ONLY: the 2px section
               marker, the card's top rule, the monogram. It sets
               no character a reader has to read, numerals in a
               register and price labels included.
     on navy   gold may set words. 5.64:1 clears AA.
     on media  neither. Text over photography takes paper and
               relies on the scrim, which is measured.

   So on paper the eyebrow, the register counter and the price
   label are all clay-100 (5.95:1); on navy all three are
   gold-100 (5.64:1). Audited across all seven pages: every text
   node meets AA. See section 13b of system.css, which names
   every dark surface once so a new band cannot miss the rule.
   ============================================================ */

/* ============================================================
   Black Women's Wealth Lab® — Institutional Design System
   Layer 2 of 2: GRID, BLOCKS, COMPONENTS
   Requires tokens.css. Declares no brand value of its own.
   ============================================================ */

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

html { scroll-behavior: smooth; background: var(--surface-deep); }

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--face-body);
  font-size: var(--t-body);
  line-height: var(--t-body-lh);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--text-link); text-underline-offset: 4px; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 40; background: var(--surface-raised); padding: var(--s-2) var(--s-4); }


/* ============================================================
   1. FRAME AND GRID
   One frame. One grid. Every block on the site is a column span
   inside it, and that is the whole layout vocabulary.
   ============================================================ */

.frame {
  width: min(calc(100% - 2 * var(--frame-gutter)), var(--frame-max));
  margin-inline: auto;
}

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

/* Column spans. Mobile first: everything is full width until 768.

   A span sets the END only, and a start sets the START only. The
   shorthand `grid-column: span 6` would also write the start, and a
   `.start-7` landing after it would then leave the end at auto and
   collapse the block to a single column. Splitting the two properties
   is what lets `.col-6.start-7` compose. */
[class*="col-"] { grid-column: 1 / -1; }

@media (min-width: 768px) {
  .col-6\@md  { grid-column-start: auto; grid-column-end: span 6; }
  .col-4\@md  { grid-column-start: auto; grid-column-end: span 4; }
  .col-8\@md  { grid-column-start: auto; grid-column-end: span 8; }
}
@media (min-width: 1024px) {
  .col-2  { grid-column-start: auto; grid-column-end: span 2; }
  .col-3  { grid-column-start: auto; grid-column-end: span 3; }
  .col-4  { grid-column-start: auto; grid-column-end: span 4; }
  .col-5  { grid-column-start: auto; grid-column-end: span 5; }
  .col-6  { grid-column-start: auto; grid-column-end: span 6; }
  .col-7  { grid-column-start: auto; grid-column-end: span 7; }
  .col-8  { grid-column-start: auto; grid-column-end: span 8; }
  .col-9  { grid-column-start: auto; grid-column-end: span 9; }
  .col-10 { grid-column-start: auto; grid-column-end: span 10; }
  .col-12 { grid-column-start: auto; grid-column-end: span 12; }
  .start-2  { grid-column-start: 2; }
  .start-3  { grid-column-start: 3; }
  .start-5  { grid-column-start: 5; }
  .start-6  { grid-column-start: 6; }
  .start-7  { grid-column-start: 7; }
  .start-8  { grid-column-start: 8; }
  .start-9  { grid-column-start: 9; }
}

/* Block rhythm. A section states its own space, from four values. */
.space-top-none    { margin-top: var(--block-none); }
.space-top-tight   { margin-top: var(--block-tight); }
.space-top         { margin-top: var(--block); }
.space-top-large   { margin-top: var(--block-large); }
.space-bottom-none  { margin-bottom: var(--block-none); }
.space-bottom-tight { margin-bottom: var(--block-tight); }
.space-bottom       { margin-bottom: var(--block); }
.space-bottom-large { margin-bottom: var(--block-large); }

/* Surface bands run full bleed; their contents return to the frame. */
.band { padding-block: var(--block); }
.band--tint { background: var(--surface-tint); }
.band--sunk { background: var(--surface-sunk); }
.band--dark { background: var(--surface-dark); color: var(--text-on-dark); }
.band--deep { background: var(--surface-deep); color: var(--text-on-dark); }
.band--large { padding-block: var(--block-large); }

/* Section transition rule: two consecutive sections on the same
   surface are separated by a hairline, never by space alone. */
.rule-top { border-top: 1px solid var(--border-hairline); padding-top: var(--block); margin-top: var(--block); }


/* ============================================================
   2. TYPE
   ============================================================ */

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--face-display);
  font-weight: 400;
  letter-spacing: var(--t-track-display);
  color: inherit;
}

.t-d1 { font-size: var(--t-d1); line-height: var(--t-d1-lh); max-width: var(--measure-head); }
.t-d2 { font-size: var(--t-d2); line-height: var(--t-d2-lh); max-width: 22ch; }
.t-d3 { font-size: var(--t-d3); line-height: var(--t-d3-lh); }
.t-d4 { font-size: var(--t-d4); line-height: var(--t-d4-lh); }
.t-d5 { font-size: var(--t-d5); line-height: var(--t-d5-lh); }

p { margin: 0 0 var(--s-5); max-width: var(--measure-text); }
p:last-child { margin-bottom: 0; }

.lede {
  margin: var(--s-6) 0 0;
  max-width: var(--measure-lede);
  font-size: var(--t-lede);
  line-height: var(--t-lede-lh);
  color: var(--text-secondary);
}

.note {
  margin-top: var(--s-5);
  max-width: var(--measure-note);
  font-family: var(--face-ui);
  font-size: var(--t-meta);
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Eyebrow. Mono, caps, tracked. Clay on paper, gold on navy. */
.eyebrow {
  display: block;
  margin: 0 0 var(--s-5);
  font-family: var(--face-mono);
  font-weight: 500;
  font-size: var(--t-eyebrow);
  letter-spacing: var(--t-eyebrow-track);
  text-transform: uppercase;
  color: var(--text-accent);
}

/* Meta tag. Sans, caps, 600. Category and kind. */
.tag {
  display: inline-block;
  font-family: var(--face-ui);
  font-weight: 600;
  font-size: var(--t-tag);
  letter-spacing: var(--t-tag-track);
  text-transform: uppercase;
  color: var(--text-secondary);
}

.meta {
  font-family: var(--face-ui);
  font-size: var(--t-meta);
  color: var(--text-secondary);
}

/* Orpheus italic. At most once per page. */
.pull-quote {
  margin: 0;
  padding-left: var(--s-6);
  border-left: 2px solid var(--border-accent);
  font-family: var(--face-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.3;
  color: var(--text-accent);
  max-width: 30ch;
}
.pull-quote cite {
  display: block;
  margin-top: var(--s-5);
  font-family: var(--face-ui);
  font-style: normal;
  font-size: var(--t-meta);
  color: var(--text-secondary);
}


/* ============================================================
   3. SECTION HEAD AND SIDEHEAD
   Two heading patterns. Nothing else introduces a section.
   ============================================================ */

/* A: stacked — eyebrow, head, lede. */
.section-head { max-width: 46rem; }
.section-head .t-d2 + .lede { margin-top: var(--s-6); }

/* B: sidehead — label column left, content right. The reference
   site's closing device; here it is the standard inner-page head. */
.sidehead { display: contents; }
.sidehead__label { grid-column: span 12; }
.sidehead__body  { grid-column: span 12; }
@media (min-width: 1024px) {
  .sidehead__label { grid-column-start: 1; grid-column-end: span 3; }
  .sidehead__body  { grid-column-start: 5; grid-column-end: span 7; }
}
.sidehead__label .eyebrow { margin-bottom: var(--s-3); }


/* ============================================================
   4. PAGE OPENERS
   Three, and only three. A page that opens any other way is
   outside the system.
   ============================================================ */

/* Opener A — full-bleed media. Homepage only. Carries the video. */
.opener-media {
  position: relative;
  min-height: min(84vh, 760px);
  display: grid;
  align-items: end;
  background: var(--surface-deep);
  color: var(--text-on-dark);
  overflow: clip;
}
.opener-media__media { position: absolute; inset: 0; }
.opener-media__media img,
.opener-media__media video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 45%;
}
.opener-media__media video { position: absolute; inset: 0; }
.opener-media__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(40, 51, 76,.22) 0%,
    rgba(40, 51, 76,.34) 50%,
    rgba(40, 51, 76,.52) 100%);
}
.opener-media__inner { position: relative; padding-block: var(--s-24) var(--s-20); }
/* The copy's own backdrop, full bleed and anchored to the copy box rather
   than to a percentage of the hero. Worst case (a pure white frame of the
   video) the paper type still measures 8.6:1 against it, so the hero stays
   legible whatever poster or video is swapped in behind it. */
.opener-media__inner::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; transform: translateX(-50%); width: 100vw;
  top: calc(var(--s-24) * -1); bottom: 0;
  background: linear-gradient(to bottom,
    rgba(40, 51, 76,0) 0,
    rgba(40, 51, 76,.62) var(--s-24),
    rgba(40, 51, 76,.72) 100%);
}
.opener-media .t-d1 { max-width: 20ch; }
.opener-media .lede { color: var(--text-on-dark); max-width: 54ch; }
.opener-media__mark { width: 56px; height: auto; margin-bottom: var(--s-6); }

/* Opener B — the standard inner-page opener. Title on the grid,
   lede in the right half, optional image band beneath. */
.opener {
  padding-top: var(--s-20);
  padding-bottom: var(--block);
}
.opener__title { grid-column: span 12; }
.opener__lede  { grid-column: span 12; }
@media (min-width: 1024px) {
  .opener__title { grid-column: 1 / span 6; }
  .opener__lede  { grid-column: 8 / span 5; align-self: end; }
}
.opener__lede .lede { margin-top: 0; }
.opener__figure { grid-column: span 12; margin-top: var(--block-tight); }
.opener__figure img { width: 100%; aspect-ratio: var(--ratio-band); max-height: 480px; object-fit: cover; object-position: center 38%; }

/* Opener C — compact bar. Forms, legal, receipts, utility. */
.opener-bar {
  padding-block: var(--s-16) var(--s-12);
  border-bottom: 1px solid var(--border-hairline);
}
.opener-bar .t-d3 { max-width: 28ch; }


/* ============================================================
   5. HEADER AND FOOTER
   Identical on every page. The strongest consistency signal a
   visitor has.
   ============================================================ */

.site-header {
  position: sticky; top: 0; z-index: 30;
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-8);
  padding-inline: max(var(--frame-gutter), calc((100% - var(--frame-max)) / 2));
  background: var(--surface-deep);
  color: var(--text-on-dark);
}
.site-header__logo { display: inline-flex; align-items: center; }
.site-header__logo img { width: 235px; height: auto; }

.site-nav {
  display: flex; align-items: center; gap: var(--s-6);
  font-family: var(--face-ui); font-weight: 500; font-size: var(--t-nav);
  letter-spacing: .01em;
}
.site-nav a { color: var(--text-on-dark); text-decoration: none; }
.site-nav a:not(.button):hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--gold-100);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.site-nav__group { position: relative; }
.site-nav__group > button {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  font: inherit; color: var(--text-on-dark);
}
.site-nav__group > button::after {
  content: ""; display: inline-block; margin-left: var(--s-2);
  width: .4em; height: .4em;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-.15em) rotate(45deg);
}
.site-nav__sub {
  display: none; position: absolute; top: calc(100% + .6rem); left: 0;
  min-width: 15rem; margin: 0; padding: var(--s-4) var(--s-5);
  list-style: none; background: var(--surface-deep);
  border: 1px solid var(--border-on-dark);
}
.site-nav__sub li + li { margin-top: var(--s-3); }
.site-nav__group:hover > .site-nav__sub,
.site-nav__group:focus-within > .site-nav__sub { display: block; }

/* Menu button and drawer. The nav does not fit beside the lockup below
   1150px, so below it the nav becomes a drawer under the header. */
.site-header__menu {
  display: none; background: none; cursor: pointer;
  border: 1px solid var(--text-on-dark); color: var(--text-on-dark);
  padding: var(--s-2) var(--s-3); min-height: 40px;
  font-family: var(--face-ui); font-size: var(--t-meta);
}
@media (max-width: 1149px) {
  .site-header { flex-wrap: wrap; }
  .site-header__menu { display: inline-block; }
  .site-nav {
    display: none; order: 3; flex-basis: 100%;
    flex-direction: column; align-items: flex-start; gap: var(--s-5);
    padding-bottom: var(--s-6);
  }
  .site-nav.is-open { display: flex; }
  .site-nav .button { width: 100%; }
  .site-nav__group { width: 100%; }
  .site-nav__sub { position: static; display: block; border: 0; padding: var(--s-3) 0 0 var(--s-4); min-width: 0; }
}

.site-footer {
  padding: var(--s-16) max(var(--frame-gutter), calc((100% - var(--frame-max)) / 2)) var(--s-14);
  background: var(--surface-deep);
  color: var(--text-on-dark);
  font-family: var(--face-ui);
  font-size: var(--t-small);
}
.site-footer__lockup { width: 260px; margin-bottom: var(--s-10); }
.site-footer__columns { display: grid; gap: var(--s-10); }
@media (min-width: 768px) { .site-footer__columns { grid-template-columns: repeat(4, 1fr); gap: var(--s-8); } }
.site-footer h2 {
  font-family: var(--face-ui); font-size: var(--t-tag); font-weight: 600;
  letter-spacing: var(--t-tag-track); text-transform: uppercase;
  color: var(--text-on-dark-secondary); margin-bottom: var(--s-4);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: var(--s-3); }
.site-footer a { color: var(--text-on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--gold-100); text-decoration-thickness: 2px; }
.site-footer__legal {
  margin-top: var(--s-16); padding-top: var(--s-6);
  border-top: 1px solid var(--border-on-dark);
  color: var(--text-on-dark-secondary); font-size: var(--t-meta);
  max-width: none;
}


/* ============================================================
   6. BUTTONS AND LINKS
   ============================================================ */

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

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: var(--s-3) var(--s-6);
  font-family: var(--face-ui); font-weight: 500; font-size: var(--t-button);
  letter-spacing: .01em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  transition: background-color var(--motion-short) var(--ease-out),
              color var(--motion-short) var(--ease-out);
}
.button--fill { background: var(--button-fill-bg); color: var(--button-fill-text); border-color: var(--button-fill-bg); }
.button--fill:hover { background: var(--button-fill-bg-hover); border-color: var(--button-fill-bg-hover); }
.button--outline { background: transparent; color: var(--button-outline-text); border-color: var(--button-outline-border); }
.button--outline:hover { background: var(--button-outline-bg-hover); }

/* Quiet link with arrow. The system's only secondary action. */
.link-arrow {
  font-family: var(--face-ui); font-weight: 500; font-size: var(--t-button);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  transition: border-color var(--motion-short) var(--ease-out);
}
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { border-bottom-color: var(--border-accent); border-bottom-width: 2px; }


/* ============================================================
   7. CARDS
   Three card types. Each has one ratio and one anatomy.
   ============================================================ */

.card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card__media { overflow: clip; margin-bottom: var(--s-5); }
.card__media img { width: 100%; object-fit: cover; transition: transform var(--motion-medium) var(--ease-out); }
.card:hover .card__media img { transform: scale(1.03); }
.card__tag { margin-bottom: var(--s-3); }
.card__title { margin-bottom: var(--s-3); }
.card:hover .card__title { text-decoration: underline; text-decoration-color: var(--border-accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card__summary { color: var(--text-secondary); font-size: var(--t-small); line-height: var(--t-small-lh); }
.card__foot { margin-top: auto; padding-top: var(--s-5); }

/* A: article / insight — 16:9 */
.card--article .card__media img { aspect-ratio: var(--ratio-wide); }
/* B: service / offer — 4:5 portrait */
.card--service .card__media img { aspect-ratio: var(--ratio-portrait); }
/* C: tool — no image, a ruled register entry */
.card--tool {
  padding: var(--s-6);
  background: var(--surface-raised);
  border: 1px solid var(--border-hairline);
  border-top: 2px solid var(--border-accent);
  transition: border-color var(--motion-short) var(--ease-out);
}
.card--tool:hover { border-color: var(--border-strong); border-top-color: var(--border-accent); }

.card-row { display: grid; gap: var(--s-10); }
@media (min-width: 768px) { .card-row--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .card-row--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-row--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .card-row--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-row--4 { grid-template-columns: repeat(4, 1fr); gap: var(--s-8); } }


/* ============================================================
   8. THE KEY FIGURE
   A valuation firm needs a display style for a number. This is
   it. Orpheus, the figure size, a gold rule above, the basis
   underneath. The figure is never stated without its basis.
   ============================================================ */

.figures { display: grid; gap: var(--s-10); }
@media (min-width: 768px) { .figures--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .figures--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .figures--4 { grid-template-columns: repeat(4, 1fr); } }

.figure-stat { padding-top: var(--s-5); border-top: 2px solid var(--border-accent); }
.figure-stat__value {
  display: block;
  font-family: var(--face-display); font-weight: 400;
  font-size: var(--t-figure); line-height: var(--t-figure-lh);
  letter-spacing: var(--t-track-display);
}
.figure-stat__basis {
  margin-top: var(--s-3);
  font-family: var(--face-ui); font-size: var(--t-meta);
  color: var(--text-secondary); max-width: 26ch;
}


/* ============================================================
   9. REGISTERS, TABLES, PANELS
   ============================================================ */

/* Numbered register: contents, steps, a process. */
.register { list-style: none; margin: 0; padding: 0; counter-reset: register; border-top: 1px solid var(--border-head); }
.register > li {
  counter-increment: register;
  display: grid; grid-template-columns: 4.5rem 1fr; gap: var(--s-6);
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--border-hairline);
}
.register > li::before {
  content: counter(register, decimal-leading-zero);
  font-family: var(--face-mono); font-size: var(--t-tag);
  letter-spacing: .1em; color: var(--text-accent); padding-top: .4rem;
}
.register strong {
  display: block; font-family: var(--face-display); font-weight: 400;
  font-size: var(--t-d5); line-height: var(--t-d5-lh); letter-spacing: var(--t-track-display);
}
.register p { margin: var(--s-2) 0 0; color: var(--text-secondary); font-size: var(--t-small); }

/* Claim list: unnumbered, ruled. */
.claims { list-style: none; margin: 0; padding: 0; }
.claims li { padding-block: var(--s-4); border-bottom: 1px solid var(--border-hairline); max-width: var(--measure-text); color: var(--text-secondary); }
.claims li:first-child { border-top: 1px solid var(--border-hairline); }

/* Terms table. */
.table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.table caption { text-align: left; margin-bottom: var(--s-5); color: var(--text-secondary); font-family: var(--face-ui); font-size: var(--t-meta); }
.table th {
  text-align: left; padding: var(--s-3) var(--s-5);
  font-family: var(--face-mono); font-weight: 500; font-size: var(--t-eyebrow);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--table-head-text); border-bottom: 1px solid var(--table-head-border);
}
.table td { padding: var(--s-5); border-bottom: 1px solid var(--table-row-border); vertical-align: top; }
.table tbody tr:nth-child(odd) td { background: var(--table-row-stripe); }
.table td:first-child { color: var(--text-secondary); width: 34%; }

/* Panel. A bordered statement: terms, guarantee, a docket. */
.panel { padding: var(--s-8); background: var(--surface-raised); border: 1px solid var(--border-hairline); }
.panel--tint { background: var(--surface-tint); border-color: transparent; }
.panel h3 { margin-bottom: var(--s-3); }
.panel p { color: var(--text-secondary); font-size: var(--t-small); }

/* Price block. */
.price { padding-top: var(--s-8); border-top: 1px solid var(--border-head); }
.price__unit {
  display: block; margin-bottom: var(--s-3);
  font-family: var(--face-mono); font-size: var(--t-tag);
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-accent);
}
.price__amount {
  font-family: var(--face-display); font-weight: 400;
  font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1;
  letter-spacing: var(--t-track-display);
}
.price__terms { margin-top: var(--s-5); color: var(--text-secondary); font-size: var(--t-small); }


/* ============================================================
   10. EDITORIAL MEDIA
   ============================================================ */

figure { margin: 0; }
figcaption { margin-top: var(--s-3); font-family: var(--face-ui); font-size: var(--t-meta); color: var(--text-secondary); max-width: 52ch; }

.media-wide img    { width: 100%; aspect-ratio: var(--ratio-wide); object-fit: cover; }
.media-feature img { width: 100%; aspect-ratio: var(--ratio-feature); object-fit: cover; }
.media-portrait img{ width: 100%; aspect-ratio: var(--ratio-portrait); object-fit: cover; }
.media-square img  { width: 100%; aspect-ratio: var(--ratio-square); object-fit: cover; }

/* Split: media one side, text the other. Alternates by modifier. */
.split { display: grid; gap: var(--s-10); align-items: center; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-16); }
  .split--media-right .split__media { order: 2; }
}

/* Frosted statement over an image. Used once per page at most. */
.frosted {
  position: relative; display: grid; align-items: end;
  min-height: 420px; overflow: clip; color: var(--text-on-dark);
}
.frosted > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frosted__panel {
  position: relative; margin: var(--s-8); padding: var(--s-10);
  max-width: 40rem; background: var(--surface-glass);
  border: 1px solid var(--border-on-dark);
  backdrop-filter: blur(6px);
}


/* ============================================================
   11. FORMS
   Conversion paths are part of the system, not an exception to it.
   ============================================================ */

.field { margin-bottom: var(--s-6); max-width: 34rem; }
.field > label {
  display: block; margin-bottom: var(--s-2);
  font-family: var(--face-ui); font-weight: 500; font-size: var(--t-meta);
}
.field__hint { display: block; margin-bottom: var(--s-2); font-family: var(--face-ui); font-size: var(--t-meta); color: var(--text-secondary); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4);
  background: var(--field-bg); color: var(--field-text);
  border: 1px solid var(--field-border); border-radius: var(--radius);
  font-family: var(--face-body); font-size: var(--t-body);
}
.field textarea { min-height: 9rem; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--field-placeholder); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--field-border-focus); }
.field--error input, .field--error textarea { border-color: var(--field-error); border-width: 2px; }
.field__error { display: block; margin-top: var(--s-2); font-family: var(--face-ui); font-size: var(--t-meta); color: var(--field-error); }
fieldset { margin: 0 0 var(--s-10); padding: 0; border: 0; }
legend { padding: 0; font-family: var(--face-display); font-size: var(--t-d4); letter-spacing: var(--t-track-display); }

/* Filter chips: insights, lab tools. */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-3); list-style: none; margin: 0; padding: 0; }
.chips a, .chips button {
  display: inline-block; padding: var(--s-2) var(--s-4);
  background: transparent; border: 1px solid var(--border-strong);
  font-family: var(--face-ui); font-size: var(--t-meta); text-decoration: none; cursor: pointer;
  color: var(--text-primary);
}
.chips [aria-current="true"], .chips a:hover, .chips button:hover { background: var(--surface-dark); color: var(--text-on-dark); border-color: var(--surface-dark); }


/* ============================================================
   12. CLOSING CONVERSION BLOCK
   Every page ends with one. Same place, same shape, every time.
   ============================================================ */

.closing { padding-block: var(--block-large); background: var(--surface-dark); color: var(--text-on-dark); }
.closing .t-d2 { max-width: 20ch; }
.closing .lede { color: var(--text-on-dark-secondary); }


/* ============================================================
   13. MOTION
   One reveal. Fade and rise, once, staggered inside a block.
   Hover states are the only other movement on the site.
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(var(--reveal-rise)); }
  .js .reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity var(--motion-medium) var(--ease-out),
                transform var(--motion-medium) var(--ease-out);
  }
  .js .reveal-group > * { opacity: 0; transform: translateY(var(--reveal-rise)); }
  .js .reveal-group.is-in > * {
    opacity: 1; transform: none;
    transition: opacity var(--motion-medium) var(--ease-out),
                transform var(--motion-medium) var(--ease-out);
  }
  .js .reveal-group.is-in > *:nth-child(2) { transition-delay: calc(var(--reveal-stagger) * 1); }
  .js .reveal-group.is-in > *:nth-child(3) { transition-delay: calc(var(--reveal-stagger) * 2); }
  .js .reveal-group.is-in > *:nth-child(4) { transition-delay: calc(var(--reveal-stagger) * 3); }
  .js .reveal-group.is-in > *:nth-child(5) { transition-delay: calc(var(--reveal-stagger) * 4); }
  .js .reveal-group.is-in > *:nth-child(6) { transition-delay: calc(var(--reveal-stagger) * 5); }
}

/* ============================================================
   13b. DARK SURFACE CONTRACT
   Every dark surface on the site is named once, here. A rule
   written against one of them is written against all of them,
   so a new dark band cannot inherit light-surface type and go
   invisible. Adding a dark surface means adding it to this one
   list.
   ============================================================ */

.dark-surface,
.band--dark,
.band--deep,
.on-dark,
.closing,
.opener-media,
.frosted__panel { color: var(--text-on-dark); }

:is(.band--dark, .band--deep, .on-dark, .closing, .opener-media, .frosted__panel) {
  .lede, .note, .claims li, .figure-stat__basis, .meta, figcaption,
  .card__summary, cite, .pull-quote cite, blockquote, .price__terms, p {
    color: var(--text-on-dark-secondary);
  }
  .t-d1, .t-d2, .t-d3, .t-d4, .t-d5, h1, h2, h3, h4, strong, .figure-stat__value {
    color: var(--text-on-dark);
  }
  .claims li { border-color: var(--border-on-dark); }
  .eyebrow { color: var(--text-on-dark-accent); }
  .price__unit { color: var(--text-on-dark-accent); }
  .register > li::before { color: var(--text-on-dark-accent); }
  .register > li { border-color: var(--border-on-dark); }
  .register { border-top-color: var(--border-on-dark); }
  a:not(.button) { color: var(--text-on-dark); }
  .link-arrow { color: var(--text-on-dark); border-bottom-color: var(--border-on-dark); }
  .button--fill {
    background: var(--button-on-dark-bg); color: var(--button-on-dark-text);
    border-color: var(--button-on-dark-bg);
  }
  .button--outline { color: var(--text-on-dark); border-color: var(--text-on-dark); }
  .table th { color: var(--text-on-dark); border-bottom-color: var(--border-on-dark); }
  .table td { border-bottom-color: var(--border-on-dark); }
}

/* Over photography even gold at 5.64:1 is unreliable, because the
   pixels behind it are not a known colour. Text on media takes paper
   and leans on the scrim, which is measured, not assumed. */
:is(.opener-media, .frosted__panel) .eyebrow { color: var(--text-on-dark); }
:is(.opener-media, .frosted__panel) .lede { color: var(--text-on-dark); }
