/* ==========================================================================
   ELIAN — design tokens
   ========================================================================== */
:root {
  --bg: #050912;
  --ink: #f4f8fd;
  --ink-2: #c3d0e0;
  --ink-3: #8a9db6;

  --cyan-200: #a8e7ff;
  --cyan-300: #7fdcff;
  --cyan-400: #3cc4ff;
  --cyan-500: #15a7ff;
  --blue-600: #1a7ff2;
  --accent-grad: linear-gradient(100deg, #7fdcff 0%, #2bb8ff 42%, #1a7ff2 100%);
  --btn-grad: linear-gradient(135deg, #25b6ff 0%, #1b86f4 60%, #1a6fe6 100%);

  /* third accent: the warm light of the home. Rare on purpose — the next step, or what Eli just did */
  --warm: 255, 158, 94;
  --warm-ink: #07101f;
  --warm-grad: linear-gradient(135deg, #ffc08a 0%, #ff9e5e 52%, #f5854a 100%);

  --glass: rgba(8, 15, 29, 0.72);
  --glass-line: rgba(126, 206, 255, 0.24);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Montserrat", "Inter", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --nav-h: 88px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg, canvas, video { display: block; }

:focus-visible {
  outline: 2px solid var(--cyan-300);
  outline-offset: 3px;
  border-radius: 8px;
}

.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;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
              background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn svg { flex-shrink: 0; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  color: var(--warm-ink);
  background: var(--warm-grad);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .45) inset,
    0 10px 34px -8px rgba(var(--warm), .6),
    0 0 0 1px rgba(255, 196, 150, .3);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease-out);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .55) inset,
    0 18px 46px -10px rgba(var(--warm), .8),
    0 0 0 1px rgba(255, 196, 150, .5);
}
.btn--primary:hover::before { transform: translateX(120%); }

.btn--outline {
  height: 46px;
  padding: 0 22px;
  font-size: 14.5px;
  color: #fff;
  border: 1.5px solid rgba(60, 196, 255, .7);
  background: rgba(21, 167, 255, .07);
  box-shadow: 0 0 22px -8px rgba(60, 196, 255, .55), inset 0 0 14px -6px rgba(60, 196, 255, .5);
}
.btn--outline:hover {
  background: rgba(21, 167, 255, .16);
  border-color: var(--cyan-300);
  box-shadow: 0 0 30px -6px rgba(60, 196, 255, .75), inset 0 0 16px -6px rgba(60, 196, 255, .6);
}

.btn--lg { height: 60px; padding: 0 30px; font-size: 16px; }

/* play link — circle + two-line label */
.play-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-2);
  transition: color .3s var(--ease);
}
.play-link__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  padding-left: 3px;
  border: 1.5px solid rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease-out);
}
.play-link__ring::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan-400);
  opacity: 0;
}
.play-link:hover { color: #fff; }
.play-link:hover .play-link__ring {
  background: var(--cyan-500);
  border-color: var(--cyan-500);
  transform: scale(1.06);
}
.play-link:hover .play-link__ring::after { animation: ripple 1.4s var(--ease-out) infinite; }

@keyframes ripple {
  from { opacity: .8; transform: scale(1); }
  to { opacity: 0; transform: scale(1.7); }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
}
.nav.is-scrolled,
.nav.is-open {
  background: rgba(5, 9, 18, .72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-color: rgba(255, 255, 255, .07);
}

.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--nav-h);
  transition: height .4s var(--ease);
}
.nav.is-scrolled .nav__inner { height: 70px; }

.nav__logo { justify-self: start; color: #fff; padding: 6px 0; }
.logo { height: 22px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(26px, 3vw, 46px);
  font-size: 15px;
  font-weight: 500;
}
.nav__links a {
  position: relative;
  padding: 8px 0;
  color: rgba(226, 236, 248, .72);
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-grad);
  box-shadow: 0 0 12px rgba(60, 196, 255, .8);
  transform: scaleX(0);
  transition: transform .4s var(--ease-out);
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(.4); }
.nav__links a.is-active { color: #fff; }
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__cta { justify-self: end; }
/* past the hero, the way to get ELIAN stays in reach */
.nav.is-past .nav__cta {
  color: var(--warm-ink);
  border-color: transparent;
  background: var(--warm-grad);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 8px 24px -10px rgba(var(--warm), .75);
}
.nav.is-past .nav__cta:hover { filter: brightness(1.06); }

.nav__burger {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 25px; }
.nav.is-open .nav__burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ==========================================================================
   Hero — background stack
   ========================================================================== */
.hero {
  --mx: 0;
  --my: 0;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-h);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  transform: translate3d(calc(var(--mx) * -14px), calc(var(--my) * -10px), 0) scale(1.06);
  filter: brightness(.84) saturate(1.02);
  transition: filter 1.8s var(--ease);
  will-change: transform;
}

