/* ════════════════════════════════════════════════════════════
   Nessco — /animate
   A scripted product film. Everything inside .film-stage is laid
   out on a fixed 1440 x 810 artboard and scaled to fit, so the
   composition is pixel-identical on every screen — the same way a
   Figma frame is. Nothing here animates on its own: every moving
   property is written by assets/js/animate.js from absolute time,
   which is what makes the timeline scrubbable.
   ──────────────────────────────────────────────────────────── */

:root {
  --film-w: 1440;
  --film-h: 810;
}

/* ── page shell ────────────────────────────────────────────── */
.film-page { background: var(--bg); }
.film-hero { padding: calc(var(--bar-h) + clamp(34px, 5vw, 58px)) 0 0; }
.film-hero__inner {
  max-width: min(1800px, 96vw); margin-inline: auto; padding-inline: 24px;
}
.film-hero__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; margin-bottom: 22px;
}
.film-hero__head > div:first-child { flex: 1 1 520px; max-width: 760px; }
.film-hero__title { font-size: clamp(1.9rem, 3.4vw, 3rem); letter-spacing: -.025em; }
.film-hero__sub { color: var(--on-surface-var); font-size: 1rem; margin: 12px 0 0; max-width: 58ch; }
.film-hero__aside { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; flex: 0 1 460px; }

/* ── the film frame ────────────────────────────────────────── */
.film-shell { max-width: min(1800px, 96vw); margin-inline: auto; padding-inline: 24px; }

.film-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--outline-strong);
  border-radius: var(--r-xl);
  background: #05070A;
  box-shadow: var(--e4), 0 0 0 1px rgba(255,255,255,.02) inset;
  contain: strict;
  cursor: none;
}
.film-frame:focus-visible { outline: 2px solid var(--ice); outline-offset: 4px; }
.film-frame.is-idle { cursor: none; }

.film-stage {
  position: absolute; top: 50%; left: 50%;
  width: calc(var(--film-w) * 1px);
  height: calc(var(--film-h) * 1px);
  transform: translate(-50%, -50%) scale(var(--film-scale, 1));
  transform-origin: 50% 50%;
  overflow: hidden;
  background: var(--bg);
  font-size: 16px;
}

