/* ---------- TechWon — Scroll-driven cinematic site ---------- */
:root {
  --bg-0: #000208;
  --bg-1: #010511;
  --bg-2: #020918;
  --bg-card: rgba(4, 10, 32, 0.75);
  --line: rgba(80, 130, 220, 0.10);
  --line-strong: rgba(80, 130, 220, 0.22);
  --blue-1: #2D9CFF;
  --blue-2: #4FD2FF;
  --blue-3: #7BB8FF;
  --blue-deep: #1E5BD6;
  --text: #E2EEFF;
  --muted: #7A92B8;
  --dim: #48607A;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg-0); color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
body { line-height: 1.5; overflow-x: hidden; }
/* Scroll-snap: every scroll input lands on the next slide */
html, body { overscroll-behavior-y: none; }
html { scroll-snap-type: y mandatory; scroll-behavior: smooth; }
.snap-anchors { position: absolute; inset: 0; pointer-events: none; }
.snap-anchors .snap { height: 100vh; scroll-snap-align: start; scroll-snap-stop: always; }
a, button { color: inherit; }
button { font: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Ambient backdrop ---------- */
.bg-field {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(1200px 700px at 75% -10%, rgba(30,100,200,0.14), transparent 60%),
    radial-gradient(900px 600px at 10% 30%, rgba(50,160,255,0.07), transparent 60%),
    radial-gradient(1100px 800px at 50% 120%, rgba(20,60,160,0.13), transparent 60%),
    linear-gradient(180deg, #000208 0%, #010410 40%, #010816 100%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(80,130,220,0.030) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80,130,220,0.030) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(900px 600px at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(900px 600px at 50% 50%, #000 30%, transparent 80%);
}
.bg-noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.03;
  background-image: radial-gradient(circle at 25% 30%, rgba(123,184,255,0.08) 0, transparent 40%), radial-gradient(circle at 75% 70%, rgba(79,210,255,0.06) 0, transparent 40%);
}

/* ---------- Scroll driver / stage ---------- */
.driver { position: relative; height: 800vh; }
body { overflow-x: hidden; }
.stage {
  position: sticky; top: 0;
  height: 100vh; width: 100%;
  overflow: hidden;
  z-index: 5;
  background: var(--bg-0); /* prevents background bleed during crossfades */
}
/* entering frame always paints on top of the exiting one */
.frame.is-active { z-index: 2; }
.frame { z-index: 1; }

/* ══════════════════════════════════════════════════════
   SITE HEADER — solid bar, never overlaps content
   ══════════════════════════════════════════════════════ */
.hud-top {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  /* Solid background so frames never show through */
  background: rgba(1, 3, 14, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(79, 210, 255, 0.10);
  box-shadow: 0 1px 24px rgba(0,0,0,0.45);
  pointer-events: auto;
}

/* ── Logo ── */
.hud-top .lg {
  display: flex; align-items: center;
  flex: 0 0 auto;
}
/* Applied globally so all pages (contact, about, services) get the same size */
.hud-top .lg img {
  height: 40px;
  max-width: 160px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(79,210,255,0.60))
          drop-shadow(0 0 24px rgba(45,156,255,0.35));
  transition: filter .25s;
}
.hud-top .lg img:hover {
  filter: drop-shadow(0 0 14px rgba(79,210,255,0.85))
          drop-shadow(0 0 32px rgba(45,156,255,0.50));
}

/* ── Live status (right of logo) ── */
.hud-top .right {
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
  letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  flex: 0 0 auto;
}
.hud-top .right .live-dot,
.live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue-2);
  box-shadow: 0 0 8px var(--blue-2);
  animation: pulse 1.8s infinite;
  display: inline-block;
  flex-shrink: 0;
}

