/* ==========================================================================
   iON — main.css
   World: a white gallery wall lit by one amber bulb (see .impeccable/surfaces/
   templates-index-twig.md and _notes/00.5-design-system.md).
   Layer order is declared inline at the top of <head> (base.twig) so that
   Bootstrap and Formie, both layered, always lose to these rules:
     @layer vendor, formie, base, layout, components, blocks, utilities;
   bulb.css (the signature component) is unlayered on purpose.
   ========================================================================== */

@import url('/assets/vendor/bootstrap/bootstrap.min.css') layer(vendor);

/* -- Fonts ---------------------------------------------------------------- */

/* General Sans (Indian Type Foundry, ITF Free Font License, self-hosted as supplied) for headlines;
   Quicksand (OFL) for text. Both are the client's choice (2026-10-12), served as the vendor's WOFF2. */
@font-face {
  font-family: 'General Sans';
  src: url('/assets/fonts/GeneralSans-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Quicksand';
  src: url('/assets/fonts/Quicksand-Variable.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks (measured against Arial in Chromium: width ratio, content-area ascent and
   descent), so the swap from the fallback to the web font moves nothing. */
@font-face {
  font-family: 'General Sans Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 100.8%;
  ascent-override: 100.2%;
  descent-override: 23.8%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Quicksand Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 104%;
  ascent-override: 96.2%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* -- Tokens --------------------------------------------------------------- */

@layer base {
  :root {
    /* Surfaces & ink — four greys and one light (style reference + logo) */
    --paper: #ffffff;
    --fog: #f4f4f4;
    --ink: #1a1a1a;
    --night: #111111;          /* logo ink; the moon chapter and the footer */
    --ash: #a3a3a3;            /* placeholders and inactive only: 2.5:1 on white */
    --graphite: #595959;       /* secondary text on white: 7.0:1 */
    --amber: #ffc21a;          /* the bulb; the only chroma */
    --amber-press: #f2b300;
    --on-amber: #1a1a1a;       /* text on amber, in both schemes (10.8:1) */
    --error: #b3261e;          /* form errors only: 6.5:1 on white */
    --on-night: #f4f4f4;       /* 17.3:1 on --night */
    --on-night-2: #b8b8b8;     /* 9.6:1 on --night */
    --hair: color-mix(in srgb, var(--ink) 100%, transparent);
    --hair-soft: color-mix(in srgb, var(--ink) 14%, transparent);

    /* Type */
    --font: 'Quicksand', 'Quicksand Fallback', ui-rounded, ui-sans-serif, system-ui, sans-serif;          /* text */
    --font-display: 'General Sans', 'General Sans Fallback', ui-sans-serif, system-ui, sans-serif;     /* headlines */
    --track-text: 0em;          /* Quicksand is rounded: negative tracking closes it up */
    /* The i-dot geometry, measured on the real files (_tools/measure-fonts.mjs): where the bulb tittle sits
       over an i and where the letter's own dot is masked. General Sans 500 by default; Quicksand 500 where
       the i-dot bulbs sit in text type (nav, footer nav). Tittle bottom 0.56em above the baseline. */
    --dot-left: -0.021em;       /* dot centre 0.119em − half the 0.28em tittle */
    --dot-top: 0.045em;         /* content-area ascent 1.01em − tittle top 0.965em */
    --dot-cut: 0.45em;          /* 1.01em − 0.56em: everything above the gap is the dot */
    --track: -0.02em;           /* headlines */
    --track-display: -0.03em;   /* display sizes */
    --fs-caption: 14px;
    --fs-small: 16px;
    --fs-body: 17px;
    --fs-sub: 20px;
    --fs-h3: 24px;
    --fs-statement: clamp(30px, 3.4vw, 50px);
    --fs-h2: clamp(36px, 4.6vw, 68px);
    --fs-h1: clamp(48px, 6.2vw, 92px);

    /* Space — 6px base */
    --s-6: 6px;
    --s-12: 12px;
    --s-18: 18px;
    --s-24: 24px;
    --s-36: 36px;
    --s-48: 48px;
    --s-72: 72px;
    --s-96: 96px;
    --s-144: 144px;
    --section: clamp(96px, 11vw, 168px);

    /* Shape */
    --radius: 10px;
    --radius-lg: 16px;

    /* Layout */
    --container: 1200px;
    --gutter: clamp(20px, 5vw, 72px);
    --header-h: 72px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    color-scheme: light;
  }

  /* -- Lights off: the bulb is the switch (journey.js), remembered in localStorage, set before paint
        (bulb-head.twig). The same tokens, re-pointed: Paper is the ground, Ink the text. -- */
  html[data-scheme='dark'] {
    color-scheme: dark;
    --paper: #131313;
    --fog: #1e1e1e;
    --ink: #f2f2f2;          /* 16.6:1 on --paper (measured) */
    --graphite: #b0b0b0;     /* 8.6:1 on --paper, 7.7:1 on --fog (measured) */
    --night: #0a0a0a;        /* the moon chapter and the footer stay a step deeper than the room */
    --on-night: #f2f2f2;
    --on-night-2: #b0b0b0;
    --hair-soft: color-mix(in srgb, var(--ink) 16%, transparent);
    --error: #ff8a80;        /* 8.1:1 on --paper, 7.3:1 on --fog (measured) */
  }

  /* -- Base --------------------------------------------------------------- */

  html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + var(--s-24));
    scrollbar-gutter: stable;
    scrollbar-color: var(--ink) var(--fog);
    -webkit-text-size-adjust: 100%;
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
  }

  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-weight: 500;
    font-size: var(--fs-body);
    line-height: 1.5;
    letter-spacing: var(--track-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  ::selection { background: var(--amber); color: var(--on-amber); }

  h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
  h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: var(--track); line-height: 1.2; text-wrap: balance; }
  /* display type that is not a heading element */
  .chapter__statement, .menu-sheet__link, .facts caption { font-family: var(--font-display); }
  /* i-dot bulbs set in text type */
  .site-nav, .site-footer__nav { --dot-left: -0.03em; --dot-top: 0.035em; --dot-cut: 0.44em; }
  p { text-wrap: pretty; }

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

  :focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
    border-radius: 2px;
  }
  [data-theme='night'] :focus-visible { outline-color: var(--amber); }

  img { display: block; max-width: 100%; height: auto; }

  input, select, textarea, button { font: inherit; letter-spacing: inherit; caret-color: var(--ink); }

  .visually-hidden:not(:focus):not(:active) {
    position: absolute !important;
    width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }

  .skip-link {
    position: absolute; left: var(--s-12); top: -100px; z-index: 1000;
    background: var(--amber); color: var(--on-amber); padding: var(--s-12) var(--s-18);
    border: 1px solid transparent; border-radius: var(--radius); font-weight: 500;
  }
  .skip-link:focus { top: var(--s-12); }
}