/* atmosphere — sits above the scene, below the cursor */
.film-vignette {
  position: absolute; inset: 0; z-index: 60; pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 50%, transparent 52%, rgba(0,0,0,.42) 100%);
}
.film-grain {
  position: absolute; inset: -50%; z-index: 61; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
.film-flash {
  position: absolute; inset: 0; z-index: 62; pointer-events: none;
  background: #E8EBEF; opacity: 0;
}

/* ── scene layers ──────────────────────────────────────────── */
.scene { position: absolute; inset: 0; will-change: opacity, transform; }
.scene--cold   { z-index: 30; display: grid; place-items: center; background: var(--bg); }
.scene--chrome { z-index: 10; }
.scene--slides { z-index: 20; }
.scene--end    { z-index: 40; display: grid; place-items: center; background: var(--bg); }

/* ── cold open ─────────────────────────────────────────────── */
.cold {
  display: grid; place-items: center; gap: 26px; text-align: center;
}
.cold__mark {
  width: 92px; height: 92px; display: grid; place-items: center;
  border-radius: 22px; border: 1px solid var(--outline-strong);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: var(--e3);
}
.cold__mark img { width: 62px; height: 62px; object-fit: contain; }
.cold__name {
  font-family: var(--ff-display); font-weight: 700; font-size: 3.6rem;
  letter-spacing: .34em; text-indent: .34em; line-height: 1;
  background: linear-gradient(100deg, #FFFFFF 0%, #C9CFD6 30%, #FFFFFF 52%, #8E959D 78%, #E9EDF1 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cold__tag {
  font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .42em;
  text-transform: uppercase; color: var(--on-surface-dim);
}
.cold__rule { width: 260px; height: 1px; background: linear-gradient(90deg, transparent, var(--outline-strong), transparent); }
.cold__line { font-size: 1.02rem; color: var(--on-surface-var); letter-spacing: .01em; }

/* ── browser chrome (mirrors assets/css/browser-app.css) ───── */
.bx { position: absolute; inset: 0; display: grid; grid-template-rows: 44px 52px minmax(0, 1fr); background: #05070a; }

.bx__titlebar {
  display: flex; align-items: flex-end; gap: 5px; padding: 5px 9px 0;
  border-bottom: 1px solid #252c34; background: #070a0e;
}
.bx__brand {
  display: flex; align-items: center; align-self: center; flex: none; gap: 8px;
  height: 34px; padding: 0 12px 0 5px; border-right: 1px solid #252c34;
}
.bx__brand img { width: 26px; height: 26px; object-fit: contain; }
.bx__brand strong { font-family: var(--ff-display); font-size: .8rem; letter-spacing: .17em; }
.bx__brand small { display: block; color: var(--mint); font-family: var(--ff-mono); font-size: .52rem; font-weight: 700; letter-spacing: .13em; }
.bx__tabs { display: flex; align-items: flex-end; gap: 3px; flex: 1; min-width: 0; height: 38px; }
.bx__tab {
  display: flex; align-items: center; gap: 8px; flex: 0 1 216px; min-width: 108px;
  height: 34px; padding: 0 10px; border: 1px solid transparent; border-bottom: 0;
  border-radius: 9px 9px 0 0; color: #9aa5af; background: rgba(255,255,255,.035);
  font-size: .69rem; white-space: nowrap; overflow: hidden;
}
.bx__tab[data-active="true"] { color: #f5f7f9; border-color: #252c34; background: #10151a; box-shadow: inset 0 2px var(--mint); }
.bx__tab i { width: 13px; height: 13px; flex: none; border-radius: 3px; background: rgba(255,255,255,.14); }
.bx__tab[data-active="true"] i { background: rgba(47,227,181,.3); }
.bx__tab span { overflow: hidden; text-overflow: ellipsis; }
.bx__newtab, .bx__ico {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px;
  border: 1px solid transparent; border-radius: 8px; color: #e7ebee; font-weight: 750;
}
.bx__newtab { align-self: center; }
.bx__install {
  align-self: center; flex: none; height: 31px; padding: 0 14px; border-radius: 999px;
  display: grid; place-items: center; color: #000; background: #fff;
  font-size: .68rem; font-weight: 800;
}

.bx__toolbar { display: flex; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid #252c34; background: #0a0d11; }
.bx__omni {
  display: flex; align-items: center; flex: 1; min-width: 0; height: 36px;
  border: 1px solid #39434d; border-radius: 999px; background: #06090d;
  transition: border-color var(--dur-md) var(--ease-std), box-shadow var(--dur-md) var(--ease-std);
}
.bx__omni[data-focus="true"] { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(47,227,181,.10); }
.bx__lock { flex: none; margin-left: 14px; color: var(--mint); font-size: .72rem; }
.bx__url {
  flex: 1; min-width: 0; padding: 0 10px; display: flex; align-items: center;
  color: #fff; font-size: .8rem; white-space: nowrap; overflow: hidden;
}
.bx__url .ph { color: #79838c; }
.bx__caret { display: inline-block; width: 1.5px; height: 15px; margin-left: 1px; background: var(--mint); vertical-align: middle; }
.bx__go { flex: none; height: 30px; margin-right: 3px; padding: 0 14px; border-radius: 999px; display: grid; place-items: center; color: #000; background: #fff; font-size: .68rem; font-weight: 800; }
.bx__status { flex: 0 1 190px; min-width: 0; padding: 0 6px; color: #9aa5af; font-family: var(--ff-mono); font-size: .58rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bx__viewport { position: relative; overflow: hidden; background: #07090c; }

/* omnibox suggestion sheet */
.sp__fieldwrap { position: relative; z-index: 12; }
.bx__suggest {
  position: absolute; z-index: 12; left: 0; right: 0; top: calc(100% + 10px);
  padding: 6px; border: 1px solid #39434d; border-radius: 16px;
  background: rgba(8, 11, 15, .97); box-shadow: 0 30px 90px rgba(0,0,0,.72);
  backdrop-filter: blur(14px); transform-origin: 50% 0;
}
.bx__sug {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px;
  border-radius: 11px; color: var(--on-surface-var); font-size: .84rem;
}
.bx__sug[data-sel="true"] { color: var(--on-surface); background: rgba(255,255,255,.06); }
.bx__sug i { flex: none; width: 16px; text-align: center; color: var(--on-surface-dim); font-family: var(--ff-mono); font-size: .74rem; }
.bx__sug b { font-weight: 600; color: var(--on-surface); }
.bx__sug em { margin-left: auto; font-style: normal; font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-surface-dim); }

/* loading bar under the toolbar */
.bx__load { position: absolute; z-index: 14; left: 0; top: 0; width: 100%; height: 2px; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--mint), var(--ice)); box-shadow: 0 0 12px rgba(47,227,181,.5); }

/* ── search page inside the viewport (mirrors search.html) ─── */
.sp {
  position: absolute; inset: 0; padding: 44px 0 0;
  background: radial-gradient(circle at 50% -18%, #17221f 0, transparent 44%), #07090c;
  overflow: hidden;
}
.sp__inner { width: 920px; margin: 0 auto; }
.sp__brand { display: flex; align-items: center; justify-content: center; gap: 13px; margin-bottom: 20px; }
.sp__brand img { width: 42px; height: 42px; object-fit: contain; }
.sp__brand strong { font-family: var(--ff-display); font-weight: 700; font-size: 30px; letter-spacing: .12em; }
.sp__brand span { display: block; margin-top: 5px; font-family: var(--ff-mono); font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.sp__field {
  display: flex; align-items: center; gap: 10px; padding: 8px 9px 8px 20px;
  border: 1px solid rgba(47,227,181,.64); border-radius: 18px; background: #101512;
  box-shadow: 0 0 0 1px rgba(47,227,181,.08), 0 0 24px rgba(47,227,181,.08), 0 24px 80px rgba(0,0,0,.38);
}
.sp__field[data-focus="true"] { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(47,227,181,.12), 0 0 30px rgba(47,227,181,.12), 0 24px 80px rgba(0,0,0,.38); }
.sp__input { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; font-size: 18px; font-weight: 500; color: #fff; }
.sp__input .ph { position: absolute; left: 0; top: 50%; transform: translateY(-50%); white-space: nowrap; color: rgba(255,255,255,.5); }
.sp__input .caret { display: inline-block; width: 2px; height: 21px; margin-left: 2px; background: var(--mint); }
.sp__submit { flex: none; padding: 12px 20px; border: 1px solid rgba(255,255,255,.78); border-radius: 12px; background: #050608; color: #fff; font-size: 14px; font-weight: 800; }
.sp__submit[data-hot="true"] { border-color: var(--mint); background: var(--mint); color: #000; box-shadow: 0 0 0 3px rgba(47,227,181,.1), 0 0 24px rgba(47,227,181,.25); }
.sp__meta { margin: 14px 4px; min-height: 22px; color: #fff; font-family: var(--ff-mono); font-size: 12px; font-weight: 500; }
.sp__results { display: grid; gap: 9px; }
.sp__result {
  display: block; padding: 16px 21px; border: 1px solid rgba(255,255,255,.55); border-radius: 14px;
  background: #0d110f; color: #fff;
}
.sp__result[data-hot="true"] { border-color: var(--mint); background: #151b18; box-shadow: 0 18px 44px rgba(0,0,0,.5), 0 0 0 1px rgba(47,227,181,.22); }
.sp__result small { color: rgba(255,255,255,.66); font-family: var(--ff-mono); font-size: 12px; }
.sp__result h2 { margin: 6px 0 5px; font-family: var(--ff-body); font-weight: 600; font-size: 19px; line-height: 1.3; }
.sp__result p { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.8); }
.sp__score { float: right; font-family: var(--ff-mono); font-size: 12px; color: var(--mint); }

/* skeleton shimmer while "loading" */
.sp__stack { position: relative; }
.sp__skel { position: absolute; left: 0; right: 0; top: 0; display: grid; gap: 10px; }
.sp__skel div { height: 96px; border: 1px solid var(--outline); border-radius: 14px; background: linear-gradient(100deg, #0b0f0d 30%, #131a17 50%, #0b0f0d 70%); background-size: 300% 100%; }

/* ── slides ────────────────────────────────────────────────── */
.slide { position: absolute; inset: 0; overflow: hidden; background: var(--bg); }
.slide[data-accent="mint"]  { --acc: var(--mint); }
.slide[data-accent="ember"] { --acc: var(--ember); }
.slide[data-accent="amber"] { --acc: var(--amber); }
.slide[data-accent="ice"]   { --acc: var(--ice); }
.slide[data-accent="steel"] { --acc: var(--steel); }

.slide__bg { position: absolute; inset: 0; }
.slide__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(58% 62% at 78% 12%, color-mix(in srgb, var(--acc) 11%, transparent), transparent 68%),
    radial-gradient(48% 52% at 8% 96%, rgba(116,201,255,.05), transparent 70%);
}
.slide__bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(75% 75% at 70% 40%, #000 20%, transparent 78%);
}

/* the product surface, tilted into depth */
.slide__mock {
  position: absolute; top: 96px; right: -66px; width: 986px; height: 620px;
  border: 1px solid var(--outline-strong); border-radius: 16px; overflow: hidden;
  background: var(--surface);
  box-shadow: 0 60px 140px rgba(0,0,0,.72), 0 0 0 1px rgba(255,255,255,.03) inset;
  transform: perspective(2200px) rotateY(-11deg) rotateX(2.4deg);
  transform-origin: 100% 50%;
}
.slide__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(96deg,
    rgba(6,8,11,.985) 0%, rgba(6,8,11,.965) 24%, rgba(6,8,11,.80) 38%,
    rgba(6,8,11,.34) 54%, rgba(6,8,11,.06) 70%, transparent 84%);
}

.slide__copy { position: absolute; left: 84px; top: 128px; width: 486px; }
.slide__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--acc); border: 1px solid color-mix(in srgb, var(--acc) 34%, transparent);
  background: color-mix(in srgb, var(--acc) 8%, transparent);
  border-radius: var(--r-full); padding: 7px 15px; margin-bottom: 24px;
}
.slide__eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.slide__title {
  font-family: var(--ff-display); font-weight: 700; font-size: 2.65rem; line-height: 1.06;
  letter-spacing: -.028em; margin: 0 0 18px; color: var(--on-surface);
}
.slide__lede { font-size: 1rem; line-height: 1.62; color: var(--on-surface-var); margin: 0 0 26px; }
.slide__list { display: grid; gap: 11px; }
.slide__list li {
  position: relative; padding-left: 26px; font-size: .9rem; line-height: 1.5;
  color: var(--on-surface-var);
}
.slide__list li::before {
  content: ""; position: absolute; left: 4px; top: .52em; width: 8px; height: 8px;
  border-radius: 2px; background: var(--acc); transform: rotate(45deg);
}
.slide__list li b { color: var(--on-surface); font-weight: 600; }

.slide__foot {
  position: absolute; left: 84px; bottom: 74px; display: flex; align-items: center; gap: 16px;
  white-space: nowrap;
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-surface-dim);
}
.slide__num { flex: none; white-space: nowrap; font-family: var(--ff-display); font-size: .82rem; letter-spacing: .2em; color: var(--acc); }
.slide__foot > span:not(.slide__num) { flex: none; height: 1px; width: 54px; background: var(--outline-strong); }

/* ── mock building blocks ──────────────────────────────────── */
.mk { position: absolute; inset: 0; display: grid; overflow: hidden; background: var(--surface); color: var(--on-surface); }
/* Every pane below lives on a fixed-width artboard column. A single-column
   grid gets an implicit `auto` track, which sizes to max-content — so one
   long chat bubble or one nowrap log line widens the track past its column
   and paints over the neighbouring pane. Flooring min-width lets the track
   clamp to the container instead. */
.mk, .mk *:not(.vs__box) { min-width: 0; }
.mk :is(.ws__side, .ws__main, .ws__thread, .ws__msg--agent, .ws__cite, .ws__compose,
        .ws__preview, .ws__code, .fw__rows, .fw__hold, .vs__side, .vs__cls, .vs__cls > div,
        .vs__stat, .tr__side, .tr__ladder, .dp__plane, .dp__stat, .dp__chain, .dp__ship) {
  grid-template-columns: minmax(0, 1fr);
}
.mk :is(.ws__side, .ws__main, .ws__preview, .vs__side, .tr__side) { overflow: hidden; }
/* Fixed-height single-line bars: never let a nowrap chip shrink into its
   neighbour — wrap the row or clip the line instead. */
.mk :is(.mk__bar, .ws__mainbar, .ws__previewbar, .ws__who, .tr__q, .dp__chain .h) {
  white-space: nowrap; overflow: hidden;
}
.mk :is(.mk__bar, .ws__mainbar, .ws__previewbar, .ws__who) > * { flex: none; }
.mk .mk-chip { flex: none; }
.mk__bar {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px;
  border-bottom: 1px solid var(--outline); background: rgba(255,255,255,.02);
  font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-surface-dim);
}
.mk__bar b { color: var(--on-surface-var); font-weight: 500; }
.mk__bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 8px var(--acc); }
.mk__bar .push { margin-left: auto; }

.mk-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; white-space: nowrap;
  border: 1px solid var(--outline-strong); border-radius: var(--r-full);
  background: rgba(255,255,255,.03); color: var(--on-surface-var);
  font-family: var(--ff-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase;
}
.mk-chip--ok   { color: var(--mint);  border-color: rgba(47,227,181,.35);  background: rgba(47,227,181,.08); }
.mk-chip--warn { color: var(--amber); border-color: rgba(255,176,32,.35);  background: rgba(255,176,32,.08); }
.mk-chip--bad  { color: var(--ember); border-color: rgba(255,91,71,.38);   background: rgba(255,91,71,.09); }
.mk-chip--ice  { color: var(--ice);   border-color: rgba(116,201,255,.35); background: rgba(116,201,255,.08); }

.mk-meter { height: 4px; border-radius: var(--r-full); background: rgba(255,255,255,.08); overflow: hidden; }
.mk-meter i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--acc), var(--ice)); border-radius: inherit; }

/* ── slide 1 — workspace ───────────────────────────────────── */
.ws { grid-template-columns: 208px minmax(0,1fr) 300px; }
.ws__side { border-right: 1px solid var(--outline); background: rgba(255,255,255,.014); padding: 12px 10px; display: grid; align-content: start; gap: 3px; }
.ws__side h6 {
  margin: 2px 6px 12px; font-family: var(--ff-mono); font-size: .58rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--on-surface-dim); font-weight: 500;
}
.ws__nav {
  display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 9px;
  border-radius: 8px; font-size: .74rem; color: var(--on-surface-var);
}
.ws__nav i { width: 14px; text-align: center; font-family: var(--ff-mono); font-size: .7rem; color: var(--on-surface-dim); font-style: normal; }
.ws__nav[data-on="true"] { color: var(--on-surface); background: rgba(255,255,255,.06); }
.ws__nav[data-on="true"] i { color: var(--mint); }
.ws__tree { margin-top: 14px; display: grid; gap: 6px; padding: 0 8px; }
.ws__tree span { font-family: var(--ff-mono); font-size: .62rem; color: var(--on-surface-dim); }

.ws__main { display: grid; grid-template-rows: 34px minmax(0,1fr) auto; min-width: 0; }
.ws__mainbar { display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--outline); font-size: .68rem; color: var(--on-surface-dim); }
.ws__mainbar i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.ws__thread { padding: 18px 20px; display: grid; align-content: start; gap: 12px; overflow: hidden; }
.ws__msg { max-width: 92%; overflow-wrap: anywhere; }
.ws__msg--user {
  justify-self: end; padding: 10px 15px; border-radius: 14px 14px 4px 14px;
  background: rgba(255,255,255,.07); border: 1px solid var(--outline-strong);
  font-size: .82rem; color: var(--on-surface);
}
.ws__msg--agent { display: grid; gap: 9px; }
.ws__who { display: flex; align-items: center; gap: 8px; font-family: var(--ff-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-surface-dim); }
.ws__who i { width: 16px; height: 16px; border-radius: 5px; background: linear-gradient(150deg, var(--mint), var(--ice)); }
.ws__body { font-size: .8rem; line-height: 1.62; color: var(--on-surface-var); }
.ws__body b { color: var(--on-surface); font-weight: 600; }
.ws__tools { display: flex; flex-wrap: wrap; gap: 6px; }
.ws__tool {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px;
  border: 1px solid var(--outline); border-radius: 8px; background: rgba(255,255,255,.025);
  font-family: var(--ff-mono); font-size: .6rem; color: var(--on-surface-var);
}
.ws__tool s { text-decoration: none; color: var(--mint); }
.ws__cite { display: grid; gap: 5px; padding: 11px 13px; border-left: 2px solid var(--mint); border-radius: 0 8px 8px 0; background: rgba(47,227,181,.05); }
.ws__cite b { font-size: .74rem; color: var(--on-surface); }
.ws__cite span { font-family: var(--ff-mono); font-size: .6rem; color: var(--on-surface-dim); }
.ws__compose { margin: 0 16px 14px; padding: 11px 13px; border: 1px solid var(--outline-strong); border-radius: 14px; background: rgba(255,255,255,.025); display: grid; gap: 10px; }
.ws__compose > p { margin: 0; font-size: .76rem; color: var(--on-surface-dim); }
.ws__composebar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.ws__composebar .push { margin-left: auto; width: 0; }
.ws__preview { border-left: 1px solid var(--outline); background: rgba(255,255,255,.012); display: grid; grid-template-rows: 34px minmax(0,1fr); }
.ws__previewbar { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--outline); font-family: var(--ff-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-surface-dim); }
.ws__code { padding: 12px 14px; font-family: var(--ff-mono); font-size: .62rem; line-height: 1.85; overflow: hidden; }
.ws__code div { white-space: pre; color: var(--on-surface-var); }
.ws__code .k { color: var(--ice); }
.ws__code .s { color: var(--mint); }
.ws__code .c { color: var(--on-surface-dim); }

