/* Personify /launch — brand tokens from assets/styles.css, pushed toward cinematic. */

/* Light is the default; dark applies only when chosen (html[data-theme="dark"]), like the app. */
.lx {
  --paper: #f1eee7;
  --paper-2: #e8e3d8;
  --raised: #fbf9f4;
  --ink: #17150f;
  --cream: #f6f3ec;
  /* "stage" surfaces: the hero, the studio, the relay and the close */
  --stage: #f4f0e8;
  --stage-2: #fbf9f4;
  --stage-3: #ebe6dc;
  --text: #17150f;
  --text-rgb: 23, 21, 15;
  --text-2: #5d584d;
  --text-3: #8e887b;
  --line: rgba(23, 21, 15, .12);
  --line-2: rgba(23, 21, 15, .2);
  --accent: #ff4b17;
  --accent-2: #ff7a4d;
  --accent-text: #c63a0b;
  --accent-soft: rgba(255, 75, 23, .12);
  --hot: #c63a0b;
  --ok: #1c7a4e;
  --err: #b3261e;
  --glass: rgba(251, 249, 244, .62);
  --glass-2: rgba(251, 249, 244, .9);
  --bg: var(--paper);
  --faint: rgba(23, 21, 15, .14);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gut: clamp(16px, 4vw, 40px);
  --grain: 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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");

  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
}
:root[data-theme="dark"] .lx {
  --paper: #12110e;
  --paper-2: #1b1915;
  --raised: #1d1b17;
  --stage: #0e0d0b;
  --stage-2: #171612;
  --stage-3: #221f1a;
  --text: #f3efe7;
  --text-rgb: 246, 243, 236;
  --text-2: #aaa498;
  --text-3: #6f6a60;
  --line: rgba(240, 233, 220, .1);
  --line-2: rgba(240, 233, 220, .18);
  --accent-text: #ff7d52;
  --hot: #ff7a4d;
  --ok: #34c77b;
  --err: #ff8a6b;
  --glass: rgba(14, 13, 11, .35);
  --glass-2: rgba(14, 13, 11, .82);
  --faint: rgba(240, 233, 220, .14);
}
html:has(.lx) { scroll-behavior: smooth; background: #f1eee7; }
:root[data-theme="dark"]:has(.lx) { background: #0e0d0b; color-scheme: dark; }
html:has(.lx) body { margin: 0; }
.lx *, .lx *::before, .lx *::after { box-sizing: border-box; }
.lx img, .lx video { display: block; max-width: 100%; }
:where(.lx) a { color: inherit; }
.lx ::selection { background: var(--accent); color: var(--ink); }
.lx :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.lx::after { /* film grain over everything, very quiet */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background-image: var(--grain); opacity: .06; mix-blend-mode: overlay;
}

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lx-muted { color: var(--text-3); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--accent); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

/* ── Mark ─────────────────────────────── */
.mark-tile { fill: var(--ink); }
.mark-dot { fill: var(--accent); }
.mark-ring { stroke: var(--cream); }
.mark .mark-ring, .mark .mark-dot { transition: transform .6s var(--spring); transform-origin: center; transform-box: fill-box; }
.nav-brand:hover .mark-ring { transform: translateX(7px); }
.nav-brand:hover .mark-dot { transform: scale(.82); }

/* ── Buttons ──────────────────────────── */
.lx-btn {
  --mgx: 0px; --mgy: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  transform: translate(var(--mgx), var(--mgy));
  transition: transform .35s var(--ease), background .25s, color .25s, box-shadow .3s, border-color .25s;
  white-space: nowrap;
}
.lx-btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 26px; font-size: 16px; }
.btn-accent { background: var(--accent); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 12px 30px -12px rgba(255, 75, 23, .8); }
.btn-accent:hover:not(:disabled) { background: var(--accent-2); box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 18px 40px -12px rgba(255, 75, 23, .9); }
.btn-dark { background: var(--text); color: var(--stage-2); }
.btn-dark:hover { background: rgba(var(--text-rgb), .85); }
.btn-ghost { color: var(--text); border-color: rgba(var(--text-rgb), .22); background: rgba(var(--text-rgb), .04); }
.btn-ghost:hover { border-color: rgba(var(--text-rgb), .5); background: rgba(var(--text-rgb), .08); }
.btn-line { color: var(--text); border-color: var(--line-2); background: transparent; }
.btn-line:hover { border-color: var(--text); }
.btn-arrow { display: inline-block; transition: transform .35s var(--ease); }
.lx-btn:hover .btn-arrow { transform: translateX(4px); }
.lx-link { background: none; border: 0; padding: 0; color: var(--accent-text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .35s var(--ease); }
.lx-link:hover { background-size: 100% 1px; }

/* ── Progress + nav ───────────────────── */
.lx-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 90; pointer-events: none; }
.lx-progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.lx-nav {
  position: fixed; z-index: 80; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100% - 24px)); height: 58px; padding: 0 8px 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--text); border-radius: 999px;
  background: var(--glass); border: 1px solid rgba(var(--text-rgb), .08);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition: background .4s, box-shadow .4s, height .4s var(--ease), top .4s var(--ease);
  animation: nav-in 1s var(--ease) .2s both;
}
.lx-nav[data-scrolled] { background: var(--glass-2); box-shadow: 0 20px 50px -20px rgba(var(--text-rgb), .25); height: 52px; top: 10px; }
@keyframes nav-in { from { opacity: 0; transform: translate(-50%, -24px); } }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 999px; font-size: 14px; text-decoration: none; color: rgba(var(--text-rgb), .72); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(var(--text-rgb), .08); }
.nav-cta { display: flex; align-items: center; gap: 6px; }
.lx .theme-toggle { position: relative; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid rgba(var(--text-rgb), .14); background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; transition: border-color .25s, transform .4s var(--spring); }
.lx .theme-toggle:hover { border-color: rgba(var(--text-rgb), .4); transform: rotate(-15deg); }
.theme-toggle svg { transition: transform .5s var(--spring), opacity .3s; }
.nav-login { font-size: 14px; padding: 8px 12px; text-decoration: none; color: rgba(var(--text-rgb), .72); }
.nav-login:hover { color: var(--text); }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 420px) { .nav-login { display: none; } }

