/* ============================================================
   Synergy Sales Group: core.css  ("The instrument room")
   Tokens, type roles, shared classes, the lamp, the stage,
   the frame and the Menu overlay.

   House rules this file keeps (DESIGN.md):
   - one type family (Marcellus), weight 400 everywhere
   - one text colour (bone, and bone-2 for secondary text); gold is only for 1px rules and
     underlines, focus and hover rings, the current index tick, and the lamp
   - no boxes: no filled or outlined rectangles, no plates behind labels
   - one left edge (--pad); gaps of 8, 16, 24, 40 or 64px only
   - no capitals as a style and no tracking: every size is sentence case with tracking 0
   - text sizes: 16px notes; 18px body, controls and links; then the role classes
   Page files use these tokens and classes and never write a raw colour or a font name.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* ground */
  --ink: #0b0907;             /* page ground: warm near-black */
  --ink-2: #15120e;           /* raised surface on ink: menu overlay, dialogs */
  --ledger: #1a150f;          /* working-screen ground: dark walnut */
  --ledger-2: #231c14;        /* raised surface on ledger */
  /* text */
  --bone: #f2ecdf;            /* all text */
  --bone-rgb: 242 236 223;
  --bone-2: rgb(242 236 223 / 0.68);   /* secondary text */
  --bone-3: rgb(242 236 223 / 0.16);   /* the rare 1px rule */
  /* light */
  --gold: #d4af37;            /* 1px underlines, rules, focus ring, current tick */
  --gold-hi: #f3dc8a;         /* hover and lit state */
  --glow: 255 190 104;        /* rgb triplet of lamp light, for rgb(var(--glow) / a) */
  --glow-text: 0 0 28px rgb(var(--glow) / 0.40);
  --glow-box: 0 0 0 1px rgb(var(--glow) / 0.30), 0 0 38px rgb(var(--glow) / 0.26);
  /* rgb triplet of ink, for alpha mixes (must match --ink by hand) */
  --ink-rgb: 11 9 7;
  --line: rgb(var(--bone-rgb) / 0.38);   /* the bottom rule of a form control (3:1 on both grounds) */
  --ring: rgb(var(--bone-rgb) / 0.55);   /* the outline of a round control at rest */
  /* keeps text readable over a lit picture: a close dark halo in three layers (never a plate) */
  --shade: 0 0 2px rgb(var(--ink-rgb) / 0.85), 0 0 10px rgb(var(--ink-rgb) / 0.8), 0 1px 24px rgb(var(--ink-rgb) / 0.9);
  --no-shade: 0 0 0 transparent;         /* a shadow that draws nothing (safe inside a list of shadows) */
  --frame-shade: var(--no-shade);        /* the halo of the frame's words: on only over a picture (see 7) */
  /* the down chevron of a select (bone, drawn here so the control needs no box) */
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2ecdf' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  /* the arrow inside the round control of .btn (a mask: it takes the text colour) */
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15M13.5 6l6 6-6 6'/%3E%3C/svg%3E");
  /* the stage: the index ticks live in the right margin; text keeps 40px clear of them */
  --index-edge: 12px;                    /* from the window's right edge to the ticks */
  --index-tick: 20px;                    /* the longest tick (the current one) */
  --stage-r: max(calc(var(--pad) + var(--s3)), calc(var(--index-edge) + var(--index-tick) + var(--s4)));
  /* type */
  --font: "Marcellus", "Trajan Pro", Georgia, serif;
  /* space: the only gaps */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px;
  --pad: clamp(20px, 4vw, 56px);   /* the one left edge */
  --frame-h: 68px;
  /* motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-ui: 0.3s;
  --t-scene: 0.9s;
}
html[data-theme="night"],  [data-theme="night"]  { --ground: var(--ink);    --surface: var(--ink-2); }
html[data-theme="ledger"], [data-theme="ledger"] { --ground: var(--ledger); --surface: var(--ledger-2); }
html { --ground: var(--ink); --surface: var(--ink-2); }

/* ---------- 2. Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  background: var(--ground);
  scrollbar-color: rgb(var(--bone-rgb) / 0.26) transparent;
  scrollbar-width: thin;
}
body {
  margin: 0;
  min-height: 100svh;
  background: var(--ground);
  color: var(--bone);
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--gold);
  accent-color: var(--gold);
  overflow-x: hidden;
  transition: background-color var(--t-ui) ease;
}
h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
h1, h2, h3, h4, h5 { font-size: inherit; font-weight: inherit; }
ul, ol { padding: 0; list-style: none; }
img, video, svg, canvas, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; border-radius: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; text-decoration: none; }
b, strong, em, i, cite, dfn, th { font-weight: 400; font-style: normal; }
[hidden] { display: none !important; }
::selection { background: rgb(var(--glow) / 0.34); color: var(--bone); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgb(var(--bone-rgb) / 0.26); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
html:has(dialog[open]) { overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* Skip link: plain words that appear under the wordmark when focused */
.skip {
  position: fixed; left: var(--pad); top: var(--frame-h); z-index: 200;
  padding: 8px 0; font-size: 1.125rem; color: var(--bone);
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 6px;
  text-shadow: var(--shade);
  opacity: 0; pointer-events: none;
}
.skip:focus-visible { opacity: 1; pointer-events: auto; }
.noscript { padding: calc(var(--frame-h) + var(--s3)) var(--pad) var(--s4); max-width: 60ch; }
/* The page's words as plain HTML, written into <main> by tools/build-seo.mjs so that search engines
   and AI crawlers that do not run JavaScript can read them. The page script replaces this block
   the moment it runs. It is hidden only while that script is loading (html.js-loading, set and
   cleared by a small inline script): with JavaScript off, or if the script fails, it is the page. */