/* ── slide 2 — firewall ────────────────────────────────────── */
.fw { grid-template-rows: 38px auto auto auto minmax(0,1fr); }
.fw__foot { align-self: end; }
.fw__pipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 16px 18px 6px; }
.fw__step { padding: 12px 13px; border: 1px solid var(--outline); border-radius: 12px; background: linear-gradient(168deg, var(--surface-2), var(--surface-1)); }
.fw__step[data-on="true"] { border-color: color-mix(in srgb, var(--acc) 42%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--acc) 18%, transparent), 0 10px 30px rgba(0,0,0,.4); }
.fw__step b { display: block; font-family: var(--ff-display); font-size: .82rem; letter-spacing: .01em; margin-bottom: 5px; }
.fw__step span { font-size: .64rem; line-height: 1.45; color: var(--on-surface-dim); }
.fw__rows { padding: 10px 18px; display: grid; gap: 6px; align-content: start; overflow: hidden; }
.fw__row {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.022); border-left: 2px solid var(--outline-strong);
  font-family: var(--ff-mono); font-size: .66rem; color: var(--on-surface-var);
  white-space: nowrap; overflow: hidden;
}
.fw__row > :not(.tag):not(.ms) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fw__row .tag { flex: none; padding: 2px 7px; border-radius: 4px; font-size: .56rem; letter-spacing: .1em; }
.fw__row .ms { margin-left: auto; flex: none; color: var(--on-surface-dim); font-size: .6rem; }
.fw__row[data-v="ok"]   { border-left-color: var(--mint); }
.fw__row[data-v="ok"] .tag   { background: rgba(47,227,181,.14); color: var(--mint); }
.fw__row[data-v="warn"] { border-left-color: var(--amber); }
.fw__row[data-v="warn"] .tag { background: rgba(255,176,32,.14); color: var(--amber); }
.fw__row[data-v="bad"]  { border-left-color: var(--ember); background: rgba(255,91,71,.055); }
.fw__row[data-v="bad"] .tag  { background: rgba(255,91,71,.16); color: var(--ember); }
.fw__hold {
  margin: 4px 18px 0; padding: 13px 15px; border: 1px solid rgba(255,91,71,.4);
  border-radius: 12px; background: rgba(255,91,71,.07); display: grid; gap: 8px;
}
.fw__hold b { font-family: var(--ff-display); font-size: .84rem; color: var(--ember); letter-spacing: .02em; }
.fw__hold p { margin: 0; font-size: .68rem; line-height: 1.5; color: var(--on-surface-var); }
.fw__hold .acts { display: flex; gap: 8px; align-items: center; }
.fw__foot { display: flex; align-items: center; gap: 14px; padding: 12px 18px 16px; border-top: 1px solid var(--outline); font-family: var(--ff-mono); font-size: .62rem; color: var(--on-surface-dim); }