/* -- Layout --------------------------------------------------------------- */

@layer layout {
  .wrap {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
  }
  .grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--s-24);
  }
  main { display: block; }
}

/* -- Components ----------------------------------------------------------- */

@layer components {
  /* Primary action: a plain amber field (no visible border, the client's call); the cursor is its filament (motion section). */
  .btn-amber {
    display: inline-flex; align-items: center; gap: var(--s-12);
    min-height: 48px;
    padding: var(--s-12) var(--s-24);
    background-color: var(--amber);
    color: var(--on-amber);
    /* No visible border (client's call, 2026-10-12). Transparent, not removed: the size stays the same
       and forced-colors mode still draws the button's edge. */
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: var(--fs-small);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 150ms var(--ease-out), translate 150ms var(--ease-out);
  }
  .btn-amber:hover { text-decoration: none; }
  .btn-amber:active { translate: 0 1px; }
  .btn-amber--small { min-height: 40px; padding: var(--s-6) var(--s-18); }

  .btn-ghost {
    display: inline-flex; align-items: center; gap: var(--s-12);
    min-height: 48px;
    padding: var(--s-12) 0;
    color: inherit;
    font-size: var(--fs-small);
    font-weight: 600;
    text-decoration: none;
  }
  .btn-ghost svg { width: 16px; height: 16px; flex: none; transition: translate 200ms var(--ease-out); }
  .btn-ghost:hover svg { translate: 0 2px; }

  /* -- Header ------------------------------------------------------------- */
  .site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--paper);
    height: var(--header-h);
    transition: box-shadow 200ms var(--ease-out);
  }
  .site-header.is-scrolled { box-shadow: 0 1px 0 var(--hair-soft); }
  .site-header__inner {
    height: 100%;
    display: flex; align-items: center; gap: var(--s-36);
  }
  /* The logo SVG (bulb.css, unlayered) is height: 100% of this box. */
  .site-header__logo { display: block; flex: none; height: 34px; color: var(--ink); line-height: 0; text-decoration: none; }
  .site-nav { margin-inline: auto; }
  .site-nav ul { display: flex; gap: var(--s-24); list-style: none; padding: 0; }
  .site-nav a {
    display: block; padding: var(--s-12) 0;
    font-size: var(--fs-small); text-decoration: none;
    background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 calc(100% - 8px) / 0 1px;
    transition: background-size 250ms var(--ease-out);
  }
  /* hover lights the label's i-dots (motion section); the section in view also keeps a 1px rule */
  .site-nav a[aria-current='true'] { background-size: 100% 1px; }
  .site-header__cta { flex: none; }

  .menu-button {
    display: none;
    align-items: center; gap: var(--s-6);
    min-height: 44px; padding: 0 var(--s-12);
    background: none; border: 1px solid var(--ink); border-radius: var(--radius);
    color: var(--ink); font-size: var(--fs-small); font-weight: 600;
  }



  .site-nav a { white-space: nowrap; }
  /* Five labels in Quicksand need about 1200px beside the logo and the button: below that, the Menu takes over. */
  @media (width < 1200px) {
    .site-nav { display: none; }
    .site-header__cta { margin-left: auto; }
    .menu-button { display: inline-flex; }
  }
  @media (width < 992px) {
    .site-header__cta { display: none; }
    .menu-button { margin-left: auto; }
    :root { --header-h: 64px; }
    .site-header__logo { height: 30px; }
  }

  /* -- Footer ------------------------------------------------------------- */
  .site-footer {
    background: var(--night);
    color: var(--on-night);
    padding-block: var(--section) var(--s-48);
  }
  .site-footer__grid { row-gap: var(--s-48); align-items: end; }
  .site-footer__logo { grid-column: 1 / span 7; height: clamp(110px, 15vw, 210px); color: var(--on-night); line-height: 0; }
  .site-footer__side { grid-column: 9 / -1; display: grid; gap: var(--s-24); }
  .site-footer__nav ul { list-style: none; padding: 0; display: grid; gap: var(--s-6); }
  .site-footer__nav a { text-decoration: none; font-size: var(--fs-sub); }
  .site-footer__nav a:hover { text-decoration: underline; }
  .site-footer__meta {
    grid-column: 1 / -1;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-12) var(--s-36);
    padding-top: var(--s-24);
    border-top: 1px solid color-mix(in srgb, var(--on-night) 22%, transparent);
    color: var(--on-night-2); font-size: var(--fs-caption); line-height: 1.45;
  }
  .site-footer__meta p { max-width: 72ch; }
  @media (width < 992px) {
    .site-footer__logo, .site-footer__side { grid-column: 1 / -1; }
  }
}

