/* Think & Apply Solutions — "The Breakout" brand. Dark is the default theme; [data-theme=light] flips the tokens. */

:root {
  --bg: #07080f;
  --bg-2: #0c0e1a;
  --surface: #11132a;
  --surface-2: #171a36;
  --line: rgba(233, 235, 255, .09);
  --line-2: rgba(233, 235, 255, .16);
  --ink: #eceeff;
  --ink-2: #a8acd0;
  --ink-3: #6d7199;
  --violet: #6c4dff;
  --blue: #2f8bff;
  --mint: #00e0b8;
  --amber: #ffb547;
  --rose: #ff4f7a;
  --grad: linear-gradient(100deg, #8b6cff 0%, #2f8bff 50%, #00e0b8 100%);
  --glow: 0 0 0 1px rgba(108, 77, 255, .35), 0 20px 60px -20px rgba(47, 139, 255, .45);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --radius: 22px;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --nav-h: 72px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f6fb;
  --bg-2: #eeeef8;
  --surface: #ffffff;
  --surface-2: #f2f2fa;
  --line: rgba(17, 19, 42, .09);
  --line-2: rgba(17, 19, 42, .16);
  --ink: #10122a;
  --ink-2: #4a4e72;
  --ink-3: #7c80a3;
  --mint: #00a88a;
  --grad: linear-gradient(100deg, #6c4dff 0%, #2f6fff 50%, #00a88a 100%);
  --glow: 0 0 0 1px rgba(108, 77, 255, .25), 0 20px 50px -24px rgba(47, 139, 255, .4);
  --shadow: 0 30px 70px -36px rgba(30, 30, 80, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
  transition: background-color .4s, color .4s;
}
body::before { /* faint engineering grid */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .35;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--surface); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--ink-2); max-width: 620px; }
.eyebrow { font: 600 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin: 0 0 18px; }
.eyebrow.center { text-align: center; }
kbd { font: 600 .72rem var(--mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); }

/* ---------- brand mark ---------- */
.mark { display: inline-block; width: 38px; height: 38px; flex: none; }
.mark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mark.big { width: 72px; height: 72px; }
.mark .m-arrow, .mark .m-head { stroke-dasharray: 60; stroke-dashoffset: 0; }
.brand:hover .mark .m-arrow, .brand:hover .mark .m-head { animation: m-draw .9s cubic-bezier(.6, 0, .2, 1); }
.brand:hover .mark .m-seed { animation: m-pop .9s; }
@keyframes m-draw { 0% { stroke-dashoffset: 60; } 100% { stroke-dashoffset: 0; } }
@keyframes m-pop { 40% { transform: scale(1.6); } }
.mark .m-seed { transform-box: fill-box; transform-origin: center; }

/* ---------- buttons ---------- */
.btn {
  --pad: 14px 24px; display: inline-flex; align-items: center; gap: 10px; padding: var(--pad);
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background .25s, border-color .25s;
  position: relative;
}
.btn i { font-style: normal; transition: transform .25s; }
.btn:hover i { transform: translate(3px, -3px); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow); background-size: 160% 100%; }
.btn-primary:hover { background-position: 100% 0; transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-2); background: color-mix(in srgb, var(--surface) 60%, transparent); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--blue); transform: translateY(-2px); }
.btn-sm { --pad: 9px 16px; font-size: .9rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface);
  display: inline-grid; place-items: center; transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--blue); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
:root[data-theme="light"] .icon-btn .sun, :root:not([data-theme="light"]) .icon-btn .moon { display: none; }

