/* ForthLogic (forthlogic.com): shared styles.
 * Foundation forked from the RiskBorne marketing site, rebranded: paper, ink, dark grid bands, ONE accent (amber).
 * Sections: 1 tokens · 2 base · 3 type · 4 layout · 5 buttons and links · 6 announcement, header, menu sheet
 * 7 labels, rail, bands · 8 block highlight, split lines, word scrub · 9 cards, chips, live pill · 10 tabs
 * 11 expanding panels · 12 flow · 13 cycle list · 14 FAQ · 15 engraving and seal · 16 footer · 17 forms
 * 18 marquee · 19 product cards + UI hints · 20 motion states · 21 responsive
 * Component markup lives in COMPONENTS.md. Page-only styles go in assets/css/pages/*.css. */

/* ---------- 1. tokens ---------- */
:root {
  --paper: #F7F6F2;
  --paper-2: #EEECE6;
  --surface: #FBFAF7;
  --ink: #1C1C1C;             /* display, near-black (15.8:1 on paper) */
  --ink-body: #262626;        /* body */
  --ink-2: #4A4A4A;           /* 8.2:1 */
  --ink-3: #616161;           /* meta, 5.7:1 on paper */
  --charcoal: #333333;        /* brand charcoal: logo, dark parts of the mark */
  --rule: rgba(28, 28, 28, .13);
  --rule-2: rgba(28, 28, 28, .28);

  --dark: #121212;
  --dark-2: #1A1A1A;
  --dark-3: #232323;
  --on-dark: #EDEBE6;         /* 15.7:1 on dark */
  --on-dark-2: #B8B8B8;       /* 9.4:1 */
  --on-dark-3: #8F8F8F;       /* 5.8:1 */
  --rule-dark: rgba(237, 235, 230, .11);
  --rule-dark-2: rgba(237, 235, 230, .24);

  /* the one accent: ForthLogic brand yellow. Token names keep the old "amber" prefix so every page keeps working.
     #FFB900 is 1.6:1 on paper: use it for FILLS only on paper (squares, highlights, dots, progress, button fills with dark text).
     Yellow-coloured TEXT on paper uses --amber-ink. On dark bands, bright yellow is fine for text (10.9:1). */
  --amber: #FFB900;                                    /* brand yellow, fills (7.3:1 under #333 text, 9.9:1 under ink) */
  --yellow: var(--amber);
  --amber-line: #B98500;                               /* yellow strokes and rules on paper, 3.0:1 (non-text) */
  --amber-ink: #8A6300;                                /* yellow-ink text on paper, 5.0:1 */
  --amber-dark-ink: #FFB900;                           /* yellow text on dark, 10.9:1 */
  --amber-soft: rgba(255, 185, 0, .34);
  --amber-wash: rgba(255, 185, 0, .12);
  --ok: #2F7D5B;                                       /* form success only */
  --err: #B3261E;                                      /* form errors only */

  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;   /* handwritten-style italic notes */
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --dot: "Doto", "DotGothic16", var(--mono);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 68px;
  --r: 4px;
  --shadow: 0 1px 0 rgba(28, 28, 28, .04), 0 18px 40px -22px rgba(28, 28, 28, .3);
  --shadow-sm: 0 1px 0 rgba(28, 28, 28, .04), 0 8px 20px -12px rgba(28, 28, 28, .32);
}

/* ---------- 2. base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink-body); font: 400 16.5px/1.55 var(--sans); overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, h4, ul, ol, figure, blockquote, dl, dd { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.band-dark :focus-visible, .on-dark :focus-visible, .site-footer :focus-visible, .sheet :focus-visible { outline-color: var(--amber); }
.sr-only { position: absolute !important; 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: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r); text-decoration: none; }
.skip:focus { top: 12px; }
.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--amber-soft); }

/* ---------- 3. type ---------- */
.h1, .h2, .h3 { font-family: var(--sans); color: var(--ink); font-weight: 600; text-wrap: balance; }
.h1 { font-size: clamp(50px, 7.4vw, 104px); line-height: .94; letter-spacing: -.05em; }
.h2 { font-size: clamp(36px, 4.8vw, 68px); line-height: .98; letter-spacing: -.046em; }
.h3 { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.12; letter-spacing: -.03em; }
.lede { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; max-width: 44ch; }
.body { color: var(--ink-2); text-wrap: pretty; max-width: 62ch; }
.small { font-size: 13.5px; color: var(--ink-3); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.note { font-family: var(--serif); font-style: italic; font-weight: 400; }
.dotfont { font-family: var(--dot); font-weight: 800; letter-spacing: .02em; }
.band-dark .h1, .band-dark .h2, .band-dark .h3, .on-dark .h1, .on-dark .h2, .on-dark .h3 { color: var(--on-dark); }
.band-dark .lede, .band-dark .body, .on-dark .lede, .on-dark .body { color: var(--on-dark-2); }
.band-dark .small, .on-dark .small { color: var(--on-dark-3); }
.posline { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.3; color: var(--ink-2); max-width: 40ch; }
.band-dark .posline, .on-dark .posline { color: var(--on-dark-2); }

/* ---------- 4. layout ---------- */
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(80px, 10vw, 148px); position: relative; }
.section + .section { padding-top: 0; }
.section-top { border-top: 1px solid var(--ink); padding-top: clamp(28px, 3vw, 44px); }
.sec-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); }
.sec-body { min-width: 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 4vw, 64px); align-items: end; }
.sec-head .body { justify-self: end; }
.split-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.band-inset { width: min(1336px, 100% - 2 * clamp(0px, 2vw, 24px)); margin-inline: auto; }
.band-pad { padding: clamp(72px, 9vw, 132px) clamp(20px, 5.5vw, 80px); }