.hero__tint { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s var(--ease); pointer-events: none; }
.hero__tint--warm {
  background:
    radial-gradient(70% 60% at 38% 62%, rgba(255, 160, 70, .32), transparent 70%),
    radial-gradient(40% 40% at 80% 70%, rgba(255, 140, 60, .18), transparent 70%);
  mix-blend-mode: soft-light;
}
.hero__tint--cool {
  background: linear-gradient(180deg, rgba(8, 18, 60, .55), rgba(4, 8, 30, .35));
  mix-blend-mode: multiply;
}

.hero__spill {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 560px at var(--spill-x, 70%) var(--spill-y, 45%),
    rgba(40, 160, 255, .26) 0%, rgba(40, 160, 255, .09) 35%, transparent 70%);
  mix-blend-mode: screen;
  opacity: .85;
  transition: opacity 1.8s var(--ease);
  pointer-events: none;
}

.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 7, 15, .92) 0%, rgba(4, 7, 15, .78) 22%, rgba(4, 7, 15, .38) 42%, rgba(4, 7, 15, .05) 60%, rgba(4, 7, 15, .18) 100%),
    linear-gradient(180deg, rgba(4, 7, 15, .65) 0%, rgba(4, 7, 15, 0) 16%, rgba(4, 7, 15, 0) 58%, rgba(4, 7, 15, .72) 84%, rgba(5, 9, 18, 1) 100%);
}

.hero__grain {
  position: absolute;
  inset: -50%;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* scenes — the room reacts to what Eli does */
.hero[data-scene="light"] .hero__bg-img { filter: brightness(1.12) saturate(1.14); }
.hero[data-scene="light"] .hero__tint--warm { opacity: .55; }

.hero[data-scene="movie"] .hero__bg-img { filter: brightness(.56) saturate(.86); }
.hero[data-scene="movie"] .hero__tint--cool { opacity: 1; }
.hero[data-scene="movie"] .hero__spill { opacity: 1; }

.hero[data-scene="heat"] .hero__bg-img { filter: brightness(.96) saturate(1.16); }
.hero[data-scene="heat"] .hero__tint--warm { opacity: 1; }

/* the source <video> only feeds the canvas; kept rendered so iOS keeps decoding it */
.hero__video-src {
  position: absolute;
  width: 2px;
  height: 2px;
  opacity: .01;
  pointer-events: none;
  bottom: 0;
  left: 0;
}

/* ==========================================================================
   Hero — layout
   ========================================================================== */
.hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: clamp(18px, 3vh, 34px);
}

.hero__grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: center;
  column-gap: clamp(16px, 2.4vw, 40px);
}

/* ---- copy ---- */
.hero__content { position: relative; z-index: 2; padding-block: 2vh; }

.hero__eyebrow,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(214, 228, 244, .78);
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 10px var(--cyan-400);
  flex-shrink: 0;
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--cyan-400);
  animation: livePing 2s var(--ease-out) infinite;
}
@keyframes livePing {
  from { transform: scale(1); opacity: .7; }
  to { transform: scale(3.2); opacity: 0; }
}

.hero__title {
  margin: 0 0 26px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(46px, 5.4vw, 86px);
  line-height: .98;
  letter-spacing: -.028em;
  color: #fff;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding: .04em .1em .14em 0;
  margin: -.04em 0 -.14em;
}
.hero__title .line > span { display: inline-block; }
.js .hero__title .line > span {
  transform: translate3d(0, 110%, 0);
  animation: lineUp 1.1s var(--ease-out) var(--d, 0s) forwards;
}
.accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes lineUp { to { transform: translate3d(0, 0, 0); } }

.hero__lead {
  max-width: 31em;
  margin: 0 0 38px;
  font-size: clamp(16px, 1.25vw, 18.5px);
  line-height: 1.65;
  color: var(--ink-2);
}
.hero__lead strong { color: #fff; font-weight: 600; }

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 30px;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-3);
}
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof svg { color: var(--cyan-400); }

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  animation: fadeUp .9s var(--ease-out) var(--d, 0s) forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ==========================================================================
   Hero — stage (character + conversation)
   ========================================================================== */