/* ── Hero ─────────────────────────────── */
.hero {
  --mx: 70%; --my: 40%;
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: 120px max(var(--gut), calc((100% - 1200px) / 2)) 90px;
  background: var(--stage); color: var(--text);
}
.hero-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255, 75, 23, .2), transparent 60%), radial-gradient(900px 500px at 85% 110%, rgba(255, 75, 23, .16), transparent 70%); transition: background .2s; }
.hero-grid { position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(rgba(var(--text-rgb), .05) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--text-rgb), .05) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%); }
.hero-copy { position: relative; z-index: 2; }
.lx-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.hero .lx-eyebrow { color: var(--hot); padding: 8px 12px; border: 1px solid rgba(255, 122, 77, .3); border-radius: 999px; background: rgba(255, 75, 23, .08); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 75, 23, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 75, 23, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 75, 23, 0); } }
.hero-title { margin: 0; font-weight: 600; font-size: clamp(50px, 8vw, 124px); line-height: .9; letter-spacing: -.055em; }
.hero-title .line { display: block; }
.hero-title .serif { color: var(--accent); font-size: 1.08em; letter-spacing: -.03em; padding-right: .04em; }
.rise { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.rise > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: 0 100%; animation: rise 1.1s var(--ease) both; animation-delay: calc(.35s + var(--i) * .09s); }
@keyframes rise { to { transform: none; } }
.hero-in { animation: fade-up 1s var(--ease) both; animation-delay: calc(.5s + var(--i) * .1s); }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
.hero-sub { max-width: 520px; margin: 28px 0 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: rgba(var(--text-rgb), .72); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin: 16px 0 0; font-size: 13px; color: rgba(var(--text-rgb), .45); }
.hero-scroll { position: absolute; left: 50%; bottom: 22px; width: 22px; height: 36px; border: 1.5px solid rgba(var(--text-rgb), .25); border-radius: 12px; transform: translateX(-50%); }
.hero-scroll span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: scroll-hint 1.8s var(--ease) infinite; }
@keyframes scroll-hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

.hero-stage { position: relative; z-index: 1; display: grid; place-items: center; min-height: 560px; animation: fade-up 1.2s var(--ease) .3s both; }
.deck { position: absolute; inset: 0; pointer-events: none; }
.deck-card {
  --px: 0px; --py: 0px;
  position: absolute; margin: 0; width: clamp(96px, 10vw, 150px); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(246, 243, 236, .12); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .8);
  transform: translate3d(var(--px), var(--py), 0) rotate(var(--r)); opacity: .55; filter: saturate(.8);
  animation: deck-in 1.4s var(--ease) both; animation-delay: calc(.9s + var(--k) * .12s);
}
.deck-card img { width: 100%; height: 100%; object-fit: cover; }
.deck-card figcaption { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--cream); }
.deck-card figcaption span { font: 500 10px/1 var(--mono); padding: 4px 6px; border-radius: 6px; background: rgba(14, 13, 11, .6); }
.deck-0 { --r: -9deg; --k: 0; left: 0; top: 8%; }
.deck-1 { --r: 7deg; --k: 1; right: 0; top: 2%; }
.deck-2 { --r: -4deg; --k: 2; left: 2%; bottom: 17%; }
.deck-3 { --r: 10deg; --k: 3; right: 2%; bottom: 20%; }
.deck-4 { --r: 3deg; --k: 4; left: 40%; top: -6%; width: clamp(70px, 7vw, 104px); opacity: .3; }
@keyframes deck-in { from { opacity: 0; transform: translate3d(0, 60px, 0) rotate(0) scale(.85); } }