/* ---------- 5. buttons and links ---------- */
.btn { --bg: var(--ink); --fg: var(--paper); display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 8px 0 22px; border-radius: 2px; border: 1px solid var(--bg); background: var(--bg); color: var(--fg); font: 500 15.5px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition-property: transform, background-color, color, border-color, box-shadow; transition-duration: 180ms; transition-timing-function: var(--ease-out); }
/* button-in-button: the arrow sits in its own square */
.btn .bi { display: inline-grid; place-items: center; width: 34px; height: 34px; background: color-mix(in srgb, var(--fg) 12%, transparent); transition: transform 240ms var(--ease-out), background-color 180ms ease; }
.btn .i { font-size: 16px; }
.btn:not(:has(.bi)) { padding-right: 22px; }
.btn:active { transform: scale(.97); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--rule-2); background: var(--surface); }
.btn-sm { min-height: 42px; padding-left: 16px; font-size: 14px; gap: 10px; }
.btn-sm .bi { width: 28px; height: 28px; }
.btn-light { --bg: var(--on-dark); --fg: var(--dark); }
.btn-ghost-dark { --bg: transparent; --fg: var(--on-dark); border-color: var(--rule-dark-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.tlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; color: var(--ink); background-image: linear-gradient(var(--amber), var(--amber)); background-size: 100% 1.5px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 3px; transition: background-size 240ms var(--ease-out); }
.tlink .i { transition: transform 200ms var(--ease-out); }
.band-dark .tlink, .on-dark .tlink { color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) {
  /* the one amber button state: primary buttons turn amber on hover */
  .btn:not(.btn-ghost):not(.btn-ghost-dark):hover { --bg: var(--amber); --fg: var(--ink); box-shadow: var(--shadow-sm); }
  .btn:hover .bi { transform: translateX(3px); }
  .btn-ghost:hover { border-color: var(--ink); }
  .btn-ghost-dark:hover { border-color: var(--on-dark); }
  .tlink:hover .i { transform: translateX(3px); }
  .tlink:hover { background-size: 100% 3px; }
}

/* ---------- 6. announcement, header, menu sheet ---------- */
.announce { background: var(--dark); color: var(--on-dark); font-size: 14px; }
.announce a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 6px var(--gutter); text-decoration: none; text-align: center; }
.announce .sq { width: 7px; height: 7px; background: var(--amber); flex: none; animation: sqPulse 2.4s var(--ease-in-out) infinite; }
@keyframes sqPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 185, 0, .55); } 60% { box-shadow: 0 0 0 6px rgba(255, 185, 0, 0); } }
.announce .i { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .announce a:hover .i { transform: translateX(3px); } }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color 200ms ease, box-shadow 200ms ease; }
/* the blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed menu sheet inside the header */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--paper) 86%, transparent); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px); pointer-events: none; }
.site-header.is-scrolled { border-bottom-color: var(--rule); box-shadow: 0 10px 30px -24px rgba(28, 28, 28, .4); }
.hdr { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.hdr > nav { flex: 1; min-width: 0; }
.brand { display: inline-flex; align-items: center; color: var(--ink); flex: none; text-decoration: none; border-radius: 2px; }
.brand .logo { height: 46px; width: auto; }
@media (max-width: 640px) { .brand .logo { height: 40px; } }
.brand { color: var(--charcoal); }
.logo-y { fill: var(--amber); }
.logo-bar, .logo-rocket { transform-box: fill-box; }
/* logo motion: the three yellow bars of the F slide in along their diagonal on load; the rocket (the I) lifts on hover */
.motion .site-header .logo-bar { animation: barIn 760ms var(--ease-out) both; animation-delay: calc(240ms + var(--i, 0) * 110ms); }
@keyframes barIn { from { transform: translate(-46px, 26px); opacity: 0; } to { transform: none; opacity: 1; } }
.logo-rocket { transition: transform 420ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .brand:hover .logo-rocket { transform: translateY(-16px); } }
.nav-links { display: flex; gap: clamp(14px, 1.7vw, 26px); margin: 0 auto; padding: 0; list-style: none; }
.nav-links a { position: relative; display: block; padding: 8px 0; font-size: 14.5px; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: color 160ms ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease-out); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--ink); } .nav-links a:hover::after { transform: scaleX(1); } }
.hdr-actions { display: flex; align-items: center; gap: 18px; flex: none; }
.hdr-link { font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 8px 2px; }
.hdr-link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--rule-2); background: var(--surface); border-radius: 2px; cursor: pointer; }
.menu-btn .i { font-size: 20px; }
.menu-btn:active { transform: scale(.97); }

