/* website-v2: one deliberate dark look. Graphite night, signal orange for the robot, ice blue for the twin. */
:root {
  --bg: #06080b;
  --bg-2: #0a0d12;
  --card: #0e1218;
  --card-2: #131821;
  --line: rgba(150, 180, 215, .13);
  --line-2: rgba(150, 180, 215, .24);
  --text: #eef2f7;
  --text-2: #aeb8c5;
  --text-3: #75808f;
  --signal: #ff6b2c;
  --signal-2: #ff8f5c;
  --signal-glow: rgba(255, 107, 44, .35);
  --twin: #7fd6ff;
  --twin-2: rgba(127, 214, 255, .55);
  --twin-glow: rgba(127, 214, 255, .18);
  --ok: #7ee2ad;
  --warn: #ffc857;
  --f-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 18px;
  --nav-h: 64px;
  --gutter: clamp(16px, 4.2vw, 44px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img, video, svg, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--signal); color: #120700; }
:focus-visible { outline: 2px solid var(--twin); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--signal); color: #120700; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type */
.kicker {
  margin: 0 0 18px; font: 600 12px/1.2 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--twin);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 22px; height: 1.5px; background: currentColor; box-shadow: 0 0 12px var(--twin); }
.display-2 {
  margin: 0; font-weight: 680; font-stretch: 112%; font-size: clamp(30px, 4.3vw, 62px); line-height: 1.04;
  letter-spacing: -.022em; max-width: 22ch; text-wrap: balance;
}
.display-2 .dim { color: var(--text-3); }
.lede { color: var(--text-2); font-size: clamp(17px, 1.5vw, 20px); max-width: 60ch; margin: 22px 0 0; }
.fine { color: var(--text-3); font-size: 13px; line-height: 1.5; margin: 14px 0 0; }
strong { font-weight: 650; color: var(--text); }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 16px; text-decoration: none;
  cursor: pointer; transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s; white-space: nowrap;
}
.btn-signal { background: var(--signal); color: #160800; box-shadow: 0 10px 30px -10px var(--signal-glow); }
.btn-signal:hover { background: var(--signal-2); transform: translateY(-1px); box-shadow: 0 0 0 6px rgba(255, 107, 44, .12), 0 14px 40px -12px var(--signal-glow); }
.btn-signal:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-ghost { border-color: rgba(238, 242, 247, .28); color: var(--text); background: rgba(6, 8, 11, .35); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--twin-2); background: rgba(127, 214, 255, .08); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-wide { width: 100%; }

/* ---------- nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); display: flex; align-items: center; gap: 24px;
  padding-inline: var(--gutter); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(6, 8, 11, .78); backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 26px; height: 26px; fill: var(--signal); stroke: var(--text); stroke-width: 1.6; }
.brand-mark circle:last-child { stroke: var(--twin); stroke-dasharray: 3 3.6; animation: spin 18s linear infinite; transform-origin: 16px 16px; }
.brand-name { font-weight: 760; font-stretch: 125%; font-size: 19px; letter-spacing: -.01em; margin: 0; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { text-decoration: none; color: var(--text-2); font-size: 14.5px; font-weight: 500; transition: color .2s; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.nav-links a:hover { color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- hero: full-bleed footage
   Wide screens: the footage fills the screen and the page keeps the drone in the right third (site.js places each
   clip from its 'track' in data/media.json), while a dark band on the left keeps the headline legible.
   Phones and portrait screens: the footage sits above the words (a portrait cut that keeps the drone centred). */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; background: #05070a; --fade: 1; }
.hero-media {
  position: absolute; inset: -4% 0 -4%; z-index: -2; overflow: hidden; transform: scale(1.04); will-change: transform;
  /* the first paint, before site.js has the manifest: the first clip's first frame where site.js will place the
     clip (its track point, 0.36 of a 2.05:1 frame in a box 108 % of the screen's height, at 72 % of the width) */
  background: #070a0e url("/media/hero/hero-plant-twin.webp") no-repeat;
  background-size: cover;
  background-position: clamp(min(0px, 100vw - 221.5svh), 72vw - 79.7svh, 40vw) 50%;
}
.hero-media.playing { background-image: none; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; opacity: 0; transition: opacity 1.2s ease; filter: saturate(1.12) contrast(1.05); }
.hero-video.placed { inset: 0 auto auto 0; max-width: none; object-fit: fill; }
.hero-video.edge { -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .35) 12%, #000 32%); mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .35) 12%, #000 32%); }
.hero-video.on { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, .9) 0%, rgba(5, 7, 10, .74) 28%, rgba(5, 7, 10, .42) 46%, rgba(5, 7, 10, 0) 62%),
    linear-gradient(0deg, rgba(6, 8, 11, 1) 0%, rgba(6, 8, 11, .5) 14%, rgba(6, 8, 11, 0) 30%),
    linear-gradient(180deg, rgba(5, 7, 10, .5) 0%, rgba(5, 7, 10, 0) 16%);
}
.hero-copy { position: relative; padding: calc(var(--nav-h) + 40px) var(--gutter) 0; max-width: calc(var(--max) + var(--gutter) * 2); width: 100%; margin-inline: auto; opacity: var(--fade); }
.hero h1 {
  margin: 0; font-weight: 720; font-stretch: 108%; font-size: clamp(42px, 5.3vw, 92px); line-height: .98;
  letter-spacing: -.03em; max-width: 13.5ch; text-shadow: 0 2px 40px rgba(0, 0, 0, .35);
}
.hero h1 .line { display: block; }
.hero h1 .line:first-child, .hero h1 .nb { white-space: nowrap; }
.hero .kicker { text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
/* the opening: the headline rises line by line, then the rest follows */
.hero-copy > *, .hero h1 .line { animation: rise 1.1s var(--ease) both; }
.hero .kicker { animation-delay: .05s; }
.hero h1 .line:first-child { animation-delay: .15s; }
.hero h1 .line.accent { animation-delay: .32s; }
.hero h1 { animation: none; }
.hero-sub { animation-delay: .5s; }
.hero-actions { animation-delay: .62s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
.hero h1 .accent { color: var(--signal); }
.hero-sub { margin: 24px 0 0; max-width: 40ch; color: #d3dae3; font-size: clamp(17px, 1.35vw, 20px); text-shadow: 0 1px 18px rgba(0, 0, 0, .6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .hero-chip { display: none; }
.hero-foot {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 44px auto 26px; padding-inline: var(--gutter);
  font-size: 13px; color: var(--text-2);
}
.hero-caption { flex: 1 1 260px; min-width: 0; }
.reel-dots { display: flex; gap: 6px; }
.reel-dot { position: relative; width: 44px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.reel-dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: rgba(238, 242, 247, .22); }
.reel-dot i { position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; width: 0; border-radius: 2px; background: var(--text); transition: width .25s linear; }
.reel-dot.on i { background: var(--signal); }
.reel-dot:hover::before { background: rgba(238, 242, 247, .4); }
.hero-play { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(6, 8, 11, .5); cursor: pointer; font-size: 12.5px; }
.hero-play:hover { border-color: var(--twin-2); }
/* stacked: phones, small tablets and portrait screens */
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .hero { justify-content: flex-start; }
  .hero-media { inset: 0 0 auto 0; height: 58svh; transform: none; background-position: clamp(min(0px, 100vw - 119svh), 50vw - 42.8svh, 0px) 50%; }
  .hero-media::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(0deg, #05070a, rgba(5, 7, 10, 0)); }
  .hero::after { background: linear-gradient(180deg, rgba(5, 7, 10, .55) 0%, rgba(5, 7, 10, 0) 14%); }
  .hero-copy { padding-top: calc(58svh - 72px); }
  .hero h1 { max-width: none; }
  .hero .hero-chip { display: inline-flex; position: absolute; left: var(--gutter); top: calc(var(--nav-h) + 6px); z-index: 1; }
  .hero-foot { margin-top: auto; padding-top: 28px; }
}

/* ---------- jobs marquee */
.jobs-strip { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: var(--bg); }
.strip-k { margin: 0 0 14px; text-align: center; font: 600 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 12px; }
.marquee-row { display: flex; gap: 12px; width: max-content; margin: 0; padding: 0; list-style: none; animation: marquee 70s linear infinite; }
.marquee-rev .marquee-row { animation-direction: reverse; animation-duration: 80s; }
.marquee-row li { flex: none; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); font-size: 15px; background: rgba(255, 255, 255, .02); white-space: nowrap; }
.marquee-row li:nth-child(3n+1) { border-color: rgba(255, 107, 44, .28); }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- flow + steps */
.flow { position: relative; padding: clamp(90px, 12vw, 150px) 0 40px; }
.flow-head { padding-bottom: clamp(30px, 5vw, 60px); }
.flow-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px clamp(28px, 5vw, 80px); align-items: end; }
@media (min-width: 901px) { .flow-split .display-2 { font-size: clamp(30px, 3.9vw, 58px); } }
.flow-split .lede { margin: 0; max-width: 52ch; }
.step-index { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-top: clamp(30px, 4vw, 48px); }
.step-index a {
  display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02); text-decoration: none; font-weight: 600; font-size: 15px; transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.step-index a span { font: 600 11px var(--f-mono); color: var(--signal); letter-spacing: .08em; }
.step-index a:hover { border-color: rgba(255, 107, 44, .5); background: rgba(255, 107, 44, .06); transform: translateY(-2px); }
.step-index a:nth-child(8) span { color: var(--warn); }
.steps { list-style: none; margin: 0; padding: 0; }
.step {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center;
  width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gutter); position: relative;
}
.step-text h3, .sim-head h3, .end-card h3 { margin: 10px 0 0; font-weight: 680; font-stretch: 110%; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.08; letter-spacing: -.018em; text-wrap: balance; }
.step-text p:not(.step-num):not(.fine), .sim-head p:not(.step-num):not(.fine):not(.sim-count) { color: var(--text-2); margin: 18px 0 0; max-width: 48ch; }
.step-num { margin: 0; display: flex; align-items: center; gap: 12px; font: 600 12.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.step-num span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--signal); font-size: 14px; letter-spacing: 0; background: rgba(255, 107, 44, .06); }
.coming { font: 600 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; font-style: normal; color: var(--warn); border: 1px solid rgba(255, 200, 87, .4); padding: 4px 7px; border-radius: 6px; }
.step-wide, .step-apps { grid-template-columns: 1fr; gap: clamp(26px, 3.5vw, 44px); }
.step-text-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px clamp(28px, 5vw, 80px); align-items: end; }
.step-text-split p:first-child { margin-top: 0 !important; }

