/* FrameOps home — premium interactive layer. Loads after animate.css.
   Every animation sits inside prefers-reduced-motion: no-preference; the static state is the complete design.
   Note: index.html's Tailwind config overrides `rounded-full` to 0.75rem, so true circles/pills are set here. */

:root {
  --ice: #7ec8f4;
  --green: #4de082;
  --line: rgba(255, 255, 255, .08);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t-free: #9ca2b8;
  --t-starter: #3cc2b2;
  --t-studio: #8f89ff;
  --t-pro: #e77bb2;
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Film grain + scroll progress ---------- */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; pointer-events: none;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--ice), var(--green));
}

/* ---------- Shared bits ---------- */
.eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; }
.pill { border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.pchip {
  --c: var(--t-free);
  display: inline-flex; align-items: center; gap: .4rem;
  font: 500 .62rem/1 'IBM Plex Mono', monospace; letter-spacing: .14em; text-transform: uppercase;
  padding: .4rem .65rem; border-radius: 999px; color: var(--c);
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04);
  border: 1px solid color-mix(in srgb, var(--c) 42%, transparent);
  background: color-mix(in srgb, var(--c) 11%, transparent);
  white-space: nowrap;
}
.pchip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.t-free { --c: var(--t-free); } .t-starter { --c: var(--t-starter); }
.t-studio { --c: var(--t-studio); } .t-pro { --c: var(--t-pro); }

