/* ═══════════════════════════════════════════════════════════════════
   PiP Pro — pill hero experience (LOCAL PREVIEW, not deployed).
   Extracted from pill-hero-sample.html so index.html carries only a
   small diff. Pairs with pill-hero.js and the hero markup block.
   Assumes index.html's :root tokens (--cyan, --magenta, --text, ...);
   adds only the welcome-float tokens the copied CSS needs.
   ═══════════════════════════════════════════════════════════════════ */
:root{--mut:rgba(255,255,255,0.52);--faint:rgba(255,255,255,0.30);--hair:rgba(255,255,255,0.09);--thread:linear-gradient(90deg,var(--cyan),var(--magenta));--ease:cubic-bezier(.16,1,.3,1);--disp:"Segoe UI Variable Display","Segoe UI",system-ui,-apple-system,sans-serif;--body:"Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,sans-serif}

/* The screenshot card gets a little extra width (deliberate rebalance),
   but never more than the VIEWPORT HEIGHT allows. The mock is a
   1024x640 canvas (1.6:1) where the old hero player was 16:9, so a
   width that used to fit now runs ~90px taller — on a short viewport
   (laptop + Windows display scaling) that pushed the hero past the
   fold. Capping by height keeps the whole hero on one screen without
   the visitor having to zoom out. 1.6 = 1024/640. */
.hero-inner{grid-template-columns:1fr 1.18fr;max-width:1340px}
.shot-frame{max-width:min(100%, calc((100vh - 300px) * 1.6));margin-left:auto}
/* Short viewports: give the hero back some room by trimming its own
   generous padding before shrinking the card any further. */
@media (max-height:860px){
  .hero{padding-top:104px;padding-bottom:64px}
  .shot-frame{max-width:min(100%, calc((100vh - 220px) * 1.6))}
}
@media (max-height:700px){
  .hero{padding-top:92px;padding-bottom:48px}
  .shot-frame{max-width:min(100%, calc((100vh - 180px) * 1.6))}
}

/* ── The framed "YouTube screenshot" card ─────────────────────────── */
.shot-frame{width:100%;border-radius:16px;overflow:hidden;background:var(--dark-surface);border:1px solid var(--border);box-shadow:0 4px 8px rgba(0,0,0,0.1),0 16px 32px rgba(0,0,0,0.2),0 48px 80px rgba(0,0,0,0.35);position:relative}
.shot-frame::before{content:'';position:absolute;top:0;left:40px;right:40px;height:1.5px;background:linear-gradient(90deg,transparent,var(--cyan),transparent);opacity:0.4;z-index:5;pointer-events:none}
.yt-shot{position:relative;width:100%;overflow:hidden}
.yt-canvas{position:absolute;top:0;left:0;width:1024px;height:640px;transform-origin:top left;font-family:'Roboto',Arial,sans-serif;background:#fff;user-select:none}
/* The visitor keeps their real cursor over the screenshot: the story
   has its own actor, and the pill is meant to be clicked. (The old
   cursor:none mirroring belonged to the previous hover-to-start flow.) */

/* Browser chrome */
.br-tabs{height:34px;background:#DEE1E6;display:flex;align-items:flex-end;padding:0 8px;gap:1px}
.br-tab{height:28px;display:flex;align-items:center;gap:7px;padding:0 12px;border-radius:8px 8px 0 0;font-size:11px;color:#3C4043;max-width:220px;min-width:0}
.br-tab.on{background:#fff}
.br-tab .fav{width:14px;height:14px;flex:none;border-radius:3px}
.br-tab span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.br-tab .x{margin-left:4px;color:#5F6368;font-size:12px;flex:none}
.br-newtab{width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:#5F6368;font-size:15px;margin-bottom:2px}
.br-bar{height:36px;background:#fff;display:flex;align-items:center;gap:10px;padding:0 12px;border-bottom:1px solid #DADCE0}
.br-nav{display:flex;gap:12px;color:#5F6368;font-size:14px}
.br-url{flex:1;height:26px;background:#F1F3F4;border-radius:100px;display:flex;align-items:center;padding:0 14px;font-size:12px;color:#202124;gap:8px}
.br-url .tune{color:#5F6368;font-size:11px}
.br-avatar{width:22px;height:22px;border-radius:50%;background:linear-gradient(135deg,#7B61FF,#FF2D78);color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}

/* YouTube masthead */
.yt-head{height:48px;display:flex;align-items:center;padding:0 16px;gap:18px;background:#fff}
.yt-burger{width:18px;display:flex;flex-direction:column;gap:4px}
.yt-burger i{height:1.6px;background:#0F0F0F;display:block;border-radius:2px}
.yt-logo{display:flex;align-items:center;gap:4px;flex:none}
.yt-logo .tv{width:27px;height:19px;background:#FF0000;border-radius:5px;position:relative}
.yt-logo .tv::after{content:'';position:absolute;left:10px;top:5px;border-left:8px solid #fff;border-top:4.5px solid transparent;border-bottom:4.5px solid transparent}
.yt-logo b{font-family:'Roboto',Arial,sans-serif;font-size:16px;letter-spacing:-0.8px;color:#0F0F0F;font-weight:700}
.yt-search{flex:1;max-width:420px;height:30px;margin:0 auto;display:flex}
.yt-search .box{flex:1;border:1px solid #C6C6C6;border-radius:100px 0 0 100px;display:flex;align-items:center;padding:0 14px;font-size:13px;color:#888}
.yt-search .go{width:48px;border:1px solid #C6C6C6;border-left:none;border-radius:0 100px 100px 0;background:#F8F8F8;display:flex;align-items:center;justify-content:center;color:#0F0F0F}
.yt-mic{width:30px;height:30px;border-radius:50%;background:#F2F2F2;display:flex;align-items:center;justify-content:center;color:#0F0F0F}
.yt-right{display:flex;align-items:center;gap:16px;margin-left:auto;color:#0F0F0F;font-size:13px}
.yt-ava{width:26px;height:26px;border-radius:50%;background:linear-gradient(135deg,#00B4D8,#7B61FF);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700}

/* Watch page body */
.yt-body{display:flex;padding:14px 18px 0;gap:16px;background:#fff}
.yt-main{width:646px;flex:none}
.yt-player{position:relative;width:646px;height:363px;border-radius:10px;overflow:hidden;background:#000}
.yt-poster{position:absolute;inset:0;background:#000 center/cover no-repeat;transition:opacity .4s ease}
.yt-playbtn{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:60px;height:42px;background:rgba(30,30,30,0.82);border-radius:11px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s}
.yt-playbtn::after{content:'';border-left:17px solid #fff;border-top:10px solid transparent;border-bottom:10px solid transparent;margin-left:3px}
.yt-playbtn:hover{background:#FF0000}
.yt-pipstate{position:absolute;inset:0;background:#000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#AAA;font-size:13px;opacity:0;pointer-events:none;transition:opacity .5s ease .15s}
.yt-pipstate svg{width:44px;height:44px;opacity:.85}
.yt-title{font-size:17px;font-weight:700;color:#0F0F0F;margin:10px 0 8px;font-family:'Roboto',Arial,sans-serif}
.yt-chrow{display:flex;align-items:center;gap:10px}
.yt-chava{width:34px;height:34px;border-radius:50%;background:#111;color:#F5D547;display:flex;align-items:center;justify-content:center;flex:none}
.yt-chmeta{line-height:1.25}
.yt-chname{font-size:13px;font-weight:600;color:#0F0F0F;display:flex;align-items:center;gap:4px}
.yt-chsubs{font-size:11px;color:#606060}
.yt-subbtn{background:#0F0F0F;color:#fff;font-size:12px;font-weight:600;border-radius:100px;padding:8px 15px;margin-left:8px}
.yt-actions{display:flex;gap:8px;margin-left:auto}
.yt-act{height:32px;background:#F2F2F2;border-radius:100px;display:flex;align-items:center;gap:6px;padding:0 13px;font-size:12px;font-weight:600;color:#0F0F0F}
.yt-rail{flex:1;display:flex;flex-direction:column;gap:10px;min-width:0}
.yt-chip-row{display:flex;gap:8px;margin-bottom:2px}
.yt-chip{background:#F2F2F2;border-radius:8px;padding:6px 11px;font-size:11.5px;font-weight:500;color:#0F0F0F;white-space:nowrap}
.yt-chip.on{background:#0F0F0F;color:#fff}
.yt-rel{display:flex;gap:8px}
.yt-relthumb{width:150px;height:84px;border-radius:8px;flex:none;position:relative;overflow:hidden}
.yt-relthumb .dur{position:absolute;right:4px;bottom:4px;background:rgba(0,0,0,0.8);color:#fff;font-size:10px;padding:1px 4px;border-radius:4px;font-weight:500}
.yt-relmeta{line-height:1.3;min-width:0}
.yt-reltitle{font-size:12.5px;font-weight:600;color:#0F0F0F;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.yt-relch{font-size:11px;color:#606060;margin-top:3px}

/* ── Act 2: the in-screenshot product movie ────────────────────────── */
.site-page{position:absolute;left:0;top:70px;right:0;bottom:0;z-index:4;background:#fff;opacity:0;pointer-events:none;transition:opacity .35s ease}
.site-page.show{opacity:1}
/* Each act-2 tab is a PREMIUM, original mock page — bold hero art
   rendered entirely in CSS (no third-party screenshots or hotlinked
   photos), so it renders anywhere including under a strict CSP, and
   there is no copyrighted content to license. Markup is injected once
   from pill-hero.js (buildSitePages) so both pages stay in sync.
   Brand NAMES are kept for recognizability; using real trademarks on a
   commercial page is a go-live legal-review item, not a copyright one. */
.site-page .sp-nav{height:54px;display:flex;align-items:center;gap:22px;padding:0 30px;font-size:12.5px;font-weight:600}
.site-page .sp-nav .sp-logo{font-weight:800;letter-spacing:0.5px;margin-right:6px}
.site-page .sp-nav .sp-grow{flex:1}
.site-page .sp-lines i{display:block;height:9px;border-radius:3px;background:rgba(255,255,255,0.09);margin-top:11px}
.site-page h3{margin:0}

/* 1 — flagship phone launch (dark, premium) */
.sp-samsung{background:#05060a;color:#e9ecf4}
.sp-samsung .sp-nav{background:#000;color:#cfd3dc}
.sp-samsung .sp-nav .sp-logo{font-family:Arial,sans-serif;font-size:19px;letter-spacing:2px;color:#fff}
.sp-samsung .sp-stage{position:relative;display:flex;align-items:center;gap:30px;padding:40px 56px;height:calc(100% - 54px);overflow:hidden}
.sp-samsung .sp-stage::before{content:'';position:absolute;right:2%;top:-30%;width:60%;height:160%;background:radial-gradient(closest-side,rgba(110,79,255,0.55),rgba(110,79,255,0) 70%);filter:blur(10px);pointer-events:none}
.sp-samsung .sp-copy{position:relative;z-index:2;max-width:52%}
.sp-samsung .sp-kicker{font-size:12px;font-weight:800;letter-spacing:0.16em;color:#9f8bff}
.sp-samsung .sp-copy h3{font-family:Arial,sans-serif;font-size:40px;font-weight:800;letter-spacing:-1px;margin:10px 0;line-height:1.02}
.sp-samsung .sp-copy p{font-size:15px;color:#aab0bf;line-height:1.5;max-width:32ch}
.sp-samsung .sp-chips{display:flex;gap:8px;margin:18px 0 22px}
.sp-samsung .sp-chips span{font-size:11.5px;font-weight:600;color:#d5d9e3;padding:6px 12px;border:1px solid rgba(255,255,255,0.16);border-radius:100px}
.sp-samsung .sp-cta{display:inline-block;background:#fff;color:#05060a;font-weight:700;font-size:13px;padding:11px 26px;border-radius:100px}
.sp-samsung .sp-phone{position:relative;z-index:2;width:176px;height:320px;flex:none;margin-left:auto;border-radius:34px;background:linear-gradient(150deg,#20242e,#0a0c12);padding:7px;box-shadow:0 34px 64px rgba(0,0,0,0.55),inset 0 0 0 1.5px rgba(255,255,255,0.08)}
.sp-samsung .sp-phone-screen{width:100%;height:100%;border-radius:28px;background:radial-gradient(120% 100% at 30% 8%,#7a4bff 0%,#b23cff 42%,#1a1030 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,0.06)}
.sp-samsung .sp-phone-cam{position:absolute;top:16px;left:50%;transform:translateX(-50%);width:44px;height:10px;border-radius:100px;background:#05060a}

/* 2 — automotive feature (dark editorial) */
.sp-bbc{background:#0c0e13;color:#e8ebf2}
.sp-bbc .sp-nav{background:#0c0e13;color:#c3c8d4;border-bottom:1px solid rgba(255,255,255,0.08)}
.sp-bbc .sp-nav .sp-logo{color:#fff;background:#c81414;padding:3px 8px;font-family:Arial,sans-serif;font-weight:800;letter-spacing:1px}
.sp-bbc .sp-article{padding:22px 52px}
.sp-bbc .sp-hero-img{position:relative;height:230px;border-radius:8px;overflow:hidden;box-shadow:0 22px 52px rgba(0,0,0,0.5);background:radial-gradient(120% 150% at 72% 18%,rgba(255,96,60,0.55),rgba(0,0,0,0) 55%),linear-gradient(120deg,#160707 0%,#3a0d0d 42%,#a31212 78%,#e0b24a 128%)}
.sp-bbc .sp-hero-img::before{content:'';position:absolute;top:-25%;left:6%;width:34%;height:160%;transform:skewX(-16deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,0.30),transparent);filter:blur(7px)}
.sp-bbc .sp-hero-img .cap{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(transparent,rgba(0,0,0,0.82));color:#d8dbe2;font-size:11.5px;padding:22px 16px 10px}
.sp-bbc .sp-body{padding-top:18px}
.sp-bbc .sp-cat{color:#ff6244;font-weight:800;font-size:12px;letter-spacing:0.08em}
.sp-bbc .sp-body h3{font-family:Georgia,'Times New Roman',serif;font-size:31px;line-height:1.1;font-weight:800;margin:8px 0 6px;color:#f2f4f8;max-width:22ch}
.sp-bbc .sp-meta{font-size:11.5px;color:#8b94a4;margin-bottom:8px}

/* 3 — sports live page */
.sp-sky{background:#070d1c;color:#e8edf6}
.sp-sky .sp-nav{background:#0b1e42;color:#a8b6d0}
.sp-sky .sp-nav .sp-logo{color:#fff;font-style:italic;font-weight:800}
.sp-sky .sp-nav .sp-logo em{background:#fff;color:#0b1e42;font-style:italic;font-weight:800;padding:1px 6px;margin-right:4px}
.sp-sky .sp-sport{padding:20px 52px}
.sp-sky .sp-hero-img{position:relative;height:220px;border-radius:8px;overflow:hidden;box-shadow:0 22px 52px rgba(0,0,0,0.5);background:radial-gradient(120% 130% at 50% 125%,rgba(233,14,16,0.5),rgba(0,0,0,0) 60%),linear-gradient(160deg,#0b1e42,#12459e 55%,#081026)}
.sp-sky .sp-hero-img::before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(114deg,rgba(255,255,255,0.05) 0 2px,transparent 2px 58px)}
.sp-sky .sp-live{position:absolute;top:12px;left:12px;background:#e90e10;color:#fff;font-size:11px;font-weight:800;padding:4px 10px;border-radius:4px;letter-spacing:0.06em;z-index:2}
.sp-sky .sp-score{position:absolute;left:12px;right:12px;bottom:12px;display:flex;align-items:center;gap:10px;background:rgba(3,8,20,0.62);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);padding:9px 14px;border-radius:8px;font-weight:800;z-index:2}
.sp-sky .sp-score span{font-size:13px;color:#cdd6e6}
.sp-sky .sp-score b{font-size:20px;color:#fff}
.sp-sky .sp-score i{color:#7a89a6;font-style:normal}
.sp-sky .sp-score .clock{margin-left:auto;font-size:12px;color:#9fb0cc;font-weight:600}
.sp-sky .sp-body{padding-top:16px}
.sp-sky .sp-tag{display:inline-block;background:#e90e10;color:#fff;font-size:11px;font-weight:800;padding:3px 10px;letter-spacing:0.5px}
.sp-sky .sp-body h3{font-size:26px;font-weight:800;margin:10px 0 8px;color:#f2f6ff;max-width:24ch;line-height:1.15}
#miniPipSlot{position:absolute;right:16px;bottom:84px;width:300px;height:169px;z-index:5;pointer-events:none}
/* The story cursor is page-fixed (anything inside the canvas would
   paint UNDER the travelling video); JS feeds it viewport coordinates
   and sizes it by the canvas scale so it still reads as in-mock. */
#mockCursor{position:fixed;z-index:10030;width:30px;height:30px;opacity:0;pointer-events:none;filter:drop-shadow(0 2px 5px rgba(0,0,0,0.55));transition:opacity .3s ease}
#vidWrap.mini{box-shadow:0 4px 14px rgba(0,0,0,0.4),0 14px 42px rgba(0,0,0,0.45)}

/* ── Guiding cue chips ─────────────────────────────────────────────── */
@keyframes cue-throb{0%,100%{transform:scale(1)}50%{transform:scale(1.16)}}
@keyframes cue-bob{0%,100%{transform:translate(-50%,0)}50%{transform:translate(-50%,-6px)}}
@keyframes cue-glow{0%,100%{box-shadow:0 0 0 3px rgba(255,255,255,0.9),0 0 22px rgba(0,229,255,0.65),0 0 40px rgba(255,45,120,0.35),0 6px 20px rgba(0,0,0,0.45)}50%{box-shadow:0 0 0 3px rgba(255,255,255,0.9),0 0 34px rgba(0,229,255,0.95),0 0 64px rgba(255,45,120,0.6),0 6px 20px rgba(0,0,0,0.45)}}
/* Cue chips are unused in the current flow (the movie teaches the pill
   on its own). Kept for the markup that still ships them — but with NO
   animation unless actually shown, so a permanently hidden element is
   not running an infinite keyframe for the life of the page. */
.v-chip{position:absolute;z-index:7;font-family:var(--body);font-size:14px;font-weight:800;letter-spacing:0.18em;color:#0A0C12;padding:10px 20px;border-radius:999px;border:2.5px solid transparent;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(135deg,var(--cyan),#7B61FF,var(--magenta)) border-box;pointer-events:none;opacity:0;transition:opacity .4s ease;white-space:nowrap}
.v-chip.show{opacity:1;animation:cue-glow 1.6s ease-in-out infinite}
#cueHover{left:50%;bottom:56px;transform:translate(-50%,0)}
#cueHover.show{animation:cue-glow 1.6s ease-in-out infinite,cue-bob 2.2s ease-in-out infinite}
#cuePill{right:24px;bottom:70px}
#cuePill.show{animation:cue-glow 1.6s ease-in-out infinite,cue-throb 1.4s ease-in-out infinite}
#cuePill::after{content:'';position:absolute;right:26px;bottom:-12px;border-left:10px solid transparent;border-right:10px solid transparent;border-top:12px solid #fff;filter:drop-shadow(0 3px 6px rgba(0,229,255,0.7))}

/* ── The PiP pill (verbatim visual language from the extension) ────── */
.pp-pill{display:inline-flex;align-items:center;gap:6px;font:600 12px/1.2 "Segoe UI",-apple-system,BlinkMacSystemFont,Arial,sans-serif;color:rgba(255,255,255,0.96);background:radial-gradient(135% 150% at 12% 10%,#04C4E6 0%,rgba(4,196,230,0) 50%),radial-gradient(150% 165% at 90% 92%,#F5236E 0%,rgba(245,35,110,0) 54%),radial-gradient(115% 130% at 52% 55%,#7B80BE 0%,rgba(123,128,190,0) 72%),#565B92;backdrop-filter:blur(14px);border:1.5px solid transparent;border-radius:999px;padding:8px 14px 8px 10px;cursor:pointer;text-shadow:0 1px 2px rgba(6,8,16,0.5);box-shadow:inset 0 0 0 1px rgba(255,255,255,0.18),0 0 16px rgba(0,229,255,0.22),0 4px 16px rgba(0,0,0,0.4);transition:opacity .25s ease,background .2s ease,transform .2s ease,filter .2s ease,box-shadow .2s ease}
.pp-pill svg{width:14px;height:14px;flex-shrink:0}
.pp-pill:hover{filter:brightness(1.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,0.24),0 0 24px rgba(0,229,255,0.4),0 4px 16px rgba(0,0,0,0.4);transform:translateY(-1px)}
.pp-pill:active{transform:translateY(0)}
.pp-pill.pressed{transform:scale(0.94)}
@keyframes pp-shimmer{0%{background-position:200% 0,0 0}100%{background-position:-200% 0,0 0}}
.pp-pill.opening{cursor:wait;background:linear-gradient(90deg,rgba(10,10,18,0.85) 0%,rgba(0,229,255,0.55) 30%,rgba(130,135,186,0.55) 50%,rgba(255,45,120,0.55) 70%,rgba(10,10,18,0.85) 100%) padding-box,linear-gradient(135deg,#00E5FF 0%,#8287BA 50%,#FF2D78 100%) border-box;background-size:220% 100%,auto;animation:pp-shimmer 1.6s linear infinite}
.pp-pill.opening:hover{transform:none}
.pp-pill.active{color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,0.26),0 0 24px rgba(0,229,255,0.45),0 4px 18px rgba(255,45,120,0.35)}
.shot-pill{position:absolute;right:14px;bottom:12px;font-size:15px;padding:10px 18px 10px 13px;gap:8px;z-index:6}
.shot-pill svg{width:18px;height:18px}
@keyframes pp-halo{0%,100%{box-shadow:inset 0 0 0 1px rgba(255,255,255,0.22),0 0 18px rgba(0,229,255,0.5),0 0 44px rgba(0,229,255,0.28),0 4px 16px rgba(0,0,0,0.45)}50%{box-shadow:inset 0 0 0 1px rgba(255,255,255,0.3),0 0 30px rgba(0,229,255,0.85),0 0 74px rgba(0,229,255,0.45),0 4px 16px rgba(0,0,0,0.45)}}
.shot-pill.hot{animation:pp-halo 1.8s ease-in-out infinite}
.shot-pill.opening,.shot-pill.active{animation:none}
.site-pill{position:fixed;right:16px;bottom:16px;z-index:9000;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .25s ease,visibility .25s,background .2s ease,transform .2s ease,filter .2s ease,box-shadow .2s ease}
.site-pill.visible{opacity:0.97;visibility:visible;pointer-events:auto}
.site-pill:hover{opacity:1}

/* ── In-screenshot cursor (mirrors the visitor's mouse pre-training) ── */
#shotCursor{position:fixed;top:0;left:0;z-index:10030;width:34px;height:34px;pointer-events:none;opacity:0;filter:drop-shadow(0 2px 6px rgba(0,0,0,0.65)) drop-shadow(0 0 10px rgba(0,229,255,0.95)) drop-shadow(0 0 26px rgba(0,229,255,0.6));transition:opacity .2s ease;will-change:transform}

/* ══ THE WELCOME PAGE'S FLOAT + CINEMA, VERBATIM ═══════════════════
   Copied from extension/welcome.html; deviations documented in
   pill-hero-sample.html's comments. */
.float-demo{position:fixed;z-index:10006;width:min(340px,calc(100vw - 32px));border-radius:16px;background:rgba(10,12,18,0.9);border:1px solid rgba(255,255,255,0.13);box-shadow:0 24px 60px rgba(0,0,0,0.62);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .45s var(--ease),visibility .45s}
.float-demo.show{opacity:1;visibility:visible;pointer-events:auto}
.fd-inner{position:relative;border-radius:15px;overflow:hidden;background:#05070C}
.fd-bar{display:flex;align-items:center;gap:8px;padding:8px 11px;cursor:grab;user-select:none;touch-action:none;background:rgba(9,11,17,0.98);border-bottom:1px solid var(--hair);font-size:10.5px;font-weight:600;letter-spacing:0.02em;color:var(--mut);font-family:var(--body)}
.fd-bar:active{cursor:grabbing}
.fd-dot{width:6px;height:6px;border-radius:50%;flex:none;background:var(--thread)}
.fd-bar span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fd-x{flex:none;background:none;border:0;cursor:pointer;font-family:var(--body);font-size:13px;line-height:1;padding:2px 4px;color:var(--faint)}
.fd-x:hover{color:var(--text)}
.fd-frame{position:relative;width:100%;aspect-ratio:16/9;background:#000 url("https://i.ytimg.com/vi/tYSo0LsHhvo/hqdefault.jpg") center/cover}
.float-demo.fd-stage-move{transition:left .7s var(--ease), top .7s var(--ease), width .7s var(--ease), opacity .45s var(--ease), visibility .45s}
.float-demo.fd-jolt{animation:fd-jolt .3s cubic-bezier(.3,.7,.3,1)}
@keyframes fd-jolt{0%{transform:scale(1)}30%{transform:scale(1.013) translateY(-1px)}62%{transform:scale(0.996) translateY(0.5px)}100%{transform:scale(1)}}
.cine-veil{position:fixed;inset:0;z-index:10004;pointer-events:none;--cx:50vw;--cy:50vh;--r1:220px;--r2:430px;background:radial-gradient(circle at var(--cx) var(--cy),rgba(4,6,10,0) 0, rgba(4,6,10,0) var(--r1),rgba(4,6,10,0.74) var(--r2), rgba(4,6,10,0.78) 100%);opacity:0;transition:opacity .7s ease, backdrop-filter 1s ease, -webkit-backdrop-filter 1s ease}
.cine-veil.on{opacity:1}
.cine-veil.hush{-webkit-backdrop-filter:brightness(0.72);backdrop-filter:brightness(0.72)}
.cine-veil::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at var(--cx) var(--cy),rgba(3,4,8,0) 0, rgba(3,4,8,0) var(--r1),rgba(3,4,8,0.30) var(--r2), rgba(3,4,8,0.34) 100%);opacity:0;transition:opacity .8s ease}
.cine-veil.deep::before{opacity:1}
.cine-veil::after{content:"";position:absolute;border-radius:50%;left:calc(var(--cx) - var(--r1));top:calc(var(--cy) - var(--r1));width:calc(var(--r1) * 2);height:calc(var(--r1) * 2);box-shadow:0 0 140px 36px rgba(0,229,255,0.34), inset 0 0 80px rgba(255,45,120,0.16);opacity:0}
.cine-veil.pulse::after{animation:cine-surge .45s cubic-bezier(.16,.8,.3,1)}
.cine-veil.breathe::after{animation:cine-breath 1.5s ease-in-out}
@keyframes cine-breath{0%{opacity:0;transform:scale(0.99);box-shadow:0 0 60px 10px rgba(255,45,120,0), inset 0 0 40px rgba(255,45,120,0)}40%{opacity:1;box-shadow:0 0 95px 24px rgba(255,45,120,0.17), inset 0 0 65px rgba(255,45,120,0.11)}100%{opacity:0;transform:scale(1.02);box-shadow:0 0 60px 10px rgba(255,45,120,0), inset 0 0 40px rgba(255,45,120,0)}}
@keyframes cine-surge{0%{opacity:0;transform:scale(0.92)}18%{opacity:1}100%{opacity:0;transform:scale(1.14)}}
.cine-thunder{position:fixed;inset:0;z-index:10005;pointer-events:none;opacity:0;overflow:hidden}
.cine-thunder::before{content:"";position:absolute;inset:0;background:radial-gradient(130% 100% at 50% 0%,rgba(255,214,232,0.38) 0%, rgba(255,45,120,0.2) 42%, rgba(255,45,120,0) 74%)}
.cine-thunder::after{content:"";position:absolute;top:-20%;bottom:-20%;left:-45%;width:34%;transform:skewX(-18deg);background:linear-gradient(90deg,rgba(255,45,120,0) 0%, rgba(255,170,205,0.32) 50%, rgba(255,45,120,0) 100%);filter:blur(16px)}
.cine-thunder.soft-strike{animation:th-sheet-soft 1.05s ease-in-out}
.cine-thunder.soft-strike::after{animation:th-sweep 1.05s ease-in-out}
.cine-thunder.strike{animation:th-sheet .56s ease-out}
.cine-thunder.strike::before{background:radial-gradient(130% 100% at 50% 0%,rgba(255,255,255,0.5) 0%, rgba(0,229,255,0.32) 36%, rgba(0,229,255,0) 72%)}
.cine-thunder.strike::after{background:linear-gradient(90deg,rgba(0,229,255,0) 0%, rgba(160,240,255,0.75) 44%,rgba(255,255,255,0.95) 50%, rgba(160,240,255,0.75) 56%, rgba(0,229,255,0) 100%);filter:blur(6px);animation:th-sweep .56s cubic-bezier(.2,.6,.2,1)}
@keyframes th-sheet{0%{opacity:0}4%{opacity:1}22%{opacity:.2}50%{opacity:.85}100%{opacity:0}}
@keyframes th-sweep{from{transform:skewX(-18deg) translateX(0)}to{transform:skewX(-18deg) translateX(520%)}}
@keyframes th-sheet-soft{0%{opacity:0}32%{opacity:.75}62%{opacity:.4}100%{opacity:0}}

/* ── The travelling video (one iframe, never reparented) ───────────── */
/* The video rides in a fixed-position wrapper OUTSIDE the hero, so it
   does not inherit the hero's entrance fade and used to appear a beat
   before the screenshot did. It now stays invisible until the hero has
   finished arriving, then fades in with it: one object, one entrance. */
#vidWrap{position:fixed;z-index:10007;display:none;overflow:hidden;background:#000;border-radius:8px;will-change:top,left,width,height;opacity:0;transition:opacity .45s ease}
#vidWrap.revealed{opacity:1}
#vidWrap.docked{z-index:9999}
#vidWrap.flying{transition:top .7s var(--ease),left .7s var(--ease),width .7s var(--ease),height .7s var(--ease),border-radius .7s ease}
#vidWrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
#vidWrap .posterlayer{position:absolute;inset:0;background:#000 center/cover no-repeat;z-index:2;transition:opacity .6s ease}
#vidWrap .shield{position:absolute;inset:0;z-index:3;cursor:default}
#vidWrap .fd-cine{position:absolute;left:0;right:0;bottom:11%;z-index:4;pointer-events:none;display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center;padding:0 12px;opacity:0;transform:translateY(9px);transition:opacity .8s ease, transform .8s ease}
#vidWrap .fd-cine.on{opacity:1;transform:none}
#vidWrap .fd-cine .c-t{font-family:var(--disp);font-size:14.5px;font-weight:700;letter-spacing:0.22em;color:#fff;white-space:nowrap;line-height:1.2;text-shadow:0 2px 16px rgba(0,0,0,0.9)}
#vidWrap .fd-cine .c-t.long{font-size:12.5px;letter-spacing:0.14em}
#vidWrap .fd-cine .c-s{font-size:10.5px;letter-spacing:0.08em;color:rgba(255,255,255,0.78);text-shadow:0 2px 10px rgba(0,0,0,0.85)}
#vidWrap .fd-cine .c-line{width:46px;height:2px;border-radius:2px;margin-top:4px;background:var(--thread)}
#vidWrap .fd-cine.punch{transition:none}
#vidWrap .fd-cine.punch.on{animation:cine-punch .34s cubic-bezier(.2,1.35,.3,1) both}
@keyframes cine-punch{0%{opacity:0;transform:scale(1.22)}60%{opacity:1;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}
#vidWrap .fd-cine.punch .c-t{font-size:17px;letter-spacing:0.26em;text-shadow:0 2px 18px rgba(0,0,0,0.95)}
#vidWrap .fd-cine.punch .c-t.long{font-size:13.5px;letter-spacing:0.16em}
#vidWrap .fd-cine.punch .c-line{width:74px}

@media (prefers-reduced-motion:reduce){
  #shotCursor{display:none}
  .yt-shot{cursor:auto}
  .shot-pill.hot{animation:none}
  .pp-pill.opening{animation:none}
  #cueHover,#cuePill,#cueHover.show{animation:none}
  #vidWrap.flying,.float-demo.fd-stage-move{transition:none}
  #vidWrap .fd-cine.punch.on{animation:none;opacity:1;transform:none}
  .cine-veil.hush{-webkit-backdrop-filter:none;backdrop-filter:none}
  .cine-veil.pulse::after,.cine-veil.breathe::after{animation:none}
  .cine-thunder.strike,.cine-thunder.soft-strike{animation:none}
  .cine-thunder.strike::after,.cine-thunder.soft-strike::after{animation:none}
  .float-demo.fd-jolt{animation:none}
}

/* The hero screenshot's description in words: the only thing a crawler can
   read about a mock built entirely from CSS backgrounds. Deliberately NOT
   animated from opacity:0 — text whose visibility depends on an animation
   firing reads as hidden text, which is the thing we are avoiding. */
.hero-note{margin-top:18px;max-width:460px;font-size:0.86rem;line-height:1.6;font-weight:300;color:var(--text-dim)}
@media (max-height:860px){.hero-note{margin-top:12px;font-size:0.82rem}}
