/* ============================================================
   LUMIERE — Landing v6
   Built on the product's own surface: the img111 wallpaper under a
   deep blur, liquid-glass plates on top, Geist everywhere.
   Materials copied verbatim from src/app/globals.css
   (.lg-surface / .projects-glass-button / .projects-canvas::before).
   ============================================================ */

:root {
  --bg: #08080a;

  --w-1: rgba(255, 255, 255, 0.95);
  --w-2: rgba(255, 255, 255, 0.62);
  --w-3: rgba(255, 255, 255, 0.42);
  --w-4: rgba(255, 255, 255, 0.26);

  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.14);
  --spec: rgba(255, 255, 255, 0.22);

  --accent: #d3dae1;
  --accent-bright: #edf1f5;
  --accent-line: rgba(211, 218, 225, 0.35);
  --accent-halo: rgba(211, 218, 225, 0.16);

  /* champagne = AI presence only */
  --ai: #e8b76a;
  --ai-bright: #f2cd8e;
  --ai-line: rgba(232, 183, 106, 0.35);
  --ai-halo: rgba(232, 183, 106, 0.18);
  --on-ai: #2b1a05;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 70px -42px rgba(0, 0, 0, 0.95);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;

  --dur: 200ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  --mono: 'Geist Mono', 'SF Mono', ui-monospace, monospace;

  --pad: clamp(20px, 5vw, 48px);
  --maxw: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--w-1);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  font-weight: 500;
  letter-spacing: 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
input {
  font: inherit;
  color: inherit;
}
ul {
  list-style: none;
}
::selection {
  background: rgba(255, 255, 255, 0.16);
}
:focus-visible {
  outline: 1px solid var(--accent-bright);
  outline-offset: 2px;
}

/* ============================================================
   THE CANVAS — img111 wallpaper, deep blur, black scrim
   (same recipe the editor and /login paint)
   ============================================================ */
.canvas {
  position: fixed;
  inset: -64px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.5) 46%,
      rgba(0, 0, 0, 0.78) 100%
    ),
    url('/backgrounds/editor-bg-111.png') center/cover no-repeat;
  filter: blur(34px) saturate(1.02);
}
/* 72px machine grid + a soft key light, exactly like the auth shell */
.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 35% 14%, rgba(255, 255, 255, 0.055), transparent 34%),
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size:
    100% 100%,
    72px 72px,
    72px 72px;
}
/* past the hero the room only *settles* — it never goes opaque, so the
   wallpaper stays alive under the glass all the way to the footer */
.deepen {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(6, 6, 8, 0) 0%,
    rgba(6, 6, 8, 0.34) 18%,
    rgba(6, 6, 8, 0.44) 60%,
    rgba(6, 6, 8, 0.3) 100%
  );
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.02;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   LIQUID GLASS — the app's materials
   ============================================================ */
.lg {
  position: relative;
  isolation: isolate;
  background-color: rgba(11, 12, 14, 0.44);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(34px) saturate(180%) brightness(1.06);
  -webkit-backdrop-filter: blur(34px) saturate(180%) brightness(1.06);
  box-shadow:
    inset 0 1px 0 var(--spec),
    var(--shadow-sm);
}
.lg-hi {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    var(--shadow-md);
}
/* raked specular along the top inner edge */
.rake::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.6;
  background: linear-gradient(
      90deg,
      transparent 4%,
      rgba(255, 255, 255, 0.32) 24%,
      rgba(255, 255, 255, 0.07) 58%,
      transparent 92%
    )
    top / 100% 1px no-repeat;
}
/* cursor-follow specular */
.spot::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    220px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.09),
    transparent 64%
  );
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.spot:hover::before {
  opacity: 1;
}
.spot > * {
  position: relative;
  z-index: 1;
}

/* ============================================================
   BUTTONS — .projects-glass-button, verbatim
   ============================================================ */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    color var(--dur) ease,
    border-color var(--dur) ease,
    box-shadow var(--dur) ease,
    background-color var(--dur) ease,
    transform var(--dur) var(--ease);
}
.btn-glass {
  background:
    radial-gradient(185% 145% at 50% -68%, rgba(255, 255, 255, 0.115), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.006)),
    rgba(2, 3, 4, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.095);
  color: var(--w-2);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.105),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
}
.btn-glass:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.95);
}
.btn-glass:active {
  transform: scale(0.98);
}
.btn-light {
  background: #f2f3f5;
  color: #121316;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 24px rgba(0, 0, 0, 0.28);
}
.btn-light:hover {
  background: #fff;
  transform: translateY(-1px);
}
.btn-lg {
  height: 46px;
  padding: 0 24px;
  font-size: 14.5px;
}
.btn.ok {
  background: #3fbf7f;
  color: #04150e;
  border-color: transparent;
}

/* ============================================================
   LAYOUT
   ============================================================ */
main,
footer {
  position: relative;
  z-index: 2;
}
.sec {
  position: relative;
  padding: clamp(60px, 7vw, 100px) var(--pad);
}
.inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--w-3);
}
.eyebrow i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ai);
  box-shadow: 0 0 10px var(--ai-halo);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}
