:root{--bg:#03070b;--surface:#0a1017;--raised:#111821;--muted:#939da9;--art-serif:"Baskerville","Didot","Noto Serif SC","Songti SC","STSong",serif}
body{background:#03070b}
body:has(#home-view:not([hidden])){background:radial-gradient(ellipse at 74% 42%,#0a1824 0%,#03090f 37%,#020508 74%)}
.header{height:120px;max-width:none;padding:25px 4%;margin:0;display:flex;justify-content:space-between;align-items:flex-start;border:0;gap:24px;position:relative;z-index:3}
.brand{font:400 43px/1.1 var(--art-serif);letter-spacing:1px}
.brand small{font:400 9px/1.6 var(--art-serif);letter-spacing:5px;margin-top:8px;color:#dad6cd}
.nav{display:flex;height:45px;align-items:center;gap:48px;width:auto;order:initial;overflow:visible}
.nav button{height:auto;padding:10px 0;font:400 15px var(--font);letter-spacing:4px;color:#c6c5c4;white-space:nowrap}
.nav button.active:after{display:none}.nav button:hover{color:#fff}
.hero{min-height:640px;height:calc(100svh - 120px);padding:0;position:relative;isolation:isolate;overflow:hidden;text-align:left}
.hero-copy{position:absolute;left:9.6%;top:45%;transform:translateY(-50%);width:31%;max-width:530px;z-index:2;pointer-events:none}
.hero-copy button,.hero-copy input{pointer-events:auto}
.hero-label{font:italic 19px/1.4 var(--art-serif);letter-spacing:6px;color:#d6d2cd;display:block}
.hero h1{font:400 clamp(58px,6vw,102px)/1.25 var(--art-serif);letter-spacing:9px;color:#e7e2d9;margin:24px 0 9px;white-space:nowrap}
.hero-desc{font:400 clamp(16px,1.6vw,26px)/1.8 var(--art-serif);letter-spacing:5px;color:#e0ddd7;margin:0}
.robot-stage{position:absolute;inset:0;max-width:none;width:100%;height:100%;margin:0;isolation:auto}
#art-bounds{position:absolute;width:68%;height:95%;right:-2%;top:-4%}
.scene-fallback{width:100%;height:100%;object-fit:contain;mix-blend-mode:screen}
.robot-stage canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.search-area{max-width:none;margin:67px 0 0;position:relative}
#home-search{background:transparent;border:0;border-bottom:1px solid #b9b8b299;border-radius:0;padding:6px 0 0;min-height:48px;box-shadow:none;gap:10px}
#home-search input{font:400 18px var(--art-serif);letter-spacing:3px;color:#e7e2d9;padding:8px 0}
#home-search input::placeholder{color:#85868a}
#home-search .mic-button{color:#e1dfda;flex:none;width:44px;height:44px;border-radius:50%;background:transparent;box-shadow:none}
#home-search .mic-button:focus:not(:focus-visible){outline:none}
#home-search .mic-button:focus-visible{outline:1px solid currentColor;outline-offset:2px}
#home-search .search-submit{background:transparent;color:#c1c9d6;flex:none;width:44px;height:44px;border-radius:0}
#home-search:has(input:placeholder-shown) .search-submit{display:none}
.suggestions{justify-content:flex-start;gap:12px;margin:15px 0 0;color:#515d6d;font-size:10px;flex-wrap:wrap}
.suggestions button{background:none;border:0;padding:4px 0;font:400 11px var(--art-serif);color:#8290a2;letter-spacing:1px}
.hero-bottom{position:absolute;bottom:33px;left:4%;right:4%;display:flex;align-items:center;justify-content:flex-end;z-index:2;pointer-events:none}
.home-caption{font:400 11px var(--art-serif);letter-spacing:2px;color:#c1c0be;margin:0;white-space:nowrap}
.home-caption span{padding:0 13px;color:#7d838c}
.scene-controls{display:flex;align-items:center;gap:23px;pointer-events:auto}
.scene-controls button{font:400 10px var(--art-serif);letter-spacing:1.5px;color:#98a1ae;padding:10px 0;min-height:40px}
.scene-controls .motion-control{position:static;border:0;background:none;border-radius:0}
.scene-controls .ambient-voice{width:47px;height:47px;border:1px solid #d5d0c6;border-radius:50%;display:grid;place-items:center;color:#e6e2da;padding:0;margin-left:9px}
.voice-bars{display:flex;align-items:center;gap:3px;height:22px}.voice-bars i{width:1px;height:7px;background:currentColor}.voice-bars i:nth-child(2),.voice-bars i:nth-child(4){height:14px}.voice-bars i:nth-child(3){height:22px}
.explore-section,.starter-section{display:none}
body:has(#home-view:not([hidden])) footer{display:none}
.browse-collections{display:flex;gap:20px;padding-bottom:20px;border-bottom:1px solid var(--border);margin-bottom:25px;font-size:12px;color:#a8b5c6;flex-wrap:wrap}
@media(min-width:1600px){.hero-copy{left:10%;width:32%}#art-bounds{width:65%;right:0}}
@media(min-width:761px) and (max-height:800px){.header{height:96px;padding-top:22px}.brand{font-size:36px}.hero{height:calc(100svh - 96px);min-height:520px}.hero-copy{top:43%}.hero h1{font-size:clamp(58px,6vw,86px)}.search-area{margin-top:44px}.hero-bottom{bottom:24px}}
@media(min-width:761px) and (max-width:1050px){.hero-copy{left:7%;width:37%}.hero h1{font-size:62px;letter-spacing:4px}.hero-label{font-size:15px;letter-spacing:4px}.hero-desc{letter-spacing:3px}#art-bounds{right:-12%;width:74%}.nav{gap:30px}}
@media(max-width:760px){
 .header{height:93px;padding:22px 7% 0;display:flex;align-items:flex-start;gap:18px;flex-wrap:nowrap}
 .brand{font-size:32px;flex:none}.brand small{font-size:7px;letter-spacing:3px;margin-top:6px}
 .nav{width:auto;order:initial;gap:23px;height:32px;flex:none;justify-content:flex-end}
 .nav button{font-size:12px;letter-spacing:2px;padding:8px 0;display:block!important}
 .hero{height:calc(100svh - 93px);min-height:680px;overflow:hidden}
 .hero-copy{left:8%;right:8%;top:27px;transform:none;width:auto;max-width:none;position:absolute;display:contents}
 .hero-label{position:absolute;left:8%;top:19px;font-size:13px;letter-spacing:4px;z-index:2}
 .hero h1{position:absolute;left:8%;top:47px;font-size:55px;letter-spacing:7px;margin:0;z-index:2}
 .hero-desc{position:absolute;left:8%;top:126px;font-size:16px;letter-spacing:3px;z-index:2}
 #art-bounds{width:118%;height:390px;left:-9%;right:auto;top:153px}
 .search-area{position:absolute;left:8%;right:8%;bottom:112px;margin:0;z-index:2}
 #home-search{min-height:48px}#home-search input{font-size:17px;letter-spacing:2px}.suggestions{margin-top:13px;gap:14px}
 .hero-bottom{left:8%;right:8%;bottom:24px;align-items:flex-end;gap:10px}
 .home-caption{font-size:9px;letter-spacing:1px}.home-caption span{padding:0 7px}
 .scene-controls{gap:13px}.scene-controls button{font-size:9px;letter-spacing:0;min-height:40px}
 .scene-controls .ambient-voice{width:39px;height:39px;margin-left:0}.voice-bars{transform:scale(.8)}
 .browse-view{padding-top:15px}.browse-collections{gap:18px}
}
@media(max-width:760px) and (min-height:880px){.hero{min-height:760px}#art-bounds{top:160px;height:calc(100% - 320px)}.search-area{bottom:130px}.hero-bottom{bottom:40px}}
@media(max-width:360px){.nav{gap:16px}.brand{font-size:28px}.hero h1{font-size:49px}.home-caption{font-size:8px}.scene-controls{gap:8px}}
#home-view .suggestions{display:flex;flex-direction:row;align-items:center}
#home-view .suggestions>span{width:auto;margin:0}

/* Five curated themes: the painting, character and live controls are separate layers. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
#art-background,#art-veil{position:fixed;inset:0;pointer-events:none;z-index:-1}
#art-background{background-size:cover;background-position:center;opacity:0}
#art-veil{background:linear-gradient(90deg,rgba(2,7,13,.80),rgba(2,7,13,.58) 70%,rgba(2,7,13,.46));opacity:0}
body{isolation:isolate}
body:has(#home-view:not([hidden])) #art-background,body:has(#home-view:not([hidden])) #art-veil{opacity:1}
body[data-theme="cat-gold"]:has(#home-view:not([hidden])){background:radial-gradient(ellipse at 85% 20%,#302516 0%,#090a0b 52%,#030607 90%)}
body[data-theme="cat-nocturne"]:has(#home-view:not([hidden])){background:radial-gradient(ellipse at 72% 30%,#141c35 0%,#060b18 42%,#020609 85%)}
body[data-theme="cat-deco"]:has(#home-view:not([hidden])){background:radial-gradient(ellipse at 75% 35%,#0e2624 0%,#040c0b 45%,#020706 85%)}
.hero{min-height:540px}
.hero-copy{top:43%;width:34%}
.hero-desc{margin-top:26px;font-size:clamp(18px,1.8vw,28px);letter-spacing:3px}
.hero-label{font-size:17px;letter-spacing:5px}
.search-area{margin-top:56px}
#home-view .suggestions{display:none}
#art-bounds{width:66%;height:100%;right:-2%;top:-6%}
body[data-subject="venus"] #art-bounds{width:58%;height:113%;right:0;top:-13%}
.nav{gap:34px}
.nav button{min-width:40px;min-height:44px;letter-spacing:3px}
.deco-orbits{display:none;position:absolute;width:59%;height:81%;right:3%;top:1%;border:1px dashed #d7b76c60;border-radius:50%;transform:rotate(-23deg);pointer-events:none}
.deco-orbits:after{content:"";position:absolute;inset:12% -4%;border:1px dotted #d7b76c3b;border-radius:50%;transform:rotate(43deg)}
body[data-theme="cat-deco"] .deco-orbits{display:block}
.settings-dialog{max-width:850px;width:calc(100% - 32px);padding:32px 36px;background:#0e141b;border:1px solid #38414b;color:#e8e6e0;box-shadow:0 25px 100px #0008}
.settings-dialog h2{font:400 30px var(--art-serif);letter-spacing:2px;margin:8px 0 0}
.settings-dialog .dialog-top{margin-bottom:0}.settings-intro{color:#919aa8;font-size:13px;margin:8px 0 24px}
.theme-group{border:0;padding:0;margin:22px 0}.theme-group legend{padding:0;font-size:12px;letter-spacing:2px;color:#bbc2cb;margin-bottom:12px}
.theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.theme-choice{position:relative;display:block;border:1px solid #303945;border-radius:12px;overflow:hidden;cursor:pointer;background:#111a24;transition:border-color .2s,transform .2s}
.theme-choice:hover{border-color:#7f8d9e;transform:translateY(-2px)}
.theme-choice:has(input:checked){border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.theme-choice:has(input:focus-visible){outline:2px solid #fff;outline-offset:4px}
.theme-choice input{position:absolute;width:1px;height:1px;opacity:0;left:10px;top:10px}
.theme-choice img{width:100%;aspect-ratio:1.6;object-fit:cover;display:block}
.theme-choice-copy{display:block;padding:11px 13px 13px}.theme-choice strong{font:400 16px var(--art-serif);letter-spacing:1px;display:block}.theme-choice small{display:block;font-size:11px;color:#8f9cac;margin-top:4px}
.theme-check{display:none;position:absolute;right:9px;top:9px;width:23px;height:23px;border-radius:50%;background:var(--accent);color:#101822;text-align:center;line-height:23px}
.theme-choice:has(input:checked) .theme-check{display:block}
.settings-bottom{border-top:1px solid #2d3640;padding-top:20px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.settings-current{font-size:12px;color:#929dab}.settings-current strong{font-weight:400;color:#d8dce2}
#theme-status{font-size:11px;color:#9cadbc;margin:5px 0 0;min-height:18px}.settings-bottom button{white-space:nowrap}
@media(max-width:760px){
 .header{height:90px;padding:20px 6% 0;gap:12px}.brand{font-size:28px}.brand small{font-size:6px;letter-spacing:2px}.nav{gap:12px}.nav button{font-size:11px;letter-spacing:1px;min-width:28px}
 /* Allow short phone viewports; very short views may still scroll for usability. */
 .hero{height:calc(100vh - 90px);height:calc(100svh - 90px);min-height:460px}
 #art-bounds{left:-8%;right:auto;top:10px;width:116%;height:65%}
 body[data-subject="venus"] #art-bounds{left:8%;right:8%;top:-2%;width:84%;height:70%}
 .hero-copy{display:block;left:8%;right:8%;top:auto;bottom:113px;transform:none;width:auto;pointer-events:none}
 .hero-label{position:static;display:block;font-size:12px;letter-spacing:3px;line-height:1.6}
 .hero-desc{position:static;font-size:19px;letter-spacing:1.5px;margin-top:10px;white-space:nowrap}
 .search-area{position:static;margin:25px 0 0}
 .hero-bottom{bottom:24px;left:8%;right:8%;align-items:center}
 .home-caption{font-size:8px;letter-spacing:.5px}.home-caption span{padding:0 4px}
 .scene-controls{gap:9px}.scene-controls button{font-size:9px}.scene-controls .ambient-voice{width:32px;height:32px}
 #art-background{background-position:62% center}
 #art-veil{background:linear-gradient(180deg,#02071099 0%,#02071080 40%,#020710c9 77%,#020710b0 100%)}
 .deco-orbits{width:90%;height:53%;top:5%;right:5%}
 .settings-dialog{padding:23px 19px;max-height:90svh}.settings-dialog h2{font-size:25px}.settings-intro{margin-bottom:18px}
 .theme-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.theme-choice-copy{padding:9px}.theme-choice strong{font-size:15px}.theme-choice small{font-size:10px}.settings-bottom{align-items:flex-start}.settings-bottom button{font-size:12px;padding:10px}
}
@media(max-width:360px){.nav{gap:8px}.brand{font-size:25px}.hero-desc{font-size:17px}.scene-controls{gap:6px}.home-caption{font-size:7px}}
@media(prefers-reduced-motion:reduce){.theme-choice{transition:none}}

/* Moon pendant, first cat theme. A slow breeze around the top attachment. */
body[data-theme="cat-gold"]:has(#home-view:not([hidden])){background:radial-gradient(ellipse at 72% 30%,#141c35 0%,#060b18 42%,#020609 85%)}
.moon-pendant{display:none;position:absolute;top:0;left:calc(62% - 42px);width:84px;height:clamp(190px,26svh,255px);pointer-events:none;z-index:2;transform-origin:50% 0;animation:moon-breeze 9s ease-in-out infinite;will-change:transform}
.moon-pendant svg{display:block;width:100%;height:100%;overflow:visible;fill:unset;stroke:none}
body[data-theme="cat-gold"]:has(#home-view:not([hidden])) .moon-pendant{display:block}
body[data-motion="paused"] .moon-pendant{animation-play-state:paused}
@keyframes moon-breeze{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}
@media(max-width:760px){.moon-pendant{left:calc(44% - 30px);width:60px;height:176px;transform-origin:50% 0}}
@media(prefers-reduced-motion:reduce){.moon-pendant{animation:none;transform:rotate(-1deg)}}

/* Keep the complete crown inside the particle canvas after the proportion correction. */
@media(min-width:761px){body[data-subject="venus"] #art-bounds{height:103%;top:-3%}}

/* Fixed brand copy. Existing art, particle scene and motion remain untouched. */
.brand>span{display:inline-flex;flex-direction:column;align-items:flex-start}
.brand small{font-size:.23em;letter-spacing:0;white-space:nowrap;margin-top:8px}
.hero-label{letter-spacing:1.4px;line-height:1.6;text-wrap:pretty}
.hero-desc{white-space:normal;text-wrap:balance}
#home-search input::placeholder{color:#85868a;opacity:1;letter-spacing:1.2px}
.theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.settings-about{display:flex;align-items:center;justify-content:space-between;width:100%;padding:18px 0;margin:0 0 12px;border-top:1px solid #2d3640;color:#d8dce2;font:400 16px var(--art-serif);text-align:left}
.settings-about:hover{color:#fff}
@media(max-width:760px){
 .brand small{font-size:.23em;letter-spacing:0;margin-top:6px}
 .hero-label{font-size:12px;letter-spacing:.7px;line-height:1.5}
 .hero-desc{font-size:18px;letter-spacing:1px;line-height:1.7;white-space:normal}
}
@media(max-width:360px){.hero-desc{font-size:16px}}

/* Brand proportions follow the approved concept; preserve the serif families. */
.brand{font-size:44px;letter-spacing:1px}
.brand small{font-size:.29em;letter-spacing:0;line-height:1.6;margin-top:7px;color:#d4d0cb}
#home-search input{font-size:16px;letter-spacing:1.2px}
@media(max-width:760px){
 .brand{font-size:30px}
 .brand small{font-size:.29em;margin-top:6px}
 #home-search input{font-size:14px;letter-spacing:1px}
}
@media(max-width:360px){.brand{font-size:27px}#home-search input{font-size:13px}}

/* Align the complete brand lockup by distributing characters, not guessing tracking. */
.brand>.brand-lockup{display:inline-flex;flex-direction:column;align-items:stretch}
.brand-wordmark{display:block;white-space:nowrap;letter-spacing:.075em;margin-right:-.075em;font-weight:400}
.brand .brand-tagline{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:.25em;line-height:1.5;letter-spacing:0;margin-top:10px;color:#d4d0cb}
.brand-tagline>span{display:block;flex:none}
.brand-tagline>.brand-punctuation{width:.55em}
@media(max-width:760px){.brand .brand-tagline{font-size:.25em;margin-top:7px}}

/* Slow, bounded background drift; the frame prevents transformed edges from adding scrollbars. */
.art-background-frame{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:-1}
.art-background-frame #art-background{position:absolute;inset:-2%;z-index:auto;animation:theme-background-drift 18s ease-in-out infinite alternate;animation-play-state:paused;transform:translate(-.45%,.25%) scale(1.02)}
body[data-subject="venus"] #art-background{animation-duration:24s;animation-name:venus-background-drift}
body[data-motion-enabled="true"]:has(#home-view:not([hidden])) #art-background{animation-play-state:running}
body[data-theme="cat-gold"]:has(#home-view:not([hidden])) #art-background{opacity:.34}
body[data-theme="cat-nocturne"]:has(#home-view:not([hidden])) #art-background{opacity:.85}
@keyframes theme-background-drift{from{transform:translate(-.45%,.25%) scale(1.02)}to{transform:translate(.45%,-.25%) scale(1.045)}}
@keyframes venus-background-drift{from{transform:translate(-.25%,.15%) scale(1.02)}to{transform:translate(.25%,-.15%) scale(1.035)}}
@media(prefers-reduced-motion:reduce){.art-background-frame #art-background{animation-play-state:paused!important}}

.theme-flow-canvas{display:block;width:100%;height:100%;pointer-events:none}
.theme-flow-canvas[hidden]{display:none}
.art-background-frame #art-background[data-renderer="texture-flow"]{animation:none;transform:none}

/* A static fallback must not move the village or cypress with the sky. */
body:is([data-theme="vangogh"],[data-theme="monet"]) #art-background:not([data-renderer="texture-flow"]){animation:none;transform:none}

/* Keep the painting readable with one veil, without a second brightness reduction. */
body[data-theme="vangogh"] #art-veil{background:linear-gradient(90deg,rgba(2,7,13,.72),rgba(2,7,13,.58) 65%,rgba(2,7,13,.50))}
@media(max-width:760px){body[data-theme="vangogh"] #art-veil{background:linear-gradient(180deg,rgba(2,7,13,.52),rgba(2,7,13,.60) 65%,rgba(2,7,13,.70))}}

/* Monet: reveal the pond through a lighter veil while keeping copy readable. */
body[data-theme="monet"] #art-veil{background:linear-gradient(90deg,rgba(2,7,13,.60),rgba(2,7,13,.35) 70%,rgba(2,7,13,.25))}
@media(max-width:760px){body[data-theme="monet"] #art-veil{background:linear-gradient(180deg,rgba(2,7,16,.45) 0%,rgba(2,7,16,.35) 40%,rgba(2,7,16,.50) 77%,rgba(2,7,16,.45) 100%)}}


/* Short phone screens: compress space before readable content.
   Expanded curiosity/voice content keeps its taller, scrollable layout. */
@media(max-width:760px) and (max-height:759px){
 body:not(.home-star-voice-open):not(.curiosity-active) .hero-copy{bottom:clamp(76px,calc(100svh - 647px),113px)}
 body:not(.home-star-voice-open):not(.curiosity-active) .search-area{margin-top:16px}
 body:not(.home-star-voice-open):not(.curiosity-active) #art-bounds{height:min(65%,calc(100% - 230px))}
 body[data-subject="venus"]:not(.home-star-voice-open):not(.curiosity-active) #art-bounds{height:min(70%,calc(100% - 230px))}
 .moon-pendant{height:clamp(120px,23svh,176px)}
}