.pre { padding: calc(var(--frame-h, 4rem) + var(--s3)) var(--pad) var(--s4); max-width: 70ch; }
html.js-loading .pre { display: none; }
.pre :is(h1, h2, h3) { font-weight: 400; margin: var(--s4) 0 var(--s2); }
.pre :is(p, ul, ol, dl) { margin: 0 0 var(--s2); }
.pre dt { margin-top: var(--s2); }
.pre dd { margin: 0; color: var(--bone-2); }

/* ---------- 3. Type roles ---------- */
.t-display {
  font-size: clamp(2.4rem, 5.6vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--bone);
  text-wrap: balance;
}
.t-title {
  font-size: clamp(1.6rem, 2.7vw, 2.5rem);
  line-height: 1.14;
  text-wrap: balance;
}
.t-figure {
  font-size: clamp(3rem, 6.4vw, 5.75rem);
  line-height: 1;
  color: var(--bone);
  text-shadow: var(--glow-text);   /* a faint warm glow; the colour stays bone */
}
.t-lead {
  font-size: clamp(1.1875rem, 1.45vw, 1.375rem);
  line-height: 1.5;
  max-width: 44ch;
  text-wrap: balance;   /* two even lines, never one word left alone on the last */
}
.t-body { font-size: 1.125rem; line-height: 1.6; max-width: 60ch; text-wrap: pretty; }
.t-small { font-size: 1rem; line-height: 1.5; color: var(--bone-2); }

/* ---------- 4. Shared classes ---------- */
/* Lucide icons: only ever inside a control */
.ico { width: 20px; height: 20px; flex: none; stroke-width: 1.5; }
/* If the icon script did not load, the placeholders still draw a chevron, a cross, pause or play. */
i[data-lucide] { display: inline-block; position: relative; width: 20px; height: 20px; flex: none; }
i[data-lucide^="chevron"]::before, i[data-lucide^="arrow"]::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px;
  border: solid currentColor; border-width: 1.5px 1.5px 0 0;
  transform: translate(-50%, -30%) rotate(-45deg);
}
i[data-lucide$="-down"]::before { transform: translate(-50%, -70%) rotate(135deg); }
i[data-lucide$="-left"]::before { transform: translate(-30%, -50%) rotate(-135deg); }
i[data-lucide$="-right"]::before { transform: translate(-70%, -50%) rotate(45deg); }
i[data-lucide="x"]::before, i[data-lucide="x"]::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
i[data-lucide="x"]::after { transform: translate(-50%, -50%) rotate(-45deg); }
i[data-lucide="pause"]::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 12px;
  border: solid currentColor; border-width: 0 1.5px; transform: translate(-50%, -50%);
}
i[data-lucide="play"]::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  border: solid transparent; border-width: 6px 0 6px 10px; border-left-color: currentColor;
  transform: translate(-40%, -50%);
}

/* The one button: a plain label, then a small round outlined circle holding an arrow.
   No fill, no border, no padding box. The markup is just <a class="btn">Book the teardown</a>
   or <button class="btn">Send my request</button>. */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 44px; padding: 0; margin: 0;
  background: none; border: 0; border-radius: 0;
  color: var(--bone);
  font-family: var(--font); font-size: 1.125rem; font-weight: 400; line-height: 1.2;
  text-align: left; text-decoration: none; white-space: nowrap;
  cursor: pointer;
}
.btn::after {
  content: ""; flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--ring);
  transition: border-color var(--t-ui) ease, box-shadow var(--t-ui) ease;
}
.btn::before {
  content: ""; position: absolute; right: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
  transition: transform var(--t-ui) var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { border-color: var(--gold-hi); box-shadow: var(--glow-box); }
.btn:hover::before, .btn:focus-visible::before { transform: translateX(3px); }
.btn--down::before { transform: rotate(90deg); }
.btn--down:hover::before, .btn--down:focus-visible::before { transform: translateY(3px) rotate(90deg); }
.btn[disabled], .btn[aria-disabled="true"] { color: rgb(var(--bone-rgb) / 0.45); cursor: default; }   /* dimmed by colour, not opacity: the focus ring stays at full strength */
.btn[disabled]::after, .btn[aria-disabled="true"]::after { border-color: rgb(var(--bone-rgb) / 0.25); box-shadow: none; }
.btn[disabled]::before, .btn[aria-disabled="true"]::before { transform: none; }

/* Text link (and the quiet button, which looks exactly like it). A link that stands alone is
   18px like every control; a link inside a sentence takes the size of its sentence. */
.link, .btn--quiet {
  color: inherit; font-size: 1.125rem; font-weight: 400;
  text-decoration: underline; text-decoration-color: var(--gold);
  text-decoration-thickness: 1px; text-underline-offset: 6px;
  transition: text-decoration-color var(--t-ui) ease, text-shadow var(--t-ui) ease;
}
button.link { line-height: 1.5; }
:is(.t-small, .t-body, .t-lead, label) .link { font-size: inherit; }
.link:hover, .link:focus-visible, .btn--quiet:hover, .btn--quiet:focus-visible { text-decoration-color: var(--gold-hi); text-shadow: var(--glow-text); }
.btn--quiet { display: inline-flex; align-items: center; min-height: 44px; padding: 0; line-height: 1.25; color: var(--bone); white-space: normal; }
.btn--quiet::before, .btn--quiet::after { content: none; }
/* Fingers (and any small screen): a link that stands alone is 44px tall; a link inside a
   sentence keeps its line and gets the same reach from padding that takes no room. */
@media (pointer: coarse), (max-width: 699.98px) {
  .link { display: inline-flex; align-items: center; min-height: 44px; }
  :is(.t-small, .t-body, .t-lead, label) .link { display: inline; min-height: 0; padding-block: 16px; margin-block: -16px; }
}

/* A scene's actions: one .btn, then at most one .link, on one line that may wrap. */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s4); }

/* A round icon button (the only circles on the site) */
.icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--ring); color: var(--bone); background: none;
  transition: border-color var(--t-ui) ease, box-shadow var(--t-ui) ease, opacity var(--t-ui) ease;
}
.icon-btn:hover, .icon-btn:focus-visible { border-color: var(--gold-hi); box-shadow: var(--glow-box); }
/* A step that has nowhere to go (previous on the first scene, next on the last) is dimmed by
   colour, not by opacity, so its focus ring is still drawn at full strength. */