.h2 {
  margin-top: 18px;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.h2 .dim {
  color: var(--w-3);
}
.lede {
  margin-top: 16px;
  max-width: 56ch;
  font-size: clamp(14.5px, 1.25vw, 16px);
  line-height: 1.6;
  color: var(--w-2);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s var(--ease) var(--d, 0s),
    transform 0.8s var(--ease) var(--d, 0s);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   NAV
   ============================================================ */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  height: 1px;
  width: 100%;
  z-index: 90;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8));
  pointer-events: none;
}
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 var(--pad);
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--dur) ease,
    border-color var(--dur) ease,
    backdrop-filter var(--dur) ease;
}
.nav.stuck {
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border-bottom-color: var(--line);
}
.brand {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.foot .brand {
  flex: none;
}
.brand img {
  width: 19px;
  height: 19px;
}
/* segmented glass control — the app's .projects-primary-tabs, with a
   sliding indicator driven by hover + scroll position */
.tabs {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin: 0 auto;
  padding: 3px;
  border-radius: 999px;
  background:
    radial-gradient(185% 145% at 50% -68%, rgba(255, 255, 255, 0.115), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.006)),
    rgba(2, 3, 4, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.095);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.105),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
}
.tabs a {
  position: relative;
  z-index: 1;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--w-3);
  white-space: nowrap;
  transition: color var(--dur) ease;
}
.tabs a:hover,
.tabs a.on {
  color: var(--w-1);
}
.tabs .ind {
  position: absolute;
  z-index: 0;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background:
    radial-gradient(190% 135% at 50% -55%, rgba(255, 255, 255, 0.19), transparent 64%),
    rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  opacity: 0;
  transition:
    transform 0.42s var(--ease),
    width 0.42s var(--ease),
    opacity var(--dur) ease;
}
.tabs.armed .ind {
  opacity: 1;
}
.nav-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.nav-login {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--w-2);
  transition: color var(--dur) ease;
}
.nav-login:hover {
  color: var(--w-1);
}
.nav .btn {
  height: 32px;
  padding: 0 15px;
  font-size: 12.5px;
}

/* ============================================================
   HERO — centred, over the wallpaper
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(56px + clamp(56px, 11vh, 116px)) var(--pad) clamp(28px, 5vh, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero .eyebrow {
  height: 28px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background:
    radial-gradient(185% 145% at 50% -68%, rgba(255, 255, 255, 0.115), transparent 62%),
    rgba(2, 3, 4, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.095);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.105);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  color: var(--w-2);
  letter-spacing: 0.22em;
}
.title {
  margin-top: clamp(20px, 3.4vh, 34px);
  font-size: clamp(44px, 7.4vw, 96px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.045em;
  max-width: 15ch;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}
.title .ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.title .ln > span {
  display: block;
  transform: translateY(103%);
  transition: transform 1s var(--ease) var(--d, 0s);
}
.ready .title .ln > span {
  transform: none;
}
.title .soft {
  color: rgba(255, 255, 255, 0.55);
}
.hero-sub {
  margin-top: clamp(16px, 2.4vh, 24px);
  max-width: 52ch;
  font-size: clamp(15px, 1.35vw, 17.5px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.66);
}
.hero-cta {
  margin-top: clamp(22px, 3.4vh, 34px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.form {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(100%, 440px);
  padding: 5px 5px 5px 6px;
  border-radius: 999px;
  background:
    radial-gradient(185% 145% at 50% -68%, rgba(255, 255, 255, 0.1), transparent 62%),
    rgba(2, 3, 4, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  transition:
    border-color var(--dur) ease,
    box-shadow var(--dur) ease;
}
.form:focus-within {
  border-color: rgba(255, 255, 255, 0.24);
}
.form input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 6px 0 12px;
  border: 0;
  background: none;
  font-size: 14px;
  outline: none;
  text-align: left;
}
.form input::placeholder {
  color: var(--w-3);
}
.proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--w-3);
}
.proof .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--w-4);
}
.proof b {
  color: var(--w-2);
  font-weight: 400;
}

/* the capture, floating in the hero */
.stage {
  width: 100%;
  max-width: min(1180px, 128svh);
  margin: clamp(28px, 5vh, 60px) auto 0;
  position: relative;
}
.screen-wrap {
  position: relative;
  transform: perspective(2000px) rotateX(var(--rx, 5deg)) scale(var(--sc, 0.96));
  transform-origin: 50% 100%;
  will-change: transform;
}
.screen-wrap::before {
  content: '';
  position: absolute;
  inset: 8% 8% 2%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), transparent 74%);
  filter: blur(60px);
  opacity: calc(0.35 + 0.65 * var(--lit, 0));
  z-index: 0;
}
.screen {
  position: relative;
  z-index: 1;
  padding: 6px;
  border-radius: 18px;
  background-color: rgba(11, 12, 14, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(34px) saturate(180%) brightness(1.06);
  -webkit-backdrop-filter: blur(34px) saturate(180%) brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 30px 80px -40px rgba(0, 0, 0, 0.9);
}
.screen video,
.screen .poster {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  background: #0a0a0c;
  /* keep capture colors natural — no desat / lift grade */
  filter: none;
}
.screen .poster {
  position: absolute;
  inset: 6px;
  width: auto;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) ease;
}
.screen.idle .poster {
  opacity: 1;
}
.big-play {
  position: absolute;
  inset: 6px;
  z-index: 6;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: radial-gradient(46% 46% at 50% 50%, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0) 74%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) ease;
}
.screen.paused .big-play {
  opacity: 1;
  pointer-events: auto;
}
.big-play span {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(2, 3, 4, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    var(--shadow-md);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  transition: transform var(--dur) var(--ease);
}
.big-play:hover span {
  transform: scale(1.06);
}
.big-play svg {
  margin-left: 3px;
}

/* transport */
.transport {
  position: relative;
  z-index: 3;
  margin: 14px auto 0;
  width: min(100%, 860px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 9px;
  border-radius: 999px;
  background:
    radial-gradient(185% 145% at 50% -68%, rgba(255, 255, 255, 0.1), transparent 62%),
    rgba(2, 3, 4, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 8px 24px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
}
.c-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 999px;
  color: var(--w-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    background-color var(--dur) ease,
    color var(--dur) ease;
}
.c-btn:hover {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}
.c-time {
  flex: none;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--w-3);
  font-variant-numeric: tabular-nums;
}
.c-label {
  flex: none;
  max-width: 24ch;
  text-align: right;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--w-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.c-label b {
  color: var(--w-2);
  font-weight: 400;
}
.scrub {
  position: relative;
  flex: 1;
  min-width: 60px;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.scrub .bar {
  position: relative;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  transition: height var(--dur) ease;
}
.scrub:hover .bar {
  height: 5px;
}
.scrub .fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--p, 0) * 100%);
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.9);
}
.scrub .fill::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-50%) scale(0);
  transition: transform var(--dur) var(--ease);
}
.scrub:hover .fill::after {
  transform: translateY(-50%) scale(1);
}
.scrub .mark {
  position: absolute;
  top: -1px;
  width: 1px;
  height: calc(100% + 2px);
  background: rgba(255, 255, 255, 0.3);
}