/* -- Blocks --------------------------------------------------------------- */

@layer blocks {
  /* -- Hero --------------------------------------------------------------- */
  .hero {
    overflow-x: clip; /* the stage's light pool reaches past the viewport edge */
    display: flex; align-items: center;
    padding-block: var(--s-48);
  }
  /* The first viewport ends on the top of the practice-areas statement (contract: FIRST VIEWPORT). */
  .hero + .statement { padding-top: var(--s-72); }
  .hero__grid { align-items: center; row-gap: var(--s-48); width: 100%; }
  .hero__copy { grid-column: 1 / span 7; }
  .hero__stage { grid-column: 8 / -1; align-self: stretch; display: flex; align-items: center; justify-content: center; }
  .hero__stage > * { width: 100%; height: clamp(380px, 52svh, 560px); }
  .hero__title {
    font-size: var(--fs-h1);
    line-height: 1.04;
    letter-spacing: var(--track-display);
    font-weight: 500;
  }
  .hero__lead {
    margin-top: var(--s-36);
    max-width: 46ch;
    font-size: var(--fs-sub);
    line-height: 1.45;
    color: var(--graphite);
  }
  .hero__actions { margin-top: var(--s-36); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-12) var(--s-36); }

  @media (width < 992px) {
    .hero { min-height: 0; padding-block: var(--s-24) var(--s-48); }
    .hero__grid { row-gap: var(--s-12); }
    .hero__copy, .hero__stage { grid-column: 1 / -1; }
    .hero__stage > * { height: clamp(220px, 30svh, 300px); }
  }
  @media (width < 576px) {
    /* The first screen holds the headline, the action and the lit bulb. */
    .hero__lead { margin-top: var(--s-24); font-size: var(--fs-body); line-height: 1.5; }
    .hero__actions { margin-top: var(--s-24); column-gap: var(--s-24); }
  }
  @media (width < 576px) and (height < 760px) {
    /* Short phones (375×667, 360×640): a smaller headline and a shorter stage keep the lit bulb on the first screen.
       At 320×568 the copy alone fills the screen; there the bulb arrives on the first scroll. */
    .hero { padding-block: var(--s-12) var(--s-36); }
    .hero__title { font-size: clamp(34px, 10.6vw, 40px); }
    .hero__lead { margin-top: var(--s-18); }
    .hero__actions { margin-top: var(--s-18); }
    .hero__stage > * { height: 170px; }
  }

  /* -- Statement: the three practice areas ---------------------------------- */
  .statement { padding-block: var(--section); }
  .statement__title {
    max-width: 17em;   /* two lines at desktop sizes in General Sans */
    font-size: var(--fs-statement);
    line-height: 1.1;
    letter-spacing: var(--track-display);
  }
  .statement__grid { margin-top: var(--s-72); align-items: start; row-gap: var(--s-48); }
  .practice-list { grid-column: 1 / span 7; list-style: none; padding: 0; border-top: 1px solid var(--ink); }
  .practice { border-bottom: 1px solid var(--ink); }
  .practice__link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--s-24); row-gap: var(--s-12);
    padding: var(--s-24) 0 var(--s-36);
    text-decoration: none;
  }
  .practice__name { font-size: var(--fs-h3); line-height: 1.2; }
  .practice__text { grid-column: 1; color: var(--graphite); max-width: 52ch; }
  .practice__arrow {
    grid-column: 2; grid-row: 1 / span 2; align-self: center;
    display: grid; place-items: center;
    width: 48px; height: 48px; border: 1px solid var(--ink); border-radius: 50%;
    transition: background-color 200ms var(--ease-out);
  }
  .practice__arrow svg { width: 18px; height: 18px; transition: translate 250ms var(--ease-out); }
  .practice__link:hover .practice__arrow { background: var(--amber); color: var(--on-amber); border-color: var(--amber); }
  .practice__link:hover .practice__arrow svg { translate: 0 3px; }
  /* no underline on the name: the lit i-dots would cut it (their mask clips the letter's box) */
  .statement__photo { grid-column: 9 / -1; }
  .statement__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 60%; border-radius: var(--radius-lg); }
  @media (width < 992px) {
    .practice-list, .statement__photo { grid-column: 1 / -1; }
    .statement__photo img { aspect-ratio: 4 / 3; }
  }

  /* -- Chapter ------------------------------------------------------------ */
  .chapter { padding-block: var(--section); position: relative; }
  .chapter + .chapter:not(.chapter--night) { padding-top: 0; }
  .chapter--night + .chapter:not(.chapter--night) { padding-top: var(--section); }

  .chapter__head { row-gap: var(--s-24); align-items: start; }
  .chapter__name {
    grid-column: 1 / span 3;
    padding-top: var(--s-18);
    border-top: 1px solid currentColor;
    font-size: var(--fs-small);
    line-height: 1.3;
    font-weight: 500;
    max-width: 18ch;
  }
  .chapter__statement-wrap { grid-column: 4 / -1; transform-origin: 0 60%; }
  .chapter__statement {
    font-size: var(--fs-h2);
    line-height: 1.06;
    letter-spacing: var(--track-display);
    font-weight: 500;
    max-width: 17ch;
    text-wrap: balance;
  }
  .chapter__lead {
    grid-column: 4 / span 7;
    font-size: var(--fs-sub);
    line-height: 1.45;
    color: var(--graphite);
    max-width: 52ch;
  }
  @media (width < 992px) {
    .chapter__head { row-gap: var(--s-18); }
    /* A leaning statement needs room above and below so its corners clear the rule under it. */
    .chapter__statement-wrap[data-bulb-tilt] { transform-origin: 50% 50%; padding-block: var(--s-12) var(--s-24); }
    .chapter__name { grid-column: 1 / -1; order: 2; max-width: none; }
    .chapter__statement-wrap { grid-column: 1 / -1; order: 1; }
    .chapter__lead { grid-column: 1 / -1; order: 3; }
  }

  .chapter__body { margin-top: var(--s-96); align-items: start; row-gap: var(--s-72); }
  .chapter__content { grid-column: 4 / -1; display: grid; gap: var(--s-72); }
  .chapter__body--split .chapter__content { grid-column: 1 / span 7; }
  .chapter__aside { grid-column: 9 / -1; }
  /* Stretch the aside to the row so the porthole has room to stay pinned while the questions scroll by. */
  .chapter__body--split .chapter__aside:has(.porthole) { align-self: stretch; }
  @media (width < 992px) {
    .chapter__body { margin-top: var(--s-48); }
    .chapter__content, .chapter__body--split .chapter__content, .chapter__aside { grid-column: 1 / -1; }
  }

  /* Photo as a wide band after the head */
  .chapter__band { margin-top: var(--s-72); }
  .chapter__band img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius-lg); }
  @media (width < 768px) { .chapter__band img { aspect-ratio: 4 / 3; } }

  /* Porthole: the framed photo that turns until its horizon is level ("let us straighten it out").
     The image scales by |cos θ| + |sin θ| while turning, so the square frame never shows a corner. */
  .porthole {
    position: sticky; top: calc(var(--header-h) + var(--s-48));
    aspect-ratio: 1; width: 100%; max-width: 480px; margin-inline: auto;
    border-radius: var(--radius-lg); overflow: hidden;
    background: var(--fog);
    isolation: isolate;
  }
  .porthole img {
    width: 100%; height: 100%; object-fit: cover;
    rotate: var(--porthole-rotate, 0deg);
    scale: var(--porthole-scale, 1);
    will-change: rotate, scale;
  }
  @media (width < 992px) { .porthole { position: relative; top: 0; max-width: 420px; } }

  /* Night chapter: the room goes dark and the bulb is the light */
  .chapter--night { background: var(--night); color: var(--on-night); overflow: clip; }
  .chapter--night .chapter__lead { color: var(--on-night-2); }
  /* The moon photo fades out by its own transparency (a mask), not by a night-coloured paint over it: the
     dimmed photo is darker than --night, so a painted fade ended in a visible step at the bottom edge. */
  .chapter__backdrop {
    position: absolute; inset: 0 0 auto 0; height: min(130vh, 1200px); z-index: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 52%, transparent 96%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 52%, transparent 96%);
  }
  .chapter__backdrop img {
    width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%;
    opacity: 0.9;
    filter: blur(1.5px); /* the night photo is grainy; a slight blur keeps it cloud, not blocks */
    scale: 1.03;         /* pushes the blur's soft edge outside the frame */
  }
  .chapter--night > .wrap { position: relative; z-index: 1; }
  .chapter--night .chapter__head { min-height: min(80vh, 760px); align-content: start; }

  /* -- Chapter content blocks ---------------------------------------------- */
  .qa { display: grid; gap: 0; border-top: 1px solid currentColor; }
  .qa__heading { font-size: var(--fs-h3); padding-block: var(--s-24); }
  .qa__item {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-24) var(--s-48);
    padding-block: var(--s-36);
    border-bottom: 1px solid var(--hair-soft);
  }
  .chapter--night .qa__item { border-bottom-color: color-mix(in srgb, var(--on-night) 18%, transparent); }
  .qa__q { font-size: var(--fs-sub); line-height: 1.35; font-weight: 500; }
  .qa__a { line-height: 1.55; max-width: 60ch; }
  .chapter--night .qa__a { color: var(--on-night-2); }
  .chapter__body--split .qa__item { grid-template-columns: 1fr; gap: var(--s-12); }
  @media (width < 768px) { .qa__item { grid-template-columns: 1fr; gap: var(--s-12); } }

  .prose { display: grid; gap: var(--s-18); max-width: 64ch; font-size: var(--fs-sub); line-height: 1.5; }

  .steps__intro { font-size: var(--fs-sub); line-height: 1.45; margin-bottom: var(--s-36); max-width: 52ch; }
  .steps { list-style: none; padding: 0; counter-reset: step; border-top: 1px solid currentColor; }
  .steps__item {
    counter-increment: step;
    display: grid; grid-template-columns: 3.5ch minmax(0, 1fr); column-gap: var(--s-24);
    padding-block: var(--s-24);
    border-bottom: 1px solid var(--hair-soft);
  }
  .steps__item::before {
    content: counter(step) '.';
    font-size: var(--fs-sub); font-weight: 400; font-variant-numeric: tabular-nums;
  }
  .steps__title { font-size: var(--fs-sub); font-weight: 500; line-height: 1.35; }
  .steps__text { grid-column: 2; margin-top: var(--s-6); color: var(--graphite); max-width: 60ch; }

  .note {
    background: var(--fog);
    border-radius: var(--radius-lg);
    padding: var(--s-18) var(--s-24);
    font-size: var(--fs-small);
    line-height: 1.5;
    max-width: 78ch;
  }

  .facts { width: 100%; border-collapse: collapse; } /* text, not figures: tabular-nums would give the hyphen a figure-width slot */
  .facts caption {
    caption-side: top; text-align: left; padding: 0 0 var(--s-18);
    font-size: var(--fs-h3); font-weight: 500; color: inherit;
  }
  .facts th, .facts td { padding: var(--s-18) 0; vertical-align: top; text-align: left; border-top: 1px solid var(--hair-soft); }
  .facts tr:first-child th, .facts tr:first-child td { border-top-color: var(--ink); }
  .facts tr:last-child th, .facts tr:last-child td { border-bottom: 1px solid var(--ink); }
  .facts th { width: 30%; padding-right: var(--s-24); font-weight: 600; }
  .facts td { line-height: 1.55; text-wrap: pretty; }
  @media (width < 768px) {
    .facts tr { display: grid; border-top: 1px solid var(--hair-soft); padding-block: var(--s-12); }
    .facts th, .facts td { border: 0 !important; padding: 0; width: auto; }
    .facts td { margin-top: var(--s-6); color: var(--graphite); }
    .facts tr:last-child { border-bottom: 1px solid var(--ink); }
  }

  .orgs__intro { font-size: var(--fs-sub); line-height: 1.45; margin-bottom: var(--s-24); max-width: 52ch; }
  .orgs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
  .orgs li {
    display: flex; align-items: center; gap: var(--s-18); min-height: 96px;
    padding: var(--s-18) var(--s-24) var(--s-18) 0;
    border-bottom: 1px solid var(--hair-soft);
    font-size: var(--fs-sub); font-weight: 500; line-height: 1.25;
  }
  .orgs li:nth-child(odd) { border-right: 1px solid var(--hair-soft); }
  .orgs li:nth-child(even) { padding-left: var(--s-24); }
  .orgs img { max-height: 40px; width: auto; }
  @media (width < 768px) {
    .orgs { grid-template-columns: 1fr; }
    .orgs li:nth-child(odd) { border-right: 0; }
    .orgs li:nth-child(even) { padding-left: 0; }
  }

  /* -- Contact ------------------------------------------------------------- */
  .contact-aside { display: grid; gap: var(--s-24); }
  .contact-aside img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 35% 50%; border-radius: var(--radius-lg); }
  .contact-aside p { color: var(--graphite); }
  .chapter__body--contact .chapter__content { grid-column: 5 / -1; }
  .chapter__body--contact .chapter__aside { grid-column: 1 / span 3; grid-row: 1; }
  @media (width < 992px) {
    .chapter__body--contact .chapter__content, .chapter__body--contact .chapter__aside { grid-column: 1 / -1; grid-row: auto; }
    .contact-aside img { aspect-ratio: 16 / 10; }
  }

  /* Formie, themed through its own variables (its CSS sits in @layer formie). */
  .intake .fui-i {
    --fui-font: var(--font);
    --fui-color: var(--ink);
    --fui-primary-color: var(--ink);
    --fui-primary-color-hover: var(--ink);
    --fui-border-radius: var(--radius);
    --fui-border-color: var(--ink);
    --fui-focus-border-color: var(--ink);
    --fui-focus-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 70%, transparent);
    --fui-input-font-size: var(--fs-small);
    --fui-input-padding: 12px 14px;
    --fui-input-border-radius: var(--radius);
    --fui-input-background-color: var(--paper);
    --fui-input-placeholder-color: var(--graphite);
    --fui-input-border-color-focus: var(--ink);
    --fui-input-box-shadow-focus: 0 0 0 3px color-mix(in srgb, var(--amber) 70%, transparent);
    --fui-input-error-border-color: var(--error);
    --fui-error-color: var(--error);
    --fui-label-font-size: var(--fs-caption);
    --fui-label-font-weight: 600;
    --fui-label-color: var(--ink);
    --fui-label-margin: 0 0 var(--s-6);
    --fui-instructions-color: var(--graphite);
    --fui-instructions-font-size: var(--fs-caption);
    --fui-required-color: var(--ink);
    --fui-field-gutter: var(--s-24);
    --fui-submit-btn-bg-color: var(--amber);
    --fui-submit-btn-bg-color-hover: var(--amber-press);
    --fui-submit-btn-border-color: transparent;
    --fui-submit-btn-border-color-hover: transparent;
    --fui-submit-btn-color: var(--on-amber);
    --fui-submit-btn-color-hover: var(--on-amber);
    --fui-submit-btn-box-shadow-focus: 0 0 0 3px color-mix(in srgb, var(--amber) 70%, transparent);
    --fui-btn-border-radius: var(--radius);
    --fui-btn-font-size: var(--fs-small);
    --fui-btn-font-weight: 600;
    --fui-btn-padding: 13px 24px;
    --fui-alert-success-bg-color: var(--fog);
    --fui-alert-success-color: var(--ink);
    --fui-alert-border-radius: var(--radius-lg);
    letter-spacing: var(--track-text);
  }
  .intake .fui-btn { border-width: 1px; border-style: solid; }
  .intake .fui-input, .intake .fui-select { border-width: 1px; }
  .intake .fui-alert-success { font-size: var(--fs-sub); padding: var(--s-24); }
}