.icon-btn[disabled], .icon-btn[aria-disabled="true"] { color: rgb(var(--bone-rgb) / 0.35); border-color: rgb(var(--bone-rgb) / 0.2); cursor: default; box-shadow: none; }

/* One plain line of facts: <p class="facts"><span>Revenue Build from $15,000</span><span>About 90 days</span></p> */
.facts { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); align-items: baseline; font-size: 1.125rem; line-height: 1.5; }
.facts > * { white-space: nowrap; }
@media (max-width: 699.98px) {
  .facts > * { white-space: normal; }   /* a long fact wraps on a phone instead of running off the edge */
}

/* Price list with dotted leaders; amounts align right:
   <dl class="leaders"><div><dt><span>Teardown</span><span class="leaders__detail">one week</span></dt><dd>$2,500</dd></div> … </dl> */
.leaders { display: grid; gap: var(--s1); width: 100%; max-width: 31rem; font-size: 1.125rem; line-height: 1.5; container-type: inline-size; }
.leaders > div { display: flex; align-items: baseline; gap: var(--s1); }
.leaders dt { flex: 1 1 auto; display: flex; align-items: baseline; gap: var(--s1); min-width: 0; }
.leaders dt::after {
  content: ""; flex: 1 1 24px; min-width: 24px;
  border-bottom: 1px dotted rgb(var(--bone-rgb) / 0.34);
  transform: translateY(-0.28em);
}
.leaders__detail { color: var(--bone-2); font-size: 1rem; white-space: nowrap; }
.leaders dd { flex: none; text-align: right; white-space: nowrap; }
.leaders > .leaders__total { margin-top: var(--s1); padding-top: var(--s2); border-top: 1px solid var(--bone-3); }
.leaders > .leaders__total dt::after { border-bottom-color: transparent; }
/* A narrow column (a phone, or a short list beside a picture): the name and its leader keep
   the first line and the detail goes under the name. Asked of the list's own width; the
   window-width rule after it is for browsers without container queries. */
@container (max-width: 25rem) {
  .leaders dt { flex-wrap: wrap; row-gap: 0; }
  .leaders dt::after { flex: 1 1 0; }
  .leaders__detail { order: 1; flex: 0 0 100%; }
}
@media (max-width: 479.98px) {
  .leaders dt { flex-wrap: wrap; row-gap: 0; }
  .leaders dt::after { flex: 1 1 0; }
  .leaders__detail { order: 1; flex: 0 0 100%; }
}

/* Plain rows: a name on the left, one line on the right. No rules between them.
   <ul class="rows"><li><span class="rows__name">The slow first call</span><span class="rows__line">A lead comes in at 7 pm.</span></li> … </ul> */
.rows { display: grid; gap: var(--s3); width: 100%; max-width: 62rem; }
.rows > li { display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); column-gap: var(--s4); align-items: baseline; }
.rows__name { font-size: clamp(1.1875rem, 1.45vw, 1.375rem); line-height: 1.4; }
.rows__line { font-size: 1.125rem; line-height: 1.5; color: var(--bone-2); max-width: 52ch; text-wrap: pretty; }
@media (max-width: 699.98px) {
  .rows > li { grid-template-columns: minmax(0, 1fr); }
}

/* Two short plain lists side by side, each under a small heading.
   <div class="lists"><div><h3 class="lists__name">Always</h3><ul><li>…</li></ul></div> … </div> */
.lists { display: grid; grid-template-columns: repeat(2, minmax(0, 26rem)); gap: var(--s3) var(--s5); width: 100%; }
.lists__name { font-size: clamp(1.1875rem, 1.45vw, 1.375rem); line-height: 1.4; margin-bottom: var(--s1); }
.lists ul { display: grid; gap: var(--s1); }
.lists li { font-size: 1.125rem; line-height: 1.5; color: var(--bone-2); text-wrap: pretty; }
@media (max-width: 699.98px) {
  .lists { grid-template-columns: minmax(0, 1fr); }
}

/* A choice shown as plain words; the chosen word carries a gold underline:
   <div class="choice" role="radiogroup" aria-label="Setup">
     <label><input type="radio" name="setup" value="a" checked><span>Word</span></label> … </div>
   (also works with checkboxes, <button aria-pressed> or role="radio" aria-checked children) */
.choice { display: flex; flex-wrap: wrap; gap: 0 var(--s3); align-items: baseline; }
.choice label { position: relative; cursor: pointer; display: inline-flex; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice label > span, .choice > button, .choice > [role="radio"] {
  display: inline-block; padding: 8px 0; min-height: 44px;
  font-size: 1.125rem; font-weight: 400; line-height: 1.5; color: var(--bone-2);
  border-bottom: 1px solid transparent;
  transition: color var(--t-ui) ease, border-color var(--t-ui) ease;
}
.choice label:hover > span, .choice > button:hover, .choice > [role="radio"]:hover { color: var(--bone); }
.choice input:checked + span, .choice > [aria-pressed="true"], .choice > [aria-checked="true"] {
  color: var(--bone); border-bottom-color: var(--gold);
}
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.choice input:disabled + span { opacity: 0.4; cursor: default; }

/* Field: label above, control with only a bottom rule */
.field { display: grid; gap: 0; min-width: 0; }
.field > label, .field__label { font-size: 1rem; line-height: 1.5; color: var(--bone-2); }
.field input:not([type="checkbox"], [type="radio"], [type="range"]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 8px 0;
  background-color: transparent; color: var(--bone);
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  font-size: 1.125rem;
  transition: border-color var(--t-ui) ease, box-shadow var(--t-ui) ease;
}
.field textarea { min-height: 112px; resize: none; line-height: 1.5; }
/* A select has no box of its own: its value starts on the left edge like every other line,
   and a small chevron marks it on the right. */
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 24px;
  background-image: var(--chevron); background-repeat: no-repeat;
  background-position: right 2px center; background-size: 18px 18px;
  text-overflow: ellipsis;
  cursor: pointer;
}
.field :is(input, select, textarea):hover { border-bottom-color: var(--bone-2); }
/* Keyboard focus: the same 2px gold ring as every other control. */
.field :is(input, select, textarea):focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-bottom-color: var(--gold);
}
/* A field you clicked or tapped into is marked by a heavier gold rule, not by a ring
   (chrome.js sets data-input="pointer" or "keys" on <html> from the last thing used). */