/* ------------------------------------------------------------
   PROMPT BAR — type a direction, the capture jumps to it
   ------------------------------------------------------------ */
.promptbar {
  position: relative;
  z-index: 3;
  margin: 14px auto 0;
  width: min(100%, 860px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background:
    radial-gradient(185% 145% at 50% -68%, rgba(255, 255, 255, 0.1), transparent 62%),
    rgba(2, 3, 4, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 8px 24px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
}
.pb-k {
  flex: none;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--w-3);
}
.pb-text {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: var(--w-1);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pb-text.empty {
  color: var(--w-3);
}
.pb-text .caret {
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 1px;
  background: var(--ai);
  vertical-align: -2px;
  animation: blink 1.05s steps(2) infinite;
}
.pb-send {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--ai);
  color: var(--on-ai);
  box-shadow: 0 0 18px var(--ai-halo);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) ease;
}
.pb-send.go {
  transform: scale(1.12);
  box-shadow: 0 0 28px rgba(232, 183, 106, 0.5);
}
.chips {
  margin: 12px auto 0;
  width: min(100%, 900px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--w-2);
  background:
    radial-gradient(185% 145% at 50% -68%, rgba(255, 255, 255, 0.1), transparent 62%),
    rgba(2, 3, 4, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  transition:
    color var(--dur) ease,
    border-color var(--dur) ease,
    transform var(--dur) var(--ease),
    background-color var(--dur) ease;
}
.chip:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.chip.on {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background-color: rgba(255, 255, 255, 0.09);
}

/* ============================================================
   THE RUN — chapters
   ============================================================ */
.run-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.slate {
  display: grid;
  gap: 1px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  min-width: 264px;
}
.slate div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 26px;
  padding: 8px 13px;
  background: rgba(11, 12, 14, 0.44);
  backdrop-filter: blur(34px) saturate(180%);
  -webkit-backdrop-filter: blur(34px) saturate(180%);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.slate .kk {
  color: var(--w-3);
}
.slate .vv {
  color: var(--w-2);
}
.shots {
  margin-top: clamp(26px, 3.4vw, 40px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.shot {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  padding: 13px 14px 15px;
  border-radius: var(--r-lg);
  background-color: rgba(11, 12, 14, 0.44);
  border: 1px solid var(--line);
  backdrop-filter: blur(34px) saturate(180%) brightness(1.06);
  -webkit-backdrop-filter: blur(34px) saturate(180%) brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition:
    border-color var(--dur) ease,
    background-color var(--dur) ease,
    box-shadow var(--dur) ease;
}
.shot:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.shot.on {
  border-color: rgba(255, 255, 255, 0.24);
  background-color: rgba(16, 17, 20, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}
.shot-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--w-3);
}
.shot.on .shot-top {
  color: var(--w-1);
}
.shot-top .t {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.shot h4 {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--w-2);
}
.shot.on h4 {
  color: var(--w-1);
}
.shot p {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--w-3);
}
.shot .fill {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: calc(var(--p, 0) * 100%);
  background: rgba(255, 255, 255, 0.75);
  transition: width 0.15s linear;
}

/* ============================================================
   WHAT SHIPS — one glass console, capability rows
   ============================================================ */
.ships {
  margin-top: clamp(34px, 5vw, 56px);
  border-radius: 18px;
  overflow: hidden;
}
.ship {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.ship:last-child {
  border-bottom: 0;
}
.ship:nth-child(even) .ship-copy {
  order: 2;
}
.ship-copy {
  padding: clamp(26px, 3.4vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ship-k {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--w-3);
}
.ship-copy h3 {
  margin-top: 14px;
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.ship-copy p {
  margin-top: 12px;
  max-width: 44ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--w-2);
}
.ship-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ship-meta span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--w-3);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.ship-vis {
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: clamp(24px, 3vw, 40px);
  border-left: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, 0.045), transparent 60%),
    rgba(0, 0, 0, 0.18);
}
.ship:nth-child(even) .ship-vis {
  border-left: 0;
  border-right: 1px solid var(--line);
}

/* captions visual */
.v-cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.v-cap span {
  padding: 3px 9px;
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.28);
  animation: kara 4.4s var(--ease) infinite;
  animation-delay: calc(var(--i) * 0.34s);
}
@keyframes kara {
  0%,
  100% {
    color: rgba(255, 255, 255, 0.28);
    transform: none;
  }
  8% {
    color: #fff;
    transform: translateY(-3px) scale(1.04);
  }
  22% {
    color: rgba(255, 255, 255, 0.68);
    transform: none;
  }
}
.v-wave {
  width: 100%;
  max-width: 380px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.v-wave i {
  flex: 1;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.7);
  height: calc(var(--h) * 1%);
  animation: wv 3.6s var(--ease) infinite;
  animation-delay: calc(var(--i) * 0.045s);
}
.v-wave i.cut {
  background: rgba(255, 255, 255, 0.14);
  animation: wv-cut 3.6s var(--ease) infinite;
}
@keyframes wv {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.62);
  }
}
@keyframes wv-cut {
  0%,
  46% {
    transform: scaleY(1);
    opacity: 0.5;
  }
  60%,
  100% {
    transform: scaleY(0.06);
    opacity: 0.14;
  }
}