/* ── slide 3 — vision ──────────────────────────────────────── */
.vs { grid-template-columns: minmax(0,1fr) 292px; }
.vs__frame { position: relative; overflow: hidden; background: #0a0e12; }
.vs__feed { position: absolute; inset: 0; background:
  linear-gradient(160deg, #101821 0%, #0a0f15 46%, #0c1319 100%); }
.vs__feed::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px);
}
.vs__doc {
  position: absolute; left: 92px; top: 62px; width: 300px; height: 400px;
  border-radius: 6px; background: linear-gradient(178deg, #f4f6f8, #d9dee3);
  box-shadow: 0 30px 70px rgba(0,0,0,.6); transform: rotate(-3.4deg);
  padding: 22px 20px; display: grid; align-content: start; gap: 9px;
}
.vs__doc i { display: block; height: 6px; border-radius: 2px; background: #aeb6be; }
.vs__doc i.w1 { width: 68%; height: 10px; background: #6d757e; }
.vs__doc i.w2 { width: 100%; }
.vs__doc i.w3 { width: 86%; }
.vs__doc i.w4 { width: 94%; }
.vs__doc .inj {
  margin-top: 8px; padding: 7px 8px; border-radius: 4px; background: #e7eaee;
  font-family: var(--ff-mono); font-size: .5rem; line-height: 1.5; color: #b9bfc6;
}
.vs__box { position: absolute; border: 1.5px solid var(--acc); border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 0 22px color-mix(in srgb, var(--acc) 32%, transparent) inset; }
.vs__box b {
  position: absolute; left: -1.5px; top: -20px; padding: 2px 7px; border-radius: 4px 4px 0 0;
  background: var(--acc); color: #07090c; font-family: var(--ff-mono); font-size: .54rem;
  letter-spacing: .08em; white-space: nowrap; font-weight: 700;
}
.vs__box--bad { border-color: var(--ember); box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 0 26px rgba(255,91,71,.3) inset; }
.vs__box--bad b { background: var(--ember); color: #120402; }
.vs__scan { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--acc), transparent); box-shadow: 0 0 20px color-mix(in srgb, var(--acc) 60%, transparent); }
.vs__ocr {
  position: absolute; left: 92px; bottom: 34px; width: 420px; padding: 12px 14px;
  border: 1px solid rgba(255,91,71,.42); border-radius: 12px; background: rgba(10,7,7,.94);
  backdrop-filter: blur(8px); display: grid; gap: 7px;
}
.vs__ocr b { font-family: var(--ff-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ember); }
.vs__ocr code { font-family: var(--ff-mono); font-size: .64rem; line-height: 1.55; color: var(--on-surface); }
.vs__side { border-left: 1px solid var(--outline); padding: 14px; display: grid; align-content: start; gap: 12px; background: rgba(255,255,255,.014); }
.vs__cls { display: grid; gap: 7px; }
.vs__cls > div { display: grid; gap: 5px; }
.vs__cls .lbl { display: flex; justify-content: space-between; font-family: var(--ff-mono); font-size: .6rem; color: var(--on-surface-var); }
.vs__cls .lbl em { font-style: normal; color: var(--on-surface-dim); }
.vs__stat { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--outline); border-radius: 10px; background: rgba(255,255,255,.02); }
.vs__stat b { font-family: var(--ff-mono); font-size: 1.15rem; color: var(--on-surface); letter-spacing: -.02em; }
.vs__stat span { font-size: .62rem; color: var(--on-surface-dim); line-height: 1.4; }

/* ── slide 4 — training ────────────────────────────────────── */
.tr { grid-template-rows: 38px minmax(0,1fr); }
.tr__body { display: grid; grid-template-columns: minmax(0,1fr) 316px; min-height: 0; }
.tr__chart { position: relative; padding: 18px 16px 14px 20px; border-right: 1px solid var(--outline); }
.tr__chart svg { width: 100%; height: 100%; overflow: visible; }
.tr__axis { font-family: var(--ff-mono); font-size: 9px; fill: #6C757F; }
.tr__legend { position: absolute; right: 26px; top: 22px; display: grid; gap: 6px; }
.tr__legend span { display: flex; align-items: center; gap: 7px; font-family: var(--ff-mono); font-size: .58rem; color: var(--on-surface-dim); }
.tr__legend i { width: 14px; height: 2px; border-radius: 2px; }
.tr__side { padding: 14px; display: grid; align-content: start; gap: 11px; }
.tr__ladder { display: grid; gap: 6px; }
.tr__q {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--outline);
  border-radius: 10px; background: rgba(255,255,255,.02); font-family: var(--ff-mono); font-size: .62rem;
  color: var(--on-surface-var);
}
.tr__q[data-on="true"] { border-color: color-mix(in srgb, var(--acc) 44%, transparent); background: color-mix(in srgb, var(--acc) 7%, transparent); color: var(--on-surface); }
.tr__q em { margin-left: auto; font-style: normal; color: var(--on-surface-dim); }
.tr__q[data-on="true"] em { color: var(--acc); }
.tr__gate { display: flex; align-items: center; gap: 9px; font-family: var(--ff-mono); font-size: .62rem; color: var(--on-surface-var); }
.tr__gate i { width: 15px; height: 15px; display: grid; place-items: center; border-radius: 4px; background: rgba(47,227,181,.14); color: var(--mint); font-size: .58rem; }
.tr__note { padding: 11px 12px; border-left: 2px solid var(--acc); border-radius: 0 8px 8px 0; background: color-mix(in srgb, var(--acc) 6%, transparent); font-size: .68rem; line-height: 1.5; color: var(--on-surface-var); }

/* ── slide 5 — deploy / proof ──────────────────────────────── */
.dp { grid-template-rows: 38px minmax(0,1fr) auto auto auto; }
.dp__planes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 16px 18px 8px; align-content: stretch; }
.dp__plane { padding: 13px 14px; border: 1px solid var(--outline); border-radius: 12px; background: linear-gradient(168deg, var(--surface-2), var(--surface-1)); display: grid; align-content: start; gap: 6px; }
.dp__plane b { font-family: var(--ff-display); font-size: .8rem; }
.dp__plane span { font-size: .64rem; line-height: 1.45; color: var(--on-surface-dim); }
.dp__plane .mk-chip { justify-self: start; margin-top: 2px; }
.dp__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 10px 18px 0; }
.dp__stat { padding-left: 14px; border-left: 1px solid var(--outline-strong); display: grid; gap: 4px; }
.dp__stat b { font-family: var(--ff-mono); font-size: 1.4rem; font-weight: 500; letter-spacing: -.02em; color: var(--on-surface); }
.dp__stat span { font-size: .6rem; line-height: 1.4; color: var(--on-surface-dim); }
.dp__chain { margin: 12px 18px 16px; padding: 12px 14px; border: 1px solid var(--outline); border-radius: 12px; background: rgba(255,255,255,.02); display: grid; gap: 7px; }
.dp__chain .h { display: flex; align-items: center; gap: 9px; font-family: var(--ff-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-surface-dim); }
.dp__chain code { font-family: var(--ff-mono); font-size: .6rem; color: var(--on-surface-var); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ships-everywhere strip */
.dp__ship { margin: 14px 18px 0; display: grid; gap: 9px; }
.dp__ship .h { font-family: var(--ff-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-surface-dim); }
.dp__plats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dp__plat {
  display: grid; gap: 3px; padding: 9px 11px; border: 1px solid var(--outline-strong);
  border-radius: 10px; background: rgba(255,255,255,.03);
  font-size: .58rem; line-height: 1.3; color: var(--on-surface-dim);
}
.dp__plat b { font-family: var(--ff-display); font-size: .78rem; letter-spacing: .02em; color: var(--on-surface); }

/* end-card availability row */
.end__plats { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: center; }
.end__plat { font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-surface-dim); margin-right: 4px; }