/* ── The swap ─────────────────────────── */
.swap { --pos: 50%; position: relative; z-index: 2; display: grid; justify-items: center; gap: 14px; }
.swap-frame {
  position: relative; width: clamp(250px, 25vw, 330px); aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden;
  background: #000; cursor: ew-resize; touch-action: pan-y; user-select: none;
  box-shadow: 0 0 0 1px rgba(var(--text-rgb), .14), 0 0 0 9px rgba(var(--text-rgb), .04), 0 60px 120px -40px rgba(0, 0, 0, .9), 0 30px 80px -30px rgba(255, 75, 23, .35);
}
.swap-video { width: 100%; height: 100%; object-fit: cover; }
.xray {
  position: absolute; inset: 0; pointer-events: none;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  background: rgba(14, 13, 11, .35);
  backdrop-filter: grayscale(1) contrast(1.35) brightness(.75); -webkit-backdrop-filter: grayscale(1) contrast(1.35) brightness(.75);
}
@supports not ((backdrop-filter: grayscale(1)) or (-webkit-backdrop-filter: grayscale(1))) { .xray { background: rgba(14, 13, 11, .72); } }
.xray-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 75, 23, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 75, 23, .22) 1px, transparent 1px); background-size: 33.333% 33.333%; mix-blend-mode: screen; }
.xray-lock { position: absolute; left: 24%; right: 24%; top: 14%; height: 30%; animation: lock 3.2s var(--ease) infinite; }
.xray-lock i { position: absolute; width: 16px; height: 16px; border: 2px solid var(--accent); }
.xray-lock i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.xray-lock i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.xray-lock i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.xray-lock i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.xray-lock span { position: absolute; left: 0; bottom: -22px; font: 600 9px/1 var(--mono); letter-spacing: .1em; color: var(--ink); background: var(--accent); padding: 4px 6px; border-radius: 3px; white-space: nowrap; }
@keyframes lock { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.xray-hud { position: absolute; left: 14px; right: 14px; top: 16px; display: flex; justify-content: space-between; font: 600 10px/1 var(--mono); letter-spacing: .12em; color: var(--accent-2); }
.xray-scene { position: absolute; left: 14px; bottom: 40px; font: 600 11px/1.4 var(--mono); letter-spacing: .08em; color: var(--cream); }
.xray-scene em { display: block; font-style: normal; font-weight: 400; color: rgba(246, 243, 236, .6); font-size: 9.5px; }
.xray-cuts { position: absolute; left: 14px; right: 14px; bottom: 22px; height: 6px; border-radius: 3px; background: rgba(246, 243, 236, .18); }
.xray-cuts b { position: absolute; top: -4px; width: 2px; height: 14px; background: var(--accent); }
.xray-cuts s { position: absolute; top: -3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 3px rgba(255, 75, 23, .5); }
.swap-tag { position: absolute; top: 44px; font: 600 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; transition: opacity .3s; pointer-events: none; }
.swap-tag-l { left: 14px; color: var(--ink); background: var(--accent); }
.swap-tag-r { right: 14px; color: var(--ink); background: var(--cream); }
.swap-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--cream); box-shadow: 0 0 20px rgba(255, 75, 23, .8); pointer-events: none; }
.swap-handle {
  position: absolute; top: 50%; left: var(--pos); width: 64px; height: 44px; margin: -22px 0 0 -32px; border-radius: 999px;
  background: rgba(14, 13, 11, .75); border: 1px solid rgba(246, 243, 236, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  cursor: grab; transition: transform .3s var(--spring), background .3s;
}
.swap-handle:hover, .held .swap-handle { transform: scale(1.1); background: rgba(14, 13, 11, .9); }
.held .swap-handle { cursor: grabbing; }
.sh-ring, .sh-dot { position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; transition: transform .5s var(--spring); }
.sh-dot { left: 26px; background: var(--accent); }
.sh-ring { left: 16px; border: 2.4px solid var(--cream); z-index: 1; }
.swap-handle:hover .sh-ring, .held .sh-ring { transform: translateX(10px); }
.swap-caption { margin: 0; font-size: 12.5px; color: rgba(var(--text-rgb), .5); text-align: center; max-width: 300px; }
.swap-caption .mono { font-size: 10px; color: var(--hot); margin-right: 6px; }

/* ── Marquee ──────────────────────────── */
.keeps { position: relative; padding: clamp(36px, 6vw, 70px) 0; background: var(--paper); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { --skew: 0deg; display: flex; width: max-content; will-change: transform; }
.marquee-set { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); padding-right: clamp(20px, 3vw, 48px); transform: skewX(var(--skew)); transition: transform .25s; }
.keeps-lead { font: 500 13px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.keeps-item { display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 48px); font-family: var(--serif); font-style: italic; font-size: clamp(44px, 7.4vw, 112px); line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.keeps-mark { flex: none; }

/* ── Sections ─────────────────────────── */
.lx-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.lx-head h2, .relay-head h2, .final h2 { margin: 0; font-weight: 600; font-size: clamp(36px, 5.4vw, 76px); line-height: .98; letter-spacing: -.045em; }
.lx-head h2 .serif, .relay-head h2 .serif, .final h2 .serif { color: var(--accent-text); font-size: 1.06em; margin-left: .08em; }
.lede { margin: 20px auto 0; max-width: 580px; font-size: clamp(16px, 1.4vw, 19px); color: var(--text-2); }

[data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.lx-ready [data-reveal]:not([data-in]) { opacity: 0; transform: translateY(32px); }

/* ── Studio ───────────────────────────── */
.studio-section { padding: clamp(80px, 11vw, 150px) var(--gut); background: radial-gradient(1000px 500px at 50% 0%, var(--accent-soft), transparent 70%), var(--paper); scroll-margin-top: 40px; }
.studio {
  position: relative; max-width: 980px; margin: 0 auto; border-radius: 28px; overflow: hidden;
  background: var(--stage-2); color: var(--text);
  box-shadow: 0 0 0 1px rgba(var(--text-rgb), .06), 0 50px 120px -40px rgba(23, 21, 15, .55), 0 30px 80px -50px rgba(255, 75, 23, .5);
}
.studio::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(255, 75, 23, .55), transparent 30%, transparent 70%, rgba(var(--text-rgb), .15)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.studio-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgba(var(--text-rgb), .07); background: rgba(var(--text-rgb), .02); }
.studio-lights { display: flex; gap: 6px; margin-right: 6px; }
.studio-lights i { width: 10px; height: 10px; border-radius: 50%; background: rgba(var(--text-rgb), .14); }
.studio-lights i:first-child { background: var(--accent); }
.studio-title { font-weight: 600; font-size: 14px; letter-spacing: -.01em; margin-right: auto; }
.lx-pill { font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; border: 1px solid rgba(var(--text-rgb), .14); color: rgba(var(--text-rgb), .7); white-space: nowrap; }
.pill-free { color: var(--ok); border-color: rgba(52, 199, 123, .35); background: rgba(52, 199, 123, .08); }
.pill-used { color: var(--hot); border-color: rgba(255, 122, 77, .35); background: rgba(255, 75, 23, .08); }
@media (max-width: 520px) { .pill-preview { display: none; } .studio-lights { display: none; } }

.thread { display: flex; flex-direction: column; gap: 16px; padding: 24px clamp(14px, 3vw, 28px) 8px; max-height: none; overflow-y: auto; scrollbar-width: thin; }
.is-live .thread { max-height: min(78vh, 760px); padding-bottom: 24px; }
.msg { display: flex; gap: 12px; max-width: 640px; animation: msg-in .6s var(--ease) both; }
.msg-wide { max-width: none; }
@keyframes msg-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.msg-avatar { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--stage-3); color: var(--accent); border: 1px solid rgba(var(--text-rgb), .08); }
.msg-body { min-width: 0; flex: 1; }
.msg-name { display: block; font-size: 12px; font-weight: 600; color: rgba(var(--text-rgb), .5); margin-bottom: 4px; }
.msg-body > p { margin: 0 0 10px; color: rgba(var(--text-rgb), .88); font-size: 15px; }
.msg-body > p:last-child { margin-bottom: 0; }
.msg-you { align-self: flex-end; }
.msg-you .msg-body { background: var(--stage-3); border: 1px solid rgba(var(--text-rgb), .08); border-radius: 20px 20px 6px 20px; padding: 12px; }
.brief-media { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.brief-thumb { position: relative; width: 64px; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #000; }
.brief-thumb img, .brief-thumb video { width: 100%; height: 100%; object-fit: cover; }
.brief-thumb em { position: absolute; left: 4px; right: 4px; bottom: 4px; font: 600 9px/1.2 var(--mono); font-style: normal; color: var(--cream); text-shadow: 0 1px 4px #000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brief-plus { color: var(--accent); font-weight: 700; }
.brief p { margin: 0; font-size: 14px; color: rgba(var(--text-rgb), .8); max-width: 420px; }
.preview-note { padding: 10px 12px; border-radius: 12px; background: rgba(255, 75, 23, .08); border: 1px dashed rgba(255, 122, 77, .35); font-size: 13.5px !important; color: rgba(var(--text-rgb), .8) !important; }
.preview-note .mono { font-size: 10px; color: var(--hot); margin-right: 6px; letter-spacing: .1em; }
.done-line { color: var(--ok) !important; font-size: 13px !important; }
.lx-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.lx-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lx .lx-form input { flex: 1 1 220px; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(var(--text-rgb), .16); background: var(--stage); color: var(--text); font: 15px var(--sans); }
.lx .lx-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 75, 23, .18); }
.field-err { flex-basis: 100%; margin: 8px 0 0 !important; font-size: 13px !important; color: var(--err) !important; }

.code { display: flex; gap: 8px; margin: 14px 0 6px; }
.lx .code input { width: 48px; height: 58px; border-radius: 14px; border: 1px solid rgba(var(--text-rgb), .16); background: var(--stage); color: var(--text); text-align: center; font: 600 24px/1 var(--mono); transition: border-color .2s, transform .3s var(--spring), box-shadow .2s; }
.lx .code input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 75, 23, .18); transform: translateY(-2px); }
.lx .code input:not(:placeholder-shown):valid { border-color: rgba(var(--text-rgb), .35); }
.code.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
@media (max-width: 400px) { .code { gap: 6px; } .code input { width: 42px; height: 52px; font-size: 21px; } }
.code-foot { display: flex; gap: 8px; align-items: center; font-size: 13px !important; }
.studio .lx-link { color: var(--hot); }