html[data-input="pointer"] .field :is(input, select, textarea):focus-visible {
  outline: none; box-shadow: 0 2px 0 0 var(--gold);
}
.field ::placeholder { color: var(--bone-2); opacity: 1; }
select option, select optgroup { background: var(--ink-2); color: var(--bone); }
/* the browser's own autofill tint is a filled box: keep the field plain */
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--bone); caret-color: var(--gold);
  transition: background-color 99999s ease 99999s;
}

/* Panel: the working surface (a ground, never a bordered box) */
.panel {
  --ground: var(--ledger); --surface: var(--ledger-2);
  background: var(--ledger); color: var(--bone); padding: var(--pad);
}

/* Inner scroller the stage respects */
[data-scroll] { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgb(var(--bone-rgb) / 0.26) transparent; }

/* The logo. Never restyle, recolour or stretch it. */
.brand { display: block; height: auto; max-width: 100%; user-select: none; -webkit-user-drag: none; }
/* 30px tall where there is room; in a narrow frame (a phone) it scales down whole, so the frame's
   links are never pushed off the screen */
/* The header logo is meant to be remembered: as tall as the frame allows, on every page. */
.brand--wordmark { width: auto; height: auto; max-height: clamp(40px, 3.9vw, 56px); }
.brand-picture { display: block; line-height: 0; }
@media (max-width: 699.98px) { .brand--wordmark { max-height: 44px; } }
.brand-word { display: block; font-size: 1.125rem; line-height: 1.4; white-space: nowrap; }
/* The full logo: gold on near-black artwork with no transparency. It is shown with a screen
   blend so its black falls away into the dark picture behind it, a soft mask takes its edges
   out, and a faint warm backlight sits behind it. */
.lockup { position: relative; display: block; width: clamp(280px, 52vw, 620px); max-width: 100%; }
/* behind it: the picture is taken down so the gold reads, then a faint warm backlight */
.lockup::before {
  content: ""; position: absolute; inset: -40% -26%; pointer-events: none;
  background:
    radial-gradient(closest-side, rgb(var(--glow) / 0.13), rgb(var(--glow) / 0.05) 50%, transparent 82%),
    radial-gradient(closest-side, rgb(var(--ink-rgb) / 0.86), rgb(var(--ink-rgb) / 0.62) 55%, transparent 100%);
}
.brand--lockup {
  position: relative; width: 100%;
  mix-blend-mode: screen;
  /* the lettering runs close to the artwork's sides, so only the outer edge is faded */
  --_m: var(--ink);   /* any opaque colour: a mask only reads its alpha */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, var(--_m) 7%, var(--_m) 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, var(--_m) 8%, var(--_m) 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, var(--_m) 7%, var(--_m) 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, var(--_m) 8%, var(--_m) 92%, transparent 100%);
  mask-composite: intersect;
}
/* whatever follows the logo in its block (the line, the actions) paints above its backlight */
.lockup ~ * { position: relative; }
.brand-name { display: block; }

/* ---------- 5. Media and the lamp ---------- */
.media { position: relative; overflow: hidden; background: var(--ink); }
.media > img, .media > video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; max-width: none;
}
.media > video { pointer-events: none; }

/* Every full-bleed picture is dark until the light is on it.
   --lx / --ly: where the pool is (motion.js writes them on each .lamp).
   --lr: the pool's radius in px, on <html>; 0 = lights out (the stage animates it). Fully on it
   is 24vmax, but never less than 420px (300px on a phone), so a picture reads as a lit room and
   not as a spot. Outside the pool the picture is still 28% visible (the floor is 0.72). */
.media--lamp { isolation: isolate; }
.lamp {
  --_r: var(--lr, max(24vmax, 420px));
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(
    circle at var(--lx, 50%) var(--ly, 42%),
    transparent 0,
    transparent calc(var(--_r) * 0.35),
    rgb(var(--ink-rgb) / 0.08) calc(var(--_r) * 0.46),
    rgb(var(--ink-rgb) / 0.24) calc(var(--_r) * 0.58),
    rgb(var(--ink-rgb) / 0.44) calc(var(--_r) * 0.72),
    rgb(var(--ink-rgb) / 0.60) calc(var(--_r) * 0.86),
    rgb(var(--ink-rgb) / 0.72) var(--_r)
  );
}
@media (max-width: 699.98px) {
  .lamp { --_r: var(--lr, max(24vmax, 300px)); }
}
/* the warm cast of the light (::before, so that the shade behind a scene's words, ::after in
   section 6, lies over it) */
.lamp::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(
    circle at var(--lx, 50%) var(--ly, 42%),
    rgb(var(--glow) / 0.16),
    rgb(var(--glow) / 0.07) calc(var(--_r) * 0.45),
    transparent calc(var(--_r) * 0.9)
  );
  mix-blend-mode: screen;
}
/* A plain surface that takes a faint share of the light (the Menu, the lead demo sheet) */
[data-lamp-follow] {
  background-image: radial-gradient(
    circle at var(--lx, 50%) var(--ly, 42%),
    rgb(var(--glow) / 0.075),
    rgb(var(--glow) / 0.03) 22vmax,
    transparent 46vmax
  );
}

/* The one small line on a picture of client work ("AI concept film for a client"): plain
   sentence-case words, bottom-left on the left edge, no plate behind them. (On the stage it
   sits on the bottom line, after the readout that already starts there; see 6.) */