.sheet { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-rows: auto 1fr; }
.sheet[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(11, 12, 15, .5); }
.sheet-panel { position: relative; grid-row: 1 / -1; display: flex; flex-direction: column; background: var(--dark); color: var(--on-dark); overflow-y: auto; overscroll-behavior: contain; }
.sheet-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--rule-dark) 1px, transparent 1px), linear-gradient(90deg, var(--rule-dark) 1px, transparent 1px); background-size: 48px 48px; opacity: .35; mask-image: linear-gradient(180deg, #000, transparent 70%); }
.sheet-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding-inline: var(--gutter); border-bottom: 1px solid var(--rule-dark); position: relative; }
.sheet-top .brand { color: var(--on-dark); }
.sheet-top .logo-markonly { height: 34px; width: auto; }
.sheet-close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule-dark-2); background: transparent; color: var(--on-dark); border-radius: 2px; cursor: pointer; }
.sheet-close .i { font-size: 20px; }
.sheet-nav { position: relative; padding: 18px var(--gutter) 8px; }
.sheet-nav ol { counter-reset: sn; list-style: none; padding: 0; margin: 0; }
.sheet-nav li { border-bottom: 1px solid var(--rule-dark); }
.sheet-nav a { display: flex; align-items: baseline; gap: 14px; padding: 15px 0; color: var(--on-dark); text-decoration: none; font-size: clamp(24px, 6.4vw, 32px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.sheet-nav a::before { counter-increment: sn; content: "0" counter(sn); font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--amber); }
.sheet-nav a[aria-current="page"] { color: var(--amber-dark-ink); }
.sheet-actions { position: relative; display: grid; gap: 10px; padding: 18px var(--gutter) 22px; }
.sheet-actions .btn { width: 100%; }
.sheet-foot { position: relative; margin-top: auto; padding: 18px var(--gutter) 28px; font-size: 13px; color: var(--on-dark-3); line-height: 1.5; }
html.is-locked { overflow: hidden; }

/* ---------- 7. labels, rail, bands ---------- */
.label { display: inline-flex; align-items: center; gap: 12px; font: 500 11.5px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.label::before { content: ""; width: 8px; height: 8px; background: var(--amber); flex: none; }
.label .n { color: var(--ink); }
.band-dark .label, .on-dark .label { color: var(--on-dark-3); }
.band-dark .label .n, .on-dark .label .n { color: var(--on-dark); }
.label.plain::before { display: none; }

.rail { position: relative; }
.rail-sticky { position: sticky; top: calc(var(--header-h) + 28px); }
.rail-track { position: relative; width: 1.5px; height: 140px; margin: 22px 0 0 3px; background: var(--rule); }
.rail-track i { position: absolute; inset: 0; background: var(--ink); transform-origin: top; transform: scaleY(var(--p, 0)); }
.rail-track b { position: absolute; left: -3.25px; top: -4px; width: 8px; height: 8px; background: var(--amber); transform: translateY(calc(var(--p, 0) * 140px)); }
.band-dark .rail-track { background: var(--rule-dark); }
.band-dark .rail-track i { background: var(--on-dark); }

.band-dark { position: relative; isolation: isolate; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.band-dark::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(237, 235, 230, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(237, 235, 230, .05) 1px, transparent 1px); background-size: 48px 48px; background-position: -1px -1px; mask-image: radial-gradient(120% 90% at 80% 0%, #000 10%, transparent 80%); }
.band-dark::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(440px circle at var(--mx, 75%) var(--my, 8%), rgba(255, 185, 0, .11), transparent 65%); opacity: var(--spot, .6); transition: opacity 400ms ease; }

/* ---------- 8. block highlight, split lines, word scrub ---------- */
.blk { --blk-bg: var(--ink); --blk-fg: var(--paper); position: relative; display: inline-block; white-space: nowrap; padding: .02em .1em .1em; margin: -.02em -.06em -.1em; }
.blk::after { content: attr(data-text); position: absolute; inset: 0; padding: inherit; background: var(--blk-bg); color: var(--blk-fg); clip-path: inset(0 0 0 0); }
.band-dark .blk, .on-dark .blk { --blk-bg: var(--on-dark); --blk-fg: var(--dark); }
.blk.blk-amber { --blk-bg: var(--amber); --blk-fg: var(--ink); }
.blk.is-wrapping { white-space: normal; display: inline; background: var(--blk-bg); color: var(--blk-fg); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.blk.is-wrapping::after { display: none; }
.motion .blk:not(.is-on):not(.is-wrapping)::after { clip-path: inset(0 100% 0 0); }
.motion .blk.is-on::after { transition: clip-path 650ms var(--ease-out); }

.split-line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.split-line > span { display: block; will-change: transform; }

/* [data-words]: words light up as the block scrolls through the viewport */
.words .w { transition: color 200ms linear; }
.motion .words.is-ready .w { opacity: .16; }
.words .w.hl { color: var(--ink); background-image: linear-gradient(transparent 58%, var(--amber) 58%, var(--amber) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.band-dark .words .w.hl, .on-dark .words .w.hl { color: var(--amber-dark-ink); background-image: none; }

/* ---------- 9. cards, chips, live pill ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: 2px; padding: clamp(20px, 2.2vw, 28px); transition-property: transform, box-shadow, border-color; transition-duration: 260ms; transition-timing-function: var(--ease-out); }
a.card { display: block; text-decoration: none; color: inherit; }
@media (hover: hover) and (pointer: fine) { a.card:hover, .card.is-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--rule-2); } }
a.card:active { transform: scale(.985); }
.num { font: 500 11.5px/1 var(--mono); color: var(--ink-3); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.band-dark .num, .on-dark .num { color: var(--on-dark-3); }
.reader-card { display: flex; align-items: center; gap: 16px; min-height: 66px; padding: 14px 20px; }
a.card.reader-card { display: flex; }
.reader-card .num { flex: none; }
.reader-card b { flex: 1; font-weight: 500; font-size: 16.5px; letter-spacing: -.015em; color: var(--ink); }
.reader-card .i { font-size: 18px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .reader-card:hover .i { transform: translateX(3px); } }

.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 1px solid var(--rule-dark-2); background: var(--dark); color: var(--on-dark); font-size: 15.5px; font-weight: 500; white-space: nowrap; position: relative; z-index: 1; transition: transform 240ms var(--ease-out), box-shadow 300ms ease, background-color 300ms ease; }
.chip .num { color: var(--amber-dark-ink); }
.chip.is-target { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.chip.is-target .num { color: var(--ink); }
.chip.is-receive { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(255, 185, 0, .22); }

.live { display: inline-flex; align-items: center; gap: 7px; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(255, 185, 0, .5); animation: livePulse 2.2s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255, 185, 0, .5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(255, 185, 0, 0); } }
.band-dark .live { color: var(--on-dark-2); }
.ill { display: inline-flex; align-items: center; gap: 8px; font: 500 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ill::before { content: ""; width: 10px; height: 1px; background: currentColor; }
.band-dark .ill, .on-dark .ill { color: var(--on-dark-3); }

/* ---------- 10. tabs (auto-advancing) ---------- */
.tabs-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.tab { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 80px; padding: 15px 18px 18px; text-align: left; background: var(--surface); border: 1px solid var(--rule); border-radius: 0; cursor: pointer; transition: background-color 260ms ease, color 260ms ease, border-color 260ms ease, transform 160ms var(--ease-out); }
.tab .num { transition: color 260ms ease; }
.tab .t { font-size: clamp(16px, 1.4vw, 19px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); }
.tab[aria-selected="true"] .t { color: var(--paper); }
.tab[aria-selected="true"] .num { color: var(--on-dark-3); }
.tab-bar { position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; overflow: hidden; }
.tab-bar i { position: absolute; inset: 0; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.tab[aria-selected="true"] .tab-bar i { transform: scaleX(var(--tp, 0)); }
.tab:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .tab[aria-selected="false"]:hover { border-color: var(--rule-2); background: var(--paper); } }
.tab-panels { display: grid; margin-top: 10px; }
.tab-panel { grid-area: 1 / 1; min-width: 0; }
.tab-panel[hidden] { display: block; visibility: hidden; opacity: 0; pointer-events: none; }
.tab-panel.is-in { animation: panelIn 480ms var(--ease-out) both; }
.tab-panel.is-in [data-stagger-in] > * { animation: panelIn 520ms var(--ease-out) both; }
.tab-panel.is-in [data-stagger-in] > *:nth-child(2) { animation-delay: 60ms; }
.tab-panel.is-in [data-stagger-in] > *:nth-child(3) { animation-delay: 120ms; }
.tab-panel.is-in [data-stagger-in] > *:nth-child(4) { animation-delay: 180ms; }
.tab-panel.is-in [data-stagger-in] > *:nth-child(5) { animation-delay: 240ms; }
.tab-panel.is-in [data-stagger-in] > *:nth-child(6) { animation-delay: 300ms; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.tabs-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.pause-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer; font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.pause-btn .i { font-size: 15px; }
.band-dark .pause-btn, .on-dark .pause-btn { color: var(--on-dark-2); }
.next-link { border: 0; background: none; cursor: pointer; padding: 6px 0; }
.band-dark .tab { background: var(--dark-2); border-color: var(--rule-dark); }
.band-dark .tab .t { color: var(--on-dark); }
.band-dark .tab[aria-selected="true"] { background: var(--on-dark); border-color: var(--on-dark); }
.band-dark .tab[aria-selected="true"] .t { color: var(--dark); }

/* ---------- 11. expanding panels (auto-advancing accordion) ---------- */
.xp { --xc: clamp(84px, 9.4vw, 132px); --n: 5; display: flex; gap: 8px; height: clamp(460px, 40vw, 540px); }
.xp-item { position: relative; flex: 0 0 var(--xc); min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--rule); transition: flex-basis 760ms var(--ease-in-out), background-color 400ms ease, border-color 400ms ease; }
.xp-item.is-open { flex: 0 0 calc(100% - (var(--n) - 1) * (var(--xc) + 8px)); background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.xp-item.is-open::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(237, 235, 230, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(237, 235, 230, .05) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(100% 100% at 100% 0%, #000, transparent 85%); }
.xp-art { position: absolute; right: -4%; top: -6%; width: min(52%, 420px); opacity: 0; transform: translateY(10px) scale(.98); transition: opacity 600ms ease, transform 900ms var(--ease-out); pointer-events: none; }
.xp-item.is-open .xp-art { opacity: .5; transform: none; transition-delay: 300ms; }
.xp-art img { width: 100%; height: auto; filter: invert(1); mix-blend-mode: screen; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 70%); mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 70%); }
.xp-head { position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; width: 100%; height: 100%; padding: 22px 22px 26px; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; }
.xp-item.is-open .xp-head { position: absolute; inset: 0 0 auto 0; height: auto; pointer-events: none; }
.xp-head .num { color: var(--ink-3); }
.xp-item.is-open .xp-head .num { color: var(--amber-dark-ink); }
.xp-vlabel { writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(22px, 2vw, 30px); font-weight: 600; letter-spacing: -.035em; color: var(--ink); white-space: nowrap; transition: opacity 260ms ease; }
.xp-item.is-open .xp-vlabel { opacity: 0; }
.xp-body { position: absolute; inset: auto 0 0 0; padding: 0 clamp(22px, 2.6vw, 36px) clamp(26px, 3vw, 40px); width: min(640px, 100%); opacity: 0; transform: translateY(14px); visibility: hidden; transition: opacity 300ms ease, transform 300ms var(--ease-out), visibility 0s 300ms; }
.xp-item.is-open .xp-body { opacity: 1; transform: none; visibility: visible; transition: opacity 500ms ease 340ms, transform 640ms var(--ease-out) 340ms, visibility 0s; }
.xp-body .h3 { color: var(--on-dark); font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -.048em; }
.xp-body .sub { margin-top: 10px; font-size: clamp(18px, 1.5vw, 21px); color: var(--on-dark); font-weight: 500; letter-spacing: -.02em; }
.xp-body p.body { margin-top: 12px; color: var(--on-dark-2); }
.xp-get { display: inline-flex; align-items: flex-start; gap: 12px; margin-top: 22px; padding: 12px 16px; border: 1px solid var(--rule-dark-2); font-size: 14.5px; color: var(--on-dark); }
.xp-get .label { flex: none; color: var(--on-dark-3); padding-top: 3px; }
.xp-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(237, 235, 230, .12); opacity: 0; }
.xp-item.is-open .xp-bar { opacity: 1; }
.xp-bar i { position: absolute; inset: 0; background: var(--amber); transform-origin: left; transform: scaleX(var(--tp, 0)); }
.xp-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.xp-dots { display: flex; gap: 6px; }
.xp-dots span { width: 8px; height: 6px; background: var(--rule-2); transition: width 300ms var(--ease-out), background-color 300ms ease; }
.xp-dots span.is-on { width: 26px; background: var(--ink); }
@media (hover: hover) and (pointer: fine) { .xp-item:not(.is-open):hover { background: var(--paper); border-color: var(--rule-2); } }

/* ---------- 12. flow chips with traveling dots ---------- */
.flow { display: flex; align-items: center; flex-wrap: nowrap; width: 100%; }
.flow-link { position: relative; flex: 1 1 80px; min-width: 40px; height: 46px; }
.flow-link::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--rule-dark-2); }
.flow-link .dot { position: absolute; left: -3px; top: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--on-dark-2); opacity: 0; animation: travelX var(--dur, 2.4s) linear infinite; animation-delay: var(--d, 0s); }
.flow-link .dot.pkg { width: 9px; height: 9px; top: calc(50% - 4.5px); left: -4.5px; border-radius: 1px; background: var(--amber); }
@keyframes travelX { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(var(--len, 100px)); opacity: 0; } }
@keyframes travelY { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(var(--len, 40px)); opacity: 0; } }
.flow.is-paused .dot { animation-play-state: paused; }

/* ---------- 13. cycle list (auto highlight) ---------- */
.cycle > * { position: relative; transition: background-color 400ms ease, opacity 400ms ease; }
.motion .cycle.is-running > *:not(.is-on) { opacity: .5; }
.cycle-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.cycle-bar i { position: absolute; inset: 0; background: var(--amber); transform-origin: left; transform: scaleX(0); }
.cycle > .is-on .cycle-bar i { transform: scaleX(var(--tp, 0)); }

/* ---------- 14. FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 24px 0; border: 0; background: none; text-align: left; cursor: pointer; font-size: clamp(18px, 1.6vw, 21px); font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.faq-ic { position: relative; flex: none; width: 38px; height: 38px; border: 1px solid var(--rule-2); background: var(--surface); transition: background-color 240ms ease, border-color 240ms ease; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ink); transition: transform 300ms var(--ease-out), background-color 240ms ease; }
.faq-ic::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-ic { background: var(--amber); border-color: var(--amber); }
.faq-q[aria-expanded="true"] .faq-ic::after { transform: rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 380ms var(--ease-out); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 64px 26px 0; color: var(--ink-2); max-width: 70ch; text-wrap: pretty; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
@media (hover: hover) and (pointer: fine) { .faq-q:hover .faq-ic { border-color: var(--ink); } }

/* ---------- 15. engraving and seal ---------- */
.engrave { mix-blend-mode: multiply; user-select: none; }
.engrave-dark { filter: invert(1) brightness(1.05) contrast(1.05); mix-blend-mode: screen; }
.engrave-frame { position: relative; }
.engrave-frame img { width: 100%; height: 100%; object-fit: contain; -webkit-mask-image: radial-gradient(ellipse at center, #000 56%, transparent 72%); mask-image: radial-gradient(ellipse at center, #000 56%, transparent 72%); }
.seal-fig { position: relative; aspect-ratio: 1; width: 100%; max-width: 580px; margin-inline: auto; perspective: 900px; }
.seal-tilt { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ink-3); }
.seal-ring .spin { transform-origin: 250px 250px; animation: sealSpin 60s linear infinite; }
.seal-ring .spin-rev { transform-origin: 250px 250px; animation: sealSpin 140s linear infinite reverse; }
.seal-ring text { font: 500 10.5px var(--mono); letter-spacing: .3em; fill: currentColor; text-transform: uppercase; }
.seal-ring .r { fill: none; stroke: var(--rule-2); stroke-width: .8; }
.seal-ring .r2 { fill: none; stroke: var(--rule); stroke-width: .6; stroke-dasharray: 1 3; }
.seal-ring .tick { stroke: var(--rule-2); stroke-width: .8; }
.seal-ring .mark { fill: var(--amber); }
@keyframes sealSpin { to { transform: rotate(360deg); } }
.seal-img, .seal-scan { position: absolute; inset: 9%; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 62%, transparent 71%); mask-image: radial-gradient(circle at 50% 50%, #000 62%, transparent 71%); }
.seal-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.seal-scan { pointer-events: none; overflow: hidden; }
.seal-scan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--amber); box-shadow: 0 0 18px 2px rgba(255, 185, 0, .55); transform: translateY(var(--scan-y, -10px)); opacity: var(--scan-o, 0); }
.seal-scan::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(28, 28, 28, .06) 0 1px, transparent 1px 4px); opacity: var(--scan-lines, 0); }
.seal-tag { position: absolute; left: 50%; bottom: 1%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; background: var(--paper); font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.seal-tag::before { content: ""; width: 7px; height: 7px; background: var(--amber); }

/* ---------- 16. footer ---------- */
.site-footer { position: relative; isolation: isolate; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(237, 235, 230, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(237, 235, 230, .045) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(120% 100% at 50% 0%, #000 10%, transparent 85%); }
.site-footer::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(440px circle at var(--mx, 20%) var(--my, 0%), rgba(255, 185, 0, .09), transparent 65%); opacity: var(--spot, .6); }
.ft-top { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: clamp(64px, 7vw, 100px) 48px; }
.ft-brand .brand { color: var(--on-dark); }
.ft-brand .posline { color: var(--on-dark-2); margin-top: 20px; font-size: 21px; max-width: 26ch; }
.ft-col h2 { font: 500 11.5px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 18px; }
.ft-col ul { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.ft-col a { color: var(--on-dark); text-decoration: none; font-size: 15px; background-image: linear-gradient(var(--amber), var(--amber)); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .ft-col a:hover { background-size: 100% 1px; } }
.ft-col address { font-style: normal; font-size: 15px; line-height: 1.6; color: var(--on-dark-2); }
.ft-col address b { color: var(--on-dark); font-weight: 500; }
.ft-never { border-top: 1px solid var(--rule-dark); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: var(--on-dark-2); }
.ft-never b { font: 500 11px/1.7 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-3); }
.ft-never span { display: inline-flex; align-items: center; gap: 8px; }
.ft-never span::before { content: ""; width: 5px; height: 5px; background: var(--amber); }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; border-top: 1px solid var(--rule-dark); padding-block: 24px 34px; font-size: 13px; color: var(--on-dark-3); }
.ft-bottom .copy { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.ft-legal { display: flex; gap: 22px; }
.ft-legal a { color: var(--on-dark-2); text-decoration: none; font-size: 13.5px; }
@media (hover: hover) and (pointer: fine) { .ft-legal a:hover { color: var(--on-dark); } }
.ft-giant { display: block; width: calc(100% - 2 * var(--gutter)); max-width: 1336px; height: auto; margin: 0 auto -1%; color: rgba(237, 235, 230, .06); }
.ft-giant .logo-y { fill: rgba(255, 185, 0, .16); }

/* ---------- 17. forms ---------- */
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field .flabel { font-size: 14px; font-weight: 500; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--ink-3); }
.input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--rule-2); border-radius: 2px; background: var(--surface); font: 400 16px/1.2 var(--sans); color: var(--ink-body); transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
textarea.input { min-height: 150px; padding: 13px 14px; line-height: 1.5; resize: vertical; }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.input:focus { outline: none; border-color: var(--ink); background-color: #fff; box-shadow: 0 0 0 3px var(--amber-soft); }
.input[aria-invalid="true"] { border-color: var(--err); }
.field-err { font-size: 13px; color: var(--err); min-height: 1.2em; }
.field-err:empty { min-height: 0; }

/* ---------- 18. marquee ---------- */
.marquee { --gap: clamp(28px, 4vw, 56px); position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: var(--gap); width: max-content; animation: marquee var(--speed, 48s) linear infinite; }
.marquee-track > * { flex: none; }
.marquee.is-reverse .marquee-track { animation-direction: reverse; }
.marquee.is-paused .marquee-track { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee-track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

/* ---------- 19. product cards + UI hints ---------- */
.prod { display: grid; grid-template-rows: auto 1fr auto; gap: 18px; min-height: 290px; overflow: hidden; }
.prod-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.prod h3 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; color: var(--ink); }
.prod p { margin-top: 8px; font-size: 15px; color: var(--ink-2); text-wrap: pretty; }
.prod .dom { font: 500 12.5px/1 var(--mono); color: var(--ink-3); letter-spacing: .02em; display: inline-flex; align-items: center; gap: 8px; }
.prod .dom .i { font-size: 14px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a.prod:hover .dom { color: var(--ink); } a.prod:hover .dom .i { transform: translate(2px, -2px); } }
.hint { position: relative; height: 64px; border: 1px solid var(--rule); background: var(--paper); overflow: hidden; }
.hint * { animation-play-state: inherit; }
.hint.is-paused, .hint.is-paused * { animation-play-state: paused !important; }
/* wave: voice agent */
.h-wave { display: flex; align-items: center; justify-content: center; gap: 3px; }
.h-wave i { width: 3px; height: 34px; background: var(--ink); border-radius: 2px; transform: scaleY(.15); animation: wave 1.2s var(--ease-in-out) infinite; animation-delay: calc(var(--k) * -90ms); }
.h-wave i:nth-child(5n+3) { background: var(--amber); }
@keyframes wave { 0%, 100% { transform: scaleY(.15); } 50% { transform: scaleY(var(--amp, .9)); } }
/* send: outreach dots leaving a source toward three targets */
.h-send { display: grid; place-items: center; }
.h-send svg { width: 100%; height: 100%; }
.h-send .ln { stroke: var(--rule-2); stroke-width: 1; fill: none; stroke-dasharray: 2 3; }
.h-send .src { fill: var(--ink); }
.h-send .tgt { fill: var(--surface); stroke: var(--ink); stroke-width: 1.2; }
.h-send .pk { fill: var(--amber); offset-rotate: 0deg; animation: sendMove 2.4s var(--ease-in-out) infinite; }
.h-send .pk:nth-of-type(2) { animation-delay: .8s; }
.h-send .pk:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes sendMove { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
/* clause: document lines with a highlight wiping across one */
.h-doc { display: grid; align-content: center; gap: 6px; padding: 0 18px; }
.h-doc i { display: block; height: 4px; background: var(--rule-2); width: var(--w, 100%); position: relative; }
.h-doc i.mk::after { content: ""; position: absolute; inset: -3px 0; background: var(--amber-soft); border-bottom: 1.5px solid var(--amber-line); transform-origin: left; animation: docMark 3.2s var(--ease-out) infinite; }
@keyframes docMark { 0%, 15% { transform: scaleX(0); } 55%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
/* type: lines of text typing out, publishing automation */
.h-type { display: grid; align-content: center; gap: 7px; padding: 0 18px; }
.h-type i { display: block; height: 5px; background: var(--ink); width: var(--w); transform-origin: left; animation: typeLine 3.6s steps(14, end) infinite; animation-delay: var(--dl, 0s); }
.h-type i:last-child { background: var(--amber); }
@keyframes typeLine { 0% { transform: scaleX(0); } 40%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
/* ring: nutrition progress ring filling */
.h-ring { display: flex; align-items: center; justify-content: center; gap: 14px; }
.h-ring svg { width: 46px; height: 46px; transform: rotate(-90deg); }
.h-ring .bg { fill: none; stroke: var(--rule); stroke-width: 5; }
.h-ring .fg { fill: none; stroke: var(--amber); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; animation: ringFill 3.4s var(--ease-out) infinite; }
.h-ring .fg.b { stroke: var(--ink); animation-delay: .4s; }
@keyframes ringFill { 0% { stroke-dashoffset: 100; } 60%, 90% { stroke-dashoffset: var(--to, 30); } 100% { stroke-dashoffset: var(--to, 30); opacity: 0; } }
/* ring-to-booked: phone rings, then a calendar slot fills */
.h-call { display: flex; align-items: center; justify-content: center; gap: 12px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.h-call .ph { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--ink); animation: callShake 3s ease-in-out infinite; }
.h-call .ph .i { font-size: 16px; }
.h-call .slot { width: 64px; height: 22px; border: 1px dashed var(--rule-2); position: relative; overflow: hidden; }
.h-call .slot::after { content: ""; position: absolute; inset: 2px; background: var(--amber); transform-origin: left; animation: slotFill 3s var(--ease-out) infinite; }
@keyframes callShake { 0%, 4%, 8%, 12%, 16% { transform: rotate(0); } 2%, 10% { transform: rotate(-8deg); } 6%, 14% { transform: rotate(8deg); } 100% { transform: rotate(0); } }
@keyframes slotFill { 0%, 30% { transform: scaleX(0); } 55%, 90% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* ---------- 20. motion states (html.motion is set only when motion is allowed and JS runs) ---------- */
.motion [data-reveal]:not(.is-revealed) { opacity: 0; }
.motion [data-reveal="stagger"]:not(.is-revealed) { opacity: 1; }
.motion [data-reveal="stagger"]:not(.is-revealed) > * { opacity: 0; }
.motion [data-split]:not(.is-split) { opacity: 0; }
.motion .js-hero-hide { opacity: 0; }
.motion [data-scan] .seal-img { clip-path: inset(0 0 100% 0); }
.motion [data-scan] .seal-ring, .motion [data-scan] .seal-tag { opacity: 0; }
.draw path, .draw line, .draw polyline, .draw rect, .draw circle { stroke-dasharray: 1; stroke-dashoffset: 0; }
.motion .draw:not(.is-drawn) path, .motion .draw:not(.is-drawn) line, .motion .draw:not(.is-drawn) polyline, .motion .draw:not(.is-drawn) rect, .motion .draw:not(.is-drawn) circle { stroke-dashoffset: 1; }
.motion .draw path, .motion .draw line, .motion .draw polyline, .motion .draw rect, .motion .draw circle { transition: stroke-dashoffset 900ms var(--ease-out); transition-delay: var(--dd, 0ms); }
main { animation: pageIn 260ms ease-out both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .seal-ring .spin, .seal-ring .spin-rev, .marquee-track { animation: none !important; }
  .flow-link .dot { display: none; }
  .hint * { animation: none !important; }
  .h-wave i { transform: scaleY(.6); }
  main { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- 21. responsive ---------- */
@media (max-width: 1180px) {
  .nav-links, .hdr-actions .hdr-link, .hdr-actions .btn { display: none; }
  .hdr { justify-content: space-between; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 960px) {
  .sec-grid, .sec-head { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .sec-head .body { justify-self: start; }
  .rail-track { display: none; }
  .rail-sticky { position: static; }
  .split-2 { grid-template-columns: minmax(0, 1fr); }
  .ft-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-brand { grid-column: 1 / -1; }
  .tabs-list { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab-panel[hidden] { display: none; }
  /* expanding panels become a vertical accordion */
  .xp { flex-direction: column; height: auto; }
  .xp-item, .xp-item.is-open { flex: none; transition: background-color 400ms ease, border-color 400ms ease; }
  .xp-head { flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; height: auto; min-height: 62px; padding: 14px 18px; }
  .xp-item.is-open .xp-head { position: relative; pointer-events: auto; }
  .xp-vlabel { writing-mode: horizontal-tb; transform: none; font-size: 20px; }
  .xp-item.is-open .xp-vlabel { opacity: 1; color: var(--on-dark); }
  .xp-body { position: relative; inset: auto; width: 100%; display: grid; grid-template-rows: 0fr; padding: 0 18px; transition: grid-template-rows 500ms var(--ease-out), opacity 300ms ease, padding 500ms var(--ease-out); }
  .xp-item.is-open .xp-body { grid-template-rows: 1fr; padding-bottom: 24px; }
  .xp-body > div { overflow: hidden; min-height: 0; }
  .xp-body .h3, .xp-art { display: none; }
}
@media (max-width: 640px) {
  .ft-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .tabs-list { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tab { min-height: 58px; flex-direction: row; align-items: center; gap: 14px; padding: 12px 14px; }
  .faq-a p { padding-right: 0; }
  .btn-row .btn { flex: 1 1 100%; }
  .flow { flex-direction: column; align-items: stretch; }
  .flow .chip { justify-content: center; }
  .flow-link { flex: none; height: 40px; min-width: 0; width: 44px; align-self: center; }
  .flow-link::before { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .flow-link .dot { left: calc(50% - 3px); top: -3px; animation-name: travelY; }
  .flow-link .dot.pkg { left: calc(50% - 4.5px); top: -4.5px; }
}

/* ---------- 22. "Where AI pays off" (payoff-canvas.js). Dark by default; add .pay-light on paper ---------- */
.pay { --pc-ink: #EDEBE6; --pc-muted: rgba(237, 235, 230, .42); --pc-faint: rgba(237, 235, 230, .16); --pc-amber: #FFB900; --pc-note: #CFCBC2; --pc-wash: rgba(255, 185, 0, .08);
  position: relative; display: grid; gap: 16px; padding: clamp(16px, 2.2vw, 28px); border: 1px solid var(--rule-dark); background: linear-gradient(180deg, rgba(26, 28, 34, .75), rgba(11, 12, 15, .4)); color: var(--on-dark); }
.pay.pay-light { --pc-ink: #0E0F12; --pc-muted: rgba(28, 28, 28, .45); --pc-faint: rgba(28, 28, 28, .16); --pc-amber: #8A6300; --pc-note: #44464C; --pc-wash: rgba(255, 185, 0, .1); background: var(--surface); border-color: var(--rule); color: var(--ink); }
.pay-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.pay-read { display: flex; align-items: flex-end; gap: 14px; }
.pay-big { display: inline-block; font-family: var(--dot); font-weight: 800; font-size: clamp(72px, 8vw, 116px); line-height: .78; color: var(--amber); font-variant-numeric: tabular-nums; min-width: 1.1ch; }
.pay-cap { max-width: 9ch; font-size: 16px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; color: var(--on-dark); padding-bottom: 4px; }
.pay-light .pay-cap { color: var(--ink); }
.pay-key { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 18px; font: 500 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-3); }
.pay-key li { display: flex; align-items: center; gap: 8px; }
.pay-key i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--pc-ink); }
.pay-key .k-build { background: var(--amber); border-color: var(--amber); }
.pay-key .k-pilot { background: var(--pc-ink); }
.pay-key .k-not { opacity: .45; }
.pay-stage { position: relative; aspect-ratio: 16 / 10.5; min-height: 320px; touch-action: none; user-select: none; -webkit-user-select: none; }
.pay-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pay-dots { position: absolute; inset: 0; }
.pay-dot { position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; border: 0; background: none; color: inherit; cursor: grab; touch-action: none; will-change: transform; }
.pay-dot .pd-c { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; border: 1.6px solid var(--pc-ink); background: var(--dark-2); transition: background-color 300ms ease, border-color 300ms ease, transform 200ms var(--ease-out), box-shadow 300ms ease; }
.pay-dot::before { content: ""; position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; }
.pay-dot .pd-l { position: absolute; white-space: nowrap; font-size: 13.5px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; padding: 3px 7px; background: rgba(11, 12, 15, .82); border: 1px solid var(--rule-dark); color: var(--pc-ink); pointer-events: none; transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease; }
.pay-dot .pd-short { display: none; }
.pay.is-small .pay-dot .pd-full { display: none; }
.pay.is-small .pay-dot .pd-short { display: inline; }
.pay-dot[data-side="r"] .pd-l, .pay-dot:not([data-side]) .pd-l { left: 14px; top: 0; transform: translateY(-50%); }
.pay-dot[data-side="l"] .pd-l { right: 14px; top: 0; transform: translateY(-50%); }
.pay-dot[data-side="t"] .pd-l { left: 0; bottom: 14px; transform: translateX(-50%); }
.pay-dot[data-side="b"] .pd-l { left: 0; top: 14px; transform: translateX(-50%); }
.pay-dot[data-q="build"] .pd-c { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 5px rgba(255, 185, 0, .18); }
.pay-dot[data-q="build"] .pd-l { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.pay-dot[data-q="pilot"] .pd-c { background: var(--pc-ink); }
.pay-dot[data-q="not"] .pd-c { opacity: .55; }
.pay-dot[data-q="not"] .pd-l { color: var(--pc-muted); }
.pay-dot.is-pop .pd-c { animation: payPop 600ms var(--ease-out); }
@keyframes payPop { 0% { box-shadow: 0 0 0 0 rgba(255, 185, 0, .7); transform: scale(1.35); } 100% { box-shadow: 0 0 0 5px rgba(255, 185, 0, .18); transform: scale(1); } }
.pay-dot:focus-visible { outline: none; }
.pay-dot:focus-visible .pd-c { outline: 2px solid var(--amber); outline-offset: 4px; }
.pay-dot.is-drag { cursor: grabbing; z-index: 2; }
.pay-dot.is-drag .pd-c { transform: scale(1.25); }
@media (hover: hover) and (pointer: fine) { .pay-dot:hover .pd-c { transform: scale(1.2); } }
.pay-light .pay-dot .pd-c { background: var(--surface); }
.pay-light .pay-dot .pd-l { background: rgba(251, 250, 247, .92); border-color: var(--rule); }
.pay-light .pay-dot[data-q="build"] .pd-c, .pay-light .pay-dot[data-q="build"] .pd-l { background: var(--amber); border-color: var(--amber); }
.pay-lever { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-3); }
.pay-light .pay-lever { color: var(--ink-3); }
.pay-lever input { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
.pay-lever input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, rgba(237, 235, 230, .2), var(--amber)); }
.pay-lever input::-moz-range-track { height: 2px; background: linear-gradient(90deg, rgba(237, 235, 230, .2), var(--amber)); }
.pay-lever input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 30px; margin-top: -14px; background: var(--on-dark); border: 0; border-top: 4px solid var(--amber); border-radius: 1px; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.pay-lever input::-moz-range-thumb { width: 16px; height: 26px; background: var(--on-dark); border: 0; border-top: 4px solid var(--amber); border-radius: 1px; }
.pay-lever input:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.pay-caption { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--on-dark-3); }
.pay-light .pay-caption { color: var(--ink-3); }
.steps3 { display: grid; border-top: 1px solid var(--rule-dark); }
.steps3 li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; padding: 18px 0; border-bottom: 1px solid var(--rule-dark); }
.steps3 .num { grid-row: span 2; padding-top: 5px; color: var(--amber-dark-ink); }
.steps3 b { font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--on-dark); }
.steps3 span:last-child { font-size: 15px; color: var(--on-dark-2); }

/* ---------- 23. engagement timeline (timeline.js) ---------- */
.tl { position: relative; background: var(--surface); border: 1px solid var(--rule-2); box-shadow: var(--shadow); overflow: hidden; }
.tl-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 14px clamp(16px, 2.4vw, 28px); border-bottom: 1px solid var(--rule); }
.tl-client { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--ink-3); }
.tl-client b { font-weight: 600; color: var(--ink); font-size: 15px; letter-spacing: -.01em; }
.tl-rail { position: relative; height: 74px; margin: 0 clamp(16px, 2.4vw, 28px); border-bottom: 1px solid var(--rule); }
.tl-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 40px; height: 2px; background: var(--rule); }
.tl-fill { position: absolute; left: 0; right: 0; top: 40px; height: 2px; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.tl-seg { position: absolute; top: 14px; left: calc(var(--a) * 100%); width: calc((var(--b) - var(--a)) * 100%); padding-left: 10px; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); border-left: 1px solid var(--rule-2); height: 34px; white-space: nowrap; overflow: hidden; }
.tl-tick { position: absolute; top: 50px; left: calc(var(--x) * 100%); transform: translateX(-50%); font: 500 10px/1 var(--mono); color: var(--ink-3); padding-top: 8px; transition: color 300ms ease; }
.tl-tick::before { content: ""; position: absolute; left: 50%; top: -14px; width: 8px; height: 8px; margin-left: -4px; background: var(--surface); border: 1.5px solid var(--rule-2); transition: background-color 300ms ease, border-color 300ms ease, transform 300ms var(--ease-out); }
.tl-tick.on { color: var(--ink); }
.tl-tick.on::before { background: var(--amber); border-color: var(--amber); transform: scale(1.15); }
.tl-playhead { position: absolute; top: 35px; left: 0; width: 12px; height: 12px; margin-left: -6px; background: var(--amber); box-shadow: 0 0 0 5px rgba(255, 185, 0, .2); }
.tl-stage { display: grid; padding: clamp(20px, 2.6vw, 32px) clamp(16px, 2.4vw, 28px); min-height: 330px; }
.tl-panel { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out), visibility 0s 320ms; }
.tl-panel.on { opacity: 1; visibility: visible; transform: none; transition: opacity 420ms var(--ease-out) 120ms, transform 520ms var(--ease-out) 120ms; }
.tl-k { display: inline-flex; align-items: center; gap: 8px; font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber-ink); }
.tl-k .i { font-size: 16px; }
.tl-title { margin-top: 12px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -.04em; line-height: 1.08; color: var(--ink); }
.tl [data-at] { opacity: 0; transform: translateY(8px); transition: opacity 360ms var(--ease-out), transform 420ms var(--ease-out); }
.tl [data-at].in { opacity: 1; transform: none; }
.tl-qs, .tl-keys { margin-top: 18px; display: grid; gap: 10px; }
.tl-qs li, .tl-keys li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--rule); background: var(--paper); font-size: 15px; color: var(--ink-2); }
.tl-keys li { align-items: center; color: var(--ink); font-weight: 500; }
.tl-qs b { display: block; color: var(--ink); font-weight: 600; letter-spacing: -.01em; margin-bottom: 2px; }
.tl-ck { width: 24px; height: 24px; display: grid; place-items: center; border: 1.5px solid var(--rule-2); color: transparent; transition: background-color 300ms ease 200ms, border-color 300ms ease 200ms, color 300ms ease 200ms; }
.tl-ck .i { font-size: 15px; stroke-width: 2.2; }
.in > .tl-ck { background: var(--ink); border-color: var(--ink); color: var(--amber); }
.tl-doc { position: relative; margin-top: 16px; padding: clamp(16px, 2vw, 24px); border: 1px solid var(--rule-2); background: #fff; box-shadow: 8px 8px 0 -1px var(--paper-2), 8px 8px 0 0 var(--rule); }
.tl-doc-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.tl-doc-cols ul { list-style: none; padding: 0; margin-top: 10px; display: grid; gap: 7px; }
.tl-doc-cols li { position: relative; padding-left: 16px; font-size: 15px; color: var(--ink); }
.tl-doc-cols li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--ink); }
.tl-doc-cols > div:last-child li::before { background: transparent; border: 1px solid var(--ink-3); }
.tl-doc-cols > div:last-child li { color: var(--ink-3); }
.tl-doc-foot { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--rule-2); font-size: 14.5px; color: var(--ink-2); }
.tl-doc-foot b { display: block; font: 500 10.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.tl-stamp { position: absolute; right: clamp(14px, 2vw, 24px); top: clamp(12px, 1.6vw, 20px); padding: 6px 12px; border: 2px solid var(--amber-line); color: var(--amber-ink); font: 600 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; transform: rotate(-6deg) scale(1.6); opacity: 0; }
.tl-stamp.in { transform: rotate(-6deg) scale(1); opacity: 1; transition: transform 360ms cubic-bezier(.34, 1.56, .64, 1), opacity 200ms ease; }
.tl-weeks { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tl-weeks li { position: relative; display: grid; gap: 10px; min-height: 96px; padding: 14px; border: 1px solid var(--rule); background: var(--paper); }
.tl-weeks li.in { border-color: var(--rule-2); background: #fff; }
.tl-weeks li::after { content: "Demo"; position: absolute; right: 12px; top: 12px; font: 500 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber-ink); padding: 4px 6px; border: 1px solid var(--amber-soft); background: var(--amber-wash); }
.tl-weeks b { font-size: 16px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); align-self: end; }
.tl-foot { display: flex; align-items: center; gap: 12px; padding: 10px clamp(12px, 2vw, 20px) 12px; border-top: 1px solid var(--rule); }
.tl-steps { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.tl-steps button { display: grid; gap: 7px; padding: 8px 2px; border: 0; background: none; cursor: pointer; text-align: left; min-height: 44px; }
.tl-steps .bar { position: relative; height: 2px; background: var(--rule); overflow: hidden; }
.tl-steps .bar i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--bp, 0)); transform-origin: left; }
.tl-steps button[aria-current="step"] .bar i { background: var(--amber); }
.tl-steps .t { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tl-steps button[aria-current="step"] .t { color: var(--ink); }
.tl-pp { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--rule-2); background: var(--surface); border-radius: 50%; cursor: pointer; }
.tl-pp .i { font-size: 16px; }
.tl-pp:active { transform: scale(.95); }
@media (max-width: 760px) {
  .tl-weeks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-doc-cols, .tl-doc-foot { grid-template-columns: minmax(0, 1fr); }
  .tl-seg { font-size: 9px; letter-spacing: .06em; padding-left: 5px; }
  .tl-tick { font-size: 9px; }
  .tl-stage { min-height: 420px; }
}
@media (max-width: 640px) {
  .pay-stage { aspect-ratio: 4 / 4.8; }
  .pay-dot .pd-l { font-size: 12px; padding: 2px 5px; }
  .pay-lever { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pay-lever input { grid-column: 1 / -1; grid-row: 1; }
  .pay-lever span:last-child { text-align: right; }
  .pay-key { grid-template-columns: repeat(2, auto); }
  .tl-weeks li { min-height: 80px; }
}

/* ---------- 24. shared page patterns (moved from inner.css and the page CSS files) ---------- */
/* home hero kicker and practice readers; inner pages use .p-kicker (same look) */
.kicker, .p-kicker { display: flex; align-items: center; gap: 16px; margin-top: clamp(26px, 3vw, 40px); font-size: clamp(18px, 1.7vw, 23px); font-weight: 500; letter-spacing: -.025em; line-height: 1.25; color: var(--ink); }
.kicker::before, .p-kicker::before { content: ""; width: 40px; height: 2px; background: var(--amber); flex: none; }
.hero-readers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(40px, 5vw, 72px); }
@media (max-width: 640px) { .hero-readers { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
/* proof stat: one figure, Doto. .stat-tile puts it on a dark tile when it sits on paper */
.stat { display: flex; align-items: flex-end; gap: 16px; }
.stat-n { font-family: var(--dot); font-weight: 800; font-size: clamp(64px, 7vw, 104px); line-height: .8; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat p { max-width: 14ch; font-size: 16px; line-height: 1.25; font-weight: 500; letter-spacing: -.01em; color: var(--ink); padding-bottom: 4px; }
.band-dark .stat-n, .stat-tile .stat-n { color: var(--amber); }
.band-dark .stat p, .stat-tile p { color: var(--on-dark); }
.stat-tile { padding: clamp(18px, 2vw, 26px) clamp(20px, 2.4vw, 30px); background: var(--dark); position: relative; isolation: isolate; overflow: hidden; }
.stat-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(237, 235, 230, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(237, 235, 230, .05) 1px, transparent 1px); background-size: 24px 24px; }
/* ---------- inner hero ---------- */
.p-hero { padding-block: clamp(36px, 5vw, 80px) clamp(56px, 7vw, 100px); }
.p-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.p-hero .label { margin-bottom: clamp(20px, 2.4vw, 32px); }
.p-hero .h1 { font-size: clamp(48px, 6.6vw, 96px); max-width: 11ch; }
.p-kicker { display: flex; align-items: center; gap: 16px; margin-top: clamp(26px, 3vw, 38px); font-size: clamp(18px, 1.7vw, 23px); font-weight: 500; letter-spacing: -.025em; line-height: 1.25; color: var(--ink); }
.p-kicker::before { content: ""; width: 40px; height: 1.5px; background: var(--amber); flex: none; }
.p-hero .lede { margin-top: 16px; }
.p-hero .btn-row { margin-top: 30px; }
.p-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(40px, 5vw, 72px); }
.p-index .reader-card b { font-size: 15.5px; }

/* shared engraving figure tag (mono chip under a hero figure) */
.fig-tag { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; background: var(--paper); font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; z-index: 2; }
.fig-tag::before { content: ""; width: 7px; height: 7px; background: var(--amber); }

/* ---------- section spacing helpers ---------- */
.sec-mt { margin-top: clamp(32px, 4vw, 52px); }

/* ---------- service panels inside auto tabs ---------- */
.svc-tabs .tab .t { font-size: clamp(15px, 1.25vw, 17.5px); }
.svc-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 10px; }
.svc-copy { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 40px); background: var(--surface); border: 1px solid var(--rule); min-height: 420px; }
.svc-copy .num { color: var(--amber-ink); }
.svc-copy .h3 { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -.045em; line-height: 1.02; max-width: 16ch; }
.svc-lead { font-size: clamp(18px, 1.5vw, 20px); font-weight: 500; letter-spacing: -.02em; line-height: 1.3; color: var(--ink); max-width: 34ch; }
.svc-copy .body { max-width: 52ch; }
.svc-fit { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--rule); display: grid; gap: 6px; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.3; color: var(--ink-2); }
.svc-fit .label { font-style: normal; }
.svc-side { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: clamp(24px, 3vw, 36px); background: var(--dark); color: var(--on-dark); min-height: 420px; }
.svc-side::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(237, 235, 230, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(237, 235, 230, .05) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(100% 100% at 100% 0%, #000, transparent 85%); }
.svc-art { position: absolute; z-index: -1; right: -18%; top: -20%; width: 92%; opacity: .42; pointer-events: none; }
.svc-art img { width: 100%; height: auto; filter: invert(1); mix-blend-mode: screen; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 36%, transparent 68%); mask-image: radial-gradient(circle at 50% 50%, #000 36%, transparent 68%); }
.svc-side .label { color: var(--on-dark-3); }
.svc-get { display: grid; border-top: 1px solid var(--rule-dark); }
.svc-get li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--rule-dark); font-size: 15.5px; line-height: 1.4; color: var(--on-dark); }
.svc-get .ck { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--rule-dark-2); color: var(--amber); }
.svc-get .ck .i { font-size: 14px; stroke-width: 2.2; }
.tab-panel.is-in .svc-art { animation: svcArt 1.1s var(--ease-out) both; }
.tab-panel.is-in .svc-get li { animation: panelIn 520ms var(--ease-out) both; }
.tab-panel.is-in .svc-get li:nth-child(1) { animation-delay: 220ms; }
.tab-panel.is-in .svc-get li:nth-child(2) { animation-delay: 290ms; }
.tab-panel.is-in .svc-get li:nth-child(3) { animation-delay: 360ms; }
.tab-panel.is-in .svc-get li:nth-child(4) { animation-delay: 430ms; }
@keyframes svcArt { from { opacity: 0; transform: scale(1.06) rotate(-3deg); } to { opacity: .42; transform: none; } }