/* ── Centre nav links ─────────────────────────────── */
.hud-nav {
  display: flex; align-items: center; gap: 2px;
  flex: 1 1 auto; justify-content: center;
  /* flat bar style — no pill border */
}
.nav-link {
  font-family: var(--font-body); font-size: 13.5px; font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 18px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: rgba(79,210,255,0.07); }
.nav-link.active {
  color: var(--blue-2);
  background: rgba(79,210,255,0.10);
  font-weight: 600;
}

/* ── Right CTA ─────────────────────────────────────── */
.hud-right {
  display: flex; align-items: center; gap: 14px;
  flex: 0 0 auto;
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
  letter-spacing: 0.10em;
}
.btn-nav {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: #000d1f;
  background: linear-gradient(135deg, var(--blue-2), var(--blue-1));
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 8px;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(79,210,255,0.25);
}
.btn-nav:hover { opacity: 0.88; transform: translateY(-1px); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79,210,255,0.7); }
  70% { box-shadow: 0 0 0 8px rgba(79,210,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,210,255,0); }
}

/* ══════════════════════════════════════════════════════
   HAMBURGER + MOBILE MENU
   ══════════════════════════════════════════════════════ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
  background: rgba(79,210,255,0.08);
  border: 1px solid rgba(79,210,255,0.18);
  border-radius: 8px;
  cursor: pointer;
  z-index: 200;
  flex-shrink: 0;
  transition: background .2s;
}
.hamburger:hover { background: rgba(79,210,255,0.14); }
.hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--blue-2);
  border-radius: 2px;
  transform-origin: center;
  transition: transform .3s cubic-bezier(0.4,0,0.2,1), opacity .2s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Full-screen mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 54px; left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: rgba(1,3,14,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 32px 24px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease;
}
.mobile-menu.is-open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu .m-link {
  width: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(79,210,255,0.08);
  letter-spacing: -0.01em;
  transition: color .2s;
}
.mobile-menu .m-link:last-of-type { border-bottom: none; }
.mobile-menu .m-link:hover,
.mobile-menu .m-link.active { color: var(--blue-2); }
.mobile-menu .m-cta {
  margin-top: 28px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 600;
  color: #000d1f;
  background: linear-gradient(135deg, var(--blue-2), var(--blue-1));
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 10px;
  width: 100%;
  box-shadow: 0 0 20px rgba(79,210,255,0.30);
}

/* Show hamburger, hide desktop nav — on small screens */
@media (max-width: 680px) {
  .hamburger { display: flex; }
  .hud-nav { display: none !important; }
  .hud-right { display: none !important; }
}

.hud-progress {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: 2px; background: rgba(120,165,255,0.1);
}
.hud-progress .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-1), var(--blue-2));
  width: 0%;
  box-shadow: 0 0 12px var(--blue-2);
  transition: width 0.05s linear;
}

/* Chapter scrubber on right side */
.scrubber {
  position: fixed; right: 32px; top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex; flex-direction: column; gap: 18px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dim);
}
.scrubber .ch {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
  transition: color .25s;
}
.scrubber .ch .dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--dim);
  background: transparent;
  transition: all .3s;
}
.scrubber .ch.active { color: var(--blue-2); }
.scrubber .ch.active .dot { background: var(--blue-2); border-color: var(--blue-2); box-shadow: 0 0 10px var(--blue-2); }
.scrubber .ch.past .dot { background: rgba(79,210,255,0.4); border-color: rgba(79,210,255,0.4); }

/* Bottom chapter title + scroll hint */
.chapter-label {
  position: fixed; left: 40px; bottom: 32px; z-index: 60;
  pointer-events: none;
}
.chapter-label .ix {
  font-family: var(--font-mono); font-size: 11px; color: var(--blue-2);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 4px;
}
.chapter-label .ttl {
  font-family: var(--font-display); font-size: 16px; color: var(--text);
  font-weight: 500;
}