/* run */
.run { margin-top: 10px; padding: 16px; border-radius: 18px; background: var(--stage); border: 1px solid rgba(var(--text-rgb), .07); }
.run-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; font-size: 12px; color: var(--hot); }
.run-bar { height: 4px; margin: 12px 0 14px; border-radius: 2px; background: rgba(var(--text-rgb), .08); overflow: hidden; }
.run-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: 0 50%; transition: transform .2s linear; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.step { display: grid; grid-template-columns: 14px 78px 1fr; gap: 10px; align-items: center; padding: 7px 0; font-size: 13.5px; color: rgba(var(--text-rgb), .35); transition: color .4s; }
.step b { font-weight: 600; }
.step-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(var(--text-rgb), .15); justify-self: center; transition: background .3s; }
.step-work { color: var(--text); }
.step-work .step-dot { background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 75, 23, .7); animation: pulse 1.2s infinite; }
.step-work span { background: linear-gradient(90deg, rgba(var(--text-rgb), .5) 0%, var(--text) 40%, rgba(var(--text-rgb), .5) 80%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.step-done { color: rgba(var(--text-rgb), .72); }
.step-done .step-dot { background: var(--ok); }
.step-fail { color: var(--err); }
.step-fail .step-dot { background: #ff5b4a; }
.stills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.stills figure { position: relative; margin: 0; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: repeating-linear-gradient(135deg, rgba(var(--text-rgb), .03) 0 10px, rgba(var(--text-rgb), .06) 10px 20px); border: 1px solid rgba(var(--text-rgb), .07); }
.stills img { width: 100%; height: 100%; object-fit: cover; animation: paint 1.1s var(--ease) both; }
@keyframes paint { from { clip-path: inset(0 100% 0 0); filter: blur(10px) saturate(0); transform: scale(1.08); } 60% { filter: blur(0) saturate(.6); } to { clip-path: inset(0); } }
.stills figcaption { position: absolute; left: 6px; top: 6px; font-size: 9px; padding: 3px 5px; border-radius: 4px; background: rgba(14, 13, 11, .7); color: rgba(246, 243, 236, .75); }

/* result + upsell */
.result { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 20px; align-items: center; padding: 16px; border-radius: 20px; background: var(--stage); border: 1px solid rgba(var(--text-rgb), .08); animation: pop .8s var(--spring) both; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
.result-player { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 30px 60px -30px rgba(255, 75, 23, .6); }
.result-player video { width: 100%; height: 100%; object-fit: cover; }
.result-wm { position: absolute; top: 10px; right: 10px; font-size: 9px; padding: 4px 6px; border-radius: 4px; background: rgba(14, 13, 11, .7); color: var(--accent-2); pointer-events: none; }
.result-side h4 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; line-height: 1.05; }
.result-side > p { margin: 8px 0 18px; color: rgba(var(--text-rgb), .55); font-size: 14px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.result .btn-dark { background: var(--text); color: var(--stage-2); }
@media (max-width: 600px) { .result { grid-template-columns: 1fr; } .result-player { max-width: 260px; margin: 0 auto; width: 100%; } }
.lx-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: rgba(var(--text-rgb), .7); cursor: pointer; }
.lx .lx-check input { appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; border-radius: 5px; border: 1.5px solid rgba(var(--text-rgb), .3); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.lx .lx-check input::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--ink); border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .25s var(--spring); }
.lx .lx-check input:checked { background: var(--accent); border-color: var(--accent); }
.lx .lx-check input:checked::after { transform: rotate(-45deg) scale(1); }
.check-sm { font-size: 12px; font-family: var(--sans); color: rgba(var(--text-rgb), .6); }
.lx-check a { color: var(--hot); }

.upsell { margin-top: 12px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; padding: 20px; border-radius: 20px; background: radial-gradient(400px 200px at 0% 0%, rgba(255, 75, 23, .22), transparent 70%), var(--stage); border: 1px solid rgba(255, 122, 77, .25); }
.upsell-kicker { margin: 0 0 8px; font-size: 11px; color: var(--hot); }
.upsell h4 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.05; letter-spacing: -.03em; }
.upsell h4 .serif { color: var(--hot); }
.upsell-copy p:last-child { margin: 10px 0 0; font-size: 14px; color: rgba(var(--text-rgb), .65); }
.upsell-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-plan { display: flex; flex-direction: column; gap: 4px; padding: 14px 12px; border-radius: 14px; text-decoration: none; border: 1px solid rgba(var(--text-rgb), .1); background: rgba(var(--text-rgb), .03); transition: transform .35s var(--spring), border-color .25s, background .25s; }
.mini-plan:hover { transform: translateY(-4px); border-color: var(--accent); background: rgba(255, 75, 23, .08); }
.mini-plan.lx-pop { border-color: rgba(255, 122, 77, .5); background: rgba(255, 75, 23, .1); }
.mini-plan b { font-size: 13px; }
.mini-plan span { font: 600 20px/1.1 var(--sans); letter-spacing: -.03em; }
.mini-plan small { font-size: 12px; color: rgba(var(--text-rgb), .5); font-weight: 500; }
.mini-plan em { font-style: normal; font-size: 11.5px; color: rgba(var(--text-rgb), .55); }
@media (max-width: 720px) { .upsell { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .upsell-plans { grid-template-columns: 1fr; } .mini-plan { flex-direction: row; align-items: baseline; justify-content: space-between; } }

/* composer */
.composer { min-width: 0; grid-template-columns: minmax(0, 1fr); padding: 8px clamp(14px, 3vw, 28px) clamp(16px, 3vw, 28px); display: grid; gap: 12px; }
.slots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 640px) { .slots { grid-template-columns: minmax(0, 1fr); } }
.slot, .ask { position: relative; padding: 14px; border-radius: 20px; background: var(--stage); border: 1px solid rgba(var(--text-rgb), .09); transition: border-color .25s, background .25s, transform .3s var(--ease); }
.slot.drag { border-color: var(--accent); background: rgba(255, 75, 23, .07); transform: scale(1.01); }
.slot.is-filled { border-color: rgba(52, 199, 123, .35); }
.slot.is-bad, .ask.is-bad { border-color: rgba(255, 91, 74, .6); }
.slot-n { position: absolute; top: 12px; right: 14px; font-size: 10px; color: rgba(var(--text-rgb), .3); }
.slot-drop { display: grid; justify-items: center; gap: 4px; padding: 18px 10px 14px; border: 1.5px dashed rgba(var(--text-rgb), .15); border-radius: 14px; text-align: center; cursor: pointer; transition: border-color .25s, background .25s; }
.slot-drop:hover { border-color: var(--accent); background: rgba(255, 75, 23, .05); }
.slot-drop b { font-size: 15px; }
.slot-drop span:not(.slot-icon) { font-size: 12.5px; color: rgba(var(--text-rgb), .5); }
.slot-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 75, 23, .14); color: var(--accent); font-size: 15px; margin-bottom: 4px; transition: transform .4s var(--spring); }
.slot-drop:hover .slot-icon { transform: scale(1.12) rotate(-6deg); }
.slot-link { display: flex; margin-top: 10px; border: 1px solid rgba(var(--text-rgb), .12); border-radius: 999px; overflow: hidden; }
.lx .slot-link input { flex: 1; min-width: 0; height: 38px; padding: 0 14px; border: 0; background: transparent; color: var(--text); font: 13.5px var(--sans); }
.lx .slot-link input:focus { outline: none; }
.slot-link:focus-within { border-color: var(--accent); }
.lx .slot-link button { width: 42px; border: 0; background: rgba(var(--text-rgb), .06); color: var(--text); cursor: pointer; }
.lx .slot-sample { display: block; width: 100%; margin-top: 8px; padding: 6px; border: 0; background: none; color: var(--hot); font: 600 12.5px var(--sans); cursor: pointer; }
.lx .slot-sample:hover { text-decoration: underline; }
.slot-full { display: flex; align-items: center; gap: 12px; padding-right: 26px; animation: pop .5s var(--spring) both; }
.slot-full img, .slot-full video { width: 54px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; flex: none; background: #000; }
.slot-full img.round { width: 56px; height: 56px; aspect-ratio: 1; border-radius: 50%; object-position: 50% 18%; box-shadow: 0 0 0 2px var(--accent); }
.slot-full div { min-width: 0; display: grid; gap: 2px; }
.slot-full b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-full span { font-size: 12.5px; color: rgba(var(--text-rgb), .5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx .x { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(var(--text-rgb), .08); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; }
.lx .x:hover { background: rgba(255, 75, 23, .3); }
.lx-faces { display: flex; gap: 6px; margin-top: 12px; justify-content: center; }
.lx .lx-faces button { width: 36px; height: 36px; padding: 0; border-radius: 50%; overflow: hidden; border: 0; cursor: pointer; box-shadow: 0 0 0 1.5px rgba(var(--text-rgb), .15); transition: transform .35s var(--spring), box-shadow .25s; }
.lx .lx-faces button img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.lx .lx-faces button:hover { transform: translateY(-3px) scale(1.08); }
.lx .lx-faces button.on { box-shadow: 0 0 0 2.5px var(--accent); transform: scale(1.08); }
.lx .ask textarea { width: 100%; resize: none; border: 0; background: transparent; color: var(--text); font: 16px/1.5 var(--sans); padding: 2px 30px 6px 2px; min-height: 76px; }
.lx .ask textarea:focus { outline: none; }
.lx .ask textarea::placeholder { color: rgba(var(--text-rgb), .35); }
.ask:focus-within { border-color: rgba(255, 122, 77, .5); }
.ask-foot { display: flex; align-items: center; gap: 10px; }
.chips { display: flex; gap: 6px; flex: 1; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.lx-chip { flex: none; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(var(--text-rgb), .12); background: transparent; color: rgba(var(--text-rgb), .72); font: 12.5px var(--sans); cursor: pointer; transition: border-color .2s, color .2s; }
.lx-chip:hover { border-color: var(--accent); color: var(--text); }
.lx-count { font-size: 10.5px; color: rgba(var(--text-rgb), .3); }
.lx .send { --mgx: 0px; --mgy: 0px; flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--accent); color: var(--ink); cursor: pointer; transform: translate(var(--mgx), var(--mgy)); transition: transform .35s var(--spring), opacity .25s, box-shadow .3s; box-shadow: 0 10px 30px -10px rgba(255, 75, 23, .9); }
.lx .send:hover:not(:disabled) { transform: translate(var(--mgx), var(--mgy)) scale(1.08); }
.lx .send:disabled { background: rgba(var(--text-rgb), .12); color: rgba(var(--text-rgb), .4); box-shadow: none; cursor: not-allowed; }
.consent { padding: 2px 4px; }
.consent.is-bad { color: var(--err); }
.lx .studio-reset { display: block; margin: 0 auto 16px; border: 0; background: none; color: rgba(var(--text-rgb), .3); font: 11px var(--mono); cursor: pointer; }
.lx .studio-reset:hover { color: var(--hot); }

/* ── Manifesto ────────────────────────── */
.manifesto { padding: clamp(40px, 6vw, 90px) var(--gut) clamp(90px, 14vw, 200px); background: var(--paper); }
.manifesto p { max-width: 1080px; margin: 0 auto; font-weight: 600; font-size: clamp(28px, 4.3vw, 62px); line-height: 1.08; letter-spacing: -.04em; }
.sw { color: var(--faint); transition: color .45s var(--ease); }
.sw.on { color: var(--text); }
.lx-still .sw { color: var(--text); }

/* ── Relay ────────────────────────────── */
.relay { position: relative; height: calc(var(--n) * 62vh + 100vh); background: var(--stage); color: var(--text); }
.relay-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 3vh, 36px); overflow: hidden; padding: 90px 0 40px; }
.relay-head { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 20px; padding: 0 max(var(--gut), calc((100% - 1200px) / 2)); }
.relay-head .lx-eyebrow { grid-column: 1 / -1; margin-bottom: 14px; color: var(--hot); }
.relay-head h2 .serif { color: var(--accent); }
.relay-count { font-size: clamp(40px, 5vw, 72px); font-weight: 500; line-height: 1; color: var(--accent); margin: 0; }
.relay-count span { color: rgba(var(--text-rgb), .25); }
.relay-rail { position: relative; height: 2px; margin: 0 max(var(--gut), calc((100% - 1200px) / 2)); background: rgba(var(--text-rgb), .1); }
.relay-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; }
.relay-stop { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--stage); border: 2px solid rgba(var(--text-rgb), .25); transition: background .3s, border-color .3s, transform .4s var(--spring); }
.relay-stop.on { background: var(--accent); border-color: var(--accent); transform: scale(1.2); }
.relay-baton { position: absolute; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(255, 75, 23, .18), 0 0 30px rgba(255, 75, 23, .7); }
.relay-baton::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 2.4px solid var(--text); transform: translateX(-6px); }
.relay-view { overflow: visible; padding: 0 max(var(--gut), calc((100% - 1200px) / 2)); }
.relay-track { display: flex; gap: clamp(14px, 2vw, 24px); list-style: none; margin: 0; padding: 0; width: max-content; will-change: transform; }
.agent { width: min(360px, 78vw); padding: 18px; border-radius: 24px; background: var(--stage-2); border: 1px solid rgba(var(--text-rgb), .07); opacity: .45; transform: scale(.96); transition: opacity .5s var(--ease), transform .6s var(--ease), border-color .4s, background .4s; }
.agent.done { opacity: .7; transform: scale(.98); }
.agent.on { opacity: 1; transform: scale(1); border-color: rgba(255, 75, 23, .5); background: linear-gradient(180deg, rgba(255, 75, 23, .1), var(--stage-2) 50%); box-shadow: 0 40px 80px -40px rgba(255, 75, 23, .5); }
.agent-top { display: flex; justify-content: space-between; font-size: 11px; color: rgba(var(--text-rgb), .4); margin-bottom: 12px; }
.agent.on .agent-state { color: var(--hot); }
.agent.done .agent-state { color: var(--ok); }
.agent h3 { margin: 18px 0 2px; font-size: 28px; letter-spacing: -.03em; }
.agent-verb { margin: 0; font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--hot); }
.agent-line { margin: 10px 0 0; font-size: 14.5px; color: rgba(var(--text-rgb), .62); }
@media (max-height: 760px) { .agent h3 { margin-top: 12px; font-size: 24px; } .agent-line { font-size: 13.5px; } .vg { height: 150px !important; } }

