*{box-sizing:border-box}html,body{margin:0;min-height:100%;color:#101116;font-family:Arial,'PingFang SC','Microsoft YaHei',sans-serif}body{background:#f7f8fc}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button{border:0;background:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #245cff;outline-offset:5px}button:disabled{cursor:wait}.ambient{position:fixed;inset:-4%;background:url('assets/background.png') center/cover no-repeat;z-index:-1;opacity:.67;animation:drift 24s ease-in-out infinite alternate;will-change:transform}.app{max-width:1680px;margin:auto;height:100svh;min-height:720px;padding:24px 3.4% 18px;display:grid;grid-template-rows:40px auto minmax(280px,1fr) 48px;gap:16px}header{display:flex;align-items:center;gap:23px;white-space:nowrap}.brand{font-size:26px;letter-spacing:-1px;font-weight:800}nav{margin-left:auto;display:flex;gap:30px;font-size:14px;font-weight:600}nav button{padding:0}.library{display:grid;grid-template-columns:25% 75%;align-items:center;padding:8px 0 28px;position:relative}.intro{align-self:start;padding-top:22px}h1{font-size:clamp(24px,2.8vw,42px);line-height:1.45;letter-spacing:-1.4px;margin:0;font-weight:750}.intro p{font-size:12px;color:#707581;margin:14px 0}.cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px;align-items:center;height:100%;perspective:1000px}.card-slot{position:relative;aspect-ratio:1.02;max-height:180px;width:100%;transform:skew(-8deg);border:1px solid transparent;border-radius:11px}.card-slot.active{border-color:#9097a9;background:#ffffff28;display:grid;place-items:center}.slot-caption{font-size:11px;color:#646d7d;transform:skew(8deg);text-align:center;line-height:2}.slot-caption b{font-weight:500;color:#1756ff;display:block}.project-card{width:100%;height:100%;border-radius:11px;background:#101114;border:1px solid #777c86;box-shadow:3px 5px 0 #464950,4px 8px 0 #c1c4ca,5px 14px 15px #11121b24;overflow:hidden;padding:0;text-align:left;position:relative;display:block;transition:transform .28s,box-shadow .28s}.project-card:hover{transform:translateY(-9px) rotate(-2deg);box-shadow:3px 5px 0 #464950,4px 8px 0 #c1c4ca,8px 23px 23px #11121b30}.card-art{position:absolute;inset:4% 0 27%;background-image:url('assets/card-art.png');background-size:500% 100%;background-position:var(--art-position) center;background-repeat:no-repeat;opacity:.93}.card-copy{position:absolute;bottom:9%;left:11%;right:5%;transform:skew(8deg)}.card-title{display:block;font-size:clamp(12px,1.35vw,19px);font-weight:600;color:#fff;letter-spacing:.3px}.card-id{display:block;font-size:10px;letter-spacing:1px;color:#6a9aff;margin-top:6px}.screen-area{position:relative;min-height:0;perspective:1000px}.screen{height:100%;position:relative;border:2px solid #9fa3ae;border-radius:14px;background:#05080d;box-shadow:0 0 0 2px #fff9,0 10px 28px #22253520;overflow:hidden;color:#fff}.screen video{width:100%;height:100%;object-fit:cover;display:block;opacity:.95}.inserted-wrap{position:absolute;width:15%;height:clamp(140px,19vh,205px);left:16.5%;top:clamp(-125px,-11vh,-60px);z-index:6;pointer-events:none;overflow:hidden;transform:skew(-12deg);padding-bottom:12px}.inserted{pointer-events:auto;height:100%;box-shadow:0 3px 0 #126aff,0 7px 15px #005cffaa;border-bottom:2px solid #3580ff}.inserted .card-copy{transform:skew(12deg)}.inserted-wrap.hidden{visibility:hidden}.poster-type{position:absolute;left:0;right:0;top:7%;text-align:center;pointer-events:none;text-shadow:0 3px 20px #0009;transition:opacity .3s}.poster-type p{font-size:10px;letter-spacing:3px;color:#a6b8dd;margin:0 0 12px}.poster-type h2{font-size:clamp(28px,3.7vw,56px);margin:0;font-weight:650;letter-spacing:3px}.poster-type em{color:#2166ff;font-style:italic;margin-right:10px}.poster-type span{font-size:13px;letter-spacing:7px;display:block;margin-top:10px}.sample-label{position:absolute;right:20px;top:18px;border:1px solid #71809666;border-radius:5px;padding:5px 8px;color:#b9c5d8;font-size:10px;letter-spacing:.4px}.big-play{position:absolute;left:50%;top:56%;transform:translate(-50%,-50%);width:76px;height:76px;border:2px solid #f7fbff;border-radius:50%;background:#0e1c37a8;display:grid;place-items:center;backdrop-filter:blur(5px);transition:background .2s,scale .2s}.big-play:hover{background:#1856d7a0;scale:1.06}.big-play img{width:34px;height:34px;filter:invert(1);margin-left:4px}.controls{position:absolute;bottom:0;left:0;right:0;display:flex;gap:15px;align-items:center;padding:18px 22px;background:#04080de0;height:62px}.controls button{display:grid;place-items:center;flex:none;padding:4px}.controls img{width:23px;height:23px;filter:invert(1)}.controls output{font-size:12px;font-variant-numeric:tabular-nums}.controls #duration{color:#8792a4}.controls input{flex:1;min-width:0;accent-color:#2369ff;height:3px;cursor:pointer}.screen.playing .big-play,.screen.playing .poster-type{opacity:0;pointer-events:none}.screen:fullscreen{border:0;border-radius:0;width:100%;height:100%;background:#000}.screen:fullscreen video{object-fit:contain}.empty{position:absolute;inset:0;background:#080e19;display:flex;align-items:center;justify-content:center;flex-direction:column}.empty[hidden]{display:none}.empty p{font-size:10px;letter-spacing:4px;color:#729bff}.empty h2{font-size:36px;margin:15px}.empty span{font-size:14px;color:#99a6be}.notice{position:absolute;bottom:80px;left:50%;transform:translateX(-50%);background:#1b273c;padding:12px 22px;border-radius:8px;font-size:13px}.notice[hidden]{display:none}.case-status{display:flex;align-items:center;gap:25px;font-size:13px}.case-status strong{font-size:16px;white-space:nowrap}.case-status p{border-left:1px solid #a8adbc;padding-left:25px;color:#424752;flex:1}.case-status button{font-size:13px;font-weight:600;display:flex;align-items:center;gap:8px}.case-status img{width:17px}.counter{border-left:1px solid #afb2bc;padding-left:20px;font-size:15px;white-space:nowrap}.counter i{color:#989eaa;font-style:normal}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}dialog{border:1px solid #b9c2d7;border-radius:18px;padding:40px;max-width:520px;width:90%;box-shadow:0 20px 100px #18264d30;background:#f7f8fc;color:#151b2a}dialog::backdrop{background:#07112755;backdrop-filter:blur(8px)}dialog h2{font-size:28px}dialog p{line-height:1.8;color:#596378}.eyebrow{font-size:11px;letter-spacing:3px}.fineprint{font-size:12px;border-top:1px solid #ddd;padding-top:18px}dialog a{display:flex;gap:10px;color:#1854e9;font-size:15px}dialog img{width:18px}.close{position:absolute;right:16px;top:16px;padding:8px}.flight{position:fixed!important;z-index:30;pointer-events:none;margin:0;transition:none!important}.app.switching .screen{box-shadow:0 0 0 2px #7aa6ff,0 0 30px #216cff35}.app.is-playing~*{animation-play-state:paused}body:has(.screen.playing) .ambient{animation-play-state:paused;opacity:.4}@keyframes drift{from{transform:translate(-.6%,-.5%) scale(1.01)}to{transform:translate(.6%,.5%) scale(1.05)}}
@media(min-width:1700px){.app{padding-left:40px;padding-right:40px}}
@media(max-width:1050px){.cards{gap:12px}.library{grid-template-columns:24% 76%}.intro p{max-width:140px;line-height:1.8}header{gap:16px}.inserted-wrap{width:17%}.case-status{gap:16px}.case-status p{padding-left:16px}.card-id{font-size:8px}}
@media(max-width:700px){.app{min-height:600px;padding:18px 18px 14px;height:100svh;grid-template-rows:32px 235px minmax(220px,1fr) 54px;gap:16px}.brand{font-size:20px}nav{gap:15px;font-size:12px}.library{display:flex;flex-direction:column;align-items:stretch;padding:0;gap:18px}.intro{padding:0}.intro h1{font-size:25px;line-height:1.3}.intro p{display:none}.cards{display:flex;overflow-x:auto;overflow-y:hidden;gap:17px;padding:7px 12px 19px;height:155px;flex:none;scroll-snap-type:x proximity}.card-slot{flex:0 0 118px;height:116px;scroll-snap-align:center}.card-title{font-size:14px}.card-id{font-size:9px}.inserted-wrap{width:112px;height:117px;top:-65px;left:10%}.poster-type{top:17%}.poster-type p{display:none}.poster-type h2{font-size:28px}.poster-type span{font-size:10px;letter-spacing:4px;margin-top:8px}.sample-label{right:9px;top:9px;font-size:8px}.screen video{object-fit:cover}.big-play{width:56px;height:56px;top:58%}.big-play img{width:26px}.controls{gap:8px;height:49px;padding:12px 10px}.controls img{width:20px}.controls output{font-size:10px}.controls #duration{display:none}.case-status{flex-wrap:wrap;gap:6px 12px;position:relative;align-content:center}.case-status strong{font-size:13px}.case-status p{order:3;width:100%;flex:auto;font-size:10px;margin:0;border:0;padding:0}.case-status button{margin-left:auto;font-size:11px}.counter{font-size:12px;padding-left:10px}.empty h2{font-size:25px}.empty span{font-size:11px}}
@media(prefers-reduced-motion:reduce){.ambient{animation:none}.project-card{transition:none}*{scroll-behavior:auto!important}}
/* Preserve the native proportions of the five generated wireframe covers. */
.card-art{background-size:500% auto}
.inserted-wrap{left:20%;top:clamp(-115px,-9vh,-58px)}
@media(max-width:700px){.inserted-wrap{left:10%;top:-65px}}
.screen.theater{position:fixed;inset:0;z-index:100;border-radius:0;height:100svh;width:100vw;border:0}.screen.theater video{object-fit:contain}.screen-area:has(.theater){perspective:none}.screen-area:has(.theater) .inserted-wrap{display:none}
[hidden]{display:none!important}
.app>*{min-width:0}.library,.cards,.screen-area,.screen{min-width:0;max-width:100%}
@media(max-width:700px){.screen video{object-fit:contain}.poster-type{top:20%}.screen .sample-label{max-width:130px}.intro h1{letter-spacing:-.6px}}
.screen.started video{object-fit:contain}
/* Real React Bits WebGL surface; the image is only the no-WebGL fallback. */
.ambient{inset:0;animation:none;transform:none;opacity:1;will-change:auto;pointer-events:none}
#react-bits-background{position:absolute;inset:0;opacity:.61;transition:opacity 1.1s ease}
#react-bits-background:has(canvas[data-renderer="webgl2"]){background:#f7f8fc}
.ambient:has(canvas[data-renderer="webgl2"]){background-image:none;background-color:#f7f8fc}
body:has(.screen.playing) .ambient{opacity:1}
body:has(.screen.playing) #react-bits-background{opacity:.38}
.project-card{transition:transform .42s cubic-bezier(.22,1,.36,1),box-shadow .42s cubic-bezier(.22,1,.36,1)}
.project-card.flight{transform-origin:50% 50%;will-change:transform;backface-visibility:hidden}
.in-flight{visibility:hidden!important}
.media-transition{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden;background:#05080d}
.media-transition>img{width:100%;height:100%;display:block}
.media-transition .poster-type{opacity:1!important}
.media-transition .poster-type h2{color:#fff}
.screen .controls,.screen .sample-label{z-index:4}
.screen .big-play{z-index:3}
.app.switching .big-play{opacity:0;pointer-events:none}
.app.switching .screen{box-shadow:0 0 0 2px #fff9,0 10px 28px #22253520}
.screen{transition:box-shadow .4s ease}
@media(prefers-reduced-motion:reduce){#react-bits-background{transition:none}.project-card{transition:none}}
/* Keep the approved pearl-white canvas while letting shader folds remain visible. */
#react-bits-background{opacity:.46}
body:has(.screen.playing) #react-bits-background{opacity:.28}

/* Selected Pattern Waves: keep project cards and video visually dominant. */
#react-bits-background{opacity:.36}
body:has(.screen.playing) #react-bits-background{opacity:.18}

/* Narrow physical aperture built into the video frame's top edge. */
.screen-area:has(#empty[hidden]) .socket-wrap{visibility:hidden}
.socket-wrap{position:absolute;z-index:8;left:20%;top:-7px;width:15%;height:24px}
.card-socket{position:relative;display:block;width:100%;height:20px;padding:0;border-radius:7px;background:linear-gradient(#aeb8cb,#f3f5fa 45%,#657085);box-shadow:0 2px 5px #0006,inset 0 1px 0 #fff;cursor:pointer}
.socket-mouth{position:absolute;left:7px;right:7px;top:6px;height:7px;border-radius:4px;background:#02050a;box-shadow:inset 0 2px 3px #000,0 1px 0 #edf4ff,0 2px 5px #347aff44}
.socket-label{position:absolute;top:29px;left:0;right:0;text-align:center;font-size:9px;letter-spacing:2px;color:#93a5c4;white-space:nowrap;pointer-events:none}
.screen-area:not(:has(#empty:not([hidden]))) .socket-label{visibility:hidden}
.screen-area:not(:has(#empty:not([hidden]))) .socket-mouth{box-shadow:inset 0 2px 3px #000,0 1px 0 #8cabff,0 2px 7px #347affaa}
.card-socket:hover,.card-socket.drag-over{box-shadow:0 0 0 2px #5586ff,0 0 15px #3976ff55}
.screen-area:has(.theater) .socket-wrap{display:none}
@media(max-width:700px){.socket-wrap{left:10%;width:112px}.socket-label{font-size:8px;top:24px}}

/* Insertion changes location, never the card silhouette. */
.inserted-wrap{padding-bottom:0;overflow:visible;transform:skew(-8deg)}
.inserted .card-copy{transform:skew(8deg)}
.inserted:hover{transform:none}

.ambient:has(.acid-squares-container){background-image:none;background-color:#f7f8fc}

.ambient:has(.prism){background-image:none;background-color:#f7f8fc}

.ambient:has(.side-rays){background-image:none;background-color:#f7f8fc}

.ambient:has(.pixel-blast-container){background-image:none;background-color:#f7f8fc}

.ambient:has(.grainient-container){background-image:none;background-color:#f7f8fc}

/* Grainient: clearer motion while retaining the cool blue/silver palette. */
#react-bits-background:has(.grainient-container){opacity:.9}
body:has(.screen.playing) #react-bits-background:has(.grainient-container){opacity:.28}

.ambient:has(.beams-container){background-image:none;background-color:#f7f8fc}
#react-bits-background:has(.beams-container){opacity:.88}
body:has(.screen.playing) #react-bits-background:has(.beams-container){opacity:.28}

.ambient:has(.prismatic-burst-container){background-image:none;background-color:#f7f8fc}
#react-bits-background:has(.prismatic-burst-container){opacity:.75}
body:has(.screen.playing) #react-bits-background:has(.prismatic-burst-container){opacity:.28}

.ambient:has(.galaxy-container){background-image:none;background-color:#f7f8fc}
#react-bits-background:has(.galaxy-container){opacity:.75}
body:has(.screen.playing) #react-bits-background:has(.galaxy-container){opacity:.28}

.ambient:has(.waves){background-image:none;background-color:#f7f8fc}
#react-bits-background:has(.waves){opacity:.55}
body:has(.screen.playing) #react-bits-background:has(.waves){opacity:.22}

.ambient:has(.letter-glitch){background-image:none;background-color:#f7f8fc}
#react-bits-background:has(.letter-glitch){opacity:.8}
body:has(.screen.playing) #react-bits-background:has(.letter-glitch){opacity:.38}

/* Two independent layers: beam volume below transparent character texture. */
#react-bits-background:has(.combined-background){opacity:1;background:#f7f8fc}
.combined-background,.beam-layer,.letter-layer{position:absolute;inset:0}
.beam-layer{opacity:.74;transition:opacity 1.1s ease}
.letter-layer{opacity:.8;transition:opacity 1.1s ease}
body:has(.screen.playing) .beam-layer{opacity:.22}
body:has(.screen.playing) .letter-layer{opacity:.38}
@media(prefers-reduced-motion:reduce){.beam-layer,.letter-layer{transition:none}}
body:has(.screen.playing) #react-bits-background:has(.combined-background){opacity:1}

/* Full-screen beams, with stronger visual weight on the left and a soft right tail. */
.beam-layer{mask-image:linear-gradient(to right,#000 0%,#000 25%,rgba(0,0,0,.7) 55%,rgba(0,0,0,.35) 100%);-webkit-mask-image:linear-gradient(to right,#000 0%,#000 25%,rgba(0,0,0,.7) 55%,rgba(0,0,0,.35) 100%)}

/* Approved one-screen shell, now organized around real project categories. */





.case-preview{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#060c17;overflow:hidden}
.case-preview:before{content:"";position:absolute;inset:0;background-image:linear-gradient(90deg,#060c17ed,#060c17b8),var(--preview-image);background-position:center;background-size:cover;opacity:.8}
.preview-content{position:relative;width:min(680px,64%);margin-left:12%;padding:30px 0}
.preview-category{font-size:10px;letter-spacing:3px;color:#8caeea;margin:0 0 16px}
.preview-content h2{font-size:clamp(28px,3vw,46px);font-weight:600;letter-spacing:1px;margin:0 0 16px}
.preview-task{font-size:clamp(15px,1.5vw,22px);color:#d6e1f4;margin:0 0 24px}
.preview-content ol{display:flex;list-style:none;gap:20px;margin:0;padding:0}
.preview-content li{flex:1;line-height:1.65;font-size:13px;border-top:1px solid #47628c;padding-top:12px;color:#c1cce0}
.preview-content li span{display:block;font-size:10px;letter-spacing:2px;color:#649aff;margin-bottom:7px}
.preview-result{font-size:12px;color:#8b9bb5;margin:24px 0 0;line-height:1.8}
.twin-preview:not(.art-cover):before{background-image:linear-gradient(125deg,#07111d 15%,#0d203d88),repeating-linear-gradient(90deg,transparent 0 69px,#5481c41c 70px 71px),repeating-linear-gradient(0deg,transparent 0 69px,#5481c41c 70px 71px);transform:perspective(700px) rotateX(22deg) scale(1.2)}
@media(max-width:1050px) and (min-width:701px){.intro{padding-top:6px}.intro h1{font-size:27px}.intro p{margin:8px 0}}
@media(max-width:700px){.app{grid-template-rows:32px 260px minmax(310px,1fr) 58px;min-height:760px}.library{gap:10px}.intro{width:100%}.preview-content{width:85%;margin:45px 0 0;padding:15px 0}.preview-category{font-size:8px;margin-bottom:10px}.preview-content h2{font-size:25px;margin-bottom:10px}.preview-task{font-size:13px;margin-bottom:15px}.preview-content ol{gap:10px}.preview-content li{font-size:10px;padding-top:7px}.preview-result{font-size:10px;margin-top:15px}}


.collection-switch{display:flex;gap:4px;flex-wrap:wrap;margin-top:16px}
.collection-switch button{padding:8px 9px;font-size:12px;border:1px solid transparent;border-radius:6px;white-space:nowrap;color:#5d6678;background:#ffffff50}
.collection-switch button[aria-pressed="true"]{color:#174fc8;background:#edf3ff;border-color:#a4b8e0;box-shadow:0 2px 8px #3356a510}
.collection-switch small{font-size:9px;margin-left:4px;opacity:.6}
@media(max-width:1050px) and (min-width:701px){.collection-switch{margin-top:8px;gap:2px}.collection-switch button{font-size:10px;padding:6px}.collection-switch small{display:none}}
@media(max-width:700px){.collection-switch{margin-top:12px}.collection-switch button{font-size:11px;padding:7px 10px}}

.brand{display:inline-flex;align-items:center;gap:8px;flex:none;white-space:nowrap;letter-spacing:0;font-size:20px}
.company-mark{display:block;width:32px;height:32px;filter:contrast(1.15);mix-blend-mode:multiply}
.intro{min-width:0;width:100%}
#intro-title{font-size:34px;line-height:1.2;letter-spacing:0}
@media(max-width:700px){.brand{font-size:16px}.company-mark{width:27px;height:27px}#intro-title{font-size:25px}}

#category-animation:empty{display:none}
#category-animation{margin-top:16px;max-width:100%}
.intro:has(.rubber-segment) .collection-switch{display:none}
#category-animation .rubber-segment{max-width:100%;box-shadow:inset 0 1px 2px #30364018,0 1px 0 #ffffffb3}
#category-animation small{font-size:9px;margin-left:4px;opacity:.65}
#category-animation .rubber-segment__item:focus-visible{outline:2px solid #245cff;outline-offset:2px}
@media(max-width:1050px) and (min-width:701px){#category-animation{margin-top:8px}#category-animation .rubber-segment{--rs-font:10px!important;--rs-pad:6px!important}#category-animation small{font-size:8px;margin-left:2px}}
@media(max-width:700px){#category-animation{margin-top:12px}#category-animation .rubber-segment{--rs-font:11px!important;--rs-pad:10px!important}}

#category-animation .rubber-segment__thumb{background:linear-gradient(180deg,#25282e,#111318);box-shadow:inset 0 1px 0 #ffffff18}

/* Original transparent placeholder, with quieter silver edging and refined type. */
.card-slot.active{border:1px solid #9099aa99;background:#ffffff20;box-shadow:inset 0 1px 0 #ffffff80;overflow:hidden}
.slot-caption{font-size:10px;color:#697282;transform:skew(8deg);text-align:center;line-height:1.5}
.slot-code{display:block;letter-spacing:1.2px;font-variant-numeric:tabular-nums}
.slot-caption b{display:block;margin-top:7px;font-size:11px;font-weight:500;letter-spacing:.5px;color:#4777c7}
@media(max-width:700px){.slot-caption{font-size:9px}.slot-caption b{font-size:10px;margin-top:6px}}

/* Art-directed case film covers: imagery leads, typography stays in the dark field. */
.case-preview.art-cover{background:#10151e}
.case-preview.art-cover:before{background-image:var(--preview-image);opacity:1;background-size:contain;background-position:right center;background-repeat:no-repeat}
.art-cover .preview-content{position:absolute;left:7%;bottom:12%;width:44%;margin:0;padding:0;text-shadow:0 2px 22px #0008}
.art-cover .preview-category{font-size:9px;letter-spacing:3px;color:#b7c8e1;margin-bottom:18px}
.art-cover .preview-content h2{font-size:clamp(30px,3.3vw,52px);letter-spacing:-1px;font-weight:550;margin-bottom:18px}
.art-cover .preview-task{font-size:clamp(12px,1.2vw,17px);color:#bbc4d3;line-height:1.7;margin:0;max-width:24em}
.art-cover .preview-steps,.art-cover .preview-result{display:none}
@media(max-width:700px){.case-preview.art-cover:before{background-position:center top;background-image:var(--preview-image)}.art-cover .preview-content{left:7%;bottom:10%;width:86%;margin:0}.art-cover .preview-content h2{font-size:30px}.art-cover .preview-category{font-size:8px;margin-bottom:12px}.art-cover .preview-task{font-size:12px}}

/* Cover-only grading; original assets and playback stay unchanged. */
.case-preview.art-cover:before{filter:saturate(.78) contrast(1.06) brightness(.86)}
.case-preview.art-cover:after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 58% 44%,transparent 30%,#040b1770 100%),linear-gradient(0deg,#06102045,transparent 48%)}
.art-cover .preview-content{z-index:1}
.screen .big-play{top:50%;width:72px;height:72px;border:1px solid #d7e3f0b3;background:#111c2ca8;backdrop-filter:blur(8px);box-shadow:inset 0 1px 0 #ffffff30,0 8px 32px #0005}
.screen .big-play:hover{background:#254b768c;box-shadow:0 0 0 7px #a8c9ef12,0 8px 32px #0005}
.screen .big-play:focus-visible{outline:2px solid #b7d4ff;outline-offset:5px}
.screen .big-play img{width:29px;height:29px}
.screen .notice{z-index:5}
@media(max-width:700px){.screen .big-play{width:56px;height:56px;top:43%}.screen .big-play img{width:25px;height:25px}}

/* Case stage: editorial copy left, a dedicated media viewport right. */
.screen{--copy-width:40%}
.case-preview,.case-preview.art-cover{background:#0e131c}
.case-preview:before,.case-preview.art-cover:before{left:var(--copy-width);right:0;top:0;bottom:0;background-size:cover;background-position:center;opacity:1}
.case-preview.art-cover:after{left:var(--copy-width);background:linear-gradient(90deg,#0e131c22,transparent 18%),linear-gradient(0deg,#06102035,transparent 45%)}
.preview-content,.art-cover .preview-content{position:absolute;left:0;top:22%;bottom:0;width:var(--copy-width);margin:0;padding:clamp(24px,3.2vw,52px);display:flex;flex-direction:column;justify-content:center;text-shadow:none;z-index:1}
.preview-category,.art-cover .preview-category{font-size:10px;letter-spacing:2px;color:#8fa4c4;margin:0 0 20px}
.preview-content h2,.art-cover .preview-content h2{font-size:clamp(27px,2.9vw,44px);font-weight:600;line-height:1.2;letter-spacing:-.8px;margin:0 0 20px;text-wrap:balance}
.preview-task,.art-cover .preview-task{font-size:clamp(14px,1.1vw,17px);line-height:1.85;color:#c1cbd9;margin:0;max-width:25em;text-wrap:pretty}
.preview-content .preview-steps{display:none}
.preview-content .preview-result,.art-cover .preview-result{display:block;border-top:1px solid #a5b9d326;padding-top:16px;margin:24px 0 0;font-size:12px;line-height:1.8;color:#899bb5}
.screen .big-play{left:calc(var(--copy-width) + (100% - var(--copy-width))/2);top:50%}
.screen>video{position:absolute;left:var(--copy-width);top:0;width:calc(100% - var(--copy-width));height:100%;object-fit:contain}
.screen .controls{left:var(--copy-width)}
.screen:fullscreen>video,.screen.theater>video{left:0;width:100%}
.screen:fullscreen .controls,.screen.theater .controls{left:0}
.screen:fullscreen .big-play,.screen.theater .big-play{left:50%}
@media(max-width:700px){
 .app{height:auto;min-height:100svh;grid-template-rows:32px 260px minmax(520px,1fr) 58px}
 .screen{--copy-width:0%;--media-height:52%}
 .case-preview:before,.case-preview.art-cover:before{left:0;top:0;bottom:auto;height:var(--media-height);background-size:cover;background-position:center}
 .case-preview.art-cover:after{left:0;bottom:auto;height:var(--media-height)}
 .preview-content,.art-cover .preview-content{left:0;top:var(--media-height);bottom:0;width:100%;padding:24px;justify-content:center}
 .preview-category,.art-cover .preview-category{font-size:9px;margin-bottom:12px}
 .preview-content h2,.art-cover .preview-content h2{font-size:27px;margin-bottom:12px}
 .preview-task,.art-cover .preview-task{font-size:13px;line-height:1.75}
 .preview-content .preview-result,.art-cover .preview-result{font-size:11px;margin-top:16px;padding-top:12px}
 .screen .big-play{left:50%;top:calc(var(--media-height)/2)}
 .screen>video{left:0;width:100%;height:var(--media-height)}
 .screen .controls{left:0;bottom:auto;top:calc(var(--media-height) - 49px)}
 .screen:fullscreen>video,.screen.theater>video{height:100%}
 .screen:fullscreen .controls,.screen.theater .controls{top:auto;bottom:0}
 .screen:fullscreen .big-play,.screen.theater .big-play{top:50%}
}


/* A single editorial title survives transition cloning without ID-dependent styles. */
.case-lighting{position:absolute;left:0;top:0;bottom:0;width:var(--copy-width);pointer-events:none;z-index:0}
.case-spotlight{width:100%;height:100%;padding:0!important;border-radius:0!important;--spotlight-card-surface:#0b0e14!important;--spotlight-card-border:transparent!important;box-shadow:none!important;background:radial-gradient(ellipse at 0% 100%,#344a804d,transparent 65%),linear-gradient(145deg,#161c2c,#0c0f17 65%)}
.case-surface-glow{position:absolute;width:95%;height:55%;left:-35%;bottom:-35%;border-radius:50%;background:#6486ff;filter:blur(65px);opacity:.23;transform:rotate(-30deg)}
.preview-content,.art-cover .preview-content{top:20%;padding:clamp(26px,3.2vw,56px);justify-content:center}
.preview-category,.art-cover .preview-category{font-size:11px;color:#98a7bc;letter-spacing:1px;margin-bottom:24px}
.preview-content h2,.art-cover .preview-content h2{white-space:pre-line;font-size:clamp(30px,3.1vw,58px);font-weight:500;line-height:1.22;letter-spacing:-1.8px;margin:0 0 24px;background:linear-gradient(115deg,#fff 25%,#afc2e4 100%);background-clip:text;-webkit-background-clip:text;color:transparent}
.preview-task,.art-cover .preview-task{font-size:14px;font-weight:400;line-height:1.85;color:#aeb8c9;max-width:30em;text-wrap:balance}
.preview-content .preview-result,.art-cover .preview-result{display:none}
@media(max-width:1050px) and (min-width:701px){.preview-content h2,.art-cover .preview-content h2{font-size:32px;letter-spacing:-1px}.preview-task,.art-cover .preview-task{font-size:12px}}
@media(max-width:700px){.case-lighting{top:var(--media-height);width:100%}.preview-content,.art-cover .preview-content{top:var(--media-height);padding:24px}.preview-content h2,.art-cover .preview-content h2{font-size:32px;letter-spacing:-1px;margin-bottom:16px}.preview-category,.art-cover .preview-category{font-size:10px;margin-bottom:16px}.preview-task,.art-cover .preview-task{font-size:13px}}

/* React Bits Flux Lines, confined to the editorial panel. */
.case-lighting{overflow:hidden;background:#0b101b}
.case-lighting:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0b101b00 5%,#0b101b45 40%,#0b101b99 100%);pointer-events:none}
.case-lighting .flux-lines-container{width:100%;height:100%;opacity:.8}

/* Shared dark ground + overlapping fades remove the editorial/media seam. */
.case-preview,.case-preview.art-cover{background:#0b101b}
@media(min-width:701px){
 .case-preview:before,.case-preview.art-cover:before{
  -webkit-mask-image:linear-gradient(to right,transparent 0%,#0006 9%,#000d 18%,#000 27%);
  mask-image:linear-gradient(to right,transparent 0%,#0006 9%,#000d 18%,#000 27%);
 }
 .case-lighting{
  width:calc(var(--copy-width) + 10%);
  -webkit-mask-image:linear-gradient(to right,#000 0%,#000 64%,#000b 78%,transparent 100%);
  mask-image:linear-gradient(to right,#000 0%,#000 64%,#000b 78%,transparent 100%);
 }
 .case-preview.art-cover:after{
  left:calc(var(--copy-width) - 3%);
  background:linear-gradient(to right,#0b101b66,transparent 26%),linear-gradient(0deg,#06102025,transparent 45%);
 }
}
@media(max-width:700px){
 .case-preview:before,.case-preview.art-cover:before{
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 72%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 0%,#000 72%,transparent 100%);
 }
 .case-lighting{
  top:calc(var(--media-height) - 7%);width:100%;
  -webkit-mask-image:linear-gradient(to bottom,transparent,#000 22%);
  mask-image:linear-gradient(to bottom,transparent,#000 22%);
 }
 .case-preview.art-cover:after{background:none}
}

/* Deeper media grading, retaining the blue highlights and image detail. */
.case-preview.art-cover:before{filter:saturate(.74) contrast(1.08) brightness(.72)}
.case-preview.twin-preview.art-cover:before{
 background-color:#0b101b;
 background-image:linear-gradient(90deg,#0b101b 0%,transparent 20% 80%,#0b101b 100%),var(--preview-image);
 background-size:100% 100%,contain;
 background-position:center;
 filter:saturate(.94) brightness(.9);
}
@media(max-width:700px){
 .case-preview.twin-preview.art-cover:before{
  background-image:linear-gradient(0deg,#0b101b 0%,transparent 14% 96%,#0b101b 100%),var(--preview-image);
 }
}
.screen>video{filter:saturate(.86) contrast(1.04) brightness(.84)}
.screen:fullscreen>video,.screen.theater>video{filter:none}

/* Keep the editorial panel when the case has a real film. */
.case-preview.has-video{background:transparent;pointer-events:none}
.screen:not(.started)>.controls,
.screen:not(.started):has(#case-preview.has-video)>.sample-label{display:none}
.screen.started .case-preview.has-video:before,.screen.started .case-preview.has-video:after{opacity:0}
.screen:fullscreen .case-preview.has-video,.screen.theater .case-preview.has-video{display:none}
/* Reserve control space instead of covering the film's bilingual subtitles. */
.screen.started>video{height:calc(100% - 62px)}
@media(max-width:700px){.screen.started>video{height:calc(var(--media-height) - 49px)}.screen.started:fullscreen>video,.screen.started.theater>video{height:calc(100% - 49px)}}

/* The library must reserve its actual content height before sizing the film.
   Fractional rows allowed the marquee/category controls to spill into the stage. */
@media(min-width:701px){
 .cards{height:auto;align-self:center}
 .library{min-height:0}
}
@media(min-width:701px) and (max-height:850px){
 .intro{padding-top:8px}
 .intro p{margin:10px 0}
 #category-animation{margin-top:12px}
 .preview-content,.art-cover .preview-content{padding:22px 28px;top:18%}
 .preview-category,.art-cover .preview-category{margin-bottom:16px}
 .preview-content h2,.art-cover .preview-content h2{font-size:clamp(28px,4.6svh,39px);margin-bottom:16px;letter-spacing:-1px}
 .preview-task,.art-cover .preview-task{font-size:13px;line-height:1.65}
}
.header-products{
 --item-padding:10px;
 display:flex;align-items:center;gap:2px;padding:3px;
 border:1px solid #bbc8db;border-radius:8px;
 background:#f8faffed;
 box-shadow:0 1px 2px #2437530d,inset 0 1px #fff;
}
.header-products-label,.header-products a{
 display:inline-flex;align-items:center;min-height:28px;padding-inline:var(--item-padding);border-radius:4px;
}
.header-products-label{color:#244b83;background:#e5edfb;font-weight:700}
.header-products a{color:#202c40}
.header-products a:hover,.header-products a:focus-visible{background:#edf2fa;color:#204d96}
.header-products a:focus-visible{outline:2px solid #5377b4;outline-offset:-2px}
.app>header nav{align-items:center;gap:20px}
.header-actions{display:flex;align-items:center;gap:16px}
.header-actions .language-switch{
 min-width:34px;padding:4px 7px;border:1px solid #bbc8db;border-radius:5px;
 color:#244b83;background:#f8faffed;font-size:inherit;line-height:1.2;
}
.header-actions .language-switch:hover{background:#e5edfb}
.header-actions button:focus-visible,.info-dialog button:focus-visible,.contact-email:focus-visible{outline:2px solid #5377b4;outline-offset:3px}
.info-dialog{
 width:min(540px,calc(100% - 32px));max-height:calc(100svh - 32px);
 padding:clamp(23px,4vw,40px);overflow:auto;border-color:#becbe0;
 background:linear-gradient(160deg,#fff,#f4f7fd 75%);
}
.info-dialog .dialog-company{margin:0 32px 12px 0;font-size:11px;letter-spacing:.09em;text-transform:uppercase;font-weight:700;color:#466592}
.info-dialog h2{margin:0 32px 15px 0;font-size:clamp(25px,4vw,34px);line-height:1.12;letter-spacing:-.025em}
.info-dialog p{margin:12px 0;font-size:14px;line-height:1.7}
.info-dialog .dialog-lead{color:#23334e;font-size:17px;font-weight:650}
.dialog-partners,.dialog-contact{margin-top:20px;padding-top:16px;border-top:1px solid #d3deee}
.dialog-partners h3{margin:0;font-size:13px;color:#23334e}
.dialog-partners p{margin:7px 0 0}
.dialog-contact h3{margin:0;font-size:16px;color:#23334e}
.dialog-contact p{margin:7px 0 0}
.info-dialog .close{display:grid;place-items:center;width:34px;height:34px;background:#eaf0f9;border-radius:50%}
.info-dialog .close:hover{background:#dce8fa}
.info-dialog .contact-email{
 align-items:center;justify-content:space-between;gap:14px;margin-top:12px;padding:12px 14px;
 border:1px solid #c8d8ef;border-radius:8px;background:#e9f1ff;color:#204d96;
}
.contact-email span{min-width:0}
.contact-email .email-label{display:block;margin-bottom:2px;font-size:11px;color:#426087}
.contact-email strong{font-size:clamp(12px,3vw,15px);overflow-wrap:anywhere}
.contact-email img{flex:none}
.info-dialog .contact-email:hover{background:#e0ecff}
html[lang=en] #intro-title,html[lang=en] .headline-scroller{font-size:8.6cqi}
html[lang=en] .card-title{font-size:clamp(10px,1.12vw,16px);line-height:1.12;letter-spacing:0;overflow-wrap:anywhere}
html[lang=en] .preview-content h2{font-size:clamp(23px,2.55vw,43px);letter-spacing:-.04em}
html[lang=en] .app>.case-status strong{white-space:normal}
.app:has(#case-preview:not([hidden]))>.case-status #case-description{display:none}
.app:has(#case-preview:not([hidden]))>.case-status #eject{margin-inline-start:auto}
@media(max-width:900px){
 .header-products{--item-padding:8px}
 .app>header nav{gap:14px;font-size:12px}
 .header-actions{gap:12px}
}
/* Let the header and case shelf size to their contents on phones. */
@media(max-width:700px){
 .app{grid-template-rows:auto auto minmax(520px,1fr) 58px}
 .app>header{flex-wrap:wrap;row-gap:6px}
 .app>header nav{flex-basis:100%;margin-left:0;gap:8px 12px;flex-wrap:wrap}
 .header-actions{margin-left:auto}
 .header-products{--item-padding:5px}
 .library{padding-bottom:24px}
 html[lang=en] #intro-title,html[lang=en] .headline-scroller{font-size:min(25px,8.6cqi)}
 html[lang=en] .card-title{font-size:12px}
}
@media(max-width:390px){
 .header-products{gap:1px;padding:2px}
 .app>header nav{font-size:11px}
}
@media(max-width:430px){
 .header-products{flex-basis:100%;justify-content:space-between;--item-padding:7px}
 .app>header nav{justify-content:flex-end;gap:5px 12px}
}

.site-footer{
 max-width:1680px;margin:auto;padding-inline:3.4%;color:#4d596c;font-size:12px;
}
.site-footer-inner{
 display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
 gap:8px 18px;min-height:58px;padding-block:8px;border-top:1px solid #cbd3e0;
}
.site-footer-links,.privacy-notice,.cookie-actions{
 display:flex;align-items:center;gap:10px;
}
.site-footer-links{gap:14px}
.site-footer-links button,.site-footer-links a{
 padding:6px 0;color:#294568;text-underline-offset:3px;
}
.site-footer-links :is(button,a):hover{text-decoration:underline}
.privacy-notice{flex-wrap:wrap}
.privacy-notice[hidden]{display:none}
.privacy-notice p{margin:0;line-height:1.5}
.cookie-actions button{
 padding:6px 12px;min-height:30px;border:1px solid #aebed5;border-radius:5px;
 background:#f8faff;color:#254978;font-weight:650;white-space:nowrap;
}
.cookie-actions button:hover{background:#e5edfb}
.privacy-dialog .cookie-actions{justify-content:flex-end;margin-top:20px}
.privacy-dialog .cookie-actions button{min-height:40px;padding-inline:16px}
@media(min-width:901px){
 .app{height:calc(100svh - 58px)}
}
@media(max-width:700px){
 .site-footer{padding-inline:18px}
 .privacy-notice{order:-1;flex-basis:100%;justify-content:space-between}
}

body[data-collection-page] #intro-title{font-size:32px;line-height:1.14;letter-spacing:0}
body:not([data-collection-page]) #intro-title{font-size:30px;line-height:1.18}
body:not([data-collection-page]) .slot-caption strong{display:block;line-height:1.25;padding:3px 5px;color:#27334b}
@media(min-width:701px){body:not([data-collection-page]) .cards{grid-template-columns:repeat(auto-fit,minmax(0,185px));justify-content:start}}
@media(max-width:700px){body:not([data-collection-page]) #intro-title{font-size:24px}}
body[data-collection-page] .card-art{inset:0 0 34%;background:var(--building-art) center / cover no-repeat;opacity:1}
body[data-collection-page] .card-copy{left:9%;right:6%;bottom:5%}
body[data-collection-page] .card-title{background:#101114;color:#fff}
body[data-collection-page] .slot-caption strong{display:block;color:#293547;font-size:12px;line-height:1.2;padding:3px 6px}
body[data-collection-page] .intro p{display:block;line-height:1.5;max-width:34ch;margin:10px 12px 0 0}
@media(min-width:701px){
 body[data-collection-page] .cards{grid-template-columns:repeat(3,minmax(0,180px));justify-content:center}
}
@media(max-width:700px){
 body[data-collection-page] #intro-title{font-size:25px}
 body[data-collection-page] .app>header{flex-wrap:nowrap}
 body[data-collection-page] .app>header nav{flex:1;justify-content:flex-end}
 body[data-collection-page] .intro p{max-width:none}
 body[data-collection-page] .cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;height:auto;overflow:visible;padding:6px 5px 14px}
 body[data-collection-page] .card-slot{height:auto;min-width:0;aspect-ratio:1.04}
 body[data-collection-page] .card-title{font-size:12px}
}
