/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face { font-family: "Plex Serif"; src: url("/fonts/ibm-plex-serif-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Serif"; src: url("/fonts/ibm-plex-serif-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Serif"; src: url("/fonts/ibm-plex-serif-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- Tokens: midnight navy, ivory, champagne gold ---------- */
:root {
  --paper: #F8F5EE;
  --paper-2: #F0EADD;
  --surface: #FFFFFF;
  --ink: #0B1324;
  --ink-2: #3E4757;
  --ink-3: #5C6676;
  --line: #E4DDCC;
  --line-2: #CFC4AC;
  --gold: #8F5F0C;            /* text-safe gold on ivory/white */
  --gold-soft: #F6EDD8;
  --gold-line: #D9C391;
  --gold-grad: linear-gradient(115deg, #7A4F08 0%, #B08A3E 48%, #7A4F08 100%);
  --gold-btn: linear-gradient(115deg, #B8913F 0%, #E6CB88 50%, #B8913F 100%);
  --gold-on-ink: #E2C27A;      /* gold inside the navy bands */
  --gold-grad-ink: linear-gradient(115deg, #C9A253 0%, #F4E2AE 48%, #C9A253 100%);
  --ok: #0B6E44;
  --ok-bg: #E2F0E7;
  --warn: #8A5300;
  --warn-bg: #F8ECD6;
  --info: #2A4E8C;
  --info-bg: #E4EAF5;
  --ink-sec: #0B1324;
  --ink-sec-2: #121D33;
  --on-ink: #F3EEE3;
  --on-ink-2: #B7BECB;
  --on-ink-line: #24304A;
  --ring: #8F5F0C;
  --glow: rgb(201 162 83 / .16);
  --shadow: 0 1px 2px rgb(11 19 36 / .06), 0 14px 36px -14px rgb(11 19 36 / .22);
  --serif: "Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 14px;
  --gut: clamp(16px, 4vw, 40px);
  --nav-h: 68px;
  color-scheme: light;
}
/* Light is the default; dark only when the visitor picks it with the toggle. */
:root[data-theme="dark"] {
  --paper: #070B14; --paper-2: #0C1220; --surface: #101828;
    --ink: #F2EDE3; --ink-2: #BCC3CF; --ink-3: #959EAD;
    --line: #1E2940; --line-2: #2E3B56;
    --gold: #E2C27A; --gold-soft: #2A2314; --gold-line: #5A4A26;
    --gold-grad: linear-gradient(115deg, #C9A253 0%, #F4E2AE 48%, #C9A253 100%);
    --ok: #5CCB94; --ok-bg: #10291C; --warn: #E7B25E; --warn-bg: #33260F; --info: #9DB8EC; --info-bg: #15233D;
    --ink-sec: #03060C; --ink-sec-2: #0A1120;
    --on-ink: #F2EDE3; --on-ink-2: #A7B0BF; --on-ink-line: #1C2740;
    --ring: #E2C27A;
    --glow: rgb(226 194 122 / .10);
    --shadow: 0 1px 2px rgb(0 0 0 / .35), 0 18px 44px -18px rgb(0 0 0 / .7);
    color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); }
.small { font-size: 13px; letter-spacing: .02em; }
.muted { color: var(--ink-3); }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-xs { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; }
em { font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); }
.btn-line { border-color: var(--line-2); background: transparent; color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); }
.btn-paper { background: var(--on-ink); color: var(--ink-sec); }
.btn-paper:hover { background: #fff; }
.btn-line-light { border-color: var(--on-ink-line); color: var(--on-ink); background: transparent; }
.btn-line-light:hover { border-color: var(--on-ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: var(--paper);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 12px; }
.nav-links { margin-left: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mono-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
  background: var(--ink); color: var(--paper); font: 600 14px/1 var(--mono); letter-spacing: .04em;
}
.brand-name { font: 600 18px/1.1 var(--serif); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { padding: 10px 12px; font-size: 15px; color: var(--ink-2); text-decoration: none; border-radius: 8px; }
.nav-links a:not(.btn):hover { color: var(--ink); background: var(--paper-2); }
.nav-cta { margin-left: 8px; }
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); transition: border-color .18s, color .18s;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); place-items: center; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 30% 40%, color-mix(in srgb, var(--paper) 70%, transparent) 0%, var(--paper) 72%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1.4 var(--mono); letter-spacing: .03em; color: var(--ink-2); padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); flex: none; }
.hero h1 { margin-top: 22px; font: 500 clamp(36px, 5.2vw, 64px)/1.06 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.hero h1 em { color: var(--ink-2); }
.lede { margin-top: 22px; max-width: 56ch; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); }
.lede-2 { margin-top: 12px; }
.lede strong { color: var(--ink); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.facts li { padding: 16px 16px 0 0; display: grid; gap: 2px; }
.facts li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.facts b { font: 500 26px/1.1 var(--serif); }
.facts span { font-size: 14px; color: var(--ink-3); line-height: 1.4; }

/* ---------- Receipt ---------- */
.receipt { position: relative; filter: drop-shadow(0 18px 30px rgb(15 27 45 / .14)); }
.receipt-edge {
  height: 14px; background: var(--surface);
  -webkit-mask: radial-gradient(circle 7px at 10px 0, transparent 98%, #000) 0 0 / 20px 14px repeat-x;
  mask: radial-gradient(circle 7px at 10px 0, transparent 98%, #000) 0 0 / 20px 14px repeat-x;
}
.receipt-body { background: var(--surface); padding: 10px 26px 24px; border-radius: 0 0 var(--r) var(--r); }
.receipt-head { padding-bottom: 14px; border-bottom: 1.5px dashed var(--line-2); }
.receipt-head .mono { letter-spacing: .12em; }
.receipt-head .mono + .receipt-title { margin-top: 4px; }
.receipt-title { font: 500 22px/1.2 var(--mono); letter-spacing: -.01em; overflow-wrap: anywhere; }
#audit-when { margin-top: 6px; letter-spacing: .02em; }
.receipt-rows { padding: 12px 0; display: grid; gap: 2px; min-height: 240px; }
.rrow { display: flex; align-items: baseline; gap: 8px; font-size: 14.5px; padding: 5px 0; opacity: 1; transition: opacity .25s, transform .25s; }
.rrow.pending { opacity: 0; transform: translateY(4px); }
.rlabel { color: var(--ink-2); }
.rlead { flex: 1; min-width: 16px; border-bottom: 1.5px dotted var(--line-2); transform: translateY(-4px); }
.rval { font-size: 12.5px; font-weight: 500; letter-spacing: .04em; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.rval.ok { color: var(--ok); background: var(--ok-bg); }
.rval.warn { color: var(--warn); background: var(--warn-bg); }
.rval.info { color: var(--info); background: var(--info-bg); }
.receipt-total { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1.5px dashed var(--line-2); border-bottom: 1.5px dashed var(--line-2); font-weight: 500; }
.receipt-score { font-size: 15px; }
.receipt-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 14px; }
.raw { flex: 1 1 100%; order: 3; }
.raw > summary { list-style: none; display: inline-flex; }
.raw > summary::-webkit-details-marker { display: none; }
.receipt-actions > .raw { flex: 0 1 auto; order: 0; }
.raw[open] { flex: 1 1 100%; }
.raw pre { margin: 10px 0 0; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-size: 11.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 240px; overflow: auto; }
.receipt-note { margin-top: 14px; font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.receipt-note a { color: var(--ink-2); white-space: nowrap; }

/* ---------- Strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.strip-track { display: flex; width: max-content; animation: strip 48s linear infinite; }
.strip-set { display: flex; flex: none; }
.strip-set span { padding: 16px 28px; font: 500 14px/1 var(--mono); letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; position: relative; }
.strip-set span::after { content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); transform: translateY(-50%); }
@keyframes strip { to { transform: translateX(-50%); } }
/* Hover-pause only where hover is real: on touch screens a tap leaves :hover
   stuck on, which froze the strip for good. Touch users get the pause button. */
@media (hover: hover) and (pointer: fine) { .strip:hover .strip-track { animation-play-state: paused; } }
.strip.paused .strip-track { animation-play-state: paused; }
.strip { position: relative; }
.strip::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 96px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--ink-sec) 70%); }
.strip-pause {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--on-ink-line); color: var(--on-ink-2);
}
.strip-pause:hover { color: var(--gold-on-ink); border-color: var(--gold-on-ink); }
.strip-pause .ic { width: 14px; height: 14px; }
.strip-pause::before { content: ""; position: absolute; inset: -4px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--paper-2); }
.section-ink { background: var(--ink-sec); color: var(--on-ink); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.kicker { font: 500 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.section-ink .kicker { color: var(--on-ink-2); }
.sec-head h2, .contact-grid h2 { margin-top: 16px; font: 500 clamp(30px, 4vw, 48px)/1.1 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.sec-head h2 em { color: var(--ink-3); }
.section-ink .sec-head h2 em { color: var(--on-ink-2); }
.sec-lede { margin-top: 18px; font-size: 18px; color: var(--ink-2); max-width: 62ch; }
.section-ink .sec-lede { color: var(--on-ink-2); }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.svc { background: var(--surface); padding: 28px 24px 26px; display: flex; flex-direction: column; gap: 12px; transition: background-color .2s; }
.svc:hover { background: color-mix(in srgb, var(--surface) 88%, var(--paper-2)); }
.svc-ic { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.svc h3 { font: 500 20px/1.25 var(--serif); }
.svc p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.svc .svc-for { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.svc-for span { display: block; font: 500 11px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Planner ---------- */
.planner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 14px; letter-spacing: .1em; text-transform: uppercase; }
.biz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.biz-opt { position: relative; }
.biz-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.biz-opt label {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 96px; padding: 14px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer;
  font-size: 14.5px; font-weight: 500; line-height: 1.3; transition: border-color .15s, background-color .15s;
}
.biz-opt label .ic { width: 24px; height: 24px; stroke-width: 1.6; }
.biz-opt input:hover + label { border-color: var(--line-2); }
.biz-opt input:checked + label { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.biz-opt input:focus-visible + label { outline: 3px solid var(--ring); outline-offset: 2px; }

.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.sheet-head { padding-bottom: 18px; border-bottom: 1.5px dashed var(--line-2); }
.sheet-head .mono { letter-spacing: .12em; }
.sheet-head h3 { margin-top: 6px; font: 500 clamp(22px, 2.4vw, 28px)/1.2 var(--serif); }
.sheet-head p:last-child { margin-top: 6px; font-size: 15.5px; }
.sheet-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 20px 0; }
.sheet-cols h4 { margin-bottom: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.ticks { display: grid; gap: 8px; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.ticks li .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--ok); stroke-width: 2.2; }
.ticks-shield li .ic { color: var(--info); stroke-width: 1.8; }
.addons { padding-top: 18px; border-top: 1px solid var(--line); }
.addon-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.addon { position: relative; }
.addon input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.addon label { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 14px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.addon label .ic { width: 16px; height: 16px; }
.addon input:hover + label { border-color: var(--line-2); }
.addon input:checked + label { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.addon input:focus-visible + label { outline: 3px solid var(--ring); outline-offset: 2px; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.sheet-note { margin-top: 14px; line-height: 1.55; }

/* ---------- Safe by default ---------- */
.safe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--on-ink-line); border: 1px solid var(--on-ink-line); border-radius: var(--r); overflow: hidden; }
.safe { background: var(--ink-sec); padding: 24px; display: grid; gap: 8px; align-content: start; }
.safe .ic { width: 24px; height: 24px; color: var(--on-ink-2); margin-bottom: 4px; }
.safe b { font-weight: 600; font-size: 17px; }
.safe p { color: var(--on-ink-2); font-size: 15.5px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-grid .sec-head { margin-bottom: 0; }
.about-grid .sec-lede + .sec-lede { margin-top: 14px; }
.about-quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); }
.about-quote > p { font: italic 500 clamp(21px, 2.2vw, 26px)/1.35 var(--serif); }
.tenets { margin-top: 22px; display: grid; gap: 0; }
.tenets li { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); }
.tenets b { font-weight: 600; }
.tenets span { color: var(--ink-2); font-size: 15px; }
.stats { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.stats li { padding: 20px 20px 0 0; display: grid; gap: 4px; }
.stats li + li { padding-left: 20px; border-left: 1px solid var(--line-2); }
.stats b { font: 500 clamp(32px, 4vw, 44px)/1 var(--serif); }
.stats span { color: var(--ink-3); font-size: 14.5px; line-height: 1.4; }
.stack { margin-top: clamp(40px, 6vw, 64px); }
.stack-title { font: 500 22px/1.3 var(--serif); }
.stack-title .muted { font: 400 15px/1.3 var(--sans); }
.stack-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stack-grid h4 { margin-bottom: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills li { padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 13.5px; color: var(--ink-2); }

/* ---------- Promise ---------- */
.promise-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.promise-wrap .sec-head { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 24px); }
.promise { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.promise-list { counter-reset: p; display: grid; gap: 0; }
.promise-list li { counter-increment: p; position: relative; padding: 16px 0 16px 48px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 16.5px; }
.promise-list li:first-child { border-top: 0; padding-top: 0; }
.promise-list li:first-child::before { top: 0; }
.promise-list li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: 16px; font: 500 13px/1.9 var(--mono); color: var(--ink-3); }
.promise-list b { color: var(--ink); font-weight: 600; }
.signoff { margin-top: 28px; padding-top: 20px; border-top: 1.5px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.sig { font: italic 500 28px/1 var(--serif); }

/* ---------- Build log ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--ink-2); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.log { border-top: 1.5px solid var(--ink); }
.log li { display: grid; grid-template-columns: 120px minmax(0, 1fr) 220px; gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.log li[hidden] { display: none; }
.log-kind { font: 500 12px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.log b { font: 500 19px/1.35 var(--serif); }
.log p { margin-top: 4px; color: var(--ink-2); font-size: 15.5px; }
.log-stack { font-size: 13px; color: var(--ink-3); text-align: right; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding-top: 24px; border-top: 1.5px solid var(--ink); }
.step-n { font-size: 13px; color: var(--ink-3); }
.steps h3 { margin-top: 10px; font: 500 20px/1.25 var(--serif); }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-wrap .sec-head { margin-bottom: 0; }
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; min-height: 44px; cursor: pointer; list-style: none; font: 500 18px/1.4 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--mono); color: var(--ink-3); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 64ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.ways { margin-top: 32px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.ways a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--on-ink-line); border-radius: 12px; text-decoration: none; transition: border-color .18s, background-color .18s; }
.ways a:hover { border-color: var(--on-ink-2); background: var(--ink-sec-2); }
.ways .ic { width: 22px; height: 22px; }
.ways span { display: grid; overflow-wrap: anywhere; }
.ways small { font: 500 11px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-2); }
.brief { background: var(--ink-sec-2); border: 1px solid var(--on-ink-line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px;
  background: var(--ink-sec); border: 1.5px solid var(--on-ink-line); color: var(--on-ink); font-size: 16px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder { color: #7D8898; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--on-ink-2); box-shadow: 0 0 0 3px rgb(143 176 234 / .35); }
.field input[aria-invalid="true"] { border-color: #F0A08C; }
.err { color: #F4B3A3; font-size: 14px; }
.hint { color: var(--on-ink-2); font-size: 13.5px; }
.brief-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.brief-note { font-size: 13.5px; color: var(--on-ink-2); line-height: 1.55; }

/* ---------- Footer ---------- */
.foot { padding: clamp(48px, 7vw, 72px) 0 32px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand > p { margin-top: 14px; max-width: 34ch; line-height: 1.6; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink-2); transition: border-color .18s, color .18s, background-color .18s; }
.socials a:hover { border-color: var(--ink); color: var(--paper); background: var(--ink); }
.foot-col { display: grid; align-content: start; gap: 2px; }
.foot-col > p { margin-bottom: 8px; letter-spacing: .1em; text-transform: uppercase; }
.foot-col a { padding: 6px 0; color: var(--ink-2); text-decoration: none; font-size: 15px; overflow-wrap: anywhere; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.passport { color: var(--ok); padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }

/* ---------- Floating ---------- */
.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--paper); border: 0; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.totop.on { opacity: 1; transform: none; pointer-events: auto; }
.mbar { display: none; }

/* ---------- Reveal ---------- */
.js [data-reveal] { transition: opacity .4s ease-out, transform .4s ease-out; }
.js [data-reveal].pre { opacity: 0; transform: translateY(12px); }

/* ---------- Premium layer ---------- */
.mono-mark { background: var(--gold-btn); color: #0B1324; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); }
.btn-gold {
  background: var(--gold-btn); background-size: 200% 100%; color: #0B1324;
  box-shadow: 0 10px 26px -12px rgb(184 145 63 / .7), inset 0 0 0 1px rgb(255 255 255 / .3);
  transition: background-position .6s ease, transform .18s, box-shadow .18s;
}
.btn-gold:hover { background-position: 100% 0; box-shadow: 0 12px 30px -10px rgb(184 145 63 / .8), inset 0 0 0 1px rgb(255 255 255 / .4); }
.kicker { color: var(--gold); }
.kicker::before { content: ""; display: inline-block; width: 22px; height: 1px; margin-right: 10px; vertical-align: middle; background: currentColor; }
.section-ink .kicker { color: var(--gold-on-ink); }
.hero h1 em, .sec-head h2 em, .sig, .stats b {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em;
}
.section-ink .sec-head h2 em { background-image: var(--gold-grad-ink); color: transparent; }
.hero::before {
  background:
    radial-gradient(45% 55% at 84% 38%, var(--glow), transparent 70%),
    radial-gradient(120% 90% at 30% 40%, color-mix(in srgb, var(--paper) 70%, transparent) 0%, var(--paper) 72%);
}
.eyebrow { border-color: var(--gold-line); }
.receipt-body { box-shadow: inset 0 -1px 0 var(--line); }
.strip { background: var(--ink-sec); border-color: var(--ink-sec); }
.strip-set span { color: var(--on-ink-2); }
.strip-set span::after { background: var(--gold-on-ink); }
.svc { position: relative; }
.svc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gold-btn); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.svc:hover::before { transform: scaleX(1); }
.svc-ic { stroke: var(--gold); }
.biz-opt input:checked + label { background: var(--ink-sec); color: var(--on-ink); border-color: var(--gold-line); }
.biz-opt input:checked + label .ic { color: var(--gold-on-ink); }
.sheet, .promise, .about-quote { position: relative; overflow: hidden; }
.sheet::before, .promise::before, .about-quote::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--gold-btn); }
.ticks li .ic { color: var(--gold); }
.ticks-shield li .ic { color: var(--ink-3); }
.addon input:checked + label { border-color: var(--gold-line); background: var(--gold-soft); color: var(--gold); }
.section-ink { background: radial-gradient(70% 60% at 90% 0%, rgb(201 162 83 / .13), transparent 62%), var(--ink-sec); }
.safe .ic, .ways .ic { color: var(--gold-on-ink); }
.log-kind, .step-n, .promise-list li::before, .faq summary::after { color: var(--gold); }
.steps li { border-top-color: var(--gold-line); }
.signoff { border-top-color: var(--gold-line); }
.socials a:hover { background: var(--gold-btn); color: #0B1324; border-color: transparent; }
.totop { background: var(--ink-sec); color: var(--gold-on-ink); box-shadow: var(--shadow), inset 0 0 0 1px var(--gold-line); }
.chip[aria-pressed="true"] { background: var(--ink-sec); border-color: var(--ink-sec); color: var(--on-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .planner { grid-template-columns: 1fr; }
  .biz-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .log li { grid-template-columns: 100px minmax(0, 1fr); }
  .log-stack { grid-column: 2; text-align: left; }
  .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .theme-toggle { margin-left: auto; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gut) 20px; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 12px; font-size: 17px; }
  .nav-cta { margin: 10px 0 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .receipt { max-width: 560px; }
  .promise-wrap, .faq-wrap, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .safe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats li:nth-child(n+3) { margin-top: 20px; }
  .promise-wrap .sec-head { position: static; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .svc-grid { grid-template-columns: 1fr; }
  .biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .biz-opt label { flex-direction: row; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; font-size: 14px; }
  .biz-opt label .ic { width: 20px; height: 20px; }
  .sheet-cols { grid-template-columns: 1fr; gap: 18px; }
  .steps { grid-template-columns: 1fr; row-gap: 24px; }
  .safe-grid { grid-template-columns: 1fr; }
  .safe { padding: 20px; }
  .stack-grid { grid-template-columns: 1fr; }
  .ways { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot-col:last-child { grid-column: 1 / -1; }
  .log li { grid-template-columns: 1fr; gap: 6px; }
  .log-stack { grid-column: auto; }
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 12px; }
  .facts b { min-width: 76px; font-size: 22px; }
  .strip-set span { padding: 13px 20px; font-size: 13px; }
  .strip-track { animation-duration: 36s; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    background: var(--surface); border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  }
  .mbar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 12px; font-weight: 500; text-decoration: none; border: 1.5px solid var(--line-2); }
  .mbar a:last-child { background: var(--gold-btn); color: #0B1324; border-color: transparent; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .totop { bottom: calc(80px + env(safe-area-inset-bottom)); right: 16px; }
  .btn { white-space: normal; text-align: center; }
  .hero-ctas .btn, .sheet-actions .btn, .brief-actions .btn { flex: 1 1 100%; }
  .receipt-body { padding: 8px 18px 20px; }
  .rrow { font-size: 14px; }
}
@media (max-width: 380px) {
  .biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-name { font-size: 16px; }
  .rlabel { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js [data-reveal].pre { opacity: 1; transform: none; }
  /* The strip is a slow linear drift with a pause button, so it keeps moving
     (just slower) instead of freezing on phones that send reduce-motion. */
  .strip-track { animation-duration: 90s !important; animation-iteration-count: infinite !important; }
}