/* ---------- progress + nav ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; }
.progress i { display: block; height: 100%; width: 0; background: var(--grad); }
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); display: flex; align-items: center; gap: 24px;
  padding: 0 clamp(16px, 4vw, 48px); transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-logo { display: block; height: 48px; width: auto; max-width: none; }
.f-logo { height: 50px; }
:root[data-theme="light"] .logo-on-dark, :root:not([data-theme="light"]) .logo-on-light { display: none; }
.mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark b { font: 800 1.28rem/1 var(--display); letter-spacing: -.03em; }
.wordmark em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 1px; }
.wordmark small { font: 600 .62rem/1 var(--mono); letter-spacing: .42em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: .95rem; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); background: var(--surface-2); }
.nav-links .nav-cta { background: var(--grad); color: #fff; margin-left: 8px; }
.nav-links .nav-cta:hover, .nav-links .nav-cta.on { color: #fff; background: var(--grad); }
.nav-links .nav-cta:hover { filter: brightness(1.1); }
.nav-tools { display: flex; gap: 8px; align-items: center; }
.kbd-btn { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 10px 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-3); font-size: .9rem; }
.kbd-btn:hover { border-color: var(--blue); color: var(--ink-2); }
.nav-toggle { display: none; position: relative; }
.nav-toggle span { position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px; background: currentColor; border-radius: 2px; transition: transform .3s; transform: translateY(-4px); }
.nav-toggle span + span { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span + span { transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: calc(var(--nav-h) + 32px) clamp(16px, 5vw, 72px) 72px; position: relative; max-width: 1440px; margin: 0 auto;
}
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .86rem; color: var(--ink-2); margin: 0 0 26px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 var(--mint); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { font-size: clamp(2.5rem, 4.7vw, 4.5rem); font-weight: 800; letter-spacing: -.045em; line-height: .98; margin-bottom: 26px; }
.h-line { display: block; }
.strike { position: relative; color: var(--ink-3); font-weight: 600; font-size: .62em; vertical-align: .32em; margin-right: .12em; }
.strike::after { content: ''; position: absolute; left: -4%; right: -4%; top: 52%; height: .09em; background: var(--rose); transform: rotate(-8deg) scaleX(0); transform-origin: left; animation: strike .6s 1s cubic-bezier(.7, 0, .2, 1) forwards; }
@keyframes strike { to { transform: rotate(-8deg) scaleX(1); } }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 18px; }
.hint { font-size: .88rem; color: var(--ink-3); min-height: 1.4em; }
.hero-stage {
  position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: center; border-radius: 32px;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--violet) 22%, transparent), transparent 60%), radial-gradient(circle at 80% 90%, color-mix(in srgb, var(--mint) 14%, transparent), transparent 55%), var(--bg-2);
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; touch-action: pan-y; user-select: none; cursor: grab;
}
.hero-stage.grabbing { cursor: grabbing; }
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-tag { position: absolute; font: 600 .7rem var(--mono); letter-spacing: .3em; color: var(--ink-3); }
.stage-tag.tl { left: 22px; top: 20px; }
.stage-tag.tr { right: 22px; top: 20px; color: var(--mint); }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px; translate: -50% 0; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px; background: var(--ink-2); translate: -50% 0; animation: cue 1.8s infinite; }
@keyframes cue { 60% { transform: translateY(12px); opacity: 0; } }

/* ---------- hero: intent chips + product orbit ---------- */
.intent { margin-top: 26px; }
.intent-q { font: 600 .74rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.intent-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.intent-chips button {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: .92rem; font-weight: 500; transition: all .25s;
}
.intent-chips button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.intent-chips button:hover { color: var(--ink); border-color: var(--c); transform: translateY(-1px); }
.intent-chips button[aria-pressed="true"] { color: var(--ink); border-color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); box-shadow: 0 8px 22px -12px var(--c); }
.intent-chips.auto button[aria-pressed="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c); transform-origin: left; animation: fill var(--auto, 4.2s) linear; }
.hero-stage .stage-tag { z-index: 130; pointer-events: none; }
.orbit-core { position: absolute; left: 50%; top: 44%; translate: -50% -50%; width: clamp(62px, 15%, 92px); aspect-ratio: 1; z-index: 50; pointer-events: none; }
.orbit-core .mark { width: 100%; height: 100%; position: relative; z-index: 1; filter: drop-shadow(0 18px 28px rgba(47, 139, 255, .4)); }
.orbit-core i { position: absolute; inset: 0; border-radius: 26%; border: 2px solid var(--blue); opacity: 0; animation: ring 3.2s cubic-bezier(.2, .6, .3, 1) infinite; }
.orbit-core i + i { animation-delay: 1.6s; border-color: var(--mint); }
@keyframes ring { 0% { transform: scale(.95); opacity: .55; } 100% { transform: scale(2.6); opacity: 0; } }
.orbit { position: absolute; inset: 0; }
.o-tile {
  position: absolute; left: 0; top: 0; width: clamp(100px, 22%, 136px); padding: 12px 10px; border-radius: 18px; border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(8px); display: grid; justify-items: center; gap: 5px; text-align: center;
  box-shadow: 0 14px 30px -18px rgba(20, 20, 60, .45); transform-origin: center; will-change: transform; transition: border-color .3s, box-shadow .3s;
}
.o-tile b { font: 700 .9rem/1.1 var(--display); }
.o-tile small { font-size: .66rem; line-height: 1.2; color: var(--ink-3); }
.o-tile.front { border-color: var(--c); box-shadow: 0 22px 44px -16px color-mix(in srgb, var(--c) 65%, transparent); }
.o-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.o-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.o-tile.front .o-ico { background: var(--c); color: #fff; }
.spot-card {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 120; padding: 12px 14px; border-radius: 18px; cursor: default;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--c, var(--blue)) 45%, var(--line-2)); box-shadow: var(--shadow);
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; transition: border-color .4s;
}
.sc-text { min-width: 0; animation: fade .45s; }
.sc-text b { display: block; font: 700 1.05rem var(--display); }
.sc-text span { display: block; font-size: .84rem; color: var(--ink-2); line-height: 1.35; }
.sc-actions { display: flex; gap: 8px; }
.spot-card .btn-primary { background: var(--c); box-shadow: 0 10px 24px -12px var(--c); }

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--bg-2); }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font: 600 1.05rem var(--display); white-space: nowrap; color: var(--ink-2); display: flex; align-items: center; gap: 48px; }
.ticker-track span::after { content: '✦'; color: var(--mint); font-size: .8rem; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) clamp(16px, 5vw, 72px); max-width: 1440px; margin: 0 auto; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin-bottom: 18px; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- manifesto ---------- */
.manifesto { height: 300vh; position: relative; }
.manifesto-sticky {
  position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto 1fr;
  align-items: center; gap: 0 clamp(24px, 5vw, 80px); padding: calc(var(--nav-h) + 24px) clamp(16px, 5vw, 72px) 40px; max-width: 1440px; margin: 0 auto;
}
.manifesto .eyebrow { grid-column: 1 / -1; }
.m-words { display: flex; flex-direction: column; font: 800 clamp(3.6rem, 11vw, 9.5rem)/.92 var(--display); letter-spacing: -.05em; }
.m-words span { color: color-mix(in srgb, var(--ink) 9%, transparent); transition: color .5s, transform .5s; transform-origin: left; }
.m-words span.on { color: var(--ink); transform: translateX(14px); }
.m-words span.on[data-i="1"] { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-words span.on[data-i="2"] { color: var(--mint); }
.m-panels { position: relative; min-height: 260px; }
.m-panel { position: absolute; inset: 0; opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .5s; pointer-events: none; }
.m-panel.on { opacity: 1; transform: none; pointer-events: auto; }
.m-panel h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin-bottom: 18px; }
.m-panel p { color: var(--ink-2); font-size: 1.12rem; }
.m-rail { position: absolute; left: clamp(16px, 5vw, 72px); right: clamp(16px, 5vw, 72px); bottom: 32px; height: 2px; background: var(--line); }
.m-rail i { display: block; height: 100%; width: 0; background: var(--grad); }

