/* ==========================================================================
   Design system
   Colour: graphite neutrals plus one signal colour (lime). Lime is a fill,
   never body text on light surfaces; --signal-text is the readable version.
   Type: Archivo (wide display), Instrument Sans (text), JetBrains Mono (times and data only).
   Shape: controls 10px, surfaces 18px, chips 6px. No pills.
   Motion eases, named for how they feel:
     damped   fast start, long soft settle (entrances, reveals)
     viscous  slow in, slow out (scrubbed and pinned movement)
     springy  slight overshoot (taps, stamps, small confirmations)
     drift    even and gentle (ambient loops)
   ========================================================================== */
:root {
  --bg: #f2f3f5;
  --bg-2: #e7e9ed;
  --surface: #fbfbfc;
  --ink: #101215;
  --ink-2: #2a2e35;
  --muted: #555d6b;
  --line: #d5d9df;
  --line-2: #bfc5ce;
  --signal: #c6f135;
  --signal-ink: #101215;
  --signal-text: #3b5500;
  --signal-soft: #e9f7bd;
  --stage: #121418;
  --stage-2: #1a1d22;
  --stage-ink: #f0f2f4;
  --stage-muted: #a2a9b5;
  --stage-line: #2b3038;
  --shadow: 0 1px 2px rgb(16 18 21 / .05), 0 14px 34px -14px rgb(16 18 21 / .18);
  --shadow-stage: 0 40px 80px -40px rgb(16 18 21 / .55), 0 0 0 1px var(--stage-line) inset;
  --grain-o: .35;

  --r-ctl: 10px;
  --r: 18px;
  --r-chip: 6px;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);

  --f-display: "Archivo", "Instrument Sans", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --ease-damped: cubic-bezier(.16, 1, .3, 1);
  --ease-viscous: cubic-bezier(.65, 0, .35, 1);
  --ease-springy: cubic-bezier(.34, 1.56, .64, 1);
  --ease-drift: cubic-bezier(.37, 0, .63, 1);
  --t-tap: 160ms;
  --t-glide: 420ms;
  --t-settle: 700ms;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0d0f; --bg-2: #14161a; --surface: #15171b; --ink: #eef0f3; --ink-2: #d0d5dc; --muted: #98a0ad;
    --line: #252930; --line-2: #343a43; --signal-text: #c6f135; --signal-soft: #1d2708;
    --stage: #16191d; --stage-2: #1d2026; --stage-line: #2f343d;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 18px 40px -18px rgb(0 0 0 / .7);
    --shadow-stage: 0 40px 80px -40px rgb(0 0 0 / .8), 0 0 0 1px var(--stage-line) inset;
    --grain-o: .3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0d0f; --bg-2: #14161a; --surface: #15171b; --ink: #eef0f3; --ink-2: #d0d5dc; --muted: #98a0ad;
  --line: #252930; --line-2: #343a43; --signal-text: #c6f135; --signal-soft: #1d2708;
  --stage: #16191d; --stage-2: #1d2026; --stage-line: #2f343d;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 18px 40px -18px rgb(0 0 0 / .7);
  --shadow-stage: 0 40px 80px -40px rgb(0 0 0 / .8), 0 0 0 1px var(--stage-line) inset;
  --grain-o: .3;
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: var(--grain-o); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--signal); color: var(--signal-ink); }
:focus-visible { outline: 2px solid var(--signal-text); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--line-2) var(--bg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-ctl); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }

/* Page transitions between pages */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 260ms var(--ease-viscous) both; }
::view-transition-new(root) { animation: vt-in 520ms var(--ease-damped) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }
.site-head { view-transition-name: head; }

/* Type */
.display {
  font-family: var(--f-display); font-stretch: 114%; font-weight: 800;
  font-size: clamp(2.75rem, 6.3vw, 6rem); line-height: .97; letter-spacing: -.038em;
}
.display em, .h2 em { font-style: normal; }
.display em {
  background-image: linear-gradient(var(--signal), var(--signal)); background-repeat: no-repeat;
  background-position: 0 90%; background-size: calc(var(--mark, 1) * 100%) .32em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .04em;
}
@property --mark { syntax: "<number>"; inherits: true; initial-value: 1; }
.w { display: inline-block; overflow: clip; overflow-clip-margin: .12em; vertical-align: top; padding-bottom: .04em; margin-bottom: -.04em; }
.w > span { display: inline-block; will-change: transform; }
.h2 { font-family: var(--f-display); font-stretch: 110%; font-weight: 780; font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.03; letter-spacing: -.032em; }
.h2.narrow { max-width: 18ch; }
.h3 { font-family: var(--f-display); font-stretch: 106%; font-weight: 700; font-size: 1.35rem; line-height: 1.2; letter-spacing: -.016em; }
.lede { font-size: clamp(1.08rem, 1.4vw, 1.27rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.sub { margin-top: 14px; color: var(--muted); font-size: 1.08rem; max-width: 54ch; }
.sec-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px 40px; }

/* Buttons and links */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-ctl); border: 1px solid transparent;
  font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer; isolation: isolate; overflow: hidden;
  transition: transform var(--t-tap) var(--ease-damped), background-color var(--t-glide), box-shadow var(--t-glide) var(--ease-damped), border-color var(--t-glide), color var(--t-glide);
}
.btn i { font-size: 1.05em; transition: transform var(--t-glide) var(--ease-damped); }
.btn:hover i { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-accent { background: var(--signal); color: var(--signal-ink); box-shadow: 0 1px 0 rgb(255 255 255 / .55) inset, 0 8px 22px -10px rgb(90 130 0 / .7); }
.btn-accent::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / .55) 50%, transparent 70%); transform: translateX(-120%); transition: transform 700ms var(--ease-damped); }
.btn-accent:hover::before { transform: translateX(120%); }
.btn-accent:hover { box-shadow: 0 1px 0 rgb(255 255 255 / .55) inset, 0 14px 30px -10px rgb(90 130 0 / .75); }
.btn-line { border-color: var(--line-2); color: var(--ink); background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(6px); }
.btn-line:hover { border-color: var(--ink); }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 1.05rem; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .94rem; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--signal-text); text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size var(--t-glide) var(--ease-damped); padding-bottom: 2px; }
.link:hover { background-size: 100% 1px; }
.link i { transition: transform var(--t-glide) var(--ease-damped); }
.link:hover i { transform: translateX(4px); }

/* Cursor glow (fine pointers) */
.glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(circle, rgb(198 241 53 / .16), rgb(198 241 53 / 0) 62%); opacity: 0; transition: opacity 600ms; mix-blend-mode: plus-lighter; }
:root:not([data-theme="dark"]) .glow { mix-blend-mode: multiply; background: radial-gradient(circle, rgb(170 220 20 / .2), rgb(170 220 20 / 0) 62%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .glow { mix-blend-mode: plus-lighter; background: radial-gradient(circle, rgb(198 241 53 / .12), rgb(198 241 53 / 0) 62%); } }
.glow.on { opacity: 1; }
main, .site-foot { position: relative; z-index: 1; }
main { overflow-x: clip; }

/* Header with progressive blur */
.site-head { position: sticky; top: 0; z-index: 40; }
.site-head::before {
  content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 88%, transparent) 0%, color-mix(in srgb, var(--bg) 60%, transparent) 60%, transparent 100%);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}