/* b-roll visual */
.v-line {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--w-2);
}
.v-line i {
  color: var(--ai);
  font-style: normal;
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.v-thumbs {
  display: flex;
  gap: 10px;
}
.v-thumbs .th {
  position: relative;
  width: 96px;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-2);
  filter: saturate(0.7);
  box-shadow: var(--shadow-md);
}
.v-thumbs .th img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v-thumbs .th .ok {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(232, 183, 106, 0.32);
  color: var(--on-ai);
  opacity: 0;
  animation: pick 4.2s var(--ease) infinite;
  animation-delay: var(--cd);
}
@keyframes pick {
  0%,
  22% {
    opacity: 0;
  }
  34%,
  74% {
    opacity: 1;
  }
  86%,
  100% {
    opacity: 0;
  }
}

/* drag-to-compare grade */
.compare {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-md);
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
}
.compare .lay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.compare .flat {
  filter: saturate(0.3) contrast(0.9) brightness(1.08);
}
.compare .graded {
  filter: saturate(1.12) contrast(1.14) brightness(0.99);
  clip-path: inset(0 0 0 calc(var(--x, 50%)));
}
.compare .handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x, 50%);
  width: 1px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}
.compare .handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(2, 3, 4, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.compare .tag {
  position: absolute;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
.compare .tag.l {
  left: 12px;
}
.compare .tag.r {
  right: 12px;
}

/* export visual */
.fmts {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.fmt {
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--w-3);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.f916 {
  width: 48px;
  height: 84px;
}
.f11 {
  width: 64px;
  height: 64px;
}
.f169 {
  width: 112px;
  height: 64px;
}
.exp-bar {
  width: min(100%, 300px);
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.exp-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  animation: exp 4.2s var(--ease) infinite;
}
@keyframes exp {
  0% {
    width: 4%;
  }
  70%,
  100% {
    width: 100%;
  }
}

/* the rest, as a quiet strip */
.also {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.also span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--w-2);
  background: rgba(11, 12, 14, 0.44);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}
.also svg {
  color: var(--w-3);
  flex: none;
}

/* ============================================================
   CONTROL
   ============================================================ */
.trust {
  margin-top: clamp(30px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 18px;
  overflow: hidden;
}
.trust > div {
  padding: clamp(22px, 2.6vw, 32px);
  border-right: 1px solid var(--line);
}
.trust > div:last-child {
  border-right: 0;
}
.t-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--w-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.trust h3 {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.trust p {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--w-2);
}

/* ============================================================
   PRICING
   ============================================================ */
.prices {
  margin-top: clamp(30px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.price {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.2vw, 28px);
  border-radius: var(--r-lg);
}
.price.feat {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    var(--shadow-md);
}
.pop {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--w-1);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.07);
}
.p-name {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.p-sub {
  display: block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--w-3);
}
.p-price {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.p-price b {
  font-size: clamp(34px, 3.4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}
.p-price span {
  font-size: 13px;
  color: var(--w-3);
}
.p-soon {
  display: block;
  width: 100%;
  padding: 12px 0;
  border-radius: 999px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--w-3);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.price.feat .p-soon {
  color: var(--w-2);
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.05);
}
.p-desc {
  margin-top: 11px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--w-2);
}
.p-credit {
  margin-top: 18px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.2);
}
.p-credit .kk {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--w-3);
}
.p-credit .vv {
  margin-top: 6px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.meter {
  margin-top: 10px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}
.p-roll {
  margin-top: 9px;
  font-size: 11px;
  color: var(--w-3);
}
.p-list {
  margin: 18px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.p-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--w-2);
}
.p-list svg {
  flex: none;
  margin-top: 2px;
  color: var(--w-3);
}
.p-btn {
  width: 100%;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.faq-wrap > header {
  position: sticky;
  top: 96px;
}
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(14.5px, 1.5vw, 17px);
  letter-spacing: -0.02em;
  color: var(--w-2);
  transition: color var(--dur) ease;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--w-1);
}
.faq .chev {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--w-3);
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) ease,
    color var(--dur) ease;
}
.faq details[open] .chev {
  transform: rotate(180deg);
  border-color: var(--line-2);
  color: var(--w-1);
}
.faq .a {
  padding: 0 56px 22px 4px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--w-2);
  max-width: 68ch;
}

/* ============================================================
   CTA + FOOTER
   ============================================================ */