.scroll-hint {
  position: fixed; left: 50%; bottom: 28px;
  transform: translateX(-50%);
  z-index: 60;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  pointer-events: none;
}
.scroll-hint .arrow {
  width: 1px; height: 28px;
  background: linear-gradient(180deg, var(--blue-2), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-hint .arrow::after {
  content: ""; position: absolute; top: 0; left: -1px;
  width: 3px; height: 8px; background: var(--blue-2);
  animation: scrollArrow 1.6s infinite ease-in-out;
}
@keyframes scrollArrow {
  0% { top: -8px; opacity: 0; }
  30% { opacity: 1; }
  100% { top: 28px; opacity: 0; }
}

/* ---------- Frames (absolutely positioned in stage) ---------- */
.frame {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  /* top padding = exact header height so content never hides behind header */
  padding: 64px 64px 48px;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
  /* Fully opaque — active frame must completely cover the exiting one */
  background-color: #000208;
  background-image:
    radial-gradient(1200px 700px at 75% -10%, rgba(30,100,200,0.12), transparent 60%),
    radial-gradient(900px 600px at 10% 30%, rgba(50,160,255,0.06), transparent 60%),
    radial-gradient(1100px 800px at 50% 120%, rgba(20,60,160,0.10), transparent 60%),
    linear-gradient(180deg, #000208 0%, #010410 40%, #010816 100%);
}
.frame.is-active { pointer-events: auto; }

/* ============ FRAME 1: Brand entry ============ */
.f1 { text-align: center; }
.f1-logo-wrap {
  position: relative;
  display: grid; place-items: center;
}
.f1-logo-wrap .glow {
  position: absolute; inset: -80px;
  background: radial-gradient(circle, rgba(79,210,255,0.35), transparent 60%);
  filter: blur(30px);
  z-index: -1;
}
.f1-logo {
  width: clamp(280px, 38vw, 540px);
  height: auto;
  filter: drop-shadow(0 0 30px rgba(79,210,255,0.6));
}
.f1-tag {
  margin-top: 24px;
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--blue-2);
}
.f1-sub {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  color: var(--muted);
  font-weight: 400;
}

/* ============ FRAME 2: Five agents headline ============ */
/* Top-align so all 5 problem rows are always visible; overflow only happens at bottom */
.f2 {
  text-align: center;
  align-items: start !important; /* override place-items:center from .frame */
  justify-items: center;
  padding-top: 74px !important;  /* header 64px + 10px breathing room */
  padding-bottom: 16px !important;
  overflow-y: auto;
}
/* Ensure inner content div stretches to fill the grid track */
.f2 > div:not(.scene-bg):not(.orbit-scene):not(.f2-mascots) {
  width: 100%;
  max-width: 900px;
}
.f2 .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 12px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-2);
  background: rgba(79,210,255,0.06);
  border: 1px solid rgba(79,210,255,0.25);
  border-radius: 999px;
  margin-bottom: 10px;
}
.f2 h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 48px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  max-width: 1100px;
  text-wrap: balance;
  margin-bottom: 0;
}
.f2 h1 .grad {
  background: linear-gradient(110deg, #fff 10%, var(--blue-2) 45%, var(--blue-1) 75%, #7BB8FF 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.f2 h1 .stroke {
  -webkit-text-stroke: 1.5px rgba(123,184,255,0.45);
  color: transparent; font-style: italic;
}
.f2 .lede {
  margin: 10px auto 0;
  max-width: 680px;
  font-size: 14px; line-height: 1.5; color: var(--muted);
}

/* Orbit ring system (used in f1/f2) */
.orbit-scene {
  position: absolute; inset: 0;
  pointer-events: none;
  display: grid; place-items: center;
}
.ring {
  position: absolute;
  width: 60vmin; height: 60vmin;
  border-radius: 50%;
  border: 1px solid rgba(120,165,255,0.18);
  transform-style: preserve-3d;
}
.ring.r1 { animation: spin1 22s linear infinite; }
.ring.r2 { width: 72vmin; height: 72vmin; border-color: rgba(79,210,255,0.18); animation: spin2 30s linear infinite reverse; }
.ring.r3 { width: 88vmin; height: 88vmin; border-color: rgba(45,156,255,0.14); animation: spin3 45s linear infinite; border-style: dashed; }
@keyframes spin1 { from { transform: rotateX(72deg) rotateZ(0); } to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes spin2 { from { transform: rotateX(60deg) rotateY(20deg) rotateZ(0); } to { transform: rotateX(60deg) rotateY(20deg) rotateZ(360deg); } }
@keyframes spin3 { from { transform: rotateX(80deg) rotateY(-15deg) rotateZ(0); } to { transform: rotateX(80deg) rotateY(-15deg) rotateZ(360deg); } }
.ring .node {
  position: absolute; top: -5px; left: 50%;
  width: 10px; height: 10px;
  background: var(--blue-2); border-radius: 50%;
  box-shadow: 0 0 12px var(--blue-2), 0 0 24px rgba(79,210,255,0.6);
  transform: translateX(-50%);
}
.ring .node.n2 { top: 50%; left: -5px; background: var(--blue-3); }
.ring .node.n3 { top: auto; bottom: -5px; left: 50%; background: var(--blue-1); }

/* ============ Agent frame template ============ */
.agent {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px;
  align-items: center;
  width: 100%; max-width: 1320px;
}
.agent-left { max-width: 520px; }

/* ── Agent identity header (mascot + name) ── */
.agent-id {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 14px;
}
.agent-mascot-lg {
  width: 90px; height: 90px; flex-shrink: 0;
  overflow: hidden;
}
.agent-mascot-lg svg { width: 100%; height: 100%; overflow: hidden; }
.agent-id .nm { font-family: var(--font-display); font-weight: 600; font-size: 32px; letter-spacing: -0.01em; }
.agent-id .rl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-2); }
.agent h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 3.8vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-wrap: balance;
}
.agent h2 .accent {
  background: linear-gradient(110deg, var(--blue-2), var(--blue-1));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.agent .desc { font-size: 15px; color: var(--muted); margin-bottom: 16px; text-wrap: pretty; line-height: 1.55; }
.agent ul {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
}
.agent ul li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--text);
}
.agent ul li::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--blue-2);
  background: radial-gradient(circle, var(--blue-2) 30%, transparent 31%);
  flex-shrink: 0;
}