.hero__stage { position: relative; z-index: 1; }

.stage {
  width: min(86%, 720px, calc((100vh - 370px) * 1.25));
  width: min(86%, 720px, calc((100svh - 370px) * 1.25));
  min-width: 360px;
  transform: translate3d(calc(var(--mx) * 12px), calc(var(--my) * 9px), 0);
}

.stage__visual { position: relative; }
.stage__char { position: relative; aspect-ratio: 5 / 4; }

.stage__fly { position: absolute; inset: 0; }
.js .stage__fly { opacity: 0; }
.hero.is-entered .stage__fly { animation: flyIn 2.1s var(--ease-out) forwards; }

@keyframes flyIn {
  0% {
    opacity: 0;
    transform: translate3d(42vw, -16vh, 0) scale(.4) rotate(18deg);
    filter: blur(10px) drop-shadow(0 0 40px rgba(60, 196, 255, .9));
  }
  30% { opacity: 1; }
  72% {
    transform: translate3d(-2%, 1.6%, 0) scale(1.02) rotate(-3deg);
    filter: blur(0) drop-shadow(0 0 18px rgba(60, 196, 255, .35));
  }
  100% {
    opacity: 1;
    transform: none;
    filter: blur(0) drop-shadow(0 0 0 rgba(60, 196, 255, 0));
  }
}

.stage__float { position: absolute; inset: 0; }
.hero.is-idle .stage__float { animation: float 6.5s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

.stage__poster,
.stage__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* soft edges: the source clip crops the head tip in some frames */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 9%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 9%, #000 90%, transparent 100%);
  mask-composite: intersect;
}
.stage__canvas { opacity: 0; transition: opacity .35s var(--ease); }
.stage__visual.has-video .stage__canvas { opacity: 1; }
.stage__visual.has-video .stage__poster { opacity: 0; transition: opacity .35s var(--ease) .1s; }

.stage__halo {
  position: absolute;
  left: 62%;
  top: 48%;
  width: 78%;
  height: 78%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 170, 255, .34) 0%, rgba(43, 170, 255, .12) 38%, transparent 68%);
  filter: blur(6px);
  animation: haloBreath 5s ease-in-out infinite;
}
@keyframes haloBreath {
  0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(.96); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

.stage__pulse {
  position: absolute;
  left: 62%;
  top: 70%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(127, 220, 255, .8);
  box-shadow: 0 0 24px rgba(60, 196, 255, .6), inset 0 0 24px rgba(60, 196, 255, .35);
  transform: translate(-50%, -50%) scale(.4);
  opacity: 0;
  pointer-events: none;
}
.stage__pulse.is-on { animation: pulseOut 1.6s var(--ease-out); }
@keyframes pulseOut {
  0% { opacity: .9; transform: translate(-50%, -50%) scale(.4); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); }
}

/* floating light motes */
.stage__particles { position: absolute; inset: -6% -4%; pointer-events: none; }
.stage__particles i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--cyan-200);
  box-shadow: 0 0 8px var(--cyan-400);
  opacity: 0;
  animation: mote var(--t) ease-in-out var(--delay) infinite;
}
@keyframes mote {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  25% { opacity: .85; }
  100% { opacity: 0; transform: translate3d(var(--dx), -70px, 0); }
}

/* ---- conversation bubbles ---- */
.stage__chat { display: contents; }

.bubble {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: max-content;
  max-width: 252px;
  padding: 13px 18px 14px 13px;
  border-radius: 18px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.42;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(16, 28, 52, .82), rgba(8, 15, 30, .86));
  border: 1px solid var(--glass-line);
  box-shadow:
    0 24px 50px -20px rgba(0, 0, 0, .8),
    0 0 30px -12px rgba(60, 196, 255, .35),
    inset 0 1px 0 rgba(255, 255, 255, .07);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  opacity: 0;
  transform: translate3d(calc(var(--mx) * 8px), calc(12px + var(--my) * 6px), 0) scale(.92);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
  pointer-events: none;
}
.bubble.is-visible {
  opacity: 1;
  transform: translate3d(calc(var(--mx) * 8px), calc(var(--my) * 6px), 0) scale(1);
}
.bubble::after {
  content: "";
  position: absolute;
  bottom: -7px;
  width: 13px;
  height: 13px;
  background: rgba(8, 15, 30, .9);
  border-right: 1px solid var(--glass-line);
  border-bottom: 1px solid var(--glass-line);
  transform: rotate(45deg);
  /* only the half outside the bubble, so it doesn't darken the bubble body */
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.bubble--ask { left: -2%; top: 1%; transform-origin: 85% 100%; }
.bubble--ask::after { right: 34px; }

.bubble--answer { left: 82%; top: 9%; transform-origin: 10% 100%; border-color: rgba(60, 196, 255, .4); }
.bubble--answer::after { left: 26px; border-color: rgba(60, 196, 255, .4); }

.bubble__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--cyan-300);
  background: rgba(60, 196, 255, .1);
  border: 1px solid rgba(60, 196, 255, .28);
}
.bubble__icon--mic { border-radius: 50%; }
.bubble__icon svg { width: 17px; height: 17px; }