.cta {
  text-align: center;
}
.cta .inner {
  max-width: 820px;
}
.cta .form,
.cta .proof {
  margin-inline: auto;
}
.cta .form {
  margin-top: 28px;
}
.cta .proof {
  margin-top: 16px;
}
.foot {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 5vw, 62px) var(--pad) 26px;
}
.foot-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 34px 24px;
}
.foot-brand p {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--w-2);
  max-width: 30ch;
}
.foot-meta {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--w-3);
}
.foot-col .kk {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--w-3);
  margin-bottom: 14px;
}
.foot-col a {
  display: block;
  font-size: 13px;
  color: var(--w-2);
  padding: 5px 0;
  transition:
    color var(--dur) ease,
    transform var(--dur) var(--ease);
}
.foot-col a:hover {
  color: var(--w-1);
  transform: translateX(3px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1060px) {
  .trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trust > div:nth-child(2) {
    border-right: 0;
  }
  .trust > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .shots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .shots .shot:nth-child(4) {
    grid-column: span 2;
  }
}
@media (max-width: 900px) {
  .tabs {
    display: none;
  }
  .ship,
  .ship:nth-child(even) .ship-copy {
    grid-template-columns: minmax(0, 1fr);
    order: 0;
  }
  .ship-vis {
    min-height: 220px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .ship:nth-child(even) .ship-vis {
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .prices {
    grid-template-columns: minmax(0, 1fr);
    max-width: 460px;
  }
  .price.feat {
    order: -1;
  }
  .faq-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .faq-wrap > header {
    position: static;
  }
  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .run-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 720px) {
  .trust {
    grid-template-columns: minmax(0, 1fr);
  }
  .trust > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .trust > div:last-child {
    border-bottom: 0;
  }
  .shots {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar {
    display: none;
  }
  .shot {
    flex: 0 0 74%;
    scroll-snap-align: center;
  }
  .screen-wrap {
    transform: none !important;
  }
  .c-label {
    display: none;
  }
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .hero {
    min-height: 0;
  }
}
@media (max-width: 520px) {
  .form {
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
    padding: 7px;
  }
  .form .btn {
    width: 100%;
  }
  .proof .sep {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .title .ln > span {
    transform: none;
  }
  .screen-wrap {
    transform: none !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   THE APP, CLONED — a 1:1 rebuild of the Lumiere editor inside
   a macOS window. Layout, proportions, icon rail, panels and
   timeline all mirror the real product.
   ============================================================ */
/* the macOS desktop the app lives on */
.desk {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 44px 100px -44px rgba(0, 0, 0, 0.95),
    0 14px 40px -26px rgba(0, 0, 0, 0.9);
}
/* macOS-style desktop wallpaper — built from gradients, no shipped Apple art */
.desk-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38% 46% at 84% 16%, rgba(255, 244, 214, 0.9), rgba(255, 244, 214, 0) 62%),
    linear-gradient(
      118deg,
      #16307f 0%,
      #24499f 9%,
      #3a5cbe 17%,
      #6a5cc0 25%,
      #9c5bb2 32%,
      #cf6f8f 39%,
      #e8825f 45%,
      #f6a45e 51%,
      #ffc98c 57%,
      #ffe6bd 62%,
      #cdd8f0 70%,
      #8ea6e4 78%,
      #4b6bd0 88%,
      #1f3f95 100%
    );
}
.desk-bg::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(50% 34% at 22% 78%, rgba(58, 92, 190, 0.55), transparent 70%),
    radial-gradient(44% 30% at 68% 92%, rgba(255, 168, 110, 0.35), transparent 72%);
  filter: blur(28px);
}
.desk-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.22));
}

/* menu bar */
.menubar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 10px;
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.menubar img {
  width: 11px;
  height: 11px;
  opacity: 0.95;
}
.menubar .mb-name {
  font-weight: 600;
}
.menubar .mb-item {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}
.menubar .mb-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.9);
}

/* dock */
.dock {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 8px 22px rgba(0, 0, 0, 0.32);
}
.dock i {
  position: relative;
  display: block;
  width: 27px;
  height: 27px;
  border-radius: 7px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s var(--ease);
}
.dock i:hover {
  transform: translateY(-3px) scale(1.06);
}
.dock .d1 {
  background: linear-gradient(160deg, #f6f7f9, #dfe3e8);
}
.dock .d2 {
  background: linear-gradient(160deg, #6fb8ff, #2b6ede);
}
.dock .d3 {
  background: linear-gradient(160deg, #b9bec6, #6f757e);
}
.dock .d4 {
  background: linear-gradient(160deg, #7ee0b0, #24a56d);
}
.dock .d5 {
  background: linear-gradient(160deg, #ffb27a, #e2762f);
}
.dock .lum {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #1b1c20, #0b0b0d);
}
.dock .lum img {
  width: 16px;
  height: 16px;
}
.dock .lum::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}
.dock .sep {
  width: 1px;
  height: 24px;
  margin: 0 2px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}
.dock .sep:hover {
  transform: none;
}

/* ============================================================
   THE APP WINDOW — built at the product's REAL pixel sizes
   (2000×1180 design box) and scaled to fit the desktop, so every
   proportion matches the shipping editor exactly.
   ============================================================ */
.mac-fit {
  position: absolute;
  z-index: 2;
  top: 34px;
  left: 4.5%;
  right: 4.5%;
  bottom: 56px;
}
.mac {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2000px;
  height: 1180px;
  flex: none;
  transform: translate(-50%, -50%) scale(var(--k, 0.5));
  transform-origin: center center;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.14),
    0 60px 120px -50px rgba(0, 0, 0, 0.9);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: left;
  color: rgba(255, 255, 255, 0.92);
  user-select: none;
}
.mac svg {
  display: block;
}
.mac button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* window title bar */
.mac-bar {
  position: relative;
  height: 38px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.045);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.tl-dot.r {
  background: #ff5f57;
}
.tl-dot.y {
  background: #febc2e;
}
.tl-dot.g {
  background: #28c840;
}
.mac-title {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

/* app top bar */
.ed-top {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ed-top .lg-mark {
  width: 20px;
  height: 20px;
  opacity: 0.92;
}
.ed-ico {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.45);
}
.ed-proj {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  pointer-events: none;
}
.ed-proj i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fbf7f;
}
.ed-top .right {
  position: relative;
  z-index: 1;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}
.ed-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 27px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ed-pill.agent {
  color: #2b1a05;
  background: var(--ai);
  border-color: transparent;
}
.ed-credits {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.42);
}
.ed-credits i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ai);
}
.ed-avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 10.5px;
  font-weight: 600;
  color: #0d0d0f;
  background: linear-gradient(160deg, #f4f4f4, #b7bcc2);
}