/* a tall visual: the words stay in view while it scrolls past */
@media (min-width: 901px) { #step-talk { align-items: start; } #step-talk .step-text { position: sticky; top: calc(var(--nav-h) + 56px); padding-top: 24px; } }

/* cards */
.card {
  position: relative; border-radius: var(--r); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)), var(--card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.hud-corners::after {
  content: ""; position: absolute; inset: -7px; pointer-events: none;
  --c: var(--twin-2); --l: 16px; --w: 1.5px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l) no-repeat;
}
.sim {
  display: inline-flex; align-items: center; gap: 6px; font: 600 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--twin); padding: 5px 8px; border-radius: 6px; border: 1px solid rgba(127, 214, 255, .35); background: rgba(6, 9, 13, .6);
}
.sim::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--twin); }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- 01 chat */
.chat { padding: 0; overflow: hidden; max-width: 560px; margin-left: auto; }
.chat-top { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.example.sm { font-size: 9.5px; padding: 4px 6px; transform: none; margin-left: 4px; }
.chat-status { margin-left: auto; font: 500 11px/1 var(--f-mono); color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(255, 107, 44, .16); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 107, 44, 0); } }
.chat-body { display: flex; flex-direction: column; gap: 12px; padding: 20px; min-height: 470px; }
.msg { max-width: 86%; border-radius: 16px; padding: 12px 15px; font-size: 15px; line-height: 1.45; opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.msg.on, .jobcard.on { opacity: 1; transform: none; }
.msg p { margin: 0; }
.msg-user { align-self: flex-end; background: #1b222d; border: 1px solid var(--line); border-bottom-right-radius: 5px; }
.msg-agent { align-self: flex-start; background: rgba(127, 214, 255, .08); border: 1px solid rgba(127, 214, 255, .22); border-bottom-left-radius: 5px; }
.voice { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.voice-play { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--signal); color: #160800; font-size: 11px; }
.voice-len { font: 500 12px var(--f-mono); color: var(--text-3); }
.wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.wave i { width: 3px; border-radius: 2px; background: var(--text-2); height: 30%; }
.chat.playing .wave i { animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(3n) { height: 70%; } .wave i:nth-child(4n+1) { height: 45%; } .wave i:nth-child(5n+2) { height: 90%; } .wave i:nth-child(7n) { height: 55%; }
.wave i:nth-child(2n) { animation-delay: -.3s; } .wave i:nth-child(3n) { animation-delay: -.6s; } .wave i:nth-child(5n) { animation-delay: -.9s; }
@keyframes wave { 50% { transform: scaleY(.35); } }
.transcript { grid-column: 1 / -1; color: var(--text-2); font-size: 14px; margin-top: 4px !important; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 104px)); gap: 6px; padding: 6px; background: transparent; border: 0; }
.photos img { width: 100%; height: auto; aspect-ratio: 104 / 72; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-2); }
/* frames of the plain simulator scene: muted, so they read as quick phone photos rather than a game */
.photos img { filter: saturate(.35) contrast(1.06) brightness(.9); }
.jobcard {
  align-self: stretch; margin-top: 4px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(255, 107, 44, .4);
  background: linear-gradient(135deg, rgba(255, 107, 44, .1), rgba(255, 107, 44, .02)); opacity: 0; transform: translateY(10px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.jobcard-k { margin: 0; font: 600 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--signal); }
.jobcard-t { margin: 8px 0 10px; font-weight: 680; font-stretch: 110%; font-size: 18px; }
.jobcard ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.jobcard li { display: flex; gap: 10px; align-items: baseline; }
.jobcard li span { font: 600 11px var(--f-mono); color: var(--signal); }
.jobcard-f { margin: 10px 0 0; font: 500 11.5px/1.4 var(--f-mono); color: var(--text-3); }
.chat-input { display: flex; align-items: center; gap: 10px; margin: 0 16px 16px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-3); font-size: 14px; }
.mic { color: var(--signal); }

/* ---------- 02 twin (live 3-D) */
.twin3d {
  height: min(72vh, 680px); min-height: 420px; overflow: hidden; padding: 0;
  background: radial-gradient(900px 500px at 50% 40%, rgba(127, 214, 255, .09), transparent 65%), radial-gradient(700px 400px at 70% 90%, rgba(255, 107, 44, .06), transparent 60%), linear-gradient(180deg, #070a0e, #0a0f15 60%, #070a0e);
}
#twin-canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
.twin3d.no-3d { background: url("/media/stills/job-051.webp") center / cover no-repeat; }
.twin3d.no-3d canvas, .twin3d.no-3d .hud { display: none; }
.twin3d.no-3d::before { content: "The live 3-D view needs WebGL and a network connection."; position: absolute; left: 18px; bottom: 18px; z-index: 3; font: 500 12px var(--f-mono); color: var(--text-2); background: rgba(6, 8, 11, .7); padding: 6px 10px; border-radius: 8px; }
.hud { position: absolute; z-index: 2; font: 500 11px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); pointer-events: none; }
.hud-tl { top: 18px; left: 20px; display: flex; align-items: center; gap: 10px; }
.hud-tl b { color: var(--twin); font-weight: 600; }
.hud-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(255, 107, 44, .18); animation: pulse 1.6s ease-in-out infinite; }
.hud-tr { top: 12px; right: 14px; display: flex; gap: 16px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8, 11, 15, .6); }
.hud-tr div { display: flex; align-items: baseline; gap: 6px; }
.hud-tr span { color: var(--text-3); }
.hud-tr b { color: var(--text); font-weight: 600; font-size: 13px; min-width: 4.2ch; text-align: right; font-variant-numeric: tabular-nums; }
.hud-tr i { font-style: normal; color: var(--text-3); text-transform: none; }
.hud-bl { left: 20px; bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; text-transform: none; letter-spacing: .02em; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: 6px; }
.key:first-child { margin-left: 0; }
.k-sick { background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.k-gap { border: 1.5px dashed var(--warn); }
.k-path { width: 16px; height: 2px; border-radius: 1px; background: var(--signal); }
.twin-labels { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; border-radius: inherit; }
.twin-labels .lbl {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); white-space: nowrap; padding: 3px 7px 3px 6px;
  font: 600 10.5px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; border-radius: 5px;
  background: rgba(10, 12, 16, .72); border: 1px solid rgba(255, 107, 44, .55); color: #ffd2bd; opacity: 0; transition: opacity .5s; will-change: transform;
}
.twin-labels .lbl.on { opacity: 1; }
.twin-labels .lbl.gap { border-color: rgba(255, 200, 87, .55); color: #ffe6b0; }

/* ---------- step clips (02 twin, 03 robot): cinematic simulation renders, played while in view */
.clip { margin: 0; padding: 0; overflow: hidden; }
.clip-media { position: relative; aspect-ratio: 16 / 9; background: #0b0f14; overflow: hidden; }
.clip-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip-media .sim { position: absolute; top: 12px; left: 12px; z-index: 1; }
.clip-cap { margin: 0; padding: 12px 16px 14px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); border-top: 1px solid var(--line); }
.step-twin { align-items: center; }
.step-twin .twin3d { grid-column: 1 / -1; }
.clip-robot { margin-top: 22px; max-width: 520px; }

/* ---------- 03 kit */
.kit { padding: 18px; }
.kit-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.kit-tabs button { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-size: 14px; cursor: pointer; transition: all .2s; }
.kit-tabs button[aria-selected="true"] { background: var(--text); color: #0b0d10; border-color: var(--text); }
.kit-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 14px; }
.drone-svg { width: 100%; height: auto; }
.drone-svg .arms path { stroke: var(--text-2); stroke-width: 7; stroke-linecap: round; fill: none; }
.drone-svg .rotors circle { fill: rgba(127, 214, 255, .04); stroke: var(--twin-2); stroke-width: 1.3; stroke-dasharray: 2 5; }
.drone-svg .rotors .blade { stroke: var(--text-3); stroke-width: 3; stroke-linecap: round; }
.drone-svg .body { fill: #18202b; stroke: var(--text-2); stroke-width: 1.5; }
.drone-svg .board { fill: none; stroke: var(--text-3); stroke-dasharray: 3 3; }
.drone-svg .part rect, .drone-svg .part circle, .drone-svg .part path { fill: #1b2430; stroke: var(--text-3); stroke-width: 1.5; transition: all .4s; }
.drone-svg .part.on rect, .drone-svg .part.on circle, .drone-svg .part.on path { stroke: var(--signal); fill: rgba(255, 107, 44, .18); }
.drone-svg .part.later rect, .drone-svg .part.later circle { stroke: var(--warn); stroke-dasharray: 3 3; fill: rgba(255, 200, 87, .08); }
.kit.spin .rotors circle { animation: spin 1.2s linear infinite; transform-box: fill-box; transform-origin: center; }
.kit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kit-list li { padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); animation: kitin .5s var(--ease) both; }
.kit-list li:nth-child(2) { animation-delay: .07s; } .kit-list li:nth-child(3) { animation-delay: .14s; } .kit-list li:nth-child(4) { animation-delay: .21s; }
.kit-list b { display: block; font-size: 14.5px; font-weight: 620; }
.kit-list span { display: block; font-size: 13px; color: var(--text-3); margin-top: 2px; }
.kit-list li.add { border-color: rgba(255, 107, 44, .4); }
.kit-list li.add b::before { content: "+ "; color: var(--signal); }
.kit-list li.later { border-style: dashed; border-color: rgba(255, 200, 87, .35); }
.kit-list li.later b::after { content: " · coming"; color: var(--warn); font: 600 10px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.kit-foot { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 12.5px/1.4 var(--f-mono); color: var(--text-2); }
.kit-foot b { color: var(--text); font-weight: 600; }
@keyframes kitin { from { opacity: 0; transform: translateX(8px); } }

/* ---------- 04 program */
.program { display: grid; grid-template-columns: 210px minmax(0, 1.2fr) minmax(0, 1fr); overflow: hidden; }
.plan { padding: 20px 18px; border-right: 1px solid var(--line); }
.plan-k { margin: 0 0 14px; font: 600 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.plan ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.plan li { position: relative; padding: 9px 10px 9px 26px; border-radius: 10px; }
.plan li::before { content: ""; position: absolute; left: 9px; top: 15px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--text-3); }
.plan li b { display: block; font-size: 13.5px; font-weight: 600; }
.plan li span { display: block; font-size: 12px; color: var(--text-3); }
.plan li.done::before { background: var(--ok); border-color: var(--ok); }
.plan li.now { background: rgba(255, 107, 44, .08); }
.plan li.now::before { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 4px rgba(255, 107, 44, .2); }
.code-wrap { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--line); background: #080b10; }
.code-bar { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 12px/1 var(--f-mono); color: var(--text-3); }
.code-file { color: var(--text-2); }
.code-state { color: var(--signal); }
.code-state.ok { color: var(--ok); }
.code { margin: 0; padding: 16px; font: 400 12.5px/1.62 var(--f-mono); color: #c9d4e2; overflow: auto; min-height: 430px; tab-size: 4; white-space: pre; }
.code .k { color: #ff9b6b; } .code .n { color: #9fe0ff; } .code .s { color: #b8e6a0; } .code .c { color: var(--text-3); } .code .f { color: #ffd38a; }
.code .caret { display: inline-block; width: 7px; height: 1.1em; vertical-align: -2px; background: var(--signal); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.path-wrap { padding: 14px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.path-svg { width: 100%; height: auto; overflow: visible; }
.path-svg .orbit { fill: none; stroke: var(--twin); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.path-svg .spiral { fill: none; stroke: var(--signal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.path-svg .rest { fill: none; stroke: var(--text-3); stroke-width: 1.2; stroke-dasharray: 3 4; }
.path-svg .drop { stroke: rgba(255, 107, 44, .22); stroke-width: 1; }
.path-svg .fountain { fill: rgba(127, 214, 255, .15); stroke: var(--twin); stroke-width: 1.2; }
.path-svg text { font: 500 10px var(--f-mono); fill: var(--text-3); letter-spacing: .04em; }
.path-svg .dot { fill: var(--signal); }
.path-legend { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 500 11px var(--f-mono); color: var(--text-3); }
.lg { display: inline-block; width: 16px; height: 3px; border-radius: 2px; margin-right: -6px; }
.lg-orbit { background: var(--twin); } .lg-spiral { background: var(--signal); }

/* ---------- 05 apps */
.apps { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.app-tabs { display: flex; flex-direction: column; gap: 10px; }
.app-tabs button { text-align: left; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); cursor: pointer; transition: border-color .25s, background .25s; position: relative; }
.app-tabs button b { display: block; font-weight: 650; font-stretch: 110%; font-size: 17px; }
.app-tabs button span { display: block; font-size: 13px; color: var(--text-3); margin-top: 3px; }
.app-tabs button:hover { border-color: var(--line-2); }
.app-tabs button[aria-selected="true"] { border-color: rgba(255, 107, 44, .6); background: linear-gradient(135deg, rgba(255, 107, 44, .12), rgba(255, 107, 44, .02)); }
.app-tabs button[aria-selected="true"]::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.device { position: relative; border-radius: 22px; padding: 10px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #1a202a, #0d1117); box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .6), 0 0 80px -30px var(--twin-glow); }
.device-bar { display: flex; align-items: center; gap: 6px; padding: 2px 6px 10px; }
.device-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a323e; }
.device-bar span { margin-left: 10px; font: 500 11.5px var(--f-mono); color: var(--text-3); }
#app-frame { width: 100%; height: 660px; border: 0; border-radius: 14px; background: #0b0e13; }
.device-open { position: absolute; right: 18px; top: 9px; font: 500 11.5px var(--f-mono); color: var(--text-2); text-decoration: none; }
.device-open:hover { color: var(--twin); }
.device-tap { display: none; }
.apps-fine { grid-column: 2; margin-top: 0; }

/* ---------- 06 simulation: the showcase */
.step-sim { display: block; }
.sim-head { margin-bottom: clamp(26px, 3.5vw, 44px); }
.sim-count { margin: 18px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--text-2); font-size: 15px; }
.sim-count b { font-weight: 700; font-stretch: 118%; font-size: clamp(30px, 3.2vw, 44px); color: var(--text); letter-spacing: -.02em; line-height: 1; }
.sim-count span { font: 500 12px var(--f-mono); color: var(--text-3); }
.half { width: 200% !important; max-width: none; }
.half-l { left: 0 !important; }
.half-r { left: -100% !important; }

/* ---------- 07 + 08 end cards */
.step-end { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 18px; }
.end-card { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; }
.end-card > p:not(.step-num):not(.fine) { color: var(--text-2); margin: 14px 0 0; }
.end-card .fine { margin-top: auto; padding-top: 16px; }
.quote { margin-top: 20px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.quote-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.quote-t { margin: 0; font-weight: 640; font-stretch: 106%; font-size: 16px; }
.example { font: 700 10.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--warn); border: 1px dashed rgba(255, 200, 87, .6); padding: 6px 8px; border-radius: 7px; transform: rotate(3deg); }
.quote ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.quote li { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 14.5px; color: var(--text-2); }
.quote li.month { padding-top: 10px; border-top: 1px dashed var(--line); }
.amt { flex: none; width: 74px; height: 11px; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .14), rgba(255, 255, 255, .06)); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; }
.quote li:nth-child(2n) .amt { width: 56px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.deploy { margin-top: 18px; }
.deploy svg { width: 100%; height: auto; max-height: 230px; }
.deploy .crate path { fill: rgba(127, 214, 255, .03); stroke: var(--twin-2); stroke-width: 1.4; stroke-linejoin: round; }
.deploy .crate .lid { stroke-dasharray: 4 5; }
.deploy .mini-drone path { stroke: var(--text-2); stroke-width: 4; stroke-linecap: round; }
.deploy .mini-drone circle { fill: none; stroke: var(--twin); stroke-width: 1.2; stroke-dasharray: 2 3; }
.deploy .mini-drone rect { fill: var(--signal); }
.deploy.run .mini-drone { animation: hover 3.2s ease-in-out infinite; }
.deploy .phone rect { fill: #121821; stroke: var(--text-2); stroke-width: 1.4; }
.deploy .phone .scr { fill: #0a0e13; stroke: var(--line-2); }
.deploy .phone .ui { stroke: var(--text-3); stroke-width: 3; stroke-linecap: round; }
.deploy .phone .ui-dot { fill: rgba(255, 107, 44, .25); stroke: var(--signal); stroke-width: 1.5; }
@keyframes hover { 50% { transform: translateY(-10px); } }
.cta-band {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  margin-top: 10px; padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 36px); border-radius: var(--r);
  border: 1px solid rgba(255, 107, 44, .35); background: linear-gradient(120deg, rgba(255, 107, 44, .14), rgba(255, 107, 44, .02) 60%), var(--card);
}
.cta-band p { margin: 0; font-weight: 660; font-stretch: 110%; font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -.01em; }

/* ---------- showcase cards */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; grid-column: span 4; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  background: #0b0f14; cursor: pointer; padding: 0; text-align: left; isolation: isolate; transition: transform .5s var(--ease), border-color .3s;
}
.tile.big { grid-column: span 6; aspect-ratio: 16 / 9; }
.tile.wide { grid-column: span 12; aspect-ratio: 21 / 9; }
.tile:hover { transform: translateY(-3px); border-color: var(--line-2); }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .4s; }
.tile:hover img { transform: scale(1.03); }
.tile video { opacity: 0; }
.tile.playing video { opacity: 1; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(5, 7, 10, .95) 0%, rgba(5, 7, 10, .78) 30%, rgba(5, 7, 10, .25) 58%, transparent 74%); }
.tile-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 20px; max-width: 760px; }
.tile-k, .tile-t, .tile-d { display: block; }
.tile-k { margin: 0; font: 600 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--signal-2); }
.tile-t { margin: 8px 0 0; font-weight: 660; font-stretch: 108%; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.2; }
.tile.wide .tile-t { font-size: clamp(22px, 2.6vw, 38px); }
.tile-d { margin: 5px 0 0; font-size: 13.5px; color: var(--text-2); line-height: 1.4; }
.tile .sim { position: absolute; top: 14px; left: 14px; z-index: 2; }
.tile-note { display: block; margin: 8px 0 0; font: 500 10.5px/1.35 var(--f-mono); letter-spacing: .02em; color: var(--text-3); }
/* replays not re-rendered yet (the plain simulator look): a cool monochrome with a faint grid, like the twin */
.duo img, .duo video { filter: grayscale(1) sepia(.5) hue-rotate(168deg) saturate(1.5) brightness(.74) contrast(1.16); }
.tile.duo::before, .duo .clip-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(rgba(127, 214, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 214, 255, .07) 1px, transparent 1px);
  background-size: 26px 26px;
}
.tile.duo .tile-k { color: var(--twin); }
/* a clip whose subject flies low in the frame: the words at the top, under the label */
.tile.text-top .tile-text { top: 0; bottom: auto; padding-top: 50px; }
.tile.text-top::after { background: linear-gradient(180deg, rgba(5, 7, 10, .92) 0%, rgba(5, 7, 10, .72) 28%, rgba(5, 7, 10, .22) 55%, transparent 70%); }
.tile.playing .play { opacity: 0; }
.tile .play { position: absolute; top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(6, 9, 13, .6); border: 1px solid var(--line-2); color: var(--text); font-size: 11px; transition: opacity .4s; }

/* ---------- investors */
.investors { padding-block: clamp(90px, 12vw, 160px); background: radial-gradient(900px 500px at 15% 0%, rgba(127, 214, 255, .06), transparent 60%), linear-gradient(180deg, var(--bg), var(--bg-2)); border-top: 1px solid var(--line); }
.investors .display-2 { max-width: 26ch; }
.inv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(36px, 5vw, 60px); }
.stat { padding: 26px 24px; }
.stat b { display: block; font-weight: 700; font-stretch: 118%; font-size: clamp(38px, 4.2vw, 60px); line-height: 1; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat b small { font-size: .4em; font-weight: 600; letter-spacing: 0; color: var(--text-2); margin-right: .3em; }
.stat b span + small { margin: 0 0 0 .25em; }
.stat p { margin: 14px 0 0; color: var(--text-2); font-size: 15px; }
.stat cite { display: block; margin-top: 8px; font: 500 11px var(--f-mono); color: var(--text-3); font-style: normal; }
.inv-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); margin-top: clamp(48px, 6vw, 80px); }
.inv-cols h3 { margin: 0 0 18px; font-weight: 660; font-stretch: 110%; font-size: 24px; }
.why ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: why; }
.why li { counter-increment: why; position: relative; padding: 0 0 14px 44px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.why li::before { content: "0" counter(why); position: absolute; left: 0; top: 2px; font: 600 12px var(--f-mono); color: var(--signal); }
.why li b { color: var(--text); font-weight: 620; }
.inv-cta { margin-top: 26px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.bars li { display: grid; grid-template-columns: minmax(0, 11.5em) 1fr 2ch; align-items: center; gap: 12px; font-size: 13.5px; color: var(--text-2); }
.bars .bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.bars .bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--twin), #b9ecff); transition: width 1.2s var(--ease); }
.bars li:nth-child(-n+3) .bar i { background: linear-gradient(90deg, var(--signal), var(--signal-2)); }
.bars b { font: 600 12.5px var(--f-mono); color: var(--text); text-align: right; }

/* ---------- start / form */
.start { padding-block: clamp(90px, 12vw, 160px); position: relative; overflow: hidden; }
.start::before { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 80%; background: radial-gradient(closest-side, rgba(255, 107, 44, .16), transparent); pointer-events: none; }
.start-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.start .display-2 { font-size: clamp(40px, 5.6vw, 84px); }
.start-points { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; color: var(--text-2); }
.start-points li { padding-left: 26px; position: relative; }
.start-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 1.5px; background: var(--signal); }
.pilot { padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; }
.contact-k { margin: 0; font: 600 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--signal); }
.contact-text { margin: 0; font-size: 18px; line-height: 1.5; color: var(--text-2); }
.contact .fine { margin: 0; }

