body{position:relative;isolation:isolate;overflow-x:clip;background:radial-gradient(ellipse at 50% -10%,#263b3166,transparent 46%),#101512}
body::before,body::after{content:"";position:fixed;z-index:-1;pointer-events:none;width:40vw;height:40vw;border-radius:50%;background:radial-gradient(circle,#8be1bd10,transparent 68%);animation:ambient-shift 24s ease-in-out infinite alternate;will-change:transform,opacity}
body::before{top:7vh;left:-24vw}body::after{right:-24vw;top:43vh;background:radial-gradient(circle,#b5a5ff0c,transparent 68%);animation-delay:-12s}
.top{position:relative;z-index:4;backdrop-filter:blur(14px);background:#101512bd;border-bottom-color:#51634c44}
.hero{position:relative;isolation:isolate;min-height:430px;overflow:hidden}
.hero::before{content:"";position:absolute;z-index:-1;inset:-3vh -20vw;background:radial-gradient(ellipse at 74% 48%,#aaf3d318,transparent 38%),radial-gradient(ellipse at 35% 100%,#b5a5ff0a,transparent 46%)}
.hero-copy{position:relative;z-index:2;animation:copy-arrive .8s cubic-bezier(.2,.75,.25,1) both}
.hero-copy h1{text-wrap:balance;text-shadow:0 0 55px #b9e8b411}
.hero-visual{width:min(53%,650px);height:410px;min-height:0;position:relative;isolation:isolate;overflow:hidden;border:1px solid #9ed0a62b;border-radius:30px;background:linear-gradient(145deg,#18251eec,#141c18e8 55%,#1b2028e8);box-shadow:0 32px 110px #0007,inset 0 1px #ffffff0a;perspective:1000px;animation:visual-arrive 1s .08s cubic-bezier(.2,.75,.25,1) both}
.hero-visual::before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 12%,#ffffff07 30%,transparent 48%),radial-gradient(circle at 50% 50%,#92e9c00a,transparent 45%);pointer-events:none}
.hero-visual::after{content:"";position:absolute;inset:14px;border:1px solid #d8f4d709;border-radius:21px;pointer-events:none}
.hero-glow{position:absolute;inset:16% 18%;border-radius:50%;background:radial-gradient(circle,#a7efcb22,transparent 69%);filter:blur(5px);animation:glow-pulse 6s ease-in-out infinite}
.hero-route{position:absolute;inset:0;width:100%;height:100%;overflow:visible;opacity:.82}
.route-base,.route-flow{fill:none;stroke:#d3f29834;stroke-width:1.2;stroke-dasharray:3 9}
.route-flow{stroke:url(#route-line);stroke-width:2.4;stroke-dasharray:1 14;stroke-linecap:round;animation:route-dash 12s linear infinite;filter:drop-shadow(0 0 5px #a9ebbd88)}
.reel-card{position:absolute;z-index:1;width:145px;height:182px;padding:13px;border:1px solid #d8f4d454;border-radius:13px;background:linear-gradient(155deg,#2b3d34ee,#1a2722f5 65%,#1b2029f5);box-shadow:0 22px 55px #0008,inset 0 1px #ffffff1c;display:flex;flex-direction:column;justify-content:space-between;backdrop-filter:blur(8px);transform-style:preserve-3d}
.reel-card>span{font:9px ui-monospace,monospace;letter-spacing:1.2px;color:#b8ccb5}
.reel-card-one{left:9%;top:27%;animation:card-float-one 7s ease-in-out infinite}
.reel-card-two{left:33%;top:15%;border-color:#c4acff80;animation:card-float-two 8s ease-in-out infinite}
.reel-card-three{right:18%;top:31%;border-color:#85e1d59c;animation:card-float-three 7.4s ease-in-out infinite}
.reel-card-four{right:5%;top:10%;width:115px;height:145px;border-color:#d3f29885;animation:card-float-four 8.4s ease-in-out infinite}
.reel-card-one>b{font-size:27px;letter-spacing:-1.4px;color:#eff4e9}
.reel-line{height:5px;width:86%;border-radius:9px;background:linear-gradient(90deg,#d3f298bb,#83e7cd55);box-shadow:0 0 12px #92e5b333}
.reel-line.line-short{width:57%;opacity:.55}
.reel-art{position:relative;display:flex;align-items:end;justify-content:center;gap:9px;height:110px;overflow:hidden;border-radius:8px;background:radial-gradient(circle at 50% 24%,#c0a6ff99,transparent 16%),linear-gradient(155deg,#334455,#1a2423 65%,#49645a)}
.reel-art i{position:relative;width:22px;border-radius:7px 7px 3px 3px;background:linear-gradient(180deg,#e9f0d8,#b6a7ff88 45%,#a9e8c677);box-shadow:0 0 18px #b4a5ff33}.reel-art i:nth-child(1){height:38px;opacity:.57}.reel-art i:nth-child(2){height:67px;animation:bar-rise 3s ease-in-out infinite}.reel-art i:nth-child(3){height:48px;opacity:.75}
.reel-window{display:flex;align-items:center;justify-content:center;gap:5px;height:74px;border-radius:8px;background:linear-gradient(135deg,#1a3f3d,#332c46 52%,#28382d);overflow:hidden}
.reel-window i{width:5px;height:20%;border-radius:5px;background:linear-gradient(#c9f5a1,#9be0d8);box-shadow:0 0 12px #b6f4be;animation:wave-bars 1.2s ease-in-out infinite alternate}.reel-window i:nth-child(2){height:68%;animation-delay:-.4s}.reel-window i:nth-child(3){height:44%;animation-delay:-.8s}.reel-window i:nth-child(4){height:84%;animation-delay:-.2s}
.reel-card-four>b{font:700 24px/1 ui-monospace,monospace;color:#e5f4d9}.reel-card-four small{font-size:10px;color:#b9a8ff;margin-left:4px}
.reel-progress{height:3px;border-radius:5px;background:#ffffff1b;overflow:hidden}.reel-progress i{display:block;width:45%;height:100%;background:#d3f298;box-shadow:0 0 12px #d3f298;animation:progress-run 4s ease-in-out infinite alternate}
.hero-signal{position:absolute;z-index:2;width:8px;height:8px;border-radius:50%;background:#efffdb;box-shadow:0 0 20px 6px #baf1a788;animation:signal-pulse 3s ease-in-out infinite}
.signal-a{left:27%;top:18%}.signal-b{right:16%;top:76%;width:5px;height:5px;animation-delay:-1.3s}.signal-c{left:72%;top:14%;width:4px;height:4px;animation-delay:-2s}
.hero-caption{left:22px;bottom:18px;z-index:3;display:flex;gap:10px;align-items:baseline;padding:8px 13px;border:1px solid #c6edb723;border-radius:12px;background:#101712bd;backdrop-filter:blur(9px)}
.hero-caption strong{font-size:30px;color:#e6f6d7;text-shadow:0 0 22px #d3f29842}
.hero-caption span{font-size:11px;line-height:1.2;color:#aebdad}
.section-head{position:relative}.section-head::after{content:"";position:absolute;bottom:-13px;left:0;width:min(160px,30%);height:1px;background:linear-gradient(90deg,#d3f29891,transparent);transform-origin:left;animation:line-breathe 5s ease-in-out infinite alternate}
.scene-card{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(145deg,#19231c,#141a16);box-shadow:0 17px 48px #0002;transition:transform .35s cubic-bezier(.2,.7,.2,1),border-color .35s ease,box-shadow .35s ease}
.scene-card::before{content:"";position:absolute;z-index:3;inset:0 auto 0 -70%;width:45%;background:linear-gradient(95deg,transparent,#ffffff0a,transparent);transform:skewX(-16deg);transition:left .7s ease;pointer-events:none}
.scene-card:hover{transform:translateY(-5px);border-color:#bde49b75;box-shadow:0 26px 75px #0005,0 0 30px #a8e8bd09}
.scene-card:hover::before{left:135%}
.scene-preview{border-radius:13px 13px 5px 5px}
.scene-preview::after{background:linear-gradient(180deg,#e7ffd117,transparent 32%,#0c110d21);}
.scene-card-copy{position:relative}.scene-card-copy::before{content:"";position:absolute;top:0;left:20px;right:20px;height:1px;background:linear-gradient(90deg,transparent,#c4f0a944,transparent)}
.copy-button{position:relative;overflow:hidden;transition:background .2s ease,transform .2s ease,border-color .2s ease,box-shadow .2s ease}.copy-button:hover{box-shadow:0 5px 22px #d3f2981c}
.ai-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 14px;border:1px solid #5e7961;border-radius:12px;background:linear-gradient(135deg,#24362a,#1b2721);color:#e4f5d7;text-decoration:none;font-size:12px;font-weight:700;white-space:nowrap;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}.ai-link:hover{transform:translateY(-1px);border-color:#d3f298;box-shadow:0 6px 22px #d3f2981c}.ai-link span{color:#d3f298}
.bot-cta{position:relative;overflow:hidden;background:radial-gradient(ellipse at 82% 14%,#b5a5ff14,transparent 39%),radial-gradient(ellipse at 10% 90%,#a8e88a17,transparent 43%),linear-gradient(145deg,#202d22,#121916);box-shadow:0 30px 110px #0005}
.bot-cta::after{content:"";position:absolute;inset:0 0 auto;height:1px;background:linear-gradient(90deg,transparent,#d3f29898,#a9a0ff88,transparent);animation:line-sweep 7s ease-in-out infinite}
.bot-steps li{transition:transform .3s ease,border-color .3s ease,background .3s ease}.bot-steps li:hover{transform:translateX(4px);border-color:#a7d99665;background:#1b281e}
.motion-ready [data-reveal]:not(.is-revealed){opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1);transition-delay:var(--reveal-delay,0ms)}
.motion-ready [data-reveal].is-revealed{opacity:1;transform:translateY(0)}
@keyframes ambient-shift{from{transform:translate3d(0,0,0);opacity:.45}to{transform:translate3d(7vw,7vh,0);opacity:1}}
@keyframes copy-arrive{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}@keyframes visual-arrive{from{opacity:0;transform:translateY(20px) rotateY(-6deg)}to{opacity:1;transform:translateY(0) rotateY(0)}}
@keyframes route-dash{to{stroke-dashoffset:-210}}@keyframes glow-pulse{0%,100%{transform:scale(.9);opacity:.48}50%{transform:scale(1.08);opacity:1}}
@keyframes card-float-one{0%,100%{transform:translateY(0) rotate(-7deg) rotateY(9deg)}50%{transform:translateY(-10px) rotate(-3deg) rotateY(2deg)}}@keyframes card-float-two{0%,100%{transform:translateY(-4px) rotate(3deg) rotateY(-7deg)}50%{transform:translateY(9px) rotate(-2deg) rotateY(5deg)}}@keyframes card-float-three{0%,100%{transform:translateY(4px) rotate(5deg) rotateY(-6deg)}50%{transform:translateY(-9px) rotate(1deg) rotateY(5deg)}}@keyframes card-float-four{0%,100%{transform:translateY(0) rotate(7deg) rotateY(-8deg)}50%{transform:translateY(8px) rotate(2deg) rotateY(4deg)}}
@keyframes bar-rise{0%,100%{transform:scaleY(.68)}50%{transform:scaleY(1)}}@keyframes wave-bars{from{transform:scaleY(.45);opacity:.55}to{transform:scaleY(1);opacity:1}}@keyframes progress-run{from{transform:translateX(-20%)}to{transform:translateX(125%)}}@keyframes signal-pulse{0%,100%{transform:scale(.7);opacity:.35}50%{transform:scale(1.25);opacity:1}}
@keyframes line-breathe{from{transform:scaleX(.35);opacity:.5}to{transform:scaleX(1);opacity:1}}@keyframes line-sweep{0%,70%{transform:translateX(-50%);opacity:0}90%{transform:translateX(50%);opacity:1}100%{transform:translateX(70%);opacity:0}}
@media(max-width:980px){.hero{min-height:0}.hero-visual{height:370px;width:50%}.reel-card{width:126px;height:164px}.reel-card-four{width:104px;height:132px}}
@media(max-width:700px){.hero{overflow:visible}.hero-visual{width:100%;height:min(370px,91vw);min-height:290px;margin:20px auto 4px;border-radius:22px}.hero-visual::after{inset:10px;border-radius:15px}.reel-card{width:25%;height:42%;padding:9px;border-radius:9px}.reel-card>span{font-size:7px;letter-spacing:.6px}.reel-card-one{left:5%;top:30%}.reel-card-two{left:29%;top:16%}.reel-card-three{right:18%;top:35%}.reel-card-four{right:3%;top:13%;width:21%;height:34%}.reel-card-one>b{font-size:18px}.reel-art{height:65%;gap:5px}.reel-art i{width:15px}.reel-window{height:54%;gap:4px}.reel-card-four>b{font-size:17px}.hero-caption{left:12px;bottom:12px}.hero-caption strong{font-size:25px}.hero-caption span{font-size:10px}.scene-card:hover{transform:none}.bot-steps li:hover{transform:none}}
@media(prefers-reduced-motion:reduce){body::before,body::after,.hero-copy,.hero-visual,.route-flow,.hero-glow,.reel-card,.reel-art i,.reel-window i,.reel-progress i,.hero-signal,.section-head::after,.scene-card::before,.bot-cta::after,.section-head::after{animation:none!important;will-change:auto!important}.motion-ready [data-reveal]:not(.is-revealed){opacity:1;transform:none;transition:none}.scene-card,.copy-button,.bot-steps li{transition:none}}

/* Nyrgun Motion Lab: centered editorial scene cards inspired by the reference flow. */
:root{--lime:#ffc66d;--muted:#a8b4c6;--border:#2a3546;--panel:#151c2a;--soft:#dce1e8}
body{background:radial-gradient(ellipse at 50% -20%,#52384855,transparent 42%),radial-gradient(ellipse at 90% 12%,#33296240,transparent 31%),#090d14;color:#f4f3ee}
.top{max-width:1040px;border-bottom-color:#273043;padding-top:19px;padding-bottom:19px}
main{max-width:1040px}
.hero{max-width:900px;min-height:430px;margin:0 auto;grid-template-columns:minmax(0,1fr) minmax(320px,.78fr);gap:35px;padding:50px 0 58px}
.hero h1{max-width:650px;font-weight:630;letter-spacing:-3.6px}
.hero-intro{color:#c3cada}
.hero-note{max-width:620px;color:#929db1;line-height:1.6}
.hero-visual{min-height:350px}
.hero-visual::before{content:"";position:absolute;inset:5% 0;border:1px solid #62617d3d;border-radius:35px;background:radial-gradient(ellipse at 52% 45%,#ffbc6c18,transparent 31%),linear-gradient(145deg,#181d2add,#0d131d99);box-shadow:0 32px 90px #0007}
.hero-glow{background:radial-gradient(circle,#ffbd6b38 0,#8f7cff2c 25%,transparent 68%)}
.hero-core{border-color:#f5c8899e;background:linear-gradient(145deg,#f5c88926,#8f7cff18 48%,#14212b);box-shadow:inset 0 0 42px #b6a2ff18,0 25px 90px #0009}
.hero-core span{color:#f6f2e9;text-shadow:0 0 28px #ffbd6b77}
.hero-core i{background:#ffc66d;box-shadow:0 0 24px #ffc66d}.hero-core b{background:#79e6db;box-shadow:0 0 22px #79e6db}
.hero-orbit{border-color:#ffc66d66}.orbit-two{border-color:#a994ff55}
.tag-one,.tag-two{border-color:#554d61;background:#151522e8;color:#e7d1ac}.tag-two{color:#a8a0ff}
.hero-caption strong{color:#ffc66d}
.section-head{border-top-color:#283246}
.section-head .eyebrow{color:#ffc66d}
.count-badge{border-color:#343449;background:#131722;color:#bec5d4}.count-badge b{color:#ffc66d}
.library-hint{max-width:800px;color:#a8b3c5}
.filters{gap:9px}.filter-chip{background:#111722;border-color:#34384b;color:#c5cad6}.filter-chip[aria-pressed=true]{background:#ffc66d;color:#211b14;border-color:#ffc66d}
.scene-grid{grid-template-columns:minmax(0,1fr);gap:26px;max-width:820px;margin:0 auto}
.scene-card{border:1px solid #2d384c;border-radius:25px;background:linear-gradient(148deg,#151c28,#101620 60%,#131521);box-shadow:0 24px 65px #0005}
.scene-card:hover{border-color:#78614c;box-shadow:0 26px 75px #0008,0 0 36px #e1ac6620}
.scene-card-heading{display:flex;align-items:center;gap:14px;padding:20px 22px 16px}
.scene-number{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#ffc66d;color:#201911;font:700 12px ui-monospace,monospace;box-shadow:0 5px 20px #ffc66d2a}
.scene-card-heading>div{min-width:0;flex:1}.scene-card h3{margin:0;color:#f4f2eb;font-size:21px;font-weight:650;letter-spacing:-.4px}.scene-card-heading p{min-height:0;margin:3px 0 0;color:#9faabd;font-size:13px;line-height:1.45}
.scene-category{margin-left:auto;padding:5px 9px;border:1px solid #41445a;border-radius:999px;color:#c1b9d8;font-size:10px;white-space:nowrap}
.scene-stage{position:relative;margin:0 16px;overflow:hidden;border:1px solid #34394d;border-radius:18px;background:#080d14;box-shadow:0 18px 45px #0008}
.scene-preview{aspect-ratio:16/9;border:0;border-radius:0;background:radial-gradient(ellipse at 50% 48%,#463647 0,#201f31 32%,#111722 72%,#090e14);}
.scene-preview::after{background:linear-gradient(180deg,#090b1109 40%,#080c18aa)}
.preview-shape{border-color:#ffc66d;background:linear-gradient(135deg,#ffc66d52,#a994ff37 47%,#72e4dc24);box-shadow:inset 0 0 30px #fff2,0 18px 54px #0009,0 0 45px #ffc66d24}
.preview-orbit{border-color:#b9a6ff8a}.preview-line{background:linear-gradient(90deg,transparent,#ffc66d, #79e6db,transparent)}
.preview-dot{background:#ffc66d;box-shadow:0 0 18px #ffc66d}.dot-b{background:#79e6db;box-shadow:0 0 16px #79e6db}.dot-c{background:#b9a6ff;box-shadow:0 0 16px #b9a6ff}
.scene-preview--particles::before{background:radial-gradient(circle,#ffc66d 0 2px,transparent 3px) 0 0/31px 29px}
.scene-preview--liquid::before{background:linear-gradient(122deg,transparent 28%,#ffc66d9c 39%,#7be2d988 50%,#a994ff75 60%,transparent 71%)}
.scene-preview--glass .preview-shape{background:linear-gradient(135deg,#f9ecd44a,#b9a6ff24 54%,#fff8);border-color:#fff5}
.scene-preview--type::after{color:#f5e5cd;text-shadow:0 0 20px #ffc66d77}
.preview-mark{left:18px;top:16px;color:#d5c8b5;font-size:11px;letter-spacing:2px}
.preview-label{right:18px;bottom:16px;color:#f0d09b;font-size:9px;letter-spacing:1.1px;text-shadow:0 2px 12px #000}
.preview-open{position:absolute;z-index:8;left:50%;bottom:17px;display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:0 17px;border:1px solid #f8ca83;border-radius:999px;background:#ffc66d;color:#211912;font-size:12px;font-weight:750;box-shadow:0 8px 24px #0007;transform:translateX(-50%);cursor:pointer;transition:transform .2s,box-shadow .2s}
.preview-open:hover{transform:translateX(-50%) translateY(-2px);box-shadow:0 12px 28px #0009}
.scene-card-copy{padding:13px 16px 18px}.scene-actions{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:9px;align-items:stretch}
.copy-button,.ai-link{width:100%;min-height:48px;justify-content:center;border-radius:13px;font-size:12px}
.copy-button{border-color:#8a714e;background:#ffc66d;color:#211a12}.copy-button:hover{background:#ffda9b;border-color:#ffe0a4}
.ai-link{border-color:#3c485d;background:linear-gradient(140deg,#222b3b,#161c29);color:#f4f1e9}
.ai-link span{color:#ffc66d}.ai-link--claude span{color:#b9a6ff}.ai-link--claude{border-color:#554864;background:linear-gradient(140deg,#2a2337,#171c29)}
.prompt-details{margin-top:10px;padding:0 12px;border:1px solid #2c3749;border-radius:12px;background:#0f1520}
.prompt-details summary{min-height:43px;color:#c7cede;font-weight:600}.prompt-details summary::after{color:#ffc66d}
.prompt-text{max-height:420px;overflow:auto;border-color:#ffc66d;background:#0a1019;color:#d3d9e6;font:12px/1.75 ui-monospace,Consolas,monospace}
.copy-status{display:block;min-height:0;margin-top:6px;color:#ffd899;font-size:12px;line-height:1.5}
.bot-cta{border-color:#464053;background:radial-gradient(ellipse at 82% 12%,#a994ff1a,transparent 39%),linear-gradient(145deg,#1b1c2a,#121722)}
.bot-cta .eyebrow{color:#ffc66d}.bot-steps li{border-color:#34384b;background:#121824}
.scene-dialog{width:min(1020px,calc(100vw - 28px));max-width:none;max-height:min(92dvh,900px);padding:0;overflow:auto;border:1px solid #41465a;border-radius:25px;background:#0d121c;color:#f4f2eb;box-shadow:0 40px 130px #000b}
.scene-dialog::backdrop{background:#03060cbb;backdrop-filter:blur(12px)}
.dialog-shell{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:0 28px;padding:22px}
.dialog-header{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding:2px 0 18px;border-bottom:1px solid #30384a}
.dialog-header>div{display:flex;align-items:center;gap:14px}.dialog-header .eyebrow{color:#ffc66d}.dialog-index{color:#8e9bad;font:11px ui-monospace,monospace}
.dialog-close{min-height:42px;padding:8px 14px;border:1px solid #40465a;border-radius:12px;background:#161d29;color:#e8e7e1;font-weight:650;cursor:pointer}
.dialog-preview-wrap{position:relative;align-self:start;margin-top:22px;overflow:hidden;border:1px solid #384052;border-radius:18px;background:#080d14;box-shadow:0 20px 60px #0008}
.dialog-preview{position:relative;overflow:hidden;aspect-ratio:4/5;min-height:0;background:radial-gradient(circle at center,#342d3d,#111722 70%)}
.dialog-preview .scene-preview{height:100%;aspect-ratio:4/5;border:0}
.dialog-preview.is-paused *{animation-play-state:paused!important}
.dialog-content{min-width:0;padding:20px 1px 2px}.dialog-content h2{margin:4px 0 7px;color:#f7f3eb;font-size:clamp(25px,4vw,38px);line-height:1.08;letter-spacing:-1px}
.dialog-content>p{margin:0 0 14px;color:#aeb8c8;font-size:14px;line-height:1.55}
.dialog-content .dialog-instructions{padding:12px 14px;border:1px solid #394153;border-radius:13px;background:#151b27;color:#d2d8e3;font-size:12px}
.dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:12px 0}
.dialog-content .prompt-details{margin-top:12px}.dialog-content .prompt-text{max-height:260px}
.dialog-copy{margin-top:12px}.dialog-content .copy-status{min-height:20px}
.scene-dialog[open]{animation:dialog-pop .2s ease-out both}
@keyframes dialog-pop{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:700px){
 .top{max-width:none}.hero{padding:31px 0 39px;gap:20px}.hero-visual{min-height:285px}.hero-core{width:124px;height:124px;border-radius:29px}.hero-core span{font-size:56px}
 .scene-grid{gap:17px}.scene-card{border-radius:20px}.scene-card-heading{gap:10px;padding:15px 14px 13px}.scene-number{width:33px;height:33px;flex-basis:33px;font-size:11px}.scene-card h3{font-size:18px}.scene-card-heading p{font-size:12px}.scene-category{padding:4px 7px;font-size:9px}
 .scene-stage{margin:0 9px;border-radius:15px}.scene-preview{aspect-ratio:4/5}.preview-open{bottom:13px;min-height:44px}.preview-mark{left:14px;top:13px}.preview-label{right:12px;bottom:69px;font-size:8px}
 .scene-card-copy{padding:11px 10px 14px}.scene-actions{grid-template-columns:1fr 1fr;gap:8px}.copy-button{grid-column:1/-1}.ai-link{min-height:48px;font-size:12px}.prompt-details{margin-top:9px}.prompt-text{max-height:360px;font-size:11px}
 .scene-dialog{width:calc(100vw - 14px);max-height:calc(100dvh - 16px);border-radius:19px}.dialog-shell{grid-template-columns:minmax(0,1fr);gap:0;padding:14px}.dialog-header{padding-bottom:12px}.dialog-header .eyebrow{font-size:8px}.dialog-preview-wrap{grid-row:2;margin-top:13px}.dialog-preview,.dialog-preview .scene-preview{aspect-ratio:4/5;max-height:49dvh}.dialog-content{grid-row:3;padding-top:15px}.dialog-content h2{font-size:27px}.dialog-content>p{font-size:13px}.dialog-content .dialog-instructions{font-size:11px}.dialog-actions{grid-template-columns:1fr 1fr}.dialog-content .prompt-text{max-height:28dvh}.dialog-close{min-height:40px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){.scene-dialog[open]{animation:none}.preview-open,.scene-card,.ai-link{transition:none}}
@media(max-width:700px){
 .library{padding-top:14px}
 .filters{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:none;margin:16px -14px 19px;padding:0 14px 5px}
 .filters::-webkit-scrollbar{display:none}
 .filter-chip{flex:0 0 auto;scroll-snap-align:start}
 .scene-grid{gap:18px}
 .scene-card{border-radius:20px;border-color:#50614b;box-shadow:0 18px 46px #0004}
 .scene-card:hover{transform:none}
 .scene-preview{aspect-ratio:4/5;border-radius:19px 19px 4px 4px}
 .preview-shape{width:108px;height:108px}
 .preview-mark{left:16px;top:15px;font-size:11px}
 .preview-label{right:14px;bottom:13px;padding:6px 9px;border:1px solid #d3f29855;border-radius:999px;background:#101712c9;color:#d8f3bb;font:9px ui-monospace,monospace;letter-spacing:.7px}
 .scene-card-copy{padding:17px 16px 16px}
 .scene-card h3{font-size:23px;line-height:1.15;margin:10px 0 5px}
 .scene-card p{font-size:14px;line-height:1.55;margin-bottom:12px}
 .scene-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px}
 .copy-button,.ai-link,.prompt-details{width:100%;min-height:50px}
 .copy-button{font-size:14px;border-radius:13px}
 .prompt-details{border:1px solid #465442;border-radius:13px;padding:0 12px;background:#131b15;font-size:13px}
 .prompt-details summary{width:100%;min-height:48px;justify-content:space-between;padding:9px 1px}
 .prompt-text{font-size:13px;line-height:1.65;margin:0 0 12px;padding:12px}
}
@media(max-width:380px){.filters{margin-left:-12px;margin-right:-12px;padding-left:12px;padding-right:12px}}

/* Final palette and mobile overrides for the Motion Lab refit. */
@media(max-width:700px){
 .scene-card{border-color:#2d384c!important;background:linear-gradient(148deg,#151c28,#101620 60%,#131521)!important;box-shadow:0 18px 46px #0007!important}
 .scene-preview{aspect-ratio:4/5;border-radius:17px 17px 4px 4px;background:radial-gradient(ellipse at 50% 48%,#463647 0,#201f31 32%,#111722 72%,#090e14)!important}
 .scene-card-copy{padding:15px 13px 15px}
 .prompt-details{border-color:#2c3749!important;background:#0f1520!important;color:#dce1e8}
 .prompt-details summary{color:#c7cede!important}
 .ai-link{border-color:#3c485d!important;background:linear-gradient(140deg,#222b3b,#161c29)!important;color:#f4f1e9!important}
 .ai-link--claude{border-color:#554864!important;background:linear-gradient(140deg,#2a2337,#171c29)!important}
 .preview-label{border-color:#ffc66d55!important;background:#111722d9!important;color:#f0d09b!important}
 .bot-cta{background:radial-gradient(ellipse at 82% 12%,#a994ff1a,transparent 39%),linear-gradient(145deg,#1b1c2a,#121722)!important}
}
/* Remove the old green template skin from every breakpoint. */
.top{background:#090d14d9!important;border-bottom-color:#273043!important}
.top-course{color:#c8ced9!important}
.language-wrap select{background:#111722!important;border-color:#34384b!important}
.hero::before{background:radial-gradient(ellipse at 74% 48%,#ffbd6b18,transparent 38%),radial-gradient(ellipse at 35% 100%,#b5a5ff0c,transparent 46%)!important}
.hero-visual{border-color:#62617d3d!important;background:linear-gradient(145deg,#181d2add,#0d131d99)!important}
.hero-visual::before{background:linear-gradient(120deg,transparent 12%,#ffffff07 30%,transparent 48%),radial-gradient(circle at 50% 50%,#ffbd6b0a,transparent 45%)!important}
.hero-glow{background:radial-gradient(circle,#ffbd6b38 0,#8f7cff2c 25%,transparent 68%)!important}
.route-base,.route-flow{stroke:#ffc66d34!important}.route-flow{filter:drop-shadow(0 0 5px #ffc66d88)!important}
.reel-card{border-color:#6e6378!important;background:linear-gradient(155deg,#292536ee,#171a26f5 65%,#171d27f5)!important}
.reel-card>span{color:#c8bdcf!important}.reel-card-two{border-color:#a994ff80!important}.reel-card-three{border-color:#79e6db70!important}.reel-card-four{border-color:#ffc66d85!important}
.reel-line{background:linear-gradient(90deg,#ffc66dbb,#b9a6ff66)!important;box-shadow:0 0 12px #ffc66d33!important}
.reel-art{background:radial-gradient(circle at 50% 24%,#c0a6ff99,transparent 16%),linear-gradient(155deg,#40334a,#1a202c 65%,#3d3340)!important}
.reel-art i{background:linear-gradient(180deg,#e9e5d8,#b6a7ff88 45%,#79e6db77)!important}
.reel-window{background:linear-gradient(135deg,#183d43,#332c46 52%,#292439)!important}.reel-window i{background:linear-gradient(#ffc66d,#9be0d8)!important;box-shadow:0 0 12px #b6a2ff!important}
.reel-card-four>b{color:#f3e7d3!important}.reel-progress i{background:#ffc66d!important;box-shadow:0 0 12px #ffc66d!important}
.hero-caption{border-color:#ffc66d30!important;background:#10141fdb!important}.hero-caption strong{color:#ffc66d!important;text-shadow:0 0 22px #ffc66d42!important}
.hero-signal{background:#fff3db!important;box-shadow:0 0 20px 6px #ffc66d88!important}
@media(max-width:700px){.preview-label{bottom:72px!important}}
/* Keep the decorative hero glow inside the phone viewport. */
@media(max-width:700px){.hero::before{left:0;right:0}}

/* Real, silent scene clips are loaded as the visitor scrolls to each card. */
.scene-stage>.scene-clip{position:absolute;z-index:4;inset:0;width:100%;height:100%;display:block;object-fit:cover;background:#080d14;border-radius:inherit}
.scene-stage>.preview-open{z-index:6}
.dialog-preview .dialog-video{display:block;width:100%;height:100%;object-fit:cover;background:#080d14}
@media(max-width:700px){
 .scene-dialog{scroll-behavior:smooth;overscroll-behavior:contain}
 .dialog-shell{padding-bottom:24px}
 .dialog-preview-wrap{height:min(34dvh,330px);min-height:180px}
 .dialog-preview,.dialog-preview .scene-preview{height:100%;aspect-ratio:auto;max-height:none}
 .dialog-content{padding-bottom:10px}
 .dialog-copy{min-height:54px}
}