.bubble__body { display: flex; flex-direction: column; min-width: 0; padding-top: 5px; }
.bubble__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--cyan-300);
  margin: -1px 0 3px;
}

.bubble__text { min-height: 1.42em; }
.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -.16em;
  background: var(--cyan-300);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* listening waveform */
.wave { display: none; align-items: center; gap: 3px; height: 21px; }
.bubble.is-listening .wave { display: inline-flex; }
.bubble.is-listening .bubble__text { display: none; }
.wave i {
  width: 3px;
  height: 100%;
  border-radius: 3px;
  background: var(--cyan-400);
  transform-origin: center;
  animation: wave 1s ease-in-out infinite;
}
.wave i:nth-child(2) { animation-delay: -.8s; }
.wave i:nth-child(3) { animation-delay: -.55s; }
.wave i:nth-child(4) { animation-delay: -.3s; }
.wave i:nth-child(5) { animation-delay: -.15s; }
@keyframes wave {
  0%, 100% { transform: scaleY(.25); }
  50% { transform: scaleY(1); }
}

/* device meter inside Eli's answer */
.meter {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .5s var(--ease-out), opacity .4s var(--ease), margin .5s var(--ease-out);
  margin-top: 0;
}
.meter > * { overflow: hidden; }
.meter.is-on { grid-template-rows: 1fr; opacity: 1; margin-top: 10px; }
.meter__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
}
.meter__row b { color: #fff; font-weight: 600; }
.meter__track {
  display: block;
  height: 4px;
  margin-top: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .1);
}
.meter__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--warm-grad);
  box-shadow: 0 0 10px rgba(var(--warm), .7);
  transition: width 1.3s var(--ease-out);
}

/* ---- "try a command" chips ---- */
.try {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: clamp(4px, 1.2vh, 14px);
  position: relative;
  z-index: 3;
}
.try__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.try__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 17px 0 14px;
  border-radius: 999px;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: rgba(9, 16, 31, .6);
  border: 1px solid rgba(255, 255, 255, .13);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease-out);
}
.chip svg { color: var(--cyan-300); }
.chip:hover { color: #fff; border-color: rgba(60, 196, 255, .5); transform: translateY(-2px); }
.chip.is-active {
  color: #fff;
  border-color: rgba(60, 196, 255, .75);
  background: rgba(21, 150, 255, .18);
  box-shadow: 0 0 0 4px rgba(60, 196, 255, .1), 0 10px 26px -10px rgba(60, 196, 255, .7);
}
.chip::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan-300);
  transform: scaleX(0);
  transform-origin: left;
  opacity: .8;
}
.chip.is-timing::after { animation: chipTimer var(--hold, 5s) linear forwards; }
@keyframes chipTimer { to { transform: scaleX(1); } }

/* ==========================================================================
   Hero — feature row
   ========================================================================== */