/* ── Agent-right: stack mock + feature strip vertically ── */
.agent-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0; /* prevent grid blowout */
}

/* Mock frame */
.mock {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(6,14,44,0.85), rgba(2,6,22,0.90));
  border: 1px solid var(--line-strong);
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(20,80,200,0.35);
  backdrop-filter: blur(10px);
  max-height: calc(100vh - 300px); /* leave room for feature strip */
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   AGENT FEATURE STRIP — horizontal scrolling cards
   ══════════════════════════════════════════════════════════ */
.feat-strip-wrap {
  position: relative;
}
/* Fade-out right edge to hint there are more cards */
.feat-strip-wrap::after {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 8px;
  width: 48px;
  background: linear-gradient(to right, transparent, #000208);
  pointer-events: none;
  z-index: 2;
  border-radius: 0 14px 14px 0;
}
.feat-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 40px 8px 2px; /* right padding so last card isn't hidden under fade */
  cursor: grab;
  user-select: none;
}
.feat-strip::-webkit-scrollbar { display: none; }
.feat-strip.is-dragging { cursor: grabbing; }

.feat-card {
  flex: 0 0 188px;
  background: rgba(4, 10, 34, 0.80);
  border: 1px solid rgba(79, 210, 255, 0.13);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
  backdrop-filter: blur(8px);
}
.feat-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,210,255,0.35), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.feat-card:hover {
  border-color: rgba(79,210,255,0.30);
  transform: translateY(-2px);
}
.feat-card:hover::before { opacity: 1; }

