/* tokens.css */
/* Design tokens: DESIGN.md v2 ("Gilded Instrument"). Keep in step with DESIGN.md. */
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --r { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  color-scheme: dark;

  /* Dark grounds */
  --ink: #0B0B0C;
  --ink-2: #121314;
  --ink-3: #1A1B1D;
  --line: #2A2B2E;
  --text: #F3F1EC;
  --text-2: #B9B6AF;
  --text-3: #8F8C86;

  /* Metals (logo-derived only) */
  --gold: #C99A4E;
  --gold-hi: #E9C67C;
  --gold-ramp: linear-gradient(180deg, #A87A35 0%, #D9AE62 26%, #EDCB84 36%, #C99A4E 52%, #7A4A1E 74%, #B98535 100%);
  --btn-fill: linear-gradient(180deg, #E9C67C 0%, #D3A55A 45%, #B98535 100%);
  --btn-ink: #1A1206;
  --steel: #6E6F71;
  --steel-hi: #C9CACC;
  --ghost-line: #4A4B4E;

  /* Paper grounds (long reading only) */
  --paper: #F3EFE7;
  --p-ink: #16130E;
  --p-text: #4E4840;
  --p-line: #D3CBBC;
  --bronze: #7A4A1E;

  /* Type */
  --f-display: "Unbounded", "Unbounded Fallback", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", "Hanken Grotesk Fallback", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, monospace;
  --fs-body: 18px;
  --fs-h1: clamp(40px, 4.6vw, 68px);
  --fs-h2: clamp(30px, 3.4vw, 48px);

  /* Space: 4 8 12 16 24 32 48 64 96 128 140 */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px; --s-11: 140px;
  --section-y: 140px;
  --gut: clamp(20px, 5vw, 80px);
  --max: 1280px;

  /* Shape */
  --r-btn: 2px;
  --r-card: 4px;
  --r-plate: 6px;
  --shadow-plate: -24px 32px 48px -20px rgba(0, 0, 0, .9);

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-ui: cubic-bezier(.2, 0, 0, 1);
  --dur-1: 180ms;
  --dur-2: 320ms;
  --dur-3: 700ms;

  /* Chrome */
  --header-h: 80px;
  --mcta-h: 76px;
  --rise: 96px; /* footer diagonal height */
}

@media (max-width: 900px) {
  :root {
    --fs-body: 17px;
    --section-y: 88px;
    --header-h: 72px;
    --rise: 48px;
  }
}

/* fonts.css */
/* Self-hosted variable WOFF2, Latin subset, SIL OFL 1.1 (licences in /assets/fonts/). No outside font requests.
   Each family has a metric-matched local fallback so the swap does not move the layout.
   Fallback numbers measured in Chrome; method and results in qa/qa-report-T-001a.md. */
@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/unbounded-latin-var.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-var.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched fallbacks (local system fonts; nothing downloaded).
   Measured in Chrome 2026-11-23 with canvas measureText at 100px on site copy:
   size-adjust = real width / fallback width; ascent/descent = real metric / size-adjust. */
@font-face { /* Unbounded 600 vs Arial Bold: width ratio 1.2929 */
  font-family: "Unbounded Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 600 699;
  size-adjust: 129.29%;
  ascent-override: 76.57%;
  descent-override: 18.56%;
  line-gap-override: 0%;
}
@font-face { /* Unbounded 700-800 vs Arial Bold: width ratio 1.3312 (measured at 800) */
  font-family: "Unbounded Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 700 800;
  size-adjust: 133.12%;
  ascent-override: 74.37%;
  descent-override: 18.03%;
  line-gap-override: 0%;
}
@font-face { /* Hanken Grotesk 400 vs Arial: width ratio 1.0093 */
  font-family: "Hanken Grotesk Fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 400 600;
  size-adjust: 100.93%;
  ascent-override: 99.08%;
  descent-override: 29.72%;
  line-gap-override: 0%;
}
@font-face { /* JetBrains Mono 400 vs Courier New: width ratio 0.9998 */
  font-family: "JetBrains Mono Fallback";
  src: local("Courier New"), local("CourierNewPSMT");
  font-weight: 400 500;
  size-adjust: 99.98%;
  ascent-override: 102.02%;
  descent-override: 30%;
  line-gap-override: 0%;
}

/* base.css */
/* Base: reset, type, links, focus, buttons, layout helpers. */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  background: var(--ink);
  color: var(--text);
  font: 400 var(--fs-body)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
}
main { flex: 1 0 auto; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul[role="list"], ol[role="list"] { list-style: none; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 800; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.01em; font-weight: 700; }
p { text-wrap: pretty; }

.mono { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.num { font-variant-numeric: tabular-nums; }
.gold-text { background: var(--gold-ramp); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Focus: always visible for keyboard users */
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 2px; }
.on-paper :focus-visible { outline-color: var(--bronze); }

/* Skip link: off screen until focused */
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 12px 18px; min-height: 44px; display: inline-flex; align-items: center;
  background: var(--text); color: var(--ink); font-weight: 600; border-radius: var(--r-btn);
  transform: translateY(-200%);
}
.skip-link:focus, .skip-link:focus-visible { transform: none; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

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

/* Buttons. Primary: gold fill + one sheen band on hover. Secondary: hairline. Both ≥48px. */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font: 600 15px/1.25 var(--f-body); text-align: center;
  color: var(--btn-ink); background: var(--btn-fill);
  border-radius: var(--r-btn);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform var(--dur-1) var(--ease-out);
  user-select: none; -webkit-user-select: none;
  touch-action: manipulation;
}
.btn::after {
  content: ""; position: absolute; z-index: -1; top: -40%; bottom: -40%; left: 0; width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: translateX(-160%) skewX(-28deg);
  transition: transform 600ms var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover::after { transform: translateX(360%) skewX(-28deg); }
}
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--ghost-line); }
.btn--ghost::after { display: none; }
@media (hover: hover) and (pointer: fine) {
  .btn--ghost { transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out); }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); }
}

/* Reduced motion: final state, no transitions or animations anywhere. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important;
    transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important;
  }
  .btn::after { display: none; }
}

/* components.css */
/* Shared components: header, Engines menu, mobile menu, footer, mobile CTA bar, 404. */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; flex: none; }
.brand img { width: 240px; height: 48px; }
@media (max-width: 399.98px) { .brand img { width: 200px; height: 40px; } }
@media (max-width: 359.98px) { .brand img { width: 40px; height: 40px; } }

.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav__links { display: flex; align-items: center; gap: var(--s-5); list-style: none; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px;
  font-size: 15px; font-weight: 500; color: var(--text-2);
  transition: color var(--dur-1) var(--ease-out);
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--text); }
.nav__link[aria-current="page"] { color: var(--text); position: relative; }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 8px; height: 1px; background: var(--gold); }
.nav__chev { width: 10px; height: 10px; transition: transform var(--dur-2) var(--ease-ui); }
.nav__link[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.nav__cta { flex: none; }

/* Engines menu */
.dd { position: relative; }
.dd__panel {
  position: absolute; top: calc(100% + 14px); left: -24px; width: 380px;
  padding: var(--s-3); list-style: none;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-plate);
  box-shadow: var(--shadow-plate);
  display: none;
}
/* Without JavaScript: hover and keyboard focus open it. */
html:not(.js) .dd:hover .dd__panel, html:not(.js) .dd:focus-within .dd__panel { display: block; }
.js .dd__panel {
  display: block; visibility: hidden; opacity: 0; transform: translateY(-6px);
  transition: opacity var(--dur-2) var(--ease-ui), transform var(--dur-2) var(--ease-ui), visibility 0s linear var(--dur-2);
}
.js .dd[data-open] .dd__panel {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity var(--dur-2) var(--ease-ui), transform var(--dur-2) var(--ease-ui), visibility 0s;
}
.dd__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 15px; } /* hover bridge */
.dd__item {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center;
  padding: 14px 16px; border-radius: var(--r-card);
  transition: background-color var(--dur-1) var(--ease-out);
}
.dd__item:hover, .dd__item:focus-visible { background: #222326; }
.dd__name { font-weight: 600; font-size: 16px; color: var(--text); }
.dd__line { grid-column: 1; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.dd__go { grid-row: 1 / span 2; grid-column: 2; font-family: var(--f-mono); color: var(--gold); transition: transform var(--dur-1) var(--ease-out); }
@media (hover: hover) { .dd__item:hover .dd__go { transform: translateX(4px); } }

/* Menu button (phones and tablets) */
.menu-btn {
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
  width: 48px; height: 48px; flex: none;
  border-radius: var(--r-btn); box-shadow: inset 0 0 0 1px #3A3B3E;
}
.menu-btn i { display: block; width: 20px; height: 1.5px; background: var(--text); }

/* Middle widths: logo, CTA, menu button (the link row does not fit beside the full CTA label). */
@media (max-width: 1199.98px) {
  .nav__links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav { gap: var(--s-4); }
}
/* Phones: logo + menu button; the bottom CTA bar carries the CTA. */
@media (max-width: 900px) {
  .nav__cta { display: none; }
}

/* ---------- Mobile menu (full screen, focus kept inside, Esc closes) ---------- */
.mmenu {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  background: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom);
}
.mmenu[hidden] { display: none; }
.mmenu__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); border-bottom: 1px solid var(--line); flex: none; }
.mmenu__close { width: 48px; height: 48px; position: relative; border-radius: var(--r-btn); box-shadow: inset 0 0 0 1px #3A3B3E; }
.mmenu__close::before, .mmenu__close::after { content: ""; position: absolute; left: 14px; right: 14px; top: 23px; height: 1.5px; background: var(--text); transform: rotate(45deg); }
.mmenu__close::after { transform: rotate(-45deg); }
.mmenu__body { padding-top: var(--s-6); padding-bottom: var(--s-7); display: flex; flex-direction: column; gap: var(--s-6); }
.mmenu__group { list-style: none; }
.mmenu__label { color: var(--text-3); margin-bottom: var(--s-2); }
.mmenu__link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px;
  border-top: 1px solid var(--line);
  font: 600 20px/1.25 var(--f-display); letter-spacing: -.005em;
}
.mmenu__group li:last-child .mmenu__link { border-bottom: 1px solid var(--line); }
.mmenu__link span[aria-hidden] { color: var(--gold); font-family: var(--f-mono); font-size: 16px; }
.mmenu__link[aria-current="page"] { color: var(--gold-hi); }
.mmenu .btn { width: 100%; }
.js .mmenu.is-open .mmenu__body { animation: mmenu-in var(--dur-2) var(--ease-out) both; }
@keyframes mmenu-in { from { opacity: 0; transform: translateY(12px); } }
html.menu-open { overflow: hidden; }