.site-head::after {
  content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  mask-image: linear-gradient(to bottom, transparent 40%, #000 70%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 40%, #000 70%, transparent 100%);
}
.head-row { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 1.08rem; letter-spacing: -.02em; white-space: nowrap; }
.mark { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); position: relative; flex: none; overflow: hidden; }
.mark::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); right: 5px; bottom: 5px; transition: transform var(--t-glide) var(--ease-springy); }
.brand:hover .mark::after { transform: translate(-6px, -6px); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 9px 11px; border-radius: var(--r-ctl); text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .94rem; white-space: nowrap; }
.nav a i { font-size: .8em; color: var(--muted); }
.nav a span { position: relative; }
.nav a span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--signal-text); transform: scaleX(0); transform-origin: right; transition: transform var(--t-glide) var(--ease-damped); }
.nav a:hover span::after, .nav a[aria-current] span::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current] { color: var(--ink); }
.head-actions { display: flex; align-items: center; gap: 8px; }
.theme-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-ctl); border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-size: 18px; transition: border-color var(--t-glide), transform var(--t-tap); }
.theme-btn:hover { border-color: var(--line-2); }
.theme-btn:active { transform: scale(.94); }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
.menu { position: relative; display: none; }
.menu summary { list-style: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-ctl); border: 1px solid var(--line); cursor: pointer; font-size: 18px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary .ph-x, .menu[open] summary .ph-list { display: none; }
.menu[open] summary .ph-x { display: block; }
.menu-panel { position: absolute; right: 0; top: 52px; width: min(320px, calc(100vw - 32px)); display: grid; gap: 2px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); transform-origin: top right; animation: menu-in var(--t-glide) var(--ease-damped); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.menu-panel a { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px; border-radius: var(--r-ctl); text-decoration: none; font-weight: 500; }
.menu-panel a[aria-current] { background: var(--bg-2); }
.menu-panel a:not(.btn):hover { background: var(--bg-2); }
.menu-panel .btn { margin-top: 6px; justify-content: center; }

/* Hero */
.hero { position: relative; padding: clamp(36px, 6vw, 84px) 0 clamp(56px, 7vw, 96px); isolation: isolate; overflow: clip; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.poster {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 82% 30%, color-mix(in srgb, var(--signal) 22%, transparent) 0%, transparent 60%),
    radial-gradient(50% 60% at 10% 90%, color-mix(in srgb, var(--ink) 8%, transparent) 0%, transparent 70%),
    radial-gradient(var(--line) 1px, transparent 1.3px) 0 0 / 22px 22px;
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease-drift); mask-image: linear-gradient(to bottom, #000 65%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent); }
.gl.on { opacity: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .lede { margin-top: 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; font-size: .95rem; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.crumb i { font-size: .8em; }
.crumb b { color: var(--ink); font-weight: 600; }
.hero-sub { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 560px; }
.hero-sub strong { font-family: var(--f-display); font-stretch: 114%; font-weight: 800; font-size: 2.4rem; line-height: 1; letter-spacing: -.03em; }
.hero-sub p { color: var(--muted); font-size: .96rem; }
.hero-sub cite { display: block; font-style: normal; font-size: .85rem; margin-top: 4px; }

/* Stage: dark product surfaces */
.stage { background: var(--stage); color: var(--stage-ink); border-radius: 22px; box-shadow: var(--shadow-stage); position: relative; overflow: hidden; }
.stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 60% at 100% 0%, rgb(198 241 53 / .12), transparent 60%); }

/* Console (signature) */
.console { padding: 18px; }
.console-top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgb(198 241 53 / .6); animation: pulse 2.2s var(--ease-drift) infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgb(198 241 53 / 0); } 100% { box-shadow: 0 0 0 0 rgb(198 241 53 / 0); } }
.console-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: rgb(255 255 255 / .05); border: 1px solid var(--stage-line); }
.console-tabs button { position: relative; border: 0; background: transparent; color: var(--stage-muted); font: 500 .82rem/1 var(--f-body); padding: 7px 10px; border-radius: 6px; cursor: pointer; transition: color var(--t-glide), background-color var(--t-glide); }
.console-tabs button:hover { color: var(--stage-ink); }
.console-tabs button[aria-selected="true"] { background: var(--stage-ink); color: var(--stage); }
.flow { position: relative; margin: 16px -4px 6px; }
.flow svg { width: 100%; height: auto; overflow: visible; }
.flow .fw { fill: none; stroke: var(--stage-line); stroke-width: 1.6; }
.flow .fw-live { fill: none; stroke: var(--signal); stroke-width: 1.6; stroke-dasharray: 4 7; animation: flow-dash 1.1s linear infinite; opacity: .75; }
@keyframes flow-dash { to { stroke-dashoffset: -22; } }
.flow .box { fill: var(--stage-2); stroke: var(--stage-line); stroke-width: 1.2; transition: stroke 300ms, fill 300ms; }
.flow .hot .box { stroke: var(--signal); fill: #232a12; }
.flow text { fill: var(--stage-muted); font: 500 12.5px var(--f-body); }
.flow .hot text { fill: var(--stage-ink); }
.flow .t-label { fill: var(--stage-ink); font-weight: 600; }
.flow .core { fill: var(--signal); }
.flow .core-ring { fill: none; stroke: var(--signal); stroke-width: 1.4; opacity: .5; transform-origin: center; transform-box: fill-box; animation: ring 2.6s var(--ease-drift) infinite; }
@keyframes ring { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.flow .core-t { fill: var(--signal-ink); font: 700 12px var(--f-body); }
.flow .packet { fill: var(--signal); }
.run-panel { position: relative; display: grid; gap: 10px; }
.run-panel[hidden] { display: none; }
.run-stack { display: grid; }
.run-stack > .run-panel { grid-area: 1 / 1; align-content: start; }
.run-stack > .run-panel.off { visibility: hidden; }
[data-console] { contain: layout; }
.msg [data-type] .ghost { visibility: hidden; }
.msg { border-radius: 12px; padding: 10px 13px; font-size: .9rem; line-height: 1.45; max-width: 92%; }
.msg .who { display: block; font: 500 .74rem/1.2 var(--f-mono); color: var(--stage-muted); margin-bottom: 4px; }
.msg.in { background: rgb(255 255 255 / .05); border: 1px solid var(--stage-line); }
.msg.out { background: var(--signal); color: var(--signal-ink); justify-self: end; }
.msg.out .who { color: #3d4f10; }
.msg [data-type].typing .ty { border-right: 2px solid currentColor; margin-right: -2px; animation: caret-b .8s steps(2) infinite; }
@keyframes caret-b { 50% { border-right-color: transparent; } }
@keyframes caret { 50% { opacity: 0; } }
.steps { display: grid; gap: 6px; }
.steps li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; font-size: .86rem; color: var(--stage-ink); }
.steps li i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgb(198 241 53 / .16); color: var(--signal); font-size: 11px; transition: transform 300ms var(--ease-springy), background-color 300ms; }
.steps li.wait { color: var(--stage-muted); }
.steps li.wait i { background: rgb(255 255 255 / .06); color: transparent; transform: scale(.8); }
.steps time { font: 400 .76rem var(--f-mono); color: var(--stage-muted); }
.result { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding-top: 10px; border-top: 1px solid var(--stage-line); }
.clock { font: 500 1.9rem/1 var(--f-mono); color: var(--signal); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.clock-l { font-size: .82rem; color: var(--stage-muted); }
.stamp { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; padding: 6px 10px; border-radius: var(--r-chip); background: rgb(198 241 53 / .16); color: var(--signal); }
.console-foot { margin-top: 12px; font-size: .76rem; color: var(--stage-muted); position: relative; }

/* Terminal */
.term { overflow: hidden; }
.term-bar { position: relative; display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--stage-line); font-size: .82rem; color: var(--stage-muted); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--stage-line); }
.term-bar span { margin-left: 8px; }
.term pre { position: relative; margin: 0; padding: 20px 20px 24px; font: 400 .86rem/1.8 var(--f-mono); white-space: pre; overflow-x: auto; }
.c { color: var(--stage-muted); }
.k { color: var(--stage-ink); font-weight: 500; }
.pass { color: var(--signal); font-weight: 500; }
.cursor { display: inline-block; width: 8px; height: 1.05em; vertical-align: -3px; margin-left: 4px; background: var(--signal); animation: caret 1s steps(2) infinite; }
.term-line { display: inline-block; }