.slide__cta { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.slide__cta .btn { pointer-events: none; }
.slide__price { margin-top: 16px; font-family: var(--ff-mono); font-size: .68rem; color: var(--on-surface-dim); letter-spacing: .04em; }

/* ── end card ──────────────────────────────────────────────── */
.end { display: grid; place-items: center; gap: 22px; text-align: center; }
.end__title { font-family: var(--ff-display); font-weight: 700; font-size: 3.1rem; letter-spacing: -.03em; line-height: 1.04; }
.end__sub { font-size: 1.02rem; color: var(--on-surface-var); max-width: 52ch; }
.end__stamp { font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-surface-dim); }
.end__row { display: flex; align-items: center; gap: 12px; }

/* ── synthetic cursor ──────────────────────────────────────── */
.film-cursor { position: absolute; z-index: 70; top: 0; left: 0; width: 26px; height: 26px; pointer-events: none; will-change: transform; }
.film-cursor svg { width: 26px; height: 26px; filter: drop-shadow(0 3px 7px rgba(0,0,0,.75)); }
.film-cursor__ring {
  position: absolute; left: 1px; top: 1px; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 2px solid var(--mint); border-radius: 50%; opacity: 0; transform: scale(.2);
}
.film-cursor__ripple {
  position: absolute; left: 1px; top: 1px; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: rgba(47,227,181,.5); opacity: 0;
}
.film-key {
  position: absolute; z-index: 70; padding: 7px 13px; border-radius: 9px;
  border: 1px solid var(--outline-strong); background: rgba(10,13,17,.94);
  font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .12em; color: var(--on-surface);
  box-shadow: var(--e3); opacity: 0; pointer-events: none;
}