/* vignettes */
.vg { position: relative; height: 190px; border-radius: 16px; overflow: hidden; background: var(--stage); border: 1px solid rgba(var(--text-rgb), .06); }
.vg-scout { display: grid; align-content: center; gap: 14px; padding: 20px; }
.vg-url { height: 40px; border-radius: 999px; background: var(--stage-3); display: flex; align-items: center; padding: 0 14px; font: 12px var(--mono); color: rgba(var(--text-rgb), .65); overflow: hidden; }
.vg-url span { white-space: nowrap; }
.agent.on .vg-url span { animation: type 1.4s steps(22) both; display: inline-block; overflow: hidden; }
@keyframes type { from { width: 0; } to { width: 100%; } }
.vg-bar { height: 6px; border-radius: 3px; background: rgba(var(--text-rgb), .08); overflow: hidden; }
.vg-bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(.05); }
.agent.on .vg-bar i, .agent.done .vg-bar i { animation: fill 1.6s var(--ease) .9s both; }
@keyframes fill { from { transform: scaleX(.05); } to { transform: scaleX(1); } }
.vg-ok { font: 12px var(--mono); color: var(--ok); opacity: 0; }
.agent.on .vg-ok, .agent.done .vg-ok { animation: fade-up .5s var(--ease) 2.4s both; opacity: 1; }
.vg-cutter { display: flex; }
.vg-cutter img { flex: 1; min-width: 0; height: 100%; object-fit: cover; filter: saturate(.85); }
.agent.on .vg-cutter img { animation: split .7s var(--spring) both; animation-delay: calc(.4s + var(--i) * .25s); }
@keyframes split { 0% { transform: none; } 50% { transform: translateY(-8px); } 100% { transform: none; } }
.vg-cutter b { position: absolute; top: -10%; bottom: -10%; width: 3px; margin-left: -1.5px; background: var(--accent); box-shadow: 0 0 12px var(--accent); transform: scaleY(0); }
.agent.on .vg-cutter b, .agent.done .vg-cutter b { animation: cut .5s var(--ease) both; animation-delay: calc(var(--i) * .25s + .2s); }
@keyframes cut { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.vg-scribe { display: grid; align-content: center; gap: 12px; padding: 18px; }
.vg-wave { display: flex; align-items: center; gap: 3px; height: 54px; }
.vg-wave i { flex: 1; height: 20%; border-radius: 2px; background: rgba(255, 122, 77, .8); }
.agent.on .vg-wave i { animation: wave 1s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.09s); }
@keyframes wave { from { height: 12%; } to { height: 95%; } }
.vg-type { margin: 0; font-family: var(--serif); font-style: italic; font-size: 19px; overflow: hidden; }
.vg-type span { display: inline-block; white-space: nowrap; overflow: hidden; }
.agent.on .vg-type span { animation: type 2s steps(34) .3s both; }
.vg-sub { margin: 0; font: 11.5px var(--mono); color: rgba(var(--text-rgb), .45); }
.vg-lookout { display: grid; place-items: center; }
.vg-pair { display: flex; gap: 14px; }
.vg-pair figure { position: relative; margin: 0; width: 76px; aspect-ratio: 9 / 16; }
.vg-pair img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.vg-pair figcaption { position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); font: 600 9.5px var(--mono); letter-spacing: .12em; color: var(--hot); }
.vg-pair i { position: absolute; width: 14px; height: 14px; border: 2px solid var(--accent); transition: transform .5s var(--spring); }
.vg-pair i:nth-of-type(1) { left: -6px; top: -6px; border-right: 0; border-bottom: 0; transform: translate(-10px, -10px); }
.vg-pair i:nth-of-type(2) { right: -6px; top: -6px; border-left: 0; border-bottom: 0; transform: translate(10px, -10px); }
.vg-pair i:nth-of-type(3) { left: -6px; bottom: -6px; border-right: 0; border-top: 0; transform: translate(-10px, 10px); }
.vg-pair i:nth-of-type(4) { right: -6px; bottom: -6px; border-left: 0; border-top: 0; transform: translate(10px, 10px); }
.agent.on .vg-pair i, .agent.done .vg-pair i { transform: none; transition-delay: .3s; }
.vg-director { display: grid; align-content: center; gap: 6px; padding: 16px 18px; }
.vg-director p { display: flex; justify-content: space-between; margin: 0; padding-bottom: 6px; border-bottom: 1px dashed rgba(var(--text-rgb), .08); font-size: 13px; }
.vg-director span { font: 11.5px var(--mono); color: rgba(var(--text-rgb), .45); }
.vg-director b { font-weight: 600; }
.agent.on .vg-director p { animation: fade-up .5s var(--ease) both; animation-delay: calc(.2s + var(--i) * .16s); }
.vg-maker img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.vg-base { filter: grayscale(1) blur(6px) brightness(.4); }
.vg-paint { clip-path: inset(0 100% 0 0); }
.agent.on .vg-paint, .agent.done .vg-paint { animation: reveal 2.2s var(--ease) .3s both; }
@keyframes reveal { to { clip-path: inset(0); } }
.vg-brush { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--accent); box-shadow: 0 0 18px 4px rgba(255, 75, 23, .7); opacity: 0; }
.agent.on .vg-brush { animation: brush 2.2s var(--ease) .3s both; }
@keyframes brush { 0% { left: 0; opacity: 1; } 95% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.vg-editor { display: grid; align-content: center; gap: 14px; padding: 16px; }
.vg-track { display: flex; gap: 6px; height: 104px; }
.vg-track img { flex: 1; min-width: 0; object-fit: cover; border-radius: 6px; }
.agent.on .vg-track { animation: snap .6s var(--ease) 1s both; }
.agent.on .vg-track img { animation: slide-in .7s var(--spring) both; animation-delay: calc(var(--i) * .15s); }
@keyframes slide-in { from { transform: translateX(calc((var(--i) - 1.5) * 30px)) translateY(-14px) rotate(calc((var(--i) - 1.5) * 6deg)); opacity: 0; } }
@keyframes snap { to { gap: 0; } }
.vg-file { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--stage-3); font-size: 12px; }
.vg-file b { color: var(--ok); }