/* workspace */
.ed-work {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 46px 356px minmax(0, 1fr) 392px;
}
.ed-work > * {
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

/* icon rail */
.ed-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.ed-rail button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.34);
  transition:
    color 0.18s var(--ease),
    background-color 0.18s var(--ease);
}
.ed-rail button:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
}
.ed-rail button.on {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.08);
}

/* media library */
.ed-lib {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.lib-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 12px;
}
.lib-head h4 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-right: auto;
  white-space: nowrap;
}
.lib-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.045);
}
.lib-search {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 16px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.055);
}
.lib-views {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 12px 16px 0;
  color: rgba(255, 255, 255, 0.3);
}
.lib-views .on {
  color: rgba(255, 255, 255, 0.9);
  position: relative;
}
.lib-views .on::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -6px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.85);
}
.lib-tabs {
  display: flex;
  gap: 18px;
  padding: 14px 16px 13px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.36);
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}
.lib-tabs button {
  position: relative;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.lib-tabs button.on {
  color: #fff;
}
.lib-tabs button.on::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 1.5px;
  background: #fff;
}
.lib-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
  overflow: hidden;
  align-content: start;
}
.lib-item {
  transition: opacity 0.25s var(--ease);
}
.lib-item.hide {
  opacity: 0.18;
}
.lib-item .th {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 8px;
  overflow: hidden;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.lib-item .th img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lib-item .nm {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lib-item .mt {
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.32);
}

/* canvas */
.ed-canvas {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.cv-top {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.cv-ratios {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.34);
}
.cv-ratios button {
  padding: 5px 11px;
  border: 0;
  background: none;
  border-radius: 7px;
  color: inherit;
  font-size: inherit;
  transition:
    color 0.18s var(--ease),
    background-color 0.18s var(--ease);
}
.cv-ratios button:hover {
  color: rgba(255, 255, 255, 0.75);
}
.cv-ratios button.on {
  color: #fff;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.11);
}
.cv-wrap {
  flex: 1;
  min-height: 0;
  margin: 0 18px;
  display: grid;
  place-items: center;
}
/* the project frame — the ratio pills reshape this, like the app */
.cv-stage {
  position: relative;
  aspect-ratio: var(--par, 16 / 9);
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  border-radius: 4px;
  background: #000;
  overflow: hidden;
  transition: aspect-ratio 0.35s var(--ease);
}
.cv-shot {
  position: absolute;
  inset: 0;
}
.cv-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* a 9:16 source letterboxed inside the project frame, like the app */
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.cv-shot img.on {
  opacity: 1;
}
/* the app's caption preset — black plate, white text */
.cv-cap {
  position: absolute;
  left: 50%;
  bottom: 11%;
  transform: translateX(-50%);
  padding: 7px 14px;
  border-radius: 5px;
  background: #000;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.16s var(--ease);
}
.cv-cap.on {
  opacity: 1;
}

.cv-scrub {
  position: relative;
  flex: none;
  height: 2px;
  margin: 18px 18px 0;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}
.cv-scrub::before {
  content: '';
  position: absolute;
  inset: -9px 0;
}
.cv-scrub i {
  position: absolute;
  top: 50%;
  left: var(--p, 6%);
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
}
.cv-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.cv-keys {
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.85);
}
.cv-keys button {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  display: grid;
  place-items: center;
  transition: transform 0.18s var(--ease);
}
.cv-keys button:hover {
  transform: scale(1.12);
}
.cv-keys .pp {
  width: 26px;
  height: 26px;
}
.cv-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.4);
}
.cv-vol {
  width: 52px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.5);
  position: relative;
}
.cv-vol::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
}

