/* Scalemagic · MotionSites dark portfolio template (pill nav, video hero, blue gradient rings).
 * Each section uses a different layout. Icons are Lucide (inlined by scripts/inline-icons.mjs).
 * Every value references tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--text-md); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: var(--weight-medium); overflow-wrap: anywhere; }
a { color: inherit; }
button, output, input { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: var(--s4); top: var(--s4); z-index: 60; padding: var(--s2) var(--s4); border-radius: var(--r-pill); background: var(--text); color: var(--bg); transform: translateY(-300%); }
.skip:focus { transform: none; }

/* lucide icons */
.ic { display: inline-block; flex: none; width: 18px; height: 18px; stroke-width: 1.75; vertical-align: -3px; }
.ic--sm { width: 15px; height: 15px; vertical-align: -2px; }

/* ---------- shared ---------- */
.shell { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--s5); }
.sec { padding: var(--s10) 0; }
.sec--surface { background: var(--surface); border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.h2 { font-size: var(--text-h2); line-height: 1.12; letter-spacing: var(--track-heading); text-wrap: balance; }
.lede { max-width: 34rem; font-size: var(--text-lg); color: var(--muted); text-wrap: pretty; }
.kicker { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--track-caps); color: var(--muted); }
.split-head { display: grid; gap: var(--s5); margin-bottom: var(--s8); }
.split-head .h2 { max-width: 22ch; }
.center-head { display: grid; justify-items: center; gap: var(--s4); max-width: 44rem; margin: 0 auto var(--s8); text-align: center; }
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* gradient ring on hover (template: masked gradient border) */
.gring { position: relative; isolation: isolate; }
.gring::before { content: ""; position: absolute; inset: -2px; z-index: -1; padding: 2px; border-radius: inherit; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity var(--med) var(--ease); pointer-events: none; }
.gring:hover::before, .gring:focus-visible::before { opacity: 1; }