/* -- Legal pages and 404 -------------------------------------------------- */
/* Same head as a chapter: a ruled label in the left three columns, the title large on the right. */

@layer blocks {
  .legal, .not-found { padding-block: calc(var(--section) * 0.75) var(--section); }
  .legal__head, .not-found__head { row-gap: var(--s-24); align-items: start; }
  .legal__kicker, .not-found__kicker {
    grid-column: 1 / span 3;
    padding-top: var(--s-18);
    border-top: 1px solid currentColor;
    font-size: var(--fs-small); line-height: 1.3; font-weight: 500;
  }
  .legal__title, .not-found__title {
    grid-column: 4 / -1;
    font-size: var(--fs-h2); line-height: 1.06; letter-spacing: var(--track-display);
    max-width: 17ch;
  }
  .legal__lead, .not-found__lead {
    grid-column: 4 / span 7;
    font-size: var(--fs-sub); line-height: 1.45; color: var(--graphite); max-width: 52ch;
  }
  .legal__date { grid-column: 4 / -1; font-size: var(--fs-caption); color: var(--graphite); }
  .legal__body { margin-top: var(--s-72); padding-top: var(--s-36); border-top: 1px solid var(--hair-soft); row-gap: var(--s-48); align-items: start; }
  .legal__aside { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + var(--s-24)); }
  .legal__text { grid-column: 4 / span 8; }

  .company-details__title { font-size: var(--fs-small); font-weight: 600; margin-bottom: var(--s-12); }
  .company-details { display: grid; gap: var(--s-12); font-size: var(--fs-small); line-height: 1.45; margin: 0; }
  .company-details dt { font-size: var(--fs-caption); color: var(--graphite); font-weight: 500; }
  .company-details dd { margin: 0; overflow-wrap: anywhere; }
  .company-details address { font-style: normal; margin: 0; }

  /* Rich text from the CKEditor field: legal copy, read top to bottom. */
  .rich { max-width: 68ch; line-height: 1.6; }
  .rich > * + * { margin-top: var(--s-18); }
  .rich h2 { font-size: var(--fs-h3); line-height: 1.25; margin-top: var(--s-48); }
  .rich h2:first-child { margin-top: 0; }
  .rich h3 { font-size: var(--fs-sub); line-height: 1.3; margin-top: var(--s-36); }
  .rich h2 + *, .rich h3 + * { margin-top: var(--s-12); }
  .rich ul, .rich ol { padding-left: 1.25em; display: grid; gap: var(--s-6); }
  .rich li::marker { color: var(--graphite); }
  .rich strong { font-weight: 600; }

  /* A company fact still missing: loud on purpose, refused by scripts/prelaunch-check.sh. */
  mark.todo { background: var(--amber); color: var(--on-amber); padding: 0 0.25em; border-radius: 3px; font-weight: 600; }

  .site-footer__legal ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-6) var(--s-24); }
  .site-footer__legal a, .site-footer__contact a { color: var(--on-night); }
  .intake__privacy { margin-top: var(--s-24); font-size: var(--fs-caption); line-height: 1.5; color: var(--graphite); max-width: 60ch; }

  .not-found { min-height: calc(100svh - var(--header-h)); }
  .not-found__actions { grid-column: 4 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-18) var(--s-36); margin-top: var(--s-12); }
  .not-found__links { grid-column: 4 / span 7; margin-top: var(--s-48); padding-top: var(--s-24); border-top: 1px solid var(--hair-soft); }
  .not-found__links h2 { font-size: var(--fs-small); font-weight: 600; margin-bottom: var(--s-12); }
  .not-found__links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-6); font-size: var(--fs-sub); }

  @media (width < 992px) {
    .legal__kicker, .not-found__kicker { grid-column: 1 / span 6; }
    .legal__title, .legal__lead, .legal__date, .not-found__title, .not-found__lead,
    .not-found__actions, .not-found__links, .legal__text { grid-column: 1 / -1; }
    .legal__aside { grid-column: 1 / -1; position: static; order: 2; padding-top: var(--s-36); border-top: 1px solid var(--hair-soft); }
    .legal__body { margin-top: var(--s-48); }
  }
}