/* ---------- inspector / agent ---------- */
.ed-agent {
  display: flex;
  flex-direction: column;
}
.ag-seg {
  flex: none;
  display: flex;
  gap: 3px;
  margin: 14px 16px 0;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.ag-seg button {
  flex: 1;
  border: 0;
  background: none;
  padding: 8px 0;
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.44);
}
.ag-seg button.on {
  color: #fff;
  font-weight: 500;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.ag-meta {
  flex: none;
  display: flex;
  align-items: center;
  padding: 14px 18px 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
}
.ag-meta .hist {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ag-body {
  flex: 1;
  min-height: 0;
  padding: 22px 18px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mac.working .ag-body {
  justify-content: flex-end;
}
.ag-hello {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
}
.ag-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}
.ag-turn {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.ag-blk {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.ag-turn.in,
.ag-blk.in {
  opacity: 1;
  transform: none;
}
.ag-bubble {
  width: 86%;
  padding: 13px 17px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.085));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.ag-acts {
  display: flex;
  gap: 14px;
  padding-right: 4px;
  color: rgba(255, 255, 255, 0.3);
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.ag-turn.settled .ag-acts {
  opacity: 1;
}
.ag-acts button {
  border: 0;
  background: none;
  padding: 2px;
  color: inherit;
  border-radius: 5px;
  transition:
    color 0.18s var(--ease),
    background-color 0.18s var(--ease);
}
.ag-acts button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}
.ag-fold {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}
.ag-fold .chev {
  color: rgba(255, 255, 255, 0.4);
}
.ag-fold.live b {
  font-weight: 400;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.45) 0%,
    #fff 40%,
    rgba(255, 255, 255, 0.45) 80%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ag-shimmer 2.2s linear infinite;
}
@keyframes ag-shimmer {
  to {
    background-position: -220% 0;
  }
}
.ag-lead {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}
.ag-quote {
  margin: 11px 0 0 3px;
  padding-left: 13px;
  border-left: 1.5px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.42);
}
.ag-reply {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}
.ag-steps {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ag-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.32);
  transition: color 0.25s var(--ease);
}
.ag-step .ck {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
}
.ag-step .ck svg {
  width: 10px;
  height: 10px;
  opacity: 0;
  color: #2b1a05;
}
.ag-step.run .ck {
  border-color: var(--ai-line);
  border-top-color: var(--ai);
  animation: spin 0.9s linear infinite;
}
.ag-step.done {
  color: rgba(255, 255, 255, 0.76);
}
.ag-step.done .ck {
  background: var(--ai);
  border-color: var(--ai);
  animation: none;
}
.ag-step.done .ck svg {
  opacity: 1;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* composer */
.ag-input {
  flex: none;
  margin: 16px;
  padding: 15px 16px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.075);
  transition: border-color 0.25s var(--ease);
}
.mac.typing .ag-input {
  border-color: rgba(255, 255, 255, 0.16);
}
.ag-input .ph {
  min-height: 40px;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.32);
}
.ag-input .ph.typed {
  color: rgba(255, 255, 255, 0.95);
}
.ag-input .caret {
  display: none;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  background: var(--ai);
  vertical-align: -3px;
}
.mac.typing .ag-input .caret {
  display: inline-block;
  animation: blink 1.05s steps(2) infinite;
}
.ag-input .row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
}
.ag-model {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 9px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ag-pct {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.32);
}
.ag-send {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--ai);
  border: 1.5px solid var(--ai-line);
  background: rgba(232, 183, 106, 0.08);
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.ag-send .stop {
  display: none;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.78);
}
.mac.working .ag-send {
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}
.mac.working .ag-send svg {
  display: none;
}
.mac.working .ag-send .stop {
  display: block;
}
.ag-send.go {
  transform: scale(1.14);
}

/* inspector view */
.ag-insp {
  display: none;
  flex: 1;
  min-height: 0;
  padding: 20px 18px;
  overflow: hidden;
  flex-direction: column;
  gap: 16px;
}
.mac.inspector .ag-insp {
  display: flex;
}
.mac.inspector .ag-body,
.mac.inspector .ag-input,
.mac.inspector .ag-meta {
  display: none;
}
.insp-k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}
.insp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}
.insp-row .v {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.insp-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.insp-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.6);
}

/* ---------- timeline ---------- */
.ed-tl {
  flex: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.tl-toolsw {
  position: relative;
}
.tl-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: rgba(255, 255, 255, 0.38);
}
.tl-add {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f2f3f5;
  color: #111;
}
.tl-find {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 20px;
  border-radius: 999px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.055);
}
.tl-grid {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}
.tl-heads {
  width: 152px;
  flex: none;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.tl-heads .spacer {
  height: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}
.tl-head {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.74);
}
.tl-head .eye {
  color: rgba(255, 255, 255, 0.34);
}
.tl-head .n {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.28);
  width: 16px;
}
.tl-head .lock {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.22);
}
.tl-view {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
}
.tl-ruler {
  position: relative;
  height: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 3.45% 100%;
  background-position: 0 70%;
}
.tl-ruler span {
  position: absolute;
  top: 5px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.26);
  transform: translateX(4px);
}
.tl-lane {
  position: relative;
  height: 44px;
}
.tl-lane + .tl-lane {
  border-top: 1px solid rgba(255, 255, 255, 0.022);
}
.tl-clip {
  position: absolute;
  top: 5px;
  bottom: 5px;
  border-radius: 6px;
  overflow: hidden;
  font-size: 11px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition:
    opacity 0.32s var(--ease),
    transform 0.32s var(--ease),
    left 0.55s var(--ease),
    width 0.55s var(--ease),
    background-color 0.16s var(--ease),
    box-shadow 0.16s var(--ease);
}
.tl-clip.in {
  opacity: 1;
  transform: none;
}
.tl-clip.cap {
  background: #e8c07a;
  color: #35240a;
  border: 1px solid #cfa257;
  padding: 0 7px;
  gap: 4px;
}
.tl-clip.cap.hit {
  background: #f6d79a;
  box-shadow: 0 2px 12px rgba(232, 183, 106, 0.45);
}
.tl-clip.media {
  background: #141518;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0;
}
.tl-clip .strip {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0.9;
}
.tl-clip .strip img {
  flex: 1;
  min-width: 0;
  height: 100%;
  object-fit: cover;
}
.tl-clip .wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 34%;
  opacity: 0.42;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='20' preserveAspectRatio='none'><g fill='%23fff'><rect x='0' y='7' width='1' height='6'/><rect x='3' y='4' width='1' height='12'/><rect x='6' y='9' width='1' height='2'/><rect x='9' y='2' width='1' height='16'/><rect x='12' y='6' width='1' height='8'/><rect x='15' y='8' width='1' height='4'/><rect x='18' y='3' width='1' height='14'/><rect x='21' y='7' width='1' height='6'/><rect x='24' y='5' width='1' height='10'/><rect x='27' y='9' width='1' height='2'/><rect x='30' y='1' width='1' height='18'/><rect x='33' y='6' width='1' height='8'/><rect x='36' y='8' width='1' height='5'/><rect x='39' y='4' width='1' height='12'/><rect x='42' y='7' width='1' height='6'/><rect x='45' y='2' width='1' height='16'/><rect x='48' y='9' width='1' height='3'/><rect x='51' y='5' width='1' height='10'/><rect x='54' y='7' width='1' height='7'/><rect x='57' y='3' width='1' height='14'/><rect x='60' y='8' width='1' height='4'/></g></svg>");
  background-repeat: repeat-x;
  background-size: auto 100%;
}
.tl-clip .nm {
  position: relative;
  z-index: 1;
  padding: 0 8px;
  font-size: 11px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}