.hero__features {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: start;
  column-gap: clamp(12px, 2vw, 32px);
  margin-top: clamp(14px, 3vh, 36px);
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 6px 4px;
  border-radius: 16px;
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #d8f3ff;
  background: radial-gradient(circle at 50% 35%, rgba(60, 196, 255, .2), rgba(8, 15, 30, .65) 70%);
  border: 1.5px solid rgba(60, 196, 255, .55);
  box-shadow: 0 0 26px -6px rgba(60, 196, 255, .55), inset 0 0 14px rgba(60, 196, 255, .18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s var(--ease), color .3s var(--ease);
}
.feature__label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.38;
  color: rgba(238, 244, 251, .92);
  transition: color .3s var(--ease);
}
.feature:hover .feature__icon {
  transform: translateY(-4px);
  color: #fff;
  border-color: var(--cyan-300);
  box-shadow: 0 0 40px -4px rgba(60, 196, 255, .85), inset 0 0 18px rgba(60, 196, 255, .3);
}
.feature:hover .feature__label { color: #fff; }

.scroll-cue {
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 4px 10px;
  color: var(--ink-3);
  transition: color .3s var(--ease);
}
.scroll-cue:hover { color: #fff; }
.scroll-cue__mouse {
  display: flex;
  justify-content: center;
  width: 24px;
  height: 38px;
  padding-top: 7px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, .34);
}
.scroll-cue__mouse i {
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--cyan-300);
  animation: scrollDot 1.9s var(--ease) infinite;
}
.scroll-cue__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-right: -.3em;
}
.scroll-cue svg { animation: nudge 1.9s var(--ease) infinite; }
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateY(12px); }
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .stage { width: min(84%, 620px, calc((100svh - 370px) * 1.25)); min-width: 320px; }
  .bubble { max-width: 214px; font-size: 13.5px; }
  .bubble--answer { left: 76%; }
  .hero__proof { gap: 8px 18px; }
}

/* short laptop screens — keep the whole hero within one viewport */
@media (min-width: 901px) and (max-height: 820px) {
  :root { --nav-h: 76px; }
  .hero__content { padding-block: 0; }
  .hero__eyebrow { margin-bottom: 16px; }
  .hero__title { font-size: clamp(40px, 8vh, 72px); margin-bottom: 18px; }
  .hero__lead { font-size: 16px; margin-bottom: 24px; }
  .hero__proof { margin-top: 20px; }
  .btn--lg { height: 54px; }
  .play-link__ring { width: 50px; height: 50px; }
  .hero__features { margin-top: 6px; }
  .feature { gap: 9px; }
  .feature__icon { width: 48px; height: 48px; }
  .feature__label { font-size: 14px; }
}

@media (max-width: 1024px) {
  .nav__links { gap: 24px; font-size: 14px; }
  .nav__cta { padding: 0 16px; font-size: 13.5px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 68px; }

  .nav__burger { display: block; }
  .nav__inner { grid-template-columns: 1fr auto auto; column-gap: 8px; }
  .nav__cta { height: 38px; padding: 0 15px; font-size: 13px; }
  .nav__cta svg { display: none; }
  .nav.is-scrolled .nav__inner { height: var(--nav-h); }

  .nav__links {
    position: fixed;
    top: calc(var(--nav-h) + 8px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    font-size: 17px;
    border-radius: 20px;
    background: rgba(8, 14, 27, .94);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(.98);
    transform-origin: top center;
    transition: opacity .3s var(--ease), transform .4s var(--ease-out), visibility 0s linear .4s;
  }
  .nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .3s var(--ease), transform .4s var(--ease-out), visibility 0s;
  }
  .nav__links a { padding: 14px 14px; border-radius: 12px; }
  .nav__links a:hover { background: rgba(255, 255, 255, .04); }
  .nav__links a::after { left: 14px; right: auto; width: 18px; bottom: 8px; }

  .hero { padding-top: calc(var(--nav-h) + 4px); }
  .hero__bg-img { object-position: 64% 50%; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(4, 7, 15, .7) 0%, rgba(4, 7, 15, .2) 14%, rgba(4, 7, 15, .35) 40%, rgba(4, 7, 15, .88) 62%, rgba(5, 9, 18, 1) 100%);
  }

  /* mobile order: headline → Eli → supporting copy & CTAs */
  .hero__grid { grid-template-columns: 1fr; }
  .hero__content { display: contents; }
  .hero__eyebrow { order: 1; justify-self: start; margin-top: 12px; }
  .hero__title { order: 2; }
  .hero__stage { order: 3; margin: 0 0 30px; }
  .hero__lead { order: 4; }
  .hero__actions { order: 5; }
  .hero__proof { order: 6; }
  .stage { width: min(100%, 440px); min-width: 0; margin-inline: auto; }

  .stage__chat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 168px;
    margin-top: -8%;
    position: relative;
    z-index: 3;
  }
  .bubble {
    position: relative;
    left: auto;
    top: auto;
    max-width: 86%;
    font-size: 13.5px;
    padding: 11px 15px 12px 11px;
  }
  .bubble::after { display: none; }
  .bubble--ask { align-self: flex-end; }
  .bubble--answer { align-self: flex-start; }
  .bubble__icon { width: 28px; height: 28px; border-radius: 9px; }

  .hero__eyebrow { font-size: 11px; letter-spacing: .2em; margin-bottom: 18px; }
  .hero__title { font-size: clamp(42px, 12vw, 64px); margin-bottom: 20px; }
  .hero__lead { margin-bottom: 30px; }
  .hero__proof { margin-top: 26px; }

  .hero__features {
    grid-template-columns: 1fr 1fr;
    row-gap: 26px;
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
  .scroll-cue { display: none; }
  .feature__label { font-size: 14px; }
}