.film-tag {
  position: absolute; left: var(--pad); bottom: var(--s3); z-index: 2;
  font-size: 1rem; line-height: 1.5; font-weight: 400; color: var(--bone-2);
  text-shadow: var(--shade);
  pointer-events: none;
}
/* A film outside a stage (the console pages) carries its own pause button, bottom-right. */
.media__pause { position: absolute; right: var(--s3); bottom: var(--s3); z-index: 3; }
.media__pause .ico { filter: drop-shadow(0 1px 5px rgb(var(--ink-rgb) / 0.9)); }

/* ---------- 6. Stage and scenes ---------- */
/* stage.js adds .stage to the root, and to <html> either .has-stage (a window at least 700px
   wide and 560px high: one scene at a time, the page never scrolls) or .has-flow (smaller:
   scenes are normal blocks and the page scrolls). The breakpoint lives in stage.js only. */
/* A scene carries its own ground, so it is right in the stage and in normal flow. */
.scene {
  position: relative;
  min-height: 100svh;
  background: var(--ground);
  color: var(--bone);
  overflow: clip;
}
.scene:focus, .scene:focus-visible { outline: none; }
.scene__media { position: absolute; inset: 0; z-index: 0; }
.scene__media > .media { position: absolute; inset: 0; }
/* Two soft shades lie over every scene picture, above the lamp. They fade out and have no edge.

   1. Along the bottom: the readout, the picture's label and the round steps sit on dark
      wherever the light is. */
.scene__media > .media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top,
      rgb(var(--ink-rgb) / 0.86) 0,
      rgb(var(--ink-rgb) / 0.84) 56px,
      rgb(var(--ink-rgb) / 0.42) 20%,
      transparent 40%);
}
/* 2. Behind the scene's words, and only there. stage.js measures the box around every line and
      control of the scene's block and writes it on the picture (--shade-l, -t, -r, -b: px
      inside the picture). Inside that box the picture is held to about a third of its light,
      wherever the lamp is: a flat shade, plus a second one that follows the lamp and is strongest
      at the centre of its pool, where the lamp's own darkness is least. So under the words the
      picture is evenly dim (never more than 34% of the film shows, which keeps bone text above
      5:1 even on a white part of it; measured on the site's films the worst is 5.6:1), and
      everywhere else the light is untouched. Past the box the shade fades out over --shade-f.
      The numbers belong together: if the lamp's own stops (section 5) change, change these. */
.scene__media .lamp::after {
  content: ""; position: absolute; inset: 0;
  --sl: var(--shade-l, -400px); --st: var(--shade-t, 46%);
  --sr: var(--shade-r, 58%); --sb: var(--shade-b, 200%);
  --sf: var(--shade-f, clamp(88px, 11vmax, 176px));
  background:
    radial-gradient(circle at var(--lx, 50%) var(--ly, 42%),
      rgb(var(--ink-rgb) / 0.485) 0,
      rgb(var(--ink-rgb) / 0.485) calc(var(--_r) * 0.35),
      rgb(var(--ink-rgb) / 0.44) calc(var(--_r) * 0.46),
      rgb(var(--ink-rgb) / 0.32) calc(var(--_r) * 0.58),
      rgb(var(--ink-rgb) / 0.08) calc(var(--_r) * 0.72),
      rgb(var(--ink-rgb) / 0) calc(var(--_r) * 0.80)),
    linear-gradient(rgb(var(--ink-rgb) / 0.34), rgb(var(--ink-rgb) / 0.34));
  --mask-x: linear-gradient(to right,
      rgb(0 0 0 / 0) calc(var(--sl) - var(--sf)),
      rgb(0 0 0 / 0.10) calc(var(--sl) - var(--sf) * 0.75),
      rgb(0 0 0 / 0.50) calc(var(--sl) - var(--sf) * 0.45),
      rgb(0 0 0 / 0.88) calc(var(--sl) - var(--sf) * 0.16),
      rgb(0 0 0 / 1) var(--sl), rgb(0 0 0 / 1) var(--sr),
      rgb(0 0 0 / 0.88) calc(var(--sr) + var(--sf) * 0.16),
      rgb(0 0 0 / 0.50) calc(var(--sr) + var(--sf) * 0.45),
      rgb(0 0 0 / 0.10) calc(var(--sr) + var(--sf) * 0.75),
      rgb(0 0 0 / 0) calc(var(--sr) + var(--sf)));
  --mask-y: linear-gradient(to bottom,
      rgb(0 0 0 / 0) calc(var(--st) - var(--sf)),
      rgb(0 0 0 / 0.10) calc(var(--st) - var(--sf) * 0.75),
      rgb(0 0 0 / 0.50) calc(var(--st) - var(--sf) * 0.45),
      rgb(0 0 0 / 0.88) calc(var(--st) - var(--sf) * 0.16),
      rgb(0 0 0 / 1) var(--st), rgb(0 0 0 / 1) var(--sb),
      rgb(0 0 0 / 0.88) calc(var(--sb) + var(--sf) * 0.16),
      rgb(0 0 0 / 0.50) calc(var(--sb) + var(--sf) * 0.45),
      rgb(0 0 0 / 0.10) calc(var(--sb) + var(--sf) * 0.75),
      rgb(0 0 0 / 0) calc(var(--sb) + var(--sf)));
  -webkit-mask-image: var(--mask-x), var(--mask-y);
  -webkit-mask-composite: source-in;
  mask-image: var(--mask-x), var(--mask-y);
  mask-composite: intersect;
}
/* A scene whose block is a list (prices, two lists) has many small lines, so on the stage its
   side of the picture is taken further down: the lit instrument stays on the right. (Stacked
   on a phone, the page's own CSS gives such a scene its picture as a band above the list.) */