/* ---------- footer */
.foot { border-top: 1px solid var(--line); padding-block: 40px 56px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px 56px; align-items: start; }
.foot-tag { margin: 6px 0 0; color: var(--text-3); font-size: 14px; }
.foot-note { margin: 0; color: var(--text-3); font-size: 13.5px; max-width: 60ch; }
.foot-links { display: grid; gap: 6px; font-size: 14px; }
.foot-links a { color: var(--text-2); text-decoration: none; }
.foot-links a:hover { color: var(--text); }

/* ---------- viewer */
.viewer { width: min(1180px, 94vw); max-height: 92vh; padding: 0; border: 1px solid var(--line-2); border-radius: 18px; background: #090c11; color: var(--text); overflow: hidden; }
.viewer::backdrop { background: rgba(3, 4, 6, .82); backdrop-filter: blur(6px); }
.viewer-inner { position: relative; }
.viewer-media { position: relative; background: #000; overflow: hidden; }
.viewer-media video, .viewer-media img { width: 100%; max-height: 70vh; object-fit: contain; }
.viewer-media.half { aspect-ratio: 640 / 358; max-height: 70vh; }
.viewer-media.half video { position: absolute; top: 0; height: 100%; max-height: none; width: 200%; object-fit: cover; }
.viewer-media.half-l video { left: 0; }
.viewer-media.half-r video { left: -100%; }
.viewer-media [hidden] { display: none; }
.viewer-text { padding: 18px 22px 22px; }
.viewer-k { margin: 0; font: 600 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--signal-2); }
.viewer-text h3 { margin: 8px 0 0; font-weight: 660; font-stretch: 108%; font-size: 22px; }
.viewer-text p:last-child { margin: 6px 0 0; color: var(--text-2); }
.viewer-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(6, 8, 11, .75); font-size: 22px; line-height: 1; cursor: pointer; }