/* Spotlight cards: border + glow follow the pointer */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; pointer-events: none;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), rgba(126, 200, 244, .13), transparent 60%);
  transition: opacity .5s;
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; opacity: 0; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(126, 200, 244, .75), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .5s;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-photo {
  position: absolute; inset: 0; z-index: -4;
  background: url(img/balloons.webp) 62% 42% / cover no-repeat; opacity: .3;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
}
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #050507 0%, rgba(5,5,7,.78) 38%, transparent 75%), radial-gradient(120% 90% at 72% 38%, transparent 0%, #050507 88%); }
.aurora { position: absolute; inset: -20%; z-index: -3; pointer-events: none; filter: blur(70px); opacity: .6; }
.aurora i { position: absolute; border-radius: 50%; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: 50%; top: -6%; background: radial-gradient(circle, rgba(126, 200, 244, .55), transparent 65%); }
.aurora i:nth-child(2) { width: 38vw; height: 38vw; left: 6%; top: 40%; background: radial-gradient(circle, rgba(143, 137, 255, .34), transparent 65%); }
.aurora i:nth-child(3) { width: 30vw; height: 30vw; left: 72%; top: 52%; background: radial-gradient(circle, rgba(77, 224, 130, .2), transparent 65%); }
.hero-grid {
  position: absolute; inset: 0; z-index: -2; opacity: .55; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 70% at 62% 40%, #000, transparent);
  mask-image: radial-gradient(70% 70% at 62% 40%, #000, transparent);
}
.hero-spot {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(620px circle at var(--hx, 70%) var(--hy, 40%), rgba(126, 200, 244, .1), transparent 60%);
}
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 9rem; z-index: -1; pointer-events: none; background: linear-gradient(180deg, transparent, #050507); }

/* Device stage */
.stage { position: relative; perspective: 1600px; padding: 1.5rem 0 3.5rem; }
.stage-inner { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); will-change: transform; }
.vf { position: absolute; inset: -.5rem -.75rem 1rem; pointer-events: none; z-index: 0; }
.vf i { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(126, 200, 244, .55); }
.vf i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.vf i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.vf i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.vf i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.vf-tag { position: absolute; top: -1.6rem; left: 0; font: 500 .62rem/1 'IBM Plex Mono', monospace; letter-spacing: .2em; text-transform: uppercase; color: rgba(126, 200, 244, .8); display: flex; gap: .6rem; align-items: center; }
.vf-tag b { width: 6px; height: 6px; border-radius: 50%; background: #ff5f57; display: inline-block; }

.laptop { position: relative; z-index: 1; }
.laptop-lid {
  position: relative; border-radius: 14px 14px 4px 4px; padding: 10px 10px 12px;
  background: linear-gradient(160deg, #2b2c31, #101114); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .9), 0 0 90px -25px rgba(126, 200, 244, .4);
}
.laptop-lid::before { content: ""; position: absolute; top: 4px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #3a3d44; }
.laptop-screen { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9; background: #0f172a; }
.laptop-screen img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
.laptop-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .07), transparent 35%); pointer-events: none; }
.laptop-base { position: relative; height: 12px; margin: 0 -4%; border-radius: 0 0 18px 18px; background: linear-gradient(#2a2b30, #0f1013); border: 1px solid rgba(255, 255, 255, .1); border-top: 0; box-shadow: 0 34px 44px -22px rgba(0, 0, 0, .85); }
.laptop-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 18%; height: 4px; margin-left: -9%; border-radius: 0 0 8px 8px; background: #0a0a0c; }

.phone { position: relative; width: 100%; padding: 9px; border-radius: 2.4rem; background: linear-gradient(160deg, #3a3b42, #0c0d10); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 50px 80px -30px rgba(0, 0, 0, .95), inset 0 0 0 2px #000; }
.phone-screen { position: relative; overflow: hidden; border-radius: 1.9rem; aspect-ratio: 9 / 19; background: #070709; container-type: size; }
.phone-screen img { display: block; width: 100%; height: auto; }
.phone-hero { position: absolute; right: -1%; bottom: 0; width: 27%; z-index: 3; transform: translateZ(60px); }
@media (max-width: 639px) { .phone-hero { width: 31%; right: 0; bottom: -.5rem; } .phone { border-radius: 1.5rem; padding: 5px; } .phone-screen { border-radius: 1.15rem; } }

/* Floating activity chips */
.chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: .65rem;
  padding: .6rem .85rem .6rem .65rem; border-radius: 14px;
  background: rgba(18, 20, 26, .72); border: 1px solid rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9);
  transform: translateZ(90px);
}
.chip .ci { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: rgba(126, 200, 244, .14); color: var(--ice); }
.chip .ci .material-symbols-outlined { font-size: 18px; }
.chip.is-green .ci { background: rgba(77, 224, 130, .14); color: var(--green); }
.chip b { display: block; font-size: .78rem; font-weight: 600; color: #f3eff4; line-height: 1.15; }
.chip span.s { display: block; font: 500 .62rem/1.3 'IBM Plex Mono', monospace; color: rgba(191, 200, 207, .8); letter-spacing: .04em; }
.chip-a { top: 8%; left: -4%; }
.chip-b { top: 44%; right: -3%; }
.chip-c { bottom: 6%; left: 5%; }
@media (max-width: 767px) { .chip { display: none; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: #08080b; }
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; align-items: center; gap: 2.75rem; padding: 1.15rem 2.75rem 1.15rem 0; }
.marquee-item { display: inline-flex; align-items: center; gap: 2.75rem; white-space: nowrap; font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.35rem; color: rgba(229, 225, 229, .78); }
.marquee-item::after { content: "✦"; font-style: normal; font-size: .7rem; color: var(--ice); opacity: .7; }
.marquee { position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 7rem; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, #08080b, transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, #08080b, transparent); }

/* ---------- Journey ---------- */
.jr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.jr > * { min-width: 0; }
@media (min-width: 1024px) { .jr { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; align-items: start; } }
.jr-viewer { position: relative; order: -1; }
.jr-steps { order: 1; }
@media (min-width: 1024px) { .jr-viewer { order: 2; position: sticky; top: 6.5rem; } }
.jr-frame { border-radius: 1rem; overflow: hidden; border: 1px solid rgba(255, 255, 255, .11); background: #0b0b0e; box-shadow: 0 60px 110px -45px rgba(0, 0, 0, .95), 0 0 110px -40px rgba(126, 200, 244, .35); }
.jr-bar { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; background: #1c1b1e; border-bottom: 1px solid var(--line); }
.jr-dots { display: flex; gap: 6px; }
.jr-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.jr-dots i:nth-child(1) { background: rgba(239, 68, 68, .6); } .jr-dots i:nth-child(2) { background: rgba(250, 204, 21, .5); } .jr-dots i:nth-child(3) { background: rgba(74, 222, 128, .5); }
.jr-url { flex: 1; min-width: 0; font: 500 11px 'IBM Plex Mono', monospace; color: rgba(229, 225, 229, .55); background: #0e0e11; border-radius: 6px; padding: .32rem .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-stage { position: relative; aspect-ratio: 19 / 10; background: #0b0b0e; }
@media (max-width: 639px) { .jr-stage { aspect-ratio: 4 / 3; } }
.jr-slide { position: absolute; inset: 0; margin: 0; }
.jr-slide img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
html:not(.js) .jr-slide:not(:first-child) { display: none; }
.js .jr-slide { opacity: 0; visibility: hidden; transform: scale(1.025); transition: opacity .6s ease, transform 1.1s var(--ease), visibility 0s .6s; }
.js .jr-slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.jr-zoom { position: absolute; right: .75rem; bottom: .75rem; z-index: 3; display: inline-flex; align-items: center; gap: .4rem; font: 500 .62rem/1 'IBM Plex Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: #e5e1e5; background: rgba(5, 5, 7, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: .5rem .8rem; cursor: zoom-in; }
.jr-zoom .material-symbols-outlined { font-size: 14px; }
.jr-zoom:hover { border-color: var(--ice); color: var(--ice); }

.jr-steps { list-style: none; margin: 0; padding: 0; }
.jr-step { position: relative; border-left: 1px solid var(--line); transition: background .4s; }
.jr-step:hover { background: rgba(255, 255, 255, .02); }
.jr-step[aria-current="true"] { background: linear-gradient(90deg, rgba(126, 200, 244, .09), transparent); }
.jr-head { display: block; width: 100%; text-align: left; background: none; border: 0; color: inherit; cursor: pointer; padding: 1.15rem 1.25rem .35rem 1.6rem; }
.jr-num { font: 500 .7rem 'IBM Plex Mono', monospace; letter-spacing: .2em; color: rgba(191, 200, 207, .55); }
.jr-step[aria-current="true"] .jr-num { color: var(--ice); }
.jr-title { font-family: 'Playfair Display', serif; font-size: 1.55rem; line-height: 1.2; margin-top: .2rem; color: rgba(229, 225, 229, .72); transition: color .3s; }
.jr-step[aria-current="true"] .jr-title, .jr-head:hover .jr-title { color: #f3eff4; }
.jr-detail { display: grid; grid-template-rows: 1fr; }
.jr-detail > div { overflow: hidden; padding: 0 1.25rem 0 1.6rem; }
.js .jr-detail { grid-template-rows: 0fr; }
.js .jr-step[aria-current="true"] .jr-detail { grid-template-rows: 1fr; }
.jr-step:not([aria-current="true"]) .jr-head { padding-bottom: 1.15rem; }
.jr-step[aria-current="true"] .jr-detail > div { padding-bottom: 1.4rem; }
.jr-detail p { color: #bfc8cf; font-size: .95rem; line-height: 1.65; }
.jr-detail ul { list-style: none; margin: .9rem 0 1rem; padding: 0; display: grid; gap: .45rem; }
.jr-detail li { position: relative; padding-left: 1.4rem; font-size: .88rem; color: rgba(229, 225, 229, .82); }
.jr-detail li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--green); }
.jr-fill { position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--ice); transform-origin: 0 0; transform: scaleY(0); pointer-events: none; }
.jr-step[aria-current="true"] .jr-fill { transform: scaleY(1); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.bento > * { grid-column: span 12; }
@media (min-width: 768px) {
  .b-c, .b-d, .b-f, .b-g { grid-column: span 6; }
}
@media (min-width: 1024px) {
  .b-a { grid-column: span 7; } .b-b { grid-column: span 5; }
  .b-c, .b-d, .b-e { grid-column: span 4; }
  .b-f, .b-g { grid-column: span 6; }
}
.bcard { border-radius: 1.25rem; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)); padding: 1.6rem; overflow: hidden; display: flex; flex-direction: column; }
@media (min-width: 768px) { .bcard { padding: 2rem; } }
.bcard h3 { font-family: 'Playfair Display', serif; font-size: 1.65rem; line-height: 1.15; margin: 1.1rem 0 .6rem; }
.bcard p.copy { color: #bfc8cf; font-size: .93rem; line-height: 1.65; }
.bcard .demo { margin-top: auto; padding-top: 1.5rem; }
.bcard-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.demo-note { font: 500 .58rem/1 'IBM Plex Mono', monospace; letter-spacing: .18em; text-transform: uppercase; color: rgba(137, 146, 153, .8); margin-top: .9rem; }

.panel { border-radius: .9rem; background: #0b0b0e; border: 1px solid var(--line); padding: 1rem; }
.mono { font-family: 'IBM Plex Mono', monospace; }

/* Assistant chat */
.chat { height: 320px; display: flex; flex-direction: column; justify-content: flex-end; gap: .6rem; overflow: hidden; position: relative; }
.chat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40px; background: linear-gradient(#0b0b0e, transparent); z-index: 2; pointer-events: none; }
.bub { max-width: 86%; font-size: .85rem; line-height: 1.45; padding: .6rem .8rem; border-radius: 14px; }
.bub-u { align-self: flex-end; background: rgba(126, 200, 244, .14); border: 1px solid rgba(126, 200, 244, .25); color: #d9eefb; border-bottom-right-radius: 4px; }
.caret::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--ice); }
.act { align-self: flex-start; width: min(100%, 25rem); display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: 12px; background: rgba(77, 224, 130, .07); border: 1px solid rgba(77, 224, 130, .22); }
.act.is-confirm { background: rgba(143, 137, 255, .08); border-color: rgba(143, 137, 255, .3); }
.act .ai { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(77, 224, 130, .14); color: var(--green); }
.act.is-confirm .ai { background: rgba(143, 137, 255, .16); color: var(--t-studio); }
.act .ai .material-symbols-outlined { font-size: 17px; }
.act b { display: block; font-size: .8rem; color: #f3eff4; line-height: 1.2; }
.act small { display: block; font: 500 .62rem/1.35 'IBM Plex Mono', monospace; color: rgba(191, 200, 207, .8); }
.act .btns { margin-left: auto; display: flex; gap: .35rem; }
.act .btn-mini { font: 600 .6rem/1 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; padding: .4rem .55rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); color: #e5e1e5; background: transparent; }
.act .btn-mini.is-solid { background: var(--t-studio); border-color: var(--t-studio); color: #0b0b0e; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: .7rem .8rem; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(229, 225, 229, .5); }

/* Shot list */
.wave { display: flex; align-items: center; gap: 3px; height: 28px; }
.wave i { width: 3px; border-radius: 3px; background: var(--ice); height: 30%; }
.wave i:nth-child(2n) { height: 60%; } .wave i:nth-child(3n) { height: 85%; } .wave i:nth-child(5n) { height: 45%; }
.shots { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .1rem; }
.shots li { display: flex; align-items: center; gap: .6rem; font-size: .84rem; color: rgba(191, 200, 207, .9); padding: .42rem .2rem; }
.shots li .ck { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1.5px solid rgba(137, 146, 153, .7); display: grid; place-items: center; color: transparent; transition: all .35s var(--ease); }
.shots li .ck .material-symbols-outlined { font-size: 13px; font-variation-settings: 'FILL' 1, 'wght' 600; }
.shots li.is-done { color: rgba(229, 225, 229, .5); }
.shots li.is-done span.t { text-decoration: line-through; text-decoration-color: rgba(77, 224, 130, .5); }
.shots li.is-done .ck { background: var(--green); border-color: var(--green); color: #003919; }
.heard { font: 500 .68rem/1.4 'IBM Plex Mono', monospace; color: var(--ice); min-height: 1.4em; margin-top: .75rem; transition: opacity .3s; }
.bar-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: .7rem; }
.bar-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ice), var(--green)); border-radius: 4px; transition: width .6s var(--ease); }

/* Telegram */
.tg { display: grid; gap: .55rem; }
.tg .m { max-width: 88%; font-size: .8rem; line-height: 1.45; padding: .55rem .75rem; border-radius: 14px; }
.tg .m.bot { background: rgba(255, 255, 255, .06); border-bottom-left-radius: 4px; justify-self: start; }
.tg .m.me { background: rgba(126, 200, 244, .16); border: 1px solid rgba(126, 200, 244, .25); border-bottom-right-radius: 4px; justify-self: end; color: #d9eefb; }
.tg .m small { display: block; font: 500 .58rem/1 'IBM Plex Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--ice); margin-bottom: .3rem; }

/* Lead gauge */
.gauge { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: center; }
.gauge-ring { position: relative; width: 112px; height: 112px; }
.gauge-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.gauge-ring .bg { stroke: rgba(255, 255, 255, .08); }
.gauge-ring .fg { stroke: url(#gaugeGrad); stroke: var(--green); stroke-dasharray: 289; stroke-dashoffset: 28; }
.gauge-ring .num { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Playfair Display', serif; font-size: 2.1rem; font-weight: 800; color: #f3eff4; }
.gauge-ring .num small { font: 500 .7rem 'IBM Plex Mono', monospace; color: rgba(191, 200, 207, .7); margin-left: 2px; align-self: end; margin-bottom: 2.2rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { font: 500 .62rem/1 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; padding: .38rem .55rem; border-radius: 6px; background: rgba(77, 224, 130, .08); border: 1px solid rgba(77, 224, 130, .2); color: #a9f0c6; }
.ghost-lines { display: grid; gap: .4rem; margin-top: 1rem; }
.ghost-lines i { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .07); }
.ghost-lines i:nth-child(1) { width: 92%; } .ghost-lines i:nth-child(2) { width: 78%; } .ghost-lines i:nth-child(3) { width: 55%; }

/* Culling */
.cull { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; position: relative; }
.cull .ph { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: url(img/balloons.webp) var(--bx, 50%) var(--by, 50%) / var(--bs, 260%) no-repeat; border: 1px solid rgba(255, 255, 255, .08); }
.cull .ph.rej { filter: blur(1.6px) saturate(.5) brightness(.6); }
.cull .ph .v { position: absolute; right: 4px; bottom: 4px; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #003919; }
.cull .ph.rej .v { background: #ff8a80; color: #4a0a05; filter: none; }
.cull .ph .v .material-symbols-outlined { font-size: 12px; font-variation-settings: 'wght' 700; }
.cull-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--ice), transparent); box-shadow: 0 0 18px 2px rgba(126, 200, 244, .55); opacity: 0; }

/* Workflow */
.flow { display: grid; gap: .6rem; }
.flow .node { display: flex; align-items: center; gap: .8rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); padding: .75rem .9rem; transition: opacity .25s; }
.flow .node .k { font: 600 .58rem/1 'IBM Plex Mono', monospace; letter-spacing: .16em; text-transform: uppercase; padding: .38rem .5rem; border-radius: 6px; width: 5.1rem; text-align: center; flex: none; }
.flow .node.trg .k { background: rgba(126, 200, 244, .14); color: var(--ice); }
.flow .node.cnd .k { background: rgba(250, 204, 21, .12); color: #fde68a; }
.flow .node.act2 .k { background: rgba(77, 224, 130, .13); color: var(--green); }
.flow .node .v { font-size: .86rem; color: #e5e1e5; }
.flow .join { width: 2px; height: 14px; margin-left: 2.1rem; background: repeating-linear-gradient(var(--ice) 0 3px, transparent 3px 6px); opacity: .7; }
.flow.is-swap .node { opacity: 0; }

/* Analyst */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 132px; padding-top: .5rem; }
.bars .b { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, rgba(126, 200, 244, .85), rgba(126, 200, 244, .2)); transform-origin: bottom; }
.bars .b.hi { background: linear-gradient(180deg, var(--green), rgba(77, 224, 130, .2)); }
.bars-x { display: flex; gap: 8px; margin-top: .45rem; font: 500 .56rem/1 'IBM Plex Mono', monospace; letter-spacing: .1em; color: rgba(137, 146, 153, .9); }
.bars-x span { flex: 1; text-align: center; }
.insight { margin-top: .9rem; display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: #e5e1e5; line-height: 1.5; }
.insight .material-symbols-outlined { color: var(--ice); font-size: 18px; margin-top: 1px; }

/* ---------- AI editor video theater ---------- */
.ed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.ed > * { min-width: 0; }
@media (min-width: 1024px) { .ed { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); gap: 3rem; align-items: start; } .ed-theater { position: sticky; top: 6.5rem; } }
.ed-frame { border-radius: 1rem; overflow: hidden; border: 1px solid rgba(255, 255, 255, .11); background: #0b0b0e; box-shadow: 0 60px 110px -45px rgba(0, 0, 0, .95), 0 0 110px -40px rgba(143, 137, 255, .4); }
.ed-stage { position: relative; aspect-ratio: 1920 / 860; background: #000; }
.ed-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; cursor: pointer; }
.ed-video::cue { background: rgba(5, 5, 7, .8); color: #fff; font-size: 1.05em; }
.ed-big { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; color: #fff; cursor: pointer; background: rgba(5, 5, 7, .55); border: 1px solid rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity .3s, transform .3s var(--ease); }
.ed-big .material-symbols-outlined { font-size: 38px; font-variation-settings: 'FILL' 1, 'wght' 400; }
.ed-big:hover { transform: scale(1.08); border-color: var(--ice); }
.ed-stage.is-playing .ed-big { opacity: 0; pointer-events: none; }
html:not(.js) .ed-big, html:not(.js) .ed-ctrl { display: none; }
.ed-stage:fullscreen { background: #000; display: grid; place-items: center; aspect-ratio: auto; }
.ed-stage:fullscreen .ed-video { object-fit: contain; }
.ed-ctrl { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding: .7rem .9rem; background: #101015; border-top: 1px solid var(--line); }
.ed-now { display: inline-flex; align-items: center; gap: .55rem; font: 500 .62rem/1 'IBM Plex Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: rgba(191, 200, 207, .85); }
.ed-now .dot { width: 6px; height: 6px; background: var(--green); }
.ed-btns { display: flex; gap: .45rem; }
.ed-btn { display: inline-flex; align-items: center; gap: .4rem; font: 500 .62rem/1 'IBM Plex Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: #e5e1e5; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: .5rem .75rem; cursor: pointer; }
.ed-btn[hidden] { display: none; }
.ed-btn .material-symbols-outlined { font-size: 15px; }
.ed-btn:hover, .ed-btn[aria-pressed="true"] { border-color: var(--ice); color: var(--ice); }
.ed-tabs { display: grid; }
.ed-tab { position: relative; display: block; width: 100%; text-align: left; color: inherit; cursor: pointer; background: none; border: 0; border-left: 1px solid var(--line); padding: 1.1rem 1.25rem 1.2rem 1.6rem; transition: background .4s; }
.ed-tab:hover { background: rgba(255, 255, 255, .02); }
.ed-tab[aria-selected="true"] { border-left-color: var(--ice); background: linear-gradient(90deg, rgba(126, 200, 244, .09), transparent); }
.ed-tab[aria-selected="true"] .jr-num { color: var(--ice); }
.ed-tab[aria-selected="true"] .jr-title, .ed-tab:hover .jr-title { color: #f3eff4; }
.ed-sum { display: none; margin-top: .45rem; color: #bfc8cf; font-size: .93rem; line-height: 1.65; }
.ed-tab[aria-selected="true"] .ed-sum, html:not(.js) .ed-sum { display: block; }
.ed-bar { display: block; height: 2px; margin-top: .95rem; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .09); opacity: 0; }
.ed-tab[aria-selected="true"] .ed-bar { opacity: 1; }
.ed-bar b { display: block; height: 100%; background: var(--ice); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- Front door (phones) ---------- */
.fd-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.25rem; align-items: start; }
@media (min-width: 1024px) { .fd-phones { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; } .fd-phone:nth-child(2) { margin-top: 3.5rem; } .fd-phone:nth-child(4) { margin-top: 2rem; } }
.fd-phone { position: relative; text-align: center; }
.fd-phone .phone { max-width: 270px; margin: 0 auto; transition: transform .6s var(--ease), box-shadow .6s; }
.fd-phone:hover .phone { transform: translateY(-8px); box-shadow: 0 60px 90px -30px rgba(0, 0, 0, .95), 0 0 70px -20px rgba(126, 200, 244, .4), inset 0 0 0 2px #000; }
.fd-label { margin-top: 1.1rem; }
.fd-label b { display: block; font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 600; color: #f3eff4; }
.fd-label span { display: block; margin-top: .2rem; font: 500 .62rem/1.5 'IBM Plex Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: rgba(137, 146, 153, .95); }
.zoom-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: inherit; }
.phone-pan img { will-change: transform; }

/* Lightbox */
dialog.lb { padding: 0; border: 0; background: transparent; width: 100vw; height: 100vh; max-width: none; max-height: none; }
dialog.lb::backdrop { background: rgba(5, 5, 7, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lb-scroll { position: absolute; inset: 0; overflow: auto; display: flex; padding: 4.5rem 1rem 2rem; }
.lb-scroll img { margin: auto; display: block; border-radius: .75rem; box-shadow: 0 40px 100px -30px #000; max-width: min(100%, 1500px); height: auto; }
dialog.lb[data-kind="phone"] .lb-scroll img { max-width: min(100%, 440px); }
.lb-close { position: fixed; top: 1rem; right: 1rem; z-index: 3; display: inline-flex; align-items: center; gap: .4rem; font: 500 .68rem/1 'IBM Plex Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: #e5e1e5; background: rgba(28, 27, 30, .9); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: .7rem 1rem; cursor: pointer; }
.lb-close:hover { border-color: var(--ice); color: var(--ice); }

/* ---------- Plan staircase ---------- */
.stairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 900px) { .stairs { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 1rem; } .stair:nth-child(1) { min-height: 150px; } .stair:nth-child(2) { min-height: 205px; } .stair:nth-child(3) { min-height: 260px; } .stair:nth-child(4) { min-height: 315px; } }
.stair { position: relative; display: flex; flex-direction: column; gap: .55rem; text-align: left; color: inherit; cursor: pointer; padding: 1.25rem; border-radius: 1rem; border: 1px solid var(--line); border-top: 3px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .03); border-top-color: color-mix(in srgb, var(--c) 70%, transparent); transition: transform .5s var(--ease), border-color .3s, background .3s, box-shadow .5s; }
.stair:hover { transform: translateY(-4px); }
.stair[aria-selected="true"] { border-color: var(--c); background: rgba(255, 255, 255, .06); background: color-mix(in srgb, var(--c) 11%, #0b0b0e); box-shadow: 0 34px 80px -40px var(--c); }
.stair .tn { font: 600 .7rem/1 'IBM Plex Mono', monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--c); }
.stair .pr { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .4rem; font-family: 'Playfair Display', serif; font-weight: 800; font-size: 2.1rem; line-height: 1; color: #f3eff4; letter-spacing: -.02em; }
.stair .pr small { font: 500 .72rem 'DM Sans', sans-serif; color: rgba(191, 200, 207, .8); letter-spacing: 0; }
.stair .tg2 { font-size: .8rem; line-height: 1.45; color: #bfc8cf; }
.stair .mf { margin-top: auto; padding-top: .7rem; font: 500 .66rem/1.7 'IBM Plex Mono', monospace; letter-spacing: .06em; color: rgba(229, 225, 229, .78); }
.stair .mf b { color: var(--c); font-weight: 600; }
.stair .pop { position: absolute; top: -11px; right: 12px; font: 600 .56rem/1 'IBM Plex Mono', monospace; letter-spacing: .14em; text-transform: uppercase; padding: .4rem .55rem; border-radius: 999px; background: var(--c); color: #0b0b0e; }
@media (max-width: 899px) { .stair .mf { display: none; } }

.plan-panel { margin-top: 1.25rem; border-radius: 1.25rem; border: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)); padding: 1.6rem; display: grid; gap: 2rem; }
@media (min-width: 900px) { .plan-panel { grid-template-columns: 1.1fr 1fr; padding: 2.25rem; gap: 3rem; } }
html:not(.js) .plan-panel { margin-bottom: 1.25rem; }
.plan-panel h3 { font-family: 'Playfair Display', serif; font-size: 1.75rem; line-height: 1.15; color: #f3eff4; }
.plan-panel h3 em { color: var(--c); }
.plan-panel .inh { font: 500 .66rem/1 'IBM Plex Mono', monospace; letter-spacing: .16em; text-transform: uppercase; color: rgba(137, 146, 153, .95); margin: 1.25rem 0 .8rem; padding-bottom: .8rem; border-bottom: 1px dashed var(--line); }
.plan-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.plan-panel li { position: relative; padding-left: 1.4rem; font-size: .92rem; color: rgba(229, 225, 229, .9); }
.plan-panel li::before { content: "+"; position: absolute; left: .1rem; top: -1px; font: 600 1rem 'IBM Plex Mono', monospace; color: var(--c); }
.plan-panel li.no { color: rgba(137, 146, 153, .95); } .plan-panel li.no::before { content: "–"; color: rgba(137, 146, 153, .7); }
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; align-content: start; }
.cap { border-radius: .8rem; padding: 1rem; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.cap b { display: block; font: 500 1.7rem/1 'IBM Plex Mono', monospace; color: #f3eff4; font-variant-numeric: tabular-nums; }
.cap span { display: block; margin-top: .35rem; font-size: .75rem; color: rgba(191, 200, 207, .85); }
.cap i { display: block; height: 4px; border-radius: 4px; margin-top: .8rem; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.cap i::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: var(--c); transform-origin: 0 50%; transform: scaleX(var(--w, .5)); }
.doors { display: grid; gap: .75rem; margin-top: 1.25rem; }
@media (min-width: 768px) { .doors { grid-template-columns: 1fr 1fr; } }
.door { display: flex; gap: 1rem; align-items: flex-start; border-radius: 1rem; border: 1px dashed rgba(255, 255, 255, .16); padding: 1.1rem 1.25rem; }
.door .k { font: 600 .62rem/1 'IBM Plex Mono', monospace; letter-spacing: .14em; text-transform: uppercase; padding: .5rem .6rem; border-radius: 6px; background: rgba(255, 255, 255, .06); white-space: nowrap; }
.door p { font-size: .88rem; color: #bfc8cf; line-height: 1.6; }
.door p strong { color: #f3eff4; font-weight: 600; }

/* ---------- Founder + closing ---------- */
.quote-mark { position: absolute; top: -.6rem; left: -.4rem; font-family: 'Playfair Display', serif; font-size: 9rem; line-height: 1; color: rgba(126, 200, 244, .12); pointer-events: none; }
.spots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 9px; max-width: 19rem; }
.spots i { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(126, 200, 244, .45); background: rgba(126, 200, 244, .06); }
.close-wrap { position: relative; isolation: isolate; overflow: hidden; }
.close-wrap .aurora { opacity: .7; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .aurora i:nth-child(1) { animation: drift-a 16s ease-in-out infinite alternate; }
  .aurora i:nth-child(2) { animation: drift-b 20s ease-in-out infinite alternate; }
  .aurora i:nth-child(3) { animation: drift-a 24s ease-in-out infinite alternate-reverse; }
  @keyframes drift-a { to { transform: translate3d(-6vw, 5vh, 0) scale(1.15); } }
  @keyframes drift-b { to { transform: translate3d(8vw, -6vh, 0) scale(1.1); } }

  .stage-inner { animation: float 9s ease-in-out infinite alternate; }
  @keyframes float { from { translate: 0 0; } to { translate: 0 -10px; } }

  .chip { animation: chip 12s ease-in-out infinite both; animation-delay: var(--d, 0s); opacity: 0; }
  @keyframes chip {
    0% { opacity: 0; translate: 0 12px; scale: .94; }
    6%, 26% { opacity: 1; translate: 0 0; scale: 1; }
    34%, 100% { opacity: 0; translate: 0 -10px; scale: .98; }
  }

  .marquee-track { animation: marquee 70s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }

  .jr .jr-step[aria-current="true"] .jr-fill { transform: scaleY(0); animation: jr-fill var(--jr-dur, 8s) linear forwards; }
  .jr.is-paused .jr-fill { animation-play-state: paused; }
  .jr.is-manual .jr-step[aria-current="true"] .jr-fill { animation: none; transform: scaleY(1); }
  @keyframes jr-fill { to { transform: scaleY(1); } }
  .js .jr-detail { transition: grid-template-rows .55s var(--ease); }

  .phone-pan img { animation: pan var(--dur, 16s) cubic-bezier(.45, .05, .35, 1) var(--delay, 0s) infinite alternate; animation-play-state: paused; }
  .phone-pan.is-live img { animation-play-state: running; }
  .fd-phone:hover .phone-pan img, .phone-pan:focus-within img { animation-play-state: paused; }
  @keyframes pan { 0%, 10% { transform: translateY(0); } 90%, 100% { transform: translateY(min(0px, calc(100cqh - 100%))); } }

  .wave i { animation: wave 1.1s ease-in-out infinite alternate; }
  .wave i:nth-child(2n) { animation-delay: -.3s; } .wave i:nth-child(3n) { animation-delay: -.6s; } .wave i:nth-child(5n) { animation-delay: -.15s; }
  @keyframes wave { from { transform: scaleY(.35); } to { transform: scaleY(1.15); } }
  .typing i { animation: dotbounce 1s ease-in-out infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
  @keyframes dotbounce { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-4px); opacity: 1; } }
  .caret::after { animation: blink 1s steps(2) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  .bub, .act, .typing { animation: pop .5s var(--ease) both; }
  @keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }

  /* Play-on-view demos: stagger in while .play is set, replay on re-entry */
  .tg:not(.play) .m { opacity: 0; }
  .tg.play .m { animation: pop .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 1.1s + .2s); }
  .gauge-ring .fg { transition: stroke-dashoffset 1.4s var(--ease) .2s; }
  .gauge-ring:not(.play) .fg { stroke-dashoffset: 289; }
  .bars .b { transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .bars:not(.play) .b { transform: scaleY(0); }
  .cull.play .cull-scan { animation: scan 2.6s ease-in-out .3s 2; }
  @keyframes scan { 0% { top: 0; opacity: 0; } 12%, 88% { opacity: 1; } 100% { top: calc(100% - 2px); opacity: 0; } }
  .cull .ph .v { transition: transform .4s var(--ease), opacity .4s; }
  .cull:not(.play) .ph .v { transform: scale(0); opacity: 0; }
  .cull.play .ph .v { transition-delay: calc(var(--i, 0) * 110ms + .5s); }

  .spots i { animation: spot 4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 90ms); }
  @keyframes spot { 0%, 100% { background: rgba(126, 200, 244, .06); } 8% { background: rgba(126, 200, 244, .55); } 22% { background: rgba(126, 200, 244, .06); } }

  .zoom-btn img, .jr-slide img { transition: filter .4s; }
}
@media (prefers-reduced-motion: reduce) {
  .chip { opacity: 1; }
  .chip-b { display: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee-group { flex-wrap: wrap; justify-content: center; row-gap: .5rem; padding-right: 0; }
}