.feat-ico {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 2px;
  display: block;
}
.feat-t {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.feat-s {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
}
.feat-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-2);
  background: rgba(79,210,255,0.08);
  border: 1px solid rgba(79,210,255,0.18);
  border-radius: 4px;
  padding: 2px 7px;
  margin-top: auto;
  width: fit-content;
}
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--dim);
}
.mock-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(120,165,255,0.25); }
.mock-bar .dot.live { background: var(--blue-2); box-shadow: 0 0 6px var(--blue-2); animation: pulse 2s infinite; }
.mock-bar .url { margin-left: auto; color: var(--blue-3); }

/* RANKO mock */
.mock-seo { padding: 22px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.seo-graph {
  position: relative; height: 200px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(45,156,255,0.08), transparent);
  border: 1px solid var(--line);
  padding: 16px;
}
.seo-graph svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.seo-graph .lbl { font-family: var(--font-mono); font-size: 10px; color: var(--blue-2); letter-spacing: 0.08em; text-transform: uppercase; }
.seo-graph .num { font-family: var(--font-display); font-size: 28px; font-weight: 600; margin-top: 4px; }
.seo-graph .num .delta { color: var(--blue-2); font-size: 12px; margin-left: 8px; vertical-align: middle; }
.seo-keywords { display: flex; flex-direction: column; gap: 10px; }
.kw-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px;
  align-items: center;
  padding: 10px 14px;
  background: rgba(120,165,255,0.05);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
}
.kw-row .pos { font-family: var(--font-mono); color: var(--blue-2); font-size: 12px; }
.kw-row .move { font-family: var(--font-mono); font-size: 10px; padding: 3px 7px; border-radius: 5px; background: rgba(79,210,255,0.12); color: var(--blue-2); }
.kw-row .move.up::before { content: "▲ "; }

/* QUILL mock */
.mock-quill { padding: 22px; }
.quill-tabs { display: flex; gap: 18px; font-family: var(--font-mono); font-size: 11px; color: var(--dim); margin-bottom: 14px; }
.quill-tabs .t { padding-bottom: 8px; }
.quill-tabs .t.active { color: var(--blue-2); border-bottom: 1.5px solid var(--blue-2); }
.quill-body {
  background: rgba(120,165,255,0.04);
  border: 1px solid var(--line);
  border-radius: 10px; padding: 20px;
  font-size: 14px; line-height: 1.7;
}
.quill-body .h { font-family: var(--font-display); font-size: 22px; color: var(--text); margin-bottom: 12px; font-weight: 500; }
.quill-body .ln { color: var(--muted); }
.quill-body .typing { color: var(--blue-2); border-right: 2px solid var(--blue-2); animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { border-color: transparent; } }
.quill-chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(79,210,255,0.08); color: var(--blue-2);
  border: 1px solid rgba(79,210,255,0.2);
}

