/* Daylight theme. Warm cream, navy text, deeper amber. Dark stays the default. */
html[data-theme="light"]{--ink:#f6f1e7;--ink-2:#efe8da;--paper:#1b2233;--muted:#4d586f;--amber:#c97609;--amber-soft:#d98a1c;--line:rgba(30,40,70,.10);color-scheme:light}
html[data-theme="light"],html[data-theme="light"] body,html[data-theme="light"] .wsec,html[data-theme="light"] .ame,html[data-theme="light"] .cnt,html[data-theme="light"] .ftr{background:#f6f1e7;color:#1b2233}
html[data-theme="light"] .bg{opacity:0}
.stage::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;opacity:0;background:radial-gradient(120% 90% at 33% 70%,#fffaf0 0%,#f6f1e7 55%,#ece3d1 100%);transition:opacity .7s ease}
html[data-theme="light"] .stage::before{opacity:1}
html[data-theme="light"] .wsec .page{background:radial-gradient(120% 90% at 50% 78%,#fffaf0 0%,#f6f1e7 55%,#ece3d1 100%)}
html[data-theme="light"] .ame .scene,html[data-theme="light"] .ame{background:#f6f1e7}
html[data-theme="light"] .stage .ambient{background:radial-gradient(closest-side,rgba(255,214,140,.35),transparent 74%)}
/* lamp reads soft/off in daylight */
html[data-theme="light"] .lamp-cone,html[data-theme="light"] .lamp-pool,html[data-theme="light"] .lamp-glow{opacity:.58!important}
html[data-theme="light"] .lamp-shade{background:linear-gradient(180deg,#d9d2c3,#bdb5a3)}
html[data-theme="light"] .lamp-cord{background:#9a927f}
html[data-theme="light"] .stage .figure{filter:none}
html[data-theme="light"] .stage .foot-shadow{background:radial-gradient(closest-side,rgba(60,50,30,.25),transparent)}
html[data-theme="light"] .stage .grid{opacity:.5}
/* text */
html[data-theme="light"] .stage .l1,html[data-theme="light"] .mark-a{color:#1b2233}
html[data-theme="light"] .stage .sub,html[data-theme="light"] .wsec .sub,html[data-theme="light"] .cnt .lead,html[data-theme="light"] .ame p{color:#3b4660;opacity:1}
html[data-theme="light"] .stage .talk,html[data-theme="light"] .ftr-nav a{color:#3b4660}
html[data-theme="light"] .stage .talk:hover,html[data-theme="light"] .ftr-nav a:hover{color:#1b2233}
html[data-theme="light"] .stage .topbar.stuck{background:rgba(246,241,231,.92);border-bottom-color:rgba(30,40,70,.12)}
html[data-theme="light"] .wsec .title,html[data-theme="light"] .ame .title,html[data-theme="light"] .cnt .title{color:#c97609;background:none;-webkit-text-fill-color:#c97609}
html[data-theme="light"] .wsec .kick,html[data-theme="light"] .wsec .kick *,html[data-theme="light"] .cnt .kick,html[data-theme="light"] .ame .kicker{color:#6b7690}
html[data-theme="light"] .wsec .row{background:#fffdf8;border-color:rgba(30,40,70,.12)}
html[data-theme="light"] .wsec .name,html[data-theme="light"] .ame h2,html[data-theme="light"] .ame .lead{color:#1b2233}
html[data-theme="light"] .wsec .row.on .name{color:#c97609}
html[data-theme="light"] .wsec .num{color:rgba(30,40,70,.16)}
html[data-theme="light"] .wsec .row.on .num{color:#c97609}
html[data-theme="light"] .wsec .spec,html[data-theme="light"] .wsec .row p{color:#3b4660}
html[data-theme="light"] .wsec .spec b{color:#8a5206}
html[data-theme="light"] .wsec .shot{border-color:rgba(30,40,70,.18);box-shadow:0 18px 40px rgba(60,50,30,.18)}
html[data-theme="light"] .wsec .plink{color:#8a5206;border-color:rgba(201,118,9,.6)}
html[data-theme="light"] .wsec .plink:hover,html[data-theme="light"] .wsec .plink:focus-visible{background:#c97609;color:#fff}
html[data-theme="light"] .cnt .mail{color:#8a5206}
html[data-theme="light"] .cnt .socials a{color:#1b2233;border-color:rgba(30,40,70,.25)}
html[data-theme="light"] .ftr{border-top-color:rgba(30,40,70,.12)}
html[data-theme="light"] .ftr .cp{color:#6b7690}
html[data-theme="light"] .cnt{border-top-color:rgba(30,40,70,.1)}
html[data-theme="light"] .cnt::after{opacity:.25}
/* fallbacks until day art exists: the Work figure and the Contact night scene are dark art */
.wsec img.tom-day{opacity:0;transition:opacity .7s ease}
.wsec img.tom{transition:opacity .7s ease}
html[data-theme="light"] .wsec img.tom{opacity:0}
html[data-theme="light"] .wsec img.tom-day{opacity:1;filter:drop-shadow(0 14px 16px rgba(60,50,30,.22))}
.mbx .plate-day{position:absolute;left:0;top:0;width:100%;opacity:0;transition:opacity .7s ease}
.mbx .plate-night{transition:opacity .7s ease}
html[data-theme="light"] .mbx .plate-night{opacity:0}
html[data-theme="light"] .mbx .plate-day{opacity:1}
html[data-theme="light"] .mbx .lampglow,html[data-theme="light"] .mbx .moonglow,html[data-theme="light"] .mbx .win,html[data-theme="light"] .mbx .st{display:none}
/* the plane flies in day mode too: same path, an amber trail built for cream */
.mbx .plane .pt-day{opacity:0;left:33.06%;width:66.94%;transform-origin:0 50%;animation:sc-trail 6s ease-in-out infinite;transition:opacity .7s ease}
.mbx .plane .pt{transition:opacity .7s ease}
html[data-theme="light"] .mbx .plane .pt{opacity:0}
html[data-theme="light"] .mbx .plane .pt-day{opacity:1}
html[data-theme="light"] .mbx .plane .pb{filter:drop-shadow(0 3px 5px rgba(120,72,12,.26))}
html[data-theme="light"] .mbx{filter:drop-shadow(0 18px 30px rgba(60,50,30,.2))}
/* toggles live in the nav */
.tgl{display:inline-flex;align-items:center;gap:8px;margin-inline-start:6px;direction:ltr}
.tbtn{min-width:40px;height:40px;padding:0 10px;border-radius:99px;border:1px solid rgba(190,205,228,.32);background:rgba(14,20,34,.55);color:#eef1f7;cursor:pointer;display:inline-grid;place-items:center;font:800 13px/1 TomAR,sans-serif;letter-spacing:.06em;transition:border-color .2s,background .2s,color .2s}
.tbtn:hover,.tbtn:focus-visible{border-color:#f2a01f;color:#fff;outline:none}
.tbtn svg{width:19px;height:19px}.tbtn .sun{display:none}
html[data-theme="light"] .tbtn{background:rgba(255,253,248,.85);color:#1b2233;border-color:rgba(30,40,70,.28)}
html[data-theme="light"] .tbtn:hover,html[data-theme="light"] .tbtn:focus-visible{border-color:#c97609}
html[data-theme="light"] .tbtn .sun{display:block}html[data-theme="light"] .tbtn .moon{display:none}
@media(max-width:820px){.tgl{gap:5px;margin-inline-start:2px}.tbtn{min-width:32px;height:32px;padding:0 6px;font-size:11px}.tbtn svg{width:16px;height:16px}.stage .toplinks{gap:9px!important}.stage .talk-dot{display:none}.stage .talk{font-size:12.5px}.stage .topbar{padding:0 12px!important}.stage .mark{font-size:15px!important}}
@media(max-width:900px){html[data-theme="light"] .wsec img.tom-day{display:none}}
.wsec img.tom-day{width:auto}

/* Day/night crossfade. .anim is added by theme.js only for the ~700ms after a toggle, so first load never animates. */
html.anim *, html.anim *::before, html.anim *::after{
  transition:color .7s ease, background-color .7s ease, border-color .7s ease,
             box-shadow .7s ease, opacity .7s ease, filter .7s ease !important;
}
@media (prefers-reduced-motion: reduce){
  html.anim *, html.anim *::before, html.anim *::after{ transition:none !important }
}
/* day beam: champagne morning-sun, paler than the night amber */
html[data-theme="light"] .stage .lamp-cone{background:linear-gradient(180deg,
  rgba(255,246,222,.62) 0%,
  rgba(255,234,190,.36) 14%,
  rgba(255,222,160,.17) 40%,
  rgba(255,214,150,.06) 62%,
  rgba(255,210,140,0) 86%)}
html[data-theme="light"] .stage .lamp-glow{background:radial-gradient(closest-side, #fffdf4 0%, #fdf0cd 38%, #f9df9f 66%, rgba(250,220,150,.3) 86%, rgba(250,220,150,0) 100%);box-shadow:0 0 40px 10px rgba(253,236,190,.4), 0 0 84px 26px rgba(250,225,160,.16)}
html[data-theme="light"] .stage .lamp-pool{background:radial-gradient(closest-side, rgba(255,240,200,.95) 0%, rgba(255,228,170,.55) 26%, rgba(255,214,140,.24) 52%, rgba(255,205,125,.07) 72%, rgba(255,205,125,0) 100%)}