.tl-clip.sfx {
  background: rgba(232, 183, 106, 0.2);
  border: 1px solid var(--ai-line);
  color: var(--ai-bright);
  padding: 0 7px;
  font-size: 10.5px;
}
.tl-play {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: #fff;
  left: var(--x, 0%);
  z-index: 5;
  pointer-events: none;
}
.tl-play::before {
  content: '';
  position: absolute;
  top: 0;
  left: -5px;
  width: 11px;
  height: 12px;
  border-radius: 2px 2px 3px 3px;
  background: #fff;
}

@media (max-width: 860px) {
  .desk {
    aspect-ratio: 16 / 11;
  }
}
@media (max-width: 620px) {
  .desk {
    aspect-ratio: 4 / 3;
  }
  .mac-fit {
    top: 26px;
    bottom: 40px;
    left: 3%;
    right: 3%;
  }
  .dock i {
    width: 21px;
    height: 21px;
    border-radius: 5px;
  }
  .dock .d4,
  .dock .d5 {
    display: none;
  }
}

/* ============================================================
   THE PASS — drag the divider: raw footage on one side, the
   finished frame (grade + captions) on the other.
   ============================================================ */
.pass-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}
/* a mock of the app's pass panel — real UI, not a bullet list */
.pass-panel {
  margin-top: clamp(24px, 3.4vw, 36px);
  border-radius: var(--r-lg);
  overflow: hidden;
  background-color: rgba(11, 12, 14, 0.44);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(34px) saturate(180%) brightness(1.06);
  -webkit-backdrop-filter: blur(34px) saturate(180%) brightness(1.06);
  box-shadow:
    inset 0 1px 0 var(--spec),
    var(--shadow-md);
}
.pp-head {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--w-3);
}
.pp-count {
  margin-left: auto;
}
.pp-count b {
  color: var(--ai);
  font-weight: 400;
}
.pp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  font-size: 14px;
  letter-spacing: -0.012em;
  color: var(--w-3);
  transition:
    color 0.35s var(--ease),
    background-color 0.35s var(--ease);
}
.pp-row + .pp-row {
  border-top: 1px solid var(--line);
}
.pp-ck {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--on-ai);
  transition:
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.pp-ck svg {
  width: 10px;
  height: 10px;
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.pp-nm {
  min-width: 0;
}
.pp-v {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--w-4);
  transition: color 0.35s var(--ease);
}
.pp-row.on {
  color: var(--w-1);
  background-color: rgba(255, 255, 255, 0.03);
}
.pp-row.on .pp-ck {
  background: var(--ai);
  border-color: var(--ai);
}
.pp-row.on .pp-ck svg {
  opacity: 1;
  transform: none;
}
.pp-row.on .pp-v {
  color: var(--w-2);
}

.pass-view {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow:
    inset 0 1px 0 var(--spec),
    var(--shadow-lg);
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  --x: 100%;
}
.pv-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
/* raw: flat, low saturation — straight off the camera */
.pv-raw {
  filter: saturate(0.42) contrast(0.92) brightness(1.06);
}
/* finished: orange & teal, contrast, captions */
.pv-done {
  clip-path: inset(0 0 0 var(--x));
  filter: saturate(1.22) contrast(1.16) brightness(0.98);
}
.pv-done::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 62% 28%, rgba(255, 168, 92, 0.22), transparent 62%),
    linear-gradient(200deg, rgba(0, 130, 150, 0.26), rgba(0, 0, 0, 0) 58%);
  mix-blend-mode: soft-light;
}
.pv-cap {
  position: absolute;
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
  padding: 7px 14px;
  border-radius: 6px;
  background: #000;
  color: #fff;
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  z-index: 2;
}
.pv-cap em {
  font-style: normal;
  color: var(--ai);
}
.pv-list {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  z-index: 2;
  width: min(42%, 330px);
  display: flex;
  flex-direction: column;
  padding: 16px 18px 6px;
  border-radius: 12px;
  /* its own plate, so the type stays readable over any footage */
  background: linear-gradient(180deg, rgba(6, 7, 9, 0.82), rgba(6, 7, 9, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 44px -20px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.pl-k {
  font-family: var(--mono);
  font-size: clamp(8px, 0.72vw, 10px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  animation: pl-in 7s var(--ease) infinite;
}
.pl-row {
  display: flex;
  align-items: baseline;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-size: clamp(11px, 1vw, 14.5px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #fff;
  animation: pl-in 7s var(--ease) infinite;
  animation-delay: calc((var(--i) + 1) * 0.14s);
}
.pl-row:last-child {
  border-bottom: 0;
}
.pl-row i {
  font-family: var(--mono);
  font-size: 0.68em;
  font-style: normal;
  letter-spacing: 0.14em;
  color: var(--ai);
}
/* a small slide-in, the way a placed graphic animates on */
@keyframes pl-in {
  0% {
    opacity: 0;
    transform: translateX(14px);
  }
  6%,
  82% {
    opacity: 1;
    transform: none;
  }
  92%,
  100% {
    opacity: 0;
    transform: translateX(14px);
  }
}

.pv-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  width: 1.5px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.6);
  z-index: 3;
}
.pv-handle .grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(2, 3, 4, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    var(--shadow-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
}
.pv-tag {
  position: absolute;
  top: 14px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pv-tag.l {
  left: 14px;
}
.pv-tag.r {
  right: 14px;
}

@media (max-width: 900px) {
  .pass-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .pv-handle .grip {
    width: 34px;
    height: 34px;
  }
}