@media (max-width: 520px) {
  .try__chips {
    align-self: stretch;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding: 6px var(--gutter) 12px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
    mask-image: linear-gradient(90deg, #000 82%, transparent);
  }
  .try__chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; scroll-snap-align: start; scroll-margin-inline: var(--gutter); }
}

@media (max-width: 420px) {
  .hero__actions { gap: 18px 22px; }
  .btn--lg { height: 56px; padding: 0 24px; font-size: 15px; }
  .play-link__ring { width: 50px; height: 50px; }
  .chip { height: 38px; padding: 0 14px 0 12px; font-size: 13px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal,
  .js .hero__title .line > span { animation: none; opacity: 1; transform: none; }
  .js .stage__fly { opacity: 1; }
  .hero.is-entered .stage__fly,
  .hero.is-idle .stage__float,
  .stage__halo,
  .live-dot::after,
  .scroll-cue__mouse i,
  .scroll-cue svg,
  .wave i { animation: none; }
  .stage__particles { display: none; }
  .hero__bg-img,
  .stage,
  .bubble { transform: none; }
}

/* ==========================================================================
   Hero → companion handoff
   ========================================================================== */
.stage__float,
.stage__particles,
.try > * { transition: opacity .2s var(--ease); }

.hero.is-away .stage__float,
.hero.is-away .stage__particles,
.hero.is-away .bubble,
.hero.is-away .try > * { opacity: 0; pointer-events: none; }

/* ==========================================================================
   Eli — scroll companion
   ========================================================================== */
.eli {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s var(--ease), visibility 0s linear .2s;
  will-change: transform;
}
.eli.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity .2s var(--ease), visibility 0s;
}

/* figure is laid out at 640×512 and scaled from JS (compositor-only) */
.eli__fig {
  position: absolute;
  left: 0;
  top: 0;
  width: 640px;
  height: 512px;
  will-change: transform;
}
.eli__fig::before {
  content: "";
  position: absolute;
  left: 63%;
  top: 50%;
  width: 72%;
  height: 72%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  /* tinted by the director to match whatever Eli is showing */
  background: radial-gradient(circle, rgba(var(--eli-glow, 43, 170, 255), .38) 0%, rgba(var(--eli-glow, 43, 170, 255), .12) 40%, transparent 68%);
}
.eli__float,
.eli__hop { position: absolute; inset: 0; }
.eli.is-docked .eli__float { animation: eliFloat 5.5s ease-in-out infinite; }
.eli__hop.is-hop { animation: eliHop .75s var(--ease-out); }
.eli__hop img {
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 9%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 9%, #000 90%, transparent 100%);
  mask-composite: intersect;
}
@keyframes eliFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -22px, 0); }
}
@keyframes eliHop {
  0% { transform: none; }
  35% { transform: translate3d(0, -46px, 0) scale(1.05) rotate(-4deg); }
  100% { transform: none; }
}

.eli__say { position: absolute; left: 0; top: 0; will-change: transform; }
.eli__say span {
  position: relative;
  display: block;
  white-space: nowrap;
  padding: 9px 15px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, rgba(18, 32, 58, .94), rgba(9, 16, 31, .94));
  border: 1px solid rgba(60, 196, 255, .4);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7), 0 0 24px -10px rgba(60, 196, 255, .6);
  opacity: 0;
  transform: translateY(8px) scale(.9);
  transform-origin: 50% 100%;
  transition: opacity .35s var(--ease), transform .45s var(--ease-out);
}
.eli__say span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  background: rgb(9, 16, 31);
  border-right: 1px solid rgba(60, 196, 255, .4);
  border-bottom: 1px solid rgba(60, 196, 255, .4);
  transform: rotate(45deg);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.eli__say.is-on span { opacity: 1; transform: none; }