/* final CTA + knight board (every page) */
.cta-final { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-final > div:first-child { flex: 1 1 620px; }
.cta-final .h1 { font-size: clamp(44px, 6.4vw, 92px); max-width: 13ch; }
.cta-final .posline { margin-top: 22px; }
.cta-final .btn-row { margin-top: 30px; }
.board { flex: 0 1 220px; display: grid; justify-items: center; gap: 10px; }
.board svg { width: 100%; max-width: 220px; height: auto; }
.board-dk { fill: rgba(14, 15, 18, .06); }
.board-edge { fill: none; stroke: var(--rule-2); }
.board-f { fill: var(--ink); }
.board-path { fill: none; stroke: var(--amber-line); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 0; stroke-linecap: round; stroke-linejoin: round; }
.board-hop { fill: var(--amber); }
.board .note { font-size: 19px; color: var(--ink-2); }
.motion .board.is-revealed .board-path { animation: boardPath 4.8s var(--ease-in-out) infinite; }
.motion .board.is-revealed .board-hop { animation: boardHop 4.8s var(--ease-in-out) infinite; }
@keyframes boardPath { 0%, 8% { stroke-dashoffset: 1; } 50%, 86% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes boardHop { 0%, 8% { transform: translate(20px, -40px); } 30% { transform: translate(20px, 0); } 50%, 100% { transform: translate(0, 0); } }

/* ---------- dark band with an engraving + flow (shared layout) ---------- */
.band-art { position: absolute; z-index: -1; right: -6%; bottom: -14%; width: min(60%, 740px); opacity: .22; pointer-events: none; }
.band-art img { width: 100%; height: auto; -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 40%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 50%, #000 40%, transparent 70%); }
.band-words { margin-top: clamp(28px, 3vw, 40px); max-width: 22ch; font-size: clamp(36px, 5.2vw, 76px); font-weight: 600; letter-spacing: -.048em; line-height: 1.02; color: var(--on-dark); text-wrap: balance; }
.band-flow { margin-top: clamp(44px, 5vw, 72px); max-width: 980px; }
.band-cols { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); max-width: 1080px; margin-top: 32px; border-top: 1px solid var(--rule-dark); }
.band-cols > div { padding: 20px 22px 0 0; }
.band-cols > div + div { padding-left: 22px; border-left: 1px solid var(--rule-dark); }
.band-cols b { font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--on-dark); }
.band-cols p { margin-top: 6px; font-size: 15px; color: var(--on-dark-2); text-wrap: pretty; }

@media (max-width: 1100px) {
  .p-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .p-hero-fig { max-width: 480px; width: 100%; margin-inline: auto; }
}
@media (max-width: 960px) {
  .svc-panel { grid-template-columns: minmax(0, 1fr); }
  .svc-copy, .svc-side { min-height: 0; }
  .svc-side { min-height: 340px; }
  .p-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-cols { grid-template-columns: minmax(0, 1fr); }
  .band-cols > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-dark); margin-top: 16px; }
}
@media (max-width: 640px) {
  .p-index { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .p-hero-fig { max-width: 340px; }
  .board { flex-basis: 160px; }
  .band-art { width: 110%; right: -30%; bottom: -6%; }
}