/* ---------- product theater ---------- */
.switcher { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.switcher button {
  display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--surface); font-weight: 600; color: var(--ink-2); transition: all .25s;
}
.switcher button i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 12px var(--c); transition: transform .3s; }
.switcher button:hover { color: var(--ink); border-color: var(--c, var(--blue)); }
.switcher button[aria-selected="true"] { color: var(--ink); background: var(--surface-2); border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 10px 30px -14px var(--accent); }
.switcher button[aria-selected="true"] i { transform: rotate(45deg) scale(1.2); }
.theater {
  --accent: #8b6cff; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(20px, 3vw, 44px);
  padding: clamp(20px, 3vw, 40px); border-radius: 30px; border: 1px solid var(--line); position: relative; overflow: hidden;
  background: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%), var(--surface);
  box-shadow: var(--shadow); transition: background .6s;
}
.th-info > * { transition: opacity .35s, transform .35s; }
.theater.swap .th-info > *, .theater.swap .th-window { opacity: 0; transform: translateY(10px); }
.th-kicker { font: 600 .74rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.th-name { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; }
.th-tag { font-size: 1.1rem; color: var(--ink-2); margin: 8px 0 22px; }
.th-ps { display: grid; gap: 10px; margin-bottom: 20px; }
.th-ps > div { padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 1px dashed var(--line-2); }
.th-ps > div.out { border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 9%, var(--bg-2)); }
.th-ps span { font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); }
.th-ps .out span { color: var(--accent); }
.th-ps p { margin: 4px 0 0; font-size: .95rem; }
.th-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.th-stats div { padding: 12px; border-radius: 14px; background: var(--bg-2); text-align: center; }
.th-stats b { display: block; font: 800 1.45rem var(--display); color: var(--accent); }
.th-stats span { font-size: .76rem; color: var(--ink-3); line-height: 1.3; display: block; }
.th-features { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.th-features li { display: flex; gap: 10px; font-size: .95rem; color: var(--ink-2); }
.th-features li::before { content: '↗'; color: var(--accent); font-weight: 700; }
.th-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.theater .btn-primary { background: linear-gradient(100deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--mint))); box-shadow: 0 16px 40px -16px var(--accent); }
.th-stage { display: flex; flex-direction: column; min-width: 0; }
.th-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.th-tabs button { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink-3); font-size: .88rem; font-weight: 600; }
.th-tabs button.on { background: var(--bg-2); color: var(--ink); border-color: var(--line-2); }
.th-window { flex: 1; border-radius: 18px; border: 1px solid var(--line-2); background: var(--bg); overflow: hidden; display: flex; flex-direction: column; min-height: 470px; transition: opacity .35s, transform .35s; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.win-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.win-bar span:first-child { background: #ff5f57; } .win-bar span:nth-child(2) { background: #febc2e; } .win-bar span:nth-child(3) { background: #28c840; }
.win-bar b { margin: 0 auto; font: 500 .74rem var(--mono); color: var(--ink-3); padding: 4px 14px; border-radius: 8px; background: var(--bg); max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-body { flex: 1; padding: 18px; position: relative; min-height: 0; }
.demo-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.demo-note { font-size: .8rem; color: var(--ink-3); margin: 10px 0 0; }

/* gallery */
.gallery { display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr auto; gap: 10px; }
.g-main { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg-2); cursor: zoom-in; min-height: 0; }
.g-main img { width: 100%; height: 100%; object-fit: cover; object-position: top left; animation: fade .5s; }
.g-main figcaption { position: absolute; left: 10px; bottom: 10px; padding: 6px 12px; border-radius: 10px; background: rgba(7, 8, 15, .78); color: #fff; font-size: .82rem; backdrop-filter: blur(6px); }
.g-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.g-thumbs button { flex: none; width: 92px; height: 58px; border-radius: 8px; border: 2px solid transparent; padding: 0; overflow: hidden; background: var(--bg-2); opacity: .6; transition: opacity .2s, border-color .2s; }
.g-thumbs button.on { border-color: var(--accent); opacity: 1; }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
@keyframes fade { from { opacity: 0; transform: scale(1.02); } }

/* ---- demo: Novendra ---- */
.nv-portals { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.nv-portals span { font-size: .74rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-3); transition: all .3s; }
.nv-portals span.on { border-color: var(--accent); color: var(--ink); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.nv-agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.nv-agents div { font-size: .74rem; padding: 7px 8px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.nv-agents div::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); flex: none; }
.nv-agents div.run { color: var(--ink); } .nv-agents div.run::before { background: var(--amber); animation: pulse 1s infinite; }
.nv-agents div.ok { color: var(--ink); } .nv-agents div.ok::before { background: var(--mint); }
.nv-jobs { display: grid; gap: 6px; margin-bottom: 12px; min-height: 120px; }
.nv-job { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; padding: 9px 12px; border-radius: 12px; background: var(--bg-2); animation: slide .4s both; transition: opacity .4s; }
.nv-job b { font-size: .9rem; } .nv-job small { color: var(--ink-3); grid-column: 1; font-size: .76rem; }
.nv-job em { grid-row: 1 / 3; grid-column: 2; font: 700 .9rem var(--mono); font-style: normal; color: var(--mint); }
.nv-job.low { opacity: .3; } .nv-job.low em { color: var(--rose); }
.nv-job.applied em::after { content: ' ✓ applied'; font-size: .7rem; color: var(--ink-2); }
@keyframes slide { from { opacity: 0; transform: translateX(-12px); } }
.nv-ats { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: .82rem; color: var(--ink-2); }
.nv-ats .bar, .bar { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.nv-ats b { font: 700 .95rem var(--mono); min-width: 3.4em; text-align: right; }
.log { font: .76rem/1.6 var(--mono); color: var(--ink-3); margin-top: 10px; height: 64px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.log div { animation: slide .3s both; } .log div b { color: var(--mint); font-weight: 600; }

/* ---- demo: Canvora ---- */
.cv-wrap { display: grid; gap: 10px; }
.cv-code { width: 100%; min-height: 108px; resize: vertical; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); font: .84rem/1.55 var(--mono); }
.cv-canvas { border-radius: 12px; border: 1px solid var(--line); height: 290px; position: relative; overflow: hidden;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 18px 18px; }
.cv-canvas svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.cv-node rect, .cv-node path.shape { fill: var(--surface); stroke-width: 2; }
.cv-node text { font: 600 12px var(--body); fill: var(--ink); text-anchor: middle; dominant-baseline: middle; }
.cv-node { animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; transform-box: fill-box; transform-origin: center; }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
.cv-edge { fill: none; stroke: var(--ink-3); stroke-width: 2; }
.cv-edge.dash { stroke-dasharray: 6 5; }

/* ---- demo: Brio ---- */
.term { background: #090a14; color: #d8dbff; border-radius: 12px; padding: 14px; font: .8rem/1.6 var(--mono); height: 330px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line); }
:root[data-theme="light"] .term { background: #10122a; }
.term .p { color: #19d3a2; } .term .s { color: #8b9bff; } .term .ok { color: #28c840; } .term .k { color: #ff79c6; } .term .c { color: #6d7199; } .term .st { color: #ffb547; }
.term .cursor { display: inline-block; width: 8px; height: 1em; background: #19d3a2; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.br-steps { display: flex; gap: 6px; margin-top: 10px; }
.br-steps span { flex: 1; text-align: center; font-size: .74rem; padding: 6px; border-radius: 8px; background: var(--bg-2); color: var(--ink-3); transition: all .3s; }
.br-steps span.on { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); }

/* ---- demo: TaskFlow ---- */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kcol { background: var(--bg-2); border-radius: 12px; padding: 8px; min-height: 280px; transition: background .2s, outline-color .2s; outline: 2px dashed transparent; outline-offset: -2px; }
.kcol.over { outline-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg-2)); }
.kcol h4 { margin: 2px 4px 10px; font: 600 .74rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); display: flex; justify-content: space-between; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--p, var(--blue)); border-radius: 10px; padding: 8px 9px; margin-bottom: 7px; font-size: .8rem; cursor: grab; user-select: none; touch-action: none; transition: transform .15s, box-shadow .15s; }
.kcard small { display: flex; justify-content: space-between; color: var(--ink-3); margin-top: 4px; font-size: .7rem; }
.kcard:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); }
.kcard.dragging { position: fixed; z-index: 90; pointer-events: none; transform: rotate(3deg) scale(1.04); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6); }
.kcol[data-col="done"] .kcard { opacity: .7; } .kcol[data-col="done"] .kcard b { text-decoration: line-through; }
.k-progress { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 12px; font-size: .84rem; color: var(--ink-2); }
.k-progress b { font-family: var(--mono); }

