/* BrokerWrite site — "the puzzle, solved". Builds on hero.css tokens. */
:root { --wrap: 1328px; --blue: var(--electric); --pc-sw: 1.5; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { overflow-x: clip; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--inverse); color: var(--on-inverse); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 12px; }
.wrap { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.sec { position: relative; padding-block: 96px 104px; background: var(--paper); overflow-x: clip; }
.sec--mist { background: var(--mist); }
.anchor { position: absolute; left: 0; width: 1px; height: 1px; }
.grow { flex: 1; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.small { font-size: 12px; }
.muted { color: var(--graphite); }
.blue { color: var(--electric); }
.blue-2 { color: #7fa0ff; }
.fine { font-family: var(--mono); font-size: 11px; line-height: 16px; color: var(--graphite); }
.link { color: var(--electric); font-weight: 500; font-size: 15px; display: inline-flex; gap: 6px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.h2 { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; margin: 20px 0 0; text-wrap: balance; }
.h2 .soft { display: block; color: var(--slate); }
.lede { font-size: 17px; line-height: 1.6; }
.lede b { color: var(--ink); font-weight: 500; }
.lede--ink { color: var(--ink); font-weight: 500; font-size: 18px; }
.lede--sm { font-size: 16px; margin-top: 10px; }
.eyebrow--ink { letter-spacing: 0.1em; }
.meta { font-size: 11.5px; }
.pill { height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; background: var(--ice); color: var(--electric); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.tile { width: 32px; height: 32px; flex: none; border-radius: 8px; background: var(--surface); border: 1px solid var(--rule); display: grid; place-items: center; color: var(--electric); }
.tile--sm { width: 28px; height: 28px; background: var(--mist); color: var(--ink); }
.btn--blue { background: var(--electric); color: #fff; }
.btn--blue:hover { background: var(--electric-deep); }
.btn--blue:hover .arr { transform: translate(2px, -2px); }
.caption { margin: 28px 0 0; font-family: var(--mono); font-size: 12px; color: var(--graphite); letter-spacing: 0.02em; }

/* section header: headline left, lede right */
.shead { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 52px; }
.shead > :first-child { max-width: 860px; }
.shead__side { width: 400px; flex: none; display: grid; gap: 12px; padding-bottom: 4px; }
.shead__side .lede { margin: 0; }
.shead__side .meta { margin-top: 2px; }

/* ---------- Pieces ---------- */
.board-wrap { position: relative; width: 100%; }
.board-wrap.is-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.board { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.pc { position: absolute; display: block; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: var(--ink); }
.pc__shape { position: absolute; overflow: visible; pointer-events: none; }
.pc__shape path { fill: var(--pc-fill, var(--surface)); stroke: var(--pc-stroke, var(--rule-2)); stroke-width: var(--pc-sw); stroke-linejoin: round; transition: fill 260ms ease, stroke 260ms ease; }
.pc__c { position: absolute; inset: 0; }
.pc--white { --pc-fill: var(--surface); --pc-stroke: var(--rule-2); }
.pc--blue { --pc-fill: var(--electric); --pc-stroke: #fff; --pc-sw: 2; color: #fff; }
.pc--core { --pc-fill: var(--electric); --pc-stroke: var(--electric); color: #fff; }
.pc--deep { --pc-fill: var(--electric-deep); --pc-stroke: #fff; --pc-sw: 2; color: #fff; }
.pc--ice { --pc-fill: var(--ice); --pc-stroke: var(--electric); --pc-sw: 1.6; }
.pc--ice .pc__shape path { stroke-dasharray: 6 5; }
.pc--pale { --pc-fill: var(--blue-pale); --pc-stroke: var(--blue-pale-line); --pc-sw: 1.2; }
.pc--shadow { --pc-fill: #d5ddf7; --pc-stroke: transparent; pointer-events: none; }
button.pc { cursor: pointer; }
.pc:focus-visible { outline: none; }
.pc:focus-visible .pc__shape path { stroke: var(--ink); stroke-width: 2.5; }
.pc.is-snap .pc__shape path { animation: snap 700ms var(--ease-out); }
@keyframes snap { 0% { filter: brightness(1.35) drop-shadow(0 0 0 rgba(31,75,255,0.6)); } 100% { filter: none; } }
.pc .ic { display: block; }
.pc-idx { position: absolute; left: 14px; top: 12px; font-family: var(--mono); font-size: 10.5px; line-height: 14px; opacity: 0.6; }

/* centred icon + name (module-style) */
.pc-mod { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 28px 24px 18px; text-align: center; }
.pc-mod__n { font-size: 13px; font-weight: 500; line-height: 16px; }
/* icon + word stacked small (site puzzle) */
.pc-cell { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.pc-cell__w { font-size: 13.5px; font-weight: 500; }
.pc-cell--logos { gap: 9px; }
.pc-cell--top { bottom: 22px; }
.pc-cell--bot { top: 24px; }
.pc-cell .vlogo { opacity: 0.85; }
.pc--blue .ic, .pc--deep .ic, .pc--core .ic { color: #fff; }
.pc--white .ic { color: var(--electric); }


/* ---------- HERO (sticky 3D scene) ---------- */
.scene { position: relative; height: 400vh; background: var(--paper); }
.sticky { position: sticky; top: 0; height: 100vh; min-height: 760px; overflow: hidden; }
.stage { left: 33%; }
.css3d { position: absolute; inset: 0; pointer-events: none; }
.copy { position: absolute; z-index: 5; left: max(var(--gutter), calc(50% - 664px)); width: 560px; pointer-events: none; will-change: opacity, transform; }
.copy > * { pointer-events: auto; }
.copy--hero { top: 50%; width: 640px; transform: translateY(-50%); }
.copy--hero .eyebrow { margin-bottom: 26px; }
.copy--hero .display { font-size: clamp(48px, 5.3vw, 80px); }
.copy--hero .tagline { margin-top: 30px; }
.copy--hero .lede { margin-top: 18px; font-size: 17.5px; max-width: 30em; }
.copy--hero .btns { margin-top: 34px; }
.copy--ch { top: 50%; transform: translateY(-50%); }
.copy--ch h2 { font-size: clamp(40px, 3.9vw, 56px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; margin: 20px 0 0; text-wrap: balance; }
.copy--ch h2 .soft { color: var(--slate); }
.copy--ch p { font-size: 18px; line-height: 1.6; color: var(--graphite); margin: 22px 0 0; max-width: 28em; }
.copy--ch .btn { margin-top: 28px; }
.misfit-tag { position: absolute; left: 0; top: 0; z-index: 6; display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--surface); border: 1px dashed var(--rule-2); color: var(--graphite); font-size: 13px; font-weight: 500; white-space: nowrap; box-shadow: var(--shadow-card); will-change: transform, opacity; opacity: 0; }
.misfit-tag .ic { color: var(--slate); }
.hero__meta { position: absolute; z-index: 5; left: max(var(--gutter), calc(50% - 664px)); bottom: 34px; }
.scrollcue { position: absolute; z-index: 5; right: max(var(--gutter), calc(50% - 664px)); bottom: 30px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--graphite); }
.scrollcue span { width: 1px; height: 28px; background: linear-gradient(var(--electric), transparent); animation: cue 1.8s var(--ease-io) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
/* hidden until the 3D hero places it (the three.js import can land well after first paint) */
.stream { position: absolute; z-index: 6; left: 0; top: 0; width: 284px; will-change: transform, opacity; opacity: 0; }
.stream #log { min-height: 132px; }
.label.ltag-wrap { letter-spacing: 0; }
.tip { position: fixed; z-index: 70; left: 0; top: 0; pointer-events: none; opacity: 0; transform: translate(-9999px, 0); background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow-card); transition: opacity 140ms ease; }
.tip.on { opacity: 1; }
.surface { width: 1080px; height: 672px; background: var(--surface-glass); border: 2px solid #dfe4ee; border-radius: 26px; overflow: hidden; font-family: var(--sans); color: var(--ink); }
.surface__bar { display: flex; align-items: center; gap: 18px; height: 104px; padding: 0 40px; border-bottom: 2px solid var(--rule); }
.surface__logo { width: 52px; height: 52px; border-radius: 14px; background: var(--inverse); display: grid; place-items: center; }
.surface__logo i { width: 18px; height: 18px; border-radius: 4px; background: var(--surface); }
.surface__brand { font-weight: 600; font-size: 34px; letter-spacing: -0.025em; }
.surface__icons { margin-left: auto; display: flex; gap: 22px; color: var(--graphite); }
.surface__main { display: grid; grid-template-columns: 1.6fr 1fr; height: calc(100% - 104px); }
.surface__pos { padding: 40px; }
.surface__pnl { font-size: 104px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.surface__chips { display: flex; gap: 14px; margin-top: 22px; }
.schip { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border-radius: 14px; background: var(--ice); color: var(--electric-deep); font-size: 26px; font-weight: 500; }
.schip--ok { background: var(--fill-ice); color: #08744f; }
.surface__chart { display: block; margin-top: 26px; }
.surface__ticket { padding: 40px 40px 40px 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; }
.sbtn { height: 108px; border-radius: 22px; border: 3px solid var(--rule-2); display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 36px; font-weight: 500; }
.sbtn--buy { background: var(--electric); border-color: var(--electric); color: #fff; }

/* ---------- How it fits ---------- */
.fits { display: grid; grid-template-columns: 520px 1fr; gap: 40px; align-items: center; }
.fits__copy .lede { margin-top: 22px; max-width: 26em; }
.contract { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px 0 10px; margin-top: 28px; border-radius: 12px; background: var(--surface); border: 1px solid var(--rule); font-size: 15px; font-weight: 500; }
.contract__v { height: 30px; display: grid; place-items: center; padding: 0 9px; border-radius: 7px; background: var(--electric); color: #fff; font-family: var(--mono); font-size: 13px; }
.fits__copy .meta { margin-top: 14px; }
.fits__art { position: relative; display: flex; align-items: center; gap: 12px; }
.fits__art .board-wrap { max-width: 680px; }
.tiers { position: relative; flex: none; width: 150px; align-self: stretch; }
.tier { position: absolute; left: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; white-space: nowrap; transform: translateY(-50%); transition: opacity 400ms ease, transform 500ms var(--ease-out); }
.tier__ic { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--rule); background: var(--surface); display: grid; place-items: center; color: var(--ink-2); }
.tier__ic--brand { background: var(--electric); border-color: var(--electric); }
.tier__n { font-family: var(--mono); font-size: 11px; color: var(--graphite); }
.tier--blue { color: var(--electric); }
.pc-col-hot .pc__shape path { --pc-stroke: var(--electric); }
.pc--white.is-hot { --pc-fill: var(--ice); --pc-stroke: var(--electric); }
.pc--blue.is-hot { --pc-fill: var(--electric-deep); }

/* ---------- Modules ---------- */
.seg { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--mist); border: 1px solid var(--rule); margin-bottom: 44px; flex-wrap: wrap; }
.seg button { height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--graphite); transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(11,16,32,0.08), 0 0 0 1px rgba(11,16,32,0.06); }
.seg .count { height: 22px; display: inline-grid; place-items: center; padding: 0 7px; border-radius: 999px; background: var(--rule); color: var(--graphite); font-family: var(--mono); font-size: 11px; transition: background-color 200ms ease, color 200ms ease; }
.seg button[aria-selected="true"] .count { background: var(--electric); color: #fff; }
.modules { display: grid; grid-template-columns: minmax(0, 1fr) 404px; gap: 40px; align-items: start; }
#b-modules .pc { transition: opacity 320ms ease, filter 320ms ease; }
#b-modules .pc.is-dim { opacity: 0.22; filter: saturate(0.3); }
#b-modules .pc.is-sel { z-index: 3; }
.mdetail { position: sticky; top: 150px; border-radius: 16px; background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 1px 2px rgba(11,16,32,0.05), 0 18px 40px -16px rgba(11,16,32,0.16); overflow: hidden; }
.md__top { display: grid; gap: 18px; padding: 28px 28px 24px; }
.md__id { display: flex; align-items: center; gap: 14px; }
.md__tile { width: 44px; height: 44px; border-radius: 10px; background: var(--electric-deep); color: #fff; display: grid; place-items: center; flex: none; }
.md__name { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 30px; }
.md__copy { font-size: 17px; line-height: 26px; margin: 0; }
.md__detail { font-size: 14.5px; line-height: 22px; color: var(--graphite); margin: 0; }
.md__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.md__tags span { height: 28px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 6px; background: var(--mist); border: 1px solid var(--rule); font-family: var(--mono); font-size: 12px; color: var(--graphite); }
.md__if { display: grid; gap: 12px; padding: 20px 28px 24px; border-top: 1px solid var(--rule); }
.md__api { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border-radius: 8px; background: var(--code-bg); color: #fff; font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.md__api b { color: #7fa0ff; font-weight: 500; }
.md__ev { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--rule); font-size: 14px; font-weight: 500; }
.md__ev .ic { color: var(--fill); }
.md__ev code { margin-left: auto; font-family: var(--mono); font-size: 12.5px; color: var(--electric); font-weight: 400; }
.md__foot { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; border-top: 1px solid var(--rule); }
.mdetail .swap { animation: swapIn 360ms var(--ease-out); }
@keyframes swapIn { from { opacity: 0; transform: translateY(6px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Plug cards (a module piece plugs into a product card) ---------- */
.plug { position: relative; margin-left: 190px; }
.plug__card { position: relative; z-index: 1; }
.plug__card > .outline { position: absolute; z-index: -1; overflow: visible; pointer-events: none; }
.plug__card > .outline path { fill: var(--surface); stroke: var(--rule-2); stroke-width: 1.5; stroke-linejoin: round; }
.plug__piece { position: absolute; z-index: 2; left: -190px; top: calc(50% - 70px); width: 190px; height: 140px; }
.plug__piece .pc { left: 0; top: 0; }
.plug__foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.kicker { display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--rule); font-size: 28px; font-weight: 600; letter-spacing: -0.025em; line-height: 34px; }
.kicker .meta { width: 250px; letter-spacing: 0.08em; font-weight: 400; }
.kicker--plain { margin-top: 56px; }

/* analyst demo */
.card-ai { min-height: 520px; }
.ai__head { display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 32px 0 48px; border-bottom: 1px solid var(--rule); }
.ai__brand { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--graphite); }
.ai__brand b { color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.ai__brand .ic { color: var(--electric); }
.toggle { display: flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--mist); border: 1px solid var(--rule); }
.toggle button { height: 28px; padding: 0 12px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--graphite); transition: background-color 200ms ease, color 200ms ease; }
.toggle button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(11,16,32,0.08); }
.ai__body { display: grid; grid-template-columns: 1fr 1.12fr; }
.ai__acct { display: grid; gap: 22px; align-content: start; padding: 28px 32px 32px 48px; border-right: 1px solid var(--rule); }
.ai__net { display: grid; gap: 4px; }
.ai__big { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; line-height: 50px; }
.ai__big span { font-size: 26px; color: var(--slate); }
.ai__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ai__stats div { display: grid; gap: 4px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--rule); }
.ai__stats span { font-size: 12px; color: var(--graphite); }
.ai__stats strong { font-family: var(--mono); font-size: 16px; font-weight: 500; }
.ai__chart { display: grid; gap: 12px; }
.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 92px 1fr 64px; align-items: center; gap: 12px; height: 22px; }
.bar__l { font-family: var(--mono); font-size: 11px; color: var(--graphite); white-space: nowrap; }
.bar__t { display: block; height: 10px; border-radius: 3px; background: var(--mist); overflow: hidden; }
.bar__f { display: block; height: 100%; border-radius: 3px; background: var(--electric); transform-origin: left; transition: transform 700ms var(--ease-out); }
.bar--neg .bar__f { background: var(--reject, #e5484d); }
.bar--neg .bar__v { color: #e5484d; }
.bar__v { font-family: var(--mono); font-size: 12px; text-align: right; }
.ai__chat { display: flex; flex-direction: column; gap: 16px; padding: 28px 32px 28px; min-width: 0; }
.ai__convo { display: flex; flex-direction: column; gap: 14px; flex: 1; min-height: 220px; }
.q { align-self: flex-end; max-width: 90%; padding: 10px 14px; border-radius: 12px 12px 4px 12px; background: var(--inverse); color: var(--on-inverse); font-size: 14px; font-weight: 500; line-height: 20px; }
.a { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.a__av { width: 28px; height: 28px; border-radius: 8px; background: var(--electric); color: #fff; display: grid; place-items: center; }
.a__body { display: grid; gap: 10px; font-size: 14.5px; line-height: 22px; color: var(--graphite); }
.a__body strong { color: var(--ink); font-weight: 600; }
.a__call { padding: 10px 12px; border-left: 2px solid var(--electric); background: var(--ice); border-radius: 0 6px 6px 0; font-size: 13.5px; line-height: 20px; color: var(--ink); }
.a__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.a__tags span { height: 24px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 5px; border: 1px solid var(--rule); font-family: var(--mono); font-size: 11px; color: var(--graphite); }
.a.is-typing .a__body { color: var(--slate); }
.typing { display: inline-flex; gap: 4px; align-items: center; height: 22px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--slate); animation: typing 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 50% { opacity: 0.3; transform: translateY(-2px); } }
.ai__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ai__chips button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); font-size: 13px; color: var(--ink); transition: border-color 160ms ease, background-color 160ms ease; }
.ai__chips button:hover { border-color: var(--electric); }
.ai__chips button[aria-pressed="true"] { background: var(--ice); border-color: var(--sky); color: var(--electric-deep); }
.ai__ask { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 6px 0 16px; border-radius: 12px; border: 1px solid var(--rule); background: var(--surface); box-shadow: 0 1px 2px rgba(11,16,32,0.05); }
.ai__ask:focus-within { border-color: var(--electric); }
.ai__ask input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 14px; color: var(--ink); background: none; }
.ai__ask button { width: 34px; height: 34px; border-radius: 9px; background: var(--electric); color: #fff; font-size: 16px; font-weight: 600; }

/* ---------- Pipeline ---------- */
.pp { position: absolute; left: 48px; right: 40px; top: 78px; display: grid; gap: 6px; }
.pp__l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--electric); }
.pp__t { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 24px; }
.pp__s { font-size: 14px; line-height: 20px; color: var(--graphite); }
.pc--blue .pp__l { color: rgba(255,255,255,0.7); } .pc--blue .pp__s { color: rgba(255,255,255,0.8); }
.pp__ic { position: absolute; left: 48px; top: 34px; }
.pp__tok { position: absolute; left: 0; top: 216px; display: flex; align-items: center; gap: 8px; padding-left: 2px; font-family: var(--mono); font-size: 12px; color: var(--graphite); white-space: nowrap; }
.pp__tok::before { content: ""; width: 1px; height: 18px; background: var(--rule-2); }
.packet { position: absolute; z-index: 5; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--electric); box-shadow: 0 0 0 4px rgba(31,75,255,0.18), 0 0 18px rgba(31,75,255,0.55); pointer-events: none; opacity: 0; }
.packet.on-blue { background: var(--surface); box-shadow: 0 0 0 4px rgba(255,255,255,0.28), 0 0 18px rgba(255,255,255,0.8); }

/* ---------- Agents ---------- */
.agents { display: grid; grid-template-columns: 520px 1fr; gap: 56px; align-items: center; }
.agents__copy .lede { margin-top: 22px; }
.principles { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.principles li { height: 52px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--rule); font-size: 16px; font-weight: 500; }
.plug--agent { margin-left: 190px; }
.card-mcp { min-height: 400px; }
.mcp__head { display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 28px 0 48px; border-bottom: 1px solid var(--rule); }
.mcp__body { display: grid; gap: 14px; padding: 24px 28px 28px 48px; }
.mcp__step { transition: opacity 400ms ease, transform 500ms var(--ease-out); }
.mcp__step.is-pending { opacity: 0; transform: translateY(8px); }
.mcp__prompt { display: flex; gap: 12px; align-items: flex-start; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; line-height: 26px; }
.mcp__call { display: grid; gap: 10px; padding: 14px 16px; border-radius: 10px; background: var(--code-bg); color: #fff; }
.mcp__call .meta { color: #8a91a1; }
.mcp__call code, .mcp__res code, .mcp__log code { font-family: var(--mono); font-size: 13px; line-height: 18px; }
.mcp__call .fn { color: #7fa0ff; }
.scope { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 5px; background: rgba(127,160,255,0.16); color: #9db4ff; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; }
.mcp__res { display: grid; gap: 8px; padding: 14px 16px; border-radius: 10px; background: var(--mist); border: 1px solid var(--rule); }
.mcp__log { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--rule); }
.mcp__log .ok { color: var(--fill); }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: var(--electric); animation: caret 900ms steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- Headless ---------- */
.pc-surf { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 30px; gap: 10px; }
.pc-surf__w { font-size: 14px; font-weight: 500; }
.strip { position: absolute; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; color: #fff; pointer-events: none; }
.strip__brand { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; padding-top: 12px; }
.strip__lab { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.75); padding-top: 12px; }
.integ { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 18px; font-size: 14px; font-weight: 500; }
.integ .ic { color: var(--ink); }
.integ .x1 { height: 20px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 4px; background: var(--ice); color: var(--electric); font-family: var(--mono); font-size: 11px; }
.spark { position: absolute; z-index: 6; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 12px rgba(255,255,255,0.9); pointer-events: none; opacity: 0; }
.spark--blue { background: var(--electric); box-shadow: 0 0 12px rgba(31,75,255,0.7); }
.buildonce { max-width: 430px; margin-top: 28px; }
.buildonce h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 28px; margin: 0; }
.buildonce p { margin: 8px 0 0; font-size: 15px; line-height: 23px; color: var(--graphite); }

/* ---------- Events ---------- */
.src { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 26px 28px; color: #fff; }
.src__t { display: flex; align-items: center; gap: 10px; padding-top: 18px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 30px; }
.src__ids { display: flex; gap: 12px; padding-top: 10px; font-family: var(--mono); font-size: 12.5px; }
.src__ids span:last-child { opacity: 0.65; }
.replay { align-self: flex-start; margin-top: auto; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); color: var(--electric); font-size: 14px; font-weight: 500; transition: transform 150ms var(--ease-soft); }
.replay:active { transform: scale(0.97); }
.replay:disabled { opacity: 0.7; cursor: default; }
.sub { position: absolute; inset: 0; display: flex; align-items: center; gap: 16px; padding-left: 48px; }
.sub .ic { color: var(--electric); }
.sub__t { font-size: 16px; font-weight: 500; line-height: 20px; }
.sub__c { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--electric); transition: color 200ms ease; }
.pc.is-got { --pc-fill: var(--fill-tint); --pc-stroke: #9ad7bd; }
[data-theme="dark"] .pc.is-got { --pc-stroke: var(--fill-ink); }
.pc.is-got .sub__c { color: #08744f; }
.pc.is-got .sub .ic { color: var(--fill); }
.evfoot { margin-top: 22px; flex-wrap: wrap; }

/* ---------- Developers ---------- */
.tl { position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; padding-left: 34px; font-size: 15px; font-weight: 500; white-space: nowrap; }
#b-tools .pc { transition: transform 300ms var(--ease-out); }
#b-tools .pc:not(.pc--blue):hover .pc__shape path { --pc-fill: var(--ice); }
.dev { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; margin-top: 36px; align-items: start; }
.code { border-radius: 14px; background: var(--code-bg); overflow: hidden; color: #dfe6f5; }
.code__head { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 20px; background: #141a2e; border-bottom: 1px solid rgba(255,255,255,0.08); color: #aeb8cc; }
.code__copy { color: #8a91a1; }
.code__copy:hover { color: #fff; }
.code__body { margin: 0; min-height: 300px; padding: 22px 24px; font-family: var(--mono); font-size: 13px; line-height: 1.85; color: #c9d4ea; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
.code__body .k { color: #7fa0ff; } .code__body .s { color: #8fd3b0; } .code__body .c { color: #6b7894; } .code__body .n { color: #f0c38b; }
.code__term { display: flex; align-items: center; gap: 14px; padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.08); background: #0c1120; }
.code__term code { font-family: var(--mono); font-size: 13px; color: #fff; }
.ref h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 32px; margin: 10px 0 18px; }
.ref ol { list-style: none; margin: 0 0 18px; padding: 0; counter-reset: r; }
.ref li { counter-increment: r; height: 50px; display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--rule); font-size: 16px; font-weight: 500; padding: 0 10px; margin: 0 -10px; transition: background-color 240ms ease; }
.ref li:last-child { border-bottom: 1px solid var(--rule); }
.ref li::before { content: counter(r, decimal-leading-zero); width: 22px; font-family: var(--mono); font-size: 11px; color: var(--electric); font-weight: 400; }
.ref li.is-on { background: var(--ice); }

/* ---------- Enterprise ---------- */
.ent { position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; padding-left: 36px; font-size: 16px; font-weight: 500; white-space: nowrap; }
.ent span { font-family: var(--mono); font-size: 11px; color: var(--electric); font-weight: 400; }
.ent--cta { color: var(--electric); }
.core { position: absolute; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 0 60px 0 50px; color: #fff; pointer-events: none; }
.core .meta { color: rgba(255,255,255,0.75); }
.core p { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -0.015em; line-height: 32px; max-width: 700px; }
.core__mark { position: absolute; right: 90px; bottom: 44px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }

/* ---------- Use cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case { display: flex; flex-direction: column; border-radius: 14px; background: var(--surface); border: 1px solid var(--rule); overflow: hidden; transition: border-color 200ms ease, box-shadow 300ms ease, transform 300ms var(--ease-out); }
.case:hover { border-color: var(--sky); box-shadow: var(--shadow-card); }
.case__art { height: 198px; display: grid; place-items: center; background: var(--mist); border-bottom: 1px solid var(--rule); }
.case__art .board-wrap { width: 276px; }
.case__body { display: grid; gap: 8px; padding: 20px 24px 22px; align-content: start; }
.case__body h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 28px; }
.case__body p { margin: 0; font-size: 15px; line-height: 23px; color: var(--graphite); }
.case__stack { padding-top: 6px; font-family: var(--mono); font-size: 11.5px; line-height: 16px; }
.case .arr { color: var(--electric); transition: transform 220ms var(--ease-out); }
.case:hover .arr { transform: translate(2px, -2px); }
.pc-mini { position: absolute; inset: 0; display: grid; place-items: center; }

/* ---------- CTA ---------- */
.cta__grid { display: grid; grid-template-columns: minmax(0, 580px) minmax(0, 700px); justify-content: space-between; gap: 40px; align-items: center; }
.cta__h { font-size: clamp(40px, 4.2vw, 60px); line-height: 1.03; letter-spacing: -0.04em; font-weight: 600; margin: 22px 0 0; text-wrap: balance; }
.cta__h .blue { display: block; }
.cta__copy .lede { margin-top: 24px; max-width: 30em; }
.cta__copy .btns { margin-top: 32px; }
.yours { position: absolute; inset: 0 0 22px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--electric); font-size: 14px; font-weight: 600; }
.yours i { width: 22px; height: 22px; border-radius: 6px; border: 1.5px dashed var(--electric); }
.pc.is-yours { z-index: 5; filter: drop-shadow(8px 12px 0 #d5ddf7); transition: filter 300ms ease; }
.pc.is-yours.is-home { filter: none; }
#b-final .pc--white .pc__shape path, #b-fits .pc--white .pc__shape path { stroke: #d3d9e3; }
.solved-ring { position: absolute; inset: 30px; border-radius: 6px; box-shadow: 0 0 0 0 rgba(31,75,255,0.35); pointer-events: none; }
.solved-ring.go { animation: ring 1100ms var(--ease-out); }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(31,75,255,0.35); } 100% { box-shadow: 0 0 0 26px rgba(31,75,255,0); } }

/* ---------- Footer ---------- */
.foot { background: var(--surface); border-top: 1px solid var(--rule); padding-top: 80px; overflow-x: clip; }
.foot__grid { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.foot__brand { display: grid; gap: 16px; align-content: start; width: 360px; }
.foot__logo { display: flex; align-items: center; gap: 9px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.foot__logo .bird { color: var(--electric); }
.foot__brand p { margin: 0; font-size: 17px; line-height: 26px; color: var(--graphite); }
.foot__board { width: 207px; margin-top: 10px; }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(140px, 180px)); gap: 24px; }
.foot__cols div { display: grid; gap: 12px; align-content: start; }
.foot__cols .meta { padding-bottom: 6px; }
.foot__cols a { font-size: 15px; }
.foot__cols a:hover { color: var(--electric); }
.foot__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-block: 20px 40px; border-top: 1px solid var(--rule); }
.foot__bar .meta { color: var(--ink); }

/* reveal for plain blocks */
[data-reveal] { transition: opacity 700ms ease, transform 900ms var(--ease-out); }
[data-reveal].is-pre { opacity: 0; transform: translateY(18px); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .fits { grid-template-columns: 1fr; gap: 48px; }
  .modules { grid-template-columns: 1fr; }
  .mdetail { position: relative; top: 0; max-width: 560px; }
  .agents { grid-template-columns: 1fr; }
  .dev { grid-template-columns: 1fr; }
  .cta__grid { grid-template-columns: 1fr; }
  .cases { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .nav__links { display: none; }
  .shead { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
  .shead__side { width: auto; max-width: 36em; }
  .sec { padding-block: 68px 76px; }
  .stage { left: 0; top: 34%; }
  .copy, .copy--hero { width: calc(100% - var(--gutter) * 2); left: var(--gutter); }
  .copy--hero { top: 96px; transform: none; } /* site-hero.js drives it from here; without this the desktop -50% applies until it loads */
  .copy--hero .tagline, .copy--hero .lede { display: none; }
  .copy--hero .btns { margin-top: 22px; }
  .copy--ch { top: 96px; transform: none; }
  .copy--ch p { font-size: 16px; }
  .stream, .hero__meta, .scrollcue { display: none; }
  .plug, .plug--agent { margin-left: 0; margin-top: 110px; }
  .plug__piece { left: calc(50% - 95px); top: -110px; width: 190px; height: 110px; }
  .ai__head { padding: 0 16px; flex-wrap: wrap; height: auto; padding-block: 12px; gap: 10px; }
  .ai__head .meta { display: none; }
  .ai__body { grid-template-columns: 1fr; }
  .ai__acct { border-right: 0; border-bottom: 1px solid var(--rule); padding: 24px 20px; }
  .ai__chat { padding: 24px 20px; }
  .mcp__head, .mcp__body { padding-left: 20px; padding-right: 20px; }
  .mcp__head { gap: 12px; }
  .kicker { font-size: 22px; line-height: 28px; gap: 8px 20px; margin-top: 48px; }
  .kicker .meta { width: 100%; }
  .cases { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: repeat(2, 1fr); }
  .tiers { display: none; }
  .labels { display: none; }
  .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .seg button { flex: none; }
  .ai__head { padding-top: 30px; }
  .mcp__head { padding-top: 26px; height: auto; padding-bottom: 14px; flex-wrap: wrap; }
  .board-wrap.is-scroll { mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .scrollcue span, .caret, .typing i { animation: none; }
  .pc.is-snap .pc__shape path { animation: none; }
}

/* ---------- interaction states ---------- */
.fits__art .board-wrap { flex: 1; min-width: 0; }
.pc--mod > .pc__shape, .pc--mod > .pc__c { transition: transform 380ms var(--ease-out), filter 380ms ease; }
@media (hover: hover) and (pointer: fine) {
  .pc--mod:not(.is-sel):hover > .pc__shape, .pc--mod:not(.is-sel):hover > .pc__c { transform: translate(-2px, -4px); }
}
.pc--mod.is-sel > .pc__shape, .pc--mod.is-sel > .pc__c { transform: translate(-6px, -10px); }
.pc--mod.is-sel > .pc__shape { filter: drop-shadow(12px 18px 0 #cdd6f6); }
.plug__card.is-lit > .outline { animation: lit 1300ms var(--ease-out); }
@keyframes lit { 0% { filter: none; } 25% { filter: drop-shadow(0 0 16px rgba(31,75,255,0.45)); } 100% { filter: none; } }
.code__body.swap { animation: swapIn 360ms var(--ease-out); }
.pc--core.is-hot { --pc-fill: var(--electric-deep); }
@media (prefers-reduced-motion: reduce) { .plug__card.is-lit > .outline { animation: none; } }

/* boards whose design includes a knob margin bleed past the column so pieces align with the text edge */
.bleed { width: calc(100% + 40px); margin-inline: -20px; }
.bleed-l { width: calc(100% + 40px); margin-left: -40px; }
@media (max-width: 900px) { .bleed, .bleed-l { width: calc(100% + var(--gutter)); margin-inline: calc(var(--gutter) * -0.5); } }

/* render mode (Paper captures): only the 3D stage, transparent */
html.render, html.render body { background: transparent !important; }
html.render .nav, html.render .copy, html.render .stream, html.render .labels, html.render .misfit-tag, html.render .hero__meta,
html.render .scrollcue, html.render .tip, html.render main > section:not(#top), html.render .foot, html.render .pit { display: none !important; }
html.render .scene { background: transparent; }

/* ---------- Pitstops (hero stops 1–3 + pinned How it fits) — technical-drawing register ---------- */
.pit { position: absolute; z-index: 5; left: max(var(--gutter), calc(50% - 664px)); top: clamp(104px, calc(50vh - 300px), 160px); width: 470px; opacity: 0; visibility: hidden; pointer-events: none; will-change: opacity, transform; }
.pit.is-on { pointer-events: auto; }
.pit__label { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.pit__label .muted { color: var(--slate); }
.pit__ticks { display: flex; gap: 4px; }
.pit__ticks i { width: 14px; height: 4px; border-radius: 2px; background: var(--rule); }
.pit__ticks i.on { background: var(--electric); }
.pit__title { font-size: 32px; line-height: 36px; letter-spacing: -0.03em; font-weight: 600; margin: 16px 0 26px; text-wrap: balance; }
.pit__title .soft { display: block; color: var(--slate); }
.pit__rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.pit__row { display: flex; gap: 14px; align-items: center; min-height: 84px; padding: 12px 0; border-bottom: 1px solid var(--rule); transition: opacity 320ms ease, background-color 320ms ease; }
.pit__rows--steps .pit__row, .pit__rows--legend .pit__row { min-height: 60px; }
.pit__head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pit__head .n { font-family: var(--mono); font-size: 11px; color: var(--slate); }
.pit__head b { font-size: 16px; font-weight: 600; }
.pit__head span:last-child { font-size: 15px; color: var(--graphite); }
.pit__row--blue .pit__head b { color: var(--electric); }
.pit__list { margin-top: 3px; font-family: var(--mono); font-size: 11.5px; line-height: 16px; color: var(--slate); }
.tile--blue { background: var(--electric); border-color: var(--electric); color: #fff; }
.pn { width: 24px; height: 24px; flex: none; border-radius: 12px; border: 1.25px solid var(--ink); display: grid; place-items: center; font-family: var(--mono); font-size: 10.5px; line-height: 1; color: var(--ink); }
.pn--ink { background: var(--inverse); border-color: var(--inverse); color: var(--on-inverse); }
.pn--blue { border-color: var(--electric); color: var(--electric); }
.pn--fill { background: var(--electric); border-color: var(--electric); color: #fff; }
.pn--sm { width: 20px; height: 20px; font-size: 10px; }
.pit__txt { font-size: 17px; line-height: 25px; color: var(--ink); }
.pit__txt b { font-weight: 600; }
.pit__txt--sm { font-size: 15px; line-height: 22px; color: var(--graphite); }
.pit__row--hi { align-items: flex-start; padding: 16px 16px 16px 0; background: linear-gradient(90deg, rgba(234,240,255,0), var(--ice)); }
.pit__verb { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--electric); margin-bottom: 2px; }
.pit__verb--grey { color: var(--slate); }
.pit__cta { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.pit__cta .btn, .pit__cta .meta { white-space: nowrap; flex: none; }
.pit-lines, .fit-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; overflow: visible; }
.misfit-tag { padding-left: 4px; }
.misfit-tag .pn { margin-right: 1px; }

/* How it fits, pinned: one column lights 01 → 02 → 03 */
.pin { height: 190vh; padding-block: 0; }
.pin__stick { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.pin__stick > .wrap { padding-top: 40px; }
.h2--pit { font-size: clamp(28px, 2.3vw, 34px); }
.fit__rows { margin-top: 26px; }
.fit__rows .pit__row { opacity: 0.3; min-height: 76px; }
.fit__rows .pit__row.is-on { opacity: 1; }
.fit__rows .pit__row.is-cur { background: linear-gradient(90deg, rgba(234,240,255,0), var(--ice)); }
.pit__contract { display: flex; align-items: center; gap: 10px; margin: 4px 0 2px; font-size: 17px; }
.pit__contract b { font-weight: 600; }
.fits__copy > .meta { margin-top: 16px; }
.pc--white.is-lit { --pc-fill: var(--ice); --pc-stroke: var(--electric); }
.pc--blue.is-lit { --pc-fill: var(--electric-deep); }
.col-outline { position: absolute; border: 2px solid var(--electric); border-radius: 4px; pointer-events: none; opacity: 0; transition: opacity 400ms ease; }
.col-outline.on { opacity: 1; }
.fit-lines g { opacity: 0; transition: opacity 360ms ease; }
.fit-lines g.on { opacity: 1; }
@media (max-height: 760px), (max-width: 900px) {
  .pin { height: auto; padding-block: 68px 76px; }
  .pin__stick { position: static; height: auto; display: block; }
  .pin__stick > .wrap { padding-top: 0; }
  .fit-lines { display: none; }
}
@media (max-width: 900px) {
  .pit { top: 84px; width: calc(100% - var(--gutter) * 2); left: var(--gutter); }
  .pit__title { font-size: 24px; line-height: 28px; margin: 10px 0 14px; }
  .pit__list, .pit__cta .meta, .pit-lines { display: none; }
  .pit__row { min-height: 0; padding: 9px 0; }
  .pit__rows--steps .pit__row, .pit__rows--legend .pit__row { min-height: 0; }
  .pit__txt { font-size: 15px; line-height: 21px; }
  .pit__head b { font-size: 15px; } .pit__head span:last-child { font-size: 14px; }
  .pit__cta { margin-top: 14px; }
  .stage { top: max(40%, 368px); }
}

/* pinned How it fits: top-aligned grid so rows can be placed level with their pieces */
.fits__copy { position: relative; }
@media (min-width: 901px) and (min-height: 761px) { .pin .fits { align-items: start; } .pin .fit__rows .pit__row { min-height: 0; } }

/* Hero composition frame: on tall windows the 3D + copy keep a 3:2-ish frame, centred, instead of floating in a tall stage */
@media (min-width: 901px) {
  /* frame + content column: the 3D lives in the column's right 64%, so copy and object keep their relationship at every width */
  .sticky { --vh: max(100vh, 760px); --fh: min(var(--vh), max(720px, 66vw)); --ft: calc((var(--vh) - var(--fh)) / 2);
    --cl: max(var(--gutter), calc(50vw - 664px)); --cw: min(1328px, calc(100vw - var(--gutter) * 2)); }
  .stage { top: var(--ft); bottom: auto; height: var(--fh); left: calc(var(--cl) + var(--cw) * 0.38); right: auto; width: calc(var(--cw) * 0.62 + 60px); }
  .copy--hero { width: min(640px, calc(var(--cw) * 0.5)); }
  .copy--hero .display { font-size: clamp(44px, 5vw, 74px); }
  .pit { width: min(470px, calc(var(--cw) * 0.44)); }
  .hero__meta { bottom: calc(var(--ft) + 34px); }
  .scrollcue { bottom: calc(var(--ft) + 30px); }
}

@media (max-width: 1180px) { .pit__label .muted { display: none; } .pit__list { font-size: 11px; } }

/* phone layouts for the wide boards */
.strip--v { flex-direction: column; justify-content: flex-start; align-items: center; gap: 14px; padding: 18px 0 0; }
.strip--v .strip__lab { writing-mode: vertical-rl; transform: rotate(180deg); padding: 0; }
.integ--v { flex-direction: column; gap: 6px; padding: 0 8px 0 18px; text-align: center; font-size: 13px; line-height: 17px; }
.pc-surf--h { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; padding: 0 0 0 18px; }
.pc-surf--h .pc-surf__w { font-size: 14px; }
.src__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.src--v .replay { margin-top: 0; }
.src--v > .src__ids { margin-top: auto; }
.src--v { padding: 18px 20px 36px; }
.src--v .src__t { font-size: 22px; padding-top: 12px; }
.src--v .replay { height: 30px; font-size: 13px; padding: 0 12px; }
.sub--v { gap: 10px; padding: 0 10px 0 22px; }
.sub--v .sub__t { font-size: 14px; line-height: 18px; }
.sub--v .sub__c { font-size: 11px; }
.tl--v { flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 0; font-size: 12.5px; line-height: 15px; text-align: center; white-space: normal; }
.ent--v { padding-left: 18px; gap: 8px; font-size: 14px; line-height: 18px; white-space: normal; }
.core--v { padding: 0 24px; }
.core--v p { font-size: 17px; line-height: 23px; }

/* stop panels: rows take their content height so they have slack to sit level with their targets */
.pit .pit__row { min-height: 0; padding: 10px 0; }
.pit .pit__rows--steps .pit__row, .pit .pit__rows--legend .pit__row { padding: 13px 0; }
.pit .pit__row--hi { padding: 14px 16px 14px 0; }

/* tagline rebus: three bars spanning the capital height, centred on it */
.tagline .rebus { height: 0.7em; gap: 0; justify-content: space-between; vertical-align: middle; transform: translateY(-0.09em); }
.tagline .rebus i { height: 4px; }

/* =================== Multi-page: menu, page headers, new page blocks =================== */
/* menu: current page */
.nav__link[aria-current="page"] { color: var(--electric); font-weight: 500; background: var(--ice); }
.nav__cta[aria-current="page"] { background: var(--electric); }
.nav__menu { display: none; align-items: center; gap: 8px; height: 36px; padding: 0 12px; margin-left: 6px; border-radius: 8px; background: var(--mist); font-size: 14px; font-weight: 500; color: var(--ink); }
.nav__burger { display: grid; gap: 4px; width: 14px; }
.nav__burger i { display: block; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform 240ms var(--ease-out); }
.menu-open .nav__burger i:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-open .nav__burger i:last-child { transform: translateY(-2.75px) rotate(-45deg); }
.mnav { position: fixed; z-index: 49; top: calc(74px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; padding: 6px 14px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 24px 48px -24px rgba(11,16,32,0.3); animation: mnavIn 260ms var(--ease-out); }
@keyframes mnavIn { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
.mnav__list { list-style: none; margin: 0; padding: 0; }
.mnav__list a { display: flex; align-items: center; gap: 12px; height: 48px; border-bottom: 1px solid var(--rule); font-size: 16px; font-weight: 500; }
.mnav__list a .n { font-family: var(--mono); font-size: 11px; color: var(--slate); width: 18px; }
.mnav__list a[aria-current="page"] { color: var(--electric); background: var(--ice); margin: 0 -14px; padding: 0 14px; }
.mnav__list a[aria-current="page"] .n { color: var(--electric); }
.mnav__list a.muted { color: var(--graphite); border-bottom: 0; }
.mnav__cta { width: 100%; justify-content: center; margin-top: 8px; }
@media (max-width: 900px) {
  .nav { left: 12px; right: 12px; transform: none; justify-content: space-between; }
  .nav__menu { display: inline-flex; }
  .nav__cta { margin-left: auto; }
}
@media (max-width: 380px) { .nav__cta { display: none; } .nav__menu { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) { .mnav { animation: none; } }

/* page header */
.phead { padding: 150px 0 56px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.phead__grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.phead__copy { max-width: 780px; }
.crumbs { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { color: var(--sky); }
.phead__h { font-size: clamp(40px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; margin: 22px 0 0; text-wrap: balance; }
.phead__h .soft { display: block; color: var(--slate); }
.phead__h .blue { display: block; }
.phead__copy .lede { margin: 22px 0 0; max-width: 34em; font-size: 18px; }
.phead__copy .meta { margin-top: 18px; }
.phead__map { margin: 0; display: grid; justify-items: end; gap: 10px; flex: none; }
.phead__map img { width: 260px; height: auto; display: block; }
.phead__img--dark, [data-theme="dark"] .phead__img--light { display: none; }
[data-theme="dark"] .phead__img--dark { display: block; }
.phead__map figcaption { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); }
@media (max-width: 900px) {
  .phead { padding: 108px 0 40px; }
  .phead__grid { flex-direction: column; align-items: flex-start; gap: 28px; }
  .phead__map { justify-items: start; }
  .phead__map img { width: 200px; }
}

/* how it fits: link under the meta */
.fits__more { margin-top: 10px; }

/* integrations: venues → /v1 → your product */
.ven { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding-left: 30px; }
.ven .vlogo { opacity: 0.9; }
.ven__k { font-family: var(--mono); font-size: 11px; color: var(--graphite); }
.ven--v { padding-left: 18px; gap: 6px; }
.kontract { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 44px 0 52px; color: #fff; }
.kontract .meta { color: rgba(255,255,255,0.7); }
.kontract__v { font-family: var(--mono); font-size: 44px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.kontract b { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.kontract span:last-child { font-size: 14px; line-height: 20px; color: rgba(255,255,255,0.82); }
.kontract--v { flex-direction: row; align-items: center; gap: 14px; padding: 18px 20px 0; }
.kontract--v .kontract__v { font-size: 28px; }
.kontract--v b { font-size: 16px; }
.pc.is-product { --pc-stroke: var(--electric); --pc-sw: 2; }
.yourp { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 28px 0 44px; }
.yourp i { width: 26px; height: 26px; border-radius: 7px; border: 1.5px dashed var(--electric); margin-bottom: 6px; }
.yourp b { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; color: var(--electric); }
.yourp span { font-size: 15px; color: var(--graphite); }
.yourp--v { align-items: center; padding: 22px 8px 0; text-align: center; }
.yourp--v b { font-size: 14px; }
.yourp--v i { width: 20px; height: 20px; margin: 0; }
.pc.is-hot.is-product { --pc-fill: var(--ice); }
.pc--core.is-hot { --pc-fill: var(--electric-deep); }
.venues__foot { margin-top: 22px; flex-wrap: wrap; }

/* platform: the missing layer */
.missing { display: grid; grid-template-columns: 480px 1fr; gap: 56px; align-items: center; }
.missing__steps { margin-top: 26px; }
.missing__turn { margin: 26px 0 12px; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.misfit { position: absolute; z-index: 3; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--surface); border: 1px dashed var(--rule-2); color: var(--graphite); font-size: 13px; font-weight: 500; white-space: nowrap; box-shadow: var(--shadow-card); transform: rotate(var(--r)); pointer-events: none; }
.misfit .ic { color: var(--slate); }

/* spec sheet */
.spec { display: grid; gap: 44px; }
.spec__glabel { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.spec__row { display: grid; grid-template-columns: 260px minmax(0, 1fr) 360px; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 96px; }
.spec__row:target { background: linear-gradient(90deg, var(--ice), transparent); }
.spec__id { display: flex; gap: 14px; align-items: flex-start; }
.spec__tile { width: 44px; height: 44px; flex: none; border-radius: 10px; background: var(--electric); color: #fff; display: grid; place-items: center; }
.spec__id h3 { margin: 2px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 26px; }
.spec__txt p { margin: 0 0 10px; font-size: 15px; line-height: 23px; color: var(--graphite); }
.spec__txt .spec__copy { font-size: 17px; line-height: 25px; color: var(--ink); font-weight: 500; }
.spec__if { display: grid; gap: 10px; align-content: start; }
.spec__if .link { margin-top: 4px; }
@media (max-width: 1180px) { .spec__row { grid-template-columns: 1fr; gap: 16px; } }

/* developer reference */
.ref2 { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 64px; align-items: start; }
.ref2__nav { position: sticky; top: 110px; }
.ref2__nav .lede { margin-top: 18px; }
.ref2__toc { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.ref2__toc a { display: flex; gap: 14px; align-items: center; height: 48px; border-bottom: 1px solid var(--rule); font-size: 16px; font-weight: 500; }
.ref2__toc a span { font-family: var(--mono); font-size: 11px; color: var(--electric); font-weight: 400; }
.ref2__toc a:hover { color: var(--electric); }
.ref2__body { display: grid; gap: 22px; }
.ref2__item { padding: 26px 28px; border-radius: 14px; background: var(--surface); border: 1px solid var(--rule); scroll-margin-top: 100px; }
.ref2__item:target { border-color: var(--electric); box-shadow: 0 0 0 3px var(--ice); }
.ref2__n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--electric); }
.ref2__item p { margin: 12px 0 0; font-size: 16px; line-height: 25px; color: var(--graphite); }
.ref2__code { margin: 16px 0 0; padding: 16px 18px; border-radius: 10px; background: var(--code-bg); color: #dfe6f5; font-family: var(--mono); font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.ref2__code .k { color: #7fa0ff; } .ref2__code .s { color: #8fd3b0; }
.ref2__code--line { margin-top: 14px; }
@media (max-width: 1180px) { .ref2 { grid-template-columns: 1fr; gap: 32px; } .ref2__nav { position: static; } }

/* use cases */
.caserows { display: grid; gap: 28px; }
.caserow { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 36px; border-radius: 18px; background: var(--surface); border: 1px solid var(--rule); scroll-margin-top: 96px; }
.caserow:nth-child(even) .caserow__art { order: 2; }
.caserow:target { border-color: var(--electric); box-shadow: 0 0 0 3px var(--ice); }
.caserow__art { display: grid; justify-items: center; gap: 18px; padding: 28px; border-radius: 12px; background: var(--mist); }
.caserow__art .board-wrap { width: min(440px, 100%); }
.caserow__lit { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.caserow__lit span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; background: var(--surface); border: 1px solid var(--rule); font-size: 13px; font-weight: 500; }
.caserow__lit .ic { color: var(--electric); }
.caserow__h { margin: 12px 0 0; font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 38px; }
.caserow__body .lede { margin: 12px 0 0; }
.caserow__stack { display: grid; gap: 4px; margin-top: 22px; font-size: 16px; }
.layers3 { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 6px; }
.layers3 li { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--rule); font-size: 14.5px; font-weight: 500; }
.layers3 li.is-bw { background: var(--electric); border-color: var(--electric); color: #fff; }
.layers3 .pn--fill { background: var(--surface); border-color: var(--on-inverse); color: var(--electric); }
@media (max-width: 1000px) { .caserow { grid-template-columns: 1fr; gap: 28px; padding: 22px; } .caserow:nth-child(even) .caserow__art { order: 0; } }

/* talk to us */
.contact { padding-top: 140px; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 640px); justify-content: space-between; gap: 48px; align-items: center; }
.contact__eyebrow { margin-top: 26px; }
.contact .phead__h { margin-top: 14px; }
.contact__copy .lede { margin: 18px 0 0; }
.brief { display: grid; gap: 14px; margin-top: 30px; }
.brief__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); padding: 11px 13px; border-radius: 10px; border: 1px solid var(--rule-2); background: var(--surface); transition: border-color 160ms ease, box-shadow 160ms ease; }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--electric); box-shadow: 0 0 0 3px var(--ice); }
.brief__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.brief__err { margin: 0; color: #c2383d; font-size: 14px; }
.brief__done { margin-top: 30px; display: grid; gap: 14px; }
.brief__text { margin: 0; padding: 18px 20px; border-radius: 12px; background: var(--code-bg); color: #dfe6f5; font-family: var(--mono); font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; }
.contact__art { display: grid; justify-items: center; gap: 14px; }
.contact__cap { text-align: center; }
@media (max-width: 1000px) { .contact__grid { grid-template-columns: 1fr; } .contact { padding-top: 104px; } }
@media (max-width: 560px) { .brief__row { grid-template-columns: 1fr; } }
@media (max-width: 1180px) { .missing { grid-template-columns: 1fr; gap: 36px; } }
/* the hidden attribute always wins over component display rules */
[hidden] { display: none !important; }