/* -- Utilities ------------------------------------------------------------ */

@layer utilities {
  .nowrap { white-space: nowrap; }
}

@media print {
  .site-header, .bulb-canvas, .menu-button { display: none !important; }
  .chapter--night { background: none; color: #000; }
}

@layer blocks {
  .intake__note { margin-bottom: var(--s-36); color: var(--graphite); max-width: 52ch; }
}

/* ==========================================================================
   Motion — "lit by the bulb" (light.js). Chosen by the client on 2026-10-12.
   Everything arrives in the dark — dimmed, never hidden — and is lit by a light front that spreads
   from where the bulb is: headlines from their own i-dot, the rest from the bulb's direction.
   Nothing here touches the navigation path: no target moves, nothing holds a click, the cursor
   stays the cursor. Without JS, or with reduced motion, nothing is ever dimmed.
   ========================================================================== */

@property --lit { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --hot { syntax: '<length>'; inherits: false; initial-value: 0px; }

@layer blocks {
  /* -- 1. The light front ---------------------------------------------------------------------- */
  html.reveal-on [data-reveal]:not([data-reveal='photo']):not(.is-done) {
    --soft: 200px;
    /* the front's soft edge trails behind --lit, so at --lit: 0 the whole element is evenly dim */
    -webkit-mask-image: radial-gradient(circle at var(--lx, 0px) var(--ly, 50%), #000 calc(var(--lit) - var(--soft)), rgb(0 0 0 / 0.1) var(--lit));
            mask-image: radial-gradient(circle at var(--lx, 0px) var(--ly, 50%), #000 calc(var(--lit) - var(--soft)), rgb(0 0 0 / 0.1) var(--lit));
    transition: --lit var(--dur, 1.1s) cubic-bezier(0.25, 0.1, 0.25, 1) var(--delay, 0ms);
  }
  html.reveal-on [data-reveal].is-lit { --lit: var(--lit-max, 2400px); }
  /* Display headlines set tighter than their font's content area (line-height 1.04–1.1 < 1.25): the bulb
     tittle rises above the box and the descenders hang below it, and a mask cuts everything outside the
     box. Give the mask room — padding cancelled by an equal negative margin, so nothing on the page moves. */
  html.reveal-on :is(.hero__title, .statement__title, .chapter__statement-wrap)[data-reveal] {
    padding-block: 20px;
    margin-block: -20px;
  }

  /* -- 2. Photos develop: a dark plate the light burns away -------------------------------------- */
  /* zero specificity: the plate needs a positioned box, but an element's own position (the night backdrop is
     absolute, the porthole sticky) must win — this rule once pulled the moon backdrop into the flow */
  :where(html.reveal-on [data-reveal='photo']) { position: relative; }
  html.reveal-on [data-reveal='photo']:not(.is-done)::after {
    content: '';
    position: absolute; inset: 0; z-index: 2;
    border-radius: inherit;
    background: #0c0c0c;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(circle at var(--lx, 0px) var(--ly, 50%), transparent calc(var(--lit) - var(--soft, 260px)), rgb(0 0 0 / 0.92) var(--lit));
            mask-image: radial-gradient(circle at var(--lx, 0px) var(--ly, 50%), transparent calc(var(--lit) - var(--soft, 260px)), rgb(0 0 0 / 0.92) var(--lit));
    transition: --lit var(--dur, 1.3s) cubic-bezier(0.3, 0.05, 0.2, 1) var(--delay, 0ms);
  }
  html.reveal-on [data-reveal='photo'].is-lit::after { --lit: var(--lit-max, 2400px); }
  .statement__photo, .contact-aside__photo { border-radius: var(--radius-lg); }
  .chapter__band { border-radius: var(--radius-lg); }

  /* -- 3. Every i is a bulb (|idots) ------------------------------------------------------------- */
  .idot { position: relative; }
  .idot__g {
    position: absolute;
    left: var(--dot-left); top: var(--dot-top);   /* measured per font (see the --dot-* tokens) */
    width: 0.28em; height: 0.405em;
    pointer-events: none;
    opacity: 0;
    scale: 0.6;
    transform-origin: 50% 100%;
    transition: opacity 0.18s ease, scale 0.3s var(--ease-out);
  }
  .idot__g .bulb-glyph { color: var(--amber); filter: drop-shadow(0 0 0.12em color-mix(in srgb, var(--amber) 80%, transparent)); }
  /* lit: the letter's own dot goes out and the bulb flickers on in its place */
  :is(.site-nav a:hover, .site-nav a[aria-current='true'], .practice__link:hover, .site-footer__nav a:hover,
      .menu-sheet:popover-open .menu-sheet__link) .idot__l {
    -webkit-mask-image: linear-gradient(to bottom, transparent var(--dot-cut), #000 var(--dot-cut));
            mask-image: linear-gradient(to bottom, transparent var(--dot-cut), #000 var(--dot-cut));
  }
  :is(.site-nav a:hover, .site-nav a[aria-current='true'], .practice__link:hover, .site-footer__nav a:hover,
      .menu-sheet:popover-open .menu-sheet__link) .idot__g {
    opacity: 1; scale: 1;
    animation: idot-on 0.48s steps(1, end) both;
  }
  :is(.site-nav a, .practice__link, .site-footer__nav a, .menu-sheet__link) .idot:nth-of-type(2) .idot__g { animation-delay: 70ms; }
  :is(.site-nav a, .practice__link, .site-footer__nav a, .menu-sheet__link) .idot:nth-of-type(3) .idot__g { animation-delay: 140ms; }
  :is(.site-nav a, .practice__link, .site-footer__nav a, .menu-sheet__link) .idot:nth-of-type(4) .idot__g { animation-delay: 210ms; }
  .site-nav a[aria-current='true'] .idot__g { animation: none; }
  @keyframes idot-on {
    0% { opacity: 0; } 18% { opacity: 0.85; } 30% { opacity: 0.15; } 48% { opacity: 1; } 62% { opacity: 0.45; } 78%, 100% { opacity: 1; }
  }

  /* -- 4. Amber buttons: the cursor is the filament ----------------------------------------------- */
  .btn-amber, .intake .fui-submit {
    background-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #fff1c2 0, rgb(255 236 170 / 0.85) calc(var(--hot) * 0.35), rgb(255 226 140 / 0) var(--hot));
    transition: --hot 0.4s var(--ease-out), box-shadow 0.35s var(--ease-out), translate 0.15s var(--ease-out);
  }
  .btn-amber:hover, .btn-amber:focus-visible, .intake .fui-submit:hover, .intake .fui-submit:focus-visible {
    --hot: 110px;
    box-shadow: 0 14px 30px -14px color-mix(in srgb, #f5a400 85%, transparent);
  }
  .btn-amber:active, .intake .fui-submit:active { --hot: 40px; translate: 0 1px; transition-duration: 0.08s; }
  [data-theme='night'] .btn-amber:hover, html[data-scheme='dark'] .btn-amber:hover {
    box-shadow: 0 0 34px -6px color-mix(in srgb, var(--amber) 75%, transparent);   /* on a dark ground the button glows */
  }

  /* -- 5. The wire: underlines a current runs along ----------------------------------------------- */
  .wire > span:not(.idot), a.wire:not(.btn-ghost) {
    text-decoration: none;
    background-image:
      linear-gradient(90deg, transparent, var(--amber) 40%, #fff3c8 50%, var(--amber) 60%, transparent),
      linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-size: 45% 2px, 100% 1px;
    background-position: -120% 100%, 0 100%;
    padding-bottom: 0.18em;
  }
  .site-footer__nav a.wire { background-size: 45% 2px, 0 1px; transition: background-size 0.3s var(--ease-out); }
  .wire:hover > span:not(.idot), a.wire:not(.btn-ghost):hover {
    background-size: 45% 2px, 100% 1px;
    animation: wire-current 0.7s cubic-bezier(0.3, 0, 0.3, 1) both;
  }
  @keyframes wire-current { from { background-position: -120% 100%, 0 100%; } to { background-position: 230% 100%, 0 100%; } }

  /* -- 6. Torches: the cursor carries a little light over content (never over the nav) ---------- */
  .practice__link { position: relative; isolation: isolate; }
  .practice__link::before {
    content: ''; position: absolute; inset: 0; z-index: -1;   /* wider only where the page margin can take it (below) */
    background: radial-gradient(circle 300px at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--amber) 18%, transparent), transparent 70%);
    opacity: 0; transition: opacity 0.35s var(--ease-out);
    pointer-events: none;
  }
  .practice__link:hover::before { opacity: 1; }
  @media (width >= 1200px) { .practice__link::before { inset: 0 calc(-1 * var(--s-24)); } }
  .practice__name { transition: translate 0.35s var(--ease-out); }
  .practice__link:hover .practice__name { translate: 6px 0; }
  /* Photos: hover switches a lamp on above them — a warm wash from the top edge while the picture eases a
     little closer. Nothing follows the cursor (the client's call, 2026-10-12). */
  [data-lamp] { position: relative; overflow: hidden; }
  [data-lamp] img { transition: scale 0.9s var(--ease-out); }
  [data-lamp]:hover img { scale: 1.035; }
  [data-lamp]::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    border-radius: inherit;
    background: linear-gradient(to bottom, rgb(255 214 120 / 0.5), rgb(255 190 80 / 0.14) 45%, transparent 75%);
    mix-blend-mode: screen;
    opacity: 0; transition: opacity 0.6s var(--ease-out);
    pointer-events: none;
  }
  [data-lamp]:hover::before { opacity: 1; }

  /* -- 7. Phone menu: lights out --------------------------------------------------------------- */
  .menu-sheet {
    position: fixed; inset: 0;
    width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0;
    padding: 0 var(--gutter) var(--s-36);
    border: 0;
    background: var(--night); color: var(--on-night);
    display: none; flex-direction: column;
    clip-path: circle(0 at calc(100% - var(--gutter) - 44px) calc(var(--header-h) / 2));
    transition: clip-path 0.55s cubic-bezier(0.7, 0, 0.2, 1), display 0.55s allow-discrete, overlay 0.55s allow-discrete;
  }
  .menu-sheet:popover-open {
    display: flex;
    clip-path: circle(150vmax at calc(100% - var(--gutter) - 44px) calc(var(--header-h) / 2));
  }
  @starting-style {
    .menu-sheet:popover-open { clip-path: circle(0 at calc(100% - var(--gutter) - 44px) calc(var(--header-h) / 2)); }
  }
  .menu-sheet__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; flex: none; }
  .menu-sheet__logo { display: block; height: 30px; color: var(--on-night); line-height: 0; }
  .menu-sheet__close {
    display: inline-flex; align-items: center; gap: var(--s-6);
    min-height: 44px; padding: 0 var(--s-12);
    background: none; border: 1px solid color-mix(in srgb, var(--on-night) 45%, transparent); border-radius: var(--radius);
    color: var(--on-night); font-size: var(--fs-small); font-weight: 600;
  }
  .menu-sheet__nav { margin-top: var(--s-36); flex: 1; }
  .menu-sheet__nav ul { list-style: none; padding: 0; display: grid; }
  .menu-sheet__link {
    display: block; padding: var(--s-12) 0;
    font-size: clamp(30px, 8.5vw, 40px); font-weight: 500; line-height: 1.15; letter-spacing: var(--track-display);
    color: var(--on-night); text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--on-night) 14%, transparent);
  }
  .menu-sheet:popover-open .menu-sheet__nav li { animation: menu-in 0.5s var(--ease-out) both; }
  .menu-sheet:popover-open .menu-sheet__nav li:nth-child(2) { animation-delay: 60ms; }
  .menu-sheet:popover-open .menu-sheet__nav li:nth-child(3) { animation-delay: 120ms; }
  .menu-sheet:popover-open .menu-sheet__nav li:nth-child(4) { animation-delay: 180ms; }
  .menu-sheet:popover-open .menu-sheet__nav li:nth-child(5) { animation-delay: 240ms; }
  .menu-sheet:popover-open .menu-sheet__nav li:nth-child(6) { animation-delay: 300ms; }
  /* the links' bulbs switch on one after another, after the sheet has opened */
  .menu-sheet:popover-open .menu-sheet__nav li .idot__g { animation-delay: calc(260ms + var(--menu-i, 0) * 90ms); }
  .menu-sheet__nav li:nth-child(2) { --menu-i: 1; } .menu-sheet__nav li:nth-child(3) { --menu-i: 2; }
  .menu-sheet__nav li:nth-child(4) { --menu-i: 3; } .menu-sheet__nav li:nth-child(5) { --menu-i: 4; }
  .menu-sheet__nav li:nth-child(6) { --menu-i: 5; }
  /* the links are not raised in: they wait dim and come on, like everything the light reaches */
  @keyframes menu-in { from { opacity: 0.1; } }
  .menu-sheet__foot { display: grid; gap: var(--s-18); justify-items: start; }
  .menu-sheet__meta { color: var(--on-night-2); font-size: var(--fs-caption); }
  .menu-sheet::backdrop { background: transparent; }

  /* -- Reduced motion: the light is simply on ---------------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .idot__g { transition: none; animation: none !important; }
    .btn-amber, .intake .fui-submit, .practice__name, .practice__link::before, [data-lamp]::before, [data-lamp] img { transition: none; }
    [data-lamp]:hover img { scale: none; }
    .practice__link:hover .practice__name { translate: none; }
    .wire:hover > span:not(.idot), a.wire:not(.btn-ghost):hover { animation: none; }
    .menu-sheet, .menu-sheet:popover-open .menu-sheet__nav li { transition: none; animation: none; }
  }
}