/* ---------- Footer ----------
   1. Closing band: rising diagonal edge with a gold rail (logo angle), the diagnostic question, CTA.
   2. Directory: logo, the three engines (concentric-ring markers), company links.
   3. Base: LG §1 text verbatim, laid out by grid areas; DOM order of the six lines is unchanged. */
.site-footer {
  position: relative; isolation: isolate;
  margin-top: calc(var(--rise) * -1);
  padding-top: var(--rise);
  background:
    radial-gradient(900px 420px at 88% 0%, rgba(201, 154, 78, .10), transparent 70%),
    var(--ink-2);
  clip-path: polygon(0 var(--rise), 100% 0, 100% 100%, 0 100%);
  font-size: 15px; color: var(--text-2);
}
main { padding-bottom: var(--rise); }
.site-footer { padding-bottom: var(--s-7); } /* room for the footer's diagonal overlap */
.footer-rail { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: var(--rise); pointer-events: none; z-index: -1; }

/* 1. Closing band */
.footer-cta { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-7); align-items: end; padding: var(--s-8) 0 var(--s-9); }
.footer-cta__title { font: 800 clamp(30px, 3.6vw, 52px)/1.08 var(--f-display); letter-spacing: -.015em; color: var(--text); max-width: 15em; text-wrap: balance; }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: flex-end; }

/* 2. Directory */
.footer-dir {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, .8fr); gap: var(--s-8);
  padding: var(--s-8) 0; border-top: 1px solid var(--line);
}
.footer-id { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-7); }
.footer-rings { width: 168px; height: 168px; }
.site-footer .brand img { width: 240px; height: 48px; }
.footer-dir h2 { font: 500 12px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s-4); }
.footer-dir ul { list-style: none; }
.footer-engines a {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 4px 16px; align-items: start;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.footer-engines li:last-child a { border-bottom: 1px solid var(--line); }
.footer-engines .dot { width: 14px; height: 14px; border-radius: 999px; margin-top: 5px; }
.footer-engines .dot--1 { background: radial-gradient(circle at 50% 35%, #EDCB84, #D3A55A 50%, #A87A35); }
.footer-engines .dot--2 { box-shadow: inset 0 0 0 1.5px var(--gold); }
.footer-engines .dot--3 { box-shadow: inset 0 0 0 1.5px var(--steel-hi); }
.footer-engines b { display: block; font-weight: 600; font-size: 16px; color: var(--text); transition: color var(--dur-1) var(--ease-out); }
.footer-engines span.t { display: block; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.footer-engines .go { font-family: var(--f-mono); color: var(--gold); padding-top: 2px; transition: transform var(--dur-1) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .footer-engines a:hover b { color: var(--gold-hi); }
  .footer-engines a:hover .go { transform: translateX(4px); }
}
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--text); transition: color var(--dur-1) var(--ease-out); }
.footer-links a:hover { color: var(--gold-hi); }

/* 3. Base: verbatim legal lines in a 3-column grid */
.footer-base {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.35fr); column-gap: 0;
  grid-template-areas:
    "brand   brand   brand"
    "dba     address contact"
    "copy    top     legal";
  padding-top: var(--s-7); border-top: 1px solid var(--line); line-height: 1.6;
}
.legal-block { display: contents; }
.legal-block p:nth-child(1) { grid-area: brand; }
.legal-block p:nth-child(2) { grid-area: copy; }
.legal-block p:nth-child(3) { grid-area: dba; }
.legal-block p:nth-child(4) { grid-area: address; text-align: center; padding: 0 var(--s-5); }
.legal-block p:nth-child(5) { grid-area: contact; text-align: right; }
.legal-block p:nth-child(6) { grid-area: legal; text-align: right; }
.footer-top { grid-area: top; justify-self: center; }
.legal-block p:nth-child(2), .legal-block p:nth-child(6), .footer-top {
  margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); align-self: start;
}
.footer-top { justify-self: stretch; text-align: center; }
.legal-block p:nth-child(1) { margin-bottom: var(--s-6); }
.legal-block p:nth-child(3) { max-width: 26em; }
.legal-block__name { font: 600 17px/1.3 var(--f-display); color: var(--text); letter-spacing: -.005em; }
.legal-block__sep { color: var(--steel); }
.legal-block__tagwrap { white-space: nowrap; }
.legal-block__tag { font: 500 13px/1.3 var(--f-mono); color: var(--gold-hi); }
.legal-block__name { font-size: 20px; }
.legal-block__label { display: block; font: 500 12px/1.4 var(--f-mono); color: var(--text-3); margin-bottom: 6px; }
.legal-block p:nth-child(5) a { font-size: 17px; }
.legal-block a, .footer-top a { color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; padding: 10px 0; margin: -10px 0; overflow-wrap: anywhere; }
.legal-block a:hover, .footer-top a:hover { color: var(--gold-hi); }
.footer-top a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: -12px 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.footer-top a span { color: var(--gold); transition: transform var(--dur-1) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .footer-top a:hover span { transform: translateY(-3px); } }

@media (max-width: 1023.98px) {
  .footer-cta { grid-template-columns: 1fr; gap: var(--s-6); }
  .footer-cta__actions { justify-content: flex-start; }
  .footer-dir { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s-7) var(--s-8); }
  .footer-id { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-rings { width: 96px; height: 96px; }
}
@media (max-width: 900px) {
  .footer-cta { padding: var(--s-8) 0 var(--s-8); }
  .footer-base {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s-5);
    grid-template-areas: "brand brand" "dba dba" "address contact" "legal legal" "copy top";
  }
  .legal-block p:nth-child(1) { margin-bottom: var(--s-4); }
  .legal-block__name { font-size: 18px;
  }
  .legal-block p:nth-child(4) { text-align: left; padding: 0; margin-top: var(--s-6); }
  .legal-block p:nth-child(5) { text-align: left; margin-top: var(--s-6); }
  .legal-block p:nth-child(6) { text-align: left; }
  .legal-block p:nth-child(2) { margin-top: 0; border-top: 0; padding-top: var(--s-4); }
  .footer-top { margin-top: 0; border-top: 0; padding-top: var(--s-4); text-align: right; }
}
@media (max-width: 599.98px) {
  .footer-dir { grid-template-columns: 1fr; }
  .footer-links ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5); }
  .footer-cta__actions .btn { width: 100%; }
  .footer-base { grid-template-columns: 1fr; grid-template-areas: "brand" "dba" "address" "contact" "legal" "copy" "top"; }
  .footer-top { text-align: left; }
}
@media (max-width: 399.98px) { .site-footer .brand img { width: 200px; height: 40px; } }

/* ---------- Mobile CTA bar (≤900px, JS only) ---------- */
.mcta { display: none; }
@media (max-width: 900px) {
  .js .mcta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: var(--ink); border-top: 1px solid var(--line);
    transform: translateY(110%); visibility: hidden;
    transition: transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
  }
  .js .mcta.is-shown { transform: none; visibility: visible; transition: transform var(--dur-2) var(--ease-out), visibility 0s; }
  .mcta .btn { width: 100%; }
  /* Content is never stuck under the bar: the footer ends with matching space, and focus scrolls clear of it. */
  .js .site-footer { padding-bottom: calc(var(--s-7) + var(--mcta-h) + env(safe-area-inset-bottom)); }
  .js { scroll-padding-bottom: calc(var(--mcta-h) + env(safe-area-inset-bottom) + 16px); }
}

/* ---------- Hero (shared) ---------- */
.hero { padding: var(--s-10) 0 var(--s-9); }
.hero__tagline { display: flex; align-items: center; gap: 14px; color: var(--gold-hi); }
.hero__tagline::before { content: ""; width: 40px; height: 1px; background: var(--gold); flex: none; }
.hero h1 { margin: var(--s-5) 0; max-width: 13.1em; /* = 14ch of Unbounded 800; em, not ch, so the font swap keeps the same line breaks */ }
.hero__lede { color: var(--text-2); max-width: 28em; /* ≈ 75–80 characters per line */ font-size: 19px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: 36px; }
@media (max-width: 900px) {
  .hero { padding: var(--s-8) 0 var(--s-8); }
  .hero__lede { font-size: 17px; }
}
@media (max-width: 480px) { .hero__ctas .btn { width: 100%; } }

.hero__h1 { margin: var(--s-5) 0; max-width: 13.1em; }

