:root{
  --berry:#c3195d;--berry-deep:#8e1346;--juice:#ff7a9c;--cream:#f7f5f8;--paper:#fff;--ink:#2a1020;--ink-soft:#6b4556;
  --navy:#1e3a8a;--sun:#ffb93b;--mint:#24c2a0;
}
*{box-sizing:border-box;margin:0;padding:0}
body{background:var(--cream);font-family:Nunito,system-ui,sans-serif;color:var(--ink)}

/* ---------- stage: 16:9, or 9:16 under html.tall ---------- */
.stage{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;container-type:inline-size;cursor:pointer;user-select:none;
  -webkit-tap-highlight-color:transparent;background:radial-gradient(circle at 85% 15%,#ffe3ec 0,transparent 40%),radial-gradient(circle at 10% 90%,#e7ecf9 0,transparent 45%),var(--cream)}
.tall .stage{aspect-ratio:9/16}
.stage.paused *,.stage.paused *::before,.stage.paused *::after{animation-play-state:paused!important}
/* the panel's fade-in still finishes while teed up or paused, so its text is never left invisible */
.stage.paused .panel > *{animation-play-state:running!important}
.grid{position:absolute;inset:0;background-image:linear-gradient(rgba(42,16,32,.045) .1cqw,transparent .1cqw),linear-gradient(90deg,rgba(42,16,32,.045) .1cqw,transparent .1cqw);
  background-size:6cqw 6cqw;mask-image:radial-gradient(ellipse at 35% 50%,#000 30%,transparent 75%)}

/* ---------- the AI core: two morphing blobs behind frosted glass ---------- */
.orbit{position:absolute;left:var(--cx);top:var(--cy);width:var(--core);height:var(--core);transform:translate(-50%,-50%)}
.stage{--cx:32cqw;--cy:28.1cqw;--core:22cqw}
.tall .stage{--cx:50cqw;--cy:62cqw;--core:34cqw}
.blob{position:absolute;inset:0;border-radius:42% 58% 63% 37% / 41% 44% 56% 59%;filter:blur(.2cqw);opacity:.95}
.b1{background:linear-gradient(135deg,#3b3f8f,var(--berry) 55%,var(--sun));animation:morph 9s ease-in-out infinite,spin 24s linear infinite}
.b2{inset:6%;background:linear-gradient(315deg,var(--navy),var(--juice) 60%,#ffd581);opacity:.75;animation:morph 7s ease-in-out -3s infinite reverse,spin 18s linear infinite reverse}
@keyframes morph{50%{border-radius:58% 42% 38% 62% / 55% 61% 39% 45%}}
@keyframes spin{to{transform:rotate(360deg)}}
.glass{position:absolute;inset:9%;border-radius:50%;background:rgba(255,255,255,.18);backdrop-filter:blur(1.2cqw);border:.15cqw solid rgba(255,255,255,.55);
  box-shadow:inset 0 0 3cqw rgba(255,255,255,.35)}
.core{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.6em;color:#fff;font-size:1.25cqw}
.tall .core{font-size:2.4cqw}
.core img{width:42%;filter:drop-shadow(0 .8cqw 1cqw rgba(0,0,0,.25));animation:float 3s ease-in-out infinite}
.core b{font-weight:900;letter-spacing:.04em;text-shadow:0 .2cqw .6cqw rgba(0,0,0,.3)}
@keyframes float{50%{transform:translateY(-.6cqw)}}

/* ---------- feature chips, placed round the core by the script ---------- */
.chip{position:absolute;display:flex;align-items:center;gap:.7em;padding:.55em 1em .55em .55em;border-radius:1em;background:var(--paper);
  font-weight:900;font-size:1.32cqw;white-space:nowrap;box-shadow:0 .25cqw 0 rgba(43,16,32,.08),0 .8cqw 2cqw rgba(43,16,32,.1);
  transform:translate(-50%,-50%) scale(.4);opacity:0;transition:transform .45s cubic-bezier(.2,1.5,.4,1),opacity .3s,box-shadow .25s,background .25s,color .25s}
.tall .chip{font-size:2.55cqw}
.chip.in{opacity:1;transform:translate(-50%,-50%)}
.chip .ic{width:2.1em;height:2.1em;border-radius:.65em;display:grid;place-items:center;font-size:1em;background:var(--c);color:#fff;flex:none;overflow:hidden}
.chip .ic img{width:86%;height:86%;object-fit:contain}
.chip .ic svg{width:62%;height:62%}
.chip small{font-family:"JetBrains Mono",monospace;font-size:.55em;font-weight:700;color:var(--berry);background:#fde6ef;border-radius:.6em;padding:.15em .5em}
.chip small.t-new{color:#fff;background:var(--mint)}
.soon.t-new{background:var(--mint)}
.chip.dim{opacity:.55}
.chip.on{background:var(--c);color:#fff;transform:translate(-50%,-50%) scale(1.12);box-shadow:0 .4cqw 0 rgba(0,0,0,.15),0 1cqw 2.4cqw color-mix(in srgb,var(--c) 45%,transparent);z-index:3}
.chip.on .ic{background:#fff;color:var(--c)}
.chip.on small{background:rgba(255,255,255,.25);color:#fff}
.chip.press{transform:translate(-50%,-50%) scale(.94)}
.chip.lit{box-shadow:0 0 0 .25cqw var(--c),0 .8cqw 2cqw rgba(43,16,32,.1)}

/* ---------- the explanation panel ---------- */
.panel{position:absolute;left:63cqw;right:4cqw;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:1.1cqw}
.tall .panel{left:7cqw;right:7cqw;top:auto;bottom:9cqw;transform:none;gap:2.2cqw;min-height:44cqw;justify-content:flex-end}
.panel > *{animation:rise .5s cubic-bezier(.2,1.2,.4,1) both}
.panel > :nth-child(2){animation-delay:.06s}.panel > :nth-child(3){animation-delay:.12s}.panel > :nth-child(4){animation-delay:.18s}
@keyframes rise{from{transform:translateY(2.4cqw);opacity:0}to{transform:none;opacity:1}}
.kick{font-family:"JetBrains Mono",monospace;font-weight:700;font-size:1.2cqw;letter-spacing:.25cqw;text-transform:uppercase;color:var(--berry)}
.tall .kick{font-size:2.4cqw}
.ph{display:flex;align-items:center;gap:1.2cqw}
.ph .ic{width:5.6cqw;height:5.6cqw;border-radius:1.6cqw;display:grid;place-items:center;background:var(--c);color:#fff;font-size:3cqw;flex:none;box-shadow:0 .45cqw 0 rgba(0,0,0,.15);overflow:hidden}
.ph .ic img{width:84%;height:84%;object-fit:contain}.ph .ic svg{width:58%;height:58%}
.tall .ph .ic{width:11cqw;height:11cqw;border-radius:3cqw;font-size:6cqw}
.h{font-weight:900;font-size:3.5cqw;line-height:1.02;letter-spacing:-.1cqw}
.tall .h{font-size:7.2cqw}
.p{font-weight:700;font-size:1.75cqw;line-height:1.35;color:var(--ink-soft)}
.tall .p{font-size:3.6cqw}
.soon{align-self:flex-start;font-family:"JetBrains Mono",monospace;font-weight:700;font-size:1.05cqw;letter-spacing:.15cqw;color:#fff;background:var(--berry);border-radius:99cqw;padding:.4cqw 1.2cqw}
.tall .soon{font-size:2.2cqw;padding:.8cqw 2.4cqw}
.more{align-self:flex-start;display:inline-flex;align-items:center;margin-top:.4cqw;background:var(--berry);color:#fff;font-weight:900;font-size:1.5cqw;border-radius:99cqw;padding:.8cqw 2.2cqw;box-shadow:0 .45cqw 0 var(--berry-deep);text-decoration:none;transition:transform .15s,filter .15s}
.more:hover{transform:translateY(-.1cqw);filter:brightness(1.08)}
.more:focus-visible{outline:.25cqw solid var(--sun);outline-offset:.3cqw}
.tall .more{font-size:3.2cqw;padding:1.8cqw 4.4cqw}
.hl{background:linear-gradient(transparent 62%,rgba(255,185,59,.75) 62%);padding:0 .3em}
.cta{align-self:flex-start;display:inline-flex;background:var(--berry);color:#fff;font-weight:900;font-size:1.6cqw;border-radius:99cqw;padding:1cqw 2.6cqw;
  box-shadow:0 .5cqw 0 var(--berry-deep);text-decoration:none}
.tall .cta{font-size:3.4cqw;padding:2cqw 5cqw}

/* ---------- cursor ---------- */
.cursor{position:absolute;left:0;top:0;width:2.4cqw;height:2.4cqw;z-index:6;pointer-events:none;opacity:0;transition:opacity .3s;filter:drop-shadow(0 .3cqw .4cqw rgba(0,0,0,.3))}
.tall .cursor{width:5cqw;height:5cqw}
.cursor.show{opacity:1}
.cursor svg{width:100%;height:100%;display:block}
.ripple{position:absolute;left:12%;top:6%;width:0;height:0}
.ripple::after{content:'';position:absolute;left:-2cqw;top:-2cqw;width:4cqw;height:4cqw;border-radius:50%;border:.3cqw solid var(--berry);opacity:0}
.tall .ripple::after{left:-4cqw;top:-4cqw;width:8cqw;height:8cqw;border-width:.6cqw}
.ripple.go::after{animation:ring .5s ease-out}
@keyframes ring{from{transform:scale(.2);opacity:1}to{transform:scale(1.3);opacity:0}}

/* ---------- controls (same as the other hero videos) ---------- */
.progress{position:absolute;left:0;bottom:0;height:.5cqw;background:var(--sun);width:0;z-index:7}
.ctrl{position:absolute;right:2cqw;bottom:2cqw;z-index:8;border:0;border-radius:99cqw;background:rgba(42,16,32,.75);color:#fff;
  font:800 1.4cqw Nunito,sans-serif;padding:.8cqw 1.8cqw;cursor:pointer;opacity:0;transition:opacity .3s}
.tall .ctrl{font-size:2.8cqw;padding:1.6cqw 3.6cqw}
.stage:hover .ctrl,.stage.ended .ctrl,.stage.paused .ctrl,.stage.idle .ctrl{opacity:1}
.ctrl:focus-visible{opacity:1;outline:.3cqw solid var(--sun)}

/* ---------- ?interactive: the website section ---------- */
.interactive .stage{cursor:default}
.interactive .chip{cursor:pointer;transition:left .65s cubic-bezier(.45,0,.2,1),top .65s cubic-bezier(.45,0,.2,1),transform .3s cubic-bezier(.2,1.5,.4,1),opacity .3s,box-shadow .25s,background .25s,color .25s}
/* hover: the chip under the pointer grows and takes a border in its own colour, so it's clear which one a click will open */
.interactive .chip:hover{transform:translate(-50%,-50%) scale(1.18);z-index:4;box-shadow:0 0 0 .25cqw var(--c),0 .4cqw 0 rgba(43,16,32,.1),0 1.2cqw 2.6cqw rgba(43,16,32,.18)}
.interactive .chip.on:hover{transform:translate(-50%,-50%) scale(1.22)}
.interactive .chip:focus-visible{outline:.25cqw solid var(--berry);outline-offset:.3cqw}
.interactive .progress,.interactive .ctrl,.interactive .cursor{display:none}

@media (prefers-reduced-motion:reduce){
  .blob,.core img{animation:none}
  .panel > *{animation:none}
  .chip{transition:none}
}