/* ── caption / subtitle band ───────────────────────────────── */
.film-caption {
  position: absolute; z-index: 55; left: 0; right: 0; bottom: 40px;
  text-align: center; opacity: 0; pointer-events: none;
}
.film-caption::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -40px; height: 168px;
  background: linear-gradient(to top, rgba(6,8,11,.94) 12%, rgba(6,8,11,.62) 46%, transparent 100%);
}
.film-caption span { position: relative; }
.film-caption span {
  display: inline-block; max-width: 84%;
  padding: 10px 20px; border-radius: var(--r-full); border: 1px solid var(--outline-strong);
  background: rgba(8,11,15,.86); backdrop-filter: blur(10px);
  font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .1em;
  color: var(--on-surface-var); white-space: nowrap;
}

/* ── HUD ───────────────────────────────────────────────────── */
.film-hud {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 16px; padding: 12px 16px;
  border: 1px solid var(--outline); border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--surface-1), var(--surface));
  box-shadow: var(--e1);
}
.film-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--outline-strong); border-radius: 50%; background: transparent;
  color: var(--on-surface); cursor: pointer;
  transition: background var(--dur-sm) var(--ease-std), border-color var(--dur-sm) var(--ease-std);
}
.film-btn:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.3); }
.film-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.film-btn[aria-pressed="true"] { color: var(--mint); border-color: rgba(47,227,181,.4); background: rgba(47,227,181,.08); }
.film-btn--play svg { fill: currentColor; stroke: none; }