/* ---------- 404 ---------- */
.nf { padding: var(--s-9) 0 var(--s-10); }
.nf__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: center; }
.nf__art { width: 100%; max-width: 520px; justify-self: end; color: var(--gold); }
.nf__art .nf__rail { stroke: var(--steel); }
.nf__art .nf__digit { stroke-dasharray: 1; stroke-dashoffset: 1; animation: nf-draw 900ms var(--ease-out) forwards; }
/* paths: 1 = rail, 2-4 = digits; each digit draws after the one before, rising along the rail */
.nf__art .nf__digit:nth-of-type(2) { animation-delay: 200ms; }
.nf__art .nf__digit:nth-of-type(3) { animation-delay: 380ms; }
.nf__art .nf__digit:nth-of-type(4) { animation-delay: 560ms; }
.nf__art .nf__rail { stroke-dasharray: 1; stroke-dashoffset: 1; animation: nf-draw 1200ms var(--ease-out) forwards; }
@keyframes nf-draw { to { stroke-dashoffset: 0; } }
.nf h1 { max-width: 15em; margin-bottom: var(--s-5); }
.nf p { color: var(--text-2); max-width: 26.9em; }
.nf__links { list-style: none; margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: 4px 24px; }
.nf__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
@media (max-width: 900px) {
  .nf { padding: var(--s-7) 0 var(--s-8); }
  .nf__grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .nf__art { order: -1; justify-self: start; max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .nf__art .nf__digit, .nf__art .nf__rail { animation: none; stroke-dashoffset: 0; }
}
html.lite .nf__art .nf__digit, html.lite .nf__art .nf__rail { animation: none; stroke-dashoffset: 0; }


/* Owner-supplied phone, its own line under the email (not part of the LG text) */
.legal-block__phone { display: block; margin-top: 10px; }
.legal-block p:nth-child(5) .legal-block__phone a { font-size: 17px; font-variant-numeric: tabular-nums; }

/* Phones only (owner, 2026-11-23): centre the closing lines (legal links, copyright, back to top). Rest of the footer unchanged. */
@media (max-width: 599.98px) {
  .legal-block p:nth-child(6), .legal-block p:nth-child(2), .footer-top { text-align: center; }
}

/* pages.css */
/* Page sections and signature visuals (T-001b). DESIGN.md v2 §5–§7. Original code. */

@property --tx { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@property --ty { syntax: '<angle>'; inherits: true; initial-value: 0deg; }

/* One shared two-column line for every page-level split (equal edges across sections). */
:root { --two: minmax(0, 1.05fr) minmax(0, 1fr); }

/* ---------- Section scaffolding ---------- */
.sec { position: relative; padding: var(--section-y) 0; overflow: clip; }
.sec--alt { background: var(--ink-2); }
.sec--tight { padding-top: calc(var(--section-y) * .6); }
.sec-head { display: grid; grid-template-columns: var(--two); gap: var(--s-6) var(--s-8); align-items: end; margin-bottom: var(--s-8); }
.sec-head--single { grid-template-columns: minmax(0, 1fr); max-width: 46em; }
.sec-head h2 { max-width: 18em; }
.lede { color: var(--text-2); font-size: 19px; max-width: 32em; }
.sec-head .lede { justify-self: start; }
.prose { color: var(--text-2); max-width: 36em; }
h2 + .lede, .split h2 + p { margin-top: var(--s-5); }
.sec-head h2 + .lede { margin-top: 0; }
.nowrap { white-space: nowrap; }
.prose p + p { margin-top: var(--s-4); }
.prose strong { color: var(--text); font-weight: 600; }
.split { display: grid; grid-template-columns: var(--two); gap: var(--s-8); align-items: center; }
.split--top { align-items: start; }
.mono-label { font: 500 12px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.gold { color: var(--gold-hi); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--gold); }
.link-arrow span { color: var(--gold); font-family: var(--f-mono); transition: transform var(--dur-1) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover span { transform: translateX(4px); } }
@media (max-width: 900px) {
  .sec-head, .split { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .sec-head { margin-bottom: var(--s-7); }
  .lede { font-size: 17px; }
  .split { gap: var(--s-7); }
}

/* Reveal: armed only by JS (html.js) and only when motion is allowed, so text never stays hidden if scripts fail. */
.motion-ok [data-reveal].is-armed { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
.motion-ok [data-reveal].is-armed.is-in { opacity: 1; transform: none; }
.motion-ok [data-reveal-delay="1"] { transition-delay: 90ms; }
.motion-ok [data-reveal-delay="2"] { transition-delay: 180ms; }
.motion-ok [data-reveal-delay="3"] { transition-delay: 270ms; }

/* Chapter heading mask reveal (once). Text is fully present; only clipped while armed. */
.motion-ok .mask-h.is-armed { clip-path: inset(0 0 100% 0); transform: translateY(.25em); transition: clip-path 900ms var(--ease-out), transform 900ms var(--ease-out); }
.motion-ok .mask-h.is-armed.is-in { clip-path: inset(-.1em -.1em -.3em -.1em); transform: none; }

/* ---------- Home hero: framework plate stack (signature 1) ---------- */
.hero-home { position: relative; overflow-x: clip; }
.hero-home__stage {
  position: relative; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-7); align-items: center;
  padding-block: var(--s-8);
}
.hero-home .hero__h1 { font-size: clamp(40px, 4vw, 60px); }
.hero-home__bg {
  position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden;
  background:
    radial-gradient(900px 600px at 78% 45%, rgba(201, 154, 78, .13), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(110, 111, 113, .16), transparent 60%);
}
.sweep {
  position: absolute; left: 30%; top: -40%; width: 160px; height: 180%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(233, 198, 124, .08), rgba(255, 236, 190, .13), rgba(233, 198, 124, .08), transparent);
  transform: rotate(42deg) translateX(0); opacity: 0;
}
.motion-ok .sweep { animation: sweep 1800ms 600ms var(--ease-out) both; }
@keyframes sweep { from { transform: rotate(42deg) translateX(-70vw); opacity: 0; } 20% { opacity: 1; } to { transform: rotate(42deg) translateX(0); opacity: 1; } }

.stack { position: relative; height: 600px; list-style: none; --p: 0; }
.stack__row { position: absolute; left: 0; right: 0; height: 120px; display: flex; align-items: center; }
.stack__row:nth-child(1) { top: 0; --i: 5; }
.stack__row:nth-child(2) { top: 22%; --i: 4; }
.stack__row:nth-child(3) { top: 44%; --i: 3; }
.stack__row:nth-child(4) { top: 66%; --i: 2; }
.stack__row:nth-child(5) { top: 88%; --i: 1; }
.stack__row { --q: clamp(0, (var(--p) - (5 - var(--i)) * .12) / .52, 1); transform: translateY(calc((var(--i) - 3) * var(--p) * -14px)); }
.plate-wrap { width: 300px; height: 120px; perspective: 1400px; flex: none; }
.motion-ok .plate-wrap { animation: rise var(--dur-3) var(--ease-out) both; animation-delay: calc((var(--i) - 1) * 90ms + 150ms); }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
.plate {
  width: 230px; height: 230px; margin: -55px 0 0 20px; border-radius: var(--r-plate); position: relative;
  transform: rotateX(calc(62deg * (1 - var(--q)) + var(--ty) * (1 - var(--q)))) rotateY(calc(var(--tx) * (1 - var(--q)))) rotateZ(calc(-42deg * (1 - var(--q)))) scaleY(calc(1 - .78 * var(--q)));
  background: linear-gradient(135deg, #2A2B2E 0%, #17181A 55%, #0F1011 100%);
  box-shadow: inset 0 0 0 1px rgba(233, 198, 124, .35), var(--shadow-plate);
  transition: --tx 240ms var(--ease-out), --ty 240ms var(--ease-out);
}
.plate::before { content: ""; position: absolute; inset: 0; border-radius: var(--r-plate); background: linear-gradient(225deg, rgba(237, 203, 132, .5) 0%, rgba(237, 203, 132, 0) 38%); }
.plate::after { content: ""; position: absolute; left: 12%; right: 12%; top: 46%; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-hi), transparent); opacity: .7; }
.stack__row:nth-child(1) .plate { background: linear-gradient(135deg, #6B4A1F, #2A1D0C 70%); box-shadow: inset 0 0 0 1px rgba(237, 203, 132, .9), var(--shadow-plate); }
.stack__label { display: flex; align-items: baseline; gap: 16px; border-top: 1px solid var(--line); padding-top: 12px; flex: 1; min-width: 0; margin-left: 24px; position: relative; z-index: 2; }
.stack__label .n { font-family: var(--f-mono); font-size: 12px; color: var(--gold); font-variant-numeric: tabular-nums; }
.stack__label::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, var(--gold-hi), var(--gold) 60%, rgba(201, 154, 78, 0)); transform-origin: left; transform: scaleX(var(--q)); }
.stack__label > div { transform: translateX(calc((1 - var(--q)) * 10px)); }
.stack__label b { display: block; font: 600 15px/1.3 var(--f-display); letter-spacing: .02em; }
.stack__label .d { display: block; font-size: 14px; color: var(--text-3); margin-top: 4px; }

/* Desktop pin: the hero occupies 175vh; the stage sticks while --p goes 0 → 1. */
@media (min-width: 901px) {
  .motion-ok .hero-home { height: 175vh; }
  .motion-ok .hero-home__stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); min-height: 680px; }
}
@supports (animation-timeline: scroll()) {
  .motion-ok .hero-home .stack { animation: prog linear both; animation-timeline: scroll(root); animation-range: 0 75vh; }
  @media (max-width: 900px) { .motion-ok .hero-home .stack { animation-range: 0 90vh; } }
}
@keyframes prog { from { --p: 0; } to { --p: 1; } }
/* Final, flat reading state for reduced motion / light version / no JS */
html:not(.motion-ok) .stack { --p: 1; }