@media (min-width: 700px) {
  .scene:has(.scene__text--wide) > .scene__media > .media::after {
    background:
      linear-gradient(to right,
        rgb(var(--ink-rgb) / 0.78) 0,
        rgb(var(--ink-rgb) / 0.62) 40%,
        transparent 78%),
      linear-gradient(to top,
        rgb(var(--ink-rgb) / 0.86) 0,
        rgb(var(--ink-rgb) / 0.84) 56px,
        rgb(var(--ink-rgb) / 0.45) 22%,
        transparent 48%);
  }
}
/* The text layer. Its one block sits bottom-left on the --pad edge. It comes after the picture
   in the markup, so it paints above it; it is deliberately NOT a stacking context of its own
   (no z-index), so the logo's screen blend reaches the picture underneath. */
.scene__body {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: calc(var(--frame-h) + var(--s3)) var(--pad) var(--s5);
}
.scene__media ~ .scene__body { text-shadow: var(--shade); }
.scene__media ~ .scene__body .t-figure { text-shadow: var(--glow-text), var(--shade); }
.scene__body :is(input, select, textarea) { text-shadow: none; }

/* The text block of a scene: one statement, one sentence, a facts line, the actions.
   The same skeleton in the same corner on every film scene, so the film is what changes. */
.scene__text {
  display: grid; justify-items: start; align-content: end; gap: var(--s3);
  width: 100%; max-width: 56rem;
}
.scene__text > * { min-width: 0; }
.scene__text > .t-display { max-width: 13.5em; }
.scene__text > .actions { margin-top: var(--s2); }
.scene__text > .t-small { max-width: 60ch; }
/* the cover: the one block that holds the centre */
.scene__text--center {
  margin: auto; justify-items: center; align-content: center; text-align: center;
  max-width: 100%;
}
.scene__text--center > .actions { justify-content: center; }
.scene__text--center > .t-lead { max-width: 40ch; }
/* rows, lists and the price list: the block may run wider */
.scene__text--wide { max-width: 68rem; }

/* Line masks used while text rises or falls (motion.js) */
.rt-line { will-change: transform; }
.rt-line-mask { padding-block: 0.16em; margin-block: -0.16em; }

html.has-stage, html.has-stage body { height: 100%; overflow: hidden; }
html.has-stage body { overflow: clip; } /* clip: a hidden body can still be scrolled by script */
html.has-stage .stage { position: fixed; inset: 0; overflow: clip; background: var(--ink); }
html.has-stage .stage > .scene {
  position: absolute; inset: 0; min-height: 0;
  visibility: hidden; opacity: 0;
}
html.has-stage .stage > .scene.scene--current { visibility: visible; opacity: 1; }
/* clear of the frame (top), the bottom line (readout and steps) and the index (right: text
   stops 40px short of the ticks, so a column of prices is never followed by a dash) */
html.has-stage .stage > .scene > .scene__body {
  min-height: 0; height: 100%;
  padding: calc(var(--frame-h) + var(--s2)) var(--stage-r) calc(var(--s5) + var(--s3)) var(--pad);
}
/* a centred block is centred on the window, not on what the index leaves over */
html.has-stage .stage > .scene > .scene__body:has(> .scene__text--center) { padding-right: var(--pad); }
/* a short window: the wide blocks close up so seven prices or five rows still fit */
@media (min-width: 700px) and (max-height: 760px) {
  html.has-stage .scene__text--wide { gap: var(--s2); }
  html.has-stage .scene__text--wide > .actions { margin-top: 0; }
  html.has-stage .scene__text--wide .rows { gap: var(--s2); }
  html.has-stage .scene__text--wide .leaders { gap: 0; }
}
@media (min-width: 700px) and (max-height: 680px) {
  html.has-stage .scene__text--wide .rows { gap: var(--s1); }
}
/* stage.js lifts a scene picture's label out of the picture and makes it a child of the scene:
   it then lies above every shade, bottom-left on the left edge. */
.scene > .film-tag { z-index: 3; }
/* On the stage the bottom line reads, from the left edge: readout, the picture's label; the
   steps are on the right. chrome.js writes the readout's width to --readout-w. */
html.has-stage .stage > .scene .film-tag {
  left: calc(var(--pad) + var(--readout-w, 13rem) + var(--s4)); bottom: 24px;
}

html.has-flow { scroll-snap-type: y proximity; }
html.has-flow .stage > .scene { scroll-snap-align: start; }

/* Stacked on a phone: a standard film scene (.scene--film, components.js) is a picture above and
   its words below. A phone's window is upright and the films are wide: laid full-bleed, the lit
   subject would land in the middle of the screen, under the statement. So the film takes the
   room the words leave (never less than a third of the screen), runs on 64px under the first
   line and fades into the ground there. The point of the film the light rests on (--film-x,
   --film-y, written by components.js from FILM) is kept in view, with the light on it.
   (A wide window that is only too low for the stage keeps the full-bleed scene and its shade.) */
@media (max-width: 699.98px) {
  html.has-flow .stage > .scene.scene--film {
    display: grid; grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(34svh, 1fr) auto;
  }
  /* (these two are written to outrank a page's own stacked layout for a film: the picture's
     box and the words' place are set here, once, for every standard film scene. A page may
     still set the film's object-position itself.) */
  html.has-flow .stage > .scene.scene--film > .scene__media {
    position: relative; inset: auto; grid-area: 1 / 1; height: auto;
    margin-bottom: calc(-1 * var(--s5));
    -webkit-mask-image: linear-gradient(to bottom, var(--ink) 0, var(--ink) 50%, rgb(var(--ink-rgb) / 0.6) 70%, rgb(var(--ink-rgb) / 0.2) 87%, transparent 100%);
    mask-image: linear-gradient(to bottom, var(--ink) 0, var(--ink) 50%, rgb(var(--ink-rgb) / 0.6) 70%, rgb(var(--ink-rgb) / 0.2) 87%, transparent 100%);
  }
  html.has-flow .stage > .scene.scene--film > .scene__body { grid-area: 2 / 1; min-height: 0; padding-top: 0; }
  html.has-flow .scene--film .media > video { object-position: var(--film-x, 50%) var(--film-y, 50%); }
  /* the picture ends in its own fade here, so it needs no shade along its bottom */
  html.has-flow .scene--film > .scene__media > .media::after { content: none; }
}