/* Credentials strip with marquee */
.cred { position: relative; padding: 34px 0 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.cred-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; }
.cred-line { font-size: 1.1rem; color: var(--ink-2); max-width: 36ch; }
.cred-nums { display: flex; gap: clamp(20px, 4vw, 56px); }
.cred-nums li { display: grid; gap: 4px; }
.cred-nums b { font-family: var(--f-display); font-stretch: 114%; font-weight: 800; font-size: 2.2rem; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.cred-nums span { font-size: .86rem; color: var(--muted); max-width: 17ch; line-height: 1.3; }
.logo-label { margin: 26px 0 14px; font-size: .9rem; color: var(--muted); font-weight: 500; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .logos { flex-wrap: nowrap; padding-right: clamp(40px, 5vw, 72px); gap: clamp(40px, 5vw, 72px); }
@keyframes marquee { to { transform: translateX(-50%); } }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 22px clamp(28px, 4.4vw, 60px); }
.logo { display: block; height: 22px; background-color: var(--muted); -webkit-mask: var(--src) left center / contain no-repeat; mask: var(--src) left center / contain no-repeat; transition: background-color var(--t-glide); }
.logos li:hover .logo, .work li:hover .logo { background-color: var(--ink); }
.logo-travelodge { --src: url("logos/travelodge.svg"); aspect-ratio: 3.17; height: 30px; }
.logo-paymentsense { --src: url("logos/paymentsense.svg"); aspect-ratio: 8.68; height: 17px; }
.logo-lexisnexis { --src: url("logos/lexisnexis.svg"); aspect-ratio: 4.28; height: 26px; }
.logo-specsavers { --src: url("logos/specsavers.svg"); aspect-ratio: 5.86; height: 24px; }
.logo-sainsburys { --src: url("logos/sainsburys.svg"); aspect-ratio: 5.28; height: 23px; }
.logo-worldfirst { --src: url("logos/worldfirst.svg"); aspect-ratio: 7.33; height: 18px; }
.logo-aol { --src: url("logos/aol.svg"); aspect-ratio: 2.83; height: 22px; }
.wordmark { font-family: var(--f-display); font-stretch: 110%; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; color: var(--muted); }

/* Sections */
.sec { padding: clamp(80px, 11vw, 150px) 0 0; position: relative; }

/* Pain */
.pain-list { margin-top: 44px; border-top: 1px solid var(--line); }
.pain-item { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 14px 48px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); position: relative; }
.pain-item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--signal-soft), transparent 70%); opacity: 0; transition: opacity var(--t-glide); z-index: -1; }
.pain-item:hover::before { opacity: 1; }
.said { font-family: var(--f-display); font-stretch: 106%; font-weight: 640; font-size: clamp(1.35rem, 2.4vw, 2.05rem); line-height: 1.18; letter-spacing: -.022em; }
.strike { background-image: linear-gradient(var(--signal-text), var(--signal-text)); background-repeat: no-repeat; background-position: 0 56%; background-size: calc(var(--strike, 0) * 100%) 2px; }
.fix { display: flex; gap: 10px; align-items: baseline; color: var(--ink-2); font-size: 1.04rem; }
.fix i { color: var(--signal-text); flex: none; transform: translateY(2px); }

/* Doors: sticky stepper */
.doors-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.doors-nav { position: sticky; top: 110px; }
.door-list { margin-top: 34px; display: grid; gap: 4px; }
.door-list a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-ctl); text-decoration: none; color: var(--muted); transition: color var(--t-glide), background-color var(--t-glide); }
.door-list .dn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); font-size: 18px; transition: background-color var(--t-glide), border-color var(--t-glide), color var(--t-glide); }
.door-list .dt { font-family: var(--f-display); font-stretch: 106%; font-weight: 700; font-size: 1.2rem; letter-spacing: -.015em; }
.door-list .da { opacity: 0; transform: translateX(-6px); transition: opacity var(--t-glide), transform var(--t-glide) var(--ease-damped); }
.door-list a:hover, .door-list a.on { color: var(--ink); }
.door-list a.on { background: var(--surface); box-shadow: var(--shadow); }
.door-list a.on .dn { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.door-list a.on .da, .door-list a:hover .da { opacity: 1; transform: none; }
.doors-cta { margin-top: 30px; }
.door-cards { display: grid; gap: 22px; }
.door { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; position: relative; transform-origin: center top; }
.door-body { padding: 26px clamp(22px, 3vw, 34px) 30px; display: grid; gap: 12px; justify-items: start; }
.door-body p { color: var(--ink-2); max-width: 52ch; }
.door-price { color: var(--muted) !important; font-size: .98rem; }
.door-price b { color: var(--ink); font-weight: 650; }
[data-spot] { --mx: 50%; --my: 50%; }
[data-spot]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity var(--t-glide); background: radial-gradient(360px circle at var(--mx) var(--my), rgb(198 241 53 / .14), transparent 60%); }
[data-spot]:hover::after { opacity: 1; }
.dv { position: relative; height: 230px; background: var(--stage); color: var(--stage-ink); overflow: hidden; display: grid; place-items: center; }
.dv::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgb(255 255 255 / .06) 1px, transparent 1.3px) 0 0 / 18px 18px; }
.dv-cap { position: absolute; left: 18px; bottom: 14px; font-size: .78rem; color: var(--stage-muted); }
.dept-row { position: relative; display: flex; align-items: center; gap: 0; padding: 0 18px; }
.node { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 12px; min-width: 88px; border-radius: 12px; background: var(--stage-2); border: 1px solid var(--stage-line); font-size: .8rem; color: var(--stage-muted); animation: node-hot 4.8s var(--ease-drift) infinite; }
.node i { font-size: 20px; color: var(--stage-ink); }
.node:nth-of-type(1) { animation-delay: 0s; } .node:nth-of-type(2) { animation-delay: 1.2s; } .node:nth-of-type(3) { animation-delay: 2.4s; } .node:nth-of-type(4) { animation-delay: 3.6s; }
@keyframes node-hot { 0%, 30%, 100% { border-color: var(--stage-line); color: var(--stage-muted); } 8%, 22% { border-color: var(--signal); color: var(--stage-ink); box-shadow: 0 0 0 4px rgb(198 241 53 / .1); } }
.wire { position: relative; flex: 1; min-width: 26px; height: 2px; background: repeating-linear-gradient(90deg, var(--signal) 0 5px, transparent 5px 11px); background-size: 22px 2px; animation: wire-run .9s linear infinite; opacity: .8; }
@keyframes wire-run { to { background-position: 22px 0; } }
.dv-dash { padding: 22px; display: block; place-items: normal; }
.dash-top { position: relative; display: flex; justify-content: space-between; font-size: .85rem; color: var(--stage-ink); font-weight: 600; }
.chip-sm { font-size: .72rem; font-weight: 500; color: var(--stage-muted); border: 1px solid var(--stage-line); padding: 3px 8px; border-radius: var(--r-chip); }
.bars { position: relative; display: flex; align-items: end; gap: 10px; height: 120px; margin-top: 16px; }
.bars i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(to top, rgb(198 241 53 / .25), var(--signal)); transform-origin: bottom; animation: bar 3.2s var(--ease-viscous) infinite alternate; }
.bars i:nth-child(odd) { animation-delay: .4s; } .bars i:nth-child(3n) { animation-delay: .8s; }
@keyframes bar { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
.dash-rows { position: relative; display: grid; gap: 7px; margin-top: 16px; }
.dash-rows span { height: 8px; border-radius: 4px; background: var(--stage-line); }
.dash-rows span:nth-child(1) { width: 80%; } .dash-rows span:nth-child(2) { width: 62%; } .dash-rows span:nth-child(3) { width: 72%; }
.dv-term { place-items: stretch; }
.dv-term pre { position: relative; margin: 0; padding: 26px 24px; font: 400 .86rem/1.85 var(--f-mono); color: var(--stage-ink); white-space: pre; overflow: hidden; }
.dv-label .label-card { position: relative; width: min(340px, 80%); border-radius: 14px; padding: 18px; background: var(--stage-2); border: 1px solid var(--stage-line); display: grid; gap: 14px; box-shadow: 0 20px 40px -20px rgb(0 0 0 / .6); animation: float 6s var(--ease-drift) infinite alternate; }
@keyframes float { to { transform: translateY(-8px) rotate(-1deg); } }
.lc-title { font-weight: 600; font-size: .95rem; }
.lc-lines { display: grid; gap: 7px; }
.lc-lines i { height: 7px; border-radius: 4px; background: var(--stage-line); }
.lc-lines i:nth-child(2) { width: 82%; } .lc-lines i:nth-child(3) { width: 64%; }
.lc-by { display: block; height: 30px; overflow: hidden; border-top: 1px solid var(--stage-line); padding-top: 10px; box-sizing: content-box; }
.swap { display: grid; animation: swap 5s var(--ease-viscous) infinite; }
.swap span { height: 30px; display: flex; align-items: center; font: 500 .82rem var(--f-mono); color: var(--stage-muted); }
.swap span:last-child { color: var(--signal); }
@keyframes swap { 0%, 40% { transform: translateY(0); } 50%, 90% { transform: translateY(-30px); } 100% { transform: translateY(0); } }
.dots { position: relative; display: grid; grid-template-columns: repeat(10, 18px); gap: 14px; }
.dots i { width: 18px; height: 18px; border-radius: 50%; background: var(--stage-line); animation: dot 5s var(--ease-drift) infinite; }
.dots i:nth-child(3n) { animation-delay: .7s; } .dots i:nth-child(4n+1) { animation-delay: 1.9s; } .dots i:nth-child(5n+2) { animation-delay: 3.1s; } .dots i:nth-child(7n) { animation-delay: 2.4s; }
@keyframes dot { 0%, 70%, 100% { background: var(--stage-line); transform: scale(1); } 80%, 90% { background: var(--signal); transform: scale(1.15); } }

/* Process: scrubbed path */
.rail { position: relative; margin-top: 56px; }
.rail-svg { position: absolute; left: 0; right: 0; top: -10px; width: 100%; height: 120px; overflow: visible; }
.rail-track { fill: none; stroke: var(--line); stroke-width: 2; }
.rail-draw { fill: none; stroke: var(--signal-text); stroke-width: 3; stroke-linecap: round; }
.stops { position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 32px; }
.stop { position: relative; padding-right: 12px; }
.stop:nth-child(2) { padding-top: 34px; }
.pin { position: relative; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--bg); border: 2px solid var(--ink); font: 600 1.05rem/1 var(--f-mono); margin-bottom: 24px; transition: background-color var(--t-glide), border-color var(--t-glide), color var(--t-glide), transform var(--t-glide) var(--ease-springy); }
.stop.lit .pin { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); transform: rotate(-6deg); }
.stop .h3 { font-size: clamp(1.7rem, 2.7vw, 2.3rem); font-stretch: 114%; font-weight: 800; letter-spacing: -.035em; }
.stop .when { font-family: var(--f-mono); font-size: .84rem; color: var(--signal-text); margin: 8px 0 12px; }
.stop p:not(.when) { color: var(--ink-2); max-width: 34ch; }
.stop ul { display: grid; gap: 6px; margin-top: 4px; }
.stop ul li { color: var(--ink-2); padding-left: 18px; position: relative; font-size: .98rem; }
.stop ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--signal-text); }
.rail.four .stops { --n: 4; }
.rail.four .stop:nth-child(2), .rail.four .stop:nth-child(4) { padding-top: 34px; }

