/* Obsidian & Crimson: hairline bento grid on matte black; crimson only for CTAs + live badges */
:root {
  --bg: #07080B;
  --surface: #0C0E14;
  --surface-2: #12151E;
  --crimson-tint: rgba(255, 42, 60, 0.38);
  --cyan: #38BDF8;
  --emerald: #10B981;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --fg: #ECEDEF;
  --muted: #8B909B;
  --crimson: #FF2A3C;
  --on-crimson: #07080B;
  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --nav-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
::selection { background: var(--crimson); color: var(--on-crimson); }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 12px; }
.skip:focus { top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  font: 600 15px/1 var(--sans); letter-spacing: -0.01em;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn-primary { background: var(--crimson); color: var(--on-crimson); }
.btn-primary:hover { background: #ff4757; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:active { transform: translateY(1px); }

/* Live badge */
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--crimson); flex: none; animation: pulse 2s ease-in-out infinite; }
.live-sm { font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
@keyframes pulse { 50% { opacity: .35; } }

/* Nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.nav-row { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1 var(--sans); letter-spacing: 0.14em; white-space: nowrap; }
.brand img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--fg); }
.nav-end { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; align-items: center; gap: 2px; font: 500 12px/1 var(--mono); color: var(--muted); }
.lang button { background: none; border: 0; color: var(--muted); font: inherit; padding: 10px 6px; cursor: pointer; letter-spacing: 0.06em; }
.lang button[aria-pressed="true"] { color: var(--fg); }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); background: var(--bg); }
/* architectural grid, faded toward the edges */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 68% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 75% at 68% 40%, #000 25%, transparent 75%);
}
.hero-inner { padding-block: clamp(56px, 9vw, 112px) 0; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
/* crimson-burgundy light behind the image column */
.hero-grid::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: -12%; top: 50%; width: 62%; aspect-ratio: 1; transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(255, 42, 60, 0.14), rgba(120, 10, 30, 0.08) 55%, transparent);
}
.hero-copy { display: grid; gap: 28px; min-width: 0; }
.hero-frame { position: relative; margin: 0; aspect-ratio: 4 / 5; max-width: 100%; border: 1px solid rgba(255, 255, 255, 0.10); overflow: hidden; background: var(--surface); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, rgba(7, 8, 11, 0) 45%, rgba(7, 8, 11, .75) 100%), linear-gradient(0deg, rgba(7, 8, 11, .7) 0%, rgba(7, 8, 11, 0) 30%); }
.hero-frame figcaption { position: absolute; left: 12px; bottom: 12px; z-index: 1; padding: 6px 10px; background: var(--bg); border: 1px solid var(--line-strong); font: 500 11px/1 var(--mono); letter-spacing: 0.1em; color: var(--fg); }
.meta { display: flex; flex-wrap: wrap; gap: 12px 24px; font: 500 12px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-size: clamp(36px, 5.2vw, 72px); max-width: 15ch; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: #B9BDC6; max-width: 56ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts {
  margin: clamp(32px, 6vw, 72px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.facts div { padding: 24px 24px 28px 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.facts dd { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding-block: clamp(72px, 10vw, 128px); border-bottom: 1px solid var(--line); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 720px; }
.eyebrow, .tag { font: 500 12px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
h2 { font-size: clamp(30px, 4.4vw, 52px); }
.sec-sub { color: var(--muted); max-width: 60ch; }

.section.alt { background: linear-gradient(180deg, #090A10 0%, var(--bg) 100%); }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; align-content: start; min-width: 0;
  transition: transform .5s var(--ease), opacity .8s var(--ease), border-color .25s, background-color .25s;
}
.hl::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 42, 60, 0.5), transparent); }
@media (hover: hover) {
  .lift:hover, .reveal-ready .rv.in.lift:hover { transform: translateY(-3px); border-color: var(--crimson-tint); background-color: var(--surface-2); }
}

/* telemetry micro-dots: secondary colors so crimson stays the brand */
.telem { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); letter-spacing: 0.08em; }
.telem i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.telem-cyan { --c: var(--cyan); }
.telem-green { --c: var(--emerald); }

/* scroll reveal: only hidden once JS has armed the observer */
.reveal-ready .rv { opacity: 0; transform: translateY(18px); transition: transform .8s var(--ease), opacity .8s var(--ease), border-color .25s, background-color .25s; transition-delay: var(--d, 0ms); }
.reveal-ready .rv.in { opacity: 1; transform: none; }

.arr { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arr, a:hover > .go .arr, .showcase:hover .arr { transform: translateX(4px); }
.card h3 { font-size: clamp(22px, 2.4vw, 28px); }
.card > p:not(.tag) { color: var(--muted); }
.tag { display: flex; justify-content: space-between; gap: 12px; }

/* Bento */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.specs { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.specs li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs code { font: 400 12px/1.4 var(--mono); color: var(--muted); white-space: nowrap; }

/* Demo */
.demo { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.scenarios { display: grid; align-content: start; background: var(--bg); border-bottom: 1px solid var(--line); }
.scn {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left;
  min-height: 64px; padding: 16px 24px; background: transparent; color: var(--muted);
  border: 0; border-bottom: 1px solid var(--line); font: 500 16px/1.3 var(--sans); cursor: pointer;
}
.scn small { font: 400 12px/1 var(--mono); }
.scn:hover { color: var(--fg); }
.scn[aria-pressed="true"] { color: var(--fg); background: var(--surface); box-shadow: inset 2px 0 0 var(--fg); }
.chat { display: grid; grid-template-rows: auto 1fr auto auto; background: var(--surface); min-height: 480px; min-width: 0; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat-head strong { font-weight: 600; font-size: 15px; }
.chat-log { display: flex; flex-direction: column; gap: 10px; padding: 20px; overflow-y: auto; max-height: 420px; overscroll-behavior: contain; }
.msg { max-width: 82%; padding: 10px 14px; font-size: 15px; line-height: 1.5; border: 1px solid var(--line); overflow-wrap: anywhere; }
.msg.bot { align-self: flex-start; background: var(--surface-2); }
.msg.you { align-self: flex-end; background: var(--fg); color: var(--bg); border-color: var(--fg); }
.msg.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 1s var(--ease) infinite; }
.msg.typing span:nth-child(2) { animation-delay: .15s; }
.msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 70%, 100% { opacity: .3; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-4px); } }
.msg.bot:not(.typing) { animation: msg-in .35s var(--ease); }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 16px; }
.chips button { background: transparent; color: var(--fg); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; font: 400 13px/1.3 var(--sans); cursor: pointer; text-align: left; }
.chips button:hover { border-color: var(--fg); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; }

/* Inputs */
input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--line-strong); border-radius: 2px;
  font: 400 16px/1.4 var(--sans); /* 16px keeps iOS from zooming on focus */
}
textarea { resize: vertical; min-height: 120px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--fg); }
[aria-invalid="true"] { border-color: var(--crimson); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps .tag span:first-child { color: var(--fg); }

/* Work */
.work { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.showcase { background: radial-gradient(90% 120% at 100% 0%, rgba(255, 42, 60, 0.08), transparent 60%), linear-gradient(160deg, #161924 0%, var(--surface) 60%); min-height: 460px; align-content: end; }
.showcase h3 { font-size: clamp(26px, 3.4vw, 40px); }
/* Noir preview clip: silent loop behind the card text, loaded only near the viewport */
.showcase .media { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.showcase video { width: 100%; height: 100%; object-fit: cover; object-position: 42% 0%; opacity: 0; transition: opacity .8s var(--ease); }
.showcase video.on { opacity: .95; }
.showcase .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 14, 20, .92) 0%, rgba(12, 14, 20, .55) 40%, rgba(12, 14, 20, 0) 75%); }
.showcase > :not(.media) { position: relative; text-shadow: 0 1px 14px rgba(7, 8, 11, .85); }
@media (max-width: 700px) {
  /* narrow cards: show the whole 16:9 clip as a top band instead of zooming in */
  .showcase { min-height: 0; padding-top: calc((100vw - 40px) * 0.5); }
  .showcase .media { bottom: auto; aspect-ratio: 16 / 9; }
  .showcase video { object-position: 50% 50%; }
}
.go { font-weight: 600; margin-top: 8px; }
.slot { background: transparent; border-style: dashed; border-color: var(--line-strong); align-content: end; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-side { display: grid; gap: 16px; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.mail span { font: 500 clamp(16px, 2vw, 20px)/1.3 var(--mono); user-select: all; overflow-wrap: anywhere; }
.form { gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.form-status { min-height: 1.5em; font-size: 14px; color: var(--muted); }
.form-status.ok { color: var(--fg); padding: 14px 16px; border: 1px solid var(--line-strong); background: var(--surface-2); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Footer */
.footer { padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer p { font: 400 12px/1.5 var(--mono); color: var(--muted); letter-spacing: 0.04em; }

/* ===== Signature moments ===== */

/* intro sequence (only when JS is on; `translate` so it composes with the tilt `transform`) */
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes word { from { transform: translateY(105%); } }
.js .hero .meta { animation: rise .9s var(--ease) both; }
.js .hero-frame { animation: rise 1.1s var(--ease) .25s both; }
.js .hero .lead { animation: rise .9s var(--ease) .55s both; }
.js .hero .actions { animation: rise .9s var(--ease) .68s both; }
.js .hero .facts { animation: rise .9s var(--ease) .85s both; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .w > span { display: inline-block; animation: word 1s var(--ease) both; }
.hero h1.h-static .w > span { animation: none; }

/* neon power-on, once */
@keyframes neon { 0% { opacity: 0; } 8% { opacity: .9; } 12% { opacity: .1; } 20% { opacity: 1; } 24% { opacity: .3; } 32%, 100% { opacity: 1; } }
.js .nav .brand img { animation: neon 1.2s linear .2s both; }

/* searchlight sweep across the hero image */
.sweep {
  position: absolute; top: -20%; bottom: -20%; left: 0; width: 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(220, 232, 255, .07) 40%, rgba(255, 255, 255, .16) 50%, rgba(220, 232, 255, .07) 60%, transparent 100%);
  transform: translateX(-130%) skewX(-12deg);
  animation: sweep 9s var(--ease) 1.8s infinite;
}
@keyframes sweep { 0% { transform: translateX(-130%) skewX(-12deg); } 32%, 100% { transform: translateX(330%) skewX(-12deg); } }

/* tilt + magnet: eased toward pointer-driven inline transforms */
.hero-frame, .hero-frame figcaption { transition: transform .6s var(--ease); }
.hero-frame { will-change: transform; }
[data-magnet] { transition: transform .35s var(--ease), background-color .15s, border-color .15s, color .15s; }

/* scroll progress under the sticky nav */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--crimson); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* cursor light along card borders */
.lift::after {
  content: ""; position: absolute; inset: -1px; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0px), rgba(255, 42, 60, .8), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
@media (hover: hover) { .lift:hover::after { opacity: 1; } }

/* speed race */
.speed { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; align-items: center; gap: 20px 40px; }
.speed-head { display: grid; gap: 10px; }
.race { display: grid; gap: 16px; }
.race-row { display: grid; grid-template-columns: minmax(0, 170px) 1fr 52px; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.race-row.stellis { color: var(--fg); }
.race-track { height: 6px; background: var(--surface-2); overflow: hidden; }
.race-fill { height: 100%; background: #3A3F4C; transform-origin: left; }
.stellis .race-fill { background: var(--cyan); }
.race-t { font: 500 13px/1 var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.stellis.done .race-t { color: var(--cyan); }

/* demo: side column with counters, business hours toggle, booking card */
.demo-side { display: grid; align-content: start; background: var(--bg); min-width: 0; }
.stats { padding: 20px 24px; display: grid; gap: 14px; }
.stats dl { margin: 0; display: grid; gap: 12px; }
.stats dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.stats dt { color: var(--muted); font-size: 14px; }
.stats dd { margin: 0; font: 500 18px/1 var(--mono); font-variant-numeric: tabular-nums; }
.stats dd.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: translateY(-3px); opacity: .6; } }
.biz { display: grid; gap: 6px; min-width: 0; }
.biz-line { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 11px/1 var(--mono); letter-spacing: 0.08em; }
.telem-off { --c: #5A606C; }
.hours { display: flex; border: 1px solid var(--line-strong); flex: none; }
.hours button { background: transparent; color: var(--muted); border: 0; padding: 8px 12px; font: 500 12px/1 var(--mono); cursor: pointer; transition: background-color .2s, color .2s; }
.hours button + button { border-left: 1px solid var(--line-strong); }
.hours button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.msg.slots { display: grid; gap: 10px; }
.slot-row { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-row button { background: var(--bg); color: var(--fg); border: 1px solid var(--line-strong); padding: 10px 14px; font: 500 13px/1 var(--mono); cursor: pointer; transition: border-color .2s, background-color .2s; }
.slot-row button:hover:not(:disabled) { border-color: var(--fg); }
.slot-row button:disabled { cursor: default; opacity: .45; }
.slot-row button.picked { opacity: 1; background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* process timeline */
.timeline { margin-bottom: 20px; }
.tl-track { position: relative; height: 1px; background: var(--line-strong); }
.tl-fill { position: absolute; inset: -1px 0; background: linear-gradient(90deg, rgba(255, 42, 60, .35), var(--crimson)); transform: scaleX(0); transform-origin: left; }
.tl-days { display: flex; justify-content: space-between; margin-top: 10px; font: 400 11px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.steps .card::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 42, 60, 0.6), transparent); opacity: 0; transition: opacity .6s var(--ease); }
.steps .card.lit::before { opacity: 1; }
.steps .card .tag span:first-child { transition: color .4s; }
.steps .card.lit .tag span:first-child { color: var(--crimson); }

/* process: continuous-communication strip */
.status-strip {
  margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding: 16px clamp(20px, 3vw, 28px); background: var(--surface); border: 1px solid var(--line);
  font: 400 12px/1.5 var(--mono); letter-spacing: 0.06em; color: var(--muted);
}
.status-strip .live-sm { flex: none; }
.strip-sep { color: var(--line-strong); }

/* designed form success */
.form.is-done > :not(.form-done) { display: none !important; }
.form-done { display: grid; gap: 14px; justify-items: start; padding-block: 12px; animation: rise .7s var(--ease) both; }
.form-done .check { color: var(--emerald); }
.form-done .check path { stroke-dasharray: 32; stroke-dashoffset: 32; animation: draw .6s var(--ease) .25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-done p { color: var(--muted); max-width: 46ch; }
.form-done .actions { margin-top: 6px; }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-end { margin-left: auto; }
  .bento, .steps, .work, .contact, .hero-grid { grid-template-columns: 1fr; }
  .hero-frame { aspect-ratio: 16 / 10; }
  .demo { grid-template-columns: 1fr; }
  .scenarios { grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; }
  .scn { border-bottom: 0; border-right: 1px solid var(--line); font-size: 14px; padding: 14px 16px; }
  .scn[aria-pressed="true"] { box-shadow: inset 0 -2px 0 var(--fg); }
  .speed { grid-template-columns: 1fr; justify-items: start; }
  .race { width: 100%; }
  .stats { border-bottom: 1px solid var(--line); }
  .stats dl { grid-template-columns: repeat(3, 1fr); }
  .stats dl div { flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
  .stats dt { font-size: 12px; line-height: 1.3; }
}
@media (max-width: 560px) {
  .race-row { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .race-track { grid-column: 1 / -1; order: 3; }
  .tl-days span:not(.k) { visibility: hidden; }
  .chat-head { align-items: flex-start; }
}
@media (max-width: 560px) {
  .brand span { font-size: 12px; letter-spacing: 0.1em; }
  .nav-row { gap: 12px; }
  .nav-end { gap: 8px; }
  .nav-end .btn { padding: 0 12px; }
  .actions .btn { flex: 1 1 100%; }
  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .chat { min-height: 440px; }
  .msg { max-width: 92%; }
}
@media (max-width: 380px) {
  .brand span { display: none; }
}

/* living hero photo: typed code on the laptop, chat on the phone (image-pixel space, scaled by JS) */
.hero-live { position: absolute; left: 0; top: 0; width: 768px; height: 1376px; transform-origin: 0 0; pointer-events: none; }
.scr { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; background: rgb(4, 13, 17); box-shadow: 0 0 3px 2px rgb(4, 13, 17); }
.scr-code { width: 146px; height: 129px; transform: matrix3d(1.11499,0.183634,0,0.000453761,0.179828,1.33681,0,7.53706e-05,0,0,1,0,150.875,571.637,0,1); }
.scr-phone { width: 88px; height: 124px; transform: matrix3d(0.995218,-0.0150235,0,1.33735e-06,0.0718327,1.06273,0,8.37905e-05,0,0,1,0,585,663.6,0,1); }
#live-code { margin: 0; padding: 1px 4px 0 0; font: 500 4.5px/7.4px var(--mono); color: #C9CED6; white-space: pre; counter-reset: ln; filter: blur(.25px); }
#live-code .ln { display: block; }
#live-code .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 9px; margin-right: 6px; text-align: right; color: #4A525C; }
#live-code .k { color: #FF5A6A; } #live-code .s { color: #F0A35E; } #live-code .f { color: #7DD3FC; } #live-code .c { color: #59616B; }
#live-code .cur { display: inline-block; width: 2.6px; height: 5px; margin-left: .5px; vertical-align: -1px; background: #FF2A3C; animation: pm-blink 1s steps(1) infinite; }
@keyframes pm-blink { 50% { opacity: 0; } }
.pm-list { position: absolute; left: 6px; right: 6px; bottom: 4px; display: flex; flex-direction: column; gap: 5px; }
.pm { max-width: 72%; padding: 4px 5px; border-radius: 5px; display: grid; gap: 2.5px; animation: pm-in .45s var(--ease) both; }
.pm i { display: block; height: 2px; border-radius: 1px; background: currentColor; opacity: .8; }
.pm.in { align-self: flex-start; background: #262D33; color: #AEB6BF; border-bottom-left-radius: 1px; }
.pm.out { align-self: flex-end; background: #E0465A; color: #FFE3E6; border-bottom-right-radius: 1px; }
.pm.dots { display: flex; gap: 2px; padding: 4px 5px; }
.pm.dots b { width: 3px; height: 3px; border-radius: 50%; background: #FFE3E6; animation: pm-dot 1s infinite; }
.pm.dots b:nth-child(2) { animation-delay: .15s; } .pm.dots b:nth-child(3) { animation-delay: .3s; }
.pm.slot { background: #12181D; border: .5px solid #E0465A; color: #E0465A; }
@keyframes pm-in { from { opacity: 0; transform: translateY(6px) scale(.96); } }
@keyframes pm-dot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }


/* full Noir recording in a modal player */
.player { width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: none; padding: 0; overflow: visible; background: #000; border: 1px solid var(--line-strong); color: var(--fg); }
.player::backdrop { background: rgba(7, 8, 11, 0.9); }
.player[open] { animation: player-in .45s var(--ease); }
@keyframes player-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-close { position: absolute; right: 0; bottom: calc(100% + 10px); padding: 8px 12px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--fg); font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.player-close:hover { border-color: rgba(255, 42, 60, .38); }
.player-close:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .form-done .check path { stroke-dashoffset: 0; }
}