@media (max-width: 900px) {
  .hero-home__stage { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); padding-block: var(--s-8); min-height: 0; }
  .stack { height: 440px; margin-top: 28px; }
  .stack__row { height: 84px; }
  .plate-wrap { width: 190px; height: 84px; }
  .plate { width: 160px; height: 160px; margin: -38px 0 0 14px; }
  .stack__label { margin-left: 8px; }
  .stack__label b { font-size: 13px; }
  .stack__label .d { display: none; }
}
@media (min-width: 901px) and (max-width: 1199.98px) {
  .plate-wrap { width: 230px; }
  .plate { width: 180px; height: 180px; margin: -30px 0 0 10px; }
  .stack__label { margin-left: 8px; gap: 10px; }
}
@media (max-width: 380px) {
  .plate-wrap { width: 132px; }
  .plate { width: 116px; height: 116px; margin: -16px 0 0 6px; }
  .stack__label { gap: 8px; margin-left: 4px; }
  .stack__label b { font-size: 12px; }
}
/* Small phones: keep the main button on the first screen. */
@media (max-width: 360px) {
  .hero-home__stage { padding-block: var(--s-6) var(--s-7); }
  .hero-home .hero__h1 { font-size: 34px; margin: var(--s-4) 0; }
  .hero-home .hero__lede { font-size: 16px; line-height: 1.5; }
  .hero-home .hero__ctas { margin-top: var(--s-5); }
}

/* ---------- Pain grid ---------- */
.pains { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-4); list-style: none; }
.pain { grid-column: span 3; background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-6) var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); min-height: 210px; }
.pain:nth-child(n+5) { grid-column: span 4; }
.pain .n { font: 500 13px/1 var(--f-mono); color: var(--gold); font-variant-numeric: tabular-nums; }
.pain h3 { font: 600 19px/1.3 var(--f-display); letter-spacing: -.005em; }
.pain p { color: var(--text-2); font-size: 16px; margin-top: auto; }
@media (max-width: 1100px) { .pain, .pain:nth-child(n+5) { grid-column: span 6; } .pain:last-child { grid-column: span 12; } }
@media (max-width: 600px) { .pain, .pain:nth-child(n+5), .pain:last-child { grid-column: span 12; min-height: 0; } }

/* ---------- Connected chain: a staircase rising at the logo angle ---------- */
.chain { position: relative; list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 var(--s-3); align-items: start; counter-reset: c; }
.chain__step { position: relative; padding: var(--s-4) 0 0; border-top: 1px solid var(--gold); }
/* Even rise: each step starts 52px higher than the one before (logo diagonal), whatever its text length. */
.chain__step:nth-child(1) { margin-top: 312px; }
.chain__step:nth-child(2) { margin-top: 260px; }
.chain__step:nth-child(3) { margin-top: 208px; }
.chain__step:nth-child(4) { margin-top: 156px; }
.chain__step:nth-child(5) { margin-top: 104px; }
.chain__step:nth-child(6) { margin-top: 52px; }
.chain__step:nth-child(7) { margin-top: 0; border-top-color: var(--gold-hi); }
.chain__step::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 999px; background: var(--gold); }
.chain__step .n { display: block; font: 500 12px/1 var(--f-mono); color: var(--gold); margin-bottom: var(--s-3); font-variant-numeric: tabular-nums; }
.chain__step p { font-size: 15px; line-height: 1.45; color: var(--text); }
.chain__rail { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; pointer-events: none; }
.chain-note { margin-top: var(--s-8); display: grid; grid-template-columns: var(--two); gap: var(--s-8); align-items: start; }
.chain-note > p { font: 700 clamp(22px, 2.2vw, 30px)/1.3 var(--f-display); letter-spacing: -.01em; }
@media (max-width: 1100px) {
  .chain { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0; padding-left: 28px; border-left: 1px solid var(--line); }
  .chain__step, .chain__step:nth-child(n) { margin: 0; border-top: 0; padding: 0 0 var(--s-5); }
  .chain__step::before { left: -33px; top: 4px; }
  .chain__step .n { display: inline-block; margin: 0 12px 0 0; }
  .chain__step p { display: inline; font-size: 17px; }
  .chain__rail { display: none; }
  .chain-note { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); margin-top: var(--s-7); }
}

/* ---------- Engine rings (signature 2) ---------- */
.rings { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; margin-left: auto; --r: 1; }
/* Home: --r follows scroll (motion.js). Engine-page heroes: the same build plays once on load. */
.motion-ok .hero-engine .rings { animation: ringprog 2200ms cubic-bezier(.22, .8, .24, 1) 250ms both; }
@keyframes ringprog { from { --r: 0; } to { --r: 1; } }
.rings { --d1: clamp(0, var(--r) / .34, 1); --d2: clamp(0, (var(--r) - .28) / .36, 1); --d3: clamp(0, (var(--r) - .58) / .42, 1); }
.ring { position: absolute; border-radius: 50%; display: flex; justify-content: center; }
.ring span { position: absolute; top: 18px; font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; padding: 0 10px; background: var(--ring-bg, var(--ink-2)); }
.ring--3 { inset: 0; border: 1px solid var(--steel); transform: scale(calc(.94 + .06 * var(--d3))); }
.ring--2, .ring--3 { --sweep: calc(var(--dd) * 362deg); -webkit-mask: conic-gradient(from -28deg, #000 var(--sweep), transparent 0); mask: conic-gradient(from -28deg, #000 var(--sweep), transparent 0); }
.ring--3 { --dd: var(--d3); }
.ring--2 { --dd: var(--d2); }
.ring--3 span { color: var(--steel-hi); }
.ring--2 { inset: 17%; border: 1px solid #9C7438; transform: scale(calc(.9 + .1 * var(--d2))); }
.ring--2 span { color: var(--gold); }
.ring--1 { inset: 35%; align-items: center; background: radial-gradient(circle at 50% 35%, #EDCB84, #D3A55A 50%, #A87A35 100%); opacity: calc(.15 + .85 * var(--d1)); transform: scale(calc(.55 + .45 * var(--d1))); box-shadow: 0 0 calc(80px * var(--d1)) rgba(211, 165, 90, calc(.28 * var(--d1))); }
.ring--1 span { position: static; background: none; color: #1A1206; text-align: center; line-height: 1.5; padding: 0 8px; }
.ring__arc { position: absolute; inset: -1px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--gold-hi); transform: rotate(-42deg); }
/* Orbiting arcs: the engines keep turning once built (motion only). */
.ring--2::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--gold); transform: rotate(150deg); }
.motion-ok .ring__arc { animation: orbit 16s linear infinite; }
.motion-ok .ring--2::before { animation: orbit 11s linear infinite reverse; }
@keyframes orbit { from { transform: rotate(-42deg); } to { transform: rotate(318deg); } }
.ring__arc, .ring--2::before { opacity: var(--d3); }
/* Highlight one engine (engine pages) */
.rings[data-focus="1"] .ring--2, .rings[data-focus="1"] .ring--3 { filter: saturate(.4); }
.rings[data-focus="2"] .ring--2 { border-width: 2px; border-color: var(--gold); box-shadow: inset 0 0 60px rgba(201, 154, 78, .10); }
.rings[data-focus="3"] .ring--3 { border-width: 2px; border-color: var(--steel-hi); }
.sec--ink .rings { --ring-bg: var(--ink); }

.eng-list { margin-top: var(--s-7); list-style: none; }
.eng-list a { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line); }
.eng-list li:last-child a { border-bottom: 1px solid var(--line); }
.eng-list b { display: block; font-weight: 600; font-size: 18px; transition: color var(--dur-1) var(--ease-out); }
.eng-list .t { display: block; color: var(--text-2); }
.eng-list .dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 7px; }
.dot--1 { background: radial-gradient(circle at 50% 35%, #EDCB84, #D3A55A 50%, #A87A35); }
.dot--2 { box-shadow: inset 0 0 0 1.5px var(--gold); }
.dot--3 { box-shadow: inset 0 0 0 1.5px var(--steel-hi); }
.eng-list .go { color: var(--gold); font-family: var(--f-mono); font-size: 14px; padding-top: 4px; transition: transform var(--dur-1) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .eng-list a:hover b { color: var(--gold-hi); } .eng-list a:hover .go { transform: translateX(4px); } }
@media (max-width: 900px) {
  .rings { max-width: 340px; margin: 0 auto; }
  .ring span { font-size: 9px; top: 12px; }
}

/* ---------- Framework layers table ---------- */
.layers { list-style: none; border-top: 1px solid var(--line); }
.layer { display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.layer .n { font: 500 13px/1 var(--f-mono); color: var(--gold); font-variant-numeric: tabular-nums; }
.layer h3 { font: 600 20px/1.3 var(--f-display); }
.layer p { color: var(--text-2); font-size: 16px; }
.layer p b { display: block; font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; font-weight: 500; }
.layer__detail { grid-column: 2 / -1; color: var(--text-3); font-size: 15px; }
.layers__head { display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); padding-bottom: var(--s-3); }
.layers__head span { font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.layer p b.only-sm { display: none; }
@media (max-width: 900px) {
  .layers__head { display: none; }
  .layer { grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-2) var(--s-4); }
  .layer p, .layer__detail { grid-column: 2; }
  .layer p b.only-sm { display: block; }
}

/* ---------- Input → system action → business outcome (signature 4) ---------- */
.seqs { display: grid; gap: var(--s-5); }
.illustrative { position: relative; }
.illus-label { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); padding: 7px 10px; border: 1px solid rgba(233, 198, 124, .35); border-radius: var(--r-btn); }
.illus-label::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--gold); }
.seq { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-plate); padding: var(--s-5); }
.seq__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); }
.seq__top h3 { font: 600 18px/1.3 var(--f-display); }
.seq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 0; align-items: stretch; }
.seq__cell { padding: var(--s-5); border: 1px solid var(--line); position: relative; }
.seq__cell + .seq__cell { border-left: 0; }
.seq__cell .k { display: block; font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s-3); }
.seq__cell p { font-size: 16px; color: var(--text); }
.seq__cell ul { list-style: none; display: grid; gap: 8px; color: var(--text-2); font-size: 15px; }
.seq__cell li { display: flex; gap: 10px; }
.seq__cell li::before { content: ""; flex: none; width: 6px; height: 1px; margin-top: .8em; background: var(--gold); }
.seq__cell--action { overflow: clip; background: linear-gradient(180deg, rgba(201, 154, 78, .05), transparent); }
.seq__cell--out { background: linear-gradient(135deg, rgba(201, 154, 78, .12), rgba(201, 154, 78, .02)); border-color: rgba(201, 154, 78, .45); }
.seq__cell--out p { font: 600 18px/1.35 var(--f-display); }
.seq__beam { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: linear-gradient(180deg, transparent, var(--gold-hi), transparent); opacity: 0; pointer-events: none; }
.seq__beam::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 80px; background: linear-gradient(90deg, transparent, rgba(233, 198, 124, .12)); }
.seq__arrow { position: absolute; top: 50%; right: -9px; width: 16px; height: 16px; margin-top: -8px; z-index: 2; background: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; display: grid; place-items: center; color: var(--gold); font: 500 10px/1 var(--f-mono); }
/* Armed by JS; runs once when in view. */
.motion-ok .seq.is-armed .seq__cell--action ul, .motion-ok .seq.is-armed .seq__cell--out p { clip-path: inset(0 100% 0 0); }
.motion-ok .seq.is-run .seq__cell--action ul { clip-path: inset(0 0 0 0); transition: clip-path 1100ms var(--ease-out) 250ms; }
.motion-ok .seq.is-run .seq__cell--out p { clip-path: inset(0 0 0 0); transition: clip-path 700ms var(--ease-out) 1300ms; }
.motion-ok .seq.is-run .seq__beam { animation: beam 1400ms var(--ease-out) 150ms both; }
@keyframes beam { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 2px); opacity: 0; } }
@media (max-width: 900px) {
  .seq { padding: var(--s-4); }
  .seq__grid { grid-template-columns: minmax(0, 1fr); }
  .seq__cell + .seq__cell { border-left: 1px solid var(--line); border-top: 0; }
  .seq__cell--out { border-top: 1px solid rgba(201, 154, 78, .45) !important; }
  .seq__arrow { top: auto; bottom: -9px; right: 50%; margin: 0 -8px 0 0; transform: rotate(90deg); }
}