/* Cases: horizontal on desktop */
.hcases { position: relative; }
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.case { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; min-height: 340px; overflow: hidden; transition: transform var(--t-glide) var(--ease-damped), border-color var(--t-glide); }
.case:hover { border-color: var(--line-2); }
.case p { color: var(--ink-2); max-width: 44ch; }
.case-tag { align-self: flex-start; font-size: .8rem; font-weight: 600; color: var(--signal-text); padding: 5px 9px; border-radius: var(--r-chip); background: var(--signal-soft); }
.case-title { font-family: var(--f-display); font-stretch: 114%; font-weight: 800; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -.035em; }
.case-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.case-more i { transition: transform var(--t-glide) var(--ease-damped); }
.case:hover .case-more i { transform: translateX(5px); }
.case-lead { background: var(--stage); color: var(--stage-ink); border-color: var(--stage-line); }
.case-lead p { color: var(--stage-muted); }
.case-lead .case-tag { background: rgb(198 241 53 / .14); color: var(--signal); }
.case-lead .case-more { color: var(--signal); }
.case-lead::before { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgb(198 241 53 / .25), transparent 62%); pointer-events: none; }
.case-nums { background: var(--signal); border-color: transparent; color: var(--signal-ink); }
.case-nums .case-tag { background: rgb(16 18 21 / .1); color: var(--signal-ink); }
.case-nums .case-more { color: var(--signal-ink); }
.nums { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 30px; }
.nums span { display: grid; gap: 4px; font-size: .9rem; color: #2c3a08; max-width: 14ch; line-height: 1.3; }
.nums b { font-family: var(--f-display); font-stretch: 114%; font-weight: 800; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -.04em; color: var(--signal-ink); font-variant-numeric: tabular-nums; }
.case-ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: var(--bg-2); color: var(--ink); }
.case-lead .case-ico { background: rgb(255 255 255 / .06); color: var(--signal); }
.hcases.is-h { overflow: hidden; }
.hcases.is-h .cases { display: flex; width: max-content; gap: 20px; padding-right: var(--gut); }
.hcases.is-h .case { width: min(400px, 31vw); min-height: 440px; flex: none; }
.hprogress { display: none; height: 2px; margin-top: 28px; background: var(--line); border-radius: 2px; overflow: hidden; }
.hprogress span { display: block; height: 100%; background: var(--signal-text); transform-origin: left; transform: scaleX(0); }
.hcases.is-h .hprogress { display: block; }

/* Comparison */
.compare { position: relative; margin-top: 44px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 20px; font-size: .98rem; line-height: 1.45; }
.compare thead th { font-family: var(--f-display); font-stretch: 106%; font-weight: 700; font-size: 1.02rem; padding-top: 22px; padding-bottom: 16px; }
.compare tbody th { font-weight: 600; color: var(--muted); width: 17%; }
.compare thead th:first-child { width: 17%; }
.compare tbody tr > * { border-top: 1px solid var(--line); transition: background-color var(--t-glide); }
.compare tbody tr:hover > *:not(.us) { background: var(--bg-2); }
.compare td { color: var(--muted); }
.compare .us { background: var(--stage); color: var(--stage-ink); }
.compare td.us { color: var(--stage-ink); font-weight: 500; }
.compare tbody tr > .us { border-top-color: var(--stage-line); }
.compare thead .us { color: var(--signal); }
.compare thead .us::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); margin-right: 8px; vertical-align: 2px; }
.compare td.us { position: relative; }
.compare td.us::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--signal); transform: scaleY(var(--lit, 0)); transform-origin: top; transition: transform var(--t-settle) var(--ease-damped); }
.compare tr.lit td.us::after { --lit: 1; }

