/* Kinju marketing site. Tokens mirror the design spec (Claude doc "Kinju — Website Design Spec"). */
:root {
  --bg: #0a0a0b;
  --bg-2: #0e0e10;
  --panel: #131315;
  --panel-2: #19191c;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.2);
  --text: #ededef;
  --text-2: #a1a1aa;
  --text-3: #63636b;
  --accent: #a3b4ff;
  --accent-dim: rgba(163, 180, 255, 0.14);
  --ok: #6fd8a8;
  --warn: #e9c46a;
  --bad: #f08a8a;

  --f-sans: "Geist", ui-sans-serif, -apple-system, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --maxw: 1200px;
  --gutter: 24px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code, .mono { font-family: var(--f-mono); font-size: 0.9em; }
::selection { background: var(--accent); color: #0a0a0b; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 140px 0; position: relative; }
.rule { border-top: 1px solid var(--line); }

/* ---------- type ---------- */
.kicker { font: 500 12px/1 var(--f-mono); letter-spacing: 0.04em; color: var(--text-3); text-transform: uppercase; display: inline-flex; gap: 10px; align-items: center; }
.kicker b { color: var(--text-2); font-weight: 500; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; margin: 0; }
.h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -0.035em; max-width: 15ch; margin-top: 22px; }
.h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; max-width: 22ch; margin-top: 18px; }
.dim { color: var(--text-3); }
.lede { color: var(--text-2); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; max-width: 560px; margin: 22px 0 0; }
.p { color: var(--text-2); margin: 16px 0 0; max-width: 480px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; font: 500 15px/1 var(--f-sans); border: 1px solid var(--line-2); transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease); white-space: nowrap; }
.btn:hover { border-color: var(--line-3); background: rgba(255, 255, 255, 0.03); }
.btn:active { transform: scale(0.98); }
.btn-light { background: var(--text); color: #0a0a0b; border-color: transparent; }
.btn-light:hover { background: #fff; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 15px; height: 15px; }
.link { color: var(--accent); display: inline-flex; gap: 6px; align-items: center; font-weight: 500; font-size: 15px; }
.link svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s; }
.nav.scrolled { background: rgba(10, 10, 11, 0.78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 36px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 18px/1 var(--f-sans); letter-spacing: -0.02em; }
.logo svg { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 26px; font-size: 14.5px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-cta .signin { color: var(--text-2); font-size: 14.5px; padding: 0 8px; }
.nav-cta .signin:hover { color: var(--text); }
.menu-btn { display: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); place-items: center; }

/* ---------- hero ---------- */
.hero { padding: 150px 0 0; }
.hero-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.hero-actions { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.hero-side { border-left: 1px solid var(--line); padding-left: 24px; }
.hero-side dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; font-size: 14.5px; }
.hero-side dt { font: 500 11.5px/1.9 var(--f-mono); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }
.hero-side dd { margin: 0; color: var(--text-2); }

/* ---------- figure frame: art backdrop + product shot ---------- */
.fig { margin: 0; position: relative; }
.stage { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #000; isolation: isolate; }
.stage > .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; z-index: -1; }
.stage > video.art { opacity: 0.75; }
.stage .shot { display: block; height: auto; width: calc(100% - 12%); margin: 7% 6% 0; border-radius: 10px 10px 0 0; border: 1px solid var(--line-2); border-bottom: 0; box-shadow: 0 30px 120px rgba(0, 0, 0, 0.75); }
.stage.inset .shot { margin: 6%; border-radius: 10px; border-bottom: 1px solid var(--line-2); }
.stage.hero-stage .shot { width: calc(100% - 11%); margin: 5.5% 5.5% 0; }
.stage .shot.crop { aspect-ratio: var(--ar, 16 / 10); object-fit: cover; object-position: var(--op, 0 0); }
/* registration marks */
.ticks > .t { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.ticks > .t i { position: absolute; width: 10px; height: 10px; border: 0 solid var(--line-3); }
.ticks > .t i:nth-child(1) { left: 12px; top: 12px; border-width: 1px 0 0 1px; }
.ticks > .t i:nth-child(2) { right: 12px; top: 12px; border-width: 1px 1px 0 0; }
.ticks > .t i:nth-child(3) { left: 12px; bottom: 12px; border-width: 0 0 1px 1px; }
.ticks > .t i:nth-child(4) { right: 12px; bottom: 12px; border-width: 0 1px 1px 0; }
.coord { position: absolute; z-index: 3; font: 400 10.5px/1 var(--f-mono); color: rgba(237, 237, 239, 0.38); letter-spacing: 0.05em; }
.coord.tl { left: 30px; top: 16px; } .coord.tr { right: 30px; top: 16px; }
.figcap { display: flex; gap: 14px; margin-top: 14px; font: 400 12.5px/1.5 var(--f-mono); color: var(--text-3); }
.figcap b { color: var(--text-2); font-weight: 500; white-space: nowrap; }

/* ---------- logos ---------- */
.logos { padding: 96px 0 0; }
.logos p { margin: 0 0 22px; text-align: center; color: var(--text-3); font-size: 14px; }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.logo-grid span { height: 84px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; color: #85858d; font-size: 21px; transition: color 0.2s; }
.logo-grid span:hover { color: var(--text); }
.lg-a { font-weight: 700; letter-spacing: -0.04em; }
.lg-b { font-family: var(--f-mono); font-size: 15px !important; letter-spacing: 0.2em; text-transform: uppercase; }
.lg-c { font-weight: 300; letter-spacing: 0.02em; }
.lg-d { font-weight: 600; font-style: italic; letter-spacing: -0.02em; }

/* ---------- loop (ask / approve / review) ---------- */
.loop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.loop-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.loop-card .crop { height: 250px; border-bottom: 1px solid var(--line); position: relative; background-color: #111113; background-repeat: no-repeat; background-size: var(--s, 220%) auto; background-position: var(--p, 0 0); }
.loop-card .crop::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 50px 16px var(--bg-2); pointer-events: none; }
.loop-card .txt { padding: 22px 24px 26px; }
.loop-card .n { font: 500 12px/1 var(--f-mono); color: var(--accent); }
.loop-card h3 { font-size: 20px; margin-top: 12px; }
.loop-card p { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }

/* ---------- feature rows ---------- */
.feature { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; }
.feature.flip { grid-template-columns: 1.2fr 0.8fr; }
.feature.flip > .copy { order: 2; }
.feature + .feature { margin-top: 150px; }
.bullets { list-style: none; margin: 28px 0 0; padding: 0; max-width: 460px; }
.bullets li { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: 15px; }
.bullets li:last-child { border-bottom: 1px solid var(--line); }
.bullets li svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--accent); }
.bullets li b { color: var(--text); font-weight: 500; }
.copy .link { margin-top: 24px; }

.codecard { position: absolute; right: 3%; bottom: 4%; z-index: 4; width: min(300px, 40%); border-radius: 10px; background: rgba(14, 14, 16, 0.94); border: 1px solid var(--line-2); backdrop-filter: blur(8px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); font: 400 11.5px/1.7 var(--f-mono); overflow: hidden; }
.codecard .fn { padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--text-3); display: flex; gap: 6px; align-items: center; }
.codecard .fn i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-3); }
.codecard .fn span { margin-left: 6px; }
.codecard pre { margin: 0; padding: 10px 14px 14px; color: var(--text-2); white-space: pre; min-height: 214px; overflow: hidden; }
.tok-k { color: var(--accent); } .tok-s { color: #e4e4e8; } .tok-c { color: var(--text-3); }
.caret::after { content: ""; display: inline-block; width: 6px; height: 13px; background: var(--accent); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* permission mode widget */
.modes-w { margin-top: 28px; max-width: 460px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); overflow: hidden; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.modes button { padding: 11px 8px; font: 500 12px/1 var(--f-mono); color: var(--text-3); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: color 0.2s, background 0.2s; }
.modes button:nth-child(3n) { border-right: 0; }
.modes button:nth-child(n + 4) { border-bottom: 0; }
.modes button.on { color: var(--text); background: var(--panel-2); box-shadow: inset 0 -1.5px 0 var(--accent); }
.modes button:hover { color: var(--text); }
.perm-list { list-style: none; margin: 0; padding: 6px 0; font: 400 13px/1 var(--f-mono); }
.perm-list li { display: flex; align-items: center; padding: 9px 16px; color: var(--text-2); }
.perm-list .res { margin-left: auto; font-size: 11.5px; display: inline-flex; gap: 7px; align-items: center; }
.perm-list .res::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.res.auto { color: var(--ok); } .res.ask { color: var(--warn); } .res.block { color: var(--text-3); }
.modes-w .note { padding: 11px 16px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; min-height: 64px; }

/* ---------- capability grid ---------- */
.caps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 56px; }
.cap { padding: 28px 26px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 0.3s; }
.cap:hover { background: var(--bg-2); }
.cap .ic { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-2); }
.cap .ic svg { width: 16px; height: 16px; }
.cap h3 { font-size: 16px; margin-top: 20px; letter-spacing: -0.01em; }
.cap p { margin: 8px 0 0; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }

/* ---------- demo ---------- */
.demo-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.prompts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 36px; }
.prompt-chip { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--text-2); transition: all 0.2s; }
.prompt-chip:hover { color: var(--text); border-color: var(--line-3); }
.prompt-chip.on { color: var(--text); border-color: var(--accent); background: var(--accent-dim); }
.prompt-chip:disabled { opacity: 0.45; cursor: default; }
.demo { margin-top: 20px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg-2); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.demo-bar .proj { font: 500 12px/1 var(--f-mono); color: var(--text-3); margin-right: 8px; white-space: nowrap; }
.agent { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 6px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); white-space: nowrap; transition: border-color 0.3s, color 0.3s; }
.agent .av { width: 16px; height: 16px; font-size: 9px; }
.agent .st { font: 400 11px var(--f-mono); color: var(--text-3); }
.agent.busy { border-color: var(--line-3); color: var(--text); }
.agent.busy .st { color: var(--accent); }
.av { display: inline-grid; place-items: center; flex: none; border-radius: 50%; font: 600 11px/1 var(--f-sans); color: #0a0a0b; position: relative; }
.agent.busy .av::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 1.4s var(--ease) infinite; }
@keyframes ping { from { opacity: 1; transform: scale(0.85); } to { opacity: 0; transform: scale(1.5); } }
.demo-bar .usage { margin-left: auto; font: 400 11.5px var(--f-mono); color: var(--text-3); white-space: nowrap; display: flex; gap: 8px; align-items: center; padding-left: 12px; }
.meter { width: 60px; height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.meter b { display: block; height: 100%; width: 12%; background: var(--text-2); transition: width 1s var(--ease); }
.app { display: grid; grid-template-columns: 1fr 340px; height: 600px; grid-template-rows: minmax(0, 1fr); }
.chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.feed { flex: 1; min-height: 0; overflow-y: auto; padding: 26px 28px 8px; display: flex; flex-direction: column; gap: 18px; font-size: 14.5px; line-height: 1.6; scroll-behavior: smooth; }
.feed::-webkit-scrollbar, .tasks-body::-webkit-scrollbar { width: 6px; }
.feed::-webkit-scrollbar-thumb, .tasks-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; }
.msg { display: flex; gap: 12px; animation: up 0.4s var(--ease); }
@keyframes up { from { opacity: 0; transform: translateY(6px); } }
.msg > .av { width: 24px; height: 24px; font-size: 10.5px; margin-top: 1px; }
.msg-body { flex: 1; min-width: 0; }
.msg-body .who { font-size: 13px; font-weight: 500; margin-bottom: 4px; display: flex; gap: 8px; align-items: baseline; }
.msg-body .who small { font: 400 11px var(--f-mono); color: var(--text-3); }
.msg p { margin: 0 0 8px; color: #d4d4d8; } .msg p:last-child { margin-bottom: 0; }
.msg code { font-size: 12.5px; padding: 1px 5px; border-radius: 4px; background: var(--panel-2); color: var(--text); }
.msg b { color: var(--text); font-weight: 500; }
.msg.user { justify-content: flex-end; }
.msg.user .msg-body { flex: 0 1 auto; max-width: 78%; background: var(--panel-2); border: 1px solid var(--line); padding: 9px 14px; border-radius: 14px 14px 4px 14px; }
.tools { display: flex; flex-wrap: wrap; column-gap: 16px; }
.tool { display: inline-flex; gap: 7px; align-items: center; font: 400 12px/1 var(--f-mono); color: var(--text-3); padding: 5px 0; animation: up 0.3s var(--ease); }
.tool::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
.caret-p::after { content: ""; display: inline-block; width: 6px; height: 14px; background: var(--text-2); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
.card { margin-top: 12px; border: 1px solid var(--line-2); border-radius: 12px; padding: 16px; background: var(--panel); animation: up 0.45s var(--ease); }
.card .k { display: flex; gap: 8px; align-items: center; font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
.card .k .pill { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 400; padding: 4px 8px; border-radius: 999px; background: rgba(233, 196, 106, 0.12); color: var(--warn); }
.card h4 { margin: 10px 0 6px; font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; }
.card .brief { margin: 0; color: var(--text-2); font-size: 13.5px; }
.card textarea { width: 100%; min-height: 96px; margin-top: 4px; padding: 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: 13.5px/1.5 var(--f-sans); resize: vertical; }
.card .meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font: 400 11.5px/1 var(--f-mono); color: var(--text-3); }
.card .meta span { display: inline-flex; gap: 6px; align-items: center; }
.card .acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.card .acts button { height: 30px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; color: var(--text-2); transition: all 0.2s; }
.card .acts button:hover { color: var(--text); border-color: var(--line-3); }
.card .acts .yes { background: var(--text); color: #0a0a0b; border-color: transparent; }
.card .acts .yes:hover { background: #fff; color: #0a0a0b; }
.card .acts button:disabled { opacity: 0.6; cursor: default; }
.card .verdict { display: flex; gap: 8px; align-items: center; margin-top: 12px; font: 400 12px/1 var(--f-mono); }
.card .verdict svg, .card .k svg { width: 12px; height: 12px; }
.card pre { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font: 400 12.5px/1.5 var(--f-mono); color: var(--text); white-space: pre-wrap; word-break: break-all; }
.card ul { margin: 8px 0 0; padding-left: 18px; color: var(--text-2); font-size: 13.5px; }
.pulse-hint { animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 50% { box-shadow: 0 0 0 4px rgba(163, 180, 255, 0.28); } }
.composer { margin: 10px 18px 18px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); padding: 8px 8px 8px 14px; }
.composer form { display: flex; gap: 8px; align-items: center; }
.composer input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: 14px var(--f-sans); }
.composer input::placeholder { color: var(--text-3); }
.composer .send { width: 30px; height: 30px; border-radius: 8px; background: var(--text); color: #0a0a0b; display: grid; place-items: center; }
.composer .send:disabled { background: var(--panel-2); color: var(--text-3); cursor: default; }
.composer .send svg { width: 14px; height: 14px; }
.tasks { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.tasks-head { height: 46px; flex: none; display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.tasks-head .count { margin-left: auto; font: 400 11.5px var(--f-mono); color: var(--text-3); }
.tasks-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.empty { margin: auto; text-align: center; color: var(--text-3); font-size: 13px; line-height: 1.6; padding: 20px; }
.task { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--panel); animation: up 0.4s var(--ease); }
.task .t-top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.task .t-top .av { width: 16px; height: 16px; font-size: 8.5px; }
.status { margin-left: auto; font: 400 11px/1 var(--f-mono); white-space: nowrap; }
.status.pending { color: var(--warn); } .status.running { color: var(--accent); } .status.done { color: var(--ok); } .status.declined { color: var(--text-3); }
.log { margin-top: 10px; font: 400 11.5px/1.75 var(--f-mono); color: var(--text-3); }
.log div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: up 0.3s var(--ease); }
.log .add { color: var(--ok); } .log .mod { color: var(--text-2); } .log .dim { color: var(--text-3); }
.progress { height: 2px; margin-top: 10px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress b { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.6s var(--ease); }
.task.done .progress b { background: var(--ok); }
.replay { margin-top: 14px; font: 400 12.5px var(--f-mono); color: var(--text-3); }
.replay button { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- team builder ---------- */
.team-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 16px; margin-top: 56px; }
.team-panel { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.team-panel h4 { margin: 0 0 8px 10px; font: 500 11.5px/1 var(--f-mono); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.role { display: flex; width: 100%; align-items: center; gap: 12px; padding: 10px; border-radius: 9px; text-align: left; transition: background 0.2s; border: 1px solid transparent; }
.role:hover { background: var(--panel); }
.role .av { width: 22px; height: 22px; font-size: 10px; opacity: 0.3; transition: opacity 0.2s; }
.role .nm { font-size: 14px; color: var(--text-2); }
.role .nm small { display: block; font: 400 11.5px var(--f-mono); color: var(--text-3); }
.role .tg { margin-left: auto; width: 30px; height: 18px; border-radius: 18px; background: var(--panel-2); border: 1px solid var(--line-2); position: relative; flex: none; transition: background 0.2s; }
.role .tg::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--text-3); transition: transform 0.25s var(--ease), background 0.25s; }
.role.on .av { opacity: 1; } .role.on .nm { color: var(--text); }
.role.on .tg { background: var(--text); border-color: var(--text); } .role.on .tg::after { transform: translateX(12px); background: #0a0a0b; }
.sublead { margin-top: 10px; border: 1px dashed var(--line-2); }
.sublead.on { border-style: solid; border-color: rgba(163, 180, 255, 0.5); background: var(--accent-dim); }
.team-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.team-stats div { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
.team-stats b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.team-stats small { font: 400 10.5px var(--f-mono); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.org { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-height: 500px; background: #000; }
.org > .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }
.org svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.org .node { transition: transform 0.7s var(--ease), opacity 0.5s; }
.org .flow { stroke-dasharray: 2 10; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.org-file { position: absolute; left: 30px; top: 30px; z-index: 2; font: 400 11px/1.6 var(--f-mono); color: var(--text-3); max-width: 300px; }
.org-file b { color: var(--text-2); font-weight: 500; }

/* ---------- quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.quote { margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); display: flex; flex-direction: column; gap: 24px; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.55; color: #d4d4d8; }
.quote figcaption { margin-top: auto; display: flex; gap: 12px; align-items: center; font-size: 14px; }
.quote figcaption .av { width: 32px; height: 32px; font-size: 12px; background: var(--panel-2); color: var(--text-2); border: 1px solid var(--line-2); }
.quote figcaption small { display: block; color: var(--text-3); font-size: 13px; }

/* ---------- pricing ---------- */
.price-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.bill { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); position: relative; }
.bill button { position: relative; z-index: 1; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: var(--text-2); transition: color 0.25s; display: inline-flex; gap: 8px; align-items: center; }
.bill button.on { color: #0a0a0b; }
.bill .knob { position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: 999px; background: var(--text); transition: transform 0.35s var(--ease), width 0.35s var(--ease); }
.bill .save { font: 500 11px/1 var(--f-mono); color: var(--accent); }
.bill button.on .save { color: #3d4a8a; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.plan { padding: 28px 24px 30px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.plan:last-child { border-right: 0; }
.plan.feat { background: var(--bg-2); box-shadow: inset 0 1.5px 0 var(--accent); }
.plan h3 { font-size: 17px; display: flex; gap: 10px; align-items: center; }
.plan h3 small { font: 400 11px/1 var(--f-mono); color: var(--accent); padding: 4px 7px; border: 1px solid rgba(163, 180, 255, 0.35); border-radius: 999px; letter-spacing: 0; }
.plan .for { margin: 8px 0 0; color: var(--text-2); font-size: 14px; min-height: 44px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 20px; min-height: 52px; margin-bottom: 4px; }
.price .amt { font-size: 44px; font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price .per { color: var(--text-3); font-size: 13px; line-height: 1.3; }
.plan .note { min-height: 20px; font: 400 12px/1.5 var(--f-mono); color: var(--text-3); }
.plan .btn { margin-top: 18px; justify-content: center; }
.plan ul { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-2); }
.plan li { display: flex; gap: 10px; }
.plan li svg { width: 14px; height: 14px; flex: none; margin-top: 4px; color: var(--text-3); }
.plan li.inc { color: var(--text); font-weight: 500; font-size: 13px; }
.seats { margin-top: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font: 400 12px/1 var(--f-mono); color: var(--text-3); }
.seats label { display: flex; justify-content: space-between; } .seats label b { color: var(--text); font-weight: 500; }
.seats input { width: 100%; margin: 12px 0 6px; accent-color: var(--text); }
.seats .tot { display: flex; justify-content: space-between; } .seats .tot b { color: var(--accent); font-weight: 400; }
.fine { margin-top: 22px; color: var(--text-3); font-size: 14px; }
.matrix-toggle { margin-top: 36px; }
.matrix { display: none; margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; overflow: auto; }
.matrix.open { display: block; animation: up 0.4s var(--ease); }
.matrix table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.matrix th, .matrix td { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; color: var(--text-2); }
.matrix thead th { font-weight: 500; background: var(--bg-2); }
.matrix .grp td { text-align: left; font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); padding-top: 22px; }
.matrix td svg { width: 14px; height: 14px; margin: 0 auto; color: var(--text); }
.matrix td.no { color: var(--text-3); }
.matrix tr:last-child td { border-bottom: 0; }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; gap: 16px; align-items: center; font-size: 16.5px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { margin-left: auto; width: 12px; height: 12px; position: relative; flex: none; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; top: 5.5px; width: 12px; height: 1px; background: var(--text-2); transition: transform 0.3s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .ans { padding: 0 40px 22px 0; color: var(--text-2); }
.faq .ans p { margin: 0; }

/* ---------- final ---------- */
.final { position: relative; padding: 190px 0 210px; overflow: hidden; text-align: center; border-top: 1px solid var(--line); }
.final video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.32; -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 75%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 75%, transparent); }
.final .wrap { position: relative; }
.final .h1 { margin: 22px auto 0; }
.final .lede { margin-left: auto; margin-right: auto; }
.final .hero-actions { justify-content: center; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 14px; }
.foot { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px; }
.foot h5 { margin: 0 0 14px; font: 500 11.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); }
.foot a:hover { color: var(--text); }
.foot .brand p { color: var(--text-3); margin: 14px 0 0; max-width: 260px; }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-3); font: 400 12px/1.5 var(--f-mono); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .caps { grid-template-columns: repeat(2, 1fr); }
  .app { grid-template-columns: 1fr 280px; }
  .team-wrap { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan:nth-child(2) { border-right: 0; }
  .plan:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .section { padding: 96px 0; }
  .nav-links, .nav-cta .signin { display: none; }
  .menu-btn { display: grid; }
  .nav.open .nav-links { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: rgba(10, 10, 11, 0.97); border-bottom: 1px solid var(--line); }
  .nav.open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .hero { padding-top: 112px; }
  .hero-top { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
  .hero-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .stage .shot, .stage.hero-stage .shot { width: calc(100% - 8%); margin: 9% 4% 0; }
  .coord { display: none; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .loop { grid-template-columns: 1fr; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip > .copy { order: 0; }
  .feature + .feature { margin-top: 96px; }
  .codecard { position: relative; left: auto; bottom: auto; width: auto; margin: 0 4% 4%; }
  .caps { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; grid-template-rows: 540px auto; height: auto; }
  .tasks { border-left: 0; border-top: 1px solid var(--line); }
  .tasks-body { max-height: 300px; }
  .quotes { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .plan:last-child { border-bottom: 0; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot { grid-template-columns: 1fr 1fr; } .foot .brand { grid-column: span 2; }
  .figcap { flex-direction: column; gap: 2px; }
  .org { min-height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* zoomed product crops: --zw is the image width relative to the frame, --zx/--zy the top-left of the crop (as % of the image) */
.stage .shot.zoom { position: relative; overflow: hidden; aspect-ratio: var(--ar, 16 / 10); background: #1d1c1a; }
.stage .shot.zoom img { position: absolute; left: 0; top: 0; width: var(--zw, 100%); max-width: none; height: auto; transform: translate(calc(var(--zx, 0%) * -1), calc(var(--zy, 0%) * -1)); }

.final::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 45% at 50% 45%, rgba(10, 10, 11, 0.85), transparent 75%); pointer-events: none; }
.final .wrap { z-index: 1; }

/* ---------- collaboration ---------- */
.collab { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; margin-top: 56px; align-items: stretch; }
.collab .fig { display: flex; flex-direction: column; }
.collab .stage.tall { flex: 1; display: flex; align-items: center; }
.collab .stage.tall .shot { margin: 7%; border-radius: 10px; border-bottom: 1px solid var(--line-2); width: 86%; }
.ws { border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg-2); display: flex; flex-direction: column; overflow: hidden; }
.ws-head { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ws-org { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; }
.ws-badge { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--text); color: #0a0a0b; font-size: 11px; font-weight: 600; }
.ws-tabs { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; }
.ws-tabs button { padding: 5px 11px; border-radius: 6px; font-size: 12.5px; color: var(--text-3); }
.ws-tabs button.on { background: var(--panel-2); color: var(--text); }
.ws-people { margin-left: auto; display: inline-flex; }
.ws-people span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 600; color: #0a0a0b; border: 2px solid var(--bg-2); margin-left: -6px; }
.ws-people .more { background: var(--panel-2); color: var(--text-2); }
.ws-body { flex: 1; padding: 6px 0; }
.ws-foot { padding: 11px 16px; border-top: 1px solid var(--line); font: 400 12px/1.5 var(--f-mono); color: var(--text-3); min-height: 44px; }
.ws-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.ws-row:last-child { border-bottom: 0; }
.ws-row .av { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.ws-row .t1 { font-size: 14px; font-weight: 500; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ws-row .t2 { font: 400 11.5px/1.5 var(--f-mono); color: var(--text-3); margin-top: 2px; }
.lvl { font: 400 10.5px/1 var(--f-mono); padding: 3px 7px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-weight: 400; }
.ws-btn { height: 28px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: all 0.2s; }
.ws-btn:hover { color: var(--text); border-color: var(--line-3); }
.ws-btn.done { color: var(--ok); border-color: rgba(111, 216, 168, 0.35); cursor: default; }
.ws-switch { width: 30px; height: 18px; border-radius: 18px; background: var(--panel-2); border: 1px solid var(--line-2); position: relative; flex: none; }
.ws-switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--text-3); transition: transform 0.25s var(--ease), background 0.25s; }
.ws-switch.on { background: var(--text); border-color: var(--text); }
.ws-switch.on::after { transform: translateX(12px); background: #0a0a0b; }
.ws-bar { height: 4px; border-radius: 4px; background: var(--line); margin-top: 7px; overflow: hidden; }
.ws-bar b { display: block; height: 100%; background: var(--text-2); width: 0; transition: width 0.9s var(--ease); }
.ws-amt { font: 400 13px var(--f-mono); color: var(--text); text-align: right; }
.collab-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 48px; }
.collab-points h3 { font-size: 16px; letter-spacing: -0.01em; }
.collab-points p { margin: 8px 0 0; color: var(--text-2); font-size: 14.5px; }

/* per-agent access picker */
.who { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; }
.who button { flex: 1; padding: 11px 10px 10px; text-align: left; border-right: 1px solid var(--line); transition: background 0.2s; min-width: 92px; }
.who button:last-child { border-right: 0; }
.who button .nm { display: flex; gap: 7px; align-items: center; font-size: 13px; color: var(--text-2); }
.who button .nm i { width: 7px; height: 7px; border-radius: 50%; }
.who button small { display: block; margin-top: 4px; font: 400 11px var(--f-mono); color: var(--text-3); }
.who button.on { background: var(--panel-2); box-shadow: inset 0 -1.5px 0 var(--accent); }
.who button.on .nm { color: var(--text); }

@media (max-width: 1080px) {
  .collab { grid-template-columns: 1fr; }
  .collab-points { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .collab-points { grid-template-columns: 1fr; gap: 24px; }
  .ws { min-height: 0; }
  .ws-people { display: none; }
}

/* ---------- about + how we use it ---------- */
.logos .studio { font-size: 16px; color: var(--text-2); margin: 0; }
.stories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 48px; }
.story { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); padding: 28px; }
.story h3 { font-size: 20px; }
.story p { margin: 10px 0 0; color: var(--text-2); }
.story dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 24px 0 0; }
.story dl div { border-top: 1px solid var(--line); padding-top: 12px; }
.story dt { font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
.story dd { margin: 8px 0 0; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.todo { color: var(--warn) !important; }
@media (max-width: 860px) { .stories { grid-template-columns: 1fr; } }

/* ---------- board, kinds, compare ---------- */
.board-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.board-head .p { margin: 0; justify-self: end; }
.bullets.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; max-width: none; margin-top: 32px; }
.bullets.cols li:last-child { border-bottom: 0; }
.bullets.cols li { border-bottom: 0; }
.chat-row { margin-top: 120px; }
.tag { font: 500 10.5px/1 var(--f-mono); padding: 3px 7px; border-radius: 999px; border: 1px solid rgba(163, 180, 255, 0.4); color: var(--accent); vertical-align: 2px; margin-right: 4px; }
.kinds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.kind { padding: 24px 22px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 0.3s; }
.kind:hover { background: var(--bg-2); }
.kind .kg { font: 500 10.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
.kind h3 { font-size: 16px; margin-top: 12px; }
.kind p { margin: 6px 0 0; color: var(--text-3); font-size: 13.5px; }
.kind ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kind li { font: 400 12px/1 var(--f-mono); color: var(--text-2); padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 999px; }
.compare { margin-top: 48px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font: 500 11.5px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); background: var(--bg-2); }
.compare thead th:nth-child(2) { color: var(--accent); }
.compare td:first-child { color: var(--text-3); width: 22%; }
.compare td:nth-child(2) { color: var(--text); background: rgba(163, 180, 255, 0.04); }
.compare td:nth-child(3) { color: var(--text-2); }
@media (max-width: 1080px) { .kinds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .board-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
  .board-head .p { justify-self: start; }
  .bullets.cols { grid-template-columns: 1fr; }
  .chat-row { margin-top: 80px; }
  .kinds { grid-template-columns: 1fr; }
  .compare th, .compare td { padding: 12px 14px; font-size: 14px; }
  .compare td:first-child { width: auto; }
}
.feature > *, .collab > *, .board-head > * { min-width: 0; }
@media (max-width: 860px) { .who button { min-width: 84px; } }

/* ---------- multipage ---------- */
.nav-links a[aria-current="page"] { color: var(--text); }
.page-hero { padding: 150px 0 24px; }
.page-hero .h1 { max-width: 18ch; }
main > #pricing:first-child { padding-top: 150px; }
.why .txt .link { margin-top: 16px; font-size: 14px; }
.more { margin-top: 18px; }
.team-plan { border: 1px solid var(--line); border-radius: 16px; padding: 48px; background: var(--bg-2); }
@media (max-width: 860px) {
  .page-hero { padding: 112px 0 8px; }
  main > #pricing:first-child { padding-top: 112px; }
  .team-plan { padding: 28px 22px; }
}

/* hero numbers + product lead figure */
.hero-side .hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 0; }
.hero-stats div { padding: 4px 18px 4px 0; }
.hero-stats div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-stats dt { font-size: 44px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--text); font-family: var(--f-sans); text-transform: none; }
.hero-stats dd { margin: 8px 0 0; color: var(--text-2); font-size: 14px; }
.hero-stats-note { margin: 18px 0 0; font: 400 12px/1.5 var(--f-mono); color: var(--text-3); }
.product-lead { padding: 8px 0 24px; }
@media (max-width: 860px) { .hero-stats dt { font-size: 34px; } .hero-stats div + div { padding-left: 12px; } .hero-stats div { padding-right: 12px; } }
.hero-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hero-steps li { display: grid; grid-template-columns: 34px 1fr; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.hero-steps span { font: 500 12px/1.9 var(--f-mono); color: var(--accent); }

/* Hero: full-screen video frame. Placeholder is the real board floating in space (blender/board_space.py);
   the headline sits in the dark space above it. */
.hero.hero-full { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; padding: 140px 0 100px; display: flex; align-items: flex-start; text-align: center; border-bottom: 1px solid var(--line); }
.hero-full > .wrap { position: relative; z-index: 1; width: 100%; }
.hero-video { position: absolute; left: 0; top: 20%; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent 82%); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent 82%); }
.hero-full .h1 { font-size: clamp(56px, 8vw, 128px); line-height: 0.98; max-width: none; margin: 22px auto 0; }
.hero-full .lede { margin-left: auto; margin-right: auto; }
.hero-full .hero-actions { justify-content: center; }
.hero-board { padding: 120px 0 0; }
@media (max-width: 860px) {
  .hero.hero-full { padding-top: 116px; }
  .hero-video { top: 38%; height: 70%; object-position: 50% 0; }
}

/* ---------- section rail (product page) ---------- */
.rail { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); top: 96px; bottom: max(32px, env(safe-area-inset-bottom, 0px)); transform: translateX(-8px); z-index: 40; opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.rail.on { opacity: 1; transform: none; pointer-events: auto; }
.rail ol { list-style: none; margin: 0; padding: 0; height: 100%; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.rail-wire { position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.rail-fill { position: absolute; left: 0; top: 0; width: 1px; height: 0; background: var(--accent); transition: height 0.35s var(--ease); }
.rail a { display: flex; align-items: center; gap: 10px; min-height: 22px; font: 400 11px/1.25 var(--f-mono); letter-spacing: 0.02em; color: var(--text-3); text-decoration: none; }
.rail a i { flex: none; width: 9px; height: 9px; border: 1px solid var(--line-3); background: var(--bg); transform: rotate(45deg) scale(0.7); transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s; position: relative; z-index: 1; }
.rail a span { max-width: calc((100vw - var(--maxw)) / 2 + var(--gutter) - 47px); opacity: 0; transform: translateX(-6px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), color 0.2s; }
.rail li.seen a span { opacity: 1; transform: none; }
.rail li.seen a i { border-color: var(--accent); transform: rotate(45deg) scale(0.8); }
.rail li.now a { color: var(--text); }
.rail li.now a i { background: var(--accent); transform: rotate(45deg) scale(1); }
.rail a:hover { color: var(--text); }
.rail a:hover span { opacity: 1; transform: none; }
.rail a:focus-visible { outline-offset: 2px; }
/* Narrower margins: keep the wire and nodes; names show on hover or keyboard focus, so they never sit on the content. */
@media (max-width: 1459px) {
  .rail a span { position: absolute; left: 22px; white-space: nowrap; max-width: none; padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(10, 10, 11, 0.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .rail li.seen a span { opacity: 0; transform: translateX(-6px); }
  .rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; }
}
@media (max-width: 1299px) { .rail { display: none; } }

/* Logo intro (home page, once per visit) */
.intro { position: fixed; inset: 0; z-index: 100; background: #090b0f; display: grid; place-items: center; cursor: pointer; transition: opacity 0.9s var(--ease), visibility 0.9s; }
.intro video { width: min(62vw, 1000px); height: auto; aspect-ratio: 16 / 9; object-fit: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-composite: intersect; }
@media (max-width: 860px) { .intro video { width: 112vw; } }
.intro-skip { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font: 400 11.5px/1 var(--f-mono); letter-spacing: 0.04em; color: var(--text-3); opacity: 0; animation: introSkip 0.6s 1.2s forwards; }
@keyframes introSkip { to { opacity: 1; } }
.intro.out { opacity: 0; visibility: hidden; pointer-events: none; }
html.intro-on { overflow: hidden; }
html.intro-on .hero .reveal.in { opacity: 0; transform: translateY(16px); }