.lost { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }

/* ---------- responsive */
@media (max-width: 1100px) {
  .program { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .plan { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .plan ol { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .apps { grid-template-columns: 1fr; }
  .app-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .app-tabs button { flex: 0 0 auto; min-width: 210px; }
  .app-tabs button[aria-selected="true"]::after { display: none; }
  .apps-fine { grid-column: 1; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .step-index { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step { grid-template-columns: 1fr; gap: 28px; }
  .step-text-split, .flow-split { grid-template-columns: 1fr; align-items: start; }
  .chat { margin-left: 0; max-width: none; }
  .step-end { grid-template-columns: 1fr; }
  .inv-grid { grid-template-columns: 1fr; }
  .inv-cols, .start-grid { grid-template-columns: 1fr; }
  .tile, .tile.big { grid-column: span 6; }
  .tile.wide { grid-column: span 12; aspect-ratio: 16 / 9; }
  .foot-grid { grid-template-columns: 1fr; }
  .clip-robot { max-width: none; }
}
@media (min-width: 641px) and (max-width: 900px) {
  /* two cards a row: a last card on its own spans the row */
  .tile:not(.big):not(.wide):last-child:nth-child(even) { grid-column: span 12; aspect-ratio: 21 / 9; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .step-index a { padding: 10px 10px 12px; font-size: 13px; gap: 6px; }
  .hero h1 { font-size: clamp(32px, 9.4vw, 46px); font-stretch: 100%; letter-spacing: -.025em; }
  .hero-media { height: 54svh; background-image: url("/media/hero/hero-plant-twin-phone.webp"); background-position: 50% 40%; }
  .hero-video { object-position: 50% 40%; }
  .hero-copy { padding-top: calc(54svh - 64px); }
  .hero-sub { margin-top: 16px; font-size: 16px; }
  .hero-actions { margin-top: 22px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-foot { margin-top: 24px; }
  .twin3d { height: auto; aspect-ratio: 4 / 5; min-height: 0; }
  .hud-tr { top: 44px; left: 14px; right: auto; gap: 12px; }
  .hud-tl { top: 14px; left: 14px; }
  .hud-bl { left: 14px; bottom: 12px; font-size: 10px; }
  .kit-body { grid-template-columns: 1fr; }
  .drone-svg { max-width: 300px; margin: 0 auto; }
  .program { grid-template-columns: 1fr; }
  .plan ol { grid-template-columns: 1fr 1fr; }
  .code-wrap { border-right: 0; border-bottom: 1px solid var(--line); }
  .code { min-height: 300px; max-height: 360px; font-size: 11.5px; }
  #app-frame { height: 640px; }
  .device { padding: 6px; border-radius: 18px; }
  .device:not(.live) #app-frame { pointer-events: none; }
  .device-tap {
    display: flex; align-items: flex-end; justify-content: center; position: absolute; inset: 36px 6px 6px; z-index: 2; padding: 0 0 22px;
    border: 0; border-radius: 14px; cursor: pointer; background: linear-gradient(0deg, rgba(6, 8, 11, .82), rgba(6, 8, 11, 0) 45%);
  }
  .device-tap span { padding: 12px 20px; border-radius: 999px; background: var(--signal); color: #160800; font-weight: 650; font-size: 15px; box-shadow: 0 10px 30px -10px var(--signal-glow); }
  .device-open { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .tile, .tile.big, .tile.wide { grid-column: auto; aspect-ratio: 16 / 10; }
  /* words on top: a taller card, so they sit on the darkened top and the drone stays clear below */
  .tile.text-top { aspect-ratio: 4 / 5; }
  .tile.text-top::after { background: linear-gradient(180deg, rgba(5, 7, 10, .94) 0%, rgba(5, 7, 10, .8) 38%, rgba(5, 7, 10, .3) 60%, transparent 72%); }
  .bars li { grid-template-columns: minmax(0, 9.5em) 1fr 2ch; font-size: 12.5px; }
  .chat-body { min-height: 0; padding: 16px; }
  .cta-band .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal], .msg, .jobcard { opacity: 1; transform: none; }
  .marquee-row { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-rev { display: none; }
  .hero-media { transform: none; }
}
