/* Vendored from Design assets/hero-loop.css (SPEC v4 section 2, 12:14 ET). Eng additions at the end (12px text floor). */
/* Hero loop (~6 s, silent, no captions). Canvas 880x380 desktop / 440x640 narrow, scaled by --s. Transform + opacity only. */
.hl-shell{max-width:56rem;margin:3rem auto 0;position:relative}
.hl-stage{position:relative;width:100%;aspect-ratio:880/380;border-radius:22px;overflow:hidden;background:radial-gradient(110% 120% at 80% 0%,#14284a,#0a1628 60%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.07),inset 0 1px 0 rgba(255,255,255,.10),var(--shadow-3)}
.hl-stage::after{content:"";position:absolute;left:-10%;top:-40%;width:70%;height:120%;background:var(--glow-brass);pointer-events:none}
.hl-canvas{position:absolute;left:0;top:0;width:880px;height:380px;transform-origin:0 0;transform:scale(var(--s,1));text-align:left;font-family:Inter,system-ui,sans-serif;color:var(--text-primary);font-variant-numeric:tabular-nums;z-index:1}
.hl-canvas .A{position:absolute;will-change:transform,opacity}
.hl-overlay{left:22px;top:16px;font-size:11px;font-weight:600;letter-spacing:var(--tracking-caps);text-transform:uppercase;color:#f1ddc2;display:none}
.hl-shell[data-overlay="on"] .hl-overlay{display:block}
.hl-fict{right:22px;top:16px;font-size:10.5px;font-weight:400;color:var(--text-muted)}
/* chat card (glass) */
.hl-chat{left:22px;top:44px;width:420px;height:314px;border-radius:18px;padding:14px 16px;background:rgba(20,35,60,.62);border:1px solid rgba(255,255,255,.08);box-shadow:var(--hairline),var(--shadow-2)}
@media (min-width:768px){ .hl-chat{-webkit-backdrop-filter:blur(var(--glass-blur));backdrop-filter:blur(var(--glass-blur))} }
@media (max-width:767.98px){ .hl-chat{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)} }   /* lighter blur on phones */
.hl-chat-h{display:flex;align-items:center;justify-content:space-between;padding-bottom:11px;border-bottom:1px solid rgba(255,255,255,.06)}
.hl-chat-h .t{font-size:12px;font-weight:600;color:var(--text-secondary)}
.hl-logos{display:flex;gap:7px}
.hl-lg{position:relative;display:block}
.hl-lg .engine-tile{position:relative;z-index:1;width:24px;height:24px;border-radius:7px;box-shadow:var(--shadow-1)}
.hl-lg .engine-tile img{width:15px;height:15px}.hl-lg .engine-tile.is-app-icon img{width:24px;height:24px}
.hl-halo{position:absolute;inset:-4px;border-radius:10px;box-shadow:0 0 0 1.5px rgba(226,195,155,.9),0 0 16px rgba(226,195,155,.55);opacity:0}
.hl-q{position:absolute;right:16px;top:60px;max-width:270px;background:linear-gradient(180deg,#2b3d5c,#22324d);border-radius:16px 16px 5px 16px;padding:9px 12px;font-size:13.5px;line-height:1.4;font-weight:400;box-shadow:var(--hairline),0 6px 14px -6px rgba(0,0,0,.5);transform-origin:100% 100%}
.hl-dots{position:absolute;left:18px;top:122px;display:flex;gap:5px}
.hl-dots i{width:6px;height:6px;border-radius:50%;background:var(--brass-soft)}
/* v4: compact gateway log (Agent asked / Approved answer) */
.hl-g{position:absolute;left:16px;right:16px;top:118px;background:#0a1628;border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:8px 11px 4px}
.hl-gt{font-size:11.5px;font-weight:600;color:#c9cfd8;margin-bottom:5px}
.hl-gh,.hl-gr{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) 16px;gap:8px;align-items:baseline}
.hl-gh{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#8b95a3;padding-bottom:3px;border-bottom:1px solid rgba(255,255,255,.06)}
.hl-gr{font-size:13px;line-height:1.3;padding:4px 0;border-bottom:1px solid rgba(255,255,255,.04)}
.hl-gr:last-child{border-bottom:0}
.hl-gr code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#f1ddc2;font-size:12.5px}
.hl-gr span{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#f3f5f8;font-size:12.5px}
.hl-gr b{color:#4fbf98;text-align:right}
/* Likely-need chip */
.hl-int{position:absolute;left:16px;right:16px;top:246px;display:flex;flex-wrap:wrap;align-items:center;gap:3px 8px;background:rgba(220,176,92,.12);border:1px solid rgba(220,176,92,.6);border-radius:12px;padding:7px 10px;transform-origin:50% 0}
.hl-int small{flex-basis:100%;font-size:11px;color:#c9cfd8}.hl-int b{font-size:13px;font-weight:600;color:#f5e3c4;line-height:1.3;flex:1;min-width:0}
.hl-canvas .ea{display:inline-flex;align-items:center;border:1px solid #c89968;color:#c89968;background:transparent;border-radius:999px;font-size:10.5px;font-weight:600;padding:2px 8px;white-space:nowrap}
.hl-wire{left:0;top:0}
.hl-wire .d{position:absolute;left:-5px;top:-5px;width:10px;height:10px;border-radius:50%;background:#e2c39b;box-shadow:0 0 0 4px rgba(226,195,155,.18),0 0 16px rgba(226,195,155,.7)}
/* page card: miniature Valdren page (navy/brass, as beat 4) */
.hl-page{left:466px;top:44px;width:392px;height:314px;border-radius:16px;overflow:hidden;background:#0f1d36;box-shadow:inset 0 0 0 1px rgba(200,153,104,.4),var(--shadow-3)}
.hl-chrome{height:30px;background:#16284a;display:flex;align-items:center;gap:8px;padding:0 10px;border-bottom:1px solid rgba(255,255,255,.06)}
.hl-chrome .br-dots{display:flex;gap:5px}.hl-chrome .br-dots i{width:8px;height:8px;border-radius:50%}
.hl-chrome .br-dots i:nth-child(1){background:#ec6a5e}.hl-chrome .br-dots i:nth-child(2){background:#f4bf4f}.hl-chrome .br-dots i:nth-child(3){background:#61c554}
.hl-url{flex:1;height:20px;border-radius:6px;background:#0a1628;display:flex;align-items:center;justify-content:center;gap:5px;font-size:10.5px;color:#aeb6c2}
.hl-ready{display:flex;align-items:center;gap:5px;font-size:9.5px;font-weight:600;color:#4fbf98;background:rgba(79,191,152,.14);border:1px solid rgba(79,191,152,.35);border-radius:999px;padding:2px 8px}
.hl-ready .rd-dot{width:6px;height:6px;border-radius:50%;background:currentColor}
.hl-skel{position:absolute;left:0;right:0;top:30px;bottom:0;padding:14px}
.hl-skel i{display:block;border-radius:8px;background:#1a2a45;margin-bottom:9px}
.hl-skel .row{display:flex;gap:10px}
.hl-tp{position:absolute;left:0;right:0;top:30px;bottom:0;padding:11px 13px;background:linear-gradient(180deg,#16284a,#0f1d36);color:#f5f7fa}
.hl-tp > *{will-change:transform,opacity}
.hl-tp-top{display:flex;align-items:center;gap:7px;margin-bottom:8px}
.hl-tp-top .mono{width:18px;height:18px;border-radius:5px;background:#c89968;color:#0a1628;font-weight:800;font-size:10.5px;display:grid;place-items:center}
.hl-tp-top b{font-size:12.5px;font-weight:600;letter-spacing:.04em}.hl-tp-top .ea{margin-left:auto}
.hl-why{display:flex;gap:8px;align-items:flex-start;background:rgba(10,22,40,.7);border:1px solid rgba(220,176,92,.45);border-radius:10px;padding:6px 8px;margin-bottom:9px}
.hl-why b{flex:none;display:inline-flex;align-items:center;gap:4px;background:#dcb05c;color:#0a1628;border-radius:999px;padding:2px 8px;font-size:10.5px;font-weight:700}
.hl-why b i{width:4px;height:4px;border-radius:50%;background:#0a1628}
.hl-why span{font-size:12px;line-height:1.35;color:#eef1f5}
.hl-tp-hero{display:flex;gap:8px;align-items:center}
.hl-tp-hero > div{flex:1;min-width:0}
.hl-tp-h{font-size:17px;font-weight:800;line-height:1.15;letter-spacing:-.015em}
.hl-tp-sub{font-size:11.5px;color:#c9cfd8;margin-top:3px;line-height:1.35}
.hl-tp-hero .jacket{flex:none;width:62px;height:auto}
.hl-tp-cl{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#c89968;margin:9px 0 4px}
.hl-tp-c{list-style:none;margin:0;padding:0;display:grid;gap:3px}
.hl-tp-c li{position:relative;padding-left:14px;font-size:12px;color:#eef1f5}
.hl-tp-c li::before{content:"";position:absolute;left:0;top:.42em;width:7px;height:7px;border-radius:50%;background:#4fbf98}
.hp-snap{position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none}
.hl-canvas .lk{width:9px;height:9px;opacity:.7}
/* pause control: visible native button under the stage (no hover/focus pause, per CEO Oct 20) */
.hl-pause{position:relative;display:flex;margin:.7rem auto 0;width:2rem;height:2rem;border-radius:999px;border:1px solid var(--border-color-light);background:rgba(10,22,40,.85);color:var(--text-primary);font-size:.7rem;cursor:pointer;align-items:center;justify-content:center;box-shadow:var(--hairline);transition:transform var(--dur-1) var(--ease-spring)}
.hl-pause:active{transform:scale(.92)}
.hl-pause:focus-visible{outline:2px solid #e2c39b;outline-offset:2px}
@media (prefers-reduced-motion: reduce){ .hl-pause{display:none} }
.force-rm .hl-pause{display:none}
/* narrow (< 560px container): stacked portrait canvas 440x720; canvas type sized so it renders >=12px at 390 (scale ~.81) */
.hl-shell.narrow .hl-stage{aspect-ratio:440/720;border-radius:18px}
.hl-shell.narrow .hl-canvas{width:440px;height:720px}
.hl-shell.narrow .hl-chat{left:12px;top:40px;width:416px;height:356px;padding:12px 14px}
.hl-shell.narrow .hl-q{top:56px;max-width:330px;font-size:15.5px}
.hl-shell.narrow .hl-dots{top:122px}
.hl-shell.narrow .hl-g{top:114px;left:12px;right:12px;padding:7px 10px 3px}
.hl-shell.narrow .hl-gt{font-size:14px}
.hl-shell.narrow .hl-gh{font-size:13.5px;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 18px}
.hl-shell.narrow .hl-gr{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 18px;font-size:15px;padding:4px 0}
.hl-shell.narrow .hl-gr code,.hl-shell.narrow .hl-gr span{font-size:15px}
.hl-shell.narrow .hl-int{top:268px;left:12px;right:12px}
.hl-shell.narrow .hl-int small{font-size:13.5px}.hl-shell.narrow .hl-int b{font-size:15.5px}
.hl-shell.narrow .hl-canvas .ea{font-size:13px}
.hl-shell.narrow .hl-page{left:12px;top:408px;width:416px;height:300px}
.hl-shell.narrow .hl-url{font-size:12.5px}
.hl-shell.narrow .hl-tp-top b{font-size:15px}
.hl-shell.narrow .hl-why b{font-size:13px}.hl-shell.narrow .hl-why span{font-size:15px}
.hl-shell.narrow .hl-tp-h{font-size:21px}.hl-shell.narrow .hl-tp-sub{font-size:14.5px}
.hl-shell.narrow .hl-tp-cl{display:none}.hl-shell.narrow .hl-tp-c{display:none}
.hl-shell.narrow .hl-tp-hero .jacket{width:70px}
.hl-shell.narrow .hl-fict{right:14px;font-size:13px}.hl-shell.narrow .hl-overlay{left:14px}
/* flow container: log then chip, so a wrapped row can never overlap the chip */
.hl-flow{position:absolute;left:16px;right:16px;top:112px;display:flex;flex-direction:column;gap:8px}
.hl-flow .hl-g,.hl-flow .hl-int{position:relative;left:auto;right:auto;top:auto}
.hl-chat{height:322px;top:40px}
.hl-gr{padding:3px 0}
.hl-shell.narrow .hl-flow{left:12px;right:12px;top:110px}
.hl-shell.narrow .hl-chat{height:376px}
.hl-shell.narrow .hl-q{font-size:16px}
.hl-shell.narrow .hl-gt{font-size:14.5px}
.hl-shell.narrow .hl-gh{font-size:14px}
.hl-shell.narrow .hl-gr,.hl-shell.narrow .hl-gr code,.hl-shell.narrow .hl-gr span{font-size:15.5px}
.hl-shell.narrow .hl-gr{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) 18px;gap:6px}
.hl-shell.narrow .hl-int b{font-size:16px}.hl-shell.narrow .hl-int small{font-size:14px}
.hl-shell.narrow .hl-page{top:428px;height:282px}
.hl-shell.narrow .hl-why span{font-size:16px}.hl-shell.narrow .hl-why b{font-size:13.5px}
.hl-shell.narrow .hl-tp-sub{font-size:15px}
.hl-shell.narrow .hl-stage{aspect-ratio:440/760}
.hl-shell.narrow .hl-canvas{height:760px}
.hl-shell.narrow .hl-chat{height:412px}
.hl-shell.narrow .hl-page{top:464px;height:284px}
.hl-shell .hl-flow .hl-g,.hl-shell .hl-flow .hl-int,.hl-shell.narrow .hl-flow .hl-g,.hl-shell.narrow .hl-flow .hl-int{left:auto;right:auto;top:auto}
.hl-q{top:50px}
.hl-flow{top:118px}
.hl-chat{height:332px;top:36px}
.hl-page{top:36px;height:332px}
.hl-shell.narrow .hl-q{top:50px}
.hl-shell.narrow .hl-flow{top:122px}
.hl-shell.narrow .hl-gh{letter-spacing:.02em}
/* hero page = shared Valdren page component */
.hl-tp{padding:11px 13px}
.hl-tp .vp{font-size:11.4px;gap:7px}
.hl-tp .vp-jk{width:4em}
.hl-shell.narrow .hl-stage{aspect-ratio:440/870}
.hl-shell.narrow .hl-canvas{height:870px}
.hl-shell.narrow .hl-page{top:464px;height:394px}
.hl-shell.narrow .hl-tp .vp{font-size:15px;gap:9px}
.hl-shell.narrow .hl-tp .vp-cl,.hl-shell.narrow .hl-tp .vp-cs{display:flex}
.hl-shell.narrow .hl-tp .vp-cl{display:block}
.hl-shell.narrow .hl-stage{aspect-ratio:440/960}
.hl-shell.narrow .hl-canvas{height:960px}
.hl-shell.narrow .hl-page{top:464px;height:482px}
/* 11:47 legibility: narrow canvas 400 wide (scale ~.86 at 390); chips at 1em */
.hl-tp .vp{font-size:12.4px;gap:6px}
.hl-tp .vp-c,.hl-tp .vp-f,.hl-tp .vp-unk{font-size:.97em}
.hl-tp .vp-h{font-size:1.38em}
.hl-shell.narrow .hl-stage{aspect-ratio:400/var(--hh,900)}
.hl-shell.narrow .hl-canvas{width:400px;height:900px}
.hl-shell.narrow .hl-stage{aspect-ratio:400/900}
.hl-shell.narrow .hl-chat{width:376px;height:420px}
.hl-shell.narrow .hl-q{max-width:300px}
.hl-shell.narrow .hl-page{left:12px;width:376px;top:472px;height:416px}
.hl-shell.narrow .hl-tp{padding:10px 11px}
.hl-shell.narrow .hl-tp .vp{font-size:14.5px;gap:8px}
.hl-shell.narrow .hl-tp .vp-c,.hl-shell.narrow .hl-tp .vp-f,.hl-shell.narrow .hl-tp .vp-unk{font-size:1em}
.hl-shell.narrow .hl-tp .vp-h{font-size:1.4em}
.hl-shell.narrow .hl-tp .vp-jk{width:3.6em}
.hl-shell.narrow .hl-stage{aspect-ratio:400/950}.hl-shell.narrow .hl-canvas{height:950px}.hl-shell.narrow .hl-page{height:466px}
.hl-shell.narrow .hl-stage{aspect-ratio:400/1010}.hl-shell.narrow .hl-canvas{height:1010px}.hl-shell.narrow .hl-chat{height:474px}.hl-shell.narrow .hl-page{top:526px;height:470px}
.hl-shell.narrow .hl-gt{display:none}.hl-shell.narrow .hl-stage{aspect-ratio:400/965}.hl-shell.narrow .hl-canvas{height:965px}.hl-shell.narrow .hl-chat{height:430px}.hl-shell.narrow .hl-page{top:482px;height:470px}
/* 12:05 phone hero: shared Valdren page in compact mode (stuff sack beside the shell, no fact chips); shorter stage */
.hl-shell.narrow .hl-tp .vp{gap:7px}
.hl-shell.narrow .hl-tp .vp-cl{display:none!important}
.hl-shell.narrow .hl-stage{aspect-ratio:400/907}.hl-shell.narrow .hl-canvas{height:907px}.hl-shell.narrow .hl-page{height:412px}
.hl-shell.narrow .hl-tp .vp{font-size:15px}
.hl-shell.narrow .hl-stage{aspect-ratio:400/919}.hl-shell.narrow .hl-canvas{height:919px}.hl-shell.narrow .hl-page{height:424px}

/* Eng: text floor. The canvas is scaled by --s, so a canvas size of 12px/--s renders at 12px; max()/clamp() keep Design's size wherever
   it is already larger and lift it where the scale drops. Body text and chips >=12px rendered, tiny badges/labels >=11px. */
.hl-q{font-size:clamp(13.5px,calc(12px / var(--s,1)),18px)}
.hl-gr code,.hl-gr span{font-size:clamp(12.5px,calc(12px / var(--s,1)),18px)}
.hl-int b{font-size:clamp(13px,calc(12px / var(--s,1)),18px)}
.hl-gh,.hl-int small{font-size:clamp(11px,calc(11px / var(--s,1)),16px)}
.hl-shell.narrow .hl-q{font-size:clamp(16px,calc(12px / var(--s,1)),18px)}
.hl-shell.narrow .hl-gr code,.hl-shell.narrow .hl-gr span{font-size:clamp(15.5px,calc(12px / var(--s,1)),18px)}
.hl-shell.narrow .hl-int b{font-size:clamp(16px,calc(12px / var(--s,1)),18px)}
.hl-shell.narrow .hl-gh,.hl-shell.narrow .hl-int small{font-size:clamp(14px,calc(11px / var(--s,1)),16px)}
/* Eng: with the floor at 360 the headers would wrap; keep them on one line. */
.hl-shell.narrow .hl-gh{letter-spacing:0;white-space:nowrap}
/* Eng: shared Valdren page in the hero: Why pill, chips and Unknown >=12px rendered; tiny labels >=11px (Design 11:45 call 3 + SPEC 3.7 floors). */
.hl-tp .vp-why b{font-size:max(.86em,calc(12px / var(--s,1)))}
.hl-tp .vp-why span,.hl-tp .vp-c,.hl-tp .vp-unk,.hl-tp .vp-pk b,.hl-tp .vp-sub{font-size:max(.97em,calc(12px / var(--s,1)))}
.hl-tp .vp-top b{font-size:max(1.02em,calc(12px / var(--s,1)))}
.hl-tp .vp-cl{font-size:max(.8em,calc(11px / var(--s,1)))}
.hl-tp .vp .vp-ea{font-size:max(.86em,calc(11px / var(--s,1)))}
/* Eng (CEO 16:09): 'What she typed. Skopeak never sees this.' under the shopper's bubble (hero_loop.prompt_label; same look as beat 1's
   .cw-lbl: muted grey + grey dot). It hangs just below the bubble (inside .hl-q so it shares the bubble's opacity/transform, no JS change);
   the log block and chat card get exactly the label's height of extra room; nothing else moves. The log title (hero_loop.gateway_label)
   now shows at narrow widths too. */
.hl-q{position:absolute}
.hl-lbl{position:absolute;right:0;top:100%;margin:6px 0 0;white-space:nowrap;display:flex;align-items:center;gap:6px;
  font-size:clamp(11px,calc(11px / var(--s,1)),14px);font-weight:400;line-height:1.2;color:#aeb6c2;background:none;box-shadow:none}
.hl-lbl::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:#8b95a3}
.hl-shell.narrow .hl-lbl{font-size:clamp(13px,calc(12px / var(--s,1)),15px)}
.hl-shell.narrow .hl-gt{display:block;font-size:clamp(14px,calc(12px / var(--s,1)),16px)}
/* Eng (CEO 16:09) room for the label: everything below the bubble inside the chat card shifts down by exactly the label's height
   (desktop +14, narrow +20 canvas px); the chat card, the page frame and the canvas grow by the same amount. Bubble, header, page
   content and left/right positions are unchanged. Measured at 1280/960/390/360: no overflow, CLS 0. */
.hl-stage{aspect-ratio:880/394}.hl-canvas{height:394px}
.hl-chat{height:346px}.hl-page{height:346px}
.hl-flow{top:132px}.hl-dots{top:136px}
.hl-shell.narrow .hl-stage{aspect-ratio:400/939}.hl-shell.narrow .hl-canvas{height:939px}
.hl-shell.narrow .hl-chat{height:450px}.hl-shell.narrow .hl-page{top:502px}
.hl-shell.narrow .hl-flow{top:142px}.hl-shell.narrow .hl-dots{top:142px}
/* Eng (CEO 17:31, trust label): phones only (narrow canvas). The 'Fictional brand' tag renders >=12px at 360-430 (was 10.7px at 360)
   in light grey (9.4:1 on the stage, was 5.8:1). Absolute tag: no layout change; desktop untouched. */
.hl-shell.narrow .hl-fict{font-size:max(13px,calc(12.5px / var(--s,1)));line-height:1.25;color:#c9cfd8}