/* Scene index: short ticks in the right margin; the current one is gold */
.stage-index {
  position: fixed; right: 0; top: 50%; z-index: 60;
  transform: translateY(-50%);
  display: none; flex-direction: column; align-items: flex-end;
}
html.has-stage .stage-index { display: flex; }
/* Over a picture the ticks stand on a soft shade that hugs the window's right edge, so the
   gold one keeps 3:1 even on a lit page of the film. It has no edge and is not drawn on a
   plain ground. */
html.has-stage[data-theme="night"] .stage-index::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: calc(-1 * var(--s5)) 0 calc(-1 * var(--s5)) calc(-1 * var(--s5));
  background: linear-gradient(to left,
    rgb(var(--ink-rgb) / 0.76) 0,
    rgb(var(--ink-rgb) / 0.72) 34%,
    rgb(var(--ink-rgb) / 0.34) 66%,
    rgb(var(--ink-rgb) / 0) 100%);
  /* the same strength behind the first tick as behind the middle one; it fades out above and below */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, var(--ink) 52px, var(--ink) calc(100% - 52px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, var(--ink) 52px, var(--ink) calc(100% - 52px), transparent 100%);
}
.stage-index__tick {
  position: relative; display: flex; align-items: center; justify-content: flex-end;
  width: 44px; height: 44px; padding-right: var(--index-edge);   /* a full 44px target each */
}
.stage-index__tick:focus-visible { outline-offset: -3px; }
.stage-index__tick::before {
  content: ""; display: block; width: 10px; height: 1px;
  background: var(--bone-2);
  box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / 0.5), 0 0 8px 2px rgb(var(--ink-rgb) / 0.75);
  transform-origin: right center;
  transition: transform var(--t-ui) var(--ease), background-color var(--t-ui) ease;
}
.stage-index__tick:hover::before, .stage-index__tick:focus-visible::before { transform: scaleX(1.6); background: var(--bone); }
.stage-index__tick[aria-current="true"]::before {
  width: var(--index-tick); height: 2px; background: var(--gold);
}
.stage-index__tick[aria-current="true"]:hover::before, .stage-index__tick[aria-current="true"]:focus-visible::before { transform: none; background: var(--gold-hi); }
.stage-index__label {
  position: absolute; right: calc(var(--index-edge) + var(--index-tick) + var(--s2)); top: 50%;
  transform: translateY(-50%);
  font-size: 1rem; white-space: nowrap; color: var(--bone);
  text-shadow: var(--frame-shade);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-ui) ease;
}
.stage-index__tick:hover .stage-index__label, .stage-index__tick:focus-visible .stage-index__label { opacity: 1; }

/* ---------- 7. The frame ---------- */
/* Wordmark left; three plain text links right. No bar, no button. */
/* The frame's words carry the dark halo only where a picture lies under them: the stage on a
   night scene. On a plain ground the halo would only smudge, so it is off there. */
html.has-stage[data-theme="night"] { --frame-shade: var(--shade); }
.frame {
  position: fixed; inset: 0 0 auto 0; z-index: 70;
  height: var(--frame-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  padding: 0 var(--pad);
  pointer-events: none;
}
/* a soft scrim under the frame's words, the twin of the one along the bottom. It is all but
   gone where a scene's own words may begin (84px down), so a statement that stands right
   under the frame in a low window is not dimmed by it. */
.frame::before {
  content: ""; position: absolute; inset: 0 0 -44px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--ground) 86%, transparent) 0,
    color-mix(in srgb, var(--ground) 84%, transparent) 44px,
    color-mix(in srgb, var(--ground) 44%, transparent) 66px,
    color-mix(in srgb, var(--ground) 10%, transparent) 88px,
    transparent 112px);
}
/* when the page scrolls under it, the frame needs a solid footing that fades out below.
   (A page whose top is not the page ground may set --frame-ground on <html>.) */
html:not(.has-stage) .frame::before {
  background: linear-gradient(to bottom,
    var(--frame-ground, var(--ground)) 0,
    var(--frame-ground, var(--ground)) 64px,
    transparent 92px);
}
.frame > * { pointer-events: auto; }
.frame__brand:has(> .brand--wordmark) { flex: 0 1 auto; min-width: 0; }   /* the logo picture gives way to the links */
.frame__brand {
  display: flex; align-items: center; flex: none; min-height: 44px; padding: 0; color: var(--bone);
  text-shadow: var(--frame-shade);
  transition: text-shadow var(--t-ui) ease;
}
.frame__brand:hover, .frame__brand:focus-visible { text-shadow: var(--glow-text), var(--frame-shade); }
/* On the home cover the full logo holds the centre, so the wordmark steps back: one logo a
   view. (chrome.js writes the page to <html data-page> and the current scene to data-scene.
   The scene changes while the lights are down, so the wordmark needs no fade of its own.) */
html[data-page="home"][data-scene="cover"] .frame > .frame__brand { visibility: hidden; }
.frame__nav { display: flex; align-items: center; gap: var(--s3); }
.frame__link, .sheet__close {
  display: inline-flex; align-items: center; padding: 0; min-height: 44px;
  font-size: 1.125rem; font-weight: 400; line-height: 1.4; color: var(--bone); white-space: nowrap;
  text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: 1px; text-underline-offset: 6px;
  text-shadow: var(--frame-shade);
  transition: text-decoration-color var(--t-ui) ease, text-shadow var(--t-ui) ease;
}
.frame__link:hover, .frame__link:focus-visible, .frame__link[aria-expanded="true"],
.sheet__close:hover, .sheet__close:focus-visible {
  text-decoration-color: var(--gold-hi); text-shadow: var(--glow-text), var(--frame-shade);
}
.frame__link[aria-current="page"], .frame__link--book { text-decoration-color: var(--gold); }