.relay[data-mode="list"] { height: auto; }
.relay[data-mode="list"] .relay-pin { position: static; height: auto; padding: 90px 0; }
.relay[data-mode="list"] .relay-rail { display: none; }
.relay[data-mode="list"] .relay-track { width: auto; flex-wrap: wrap; justify-content: center; transform: none !important; }
.relay[data-mode="list"] .agent { opacity: 1; transform: none; }

/* ── Personas ─────────────────────────── */
.personas { padding: clamp(90px, 12vw, 160px) 0; background: var(--paper); }
.personas .lx-head { padding: 0 var(--gut); }
.persona-rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(var(--gut), calc((100% - 1200px) / 2)) 30px; scrollbar-width: none; }
.persona-rail::-webkit-scrollbar { display: none; }
.lx-persona { --tx: 0deg; --ty: 0deg; --gx: 50%; --gy: 50%; flex: none; width: clamp(220px, 22vw, 280px); scroll-snap-align: center; border-radius: 24px; overflow: hidden; background: var(--raised); border: 1px solid var(--line); transform: perspective(900px) rotateX(var(--tx)) rotateY(var(--ty)); transition: transform .5s var(--ease), box-shadow .4s, opacity .9s var(--ease); transition-delay: 0s, 0s, var(--d, 0ms); }
.lx-persona:hover { box-shadow: 0 40px 70px -35px rgba(23, 21, 15, .45); }
.persona-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.persona-img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--gx) var(--gy), rgba(255, 255, 255, .25), transparent 50%); opacity: 0; transition: opacity .3s; }
.lx-persona:hover .persona-img::after { opacity: 1; }
.persona-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 1.2s var(--ease); }
.lx-persona:hover .persona-img img { transform: scale(1.06); }
.persona-lang { position: absolute; top: 12px; left: 12px; font: 600 11px/1 var(--mono); padding: 6px 8px; border-radius: 8px; background: rgba(14, 13, 11, .7); color: var(--cream); backdrop-filter: blur(6px); }
.lx-persona-body { padding: 16px 18px 18px; }
.lx-persona-body h3 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.lx-persona-body p { margin: 2px 0 14px; color: var(--text-2); font-size: 14px; }
.lx-ready .lx-persona[data-reveal]:not([data-in]) { transform: perspective(900px) translateY(40px); }