/* VEGA mock */
.mock-vega { padding: 22px; }
.vega-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.vega-stat {
  padding: 14px; border-radius: 12px;
  background: rgba(120,165,255,0.04);
  border: 1px solid var(--line);
}
.vega-stat .lbl { font-family: var(--font-mono); font-size: 10px; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.vega-stat .val { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.vega-stat .val .d { color: var(--blue-2); font-size: 11px; margin-left: 4px; }
.vega-flow {
  padding: 18px;
  background: rgba(120,165,255,0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.vega-step {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px;
  background: rgba(3,8,25,0.7);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  position: relative;
}
.vega-step .ico { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--blue-1), var(--blue-deep)); display: grid; place-items: center; color: #02112B; font-weight: 700; }
.vega-step .t { color: var(--text); font-weight: 500; font-size: 13px; }
.vega-step .s { color: var(--muted); font-size: 11px; }
.vega-step.active { border-color: var(--blue-2); box-shadow: 0 0 0 2px rgba(79,210,255,0.15); }
.vega-step.active .ico { background: linear-gradient(135deg, var(--blue-2), var(--blue-1)); }

/* IRIS mock — phone */
.iris-phone {
  width: 280px;
  aspect-ratio: 280 / 560;
  background: linear-gradient(180deg, #050E2A, #03081A);
  border: 8px solid #0A1640;
  border-radius: 42px;
  box-shadow: 0 40px 100px -30px rgba(45,156,255,0.6), inset 0 2px 0 rgba(255,255,255,0.06);
  padding: 20px 16px;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}
.iris-phone::before {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 22px; background: #03081A; border-radius: 0 0 14px 14px;
}
.iris-time { text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--blue-2); margin-bottom: 28px; }
.iris-pulse-wrap { display: grid; place-items: center; margin: 14px 0 18px; height: 100px; position: relative; }
.iris-pulse {
  width: 72px; height: 72px; border-radius: 50%;
  background: radial-gradient(circle, var(--blue-2), var(--blue-1) 60%, var(--blue-deep) 100%);
  box-shadow: 0 0 30px var(--blue-2);
  position: relative;
}
.iris-pulse::after, .iris-pulse::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid var(--blue-2); opacity: 0;
  animation: ripple 2s infinite;
}
.iris-pulse::before { inset: -20px; border-width: 1px; animation-delay: 0.4s; }
@keyframes ripple {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}
.iris-caller { text-align: center; }
.iris-caller .name { font-family: var(--font-display); font-size: 17px; font-weight: 500; }
.iris-caller .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.iris-bars { display: flex; gap: 3px; align-items: end; justify-content: center; height: 32px; margin-top: 14px; }
.iris-bars span {
  width: 3px; background: var(--blue-2); border-radius: 2px;
  animation: bars 1.2s ease-in-out infinite;
}
.iris-bars span:nth-child(1) { animation-delay: 0s; }
.iris-bars span:nth-child(2) { animation-delay: 0.1s; }
.iris-bars span:nth-child(3) { animation-delay: 0.2s; }
.iris-bars span:nth-child(4) { animation-delay: 0.3s; }
.iris-bars span:nth-child(5) { animation-delay: 0.4s; }
.iris-bars span:nth-child(6) { animation-delay: 0.5s; }
.iris-bars span:nth-child(7) { animation-delay: 0.6s; }
.iris-bars span:nth-child(8) { animation-delay: 0.7s; }
.iris-bars span:nth-child(9) { animation-delay: 0.8s; }
.iris-bars span:nth-child(10) { animation-delay: 0.9s; }
@keyframes bars { 0%, 100% { height: 4px; } 50% { height: 26px; } }
.iris-transcript {
  margin-top: 16px; padding: 12px;
  background: rgba(120,165,255,0.05); border: 1px solid var(--line); border-radius: 12px;
  font-size: 11px;
}
.iris-transcript .row { display: flex; gap: 6px; margin-bottom: 8px; line-height: 1.45; }
.iris-transcript .row:last-child { margin-bottom: 0; }
.iris-transcript .tag { font-family: var(--font-mono); font-size: 9px; color: var(--blue-2); padding-top: 1px; flex-shrink: 0; }

.iris-right { align-items: center; } /* keep phone centred horizontally within flex column */

/* OTTO mock */
.mock-otto { padding: 22px; }
.otto-car {
  background: linear-gradient(180deg, rgba(45,156,255,0.08), transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
  display: grid; grid-template-columns: 1fr auto; gap: 14px;
  align-items: center;
}
.otto-car .ph {
  width: 150px; height: 80px;
  background: radial-gradient(ellipse 50% 80% at 30% 100%, rgba(79,210,255,0.4), transparent 60%), linear-gradient(180deg, #0E1C4F, #050E2A);
  border-radius: 10px;
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
}
.otto-car .ph::before {
  content: ""; position: absolute;
  width: 104px; height: 30px; left: 23px; top: 28px;
  background: linear-gradient(180deg, #4FD2FF, #2D9CFF);
  clip-path: polygon(10% 0%, 90% 0%, 100% 60%, 100% 100%, 0% 100%, 0% 60%);
  border-radius: 7px 7px 0 0;
}
.otto-car .ph::after {
  content: ""; position: absolute;
  width: 128px; height: 16px; left: 11px; top: 54px;
  background: #03081A; border-radius: 4px;
  box-shadow: inset 0 -2px 0 rgba(79,210,255,0.3);
}
.otto-car .info .ttl { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 2px; }
.otto-car .info .sub { font-size: 12px; color: var(--muted); }
.otto-car .info .meta { display: flex; gap: 14px; margin-top: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--blue-2); }
.otto-car .price .p { font-family: var(--font-display); font-size: 24px; font-weight: 600; text-align: right; }
.otto-car .price .badge {
  display: inline-block; margin-top: 4px; padding: 3px 8px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(79,210,255,0.15); color: var(--blue-2); border: 1px solid rgba(79,210,255,0.3);
}
.otto-chat {
  background: rgba(120,165,255,0.04);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px;
}
.otto-msg {
  font-size: 13px; padding: 9px 13px; border-radius: 11px; margin-bottom: 7px;
  max-width: 80%; line-height: 1.45;
}
.otto-msg.user { background: rgba(120,165,255,0.08); margin-left: auto; border: 1px solid var(--line); }
.otto-msg.bot { background: linear-gradient(135deg, rgba(45,156,255,0.18), rgba(79,210,255,0.1)); border: 1px solid rgba(79,210,255,0.25); color: var(--text); }
.otto-msg.bot .who { font-family: var(--font-mono); font-size: 9px; color: var(--blue-2); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px; display: block; }

/* ============ FRAME 8: Final CTA ============ */
.f-cta { text-align: center; }
.f-cta h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1.02; letter-spacing: -0.025em;
  max-width: 900px; margin: 0 auto;
  text-wrap: balance;
}
.f-cta h2 .accent {
  background: linear-gradient(110deg, var(--blue-2), var(--blue-1));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.f-cta .lede { margin: 10px auto 0; max-width: 560px; font-size: 15px; line-height: 1.5; color: var(--muted); }

.team {
  display: flex; justify-content: center; gap: 16px;
  margin: 40px 0 36px;
}
.team .mem { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.team .av {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 32px;
  color: #02112B;
  box-shadow: 0 16px 48px -12px rgba(79,210,255,0.5), inset 0 1px 0 rgba(255,255,255,0.4);
}
.team .nm { font-family: var(--font-display); font-size: 15px; font-weight: 500; }
.team .rl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 16px;
  font-weight: 500; font-size: 16px;
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  color: #02112B;
  box-shadow: 0 16px 50px -12px rgba(45,156,255,0.8), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 60px -10px rgba(79,210,255,0.85), inset 0 1px 0 rgba(255,255,255,0.4); }

.f-cta .small {
  margin-top: 26px;
  margin-bottom: 56px;
  font-family: var(--font-mono); font-size: 11px; color: var(--dim);
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* Cursor glow */
.cursor-glow {
  position: fixed; pointer-events: none; z-index: 70;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,210,255,0.10), transparent 60%);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

/* ============================================================
   Staggered reveal animations — fires each time a frame enters
   ============================================================ */
@keyframes twFadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes twFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Frame 2 (five agents headline + problems list) ── */
.f2.frame.is-active .eyebrow {
  animation: twFadeUp 0.6s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.05s;
}
.f2.frame.is-active h1 {
  animation: twFadeUp 0.72s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.18s;
}
.f2.frame.is-active .lede {
  animation: twFadeUp 0.65s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.34s;
}
.f2.frame.is-active .prow:nth-child(1) { animation: twFadeUp 0.55s cubic-bezier(0.16,1,0.3,1) both 0.46s; }
.f2.frame.is-active .prow:nth-child(2) { animation: twFadeUp 0.55s cubic-bezier(0.16,1,0.3,1) both 0.56s; }
.f2.frame.is-active .prow:nth-child(3) { animation: twFadeUp 0.55s cubic-bezier(0.16,1,0.3,1) both 0.66s; }
.f2.frame.is-active .prow:nth-child(4) { animation: twFadeUp 0.55s cubic-bezier(0.16,1,0.3,1) both 0.76s; }
.f2.frame.is-active .prow:nth-child(5) { animation: twFadeUp 0.55s cubic-bezier(0.16,1,0.3,1) both 0.86s; }

/* ── Agent frames (Frames 3–7) ── */
.frame.is-active .agent .agent-id {
  animation: twFadeUp 0.60s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.06s;
}
.frame.is-active .agent h2 {
  animation: twFadeUp 0.68s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.18s;
}
.frame.is-active .agent .desc {
  animation: twFadeUp 0.65s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.30s;
}
.frame.is-active .agent ul li:nth-child(1) { animation: twFadeUp 0.55s cubic-bezier(0.16,1,0.3,1) both 0.40s; }
.frame.is-active .agent ul li:nth-child(2) { animation: twFadeUp 0.55s cubic-bezier(0.16,1,0.3,1) both 0.50s; }
.frame.is-active .agent ul li:nth-child(3) { animation: twFadeUp 0.55s cubic-bezier(0.16,1,0.3,1) both 0.60s; }
.frame.is-active .agent .agent-right {
  animation: twFadeUp 0.75s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.22s;
}
/* Feature cards stagger in after the mock */
.frame.is-active .feat-card:nth-child(1) { animation: twFadeUp 0.5s cubic-bezier(0.16,1,0.3,1) both 0.45s; }
.frame.is-active .feat-card:nth-child(2) { animation: twFadeUp 0.5s cubic-bezier(0.16,1,0.3,1) both 0.55s; }
.frame.is-active .feat-card:nth-child(3) { animation: twFadeUp 0.5s cubic-bezier(0.16,1,0.3,1) both 0.65s; }
.frame.is-active .feat-card:nth-child(4) { animation: twFadeUp 0.5s cubic-bezier(0.16,1,0.3,1) both 0.75s; }
.frame.is-active .feat-card:nth-child(5) { animation: twFadeUp 0.5s cubic-bezier(0.16,1,0.3,1) both 0.85s; }

/* ── Final CTA frame ── */
.f-cta.frame.is-active h2 {
  animation: twFadeUp 0.70s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.06s;
}
.f-cta.frame.is-active .lede {
  animation: twFadeUp 0.65s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.22s;
}
.f-cta.frame.is-active .team {
  animation: twFadeUp 0.65s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.34s;
}
.f-cta.frame.is-active .btn-primary {
  animation: twFadeUp 0.6s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.50s;
}
.f-cta.frame.is-active .small {
  animation: twFadeIn 0.55s ease both;
  animation-delay: 0.70s;
}

/* Responsive */
@media (max-width: 1100px) {
  .agent { grid-template-columns: 1fr; gap: 28px; max-width: 700px; }
  .agent-left { max-width: 100%; }
  .iris-right { display: block; }
  .scrubber { display: none; }
  .frame { padding: 64px 24px 64px; }
  .hud-top { padding: 0 20px; height: 58px; }
  .chapter-label { left: 20px; bottom: 24px; }
  .scroll-hint { display: none; }
  .driver { height: 850vh; }
}

/* ── Floating WhatsApp button ── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.3);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,0.60), 0 2px 8px rgba(0,0,0,0.3);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@media (max-width: 860px) {
  .wa-float { bottom: 20px; right: 16px; width: 52px; height: 52px; }
  .wa-float svg { width: 26px; height: 26px; }
}