/* The bottom line of a staged page. Counter and scene name left; pause, previous, next right.
   (chrome.js puts these after <main>, so the keyboard reaches a scene's own content first.) */
.frame__readout, .frame__steps { display: none; }
html.has-stage .frame__readout {
  position: fixed; left: var(--pad); bottom: 24px; z-index: 60;
  display: flex; align-items: baseline; gap: 0.4em;
  font-size: 1rem; line-height: 1.5; color: var(--bone); white-space: nowrap;
  text-shadow: var(--frame-shade);
}
html.has-stage .frame__readout .frame__scene { margin-left: var(--s2); }
html.has-stage .frame__steps {
  position: fixed; right: var(--pad); bottom: var(--s2); z-index: 60;
  display: flex; align-items: center; gap: var(--s1);
}
/* Stacked (phones): the films still play there, so the pause control stays in reach, top
   right under the frame. Previous and next are not needed on a page that scrolls. */
html.has-flow .frame__steps {
  position: fixed; right: var(--pad); top: calc(var(--frame-h) + var(--s1)); z-index: 60;
  display: flex;
}
html.has-flow .frame__steps > :not([data-film]) { display: none; }
.frame__steps .ico { filter: drop-shadow(0 1px 5px rgb(var(--ink-rgb) / 0.9)); }
/* one button, two icons: pause while the film runs, play while it is paused */
button[data-film] .lucide-play, button[data-film] [data-lucide="play"] { display: none; }
html[data-film="paused"] button[data-film] .lucide-pause, html[data-film="paused"] button[data-film] [data-lucide="pause"] { display: none; }
html[data-film="paused"] button[data-film] .lucide-play, html[data-film="paused"] button[data-film] [data-lucide="play"] { display: inline-block; }

@media (max-width: 699.98px) {
  .frame__nav { gap: var(--s2); }
}
/* Narrow phones: the wordmark, Menu and Book a call fill the frame; Work is a row in the Menu. */
@media (max-width: 479.98px) {
  .frame__link--work { display: none; }
}
/* The smallest phones: the name is set at the notes size so it still shares the line with
   Menu and Book a call; under 350px it takes two lines. */
@media (max-width: 374.98px) {
  .brand-word { font-size: 1rem; }
}
@media (max-width: 349.98px) {
  .brand-word { white-space: normal; max-width: 7em; line-height: 1.2; }
}

/* ---------- 8. Sheets: the Menu overlay (and any other full-screen <dialog>) ---------- */
/* A dialog is a plain sheet of ground: no border, no shadow. */
dialog { border: 0; padding: 0; background: var(--ground); color: var(--bone); box-shadow: none; --frame-shade: var(--no-shade); }
dialog::backdrop { background: rgb(var(--ink-rgb) / 0.72); }
/* Opened with the pointer, a sheet takes the focus itself and nothing is ringed; opened from
   the keyboard, its first control takes it and shows the usual gold ring. */
.sheet:focus, .sheet:focus-visible { outline: none; }

.sheet__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  height: var(--frame-h); flex: none;
}
.sheet__close { text-shadow: none; margin-left: auto; }

/* Menu overlay: a full sheet of ink-2. Six rows, then one quiet line of details. */
.menu {
  position: fixed; inset: 0; margin: 0;
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  display: none; flex-direction: column;
  padding: 0 var(--pad) var(--s4);
  background-color: var(--ink-2);
  --ground: var(--ink-2); --surface: var(--ink-2);
  overflow-y: auto; overscroll-behavior: contain;
}
.menu[open] { display: flex; }
/* the sheet covers the window itself; chrome.js fades it in and lets the rows rise (GSAP) */
.sheet::backdrop { background: transparent; }
.menu__nav { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
.menu__list { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s3) 0; }
.menu__row { overflow: clip; }
.menu__link {
  display: inline-block; padding: 8px 0;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 8px;
  transition: text-decoration-color var(--t-ui) ease, text-shadow var(--t-ui) ease;
}
.menu__link:hover, .menu__link:focus-visible, .menu__link[aria-current="page"] { text-decoration-color: var(--gold); }
.menu__link:hover, .menu__link:focus-visible { text-shadow: var(--glow-text); }
.menu__link:focus-visible { outline-offset: 0; }
.menu__foot {
  display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); align-items: baseline;
  min-height: 44px;
}
.menu__foot > a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--bone);
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 6px;
  transition: text-decoration-color var(--t-ui) ease;
}
.menu__foot > a:hover, .menu__foot > a:focus-visible { text-decoration-color: var(--gold-hi); }
/* The owner's photo (CONTACT.portrait), beside the contact lines: a small upright picture with
   square corners, its foot on the lines' baseline. Not drawn at all while the photo is unset. */
.menu__portrait { flex: none; width: 96px; height: 120px; max-width: none; object-fit: cover; object-position: 50% 20%; }
@media (max-width: 699.98px) {
  .menu__nav { justify-content: flex-start; padding-top: var(--s3); }
  .menu__portrait { width: 72px; height: 90px; }
}

/* ---------- 9. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  html.has-flow { scroll-snap-type: none; }
  .btn:hover::before, .btn:focus-visible::before { transform: none; }
  .btn--down:hover::before, .btn--down:focus-visible::before { transform: rotate(90deg); }
  .stage-index__tick:hover::before, .stage-index__tick:focus-visible::before { transform: none; }
}

/* ---------- The verse and its hairline cross (components.js verseHTML) ---------- */
.cross { display: inline-block; width: 0.5em; height: 0.8em; color: var(--gold); vertical-align: -0.04em; margin-right: 0.55em; overflow: visible; }
.verse--full { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--bone-2); }
.verse__ref { font-style: normal; margin-left: 0.5em; white-space: nowrap; }
.verse--ref { white-space: nowrap; margin-left: 0.35em; }
.menu__foot > .verse--full { margin-top: var(--s3); max-width: 46ch; }