/* ---- demo: Stickora ---- */
.sk-board { position: relative; height: 340px; border-radius: 12px; background: var(--bg-2); overflow: hidden;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 22px 22px; }
.note { position: absolute; width: 150px; min-height: 120px; padding: 12px; border-radius: 4px 4px 14px 4px; color: #1d1d2b; font-size: .82rem; line-height: 1.45; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .45); cursor: grab; touch-action: none; user-select: none; transition: box-shadow .2s, rotate .3s; rotate: var(--r, 0deg); }
.note b { display: block; font-family: var(--display); font-size: .95rem; margin-bottom: 4px; }
.note[contenteditable="true"] { cursor: text; user-select: text; outline: 2px solid #1d1d2b; }
.note.lift { box-shadow: 0 24px 40px -10px rgba(0, 0, 0, .55); rotate: 0deg; z-index: 5; }
.note.y { background: #ffe27a; } .note.p { background: #ffb3d1; } .note.b { background: #a9d4ff; } .note.g { background: #b6f0c5; } .note.o { background: #ffc59a; }
.note ul { margin: 0; padding-left: 16px; }
.note .ring { width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(#1d1d2b var(--v), rgba(0, 0, 0, .12) 0); display: grid; place-items: center; margin-top: 6px; }
.note .ring::after { content: attr(data-v); width: 30px; height: 30px; border-radius: 50%; background: inherit; display: grid; place-items: center; font: 700 .66rem var(--mono); background: #b6f0c5; }

/* ---- demo: Assessment ---- */
.qz-top { display: flex; justify-content: space-between; align-items: center; font: 600 .8rem var(--mono); color: var(--ink-3); margin-bottom: 12px; }
.qz-timer { padding: 4px 10px; border-radius: 8px; background: var(--bg-2); color: var(--ink); }
.qz-timer.low { color: var(--rose); }
.qz-q { font: 600 1.08rem/1.4 var(--display); margin: 0 0 14px; }
.qz-opts { display: grid; gap: 8px; }
.qz-opts button { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: .92rem; display: flex; gap: 12px; align-items: center; transition: border-color .2s, background .2s; }
.qz-opts button span { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; font: 700 .76rem var(--mono); background: var(--surface); }
.qz-opts button:hover { border-color: var(--accent); }
.qz-opts button.right { border-color: var(--mint); background: color-mix(in srgb, var(--mint) 14%, var(--bg-2)); }
.qz-opts button.wrong { border-color: var(--rose); background: color-mix(in srgb, var(--rose) 12%, var(--bg-2)); }
.qz-opts[aria-disabled="true"] button { pointer-events: none; }
.qz-ex { font-size: .86rem; color: var(--ink-2); margin: 12px 0 0; min-height: 2.6em; }
.qz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.qz-dots { display: flex; gap: 6px; } .qz-dots i { width: 22px; height: 6px; border-radius: 3px; background: var(--line-2); }
.qz-dots i.r { background: var(--mint); } .qz-dots i.w { background: var(--rose); } .qz-dots i.c { background: var(--accent); }
.qz-report { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.gauge { width: 170px; }
.gauge path { fill: none; stroke-width: 14; stroke-linecap: round; }
.gauge text { font: 800 30px var(--display); fill: var(--ink); text-anchor: middle; }
.gauge .lbl { font: 600 10px var(--mono); fill: var(--ink-3); letter-spacing: .1em; }

/* ---------- problem solver ---------- */
.solver { border-radius: 30px; border: 1px solid var(--line); background: var(--surface); padding: clamp(18px, 3vw, 36px); box-shadow: var(--shadow); }
.solver-input { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--bg-2); transition: border-color .2s, box-shadow .2s; }
.solver-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.prompt-mark { color: var(--mint); font-size: 1.2rem; }
.solver-input input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 1.05rem; padding: 10px 0; }
.solver-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 26px; }
.solver-chips button, .chips button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: .88rem; color: var(--ink-2); transition: all .2s; }
.solver-chips button:hover, .chips button:hover { border-color: var(--blue); color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: #fff; }
.solver-out { display: grid; grid-template-columns: 1fr; gap: 22px; }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; }
.flow::before { content: ''; position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: var(--line-2); }
.flow::after { content: ''; position: absolute; left: 6%; top: 50%; height: 2px; width: var(--fp, 0%); max-width: 88%; background: var(--grad); transition: width 1.6s cubic-bezier(.4, 0, .2, 1); }
.f-node { position: relative; z-index: 1; padding: 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); text-align: center; transition: all .4s; min-width: 0; }
.f-node em { display: block; font: 600 .66rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); font-style: normal; }
.f-node b { display: block; font-size: .86rem; margin-top: 4px; overflow-wrap: anywhere; }
.f-node.on { border-color: var(--blue); background: var(--surface-2); transform: translateY(-4px); box-shadow: var(--glow); }
.solver-card { border-radius: 20px; padding: 22px; background: var(--bg-2); border: 1px solid var(--line); min-height: 140px; }
.solver-card h3 { font-size: 1.6rem; margin: 4px 0 8px; }
.solver-card .why { color: var(--ink-2); margin: 0 0 16px; }
.solver-card .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.solver-card .k { font: 600 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.solver-card { animation: fade .5s; }

/* ---------- quotes ---------- */
.quotes { text-align: center; }
.q-stage { position: relative; max-width: 1040px; margin: 0 auto; min-height: 320px; display: flex; flex-direction: column; justify-content: center; padding: 30px 0; cursor: grab; touch-action: pan-y; user-select: none; }
.q-mark { position: absolute; left: 50%; top: -30px; translate: -50% 0; font: 800 14rem/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .22; pointer-events: none; }
.q-stage blockquote { margin: 0; font: 700 clamp(1.6rem, 3.8vw, 3.1rem)/1.15 var(--display); letter-spacing: -.025em; position: relative; }
.q-stage blockquote .w { display: inline-block; opacity: 0; transform: translateY(.4em) rotate(4deg); filter: blur(6px); animation: word .6s cubic-bezier(.2, .8, .2, 1) forwards; }
.q-stage blockquote .w.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes word { to { opacity: 1; transform: none; filter: none; } }
.q-by { color: var(--ink-3); font: 600 .9rem var(--mono); letter-spacing: .06em; margin-top: 26px; opacity: 0; animation: show .6s .6s forwards; }
@keyframes show { to { opacity: 1; } }
.q-by.own { color: var(--mint); }
.q-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.q-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.q-dots button { width: 26px; height: 6px; border-radius: 3px; border: 0; padding: 0; background: var(--line-2); position: relative; overflow: hidden; }
.q-dots button.on::after { content: ''; position: absolute; inset: 0; background: var(--grad); transform-origin: left; animation: fill var(--qt, 8s) linear forwards; }
.q-stage:hover ~ .q-controls .q-dots button.on::after, .quotes.paused .q-dots button.on::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } }

/* ---------- lab / pipeline ---------- */
.lab-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lab-card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.lab-card h3 { font-size: 1.4rem; }
.lab-card p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.lab-card ul { margin: 0 0 auto; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .88rem; }
.lab-card li::before { content: '✓  '; color: var(--mint); }
.lab-card .btn { align-self: flex-start; margin-top: 8px; }
.stage { align-self: flex-start; font: 600 .68rem var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line-2); }
.stage.beta { color: var(--mint); border-color: color-mix(in srgb, var(--mint) 50%, transparent); }
.spot::before { /* cursor spotlight */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--blue) 16%, transparent), transparent 60%);
}
.spot:hover::before { opacity: 1; }
.spot { transition: transform .3s, border-color .3s; }
.spot:hover { transform: translateY(-4px); border-color: var(--line-2); }

/* ---------- promise ---------- */
.promise { display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.clock-wrap { position: relative; width: clamp(220px, 28vw, 320px); aspect-ratio: 1; }
.clock { width: 100%; height: 100%; }
.clock-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.clock-center b { font: 800 2.4rem var(--display); letter-spacing: -.03em; }
.clock-center small { color: var(--ink-3); font: 500 .74rem var(--mono); }
.promise h2 { margin-bottom: 18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 32px; }
.stats div { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.stats b { display: block; font: 800 2.2rem var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { font-size: .84rem; color: var(--ink-3); }

/* ---------- contact ---------- */
.contact { border-radius: 30px; border: 1px solid var(--line); background: var(--surface); padding: clamp(20px, 4vw, 44px); display: grid; gap: 22px; box-shadow: var(--shadow); position: relative; }
.c-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: grid; gap: 7px; position: relative; }
.field > span, .choice legend { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); outline: none; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 16%, transparent); }
.field.bad input, .field.bad textarea { border-color: var(--rose); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.count { position: absolute; right: 12px; bottom: 10px; color: var(--ink-3); font: .72rem var(--mono); }
.choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice legend { margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice.bad .chips { animation: shake .4s; }
.c-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.c-err { color: var(--rose); margin: 0; font-size: .92rem; }
.c-err a { color: inherit; font-weight: 600; cursor: pointer; }
.c-done { position: absolute; inset: 0; border-radius: inherit; background: var(--surface); display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 24px; animation: fade .5s; }
.c-done[hidden] { display: none; }
.c-done h3 { font-size: 2rem; }
.c-done p { color: var(--ink-2); margin: 0; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px clamp(16px, 5vw, 72px); display: grid; grid-template-columns: auto 1fr; gap: 22px 40px; align-items: center; max-width: 1440px; margin: 0 auto; }
.f-brand { display: flex; gap: 14px; align-items: center; }
.f-brand p { margin: 2px 0 0; font-size: .9rem; }
.f-links { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: flex-end; }
.f-links a { color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.f-links a:hover { color: var(--ink); }
.footer > .small { grid-column: 1 / -1; margin: 0; }
.footer > .f-about { max-width: 760px; order: 1; line-height: 1.6; }
.footer > .small:last-child { order: 2; }

/* ---------- palette, lightbox, toast ---------- */
.palette { position: fixed; inset: 0; z-index: 95; background: rgba(4, 5, 12, .6); backdrop-filter: blur(6px); display: grid; justify-items: center; align-items: start; padding: 14vh 16px 16px; animation: fade .2s; }
.palette[hidden], .lightbox[hidden] { display: none; }
.palette-box { width: min(620px, 100%); border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.palette-box input { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 18px 20px; font-size: 1.05rem; outline: none; }
.palette-box ul { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow: auto; }
.palette-box li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; cursor: pointer; }
.palette-box li i { font-style: normal; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-2); flex: none; }
.palette-box li small { margin-left: auto; color: var(--ink-3); font-size: .78rem; }
.palette-box li.on { background: var(--surface-2); }
.palette-box li.empty { color: var(--ink-3); cursor: default; }
.palette-foot { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-3); }
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(4, 5, 12, .9); display: grid; place-items: center; padding: 60px 16px 24px; animation: fade .25s; }
.lightbox img { max-height: 82vh; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox p { color: #fff; margin: 12px 0 0; text-align: center; }
.lb-close { position: absolute; top: 14px; right: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 140px; z-index: 99; padding: 12px 20px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: .92rem; transition: translate .4s cubic-bezier(.2, .9, .3, 1.2); max-width: calc(100% - 32px); }
.toast.show { translate: -50% 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .lab-grid { grid-template-columns: repeat(2, 1fr); }
  .theater { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { padding: 8px 10px; }
}
@media (max-width: 920px) {
  .brand-logo { height: 40px; }
  .kbd-btn span { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px;
    background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .4s cubic-bezier(.2, .8, .2, 1); margin: 0;
  }
  .nav-links.open { transform: none; box-shadow: var(--shadow); }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; }
  .nav-links .nav-cta { margin: 8px 0 0; text-align: center; }
  .nav-tools { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 24px); }
  .hero-stage { max-width: 520px; }
  .scroll-cue { display: none; }
  .manifesto-sticky { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; align-content: center; }
  .m-panels { min-height: 230px; }
  .promise { grid-template-columns: 1fr; justify-items: center; }
  .promise > div:last-child { width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer { grid-template-columns: 1fr; }
  .f-links { justify-content: flex-start; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .wordmark small { letter-spacing: .3em; }
  .mark { width: 34px; height: 34px; }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .hero-stage { aspect-ratio: 4 / 5; }
  .hero-stage .stage-tag.tl { display: none; }
  .spot-card { grid-template-columns: auto 1fr; }
  .sc-actions { grid-column: 1 / -1; }
  .sc-actions .btn { flex: 1; justify-content: center; }
  .o-ico { width: 34px; height: 34px; }
  .o-tile small { display: none; }
  .lab-grid, .c-grid { grid-template-columns: 1fr; }
  .switcher { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 4px 16px 10px; scrollbar-width: none; }
  .switcher button { flex: none; }
  .th-stats b { font-size: 1.15rem; }
  .th-window { min-height: 420px; }
  .win-body { padding: 12px; }
  .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kcol { min-height: 150px; }
  .nv-agents { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; gap: 8px; }
  .flow::before, .flow::after { display: none; }
  .f-node { display: flex; justify-content: space-between; align-items: center; text-align: left; }
  .f-node b { margin: 0; }
  .qz-report { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .c-foot .btn { width: 100%; justify-content: center; }
  .solver-input { flex-wrap: wrap; padding: 8px 8px 8px 14px; }
  .solver-input .btn { width: 100%; justify-content: center; }
  .q-mark { font-size: 9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