/* buttons (template: px-7 py-3.5, text-sm, rounded-full) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); padding: 14px 28px; border: 0; border-radius: var(--r-pill); font-size: var(--text-sm); font-weight: var(--weight-medium); line-height: 1.3; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform var(--med) var(--ease), background-color var(--fast) var(--ease); }
.btn:hover { transform: scale(1.05); }
.btn:active { transform: scale(0.99); }
.btn--solid { background: var(--text); color: var(--bg); }
.btn--line { background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 2px var(--stroke-2); }
.btn--block { width: 100%; }
.btn--block:hover { transform: none; }
.btn[aria-busy="true"] { cursor: progress; opacity: 0.7; }

/* ---------- nav (template: floating pill) ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav); display: flex; justify-content: center; padding: var(--s4) var(--s3) 0; pointer-events: none; }
.nav__pill { display: inline-flex; align-items: center; gap: var(--s1); padding: var(--s2); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--r-pill); background: rgba(20, 20, 20, 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); pointer-events: auto; transition: box-shadow var(--med) var(--ease); }
.nav.is-scrolled .nav__pill { box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5); }
.logo { display: inline-grid; flex: none; width: 36px; height: 36px; text-decoration: none; }
.logo__mark { width: 100%; height: 100%; transition: transform var(--med) var(--ease), filter var(--med) var(--ease); }
.logo:hover .logo__mark { transform: scale(1.06); filter: drop-shadow(0 0 8px rgba(137, 170, 204, 0.45)); }
.logo__dot { transform-origin: 33px 30.6px; transition: transform var(--med) var(--ease); }
.logo:hover .logo__dot { transform: scale(1.35); }
.logo--sm { width: 28px; height: 28px; }
.nav__div { display: none; width: 1px; height: 20px; margin: 0 var(--s1); background: var(--stroke-2); }
.nav__links { display: flex; align-items: center; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 6px var(--s3); border: 0; border-radius: var(--r-pill); background: transparent; color: var(--muted); font-size: var(--text-xs); text-decoration: none; white-space: nowrap; cursor: pointer; transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--text); background: rgba(31, 31, 31, 0.8); }
.nav__cta { color: var(--text); }

/* ---------- hero (template) ---------- */
.hero { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 100svh; overflow: hidden; background: var(--bg); }
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
/* the fade to the page colour is baked into the footage's last rows; anchoring the video to the bottom keeps it there */
.hero__media video { position: absolute; top: 0; bottom: -1px; left: 0; width: 100%; height: calc(100% + 1px); object-fit: cover; object-position: 50% 100%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0)); }
.hero__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: var(--s12) var(--s5) var(--s11); text-align: center; }
.eyebrow { margin-bottom: var(--s6); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--track-caps); color: var(--muted); }
.hero__title { margin-bottom: var(--s5); font-size: var(--text-hero); font-weight: var(--weight-medium); line-height: 0.92; letter-spacing: var(--track-display); }
.hero__role { margin-bottom: var(--s6); font-size: clamp(1.125rem, 0.95rem + 0.8vw, 1.5rem); color: var(--muted); text-shadow: 0 1px 16px rgba(0, 0, 0, 0.8); }
.cycle { display: inline-block; color: var(--text); font-weight: var(--weight-medium); }
.cycle.is-swap { animation: fade-in 0.5s var(--ease) both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hero__bio { max-width: 28rem; margin-bottom: var(--s8); font-size: var(--text-md); line-height: 1.7; color: var(--text-2); text-shadow: 0 1px 16px rgba(0, 0, 0, 0.8); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); }
.js .in-name, .js .in-up { opacity: 0; transform: translateY(30px); }
.is-entered .in-name { animation: enter 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) 0.1s both; }
.is-entered .in-up { animation: enter 1s cubic-bezier(0.215, 0.61, 0.355, 1) both; }
.is-entered .eyebrow.in-up { animation-delay: 0.3s; }
.is-entered .hero__role.in-up { animation-delay: 0.4s; }
.is-entered .hero__bio.in-up { animation-delay: 0.5s; }
.is-entered .hero__ctas.in-up { animation-delay: 0.6s; }
@keyframes enter { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* ---------- 1 · statement with scroll-lit words ---------- */
.sec--say { padding-top: var(--s9); }
.sec--say .shell { display: flex; flex-direction: column; align-items: center; text-align: center; }
.say p { text-wrap: balance; }
.say { display: grid; gap: var(--s3); max-width: 860px; margin: var(--s6) auto 0; font-size: clamp(1.375rem, 0.95rem + 1.7vw, 2.25rem); font-weight: var(--weight-medium); line-height: 1.32; letter-spacing: -0.03em; }
.say p { text-wrap: pretty; }
.say .w { display: inline; transition: opacity 0.12s linear; }
.say .w.chip { display: inline-flex; }
.js .say .w { opacity: 0.16; }
.chip { display: inline-flex; align-items: center; gap: 0.32em; margin: 0 0.06em; padding: 0.06em 0.45em 0.08em 0.38em; border-radius: 0.32em; font-size: 0.86em; line-height: 1.25; vertical-align: 0.04em; white-space: nowrap; }
.chip .ic { width: 0.78em; height: 0.78em; stroke-width: 2.25; vertical-align: 0; }
.chip--blue { background: rgba(137, 170, 204, 0.16); color: #b8cfe6; }
.chip--grad { background: var(--grad); color: #07111d; }
.chip--red { background: rgba(240, 106, 90, 0.18); color: #f4a196; }
.say__more { display: inline-flex; align-items: center; gap: var(--s2); margin-top: var(--s8); font-size: var(--text-md); color: var(--muted); text-decoration: underline; text-decoration-color: var(--stroke-2); text-underline-offset: 6px; transition: color var(--fast) var(--ease), text-decoration-color var(--fast) var(--ease); }
.say__more:hover { color: var(--text); text-decoration-color: var(--blue); }

/* ---------- 2 · live view: browser window + numbered steps ---------- */
.demo { max-width: 960px; margin: 0 auto; }
.win { overflow: hidden; border: 1px solid #2a2a2a; border-radius: var(--r-card); background: var(--bg); box-shadow: 0 60px 120px -60px #000; }
.win__tabs { display: flex; align-items: flex-end; gap: var(--s4); padding: var(--s2) var(--s4) 0; background: #0f0f0f; }
.win__dots { display: none; gap: 6px; padding-bottom: 12px; }
.win__dots i { width: 10px; height: 10px; border-radius: var(--r-pill); background: #2c2c2c; }
.win__tab { display: inline-flex; align-items: center; gap: var(--s2); min-width: 0; max-width: 240px; padding: 8px var(--s4); border-radius: 10px 10px 0 0; background: #161616; font-size: var(--text-xs); color: var(--text-2); }
.win__tab > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win__fav { display: grid; place-items: center; flex: none; width: 14px; height: 14px; border-radius: 4px; background: var(--grad); font-size: 9px; font-weight: var(--weight-semibold); color: #07111d; }
.win__bar { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s4); border-bottom: 1px solid var(--stroke); background: #161616; }
.win__nav { display: none; gap: var(--s2); color: #5c5c5c; }
.win__nav .ic { width: 15px; height: 15px; }
.win__url { display: flex; flex: 1; align-items: center; gap: var(--s2); min-width: 0; padding: 6px var(--s3); border-radius: var(--r-pill); background: #0d0d0d; font-size: var(--text-xs); color: var(--muted); }
.win__url .ic { width: 13px; height: 13px; }
.win__url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win__live { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 3px 10px; border: 1px solid rgba(137, 170, 204, 0.3); border-radius: var(--r-pill); font-size: var(--text-xs); color: var(--blue); }
.win__live .ic { width: 13px; height: 13px; }
.win__body { display: grid; min-height: 360px; background: radial-gradient(80% 70% at 50% 0%, rgba(78, 133, 191, 0.1), transparent 70%), var(--bg); }
.dpane { grid-area: 1 / 1; display: grid; place-items: center; padding: var(--s8) var(--s5); opacity: 0; transition: opacity 0.5s var(--ease); pointer-events: none; }
.dpane.is-active { opacity: 1; pointer-events: auto; }
.form { display: grid; gap: var(--s3); width: 100%; max-width: 320px; }
.form__title { margin-bottom: var(--s1); font-size: var(--text-h3); font-weight: var(--weight-medium); letter-spacing: -0.02em; }
.form__field { display: grid; gap: var(--s1); font-size: var(--text-xs); color: var(--muted); }
.form__input { padding: 10px var(--s3); border: 1px solid var(--stroke-2); border-radius: var(--r-sm); background: var(--surface); font-size: var(--text-sm); color: var(--text); }
.form__input--dots { letter-spacing: 0.15em; }
.form__btn { margin-top: var(--s1); padding: 10px; border-radius: var(--r-sm); background: var(--text); color: var(--bg); font-size: var(--text-sm); font-weight: var(--weight-medium); text-align: center; }
.form__hint { font-size: var(--text-xs); color: var(--muted); }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s2); }
.otp span { display: grid; place-items: center; aspect-ratio: 1 / 1.15; border: 1px solid var(--stroke-2); border-radius: var(--r-sm); background: var(--surface); font-size: 1.125rem; font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; }
.otp .is-caret { border-color: var(--blue); }
.otp .is-caret::after { content: ""; width: 1.5px; height: 1.1em; background: var(--blue); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.dpane--app { place-items: stretch; padding: var(--s6) var(--s5); }
.app { display: grid; align-content: start; gap: var(--s4); width: 100%; max-width: 640px; margin: 0 auto; }
.app__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
.app__title { font-size: var(--text-h3); font-weight: var(--weight-medium); }
.app__meta { font-size: var(--text-xs); color: var(--muted); }
.app__tbl { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.app__tbl th { padding: 0 0 var(--s2); border-bottom: 1px solid var(--stroke-2); font-size: var(--text-xs); font-weight: var(--weight-regular); color: var(--muted); text-align: left; }
.app__tbl th:last-child, .app__tbl td:last-child { text-align: right; }
.app__tbl td { padding: var(--s3) 0; border-bottom: 1px solid var(--stroke); }
.app__tbl td:last-child { font-variant-numeric: tabular-nums; }
.stage { display: inline-flex; padding: 1px 8px; border-radius: var(--r-pill); background: var(--stroke); font-size: var(--text-xs); color: var(--text-2); }
.stage--won { background: var(--ok-bg); color: var(--ok); }
.toast { display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s3) var(--s4); border: 1px solid rgba(127, 209, 168, 0.28); border-radius: var(--r-md); background: var(--ok-bg); }
.toast .ic { margin-top: 2px; color: var(--ok); }
.toast__title { font-size: var(--text-sm); font-weight: var(--weight-medium); }
.toast__sub { font-size: var(--text-xs); color: var(--muted); }
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); margin-top: var(--s5); }
.step { display: grid; gap: 2px; padding: var(--s3) 0; border: 0; background: none; color: var(--muted); text-align: left; cursor: pointer; transition: color var(--med) var(--ease); }
.step__bar { position: relative; height: 2px; margin-bottom: var(--s3); overflow: hidden; border-radius: 2px; background: var(--stroke-2); }
.step__bar i { position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.step__n { font-size: var(--text-xs); letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.step__t { font-size: var(--text-md); font-weight: var(--weight-medium); }
.step__d { font-size: var(--text-sm); color: #6e6e6e; }
.step[aria-selected="true"] { color: var(--text); }
.step[aria-selected="true"] .step__d { color: var(--muted); }
.step:hover { color: var(--text); }
.demo__tag { margin-top: var(--s4); font-size: var(--text-xs); color: #5c5c5c; text-align: center; }

/* ---------- 3 · connect: node graph ---------- */
.flow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
.flow__svg { display: none; position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow__col { position: relative; z-index: 1; display: grid; align-content: start; gap: var(--s3); }
.flow__label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.flow__nodes { display: grid; gap: var(--s2); }
.node { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 48px; padding: var(--s3) var(--s5); border: 1px solid var(--stroke-2); border-radius: var(--r-pill); background: var(--surface); font-size: var(--text-sm); }
.node__in { display: inline-flex; align-items: center; gap: var(--s2); }
.node__in .ic { width: 16px; height: 16px; color: var(--muted); }
.node--pipe { justify-content: flex-start; border-color: rgba(137, 170, 204, 0.35); background: #111821; }
.node--pipe strong { font-weight: var(--weight-semibold); color: #b8cfe6; }
.node__sub { margin-left: auto; font-size: var(--text-xs); color: var(--muted); }
.port { display: none; position: absolute; top: 50%; right: -5px; width: 9px; height: 9px; margin-top: -4.5px; border: 1.5px solid #3a4a5c; border-radius: var(--r-pill); background: var(--bg); transition: border-color var(--med) var(--ease), box-shadow var(--med) var(--ease); }
.port--in { right: auto; left: -5px; }
.port.is-hit { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(137, 170, 204, 0.18); }
.flow__link { position: relative; justify-self: center; width: 2px; height: 44px; overflow: hidden; background: var(--stroke-2); }
.flow__link i { position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--grad); box-shadow: var(--glow); animation: flow-v 1.6s linear infinite; }
@keyframes flow-v { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
.hub { position: relative; display: grid; gap: var(--s4); padding: var(--s5); border: 1px solid #2f3a46; border-radius: var(--r-card); background: linear-gradient(180deg, rgba(78, 133, 191, 0.1), transparent 60%), var(--surface); transition: box-shadow 0.6s var(--ease), border-color 0.6s var(--ease); }
.hub.is-hit { border-color: rgba(137, 170, 204, 0.55); box-shadow: 0 0 44px -10px rgba(78, 133, 191, 0.55); }
.hub__title { font-size: var(--text-sm); font-weight: var(--weight-medium); }
.hub__people { display: grid; gap: var(--s3); }
.hub__people li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s3); font-size: var(--text-sm); }
.hub__people em { font-style: normal; font-size: var(--text-xs); color: var(--muted); }
.av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-pill); background: var(--stroke-2); font-size: 10px; font-weight: var(--weight-semibold); }
.hub__foot { display: flex; align-items: center; gap: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--stroke-2); font-size: var(--text-xs); color: var(--ok); }
/* svg connectors, drawn by app.js from the real node positions */
.fl-base { fill: none; stroke: #252b33; stroke-width: 1.25; }
.fl-trail { fill: none; stroke: url(#fl-grad); stroke-width: 2; stroke-linecap: round; opacity: 0.9; }
.fl-dot { fill: #e6f0fa; }
.fl-halo { fill: rgba(137, 170, 204, 0.25); }

/* ---------- 4 · why now: big number + sources ---------- */
.why { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s8); }
.why__fig { display: grid; align-content: start; gap: var(--s4); }
.why__num { font-size: clamp(8rem, 5rem + 14vw, 15rem); font-weight: var(--weight-medium); line-height: 0.8; letter-spacing: -0.06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why__cap { max-width: 20rem; font-size: var(--text-lg); color: var(--text-2); }
.why__main { display: grid; align-content: start; gap: var(--s4); }
.why__main .h2 { max-width: 20ch; margin-bottom: var(--s4); }
.src { border-top: 1px solid var(--stroke-2); }
.src__row { position: relative; display: grid; gap: var(--s2); padding: var(--s6) 0; border-bottom: 1px solid var(--stroke-2); text-decoration: none; }
.src__meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--blue); }
.src__title { font-size: 1.25rem; font-weight: var(--weight-medium); letter-spacing: -0.02em; transition: color var(--med) var(--ease); }
.src__note { max-width: 36rem; font-size: var(--text-sm); color: var(--muted); }

/* ---------- 5 · pilot pass ---------- */
.pass { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); max-width: 880px; margin: 0 auto; border: 1px solid #333; border-radius: var(--r-lg); background: radial-gradient(90% 140% at 0% 0%, rgba(78, 133, 191, 0.2), transparent 60%), var(--surface); }
.pass__stub { position: relative; display: grid; align-content: center; gap: var(--s1); padding: var(--s7) var(--s6); border-bottom: 2px dashed #2e2e2e; }
.pass__stub::before, .pass__stub::after { content: ""; position: absolute; bottom: -13px; width: 24px; height: 24px; border-radius: var(--r-pill); background: var(--bg); border: 1px solid #333; }
.pass__stub::before { left: -13px; clip-path: inset(0 0 0 50%); }
.pass__stub::after { right: -13px; clip-path: inset(0 50% 0 0); }
.pass__kind { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--track-caps); color: var(--blue); }
.pass__big { font-size: clamp(2.25rem, 1.8rem + 1.4vw, 2.875rem); font-weight: var(--weight-medium); line-height: 1; letter-spacing: var(--track-display); white-space: nowrap; }
.pass__seats { font-size: var(--text-sm); color: var(--muted); }
.pass__main { display: grid; align-content: center; justify-items: start; gap: var(--s6); padding: var(--s7) var(--s6); }
.pass__title { font-size: var(--text-h2); line-height: 1.12; letter-spacing: var(--track-heading); text-wrap: balance; }
.pass__list { display: grid; gap: var(--s3); }
.pass__list li { display: flex; align-items: flex-start; gap: var(--s3); color: var(--text-2); }
.pass__list .ic { margin-top: 4px; color: var(--blue); }

/* ---------- 6 · questions (open grid) ---------- */
.qa { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--stroke-2); }
.qa__item { display: grid; align-content: start; gap: var(--s2); padding: var(--s6) 0; border-bottom: 1px solid var(--stroke-2); }
.qa dt { font-size: var(--text-h3); font-weight: var(--weight-medium); letter-spacing: -0.015em; }
.qa dd { font-size: var(--text-sm); line-height: 1.7; color: var(--muted); }

/* ---------- footer ---------- */
.foot { padding: var(--s11) 0 var(--s7); }
.foot__cta { display: grid; justify-items: start; gap: var(--s7); padding-bottom: var(--s10); border-bottom: 1px solid var(--stroke-2); }
.foot__big { font-size: clamp(2.75rem, 1.2rem + 6vw, 6rem); font-weight: var(--weight-medium); line-height: 0.98; letter-spacing: var(--track-display); }
.foot__big span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot__row { display: grid; gap: var(--s5); padding: var(--s7) 0; }
.foot__brand { display: inline-flex; align-items: center; gap: var(--s3); font-size: var(--text-lg); font-weight: var(--weight-semibold); text-decoration: none; }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); }
.foot__links a { display: inline-flex; align-items: center; min-height: 36px; font-size: var(--text-sm); color: var(--muted); text-decoration: none; transition: color var(--fast) var(--ease); }
.foot__links a:hover { color: var(--text); }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); padding-top: var(--s5); border-top: 1px solid var(--stroke); font-size: var(--text-xs); color: #5c5c5c; }

/* ---------- dialog ---------- */
.waitlist { width: min(28rem, calc(100vw - var(--s7))); max-width: none; padding: 0; border: 1px solid var(--stroke-2); border-radius: var(--r-card); background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -20px var(--shadow); }
.waitlist::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.waitlist[open] { animation: enter 0.36s var(--ease); }
.waitlist__form { position: relative; padding: var(--s8) var(--s6) var(--s6); }
.waitlist__close { position: absolute; top: var(--s3); right: var(--s3); display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r-pill); background: var(--stroke); color: var(--text); cursor: pointer; }
.waitlist__close:hover { background: var(--stroke-2); }
.waitlist__title { padding-right: var(--s8); font-size: 1.75rem; letter-spacing: var(--track-heading); line-height: 1.15; }
.waitlist__desc { margin-top: var(--s3); font-size: var(--text-sm); color: var(--muted); }
.field { display: grid; gap: var(--s2); margin-top: var(--s6); font-size: var(--text-sm); font-weight: var(--weight-medium); }
.field input { min-height: 50px; width: 100%; padding: var(--s3) var(--s5); border: 1px solid var(--stroke-2); border-radius: var(--r-pill); background: var(--bg); font-size: var(--text-md); font-weight: var(--weight-regular); color: var(--text); }
.field input::placeholder { color: #5c5c5c; }
.field input:focus { border-color: var(--blue); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist__error { min-height: 2.4em; padding: var(--s2) var(--s2) 0; font-size: var(--text-sm); color: var(--error); }
.waitlist__fine { margin-top: var(--s3); text-align: center; font-size: var(--text-sm); color: var(--muted); }
[data-step="done"] .waitlist__title::before { content: ""; display: block; width: 12px; height: 12px; margin-bottom: var(--s4); border-radius: var(--r-pill); background: var(--grad); box-shadow: var(--glow); }
[data-step="done"] .btn { margin-top: var(--s7); }

/* ---------- ≥ 640 ---------- */
@media (min-width: 640px) {
  .shell { padding: 0 var(--s8); }
  .sec { padding: var(--s11) 0; }
  .sec--say { padding-top: var(--s10); }
  .nav { padding-top: var(--s5); }
  .nav__div { display: block; }
  .nav__link { padding: var(--s2) var(--s4); font-size: var(--text-sm); }
  .win__dots { display: inline-flex; }
  .win__nav { display: inline-flex; }
  .dpane--app { padding: var(--s7) var(--s8); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
  .pass { grid-template-columns: 250px minmax(0, 1fr); }
  .pass__stub { border-bottom: 0; border-right: 2px dashed #2e2e2e; }
  .pass__stub::before, .pass__stub::after { bottom: auto; left: auto; right: -13px; }
  .pass__stub::before { top: -13px; clip-path: inset(50% 0 0 0); }
  .pass__stub::after { bottom: -13px; clip-path: inset(0 0 50% 0); }
  .pass__main { padding: var(--s8); }
  .qa { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s9); }
  .foot__row { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .foot__links { justify-content: flex-end; }
}

/* ---------- ≥ 1024 ---------- */
@media (min-width: 1024px) {
  .split-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--s9); margin-bottom: var(--s10); }
  .split-head .lede { padding-bottom: var(--s1); }
  .center-head { margin-bottom: var(--s9); }
  .flow { grid-template-columns: minmax(0, 1fr) minmax(56px, 0.45fr) minmax(0, 0.9fr) minmax(56px, 0.45fr) minmax(0, 1.25fr); align-items: center; gap: 0; }
  .flow__svg { display: block; }
  .flow__link { visibility: hidden; }
  .port { display: block; }
  .why { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s10); align-items: start; }
}

@media (max-width: 399px) {
  .nav__links .nav__link:first-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .js .reveal, .js .in-name, .js .in-up { opacity: 1; transform: none; }
  .js .say .w { opacity: 1; }
}