/* ---------- Commitments (risk reversal) and governance ---------- */
.commits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-4); list-style: none; }
.commit { grid-column: span 2; padding: var(--s-6) var(--s-5); background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-card); display: grid; gap: var(--s-3); align-content: start; }
.commit:nth-child(4), .commit:nth-child(5) { grid-column: span 3; }
.commit .n { font: 500 13px/1 var(--f-mono); color: var(--gold); }
.commit h3 { font: 600 20px/1.3 var(--f-display); }
.commit p { color: var(--text-2); font-size: 16px; }
.gov { margin-top: var(--s-8); display: grid; grid-template-columns: var(--two); gap: var(--s-8); align-items: start; }
.gov h3 { font: 700 clamp(22px, 2vw, 28px)/1.2 var(--f-display); }
.gov h3 + p { color: var(--text-2); margin-top: var(--s-4); }
.ticks { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-6); }
.ticks li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 16px; }
.ticks li::before { content: ""; flex: none; width: 14px; height: 8px; margin-top: .45em; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }
.ticks--one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1000px) { .commit, .commit:nth-child(4), .commit:nth-child(5) { grid-column: span 3; } .commit:nth-child(5) { grid-column: span 6; } }
@media (max-width: 900px) { .gov { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); margin-top: var(--s-7); } }
@media (max-width: 600px) { .commit, .commit:nth-child(n) { grid-column: span 6; } .ticks { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Paper sections on the rising diagonal ---------- */
.paper {
  --cut: 120px;
  position: relative; background: var(--paper); color: var(--p-ink);
  margin-top: calc(var(--cut) * -1); padding: calc(var(--cut) + var(--s-9)) 0 var(--s-10);
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
}
.paper + .sec, .paper + .paper-end { margin-top: 0; }
.paper h2, .paper h3 { color: var(--p-ink); }
.paper .lede, .paper p { color: var(--p-text); }
.paper .price-xl { color: var(--p-ink); }
.paper .mono-label { color: #6E665A; }
.paper .link-arrow { color: var(--p-ink); border-bottom-color: var(--bronze); }
.paper .link-arrow span { color: var(--bronze); }
.paper :focus-visible { outline-color: var(--bronze); }
.paper .ticks li { border-top-color: var(--p-line); color: var(--p-ink); }
.paper .ticks li::before { border-color: var(--bronze); }
@media (max-width: 900px) { .paper { --cut: 60px; padding: calc(var(--cut) + var(--s-8)) 0 var(--s-9); } }

.flag-teaser { display: grid; grid-template-columns: var(--two); gap: var(--s-8); align-items: end; }
.flag-teaser h2 { max-width: 16em; }
.price-xl { font: 800 clamp(44px, 16vw, 120px)/.95 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: var(--s-6); color: var(--p-ink); }
.days { font: 500 14px/1.4 var(--f-mono); letter-spacing: .04em; color: var(--p-text); margin-top: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .flag-teaser { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); } }

/* ---------- Diagnostic steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.step { padding: var(--s-6) var(--s-5) var(--s-6) 0; border-bottom: 1px solid var(--line); display: grid; gap: var(--s-3); align-content: start; }
.step:not(:nth-child(3n+1)) { padding-left: var(--s-5); border-left: 1px solid var(--line); }
.step .n { font: 800 34px/1 var(--f-display); color: var(--gold); font-variant-numeric: tabular-nums; }
.step h3 { font: 600 18px/1.3 var(--f-display); }
.step p { color: var(--text-2); font-size: 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-7); align-items: center; }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step:not(:nth-child(3n+1)) { padding: var(--s-5) 0; border-left: 0; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--s-4); }
  .step .n { grid-row: span 2; font-size: 28px; }
}
@media (max-width: 480px) { .cta-row .btn { width: 100%; } }

/* ---------- Engine page hero ---------- */
.hero-engine { padding: var(--s-9) 0 var(--s-9); overflow: clip; }
.hero-engine .split { align-items: center; }
.hero-engine h1 { max-width: 13em; }
.h1-sub { display: block; font-size: .56em; line-height: 1.12; letter-spacing: -.01em; margin-top: .35em; }
.hero-engine .lede { margin-top: var(--s-5); }
.hero-engine .rings { max-width: 460px; }
@media (max-width: 900px) { .hero-engine { padding: var(--s-8) 0; } .hero-engine .rings { max-width: 300px; margin: var(--s-4) auto 0; } }

/* Problem statements */
.quotes { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.quotes li { padding: var(--s-5) 0; border-bottom: 1px solid var(--line); font: 600 clamp(18px, 1.6vw, 22px)/1.35 var(--f-display); display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-4); }
.quotes .n { font: 500 13px/1.8 var(--f-mono); color: var(--gold); }

/* Systems grid */
.systems { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.sys { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; min-height: 200px; }
.sys .id { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; color: var(--gold); font-variant-numeric: tabular-nums; }
.sys h3 { font: 600 18px/1.3 var(--f-display); }
.sys p { color: var(--text-2); font-size: 15px; }
.sys-group + .sys-group { margin-top: var(--s-7); }
.sys-group > .mono-label { display: block; margin-bottom: var(--s-4); }
.human-note { margin-top: var(--s-6); display: flex; gap: var(--s-4); align-items: center; padding: var(--s-5); border: 1px solid rgba(201, 154, 78, .45); border-radius: var(--r-card); font: 600 18px/1.35 var(--f-display); }
.human-note::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 999px; background: var(--gold); }
@media (max-width: 1100px) { .systems { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .systems { grid-template-columns: minmax(0, 1fr); } .sys { min-height: 0; } }

/* Coverage by framework layer */
.cover { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.cover li { padding: var(--s-6) var(--s-5); background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-card); }
.cover .n { font: 500 12px/1 var(--f-mono); color: var(--gold); letter-spacing: .08em; }
.cover h3 { font: 600 20px/1.3 var(--f-display); margin: var(--s-3) 0 var(--s-4); }
.cover ul { list-style: none; display: grid; gap: 8px; color: var(--text-2); }
.cover ul li { padding: 0; background: none; border: 0; display: flex; gap: 10px; }
.cover ul li::before { content: ""; flex: none; width: 6px; height: 1px; margin-top: .8em; background: var(--gold); }
@media (max-width: 700px) { .cover { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tier cards with pointer-follow gold edge (CodePen 13 technique, original code) ---------- */
.tiers { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-4); }
.tiers--two .tier { grid-column: span 3; }
.tier {
  --mx: 50%; --my: 0%; --glow: 0;
  grid-column: span 2; position: relative; isolation: isolate;
  background: var(--ink-3); border-radius: var(--r-card); padding: var(--s-6) var(--s-5) var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tier::before { /* static gold top edge (touch + default) */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: var(--r-card) var(--r-card) 0 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7;
}
.tier::after { /* pointer-follow edge glow, desktop fine pointers only */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(233, 198, 124, .9), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: var(--glow); transition: opacity var(--dur-2) var(--ease-out);
}
.tier__eng { display: flex; align-items: center; gap: 10px; }
.tier__eng .dot { width: 10px; height: 10px; border-radius: 50%; }
.tier h3 { font: 700 21px/1.3 var(--f-display); letter-spacing: -.005em; min-height: 2.5em; }
.tier__price { font: 800 46px/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: var(--s-2); }
.tier__days { font: 500 13px/1.4 var(--f-mono); letter-spacing: .04em; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tier ul { list-style: none; display: grid; gap: 10px; margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); color: var(--text-2); font-size: 15px; }
.tier ul li { display: flex; gap: 10px; }
.tier ul li::before { content: ""; flex: none; width: 12px; height: 7px; margin-top: .45em; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }
.tier ul li.inc { color: var(--text); font-weight: 500; }
.tier__foot { margin-top: auto; padding-top: var(--s-4); }
.tier--s3 { grid-column: span 3; }
.tier--flag { grid-column: span 6; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-4) var(--s-8); background: linear-gradient(135deg, #1F1B14, var(--ink-3) 55%); box-shadow: inset 0 0 0 1px rgba(201, 154, 78, .45); }
.tier--flag h3 { min-height: 0; font-size: clamp(24px, 2.4vw, 32px); }
.tier--flag .tier__price { font-size: clamp(56px, 6vw, 88px); }
.tier--flag ul { margin-top: 0; border-top: 0; padding-top: 0; align-self: center; }
@media (max-width: 1100px) { .tier, .tier--s3 { grid-column: span 3; } .tier:nth-child(3) { grid-column: span 6; } .tier--flag { grid-column: span 6; } }
@media (max-width: 700px) {
  .tier, .tiers--two .tier, .tier--s3, .tier--flag { grid-column: span 6; }
  .tier--flag { grid-template-columns: minmax(0, 1fr); }
  .tier h3 { min-height: 0; }
}

/* Retainer / ongoing block */
.ongoing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--s-8); padding: var(--s-7); border: 1px solid var(--line); border-radius: var(--r-plate); background: var(--ink-3); align-items: start; }
.ongoing h3 { font: 700 clamp(22px, 2vw, 28px)/1.2 var(--f-display); margin: var(--s-3) 0 var(--s-4); }
.ongoing p { color: var(--text-2); }
.retainers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); list-style: none; }
.retainer { padding: var(--s-6) var(--s-5); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--ink-3); display: grid; gap: var(--s-4); align-content: start; }
.retainer h3 { font: 700 20px/1.3 var(--f-display); }
.retainer p.scope { font: 500 12px/1.5 var(--f-mono); color: var(--text-3); }
@media (max-width: 900px) { .ongoing { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); padding: var(--s-5); } .retainers { grid-template-columns: minmax(0, 1fr); } }

