@font-face{font-family:Manrope;src:url('assets/manrope-cyrillic.woff2') format('woff2');font-display:swap;unicode-range:U+0400-052F,U+20BD,U+2116}
@font-face{font-family:Manrope;src:url('assets/manrope-latin.woff2') format('woff2');font-display:swap}
:root{font-family:Manrope,Arial,sans-serif;color:#16395e;background:#dcecf7;scroll-behavior:smooth;overflow-x:clip}
*{box-sizing:border-box}body{margin:0;min-width:320px;overflow-x:clip}button,a{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #176ab7;outline-offset:4px}::selection{background:#ffd553;color:#17395f}
.site-wrap{width:min(100% - 48px,1060px);margin:auto}
.site-header{height:86px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:5px;font-size:25px;font-weight:900;letter-spacing:-.07em;white-space:nowrap}.brand img{width:42px;height:42px;margin-right:3px}.brand-dot{color:#2878c2;margin-left:-5px}.site-header nav{display:flex;gap:34px;font-size:13px;font-weight:800}.header-link{font-size:12px;font-weight:800}.header-link span{margin-left:7px}.site-header a:hover{color:#2878c2}
.hero{position:relative;margin-top:12px}.hero-panel{position:relative;min-height:560px;display:grid;grid-template-columns:1.17fr .83fr;align-items:center;gap:5px;padding:55px 52px 52px 70px;border-radius:28px;background:#2a78c3;color:#fff;overflow:hidden}.hero-panel:before{content:"";position:absolute;right:-25px;top:-25px;width:145px;height:145px;background:#3b89d2;clip-path:polygon(0 0,100% 0,100% 100%,80% 100%,80% 80%,60% 80%,60% 60%,40% 60%,40% 40%,20% 40%,20% 20%,0 20%)}.hero-text{position:relative;z-index:2}.hero-intro{font-size:15px;font-weight:800;margin:0 0 20px}.hero h1{display:flex;flex-direction:column;align-items:flex-start;margin:0;color:#fff;line-height:.8}.hero h1 span:first-child{font:400 clamp(95px,11vw,152px)/.86 Georgia,'Times New Roman',serif;letter-spacing:-.1em}.hero h1 span:last-child{margin-left:48px;font:900 clamp(85px,9vw,126px)/.85 'Courier New',monospace;letter-spacing:-.145em}.hero-lead{max-width:550px;font-size:23px;font-weight:900;line-height:1.3;letter-spacing:-.05em;margin:30px 0 10px}.hero-copy{max-width:455px;font-size:14px;line-height:1.6;color:#e2f2ff;margin:0 0 29px}.hero-button{display:inline-flex;align-items:center;gap:26px;padding:13px 20px;border-radius:8px;background:#fff;color:#174e89;font-size:12px;font-weight:900}.hero-button:hover{background:#fff0bd}.hero-scene{position:relative;align-self:stretch;min-height:440px}.hero-scene:before{content:"";position:absolute;top:15%;left:18%;width:78%;height:66%;border-radius:24px;background:#79b9e6;transform:rotate(7deg)}.hero-sun{position:absolute;z-index:2;width:min(100%,340px);height:auto;right:0;top:23px;image-rendering:pixelated;transform:rotate(-5deg)}.hero-cloud{position:absolute;z-index:3;width:245px;height:auto;left:-10px;bottom:10px;transform:rotate(-8deg);image-rendering:pixelated}.scene-block{position:absolute;z-index:1;width:20px;height:20px;background:#d4ebfb}.scene-block-one{left:4%;top:17%;box-shadow:22px 0 #d4ebfb,0 22px #d4ebfb}.scene-block-two{right:6%;bottom:19%;width:14px;height:14px;box-shadow:-18px 0 #d4ebfb,-18px -18px #d4ebfb}.scene-block-three{left:33%;bottom:5%;width:12px;height:12px;background:#ffd553}
.about{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px;align-items:stretch;margin:82px 34px 0}.about-main{position:relative;min-height:300px;padding:44px 50px 42px;border-radius:21px;background:#fff;box-shadow:8px 8px 0 #c8e6f6}.about-main:before{content:"";position:absolute;right:28px;top:28px;width:13px;height:13px;background:#ffd553;box-shadow:17px 0 #ffd553,0 17px #ffd553}.about-main h2{font-size:clamp(30px,4vw,43px);line-height:1.05;letter-spacing:-.07em;margin:0 0 22px}.about-main p{max-width:630px;font-size:14px;line-height:1.65;margin:0 0 13px}.about-signature{display:inline-block;margin-top:15px;color:#2273bd;font:700 12px 'Courier New',monospace}.about-side{position:relative;margin-top:-32px;margin-bottom:28px;padding:17px 22px 27px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:20px;background:#b8def5;transform:rotate(3deg);box-shadow:6px 7px 0 #8cc1e7}.about-side img{width:115px;height:136px;object-fit:contain;transform:rotate(-7deg)}.about-side p{font-size:14px;line-height:1.35;text-align:center;margin:6px 0 0}.about-side strong{font-size:20px;letter-spacing:-.04em}
.projects{position:relative;margin-top:105px}.projects-header{text-align:center}.projects-header h2{font-size:clamp(39px,5vw,60px);line-height:1;letter-spacing:-.075em;margin:0}.projects-header p{font-size:14px;color:#527391;margin:13px 0 0}.carousel{position:relative;height:540px;margin-top:18px}.carousel-stage{position:relative;width:100%;height:100%;overflow:hidden;perspective:1200px}.carousel-card{position:absolute;left:50%;top:55%;width:330px;height:400px;padding:5px;border:0;border-radius:16px;background:#fff;box-shadow:8px 10px 0 #a9cde5;transform-origin:center;opacity:0;pointer-events:none}.carousel-stage.is-ready .carousel-card{transition:transform .62s cubic-bezier(.22,1,.36,1),opacity .38s ease,filter .62s ease}.carousel-card img{display:block;width:100%;height:100%;object-fit:cover;object-position:top center;border-radius:11px}.carousel-card:after{content:"";position:absolute;left:5px;right:5px;bottom:5px;height:32%;border-radius:0 0 11px 11px;background:linear-gradient(transparent,#0c2746bb);pointer-events:none}.carousel-card span{position:absolute;z-index:2;bottom:17px;left:20px;color:#fff;font-size:17px;font-weight:900;text-shadow:0 1px 5px #183956}.carousel-card[data-slot='0']{z-index:5;opacity:1;pointer-events:auto;transform:translate(-50%,-54%);box-shadow:0 0 0 4px #1d68b3,8px 12px 0 #a9cde5}.carousel-card[data-slot='0']:before{content:"";position:absolute;z-index:6;left:-16px;top:18px;width:10px;height:10px;background:#1d68b3;box-shadow:-10px 18px #1d68b3,-4px 42px #1d68b3,4px 65px #1d68b3,322px -17px #1d68b3,334px 6px #1d68b3,328px 29px #1d68b3,334px 51px #1d68b3,10px 343px #1d68b3,35px 353px #1d68b3,290px 355px #1d68b3,311px 342px #1d68b3;pointer-events:none}.carousel-card[data-slot='-1']{z-index:3;opacity:1;pointer-events:auto;transform:translate(-91%,-49%) rotate(-8deg) scale(.88);filter:brightness(.9)}.carousel-card[data-slot='1']{z-index:3;opacity:1;pointer-events:auto;transform:translate(-9%,-49%) rotate(8deg) scale(.88);filter:brightness(.9)}.carousel-card[data-slot='-2']{z-index:2;opacity:1;pointer-events:auto;transform:translate(-140%,-48%) rotate(-15deg) scale(.74);filter:brightness(.78)}.carousel-card[data-slot='2']{z-index:2;opacity:1;pointer-events:auto;transform:translate(40%,-48%) rotate(15deg) scale(.74);filter:brightness(.78)}.carousel-card[data-slot='-3'],.carousel-card[data-slot='-4']{z-index:1;transform:translate(-205%,-45%) rotate(-19deg) scale(.6)}.carousel-card[data-slot='3'],.carousel-card[data-slot='4']{z-index:1;transform:translate(105%,-45%) rotate(19deg) scale(.6)}.carousel-arrow{position:absolute;z-index:7;top:48%;display:grid;place-items:center;width:48px;height:52px;padding:0;border:0;border-radius:8px;background:#ffd553;color:#16395e;box-shadow:4px 4px 0 #d4a934;font:900 29px/1 'Courier New',monospace}.carousel-arrow:hover{background:#ffec98}.carousel-arrow-prev{left:calc(50% - 224px)}.carousel-arrow-next{right:calc(50% - 224px)}.project-caption{width:min(100% - 70px,700px);min-height:135px;margin:0 auto;padding:23px 29px;display:flex;align-items:center;justify-content:space-between;gap:26px;border-radius:17px;background:#fff}.project-caption-main{min-width:0}.project-type{color:#2275be;font-size:11px;font-weight:800}.project-name{margin:4px 0;font-size:27px;line-height:1.1;letter-spacing:-.06em}.project-description{max-width:430px;margin:0;color:#536d87;font-size:12px;line-height:1.5}.open-project{flex:0 0 auto;padding:12px 14px;border:0;border-radius:8px;background:#2a78c3;color:#fff;font-size:11px;font-weight:800}.open-project:hover{background:#185b9e}.open-project span{margin-left:5px}.project-dots{display:flex;justify-content:center;gap:9px;padding:21px 0 64px}.project-dots button{width:9px;height:9px;border:0;border-radius:2px;padding:0;background:#a5cbe5}.project-dots button[aria-current='true']{width:24px;background:#2878c2}footer{display:flex;justify-content:space-between;gap:20px;padding:28px 0 42px;font-size:11px;font-weight:700;color:#5a7692}
.project-dialog{width:min(92vw,800px);max-height:90vh;padding:0;overflow:auto;border:0;border-radius:17px;background:#fff;color:#16395e;box-shadow:0 30px 80px #10253d66}.project-dialog::backdrop{background:#09223dd1}.dialog-close{position:absolute;top:15px;right:15px;z-index:2;width:40px;height:40px;border:0;border-radius:7px;background:#fff;color:#16395e;font-size:28px;line-height:1}.dialog-image{height:340px;overflow:hidden;background:#c8e5f7}.dialog-image img{width:100%;height:100%;object-fit:cover;object-position:top}.dialog-body{padding:25px 35px 34px}.dialog-type{margin:0;color:#2877c5;font-size:11px;font-weight:800}.dialog-body h2{margin:4px 0 10px;font-size:35px;letter-spacing:-.07em}.dialog-description{margin:0;font-size:14px;line-height:1.65}.dialog-details{display:flex;flex-wrap:wrap;gap:7px;margin:20px 0}.dialog-details span{padding:6px 9px;border-radius:6px;background:#eaf4fa;font-size:11px;font-weight:700}.dialog-live{display:inline-block;padding:11px 18px;border-radius:8px;color:#fff;background:#2877c5;font-size:12px;font-weight:800}.dialog-local{color:#59718a;font-size:12px}.dialog-local[hidden],.dialog-live[hidden]{display:none}
@media(max-width:800px){.site-wrap{width:min(100% - 28px,650px)}.site-header{height:75px}.site-header nav{gap:18px;font-size:11px}.header-link{display:none}.hero-panel{min-height:660px;display:block;padding:36px 38px 0}.hero h1 span:first-child{font-size:clamp(88px,17vw,130px)}.hero h1 span:last-child{font-size:clamp(73px,14vw,108px)}.hero-lead{margin-top:22px;font-size:21px}.hero-copy{max-width:430px}.hero-scene{position:absolute;right:5%;bottom:0;width:46%;height:315px;min-height:0}.hero-sun{width:240px;right:0;top:0}.hero-cloud{width:180px;left:-52px;bottom:9px}.about{grid-template-columns:1fr 210px;margin:65px 8px 0}.about-main{padding:30px}.about-main p{font-size:12px}.about-side{margin-top:-16px}.about-side img{width:100px}.carousel{height:440px}.carousel-card{width:260px;height:325px}.carousel-card[data-slot='0']:before{display:none}.carousel-arrow-prev{left:calc(50% - 175px)}.carousel-arrow-next{right:calc(50% - 175px)}.project-caption{width:min(100% - 30px,700px)}}
@media(max-width:520px){.site-wrap{width:100%}.site-header{padding:0 16px}.brand{font-size:21px}.brand img{width:34px;height:34px}.site-header nav{gap:13px;font-size:10px}.hero{margin:0 10px}.hero-panel{min-height:610px;padding:35px 24px 0;border-radius:20px}.hero-intro{font-size:12px}.hero h1 span:first-child{font-size:clamp(68px,21vw,90px)}.hero h1 span:last-child{font-size:clamp(59px,17.5vw,78px);margin-left:27px}.hero-lead{font-size:18px;max-width:300px}.hero-copy{font-size:12px;max-width:290px}.hero-button{padding:11px 16px;font-size:11px}.hero-scene{right:10px;bottom:2px;width:225px;height:245px}.hero-scene:before{top:16%;left:11%;width:81%;height:66%}.hero-sun{width:190px;right:0;top:4px}.hero-cloud{width:160px;left:-67px;bottom:8px}.scene-block-one{left:-12%;top:32%}.about{display:block;margin:40px 18px 0}.about-main{min-height:0;padding:30px 26px 38px}.about-main h2{font-size:31px}.about-main p{font-size:12px}.about-side{width:160px;min-height:135px;margin:-14px 12px 0 auto;padding:10px 8px 13px;transform:rotate(5deg)}.about-side img{width:73px;height:75px}.about-side p{font-size:10px}.about-side strong{font-size:12px}.projects{margin-top:69px}.projects-header h2{font-size:39px}.projects-header p{font-size:12px;margin-top:10px}.carousel{height:350px;margin-top:12px}.carousel-card{width:190px;height:250px;padding:4px;border-radius:11px}.carousel-card img{border-radius:7px}.carousel-card:after{left:4px;right:4px;bottom:4px;border-radius:0 0 7px 7px}.carousel-card span{font-size:13px;left:12px;bottom:10px}.carousel-card[data-slot='0']{box-shadow:0 0 0 3px #1d68b3,5px 8px 0 #a9cde5}.carousel-card[data-slot='0']:before{display:block;left:-11px;top:15px;width:6px;height:6px;box-shadow:-7px 14px #1d68b3,-2px 30px #1d68b3,184px -10px #1d68b3,192px 6px #1d68b3,188px 21px #1d68b3,8px 223px #1d68b3,23px 230px #1d68b3,165px 228px #1d68b3,180px 220px #1d68b3}.carousel-arrow{width:36px;height:40px;font-size:23px;border-radius:5px;top:48%}.carousel-arrow-prev{left:calc(50% - 145px)}.carousel-arrow-next{right:calc(50% - 145px)}.project-caption{display:block;width:calc(100% - 28px);min-height:0;margin:0 auto;padding:19px}.project-name{font-size:22px}.project-description{font-size:11px}.open-project{margin-top:16px}footer{margin:0 16px}.dialog-image{height:210px}.dialog-body{padding:20px}.dialog-body h2{font-size:27px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* A single cursor motif replaces the earlier character illustrations. */
.brand img{width:30px;height:38px;margin-right:5px;transform:rotate(-12deg)}
.hero-scene:before{display:none}
.scene-sheet{position:absolute;left:10%;top:16%;width:80%;height:66%;border-radius:14px;background:#d9effb;transform:rotate(6deg);box-shadow:12px 12px 0 #7bb5df}
.scene-sheet span,.scene-sheet i,.scene-sheet b{position:absolute;display:block;border-radius:2px}
.scene-sheet span:first-child{left:9%;right:9%;top:10%;height:9%;background:#a6d5ef}
.scene-sheet span:nth-child(2){left:9%;top:25%;width:49%;height:38%;background:#b5def3}
.scene-sheet span:nth-child(3){right:9%;top:25%;width:25%;height:9%;background:#2a78c3}
.scene-sheet i{right:9%;top:40%;width:25%;height:5%;background:#9bcde9}
.scene-sheet b{right:9%;top:50%;width:25%;height:5%;background:#9bcde9}
.hero-cursor{position:absolute;z-index:3;right:2%;top:5%;width:64%;height:88%;object-fit:contain;transform:rotate(-14deg);image-rendering:pixelated}
.scene-click{position:absolute;z-index:4;right:2%;bottom:10%;padding:7px 10px;border-radius:3px;background:#ffd45c;color:#16395e;font:900 15px 'Courier New',monospace;transform:rotate(7deg)}
.about-mini-layout{position:relative;width:145px;height:111px;padding:12px;border-radius:8px;background:#f7fcff;box-shadow:5px 6px 0 #78b6e0}
.about-mini-layout i{position:absolute;display:block;border-radius:2px}.about-mini-layout i:first-child{left:12px;top:12px;width:121px;height:12px;background:#9ccde9}.about-mini-layout i:nth-child(2){left:12px;top:32px;width:56px;height:59px;background:#2a78c3}.about-mini-layout i:nth-child(3){left:77px;top:32px;width:56px;height:13px;background:#ffd45c}.about-mini-layout i:nth-child(4){left:77px;top:54px;width:56px;height:37px;background:#b8dff5}
.about-side p{margin-top:19px}
.carousel-card{padding:0;box-shadow:8px 10px 0 #a9cde5,0 15px 28px #17304d23}
.carousel-card img{border-radius:16px}
.carousel-card:after{left:0;right:0;bottom:0;border-radius:0 0 16px 16px}
.carousel-card[data-slot='0']{box-shadow:8px 12px 0 #a9cde5,0 19px 30px #17304d35}
.carousel-card[data-slot='0']:before{display:none}
@media(max-width:800px){.hero-cursor{right:0;top:2%;width:80%;height:95%}.scene-sheet{left:2%;width:95%}.about-mini-layout{transform:scale(.9)}}
@media(max-width:520px){.brand img{width:25px;height:32px}.hero-cursor{right:0;top:4%;width:78%;height:92%}.scene-sheet{left:4%;top:18%;width:89%;height:65%;box-shadow:7px 7px 0 #7bb5df}.scene-click{right:2%;bottom:5%;font-size:11px}.about-mini-layout{width:125px;height:95px;transform:none}.about-mini-layout i:first-child{width:101px}.about-mini-layout i:nth-child(2){width:46px;height:44px}.about-mini-layout i:nth-child(3),.about-mini-layout i:nth-child(4){left:67px;width:46px}.about-mini-layout i:nth-child(4){height:22px}.about-side p{margin-top:13px}.carousel-card img{border-radius:11px}.carousel-card:after{border-radius:0 0 11px 11px}.carousel-card[data-slot='0']{box-shadow:5px 8px 0 #a9cde5,0 12px 22px #17304d35}}

/* Softer pixel language: fewer accents, lighter outlines, open navigation chevrons. */
.hero-panel:before,.about-main:before{display:none}
.hero-cursor{width:59%;right:6%;top:6%;image-rendering:auto}
.about-side img{display:block;width:119px;height:139px;object-fit:contain;transform:rotate(-4deg)}
.carousel-arrow,.carousel-arrow:hover{width:48px;height:58px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#183b61}
.carousel-arrow svg{display:block;width:38px;height:38px;overflow:visible;transform:rotate(-5deg)}
.carousel-arrow svg path{fill:none;stroke:currentColor;stroke-width:5.5;stroke-linecap:round;stroke-linejoin:round}
.carousel-arrow-next svg{transform:rotate(5deg)}
.carousel-arrow:hover svg{color:#2a78c3}
@media(max-width:800px){.hero-cursor{width:70%;right:4%;top:5%}.about-side img{width:105px;height:120px}.carousel-arrow,.carousel-arrow:hover{width:42px;height:52px}.carousel-arrow svg{width:34px;height:34px}}
@media(max-width:520px){.hero-cursor{width:69%;right:4%;top:5%}.about-side img{width:79px;height:85px}.carousel-arrow,.carousel-arrow:hover{width:36px;height:46px}.carousel-arrow svg{width:32px;height:32px}}
.carousel-arrow svg path.arrow-contrast{stroke:#fff;stroke-width:13}
.carousel-arrow svg path.arrow-shape{stroke:#183b61;stroke-width:5.5}

/* The staircase is a real cutout, not a darker overlay. */
.hero-panel{clip-path:polygon(0 0,calc(100% - 118px) 0,calc(100% - 118px) 25px,calc(100% - 90px) 25px,calc(100% - 90px) 51px,calc(100% - 62px) 51px,calc(100% - 62px) 77px,calc(100% - 34px) 77px,calc(100% - 34px) 103px,100% 103px,100% 100%,0 100%)}
.hero-cursor{width:105%;height:108%;right:-3%;top:0;object-fit:contain;transform:rotate(-8deg);image-rendering:auto}
@media(max-width:800px){.hero-cursor{width:140%;height:120%;right:-5%;top:-2%}}
@media(max-width:520px){.hero-panel{clip-path:polygon(0 0,calc(100% - 92px) 0,calc(100% - 92px) 20px,calc(100% - 69px) 20px,calc(100% - 69px) 40px,calc(100% - 46px) 40px,calc(100% - 46px) 60px,calc(100% - 23px) 60px,calc(100% - 23px) 80px,100% 80px,100% 100%,0 100%)}.hero-cursor{width:145%;height:118%;right:-5%;top:-2%}}

/* The ghost has transparent sprite padding, so size the artwork, not its canvas. */
.about-side img{width:180px;height:180px;flex:none}
@media(max-width:800px){.about-side img{width:160px;height:160px}}
@media(max-width:520px){.about-side img{width:142px;height:142px}}

/* The yellow is a second stepped layer behind the hero, not a drawn stroke. */
.hero::before{content:"";position:absolute;top:8px;right:-8px;bottom:-8px;left:8px;border-radius:28px;background:var(--frame-accent,#ffd553);clip-path:polygon(0 0,calc(100% - 118px) 0,calc(100% - 118px) 25px,calc(100% - 90px) 25px,calc(100% - 90px) 51px,calc(100% - 62px) 51px,calc(100% - 62px) 77px,calc(100% - 34px) 77px,calc(100% - 34px) 103px,100% 103px,100% 100%,0 100%)}
.hero-panel{z-index:1}
.about-signature{color:#a26a00}
@media(max-width:520px){.hero::before{border-radius:20px;clip-path:polygon(0 0,calc(100% - 92px) 0,calc(100% - 92px) 20px,calc(100% - 69px) 20px,calc(100% - 69px) 40px,calc(100% - 46px) 40px,calc(100% - 46px) 60px,calc(100% - 23px) 60px,calc(100% - 23px) 80px,100% 80px,100% 100%,0 100%)}}

/* A single-word masthead and a hand approaching the page from outside it. */
.hero h1{display:block;white-space:nowrap;font:400 clamp(82px,9vw,134px)/.92 Georgia,'Times New Roman',serif;letter-spacing:-.09em}
.scene-sheet{left:30%;top:15%;width:69%;height:66%}
.hero-cursor{right:31%;top:0;width:105%;height:108%}
.about-side img{width:205px;height:205px}
.hero-button span{color:#bc8500;font-size:17px;line-height:0}
.hero-button:hover{background:#ffd553;color:#16395e}
.hero-button:hover span{color:#16395e}
.open-project span{color:#ffd553;font-size:15px;line-height:0}
.open-project:hover{background:#ffd553;color:#16395e}
.open-project:hover span{color:#16395e}

/* The playfield is the only new container; the technology labels provide the color. */
.stack{margin:96px 34px 0}
.stack-heading{text-align:center;margin-bottom:22px}
.stack-heading h2{margin:0;font-size:clamp(36px,4.7vw,55px);line-height:1;letter-spacing:-.075em}
.stack-heading p{margin:11px 0 0;font-size:13px;line-height:1.55;color:#527391}
.stack-playfield{position:relative;height:300px;overflow:hidden;border:2px solid #2a78c3;border-radius:20px;background:#d8edfa;box-shadow:7px 7px 0 #bfdff2;touch-action:pan-y}
.stack-chip{position:absolute;top:0;left:0;z-index:1;display:grid;place-items:center;min-width:116px;height:52px;padding:0 19px;border:2px solid #16395e;border-radius:9px;background:#fff;color:#16395e;box-shadow:4px 5px 0 #8dbddd;font:900 19px/1 Manrope,Arial,sans-serif;white-space:nowrap;user-select:none;touch-action:none;will-change:transform;cursor:grab}
.stack-chip-yellow{background:#ffd553}
.stack-chip-blue{background:#2a78c3;color:#fff}
.stack-chip:active{cursor:grabbing}
.stack-chip.is-dragging{z-index:9;box-shadow:8px 11px 0 #8dbddd}
.carousel-stage{touch-action:pan-y;user-select:none}
.carousel-card img{-webkit-user-drag:none}
@media(max-width:800px){.hero h1{font-size:clamp(72px,11vw,104px)}.scene-sheet{left:30%;width:69%}.hero-cursor{right:31%;top:-2%;width:140%;height:120%}.about-side img{width:175px;height:175px}.stack{margin:88px 8px 0}.stack-playfield{height:290px}}
@media(max-width:520px){.hero h1{font-size:clamp(58px,16vw,76px);letter-spacing:-.095em}.hero-panel{min-height:610px}.hero-scene{right:0;width:260px;height:230px}.scene-sheet{left:30%;top:13%;width:66%;height:73%}.hero-cursor{right:26%;top:-3%;width:140%;height:120%}.about-side img{width:160px;height:160px}.stack{margin:70px 18px 0}.stack-heading{display:block;margin-bottom:17px}.stack-heading h2{font-size:39px}.stack-heading p{margin-top:9px;font-size:12px}.stack-playfield{height:300px}.stack-chip{min-width:90px;height:44px;padding:0 12px;font-size:15px}.projects{margin-top:78px}}

.stack-playfield:not(.is-active){display:flex;align-items:end;justify-content:center;flex-wrap:wrap;gap:9px;padding:18px}
.stack-playfield:not(.is-active) .stack-chip{position:relative}
@media(max-width:800px){.hero-panel{min-height:560px}.stack-playfield{height:260px}}
@media(max-width:520px){.hero-panel{min-height:540px}.stack-playfield{height:255px}}
@media(max-width:360px){.hero-panel{min-height:570px}.hero-cursor{right:12%}}

/* The lower-left staircase cuts both the card and its offset backing layer. */
.workflow{--workflow-cut:polygon(0 0,100% 0,100% 100%,84px 100%,84px calc(100% - 21px),56px calc(100% - 21px),56px calc(100% - 42px),28px calc(100% - 42px),28px calc(100% - 63px),0 calc(100% - 63px));position:relative;isolation:isolate;margin:105px 18px 0;padding:34px 28px 30px 10px}
.workflow::before{content:"";position:absolute;z-index:0;top:34px;right:28px;bottom:30px;left:10px;border-radius:22px;background:#ffd553;clip-path:var(--workflow-cut);transform:translate(12px,13px) rotate(-1.2deg)}
.workflow-card{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);align-items:center;gap:70px;min-height:330px;padding:58px 92px 62px 65px;border-radius:22px;background:#2a78c3;color:#fff;clip-path:var(--workflow-cut);transform:rotate(-1.2deg)}
.workflow h2{margin:0 0 23px;font-size:clamp(42px,5vw,57px);line-height:1.02;letter-spacing:-.07em}
.workflow h3{margin:0 0 19px;font-size:24px;line-height:1.2;letter-spacing:-.04em}
.workflow p{max-width:490px;margin:0;font-size:15px;line-height:1.7;color:#e3f2ff}
.workflow-grab{position:absolute;z-index:2;top:-48px;right:-54px;width:265px;height:265px;object-fit:contain;transform:rotate(12deg);pointer-events:none}
@media(max-width:800px){.workflow{margin:93px 10px 0;padding:30px 26px 25px 7px}.workflow::before{top:30px;right:26px;bottom:25px;left:7px}.workflow-card{gap:36px;min-height:310px;padding:48px 72px 100px 44px}.workflow h2{font-size:41px}.workflow h3{font-size:21px}.workflow p{font-size:13px}.workflow-grab{width:230px;height:230px;top:-52px;right:-63px}}
@media(max-width:700px){.workflow-grab{top:-82px;right:-5px}}
@media(max-width:520px){.about-side{margin:-14px auto 0}.hero-scene{right:25px}.workflow{--workflow-cut:polygon(0 0,100% 0,100% 100%,69px 100%,69px calc(100% - 20px),46px calc(100% - 20px),46px calc(100% - 40px),23px calc(100% - 40px),23px calc(100% - 60px),0 calc(100% - 60px));margin:78px 18px 0;padding:19px 21px 20px 5px;overflow-x:clip}.workflow::before{top:19px;right:21px;bottom:20px;left:5px;border-radius:17px;transform:translate(9px,10px) rotate(-1deg)}.workflow-card{display:block;min-height:0;padding:72px 28px 90px;transform:rotate(-1deg);border-radius:17px}.workflow h2{font-size:36px;max-width:260px}.workflow h3{font-size:19px}.workflow p{font-size:13px}.workflow-start{margin-top:36px}.workflow-grab{top:-95px;right:-21px;width:235px;height:235px}}
@media(max-width:360px){.hero-scene{right:0}.workflow{margin-left:12px;margin-right:12px}.workflow-card{padding:68px 24px 86px}.workflow-grab{right:-30px}}

/* The fist grips the outside corner instead of sitting inside the card. */
.workflow-grab{top:-66px;right:-66px;width:300px;height:300px}
@media(max-width:800px){.workflow-grab{top:-65px;right:-60px;width:252px;height:252px}}
@media(max-width:700px){.workflow-grab{top:-98px;right:-14px}}
@media(max-width:520px){.workflow-grab{top:-112px;right:-34px;width:260px;height:260px}}
@media(max-width:360px){.workflow-grab{right:-42px}}

/* A single, unbusy invitation closes the portfolio. */
.contact{display:flex;align-items:center;justify-content:space-between;gap:54px;margin:36px 34px 108px;padding:45px 52px 49px;border-radius:23px;background:#fff;box-shadow:10px 11px 0 #c3e4f7}
.contact-copy{max-width:590px}
.contact h2{max-width:630px;margin:0;font-size:clamp(40px,5.4vw,67px);line-height:1.04;letter-spacing:-.075em}
.contact-description{max-width:450px;margin:19px 0 0;font-size:14px;line-height:1.65;color:#527391}
.contact-action{display:flex;flex:0 0 auto;flex-direction:column;align-items:flex-start;gap:12px}
.contact-link{display:inline-flex;align-items:center;justify-content:space-between;gap:22px;min-width:215px;padding:15px 18px;border-radius:9px;background:#2a78c3;color:#fff;font-size:13px;font-weight:850;transition:background .2s ease,color .2s ease}
.contact-link .contact-link-arrow{color:#ffd553;font-size:21px;line-height:0}
.contact-link:hover{background:#ffd553;color:#16395e}
.contact-link:hover .contact-link-arrow{color:#16395e}
.contact-handle{color:#2878c2;font:700 13px/1.4 'Courier New',monospace}
@media(max-width:800px){.contact{gap:25px;margin:26px 18px 85px;padding:37px 36px}.contact h2{font-size:clamp(37px,5vw,52px)}.contact-link{min-width:182px}}
@media(max-width:600px){.contact{display:block;margin:10px 18px 75px;padding:34px 30px 37px}.contact h2{font-size:clamp(36px,10vw,50px)}.contact-description{font-size:13px}.contact-action{margin-top:25px}.contact-link{min-width:0}}

/* The header stays with the page and gains a quiet paper layer after scrolling. */
.site-header{position:sticky;top:0;z-index:50;padding-inline:18px;transition:box-shadow .22s ease,border-radius .22s ease}
.site-header.is-scrolled{border-radius:0 0 16px 16px;background:#fff;box-shadow:0 6px 0 #c3e4f7}
.site-header nav a[aria-current="location"]{color:#2878c2}
section[id]{scroll-margin-top:105px}
@media(max-width:800px){section[id]{scroll-margin-top:92px}}
@media(max-width:520px){.site-header{padding-inline:16px}.site-header nav{gap:14px;font-size:11px}.site-header.is-scrolled{border-radius:0 0 14px 14px}section[id]{scroll-margin-top:88px}}

/* Theme and the ghost's small rotating speech bubble. */
html{--frame-accent:#ffd553}
.header-actions{display:flex;align-items:center;gap:26px}
.theme-toggle{flex:none;display:grid;place-items:center;width:38px;height:38px;padding:0;border:0;border-radius:10px;background:#d6eafa;color:#16395e;font-size:22px;line-height:1;transition:background-color .2s ease,transform .2s ease}
.theme-toggle:hover{background:#ffd553;transform:rotate(-8deg)}
.ghost-bubble{position:absolute;z-index:5;top:10px;right:-56px;display:grid;place-items:center;min-width:165px;max-width:190px;min-height:54px;padding:9px 15px;background:#fff;color:#16395e;box-shadow:5px 5px 0 var(--frame-accent,#ffd553);font-size:11px;font-weight:900;line-height:1.3;text-align:center;transform:rotate(-3deg);transition:opacity .18s ease,transform .18s ease}
.ghost-bubble::after{content:"";position:absolute;left:28px;bottom:-11px;width:13px;height:13px;background:#fff;box-shadow:5px 5px 0 var(--frame-accent,#ffd553);clip-path:polygon(0 0,100% 0,100% 50%,50% 50%,50% 100%,0 100%)}
.ghost-bubble.is-changing{opacity:0;transform:translateY(-5px) rotate(-3deg)}
@media(max-width:800px){.header-actions{gap:0}.ghost-bubble{right:-28px}}
@media(max-width:520px){.site-header{gap:9px}.site-header nav{gap:10px;font-size:10px}.theme-toggle{width:34px;height:34px;font-size:19px}.ghost-bubble{top:-16px;right:-68px;min-width:145px;max-width:160px;min-height:46px;padding:7px 10px;font-size:10px}}

/* The stack controls belong to the toy, not to a separate dashboard card. */
.stack-heading{margin-bottom:13px}
.stack-controls{display:flex;justify-content:center;gap:9px;margin:0 0 16px}
.stack-controls button{display:inline-flex;align-items:center;gap:7px;min-height:35px;padding:7px 12px;border:0;border-radius:8px;background:#fff;color:#16395e;box-shadow:3px 4px 0 #b5d8ef;font-size:12px;font-weight:850}
.stack-controls button:hover{background:#ffd553}
.stack-controls .stack-water-toggle[aria-pressed="true"]{background:#2a78c3;color:#fff}
.stack-playfield{height:355px}
.stack-water{position:absolute;z-index:0;inset:0;width:100%;height:100%;opacity:0;pointer-events:none;transition:opacity .35s ease}
.stack-playfield.has-water .stack-water{opacity:1}
.stack-reset-wave{position:absolute;z-index:20;inset:0;display:grid;grid-template-columns:repeat(var(--wave-cols),1fr);grid-template-rows:repeat(var(--wave-rows),1fr);pointer-events:none;visibility:hidden}
.stack-playfield.is-resetting .stack-reset-wave{visibility:visible}
.stack-reset-wave span{opacity:0;transform:scale(.15);background:var(--pixel-color)}
.stack-playfield.is-resetting .stack-reset-wave span{animation:stack-edge-wave 1.18s steps(2,end) both;animation-delay:var(--pixel-delay)}
.stack-playfield.is-resetting .stack-chip{pointer-events:none}
.stack-playfield.is-resetting.is-covered .stack-chip{visibility:hidden}
@keyframes stack-edge-wave{0%{opacity:0;transform:scale(.15)}21%,67%{opacity:1;transform:scale(1.1)}100%{opacity:0;transform:scale(.15)}}
@media(max-width:800px){.stack-playfield{height:320px}}
@media(max-width:520px){.stack-playfield{height:345px}.stack-controls{gap:8px;margin-bottom:14px}.stack-controls button{font-size:11px}}

/* Move the fist just beyond the card edge, without shifting the text. */
.workflow-grab{top:-78px;right:-78px}
@media(max-width:800px){.workflow-grab{top:-95px;right:-60px}}
@media(max-width:700px){.workflow-grab{top:-108px;right:-21px}}
@media(max-width:520px){.workflow-grab{top:-123px;right:-43px}}
@media(max-width:360px){.workflow-grab{right:-48px}}

/* Dark mode retains the same blue/yellow character rather than inverting photos. */
html[data-theme="dark"]{color-scheme:dark;background:#102438;color:#eaf5ff;--frame-accent:#87c9ef}
html[data-theme="dark"] .site-header.is-scrolled{background:#1b344b;box-shadow:0 6px 0 #0a1a2a}
html[data-theme="dark"] .site-header nav a[aria-current="location"],html[data-theme="dark"] .site-header a:hover{color:#8ac6f0}
html[data-theme="dark"] .theme-toggle{background:#2d506d;color:#ffe48b}
html[data-theme="dark"] .theme-toggle:hover{background:#ffd553;color:#16395e}
html[data-theme="dark"] .hero-panel,html[data-theme="dark"] .workflow-card{background:#246aa9}
html[data-theme="dark"] .about-main,html[data-theme="dark"] .project-caption,html[data-theme="dark"] .contact{background:#1c3852;color:#eaf5ff;box-shadow:8px 8px 0 #0c1d2d}
html[data-theme="dark"] .about-side{background:#315d7f;color:#fff;box-shadow:6px 7px 0 #18374f}
html[data-theme="dark"] .ghost-bubble{background:#f5fbff;color:#16395e;box-shadow:5px 5px 0 var(--frame-accent)}
html[data-theme="dark"] .ghost-bubble::after{box-shadow:5px 5px 0 var(--frame-accent)}
html[data-theme="dark"] .stack-heading p,html[data-theme="dark"] .projects-header p,html[data-theme="dark"] .project-description,html[data-theme="dark"] .contact-description,html[data-theme="dark"] footer{color:#b9d2e6}
html[data-theme="dark"] .stack-playfield{background:#193b56;border-color:#5a9fd1;box-shadow:7px 7px 0 #0b1c2b}
html[data-theme="dark"] .stack-controls button{background:#284961;color:#eaf5ff;box-shadow:3px 4px 0 #0b1c2b}
html[data-theme="dark"] .stack-controls button:hover{background:#ffd553;color:#16395e}
html[data-theme="dark"] .stack-controls .stack-water-toggle[aria-pressed="true"]{background:#2a78c3;color:#fff}
html[data-theme="dark"] .project-type,html[data-theme="dark"] .contact-handle{color:#8ac6f0}
html[data-theme="dark"] .carousel-card{background:#17354e;box-shadow:8px 10px 0 #0a1b2a}
html[data-theme="dark"] .carousel-card[data-slot="0"]{box-shadow:8px 12px 0 #0a1b2a}
html[data-theme="dark"] .project-dots button{background:#315a78}
html[data-theme="dark"] .project-dots button[aria-current="true"]{background:#78bbe9}
html[data-theme="dark"] .project-dialog{background:#1c3852;color:#eaf5ff}
html[data-theme="dark"] .dialog-close{background:#2d506d;color:#fff}
html[data-theme="dark"] .dialog-details span{background:#2d506d;color:#eaf5ff}
html[data-theme="dark"] .dialog-local{color:#b9d2e6}
@media(prefers-reduced-motion:reduce){.stack-playfield.is-resetting .stack-reset-wave span{animation:none}.ghost-bubble{transition:none}}
@media(max-width:520px){.hero{margin-inline:18px}}

/* The work card rests at an angle; the cursor briefly steadies the corner. */
.workflow{transform:translateY(9px) rotate(-3.5deg);transform-origin:50% 45%;transition:transform .72s cubic-bezier(.22,.78,.28,1.12)}
.workflow-grab{transform:rotate(12deg) scale(1.055);transform-origin:64% 64%;transition:transform .62s cubic-bezier(.2,.78,.28,1.08)}
@media(hover:hover) and (pointer:fine){
  .workflow:hover{transform:translateY(0) rotate(0);transition-duration:.58s}
  .workflow:hover .workflow-grab{transform:rotate(12deg) scale(.985);transition-duration:.5s}
}
@media(prefers-reduced-motion:reduce){.workflow,.workflow:hover{transform:none}.workflow-grab,.workflow:hover .workflow-grab{transform:rotate(12deg)}}

/* Keep the desktop showcase large enough to explore, but within one screen. */
@media(min-width:801px){
  .projects{margin-top:137px}
  .projects-header{margin-bottom:0}
  .projects-header h2{font-size:clamp(38px,4.4vw,52px)}
  .projects-header p{font-size:13px}
  .carousel{height:490px;margin-top:2px}
  .carousel-card{top:54%;width:clamp(370px,39vw,400px);height:clamp(440px,47vw,460px)}
  .carousel-arrow-prev{left:calc(50% - clamp(230px,25vw,260px))}
  .carousel-arrow-next{right:calc(50% - clamp(230px,25vw,260px))}
  .project-caption{width:min(100% - 50px,740px);min-height:136px;padding:23px 28px}
  .project-name{font-size:27px}
  .project-description{max-width:470px;font-size:13px}
  .project-dots{padding:14px 0 40px}
}

/* Light, stepped clouds drift behind the work without covering controls. */
.site-wrap{position:relative;z-index:1}
.sky-clouds{display:none;position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.sky-cloud{position:absolute;display:block;width:var(--size);aspect-ratio:2.5;opacity:var(--opacity);background:linear-gradient(180deg,#b7ddf4 0 68%,#8ec4e8 68%);clip-path:polygon(0 55%,8% 55%,8% 42%,18% 42%,18% 28%,29% 28%,29% 15%,39% 15%,39% 2%,59% 2%,59% 13%,70% 13%,70% 28%,82% 28%,82% 42%,92% 42%,92% 55%,100% 55%,100% 80%,92% 80%,92% 90%,8% 90%,8% 80%,0 80%);animation:cloud-drift var(--duration) ease-in-out infinite alternate;animation-delay:var(--delay)}
.sky-cloud-one{left:-2%;top:17%;--size:185px;--opacity:.5;--duration:24s;--delay:-7s;--drift-x:29px;--drift-y:-10px}
.sky-cloud-two{right:-2%;top:32%;--size:235px;--opacity:.31;--duration:30s;--delay:-15s;--drift-x:-34px;--drift-y:8px}
.sky-cloud-three{left:5%;top:67%;--size:118px;--opacity:.62;--duration:19s;--delay:-4s;--drift-x:17px;--drift-y:-7px}
.sky-cloud-four{right:12%;top:80%;--size:155px;--opacity:.28;--duration:27s;--delay:-19s;--drift-x:-22px;--drift-y:-9px}
.sky-cloud-five{right:4%;top:8%;--size:94px;--opacity:.44;--duration:21s;--delay:-11s;--drift-x:-17px;--drift-y:6px}
@keyframes cloud-drift{to{transform:translate3d(var(--drift-x),var(--drift-y),0)}}
@media(min-width:801px){.sky-clouds{display:block}}
html[data-theme="dark"] .sky-cloud{background:linear-gradient(180deg,#3b779c 0 68%,#255875 68%)}
@media(prefers-reduced-motion:reduce){.sky-cloud{animation:none}}

/* The header is a separate floating sheet even at the top of the page. */
.site-header,.site-header.is-scrolled{top:12px;height:74px;margin-top:12px;border-radius:16px;background:#fff;box-shadow:0 6px 0 #c3e4f7}
.site-header.is-scrolled{box-shadow:0 7px 0 #b4daef}
html[data-theme="dark"] .site-header,html[data-theme="dark"] .site-header.is-scrolled{background:#1b344b;box-shadow:0 6px 0 #0a1a2a}
@media(max-width:800px){.site-header,.site-header.is-scrolled{top:10px;height:72px;margin-top:10px}}
@media(max-width:520px){.site-header,.site-header.is-scrolled{top:8px;height:70px;margin:8px 10px 0;border-radius:14px}}

/* Mobile: give the project gallery room, and make the ghost a companion card. */
@media(max-width:520px){
  .hero-scene{right:44px}
  .about{margin-top:48px}
  .about-side{width:calc(100% - 30px);min-height:166px;margin:34px auto 0;padding:17px 20px;display:grid;grid-template-columns:116px minmax(0,1fr);column-gap:12px;align-items:center;justify-items:center;transform:rotate(-2deg)}
  .about-side img{width:125px;height:125px;grid-column:1;grid-row:1;transform:rotate(2deg)}
  .about-side p{grid-column:2;grid-row:1;margin:0;font-size:11px;line-height:1.4;text-align:left}
  .about-side strong{font-size:15px;line-height:1.25}
  .ghost-bubble{top:9px;left:97px;right:auto;min-width:0;max-width:156px;min-height:44px;padding:7px 10px}
  .ghost-bubble::after{left:10px}
  .workflow-grab{top:-110px;right:-53px}
  .projects{margin-top:112px}
  .projects-header h2{font-size:clamp(39px,10.5vw,46px)}
  .projects-header p{margin-top:12px}
  .carousel{height:410px;margin-top:24px}
  .carousel-card{width:220px;height:292px}
  .carousel-card[data-slot='0']:before{display:none}
  .carousel-arrow-prev{left:calc(50% - 160px)}
  .carousel-arrow-next{right:calc(50% - 160px)}
  .project-caption{padding:22px}
  .project-description{font-size:12px}
}
@media(max-width:429px){.hero-scene{right:20px}}
@media(max-width:360px){
  .hero-scene{right:6px;width:235px}
  .about-side{width:calc(100% - 18px);grid-template-columns:101px minmax(0,1fr);column-gap:8px;padding-inline:14px}
  .about-side img{width:110px;height:110px}
  .about-side strong{font-size:14px}
  .carousel-card{width:205px;height:275px}
  .carousel-arrow-prev{left:calc(50% - 148px)}
  .carousel-arrow-next{right:calc(50% - 148px)}
}

/* A few smaller clouds are visible in the phone's open spaces too. */
@media(max-width:520px){
  .sky-clouds{display:block}
  .sky-cloud{background:linear-gradient(180deg,#9dcced 0 68%,#79b8df 68%)}
  .sky-cloud-one{left:-25px;top:19%;--size:130px;--opacity:.48;--drift-x:18px}
  .sky-cloud-two{right:-29px;top:42%;--size:156px;--opacity:.38;--drift-x:-19px}
  .sky-cloud-three{left:9%;top:77%;--size:95px;--opacity:.55;--drift-x:12px}
  .sky-cloud-four,.sky-cloud-five{display:none}
  html[data-theme="dark"] .sky-cloud{background:linear-gradient(180deg,#3b779c 0 68%,#255875 68%)}
}

/* On phones the gallery title sits close to the cards; swipe and dots replace arrows. */
@media(max-width:520px){
  .projects-header{padding-top:56px;margin-bottom:-56px}
  .carousel-arrow{display:none}
}

/* Match the work card to the other paper surfaces without losing its cutout. */
.workflow-card{background:#fff;color:#16395e}
.workflow::before{background:#acd8f1}
.workflow p{color:#486c8c}
html[data-theme="dark"] .workflow-card{background:#1c3852;color:#eaf5ff}
html[data-theme="dark"] .workflow::before{background:#315a78}
html[data-theme="dark"] .workflow p{color:#b9d2e6}

/* A white hero by day; at night it uses the same surface as the other cards. */
.hero-panel{background:#fff;color:#16395e}
.hero h1{color:#16395e}
.hero-copy{color:#486c8c}
.hero-button{background:#2a78c3;color:#fff}
.hero-button span{color:#ffd553}
.hero-button:hover{background:#ffd553;color:#16395e}
.hero-button:hover span{color:#16395e}
html[data-theme="dark"] .hero-panel{background:#1c3852;color:#eaf5ff}
html[data-theme="dark"] .hero h1{color:#eaf5ff}
html[data-theme="dark"] .hero-copy{color:#b9d2e6}
html[data-theme="dark"] .hero-button{background:#fff;color:#17395c}
html[data-theme="dark"] .hero-button span{color:#bc8500}
html[data-theme="dark"] .hero-button:hover{background:#ffd553;color:#16395e}
html[data-theme="dark"] .hero-button:hover span{color:#16395e}

/* On phones the next section should follow the work card without a void. */
@media(max-width:520px){.projects{margin-top:32px}}

/* Keep the cloud silhouette separate so dark-mode raindrops can fall below it. */
.sky-cloud{background:none;clip-path:none}
.sky-cloud::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,#b7ddf4 0 68%,#8ec4e8 68%);
  clip-path:polygon(0 55%,8% 55%,8% 42%,18% 42%,18% 28%,29% 28%,29% 15%,39% 15%,39% 2%,59% 2%,59% 13%,70% 13%,70% 28%,82% 28%,82% 42%,92% 42%,92% 55%,100% 55%,100% 80%,92% 80%,92% 90%,8% 90%,8% 80%,0 80%);
}
html[data-theme="dark"] .sky-cloud{background:none;opacity:min(1,calc(var(--opacity) + .23))}
html[data-theme="dark"] .sky-cloud::before{background:linear-gradient(180deg,#477d9f 0 68%,#2c5d7b 68%)}
.sky-cloud::after{
  content:"";display:none;position:absolute;left:10%;top:79%;width:80%;height:95px;
  background-image:linear-gradient(#8dc4e8 0 0),linear-gradient(#8dc4e8 0 0),linear-gradient(#8dc4e8 0 0),linear-gradient(#8dc4e8 0 0),linear-gradient(#8dc4e8 0 0),linear-gradient(#8dc4e8 0 0),linear-gradient(#8dc4e8 0 0),linear-gradient(#8dc4e8 0 0);
  background-size:4px 12px,4px 8px,4px 11px,4px 8px,4px 13px,4px 9px,4px 11px,4px 8px;
  background-position:6% 4px,20% 31px,34% 14px,46% 43px,60% 2px,72% 27px,85% 14px,98% 39px;
  background-repeat:no-repeat;
}
html[data-theme="dark"] .sky-cloud::after{display:block;animation:pixel-cloud-rain 1.7s steps(10,end) infinite;animation-delay:var(--rain-delay,0s)}
.sky-cloud-two,.sky-cloud-four{--rain-delay:-.85s}
.sky-cloud-three,.sky-cloud-five{--rain-delay:-.4s}
@keyframes pixel-cloud-rain{
  0%{transform:translateY(-10px);opacity:0}
  18%,76%{opacity:.78}
  100%{transform:translateY(72px);opacity:0}
}
@media(max-width:520px){.sky-cloud::before{background:linear-gradient(180deg,#9dcced 0 68%,#79b8df 68%)}}
@media(prefers-reduced-motion:reduce){html[data-theme="dark"] .sky-cloud::after{display:none}}
+/* A compact language key belongs beside the theme control without crowding the mobile nav. */
.header-actions{gap:12px}
.language-toggle{flex:none;display:grid;place-items:center;width:38px;height:38px;padding:0;border:0;border-radius:10px;background:#d6eafa;color:#16395e;font-size:12px;font-weight:900;letter-spacing:.02em;transition:background-color .2s ease,transform .2s ease}
.language-toggle:hover{background:#ffd553;transform:translateY(-2px)}
html[data-theme="dark"] .language-toggle{background:#2d506d;color:#eaf6ff}
html[data-theme="dark"] .language-toggle:hover{background:#ffd553;color:#16395e}
@media(max-width:800px){.header-actions{gap:6px}}
@media(max-width:520px){.language-toggle{width:34px;height:34px;font-size:11px}}
@media(max-width:360px){.site-header{gap:5px;padding-inline:10px}.site-header nav{gap:6px;font-size:9px}.brand{font-size:19px}.header-actions{gap:4px}.theme-toggle,.language-toggle{width:31px;height:31px}}