/* Founder */
.founder { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.founder-id { display: grid; gap: 6px; justify-items: start; position: sticky; top: 110px; }
.monogram { width: 148px; height: 148px; border-radius: 30px; display: grid; place-items: center; background: var(--stage); color: var(--signal); font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 3rem; letter-spacing: -.04em; margin-bottom: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.monogram::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent 0 70%, rgb(198 241 53 / .45) 85%, transparent 100%); animation: spin 7s linear infinite; }
.monogram::after { content: ""; position: absolute; inset: 2px; border-radius: 28px; background: var(--stage); }
.monogram span { position: relative; z-index: 1; }
@keyframes spin { to { transform: rotate(1turn); } }
.person { font-weight: 700; font-size: 1.15rem; }
.role { color: var(--muted); margin-bottom: 4px; }
.hand-line { font-weight: 600; margin-bottom: 10px; }
.founder-copy .lede { margin-top: 22px; max-width: 58ch; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.facts div { padding-top: 14px; border-top: 2px solid var(--ink); }
.facts strong { display: block; font-family: var(--f-display); font-stretch: 114%; font-weight: 800; font-size: clamp(2rem, 3.2vw, 2.7rem); line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.facts span { display: block; margin-top: 8px; font-size: .92rem; color: var(--muted); }
.work { display: grid; margin-top: 4px; }
.work li { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.work li p { color: var(--ink-2); font-size: .98rem; }
.links-row { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 24px; }

/* Founder band (wing pages) */
.band { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px 36px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.band .monogram { width: 96px; height: 96px; border-radius: 22px; font-size: 2rem; margin: 0; }
.band .monogram::after { border-radius: 20px; }
.band p { color: var(--ink-2); max-width: 60ch; }
.band .band-name { font-family: var(--f-display); font-stretch: 108%; font-weight: 750; font-size: 1.35rem; letter-spacing: -.02em; color: var(--ink); margin-bottom: 6px; }

/* Offer */
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 44px; align-items: stretch; }
.offer-card { position: relative; border-radius: var(--r); padding: clamp(26px, 3.4vw, 44px); display: grid; gap: 16px; align-content: start; overflow: hidden; }
.offer-card.stage .h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.offer-card.stage p { color: var(--stage-muted); position: relative; }
.offer-card.plain { background: var(--surface); border: 1px solid var(--line); }
.amt { position: relative; font-family: var(--f-display); font-stretch: 114%; font-weight: 800; font-size: clamp(3rem, 6vw, 4.8rem); line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 2px; }
.amt .cur { font-size: .52em; align-self: flex-start; margin-top: .12em; }
.amt .from, .amt .unit { font-family: var(--f-body); font-stretch: 100%; font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--stage-muted); }
.amt .from { margin-right: 10px; }
.amt .unit { margin-left: 12px; }
.plain .amt .from, .plain .amt .unit { color: var(--muted); }
.amt-sm { font-size: clamp(2rem, 3.2vw, 2.6rem); }
.offer-card .btn { justify-self: start; position: relative; }
.list { display: grid; gap: 12px; position: relative; }
.list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); }
.list li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 5px; background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101215' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.list b { color: var(--ink); }
.stage .list li { color: var(--stage-muted); }
.stage .list b { color: var(--stage-ink); }
.list-title { font-family: var(--f-display); font-stretch: 106%; font-weight: 700; font-size: 1.15rem; margin-bottom: 4px; }
.after { color: var(--muted); font-size: .95rem; }
.stage .after { color: var(--stage-muted); }

/* Two paths (agents) */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.path { position: relative; border-radius: var(--r); padding: clamp(24px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; overflow: hidden; }
.path .h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-stretch: 112%; font-weight: 800; letter-spacing: -.03em; }
.path p { color: var(--ink-2); }
.path-tag { font: 500 .8rem var(--f-mono); color: var(--signal-text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 9px 12px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--bg); font-size: .95rem; font-weight: 500; transition: border-color var(--t-glide), transform var(--t-glide) var(--ease-damped); }
.chips li:hover { border-color: var(--signal-text); transform: translateY(-2px); }
.path.alt { background: var(--signal-soft); border-color: transparent; }
.path.alt .chips li { background: var(--surface); border-color: transparent; }

/* Build list (software) */
.builds { margin-top: 44px; border-top: 1px solid var(--line); }
.build { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px 36px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); position: relative; }
.build .ico-lg { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: var(--stage); color: var(--signal); transition: transform var(--t-glide) var(--ease-springy); }
.build:hover .ico-lg { transform: rotate(-8deg) scale(1.06); }
.build h3 { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.6rem, 2.8vw, 2.4rem); letter-spacing: -.03em; line-height: 1.05; }
.build p { color: var(--ink-2); }