/* Cross-link band ("includes the engine inside it") */
.crosslink { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-5); padding: var(--s-6) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.crosslink p { font: 600 clamp(18px, 1.8vw, 24px)/1.3 var(--f-display); max-width: 30em; }

/* ---------- Offers: chooser ---------- */
.chooser { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-8); }
.chooser a { height: 100%; display: grid; gap: var(--s-4); align-content: start; padding: var(--s-6) var(--s-5); background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color var(--dur-1) var(--ease-out); }
.chooser .q { font: 600 19px/1.35 var(--f-display); }
.chooser .a { display: flex; align-items: center; gap: 10px; color: var(--gold-hi); font-weight: 600; margin-top: auto; }
.chooser .a .dot { width: 10px; height: 10px; border-radius: 50%; }
@media (hover: hover) and (pointer: fine) { .chooser a:hover { border-color: var(--gold); } }
@media (max-width: 900px) { .chooser { grid-template-columns: minmax(0, 1fr); margin-top: var(--s-7); } }

/* ---------- Flagship (paper) ---------- */
.flagship__top { display: grid; grid-template-columns: var(--two); gap: var(--s-8); align-items: end; }
.flagship__grid { display: grid; grid-template-columns: var(--two); gap: var(--s-8); margin-top: var(--s-9); align-items: start; }
.pay { background: #FFFDF9; border: 1px solid var(--p-line); border-radius: var(--r-plate); padding: var(--s-6); position: sticky; top: calc(var(--header-h) + 24px); }
.pay h3 { font: 700 22px/1.2 var(--f-display); }
.pay ol { list-style: none; margin-top: var(--s-5); }
.pay li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--p-line); }
.pay .m { font: 500 12px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #6E665A; }
.pay .amt { grid-row: span 2; font: 800 26px/1 var(--f-display); color: var(--p-ink); font-variant-numeric: tabular-nums; align-self: center; }
.pay .what { color: var(--p-ink); font-size: 16px; }
.pay .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--s-4); border-top: 2px solid var(--p-ink); margin-top: 0; }
.pay .total span { font: 500 12px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--p-ink); }
.pay .total b { font: 800 30px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.pay .note { margin-top: var(--s-4); font-size: 14px; }
.suited { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--p-line); }
.suited ul { list-style: none; display: grid; gap: 8px; margin-top: var(--s-3); color: var(--p-ink); font-size: 16px; }

