/* The sun remains a real, keyboard-accessible control inside the orbital artwork. */
.hero-title-row .hero-mark{pointer-events:none}
.solar-switch{pointer-events:all;cursor:pointer;outline:none}
.solar-switch:focus-visible .solar-hit{stroke:var(--accent);stroke-width:.6}
.solar-hit{pointer-events:all}
.solar-core,.solar-rim{transition:fill .5s,opacity .5s}
.solar-glow,.solar-corona{transition:opacity .5s}
.sun-dimming .glass-system .solar-glow,.sun-dimming .glass-system .solar-corona,
[data-theme=dark] .glass-system .solar-glow,[data-theme=dark] .glass-system .solar-corona{animation:none!important;opacity:0}
[data-theme=dark] .solar-core{fill:url(#sun-cooled)}
[data-theme=dark] .solar-rim{stroke:#aaa799;opacity:.2}
[data-theme=dark] .solar-granules{fill:#b4a394;opacity:.09}
[data-theme=dark] .glass-orbits{opacity:.48}

:root[data-theme=dark]{color-scheme:dark;--bg:#191d20;--ink:#e5e9e5;--muted:#a1aaa7;--accent:#ff9a70;--button-glass:linear-gradient(150deg,#ffffff22,#b8c9ca14 50%,#ffffff12);--button-edge:1px solid #d2e0df29;--button-shadow:0 3px 16px #0004,inset 0 1px 1px #ffffff29,inset 0 -1px 2px #b6cccc0d}
[data-theme=dark] .ambient{background:radial-gradient(ellipse at 70% 20%,#63737924,transparent 65%)}
[data-theme=dark] .hero h1 em{color:#a4b7a9}
[data-theme=dark] :is(.hero-bottom p,.about-story p,.about-copy p,.demo-note,footer,.quote-card small){color:var(--muted)}
[data-theme=dark] .about-copy .about-lead{color:#b3c5b3}
[data-theme=dark] :is(.section-head,footer,.about-action,.about-lead){border-color:#c6d2c526}
[data-theme=dark] :is(nav,.tabs,.contact-row){background:linear-gradient(145deg,#3c454b99,#252e326b 52%,#46535666);border-color:#d2e0df29;box-shadow:0 12px 40px #0003,inset 0 1px 0 #ffffff21,inset 0 -1px 0 #ffffff0c}
[data-theme=dark] :is(.nav-slider,.filter-slider){background:var(--button-glass);border:var(--button-edge);box-shadow:var(--button-shadow)}
[data-theme=dark] :is(.nav-slider,.filter-slider,.contact-row)::before{background:linear-gradient(120deg,#ffffff15,transparent 48%)}
[data-theme=dark] :is(nav a,.tabs button){color:#acb8b3}
[data-theme=dark] :is(nav a.active,.tabs button.selected){color:var(--ink)}
[data-theme=dark] :is(.load-more,.header-contact,.close){color:var(--ink)}
[data-theme=dark] :is(.load-more,.header-contact,.close):hover{box-shadow:0 5px 22px #0005,inset 0 1px 1px #ffffff38,inset 0 -1px 2px #b6cccc12}
[data-theme=dark] .load-more::before{background:linear-gradient(120deg,#ffffff15,transparent 48%)}
[data-theme=dark] :is(.card,.collection,.about-photo){background:#2b3335;border-color:#c6d6d329;box-shadow:0 12px 35px #0003}
[data-theme=dark] :is(.card .caption,.collection-meta){background:linear-gradient(145deg,#252f35d9,#2b3934ad 52%,#293238d4);border-color:#d2e0df38;box-shadow:0 7px 22px #0003,inset 0 1px 0 #ffffff25}
[data-theme=dark] :is(.card .caption h2,.collection .collection-meta h2,.contact-row strong){color:var(--ink)}
[data-theme=dark] :is(.publication-meta,.card .caption p,.collection-meta small,.collection-count,.contact-row .contact-channel){color:#b2bfb4}
[data-theme=dark] .contact-row .contact-icon{color:#c2d0c0}
[data-theme=dark] .contact-row:hover{border-color:#d2e0df60;box-shadow:0 16px 42px #0004,inset 0 1px 0 #ffffff35}
[data-theme=dark] .feed .grid>.quote-card{background:linear-gradient(145deg,#323e4099,#35413766 52%,#2c373b88);border-color:#d2e0df29;box-shadow:0 12px 35px #0003,inset 0 1px 0 #ffffff21}
[data-theme=dark] dialog{background:var(--bg);color:var(--ink)}
[data-theme=dark] #veil.on{background:#191d2066}
[data-theme=dark] .glass-cursor-dot{background:#d1dfd8;box-shadow:0 0 0 1px #ffffff35}
[data-theme=dark] .glass-cursor-shape{border-color:#bacfc680;background:linear-gradient(140deg,#ffffff25,#edf4ee05 55%,#ffffff10)}
/* A feathered alpha mask blends both page snapshots over a wide soft edge. */
@property --theme-reveal{syntax:'<length>';inherits:false;initial-value:0px}
.theme-switching::view-transition-group(root){animation:none}
.theme-switching::view-transition-old(root){animation:none;mix-blend-mode:normal}
.theme-switching::view-transition-new(root){animation:solar-theme-reveal 1.35s cubic-bezier(.4,0,.2,1) both;mix-blend-mode:normal;mask-image:radial-gradient(circle at var(--theme-x) var(--theme-y),#000 max(0px,calc(var(--theme-reveal) - 160px)),#000000b3 max(0px,calc(var(--theme-reveal) - 100px)),#0000003d max(0px,calc(var(--theme-reveal) - 40px)),transparent var(--theme-reveal));-webkit-mask-image:radial-gradient(circle at var(--theme-x) var(--theme-y),#000 max(0px,calc(var(--theme-reveal) - 160px)),#000000b3 max(0px,calc(var(--theme-reveal) - 100px)),#0000003d max(0px,calc(var(--theme-reveal) - 40px)),transparent var(--theme-reveal))}
.theme-switching::view-transition-image-pair(root){isolation:isolate}
@keyframes solar-theme-reveal{
  from{--theme-reveal:0px;filter:blur(5px)}
  to{--theme-reveal:calc(var(--theme-radius) + 170px);filter:blur(0)}
}
.theme-wave{position:fixed;inset:0;z-index:1000;pointer-events:none;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);mask-image:radial-gradient(circle at var(--theme-x) var(--theme-y),#000 max(0px,calc(var(--theme-reveal) - 160px)),transparent var(--theme-reveal));-webkit-mask-image:radial-gradient(circle at var(--theme-x) var(--theme-y),#000 max(0px,calc(var(--theme-reveal) - 160px)),transparent var(--theme-reveal))}
@media(prefers-reduced-motion:reduce){.solar-core,.solar-rim,.solar-glow,.solar-corona{transition:none}}
[data-theme=dark] .quote-card{background:linear-gradient(145deg,#323e4099,#35413766 52%,#2c373b88);border:1px solid #d2e0df29}

/* A cooled glass sphere with quiet embers instead of a bright corona. */
.solar-magma,.solar-embers-glow{opacity:0;pointer-events:none;transition:opacity .6s}
.solar-magma{fill:none;stroke:#dfaa7e;stroke-width:.19;stroke-linecap:round;stroke-linejoin:round}
.solar-magma .magma-branch{stroke:#bc8668;stroke-width:.12;opacity:.65}
[data-theme=dark] .solar-magma{opacity:.55}
[data-theme=dark] .solar-embers-glow{opacity:.13;animation:embers-breath 14s ease-in-out infinite}
@keyframes embers-breath{0%,100%{opacity:.09}50%{opacity:.16}}
@media(prefers-reduced-motion:reduce){.solar-magma,.solar-embers-glow{transition:none}[data-theme=dark] .solar-embers-glow{animation:none}}

html[data-theme="dark"] body .load-more{color:#eef3ee;-webkit-text-fill-color:#eef3ee;font-weight:500;opacity:1}
html[data-theme="dark"] body .load-more:disabled{opacity:.5}
/* Match the readable dark-theme label already used by the More button. */
html[data-theme="dark"] body .header-contact,
html[data-theme="dark"] body .close{color:#eef3ee;-webkit-text-fill-color:#eef3ee}