/* ── Audience ─────────────────────────── */
.audience { padding: clamp(80px, 10vw, 140px) var(--gut); background: var(--paper-2); }
.audience-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .audience-grid { grid-template-columns: 1fr; } }
.aud { --tx: 0deg; --ty: 0deg; position: relative; padding: 28px; border-radius: 24px; background: var(--raised); border: 1px solid var(--line); transform: perspective(900px) rotateX(var(--tx)) rotateY(var(--ty)); transition: transform .5s var(--ease), box-shadow .4s, opacity .9s var(--ease); }
.aud:hover { box-shadow: 0 30px 60px -30px rgba(23, 21, 15, .35); }
.aud-n { font: 500 13px var(--mono); color: var(--accent-text); }
.aud h3 { margin: 30px 0 14px; font-size: 28px; letter-spacing: -.035em; }
.aud-pain { margin: 0 0 10px; color: var(--text-3); font-size: 15px; }
.aud-gain { margin: 0 0 22px; font-size: 16px; }
.lx-ready .aud[data-reveal]:not([data-in]) { transform: perspective(900px) translateY(40px); }

/* ── Pricing ──────────────────────────── */
.pricing { padding: clamp(90px, 12vw, 160px) var(--gut); background: var(--paper); }
.plans-wrap { max-width: 1200px; margin: 0 auto; }
.period { position: relative; display: flex; width: max-content; margin: 0 auto 40px; padding: 4px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
.lx .period button { position: relative; z-index: 1; width: 132px; height: 40px; border: 0; background: none; border-radius: 999px; font: 600 14px var(--sans); color: var(--text-2); cursor: pointer; transition: color .3s; }
.lx .period button.on { color: var(--stage-2); }
.period-save { font: 600 10.5px var(--mono); color: var(--accent); margin-left: 4px; }
.lx .period button.on .period-save { color: var(--accent-2); }
.period-pill { position: absolute; top: 4px; left: 4px; width: 132px; height: 40px; border-radius: 999px; background: var(--text); transition: transform .5s var(--spring); }
.plans { display: grid; grid-template-columns: .85fr 1fr 1fr 1fr; gap: 16px; align-items: stretch; }
@media (max-width: 1060px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.lx-plan { --tx: 0deg; --ty: 0deg; position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: 26px; background: var(--raised); border: 1px solid var(--line); transform: perspective(1000px) rotateX(var(--tx)) rotateY(var(--ty)); transition: transform .5s var(--ease), box-shadow .4s, opacity .9s var(--ease); transition-delay: 0s, 0s, var(--d, 0ms); }
.lx-plan:hover { box-shadow: 0 40px 80px -40px rgba(23, 21, 15, .4); }
.lx-ready .lx-plan[data-reveal]:not([data-in]) { transform: perspective(1000px) translateY(40px); }
.plan-free { background: transparent; border-style: dashed; }
.plan-pop { background: #0e0d0b; color: var(--cream); border-color: rgba(255, 75, 23, .5); box-shadow: 0 40px 90px -40px rgba(255, 75, 23, .55); }
.plan-pop .plan-head p, .plan-pop .plan-per, .plan-pop li { color: rgba(246, 243, 236, .65); }
.plan-badge { position: absolute; top: -12px; left: 26px; font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: var(--accent); color: var(--ink); }
.plan-head h3 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.plan-head p { margin: 4px 0 22px; font-size: 14px; color: var(--text-2); min-height: 2.6em; }
.price { display: inline-flex; align-items: flex-start; font-weight: 600; font-size: 52px; line-height: 1; letter-spacing: -.05em; height: 52px; }
.price-cur { font-size: .45em; margin: .2em .08em 0 0; letter-spacing: 0; }
.price-whole, .price-cents { display: inline-flex; }
.price-cents { font-size: .45em; margin-top: .2em; letter-spacing: -.02em; }
.roll { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.roll-col { display: flex; flex-direction: column; transition: transform .9s var(--spring); }
.roll-col span { height: 1em; }
.plan-per { margin: 8px 0 22px; font-size: 13px; color: var(--text-3); min-height: 2.6em; }
.lx-plan ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; flex: 1; }
.lx-plan li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--text-2); }
.lx-plan li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 60% 50%, var(--accent) 0 4px, transparent 4.5px); box-shadow: inset 0 0 0 1.5px var(--accent); }
.lx-plan .lx-btn { width: 100%; }
.plan-pop .btn-dark { background: var(--cream); color: var(--ink); }
.plans-note { margin: 22px 0 0; text-align: center; font-size: 13px; color: var(--text-3); }