/* 45-day journey line (signature 3): stroke draws with scroll; stage text is always visible. */
.journey { position: relative; }
.journey h3.journey__title { font: 700 22px/1.2 var(--f-display); }
.journey__track { position: relative; margin-top: var(--s-6); }
.journey__list { list-style: none; position: relative; padding-left: 56px; }
.journey__line { position: absolute; left: 15px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--p-line); }
.journey__fill { position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(180deg, #C99A4E, var(--bronze)); transform-origin: top; transform: scaleY(var(--j)); }
.journey__head { position: absolute; left: 50%; top: calc(var(--j) * 100%); width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: #C99A4E; box-shadow: 0 0 0 5px rgba(201, 154, 78, .22), 0 0 18px rgba(201, 154, 78, .55); opacity: calc(min(1, var(--j) * 40) * min(1, (1 - var(--j)) * 40)); }
html:not(.motion-ok) .journey__head { display: none; }
@property --j { syntax: '<number>'; inherits: true; initial-value: 1; }
.jstage { position: relative; padding-bottom: var(--s-7); }
.jstage:last-child { padding-bottom: 0; }
.jstage__dot { position: absolute; z-index: 1; left: -50px; top: 2px; width: 22px; height: 22px; border-radius: 999px; background: var(--paper); border: 2px solid var(--p-line); display: grid; place-items: center; font: 500 10px/1 var(--f-mono); color: var(--p-text); transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.jstage.is-lit .jstage__dot, html:not(.motion-ok) .jstage__dot { background: var(--bronze); border-color: var(--bronze); color: #FFF7EA; }
.jstage .stage-n { font: 500 12px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bronze); }
.jstage h4 { font: 700 20px/1.3 var(--f-display); color: var(--p-ink); margin: 4px 0 6px; }
.jstage .sub { color: var(--p-text); }
.jstage .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-4); }
.jstage .cols b { display: block; font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #6E665A; margin-bottom: 6px; }
.jstage .cols ul { list-style: none; display: grid; gap: 4px; font-size: 15px; color: var(--p-ink); }
.jstage .cols li { display: flex; gap: 8px; }
.jstage .cols li::before { content: ""; flex: none; width: 5px; height: 1px; margin-top: .8em; background: var(--bronze); }
.deliverable-key { display: inline-block; padding: 1px 8px; border: 1px solid var(--bronze); border-radius: var(--r-btn); color: var(--p-ink); font-weight: 600; }
.outcome { margin-top: var(--s-4); padding: var(--s-4); background: #FFFDF9; border-left: 2px solid var(--bronze); color: var(--p-ink); font-size: 16px; }
.outcome b { font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); display: block; margin-bottom: 4px; }
.human-line { margin-top: var(--s-3); font-weight: 600; color: var(--p-ink); }
@media (max-width: 900px) {
  .flagship__top, .flagship__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .flagship__grid { margin-top: var(--s-8); }
  .pay { position: static; padding: var(--s-5); }
  .journey__list { padding-left: 44px; }
  .jstage__dot { left: -40px; }
  .journey__line { left: 9px; }
  .jstage .cols { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
}

/* Separate costs + FAQ */
.aside-note { display: grid; grid-template-columns: var(--two); gap: var(--s-8); padding: var(--s-7) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.aside-note h2 { font-size: clamp(24px, 2.4vw, 34px); }
.aside-note p { color: var(--text-2); max-width: 36em; }
.aside-note p + p { margin-top: var(--s-3); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); min-height: 72px; padding: var(--s-4) 0; font: 600 clamp(17px, 1.5vw, 20px)/1.35 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg) translateY(-3px); transition: transform var(--dur-2) var(--ease-ui); }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq .ans { padding: 0 0 var(--s-6); color: var(--text-2); max-width: 46em; }
.faq .ans p + p { margin-top: var(--s-3); }
@media (max-width: 900px) { .aside-note { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); } }

/* ---------- Industries explorer (signature 5; CodePen 09 technique, tap + keyboard first) ---------- */
.explorer { list-style: none; border-top: 1px solid var(--line); }
.xp { border-bottom: 1px solid var(--line); }
.xp__btn { width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--s-4); align-items: center; text-align: left; padding: var(--s-5) 0; min-height: 88px; }
.xp__btn .n { font: 500 13px/1 var(--f-mono); color: var(--gold); }
.xp__btn .name { font: 700 clamp(22px, 2.6vw, 38px)/1.15 var(--f-display); letter-spacing: -.01em; transition: color var(--dur-1) var(--ease-out); }
.xp__btn .pressure { display: block; font: 400 16px/1.45 var(--f-body); color: var(--text-2); margin-top: 6px; letter-spacing: 0; }
.xp__icon { width: 44px; height: 44px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ghost-line); position: relative; flex: none; transition: transform var(--dur-2) var(--ease-ui), box-shadow var(--dur-1) var(--ease-out); }
.xp__icon::before, .xp__icon::after { content: ""; position: absolute; left: 14px; right: 14px; top: 21px; height: 1.5px; background: var(--gold-hi); }
.xp__icon::after { transform: rotate(90deg); transition: transform var(--dur-2) var(--ease-ui); }
.xp__btn[aria-expanded="true"] .xp__icon::after { transform: rotate(0); }
.xp__btn[aria-expanded="true"] .name { color: var(--gold-hi); }
@media (hover: hover) and (pointer: fine) { .xp__btn:hover .name { color: var(--gold-hi); } .xp__btn:hover .xp__icon { box-shadow: inset 0 0 0 1px var(--gold); } }
.xp__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--s-6) var(--s-8); padding: 0 0 var(--s-7) 72px; }
.js .xp__panel[hidden] { display: none; }
.xp__panel h3 { font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s-3); }
.xp__panel ul { list-style: none; display: grid; gap: 8px; }
.xp__panel ul li { display: flex; gap: 10px; color: var(--text); }
.xp__panel ul li::before { content: ""; flex: none; width: 6px; height: 1px; margin-top: .8em; background: var(--gold); }
.calib { padding: var(--s-5); background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-card); }
.calib .tiername { font: 600 17px/1.35 var(--f-display); color: var(--text); }
.calib .tierprice { font: 700 15px/1.4 var(--f-mono); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.calib p { color: var(--text-2); margin-top: var(--s-3); font-size: 16px; }
.calib .or { display: block; margin: 8px 0; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.motion-ok .xp__panel:not([hidden]) > * { animation: xp-in var(--dur-2) var(--ease-out) both; }
@keyframes xp-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 900px) {
  .xp__btn { grid-template-columns: 36px minmax(0, 1fr) auto; gap: var(--s-3); }
  .xp__panel { grid-template-columns: minmax(0, 1fr); padding: 0 0 var(--s-6) 0; }
}

/* ---------- Executive command center (illustrative; no numbers, no names) ---------- */
.cmd { background: #0E0F10; border: 1px solid var(--line); border-radius: var(--r-plate); padding: var(--s-5); box-shadow: var(--shadow-plate); }
.cmd__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); margin-bottom: var(--s-4); }
.cmd__title { font: 600 15px/1.3 var(--f-display); }
.cmd__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-3); list-style: none; }
.tile { grid-column: span 2; background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-4); min-height: 132px; display: flex; flex-direction: column; gap: var(--s-3); overflow: hidden; }
.tile:nth-child(1), .tile:nth-child(2) { grid-column: span 3; }
.tile:nth-child(6), .tile:nth-child(7) { grid-column: span 3; }
.tile .lbl { font: 500 11px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.tile svg { width: 100%; height: 64px; margin-top: auto; }
.tile .spark { fill: none; stroke: var(--gold); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.tile .area { fill: url(#cmd-fill); }
.tile .bar { fill: #34302A; }
.tile .bar--hi { fill: var(--gold); }
.tile .gauge-bg { fill: none; stroke: #2E2F32; stroke-width: 6; }
.tile .gauge-fg { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; }
.tile .threshold { stroke: var(--steel-hi); stroke-width: 1.5; stroke-dasharray: 3 3; }
.motion-ok .tile .spark { stroke-dasharray: 6 4; animation: drift 6s linear infinite; }
.motion-ok .tile .bar--hi { animation: breathe 4.8s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
.motion-ok .tile .gauge-fg { animation: sweepg 7s ease-in-out infinite alternate; }
@keyframes drift { to { stroke-dashoffset: -100; } }
@keyframes breathe { 50% { transform: scaleY(.82); } }
@keyframes sweepg { to { stroke-dashoffset: 18; } }
@media (max-width: 700px) { .tile, .tile:nth-child(n) { grid-column: span 6; min-height: 112px; } }

/* Capacity coupling diagram */
.couple { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s-5); align-items: center; }
.couple__box { padding: var(--s-6) var(--s-5); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--ink-3); }
.couple__box h3 { font: 600 19px/1.3 var(--f-display); margin: var(--s-2) 0 var(--s-3); }
.couple__box p { color: var(--text-2); font-size: 16px; }
.couple__link { display: grid; justify-items: center; gap: 8px; color: var(--gold-hi); font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.couple__link svg { width: 120px; height: 24px; }
@media (max-width: 900px) { .couple { grid-template-columns: minmax(0, 1fr); } .couple__link svg { transform: rotate(90deg); width: 64px; } }

/* ---------- Methodology ---------- */
.not-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.not-list li { padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); text-decoration: line-through; text-decoration-color: rgba(201, 154, 78, .7); text-decoration-thickness: 1.5px; }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: var(--s-4) var(--s-4) var(--s-4) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.compare tbody th { font: 600 17px/1.3 var(--f-display); color: var(--text); width: 28%; }
.compare td { color: var(--text-2); }
.compare td:last-child { color: var(--text); }
.table-note { margin-top: var(--s-4); font-size: 14px; color: var(--text-3); }
@media (max-width: 760px) {
  .compare thead { display: none; }
  .compare tr { display: grid; gap: 6px; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
  .compare th, .compare td { display: block; padding: 0; border: 0; width: auto; }
  .compare td::before { content: attr(data-k); display: block; font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-top: 6px; }
}
.archchain { list-style: none; display: grid; gap: 0; counter-reset: a; max-width: 44em; }
.archchain li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-4); align-items: center; padding: 14px 0; font: 600 clamp(16px, 1.5vw, 19px)/1.3 var(--f-display); letter-spacing: .01em; }
.archchain li::before { counter-increment: a; content: counter(a, decimal-leading-zero); font: 500 12px/1 var(--f-mono); color: var(--gold); }
.archchain li + li::after { content: ""; position: absolute; left: 7px; top: -10px; width: 1px; height: 20px; background: var(--gold); opacity: .6; }
.archchain li:last-child { color: var(--gold-hi); }
.big-q { font: 800 clamp(30px, 4vw, 56px)/1.08 var(--f-display); letter-spacing: -.015em; max-width: 17em; }
.ask-old { color: var(--text-3); font-size: 18px; text-decoration: line-through; text-decoration-color: rgba(201, 154, 78, .6); margin-bottom: var(--s-5); }
.beats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.beat { padding: var(--s-6) var(--s-5); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--ink-3); display: grid; gap: var(--s-3); align-content: start; }
.beat:last-child { border-color: rgba(201, 154, 78, .45); }
.beat .n { font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.beat h3 { font: 700 22px/1.2 var(--f-display); }
.beat p { color: var(--text-2); font-size: 16px; }
.trans { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-4); }
.trans li { padding: var(--s-5) 0 0; border-top: 1px solid var(--gold); display: grid; gap: var(--s-3); align-content: start; }
.trans .n { font: 500 12px/1 var(--f-mono); color: var(--gold); }
.trans p { font: 600 17px/1.35 var(--f-display); }
.trans p span { display: block; color: var(--text-3); font: 400 15px/1.45 var(--f-body); margin-bottom: 4px; }
@media (max-width: 1100px) { .trans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .beats { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .trans { grid-template-columns: minmax(0, 1fr); } }

/* Reduced motion: everything in final state */
@media (prefers-reduced-motion: reduce) {
  .stack, .rings { animation: none !important; }
  .rings { --d1: 1; --d2: 1; --d3: 1; }
  .stack { --p: 1; }
  .rings { --r: 1 !important; }
  .journey__track { --j: 1 !important; }
  .ring__arc, .ring--2::before { animation: none !important; }
}
.ongoing + .crosslink { margin-top: var(--s-8); }
.hero-engine .rings { --ring-bg: var(--ink); }
.gov h2 + p { color: var(--text-2); margin-top: var(--s-4); }
.lede + .prose { margin-top: var(--s-4); }
.calib .tierprice { display: block; margin-top: 2px; }
.big-q + .lede { margin-top: var(--s-6); }
.hero-engine .not-list { margin-top: var(--s-4); }
.seq__cell--out .k { color: var(--text-2); }
main li, main p { text-wrap: pretty; }
.ongoing h3 { margin-top: 0; }

/* forms-legal.css */
/* Book a Diagnostic form + legal pages (T-001c). creative-forms-legal.md: form = single page, grouped fieldsets,
   white panel on paper; legal = paper ground, readable column, sticky contents on desktop, collapsible on phones. */

/* Vercel guidelines: no double-tap zoom delay on any control. */
a, button, summary, label, input, textarea, select { touch-action: manipulation; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Pages without the CTA bar don't need the footer's extra bottom room. */
.js body:not(:has([data-mcta])) .site-footer { padding-bottom: var(--s-7); }

/* ---------- Book a Diagnostic: dark opening ---------- */
.bd-hero { padding: var(--s-9) 0 calc(var(--s-7) + 120px); position: relative; overflow: clip; }
.bd-hero::after { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%; background: linear-gradient(90deg, rgba(201, 154, 78, 0), rgba(201, 154, 78, .07), rgba(201, 154, 78, 0)); transform: rotate(42deg); pointer-events: none; }
.bd-hero__h1 { font-size: clamp(34px, 5vw, 64px); max-width: 14em; }
.bd-hero .lede { margin-top: var(--s-5); }
.bd-hero .lede a { color: var(--text); border-bottom: 1px solid var(--gold); }
.bd-hero__note { margin-top: var(--s-4); color: var(--text-3); font-size: 16px; max-width: 36em; }
.bd-hero--status { padding-bottom: var(--s-10); min-height: 56vh; }

/* ---------- Book a Diagnostic: paper section ---------- */
.bd__grid { display: grid; grid-template-columns: var(--two); gap: var(--s-8); align-items: start; }
.bd__h2 { font: 700 26px/1.2 var(--f-display); color: var(--p-ink); }
.bd__h3 { font: 700 18px/1.3 var(--f-display); color: var(--p-ink); }
.bsteps { list-style: none; margin-top: var(--s-6); display: grid; gap: 0; counter-reset: none; }
.bsteps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-5) 0; border-top: 1px solid var(--p-line); }
.bsteps li:last-child { border-bottom: 1px solid var(--p-line); }
.bsteps .n { width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--bronze); display: grid; place-items: center; font: 500 13px/1 var(--f-mono); color: var(--bronze); font-variant-numeric: tabular-nums; }
.bsteps h3 { font: 700 17px/1.3 var(--f-display); color: var(--p-ink); }
.bsteps p { margin-top: 6px; font-size: 16px; }
.bd__next, .bd__email { margin-top: var(--s-7); }
.bd__aside, .dform__done, .bd-hero .lede { overflow-wrap: break-word; min-width: 0; }
.bd__next p, .bd__email p { margin-top: var(--s-3); max-width: 30em; }
.paper .bd__next a { color: var(--p-ink); border-bottom: 1px solid var(--bronze); }
.bd__email .link-arrow { margin-top: var(--s-3); overflow-wrap: anywhere; }

.bd__panel { background: #FFFDF9; border: 1px solid var(--p-line); border-radius: var(--r-plate); padding: var(--s-7); box-shadow: 0 30px 60px -40px rgba(22, 19, 14, .35); scroll-margin-top: calc(var(--header-h) + 16px); }
.dform__intro { margin-top: var(--s-3); font-size: 15px; }
.req { color: #9A3412; font-weight: 600; }
.opt { color: #6E665A; font-weight: 400; }

/* Status messages (announced by role="status") */
.dform__status:empty { display: none; }
.dform__status { margin-top: var(--s-5); padding: var(--s-4) var(--s-5); border-radius: var(--r-card); border-left: 3px solid var(--bronze); background: #F6F0E4; color: var(--p-ink); }
.dform__status.is-error { border-left-color: #A1261B; background: #FBEDEA; }
.dform__status p + p { margin-top: 6px; }
.paper .dform__status p { color: var(--p-ink); }
.dform__status .btn { margin-top: var(--s-4); }
.dform__status:focus { outline: 2px solid var(--bronze); outline-offset: 2px; }

.dform__set { border: 0; padding: 0; margin: var(--s-6) 0 0; min-width: 0; }
.dform__set legend { font: 600 15px/1.3 var(--f-body); color: var(--p-ink); padding: 0; margin-bottom: var(--s-3); }
.dform__set:first-of-type legend { font: 500 12px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #6E665A; margin-bottom: var(--s-4); }
.dform__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-5); }
.field { display: grid; gap: 6px; margin-bottom: var(--s-4); min-width: 0; }
.dform > .field { margin-top: var(--s-6); }
.field label { font-weight: 600; font-size: 15px; color: var(--p-ink); }
.field__hint { font-size: 14px; color: var(--p-text); margin-top: -2px; }
.paper .field__hint { color: var(--p-text); }
.field__err:empty { display: none; }
.field__err, .paper .field__err { color: #A1261B; font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; font: 400 17px/1.4 var(--f-body); color: var(--p-ink); background: #fff;
  border: 1px solid #8A7E6E; border-radius: var(--r-btn); padding: 13px 14px; min-height: 52px;
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:hover, .field textarea:hover { border-color: var(--p-ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--bronze); outline-offset: 1px; border-color: var(--bronze); }
[aria-invalid="true"] { border-color: #A1261B !important; box-shadow: inset 3px 0 0 #A1261B; }

/* Choice chips (radios) and question rows (checkboxes): the real input stays focusable, drawn by its label. */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip, .check { position: relative; cursor: pointer; }
.chip input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid #8A7E6E; border-radius: 999px; font-size: 15px; color: var(--p-ink); background: #fff; transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out); }
.chip:hover span { border-color: var(--p-ink); }
.chip input:checked + span { background: var(--p-ink); border-color: var(--p-ink); color: #FFF7EA; }
.checks { display: grid; gap: var(--s-2); }
.check span { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--s-3); align-items: start; padding: 14px 16px; border: 1px solid #8A7E6E; border-radius: var(--r-card); background: #fff; font-size: 16px; line-height: 1.45; color: var(--p-ink); transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out); }
.check span::before { content: ""; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid #6E665A; border-radius: 3px; background: #fff; }
.check:hover span { border-color: var(--p-ink); }
.check input:checked + span { border-color: var(--bronze); background: #FBF5EA; }
.check span { position: relative; }
.check input:checked + span::before { background-color: var(--bronze); border-color: var(--bronze); }
.check input:checked + span::after { content: ""; position: absolute; left: 23px; top: 18px; width: 6px; height: 11px; border: solid #FFF7EA; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.chip input:focus-visible + span, .check input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }
.has-error .chip span, .has-error .check span { border-color: #A1261B; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.dform__privacy { margin-top: var(--s-6); font-size: 14px; }
.paper .dform__privacy a { color: var(--p-ink); border-bottom: 1px solid var(--bronze); }
.dform__submit { margin-top: var(--s-4); width: 100%; }
.dform__submit:disabled { cursor: progress; }
.dform__spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: dspin .8s linear infinite; flex: none; }
@keyframes dspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dform__spin { animation-duration: 2.4s; } }
.dform__done { display: grid; gap: var(--s-4); }
.dform__done[hidden] { display: none; }
.dform__done a:not(.link-arrow) { color: var(--p-ink); border-bottom: 1px solid var(--bronze); }
.dform__done h2:focus { outline: none; }
.dform :is(h2):focus { outline: none; }

@media (max-width: 1000px) {
  .bd__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }
  .bd__panel { order: -1; }
}
@media (max-width: 600px) {
  .bd-hero { padding: var(--s-7) 0 calc(var(--s-7) + 60px); }
  .bd__panel { padding: var(--s-5) var(--s-4); }
  .dform__row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Legal pages ---------- */
.legal { background: var(--paper); color: var(--p-ink); padding: var(--s-9) 0 calc(var(--s-10) + var(--rise)); }
.legal__grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); grid-template-areas: "toc head" "toc body"; gap: 0 var(--s-9); align-items: start; }
.legal__head { grid-area: head; max-width: 40em; }
.legal__toc { grid-area: toc; grid-row: 1 / span 2; }
.legal__body { grid-area: body; }
.legal__toc { position: sticky; top: calc(var(--header-h) + var(--s-5)); max-height: calc(100vh - var(--header-h) - var(--s-7)); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--p-line) transparent; overscroll-behavior: contain; padding-right: 4px; }
.toc summary { font: 500 12px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #6E665A; list-style: none; padding: 6px 0 var(--s-3); }
.toc summary::-webkit-details-marker { display: none; }
.toc ul { list-style: none; display: grid; border-top: 1px solid var(--p-line); }
.toc a { display: block; padding: 8px 0 8px 12px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--p-text); transition: color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out); }
.toc a:hover { color: var(--p-ink); }
.toc a[aria-current="true"] { color: var(--p-ink); border-left-color: var(--bronze); font-weight: 600; }
.legal :focus-visible { outline-color: var(--bronze); }
.legal__body { max-width: 34em; font-size: 18px; } /* ≈ 75 characters per line */
.legal__head h1 { font-size: clamp(32px, 4.4vw, 56px); color: var(--p-ink); }
.legal__updated { margin-top: var(--s-4); font: 500 13px/1.4 var(--f-mono); letter-spacing: .02em; color: #6E665A; }
.legal__body > p { margin-top: var(--s-6); font-size: 1em; line-height: 1.7; color: var(--p-ink); }
.legal__sec { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--p-line); scroll-margin-top: calc(var(--header-h) + var(--s-4)); }
.legal__sec h2 { font: 700 21px/1.3 var(--f-display); color: var(--p-ink); scroll-margin-top: calc(var(--header-h) + var(--s-5)); }
.legal__sec h2:focus { outline: none; }
.legal__sec p { margin-top: var(--s-4); font-size: 1em; line-height: 1.75; color: #2E2922; }
.legal__list { list-style: none; margin-top: var(--s-4); display: grid; gap: var(--s-3); }
.legal__list li { position: relative; padding-left: 24px; font-size: 1em; line-height: 1.7; color: #2E2922; }
.legal__list li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 1px; background: var(--bronze); transform: rotate(45deg); }
.legal a { color: var(--p-ink); border-bottom: 1px solid var(--bronze); overflow-wrap: anywhere; }
.legal .toc a { border-bottom: 0; }
.legal__sec--contact { background: #FFFDF9; border: 1px solid var(--p-line); border-radius: var(--r-plate); padding: var(--s-6); }
.legal__sec--contact p { margin-top: var(--s-2); }
.legal__sec--contact h2 + p { margin-top: var(--s-4); font-weight: 600; color: var(--p-ink); }

@media (min-width: 1001px) {
  .toc summary { pointer-events: none; } /* always open on desktop */
}
@media (max-width: 1000px) {
  .legal { padding-top: var(--s-7); }
  .legal__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "toc" "body"; gap: var(--s-6); }
  .legal__toc { grid-row: auto; }
  .legal__toc { position: static; max-height: none; overflow: visible; border: 1px solid var(--p-line); border-radius: var(--r-card); background: #FFFDF9; }
  .toc summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 var(--s-4); cursor: pointer; color: var(--p-ink); }
  .toc summary::after { content: "+"; font: 400 20px/1 var(--f-mono); color: var(--bronze); }
  .toc[open] summary::after { content: "−"; }
  .toc ul { padding: 0 var(--s-4) var(--s-3); }
  .legal__sec p, .legal__list li { font-size: 16px; }
  .legal__body > p { font-size: 17px; }
  .legal__body > p:first-child { margin-top: 0; }
  .legal__sec--contact { padding: var(--s-5); }
}
@media (prefers-reduced-motion: reduce) {
  .chip span, .check span, .field input, .field textarea, .toc a { transition: none; }
}