/* Work page cases */
.wcase { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); align-items: start; }
.wcase:first-of-type { border-top: 0; }
.wcase-head { display: grid; gap: 14px; justify-items: start; position: sticky; top: 110px; }
.wcase-head .case-title { font-size: clamp(2.4rem, 4.4vw, 3.8rem); }
.wcase-body { display: grid; gap: 0; }
.wrow { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.wrow:first-child { border-top: 0; padding-top: 4px; }
.wrow dt { font-weight: 600; color: var(--muted); font-size: .95rem; }
.wrow dd { margin: 0; color: var(--ink-2); }
.wrow .nums span { color: var(--muted); }
.wrow .nums b { color: var(--ink); }
.wcase-vis { margin-top: 22px; border-radius: var(--r); height: 220px; }

/* Offer page bits */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.pair > div { border-radius: var(--r); padding: 28px; border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; }
.pair > .stage { border: 0; background: var(--stage); color: var(--stage-ink); }
.pair h3 { font-size: 1.15rem; margin-bottom: 18px; position: relative; }
.pair ol { display: grid; position: relative; }
.pair li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.pair .stage li { border-top-color: var(--stage-line); }
.pair time { font-family: var(--f-mono); font-size: .86rem; color: var(--muted); padding-top: 2px; }
.pair .stage time { color: var(--signal); }
.pair li span { color: var(--ink-2); }
.pair .stage li span { color: var(--stage-ink); }
.why { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.why li { position: relative; grid-column: span 2; padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; overflow: hidden; }
.why li i { font-size: 24px; color: var(--signal-text); }
.why li:nth-child(4), .why li:nth-child(5) { grid-column: span 3; }
.why b { font-family: var(--f-display); font-stretch: 106%; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.25; }
.why span { color: var(--muted); }
.why.four li { grid-column: span 3; }
.effort { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.effort div { padding: 0; display: grid; gap: 6px; align-content: start; }
.effort strong { font-family: var(--f-display); font-stretch: 114%; font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -.035em; }
.effort span { color: var(--ink-2); font-size: .96rem; }
.differ { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 44px; border-top: 1px solid var(--line); }
.differ > div { padding: 24px 24px 0 0; display: grid; gap: 8px; align-content: start; }
.differ > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.them { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.us-line { font-family: var(--f-display); font-stretch: 106%; font-weight: 700; font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 44px; counter-reset: s3; }
.steps3 li { counter-increment: s3; padding-top: 20px; border-top: 2px solid var(--ink); }
.steps3 li::before { content: counter(s3); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--signal); color: var(--signal-ink); font: 600 .9rem/1 var(--f-mono); margin-bottom: 14px; }
.steps3 h3 { font-size: 1.25rem; margin-bottom: 8px; }
.steps3 p { color: var(--ink-2); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.faq-side { position: sticky; top: 110px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-weight: 600; font-size: 1.12rem; transition: color var(--t-glide); }
.faq summary:hover { color: var(--signal-text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-ctl); border: 1px solid var(--line-2); color: var(--ink); transition: transform var(--t-glide) var(--ease-damped), background-color var(--t-glide), border-color var(--t-glide); }
.faq details[open] summary i { transform: rotate(45deg); background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.ans { padding: 0 56px 24px 0; color: var(--ink-2); max-width: 64ch; overflow: hidden; }

/* Closing */
.closing { position: relative; margin-top: clamp(80px, 11vw, 150px); background: var(--stage); color: var(--stage-ink); overflow: hidden; isolation: isolate; }
.closing::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: conic-gradient(from var(--a, 0deg) at 70% 120%, transparent 0deg, rgb(198 241 53 / .28) 40deg, transparent 90deg, transparent 360deg); animation: sweep 14s linear infinite; filter: blur(40px); }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes sweep { to { --a: 360deg; } }
.closing::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgb(255 255 255 / .07) 1px, transparent 1.3px); background-size: 22px 22px; mask-image: radial-gradient(ellipse 70% 100% at 50% 100%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 100%, #000, transparent 75%); }
.closing-inner { padding-top: clamp(80px, 11vw, 140px); padding-bottom: clamp(80px, 11vw, 140px); display: grid; gap: 26px; justify-items: start; }
.closing-h { max-width: 15ch; font-size: clamp(2.5rem, 5.8vw, 5.4rem); }
.closing-h em { color: var(--signal); }
.closing-h em { background: none; }
.closing .lede { color: var(--stage-muted); }

/* Footer */
.site-foot { background: var(--stage); color: var(--stage-muted); border-top: 1px solid var(--stage-line); }
.site-foot .brand { color: var(--stage-ink); }
.site-foot .mark { background: var(--stage-ink); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; padding-top: 44px; padding-bottom: 36px; align-items: start; }
.foot-brand p { margin-top: 12px; max-width: 34ch; font-size: .95rem; }
.foot-links { display: grid; grid-template-columns: repeat(4, auto); gap: 10px 32px; }
.foot-links a { text-decoration: none; font-size: .95rem; transition: color var(--t-glide); }
.foot-links a:hover { color: var(--signal); }
.copy { grid-column: 1 / -1; font-size: .88rem; padding-top: 22px; border-top: 1px solid var(--stage-line); }

/* Responsive */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu { display: block; }
  .head-actions { margin-left: auto; }
}
@media (max-width: 960px) {
  .hero-grid, .doors-grid, .founder, .faq-wrap, .offer, .paths, .pair, .wcase { grid-template-columns: 1fr; }
  .stage.console, .term { max-width: 600px; }
  .doors-nav, .founder-id, .faq-side, .wcase-head { position: static; }
  .door-list { display: none; }
  .doors-cta { display: none; }
  .cases { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .why li, .why li:nth-child(4), .why li:nth-child(5), .why.four li { grid-column: auto; }
  .build { grid-template-columns: 56px 1fr; }
  .build p { grid-column: 2; }
  .band { grid-template-columns: auto 1fr; }
  .band .btn, .band .link { grid-column: 1 / -1; justify-self: start; }
  .compare { overflow: visible; border: 0; background: transparent; border-radius: 0; }
  .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto !important; }
  .compare thead { display: none; }
  .compare tbody tr { border: 0; border-radius: 0; background: transparent; margin-bottom: 22px; }
  .compare tbody tr > * { border-top: 0 !important; }
  .compare tbody th { padding: 0 0 8px; color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; }
  .compare td { padding: 6px 0; display: grid; grid-template-columns: 1fr; gap: 2px; }
  .compare td::before { content: attr(data-col); font-weight: 600; color: var(--ink); font-size: .85rem; }
  .compare td.us { margin: 4px 0 8px; padding: 12px; border-radius: 12px; display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; }
  .compare td.us .ok { order: -1; flex: none; }
  .compare td.us::before { color: var(--signal); flex: 1 1 calc(100% - 40px); }
  .compare td:last-child { padding-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-links { grid-template-columns: repeat(2, auto); justify-content: start; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .head-cta { display: none; }
  .pain-item { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .rail-svg { display: none; }
  .stops, .rail.four .stops { grid-template-columns: 1fr; gap: 28px; }
  .stop, .rail.four .stop { display: grid; grid-template-columns: 54px 1fr; column-gap: 18px; padding-top: 0 !important; }
  .stop .pin { grid-row: span 4; margin-bottom: 0; }
  .cred-nums { width: 100%; justify-content: space-between; gap: 14px; }
  .cred-nums b { font-size: 1.8rem; }
  .logo { transform: scale(.85); transform-origin: left center; }
  .facts, .steps3, .differ, .why { grid-template-columns: 1fr; }
  .effort { gap: 12px; }
  .effort strong { font-size: 1.45rem; }
  .effort span { font-size: .88rem; }
  .facts strong { font-size: 2rem; }
  .differ > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 18px; }
  .work li, .wrow { grid-template-columns: 1fr; gap: 8px; }
  .ans { padding-right: 0; }
  .console { padding: 14px; }
  .flow { margin-left: -6px; margin-right: -6px; }
  .dv { height: 210px; }
  .node { min-width: 0; padding: 10px 8px; font-size: .72rem; }
  .node i { font-size: 17px; }
  .wire { min-width: 10px; }
  .dept-row { padding: 0 10px; }
  .dots { grid-template-columns: repeat(8, 16px); gap: 12px; }
  .dots i { width: 16px; height: 16px; }
  .dots i:nth-child(n+33) { display: none; }
  .nums { grid-template-columns: 1fr 1fr 1fr; gap: 8px 14px; }
  .nums span { font-size: .8rem; }
  .pair li { grid-template-columns: 78px 1fr; }
  .hero-sub strong { font-size: 2rem; }
  .case { min-height: 0; }
  .band { grid-template-columns: 1fr; }
  .band .monogram { width: 72px; height: 72px; font-size: 1.5rem; border-radius: 18px; }
  .foot-links { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  .glow { display: none; }
}

/* Wing heroes */
.dept-hero { padding: 20px; }
.dept-head { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dept-log { position: relative; display: grid; gap: 2px; margin-top: 6px; border-top: 1px solid var(--stage-line); padding-top: 10px; }
.dept-log li { display: grid; grid-template-columns: 82px 1fr; gap: 10px; font-size: .86rem; padding: 5px 0; }
.dept-log time { font: 400 .76rem var(--f-mono); color: var(--stage-muted); padding-top: 2px; }
.cases.one { grid-template-columns: 1fr; }
.cases.one .case { min-height: 0; }
.soft-hero { display: grid; gap: 14px; }
.soft-hero .term pre { min-height: 236px; }
.mini-dash { padding: 18px 20px; display: grid; gap: 14px; }
.mini-dash .bars { height: 90px; margin-top: 0; }
.mini-dash .dash-top { font-size: .82rem; }
.label-hero { padding: 26px; display: grid; gap: 18px; place-items: center; min-height: 380px; }
.label-hero .label-card { width: min(380px, 100%); }
.label-stack { position: relative; width: min(380px, 100%); }
.label-stack .ghost { position: absolute; inset: 0; transform: translate(14px, 14px) rotate(2deg); border-radius: 14px; border: 1px dashed var(--stage-line); }
.page-head { padding: clamp(40px, 6vw, 84px) 0 clamp(24px, 3vw, 40px); position: relative; overflow: clip; isolation: isolate; }
.page-head .lede { margin-top: 22px; }
.ticker { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.ticker a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 500; transition: border-color var(--t-glide), transform var(--t-glide) var(--ease-damped); }
.ticker a:hover { border-color: var(--signal-text); transform: translateY(-2px); }
.ticker i { color: var(--signal-text); }
.display.long { font-size: clamp(2.5rem, 5vw, 4.6rem); }
html.js .typed .term-line { animation: line-in .5s var(--ease-damped) both; }
html.js .typed .term-line:nth-child(1) { animation-delay: .5s; } html.js .typed .term-line:nth-child(2) { animation-delay: .75s; }
html.js .typed .term-line:nth-child(3) { animation-delay: 1s; } html.js .typed .term-line:nth-child(4) { animation-delay: 1.25s; }
html.js .typed .term-line:nth-child(5) { animation-delay: 1.5s; } html.js .typed .term-line:nth-child(6) { animation-delay: 1.75s; }
html.js .typed .term-line:nth-child(7) { animation-delay: 1.9s; } html.js .typed .term-line:nth-child(8) { animation-delay: 2s; }
html.js .typed .term-line:nth-child(9) { animation-delay: 2.15s; } html.js .typed .term-line:nth-child(10) { animation-delay: 2.3s; }
html.js .typed .term-line:nth-child(11) { animation-delay: 2.45s; }
@keyframes line-in { from { opacity: 0; transform: translateX(-8px); } }
.tools-row { margin-top: 8px; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; }
.tool { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--surface); font-weight: 600; transition: transform var(--t-glide) var(--ease-damped), border-color var(--t-glide); }
.tool:hover { transform: translateY(-2px); border-color: var(--line-2); }
.ico { width: 22px; height: 22px; background: var(--ink); -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.ico-claude { --src: url("tools/claude.svg"); background: #d97757; }
.ico-openai { --src: url("tools/openai.svg"); }
.ico-n8n { --src: url("tools/n8n.svg"); background: #ea4b71; }
.hcases.is-h .nums { gap: 8px 20px; }
.hcases.is-h .nums b { font-size: 2.1rem; }

/* ==========================================================================
   Round 2
   ========================================================================== */

/* Headline highlight: a thin signal underline, text keeps the page ink (readable in both themes) */
.display em {
  color: inherit; padding: 0 0 .06em;
  background-image: linear-gradient(var(--signal), var(--signal)); background-repeat: no-repeat;
  background-position: 0 100%; background-size: calc(var(--mark, 1) * 100%) .11em;
}
.closing-h em { background: none; color: var(--signal); padding: 0; }

/* Header: solid, blurred surface once the page has scrolled 80px */
.site-head { transition: box-shadow var(--t-glide); }
.site-head.solid::before {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  mask-image: none; -webkit-mask-image: none; inset: 0;
}
.site-head.solid::after { display: none; }
.site-head.solid { box-shadow: 0 1px 0 var(--line); }
.head-sentinel { position: absolute; top: 80px; left: 0; width: 1px; height: 1px; pointer-events: none; }

/* Phone header: small visible call button */
@media (max-width: 760px) {
  .head-cta { display: inline-flex; min-height: 36px; padding: 0 12px; font-size: .84rem; }
  .head-row { gap: 10px; }
  .head-actions { gap: 6px; }
  .theme-btn, .menu summary { width: 36px; height: 36px; }
  .brand { font-size: 1rem; }
  .term .cm { display: none; }
}

/* Founder signature: a large drawn monogram, with a slot for a portrait */
.sig { position: relative; width: 100%; max-width: 340px; display: grid; gap: 14px; margin-bottom: 18px; }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }
.portrait + .sig-svg { margin-top: -64px; position: relative; }
.sig-svg { width: 100%; height: auto; overflow: visible; }
.sig-svg text { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 236px; letter-spacing: -14px; }
.sig-o { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 2200; stroke-dashoffset: var(--draw, 0); opacity: .9; }
.sig-f { fill: var(--signal); }
.sig-rule { display: block; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.sig-rule span { position: absolute; inset: 0; background: var(--signal-text); transform-origin: left; transform: scaleX(var(--rule, 1)); }
.sig-cap { font-size: .95rem; color: var(--muted); }
.sig-cap b { color: var(--ink); }
.sig-sm { width: 120px; max-width: none; margin: 0; }
.sig-sm .portrait { aspect-ratio: 1; border-radius: 16px; }
.sig-sm .portrait + .sig-svg { margin-top: -26px; }
@media (max-width: 760px) { .sig { max-width: 260px; } .sig-sm { width: 96px; } }

/* Agencies hero: white-label flow */
.wl { padding: 20px; }
.wl .flow { margin: 18px 0 8px; }
.wl-log { position: relative; display: grid; gap: 8px; border-top: 1px solid var(--stage-line); padding-top: 14px; }
.wl-log li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; font-size: .9rem; color: var(--stage-muted); }
.wl-log b { color: var(--stage-ink); font-weight: 600; }
.wl-n { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font: 600 .75rem/1 var(--f-mono); background: rgb(198 241 53 / .14); color: var(--signal); }
.wl-log li.on .wl-n { background: var(--signal); color: var(--signal-ink); }

/* Giant word behind wing heroes */
.giant {
  position: absolute; left: -2vw; bottom: -.12em; white-space: nowrap; pointer-events: none;
  font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: clamp(7rem, 22vw, 22rem); line-height: .8; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.2px color-mix(in srgb, var(--ink) 14%, transparent);
}
@media (max-width: 760px) { .giant { font-size: 9rem; bottom: auto; top: 30px; } }

/* Kinetic band */
.kinetic { position: relative; padding: clamp(56px, 8vw, 110px) 0; overflow: hidden; border-bottom: 1px solid var(--line); }
.k-row { display: flex; align-items: center; gap: .45em; white-space: nowrap; width: max-content; font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: clamp(3.4rem, 9vw, 9rem); line-height: 1; letter-spacing: -.045em; will-change: transform; }
.k-row + .k-row { margin-top: .12em; }
.k-row span { color: transparent; -webkit-text-stroke: 1.5px var(--line-2); transition: color var(--t-settle), -webkit-text-stroke-color var(--t-settle); }
.k-row span.k-on { color: var(--ink); -webkit-text-stroke-color: var(--ink); }
.k-row span.k-hi { color: var(--signal-ink); -webkit-text-stroke-color: transparent; background: var(--signal); padding: 0 .12em; border-radius: .08em; }
.k-row i { width: .22em; height: .22em; border-radius: .05em; background: var(--signal); flex: none; transform: rotate(45deg); }
.k-row.r2 { margin-left: -30vw; }
.k-cap { margin-top: 28px; color: var(--muted); max-width: 52ch; }

/* Doors: cards stack as you scroll on desktop */
@media (min-width: 961px) {
  .door-cards { gap: 40px; padding-bottom: 40px; }
  .door { position: sticky; top: calc(96px + var(--i, 0) * 18px); box-shadow: var(--shadow); }
  .door::before { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: var(--dim, 0); pointer-events: none; z-index: 2; border-radius: inherit; }
}

/* Comparison: our column fills as the table scrolls in */
.compare td.us { background: linear-gradient(rgb(198 241 53 / .16), rgb(198 241 53 / .16)) no-repeat top left / 100% calc(var(--f, 1) * 100%), var(--stage); }
.compare td.us .ok { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; border-radius: 5px; background: var(--signal); color: var(--signal-ink); font-size: 11px; vertical-align: -3px; transform: scale(var(--f, 1)); transition: transform var(--t-glide) var(--ease-springy); }
.compare thead th.us { position: relative; }
.compare thead th.us::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 8px; height: 2px; background: var(--signal); transform-origin: left; transform: scaleX(var(--hp, 1)); }

/* Founder facts draw in on a rule */
.facts div { border-top: 0; position: relative; }
.facts div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); transform-origin: left; transform: scaleX(var(--rule, 1)); }
.facts div::after { content: ""; position: absolute; left: 0; top: -3px; width: 8px; height: 8px; border-radius: 2px; background: var(--signal); transform: translateX(calc(var(--rule, 1) * (100cqw - 8px))); }
.facts div { container-type: inline-size; }

/* FAQ items reveal with a line */
.faq details { border-bottom: 0; position: relative; }
.faq details::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: left; transform: scaleX(var(--ln, 1)); transition: transform 900ms var(--ease-damped); transition-delay: var(--d, 0ms); }
.faq details::before { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--signal-text); transform-origin: left; transform: scaleX(0); transition: transform 500ms var(--ease-damped); }
.faq details[open]::before, .faq details:hover::before { transform: scaleX(1); }
.faq summary > span { display: inline-block; transform: translateY(var(--sy, 0)); opacity: var(--so, 1); transition: transform 800ms var(--ease-damped), opacity 800ms; transition-delay: var(--d, 0ms); }
.faq.armed details { --ln: 0; --sy: 14px; --so: 0; }
.faq.armed details.in { --ln: 1; --sy: 0; --so: 1; }

/* Build rows react to scroll */
.builds { border-top: 0; }
.build { border-bottom: 0; }
.build::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: left; transform: scaleX(var(--ln, 1)); }
.build::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.build + .build::before { display: none; }
.build h3 { transform: translateX(calc((1 - var(--p, 1)) * 60px)); }
.build .ico-lg { transform: rotate(calc((1 - var(--p, 1)) * -90deg)) scale(calc(.6 + var(--p, 1) * .4)); }
.build p { opacity: calc(.35 + var(--p, 1) * .65); }
.build:hover .ico-lg { transform: rotate(-8deg) scale(1.06); }
.build .big-n { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line-2); opacity: calc(var(--p, 1) * .8); pointer-events: none; z-index: -1; }
.builds { position: relative; isolation: isolate; }
@media (max-width: 760px) { .build .big-n { font-size: 4rem; } }

/* Page-to-page: a curtain wipe */
::view-transition-old(root) { animation: vt-old 420ms var(--ease-viscous) both; }
::view-transition-new(root) { animation: vt-new 640ms var(--ease-damped) both; }
@keyframes vt-old { to { opacity: .4; transform: scale(.97); filter: blur(3px); } }
@keyframes vt-new { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  .faq.armed details { --ln: 1; --sy: 0; --so: 1; }
}
.display em { padding-bottom: .12em; background-position: 0 100%; }
.giant { bottom: 0; font-size: clamp(6rem, 17vw, 17rem); line-height: .74; }

/* ==========================================================================
   Round 3
   ========================================================================== */
[hidden] { display: none !important; }

/* Header: near-opaque once scrolled, so no section text shows through */
.site-head.solid { background: var(--bg); }
.site-head.solid::before { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Founder plate: a dark engraved card with the HP monogram */
.sig:not(.sig-sm) {
  max-width: 340px; aspect-ratio: 4 / 5; padding: 22px 22px 20px; gap: 0;
  grid-template-rows: auto 1fr auto auto; align-content: stretch;
  background: var(--stage); color: var(--stage-ink); border-radius: var(--r);
  box-shadow: var(--shadow-stage); overflow: hidden; isolation: isolate;
}
.sig:not(.sig-sm)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--stage-line) 1px, transparent 1px), linear-gradient(90deg, var(--stage-line) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px; opacity: .55;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(120% 80% at 50% 45%, #000 20%, transparent 75%);
}
.sig:not(.sig-sm)::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgb(198 241 53 / .04) 70%, rgb(198 241 53 / .09) 100%);
  border-bottom: 1px solid rgb(198 241 53 / .16); transform: translateY(-100%);
}
@media (prefers-reduced-motion: no-preference) {
  .sig:not(.sig-sm)::after { animation: plate-scan 9s var(--ease-drift) infinite; }
}
@keyframes plate-scan { 0%, 30% { transform: translateY(-100%); } 70%, 100% { transform: translateY(260%); } }
.sig-top { display: flex; justify-content: space-between; gap: 12px; font: 500 .72rem/1.2 var(--f-mono); letter-spacing: .02em; color: var(--stage-muted); }
.sig-top span:last-child { color: var(--signal); }
.sig:not(.sig-sm) .sig-svg { align-self: center; margin: 8px 0 14px; }
.sig:not(.sig-sm) .sig-o { stroke: var(--stage-ink); opacity: .85; }
.sig:not(.sig-sm) .sig-rule { background: var(--stage-line); margin-bottom: 12px; }
.sig:not(.sig-sm) .sig-rule span { background: var(--signal); }
.sig:not(.sig-sm) .sig-cap { color: var(--stage-muted); font-size: .9rem; }
.sig:not(.sig-sm) .sig-cap b { color: var(--stage-ink); }
.sig.has-photo .portrait { border-radius: 12px; box-shadow: none; }
.portrait[hidden] + .sig-svg, .portrait[hidden] ~ .sig-svg { margin-top: 0; }
.sig.has-photo .sig-svg { margin-top: -54px; }