.film-time { font-family: var(--ff-mono); font-size: .74rem; color: var(--on-surface-dim); letter-spacing: .06em; flex: none; min-width: 92px; }
.film-time b { color: var(--on-surface); font-weight: 500; }

.film-scrub { position: relative; flex: 1 1 240px; min-width: 180px; height: 26px; cursor: pointer; touch-action: none; }
.film-scrub__track { position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: var(--r-full); background: rgba(255,255,255,.09); overflow: hidden; }
.film-scrub__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform: scaleX(0); transform-origin: 0 50%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--ice)); }
.film-scrub__mark { position: absolute; top: 8px; width: 2px; height: 10px; border-radius: 1px; background: rgba(255,255,255,.28); transform: translateX(-1px); }
.film-scrub__head {
  position: absolute; top: 6px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: var(--on-surface); box-shadow: 0 0 0 4px rgba(232,235,239,.14), var(--e1);
}
.film-scrub:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }

.film-chapters { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.film-chapter {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px;
  border: 1px solid var(--outline); border-radius: var(--r-full);
  background: rgba(255,255,255,.02); color: var(--on-surface-var);
  font-size: .78rem; cursor: pointer;
  transition: color var(--dur-sm) var(--ease-std), border-color var(--dur-sm) var(--ease-std), background var(--dur-sm) var(--ease-std);
}
.film-chapter:hover { color: var(--on-surface); border-color: var(--outline-strong); background: rgba(255,255,255,.05); }
.film-chapter b { font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .1em; color: var(--on-surface-dim); font-weight: 500; }
.film-chapter[aria-current="true"] { color: #06080B; background: var(--steel); border-color: var(--steel); }
.film-chapter[aria-current="true"] b { color: rgba(6,8,11,.62); }

.film-hint { margin-top: 14px; font-family: var(--ff-mono); font-size: .68rem; color: var(--on-surface-dim); letter-spacing: .04em; }
.film-hint kbd {
  display: inline-block; padding: 2px 7px; margin: 0 2px; border-radius: 5px;
  border: 1px solid var(--outline-strong); background: rgba(255,255,255,.04);
  font-family: inherit; font-size: .92em; color: var(--on-surface-var);
}

/* fullscreen */
.film-frame:fullscreen { border-radius: 0; border: 0; width: 100vw; height: 100vh; aspect-ratio: auto; }

/* ── what's-new strip ──────────────────────────────────────── */
.film-news-section { padding: clamp(56px, 7vw, 88px) 0 0; }
.film-news {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 26px; padding: 26px 30px;
}
.film-news .chip { align-self: start; margin-top: 4px; }
.film-news__body h2 { margin-bottom: 8px; }
.film-news__body p { margin: 0; color: var(--on-surface-var); font-size: .94rem; max-width: 72ch; }
.film-news__body p b { color: var(--on-surface); font-weight: 600; }
.film-news__actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 980px) {
  .film-news { grid-template-columns: 1fr; gap: 18px; }
  .film-news .chip { justify-self: start; margin-top: 0; }
}

/* ── below-the-fold chapter summary (real content, indexable) ─ */
.film-index .card { display: grid; gap: 10px; }
.film-index .card h3 { font-size: 1.08rem; }
.film-index .card p { color: var(--on-surface-var); font-size: .9rem; margin: 0; }
.film-index__num { font-family: var(--ff-mono); font-size: .64rem; letter-spacing: .18em; color: var(--acc, var(--steel-dim)); text-transform: uppercase; }
.film-index .card[data-accent="mint"]  { --acc: var(--mint); }
.film-index .card[data-accent="ember"] { --acc: var(--ember); }
.film-index .card[data-accent="amber"] { --acc: var(--amber); }
.film-index .card[data-accent="ice"]   { --acc: var(--ice); }
.film-index .card[data-accent="steel"] { --acc: var(--steel); }

/* ── responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .film-hero__head { flex-direction: column; align-items: flex-start; }
  .film-hud { gap: 10px; padding: 10px 12px; }
  .film-time { min-width: 80px; font-size: .68rem; }
  .film-chapter { font-size: .72rem; padding: 7px 11px; }
}
@media (max-width: 620px) {
  .film-frame { border-radius: var(--r-lg); }
  .film-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .film-grain { display: none; }
}