/* ── FAQ ──────────────────────────────── */
.faq { padding: clamp(80px, 10vw, 140px) var(--gut); background: var(--paper-2); }
.faq-list { max-width: 820px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--line-2); }
.lx .qa summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; cursor: pointer; list-style: none; font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; letter-spacing: -.02em; transition: color .2s; }
.lx .qa summary::-webkit-details-marker { display: none; }
.lx .qa summary:hover { color: var(--accent-text); }
.qa-icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .45s var(--spring), background .3s, border-color .3s; }
.qa-icon::before, .qa-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -.8px 0 0 -5.5px; background: currentColor; border-radius: 1px; }
.qa-icon::after { transform: rotate(90deg); transition: transform .45s var(--spring); }
.qa[open] .qa-icon { transform: rotate(180deg); background: var(--accent); border-color: var(--accent); color: var(--ink); }
.qa[open] .qa-icon::after { transform: rotate(0); }
.qa-body p { margin: 0; padding: 0 50px 24px 4px; color: var(--text-2); font-size: 16px; max-width: 680px; }
.qa[open] .qa-body { animation: qa-open .5s var(--ease); }
@keyframes qa-open { from { opacity: 0; transform: translateY(-8px); } }

/* ── Final ────────────────────────────── */
.final { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 90vh; padding: 120px var(--gut); background: var(--stage); color: var(--text); text-align: center; }
.final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 50% 50%, rgba(255, 75, 23, .22), transparent 70%); }
.final-mark { --rx: 0px; --ry: 0px; position: absolute; top: 50%; left: 50%; width: clamp(260px, 38vw, 520px); height: clamp(260px, 38vw, 520px); transform: translate(-50%, -50%); pointer-events: none; opacity: .7; }
.fm-dot, .fm-ring { position: absolute; top: 50%; left: 50%; width: 56%; height: 56%; border-radius: 50%; }
.fm-dot { background: radial-gradient(circle at 35% 35%, var(--accent-2), var(--accent) 60%, #c63a0b); transform: translate(-28%, -50%); filter: blur(.3px); box-shadow: 0 0 120px rgba(255, 75, 23, .5); animation: breathe 6s ease-in-out infinite; }
.fm-ring { border: clamp(6px, .9vw, 12px) solid var(--text); transform: translate(calc(-72% + var(--rx)), calc(-50% + var(--ry))); transition: border-color .5s, transform .2s linear; border-color: rgba(var(--text-rgb), .4); }
.final-mark.swapped .fm-ring { border-color: var(--hot); }
@keyframes breathe { 50% { transform: translate(-28%, -50%) scale(1.04); } }
.final-copy { position: relative; z-index: 1; max-width: 760px; padding: 40px 20px; }
.final h2 { font-size: clamp(42px, 7vw, 104px); }
.final h2 .serif { color: var(--text); }
.final-copy p { margin: 22px auto 34px; max-width: 460px; font-size: 18px; color: rgba(var(--text-rgb), .75); }

/* ── Footer ───────────────────────────── */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 30px max(var(--gut), calc((100% - 1200px) / 2)); background: var(--stage); color: rgba(var(--text-rgb), .55); border-top: 1px solid rgba(var(--text-rgb), .07); font-size: 13.5px; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.foot nav { display: flex; gap: 18px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot-note { flex-basis: 100%; margin: 0; font-size: 12px; color: rgba(var(--text-rgb), .35); }

/* ── Small screens ────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; text-align: left; }
  .hero-stage { min-height: 520px; }
  .deck-card { width: 92px; }
  .deck-4 { display: none; }
}
@media (max-width: 520px) {
  .hero-actions .lx-btn { width: 100%; }
  .hero-stage { min-height: 470px; margin: 0 -8px; }
  .swap-frame { width: 236px; border-radius: 28px; }
  .deck-card { width: 74px; border-radius: 12px; }
  .deck-card figcaption { display: none; }
  .deck-0 { left: -4px; } .deck-1 { right: -4px; } .deck-2 { left: 0; } .deck-3 { right: 0; }
  .relay { height: calc(var(--n) * 70vh + 100vh); }
}

/* ── Reduced motion: everything at rest ── */
@media (prefers-reduced-motion: reduce) {
  .lx *, .lx *::before, .lx *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .lx-ready [data-reveal]:not([data-in]) { opacity: 1; transform: none; }
  .rise > span { transform: none; }
  .vg-paint { clip-path: none; }
}