/* Small plate inside wing founder bands */
.sig-sm { aspect-ratio: 1; display: grid; place-items: center; padding: 16px 14px 12px; border-radius: 16px; background: var(--stage); box-shadow: var(--shadow-stage); position: relative; overflow: hidden; isolation: isolate; }
.sig-sm::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--stage-line) 1px, transparent 1px), linear-gradient(90deg, var(--stage-line) 1px, transparent 1px); background-size: 14px 14px; opacity: .45; }
.sig-sm .sig-o { stroke: var(--stage-ink); stroke-width: 3; }
.sig-sm.has-photo { padding: 0; }
.sig-sm.has-photo .portrait { width: 100%; height: 100%; border-radius: 0; }
.sig-sm.has-photo .sig-svg { position: absolute; left: 10px; right: 10px; bottom: 6px; width: auto; margin: 0; }
@media (max-width: 760px) { .sig:not(.sig-sm) { max-width: 300px; } }
.sig-sm { width: 132px; aspect-ratio: 4 / 5; grid-template-rows: 1fr auto; place-items: stretch; padding: 14px 12px 12px; gap: 0; }
.sig-sm .sig-svg { align-self: center; }
.sig-mini { display: flex; justify-content: space-between; border-top: 1px solid var(--stage-line); padding-top: 8px; font: 500 .66rem/1 var(--f-mono); color: var(--stage-muted); }
.sig-mini span:last-child { color: var(--signal); }
.sig-sm::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 45%; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, transparent, rgb(198 241 53 / .08)); border-bottom: 1px solid rgb(198 241 53 / .18); transform: translateY(-100%); }
@media (prefers-reduced-motion: no-preference) { .sig-sm::after { animation: plate-scan 9s var(--ease-drift) infinite; } }
.sig-sm.has-photo .sig-mini { display: none; }
@media (max-width: 760px) { .sig-sm { width: 108px; } }
/* Plates: replace the grid with a soft bloom behind the monogram and an inner hairline */
.sig:not(.sig-sm)::before, .sig-sm::before {
  background-image: radial-gradient(70% 55% at 50% 52%, rgb(198 241 53 / .13), transparent 70%);
  background-size: auto; opacity: 1; -webkit-mask-image: none; mask-image: none;
  inset: 6px; border: 1px solid var(--stage-line); border-radius: calc(var(--r) - 6px);
}
.sig-sm::before { inset: 4px; border-radius: 12px; }
.creds { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 18px 0 26px; padding: 0; }
.creds li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: 999px; font-weight: 600; font-size: .95rem; }
.creds i { color: var(--accent-ink, currentColor); }
.stack-row { margin: 18px 0 24px; }
.record-intro { margin: 56px 0 8px; }
.wcase-head .logo { display: block; margin: 10px 0 4px; }
.record-also { margin-top: 18px; }
.cred-work { padding-top: 8px; }
.win { display: block; font-weight: 650; color: var(--ink); }
.how { display: block; margin-top: 3px; font-size: .88em; color: var(--muted); }
.brand-name::after { content: "."; color: var(--signal-text, var(--signal)); margin-left: 1px; }
.site-foot .brand-name::after { color: var(--signal); }
.res-body .link { display: inline-flex; margin-top: 10px; }
.build.res-stack { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
@media (max-width: 960px) { .res-body { grid-column: 2; } .build.res-stack { grid-template-columns: 1fr; gap: 8px; } .build.res-stack p { grid-column: 1; } }
.tools-note { margin-top: 12px; color: var(--ink-2); max-width: 60ch; font-size: .95rem; }
