html,body{margin:0;width:100%;min-height:100%;background:#d6e9ec}
*{box-sizing:border-box}
body{height:100vh;min-height:540px;overflow:hidden;color:#273f39;font-family:"Avenir Next",Avenir,"Trebuchet MS",sans-serif;transition:color 3s ease,background-color 3s ease;letter-spacing:0}
.landscape,.scene,.night-wash,.stars,.petals{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none}
.landscape{overflow:hidden;background:#d6e9ec}
.scene{background-position:center bottom;background-repeat:no-repeat;background-size:cover}
.day-scene{background-image:url('assets/terrace-home-day-v8.png')}
.night-scene{background-image:url('assets/terrace-home-night-v8.png');opacity:0;transition:opacity 4s ease}
.night-wash{background:#102e3c;opacity:0;transition:opacity 4s ease}
header{position:relative;z-index:2;padding:38px 48px;display:flex;align-items:flex-start;justify-content:space-between}
.clock{text-align:right;min-width:145px}
#time{display:block;font-size:30px;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.2}
#time small{font-size:12px;margin-left:5px}
#date{display:block;font-size:11px;margin-top:7px;opacity:.7}
main{position:relative;z-index:2;text-align:center}
.welcome{position:absolute;top:30px;left:20px;right:20px}
h1{font-family:"Baskerville","Palatino Linotype",Palatino,Georgia,serif;font-weight:400;font-size:clamp(44px,9vw,100px);line-height:1.1;margin:0;text-shadow:0 1px 16px rgba(230,242,242,.15);text-wrap:balance;overflow-wrap:anywhere}
.weather{display:flex;align-items:center;text-align:left;min-height:49px;margin-right:20px}
.weather>img{margin-right:11px}
#temperature{font-size:30px;line-height:1.2;font-weight:400;min-width:42px}
.weather-divider{height:27px;width:1px;background:currentColor;opacity:.24;margin:0 15px 0 12px}
.weather-copy{font-size:12px;line-height:1.7;min-width:115px}
.weather-copy span{display:block}
#weather-detail{font-size:10px;opacity:.65}
footer{position:absolute;bottom:26px;left:48px;right:48px;z-index:3;display:flex;align-items:center;justify-content:space-between;min-height:42px}
.weather-source{color:#fff;text-decoration:none;font-size:9px;text-shadow:0 1px 4px #344b39;opacity:.85;width:180px}
.weather-source:hover{text-decoration:underline;opacity:1}
.location{font-size:9px;color:#fff;text-shadow:0 1px 4px #344b39;width:180px;text-align:right}
.location-dot{display:inline-block;width:3px;height:3px;background:currentColor;border-radius:50%;vertical-align:middle;margin:0 8px}
.controls{display:flex;align-items:center;padding:4px 5px;border:1px solid rgba(255,255,255,.7);border-radius:8px;background:#f1f4ed;background:rgba(249,251,246,.91);color:#33483f;box-shadow:0 3px 15px rgba(26,47,38,.08)}
.sky-modes{display:flex;align-items:center}
button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;background:transparent;color:inherit;border:0;font-family:inherit;font-size:11px;border-radius:5px;height:32px;min-width:34px;padding:0 9px;transition:background .2s ease}
button img{opacity:.7}
button span{margin-left:6px}
button:hover{background:#e0e8df}
button.selected{background:#dce5d9}
button.selected img{opacity:1}
button:focus{outline:2px solid #708e78;outline-offset:2px}
button:focus:not(:focus-visible){outline:none}
.control-divider{height:17px;width:1px;background:#cbd4c9;margin:0 4px}
.scene-motion{display:none;position:absolute;left:0;top:0;width:1536px;height:1024px;transform-origin:0 0;pointer-events:none}
.scene-motion.ready{display:block}
.breeze-patch{position:absolute;overflow:hidden;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 18px,#000 calc(100% - 18px),transparent);mask-image:linear-gradient(to bottom,transparent,#000 18px,#000 calc(100% - 18px),transparent)}
.breeze-art{position:absolute;left:-24px;top:-12px;right:-24px;bottom:-12px}
.patch-day,.patch-night{position:absolute;left:0;top:0;width:100%;height:100%;background-size:1536px 1024px;background-repeat:no-repeat}
.patch-day{background-image:url('assets/terrace-home-day-v8.png')}
.patch-night{background-image:url('assets/terrace-home-night-v8.png');opacity:0;transition:opacity 4s ease}
.night .patch-night{opacity:1}
.cloud-left{left:0;top:0;width:500px;height:210px}
.cloud-left .patch-day,.cloud-left .patch-night{background-position:48px 12px}
.cloud-left .breeze-art{left:-48px;right:-48px;animation:painted-cloud-drift 22s ease-in-out -11s infinite alternate}
.cloud-right{left:1050px;top:95px;width:486px;height:155px}
.cloud-right .patch-day,.cloud-right .patch-night{background-position:-1002px -83px}
.cloud-right .breeze-art{left:-48px;right:-48px;animation:painted-cloud-drift 28s ease-in-out -14s infinite alternate-reverse}
.palm-left{left:0;top:245px;width:145px;height:205px}
.palm-left .patch-day,.palm-left .patch-night{background-position:24px -233px}
.palm-left .breeze-art{transform-origin:54px 210px;animation:palm-breeze 12s ease-in-out -3s infinite}
.palm-right{left:1308px;top:246px;width:228px;height:239px}
.palm-right .patch-day,.palm-right .patch-night{background-position:-1284px -234px}
.palm-right .breeze-art{transform-origin:181px 246px;animation:palm-breeze 12s ease-in-out -3s infinite}
.foliage{-webkit-mask-image:linear-gradient(to bottom,#000 80%,transparent);mask-image:linear-gradient(to bottom,#000 80%,transparent)}
.foliage .breeze-art{animation:foliage-breeze 12s ease-in-out -3s infinite}
.left-flowering-tree .breeze-art,.right-flowering-tree .breeze-art{animation-name:branch-breeze}
.scene-lights{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;transition:opacity 4s ease}
.night .scene-lights{opacity:1}
.window-light{position:absolute;overflow:hidden;-webkit-mask-image:linear-gradient(to right,#000 45%,transparent 45%,transparent 55%,#000 55%);mask-image:linear-gradient(to right,#000 45%,transparent 45%,transparent 55%,#000 55%)}
.window-glass{position:absolute;width:100%;height:100%;overflow:hidden;background:linear-gradient(to bottom,rgba(255,199,93,.12),rgba(255,218,138,.28));-webkit-mask-image:linear-gradient(to bottom,#000 46%,transparent 46%,transparent 53%,#000 53%);mask-image:linear-gradient(to bottom,#000 46%,transparent 46%,transparent 53%,#000 53%);animation:window-warmth 15s ease-in-out infinite;animation-play-state:paused}
.ground-window .window-glass{-webkit-mask-image:none;mask-image:none}
.window-glass i{position:absolute;left:-100%;top:0;width:200%;height:100%;background:linear-gradient(100deg,transparent 18%,rgba(65,39,24,.22) 38%,rgba(65,39,24,.07) 52%,transparent 73%);animation:curtain-shadow 18s ease-in-out infinite alternate;animation-play-state:paused}
.resident-track{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;-webkit-mask-image:linear-gradient(to bottom,#000 46%,transparent 46%,transparent 53%,#000 53%,transparent 100%);mask-image:linear-gradient(to bottom,#000 46%,transparent 46%,transparent 53%,#000 53%,transparent 100%)}
.ground-window .resident-track{-webkit-mask-image:repeating-linear-gradient(to right,#000 0,#000 5px,transparent 5px,transparent 8px);mask-image:repeating-linear-gradient(to right,#000 0,#000 5px,transparent 5px,transparent 8px)}
.resident-shadow{position:absolute;left:-28px;top:8px;width:23px;height:67px;opacity:0;filter:blur(.7px);animation:resident-pass 47s linear infinite;animation-play-state:paused}
.resident-shadow:before,.resident-shadow:after{content:"";position:absolute;background:#493c32}
.resident-shadow:before{left:7px;top:0;width:10px;height:12px;border-radius:48% 48% 44% 44%}
.resident-shadow:after{left:1px;top:11px;width:22px;height:55px;border-radius:45% 45% 15% 15%}
.porch-light{position:absolute;width:122px;height:118px}
.porch-halo{position:absolute;left:0;top:0;width:122px;height:118px;background:radial-gradient(ellipse at 50% 43%,rgba(255,191,75,.2),rgba(255,184,72,.09) 38%,transparent 70%);animation:porch-warmth 10s ease-in-out infinite;animation-play-state:paused}
.porch-bulb{position:absolute;left:51px;top:41px;width:20px;height:27px;border-radius:50%;background:radial-gradient(ellipse,rgba(255,244,180,.6),rgba(255,207,103,.12) 70%,transparent);animation:lamp-flicker 10s ease-in-out infinite;animation-play-state:paused}
.night .window-glass,.night .window-glass i,.night .porch-halo,.night .porch-bulb,.night .resident-shadow{animation-play-state:running}
.petals{z-index:1;overflow:hidden;opacity:1;transition:opacity 3s ease}
.petals i{position:absolute;top:-12px;display:block;width:5px;height:8px;border-radius:80% 0 80% 0;background:#d99791;opacity:0;animation:petal-fall 30s linear infinite}
.petals i:nth-child(1){left:6%;animation-delay:-4s}
.petals i:nth-child(2){left:20%;width:4px;height:6px;animation-duration:36s;animation-delay:-23s}
.petals i:nth-child(3){left:38%;animation-duration:32s;animation-delay:-14s;background:#e4b0a4}
.petals i:nth-child(4){left:55%;width:4px;height:7px;animation-duration:38s;animation-delay:-30s}
.petals i:nth-child(5){left:70%;animation-duration:29s;animation-delay:-9s}
.petals i:nth-child(6){left:84%;width:4px;height:6px;animation-duration:35s;animation-delay:-20s;background:#e4b0a4}
.petals i:nth-child(7){left:93%;animation-duration:33s;animation-delay:-2s}
.petals i:nth-child(8){left:3%;width:4px;height:6px;animation-duration:28s;animation-delay:-17s}
.petals i:nth-child(9){left:12%;width:6px;height:9px;animation-duration:32s;animation-delay:-10s;background:#e4b0a4}
.petals i:nth-child(10){left:27%;animation-duration:26s;animation-delay:-22s}
.petals i:nth-child(11){left:33%;width:4px;height:7px;animation-duration:34s;animation-delay:-6s}
.petals i:nth-child(12){left:45%;width:6px;height:8px;animation-duration:29s;animation-delay:-18s;background:#e4b0a4}
.petals i:nth-child(13){left:49%;width:4px;height:6px;animation-duration:31s;animation-delay:-27s}
.petals i:nth-child(14){left:62%;animation-duration:27s;animation-delay:-12s}
.petals i:nth-child(15){left:76%;width:4px;height:7px;animation-duration:34s;animation-delay:-25s;background:#e4b0a4}
.petals i:nth-child(16){left:81%;width:6px;height:9px;animation-duration:30s;animation-delay:-5s}
.petals i:nth-child(17){left:89%;animation-duration:28s;animation-delay:-21s}
.petals i:nth-child(18){left:97%;width:4px;height:6px;animation-duration:33s;animation-delay:-14s;background:#e4b0a4}
.stars{z-index:1;opacity:0;transition:opacity 4s ease}
.stars i{position:absolute;display:block;width:2px;height:2px;background:#fff9dd;border-radius:50%;animation:twinkle 6s ease-in-out infinite alternate;animation-play-state:paused}
.stars i:nth-child(1){top:17%;left:17%}.stars i:nth-child(2){top:9%;left:38%;animation-delay:-2s}.stars i:nth-child(3){top:15%;left:75%;animation-delay:-4s}.stars i:nth-child(4){top:36%;left:88%}.stars i:nth-child(5){top:41%;left:9%;animation-delay:-3s}.stars i:nth-child(6){top:6%;left:58%;animation-delay:-1s}.stars i:nth-child(7){top:28%;left:65%;animation-delay:-5s}.stars i:nth-child(8){top:31%;left:25%;animation-delay:-2s}
.stars i:nth-child(3n){width:3px;height:3px;animation-duration:8s}
.stars i:nth-child(9){top:22%;left:92%;animation-duration:5s;animation-delay:-3s}.stars i:nth-child(10){top:39%;left:72%;animation-delay:-1s}.stars i:nth-child(11){top:12%;left:8%;animation-duration:7s;animation-delay:-5s}.stars i:nth-child(12){top:35%;left:45%;animation-delay:-4s}
body.night{color:#edf3e9;background:#203c49}
.night .night-scene{opacity:1}.night .night-wash{opacity:.07}.night .stars{opacity:.8}
.night .petals{opacity:0}.night .petals i{animation-play-state:paused}.night .stars i{animation-play-state:running}
.night .weather>img{filter:brightness(0) invert(1)}
.suki-stage{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:2}
.suki{position:absolute;left:0;top:0;visibility:hidden;pointer-events:none}
.suki.visible{visibility:visible}
.suki-sprite{width:100%;height:100%;background-image:url('assets/suki-walk.png');background-size:400% 200%;background-position:0 -2.34375%;background-repeat:no-repeat;animation:suki-steps .96s step-end infinite;animation-play-state:paused;transform-origin:center center}
.suki.visible .suki-sprite{animation-play-state:running}
.night .suki-sprite{filter:brightness(.74);transition:filter 3s ease}
body.paused .suki.visible .suki-sprite{animation-play-state:paused}
@keyframes suki-steps{0%{background-position:0 -2.34375%}12.5%{background-position:33.333333% -2.34375%}25%{background-position:66.666667% -2.734375%}37.5%{background-position:100% -2.5390625%}50%{background-position:0 91.40625%}62.5%{background-position:33.333333% 91.40625%}75%{background-position:66.666667% 91.40625%}87.5%{background-position:100% 91.015625%}100%{background-position:0 -2.34375%}}
body.paused .breeze-art,body.paused .stars i,body.paused .petals i{animation-play-state:paused}
body.page-hidden .breeze-art,body.page-hidden .stars i,body.page-hidden .petals i,body.page-hidden .suki.visible .suki-sprite{animation-play-state:paused}
body.paused .scene-lights *,body.page-hidden .scene-lights *{animation-play-state:paused}
@keyframes painted-cloud-drift{from{transform:translate3d(-36px,1px,0)}to{transform:translate3d(36px,-1px,0)}}
/* Shared phases keep all plants in the same gust; only their bend differs. */
@keyframes palm-breeze{0%,100%{transform:rotate(-.75deg)}15%{transform:rotate(.35deg)}34%{transform:rotate(2.2deg)}48%{transform:rotate(1deg)}60%{transform:rotate(1.4deg)}78%{transform:rotate(-.6deg)}88%{transform:rotate(-1.1deg)}}
@keyframes foliage-breeze{0%,100%{transform:rotate(-.6deg) translate3d(-1px,0,0)}15%{transform:rotate(.3deg) translate3d(.4px,0,0)}34%{transform:rotate(1.8deg) translate3d(2px,-.5px,0)}48%{transform:rotate(.8deg) translate3d(1px,0,0)}60%{transform:rotate(1.1deg) translate3d(1.5px,0,0)}78%{transform:rotate(-.5deg) translate3d(-.5px,0,0)}88%{transform:rotate(-.9deg) translate3d(-1px,0,0)}}
@keyframes branch-breeze{0%,100%{transform:rotate(-.4deg) translate3d(-.7px,0,0)}15%{transform:rotate(.2deg) translate3d(.3px,0,0)}34%{transform:rotate(1.2deg) translate3d(1.4px,-.5px,0)}48%{transform:rotate(.5deg) translate3d(.7px,0,0)}60%{transform:rotate(.7deg) translate3d(1px,0,0)}78%{transform:rotate(-.3deg) translate3d(-.3px,0,0)}88%{transform:rotate(-.6deg) translate3d(-.7px,0,0)}}
@keyframes resident-pass{0%,6%{transform:translate3d(0,0,0);opacity:0}10%{transform:translate3d(12px,0,0);opacity:.08}15%{transform:translate3d(39px,1px,0);opacity:.24}21%{transform:translate3d(74px,0,0);opacity:.18}26%,100%{transform:translate3d(105px,0,0);opacity:0}}
@keyframes resident-pass-reverse{0%,6%{transform:translate3d(105px,0,0);opacity:0}10%{transform:translate3d(93px,0,0);opacity:.08}15%{transform:translate3d(66px,1px,0);opacity:.24}21%{transform:translate3d(31px,0,0);opacity:.18}26%,100%{transform:translate3d(0,0,0);opacity:0}}
@keyframes window-warmth{0%,100%{opacity:.35}23%{opacity:.7}47%{opacity:.42}72%{opacity:.95}88%{opacity:.6}}
@keyframes curtain-shadow{from{transform:translate3d(-10%,0,0);opacity:.3}to{transform:translate3d(40%,0,0);opacity:.85}}
@keyframes porch-warmth{0%,100%{opacity:.48;transform:scale(.97)}32%{opacity:.78;transform:scale(1.02)}48%{opacity:.61;transform:scale(.99)}75%{opacity:.95;transform:scale(1.04)}}
@keyframes lamp-flicker{0%,100%{opacity:.56}28%{opacity:.83}40%{opacity:.67}46%{opacity:.49}52%{opacity:.73}79%{opacity:.96}88%{opacity:.69}}
@keyframes petal-fall{0%{transform:translate3d(0,-12px,0) rotate(0deg);opacity:0}10%{opacity:.65}25%{transform:translate3d(20px,27vh,0) rotate(75deg)}50%{transform:translate3d(-12px,55vh,0) rotate(150deg)}75%{transform:translate3d(24px,83vh,0) rotate(235deg);opacity:.55}100%{transform:translate3d(5px,110vh,0) rotate(320deg);opacity:0}}
@keyframes twinkle{from{opacity:.12}to{opacity:1}}
@media(min-height:950px){.welcome{top:95px}}
@media(max-width:900px){header{padding:28px 30px}footer{left:30px;right:30px}.welcome{top:65px}.weather-source,.location{width:140px}}
@media(max-width:600px){body{min-height:600px}header{padding:24px}#time{font-size:25px}#date{font-size:10px}.clock{min-width:120px}.welcome{top:20px}h1{line-height:1.02;max-width:330px;margin:0 auto}.weather{flex-wrap:wrap;flex:1;min-width:0;max-width:175px;margin-right:14px;min-height:60px}.weather>img{width:21px;height:21px;margin-right:8px}#temperature{font-size:26px;min-width:36px}.weather-divider{display:none}.weather-copy{flex-basis:100%;min-width:0;font-size:10px;margin-top:4px}#weather-detail{font-size:9px}.scene{background-size:auto 100%;background-position:51% bottom}footer{bottom:22px;left:20px;right:20px;justify-content:center}.weather-source{position:absolute;bottom:54px;width:auto;text-align:center;font-size:8px}.location{display:none}}
@media(max-height:599px){body{overflow-y:auto}}
@media(max-height:650px) and (min-width:601px){.welcome{top:10px}h1{font-size:clamp(44px,9vw,74px)}header{padding-top:24px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.suki-stage,.scene-motion.ready{display:none}}
