.loma-appearance{position:fixed;bottom:max(16px,env(safe-area-inset-bottom));left:16px;z-index:80;display:flex;gap:4px;padding:4px;border:1px solid #829078;border-radius:30px;background:#25382cf5;color:#d3ddcc;box-shadow:0 4px 20px #0002;backdrop-filter:blur(12px)}.loma-appearance button{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:24px;background:transparent;color:inherit;padding:0;cursor:pointer}.loma-appearance svg{width:19px;height:19px}.loma-appearance button[aria-pressed=true]{background:#c6d3b6;color:#25382c}.loma-appearance button:hover{box-shadow:inset 0 0 0 1px #c6d3b6}.loma-appearance button:focus-visible{outline:2px solid #f6f2e7;outline-offset:3px}
@media screen{
html[data-loma-theme=dark]{--paper:#17211c;--ink:#ecf1e7;--muted:#bdcbb6;--clay:#d7b495;--line:#52624f;color-scheme:dark}
html[data-loma-theme=dark] body{background:#17211c;color:#ecf1e7}
html[data-loma-theme=dark] :is(.work,.discovery-section,.delivery-promise>div,.website-examples article,.preview-bar,.collection article,.project-stage,.stage-screen,.tools input,.tools select,.business-project>a,#work .gallery .project,dialog){background-color:#25332b;color:#ecf1e7;border-color:#52624f}
html[data-loma-theme=dark] :is(.library,.editorial-hero,.text-section,.portfolio-grid,.design-story,.project-info,.project-meta,.project-description,.caption,.inquiry,.rate-section){color:#ecf1e7}
html[data-loma-theme=dark] :is(.intro p,.services p,.section-top p,.intro h2 span,.rate-section p,.rate-section li,.rate-section small,.inquiry p,.text-section p,.editorial-hero p,.library p,.library small,.library span,.caption span,.caption small,.project-info span){color:#bdcbb6}
html[data-loma-theme=dark] :is(input,textarea,select){background:#1b2820;color:#ecf1e7;border-color:#52624f}
html[data-loma-theme=dark] :is(input,textarea)::placeholder{color:#a8b7a1}
html[data-loma-theme=dark] :is(.rate-card,.package-card,.price-card,.portfolio-card,.faq-list details){background-color:#25332b;color:#ecf1e7;border-color:#52624f}
html[data-loma-theme=dark] :is(.rate-card,.package-card,.price-card) :is(h3,strong,span){color:#ecf1e7}
html[data-loma-theme=dark] :is(.website-design,.library-intro,footer,.site-footer){--paper:#eae7de;--ink:#30372b;--muted:#c3cdbb;--clay:#d7b495;--line:#52624f}
html[data-loma-theme=dark] :is(.time-story,.blue-opening-story,.interior-story){--paper:#eae7de;--ink:#30372b;--clay:#d7b495}
html[data-loma-theme=dark] :is(.nav-contact,.text-link,.filters button,.outline){color:#ecf1e7;border-color:#7c9070}
html[data-loma-theme=dark] .filters .active{background:#b9cba7;color:#1b2b20}
html[data-loma-theme=dark] .project .arrow{background:#b9cba7;color:#1b2b20}
}
@media print{.loma-appearance{display:none!important}html[data-loma-theme]{--paper:#fff;--ink:#30372b;--muted:#626953;--line:#c7c9ba;color-scheme:light}}

@media screen {
/* The scroll section surround must stay dark while image overlays stay cream. */
html[data-loma-theme=dark] :is(.time-story,.interior-story){background:#17211c}
html[data-loma-theme=dark] .website-design.business-editorial{--paper:#17211c;--ink:#ecf1e7;--muted:#bdcbb6;background-color:#17211c;color:#ecf1e7;border-color:#52624f}
html[data-loma-theme=dark] .business-intro h2 em{color:#d7b495}
html[data-loma-theme=dark] :is(.business-intro p,.business-project figcaption span:last-child){color:#bdcbb6}
html[data-loma-theme=dark] .business-project>a{background-color:#344737;color:#ecf1e7}
html[data-loma-theme=dark],html[data-loma-theme=dark] *{scrollbar-color:#657a63 #1b2820}
html[data-loma-theme=dark] ::-webkit-scrollbar{width:10px;height:10px;background:#1b2820}
html[data-loma-theme=dark] ::-webkit-scrollbar-track,html[data-loma-theme=dark] ::-webkit-scrollbar-corner{background:#1b2820}
html[data-loma-theme=dark] ::-webkit-scrollbar-thumb{background:#657a63;border:2px solid #1b2820;border-radius:10px}
html[data-loma-theme=dark] ::-webkit-scrollbar-thumb:hover{background:#8ea584}
}

/* Compact switch with a full 44px touch target. */
.loma-appearance{padding:0;border:0;background:transparent;box-shadow:none;backdrop-filter:none;gap:0}
.loma-appearance button.appearance-switch{display:grid;place-items:center;width:64px;height:44px;min-height:44px;padding:0;border:0;border-radius:24px;background:transparent;color:#c6d3b6;cursor:pointer;box-shadow:none;filter:none}
.loma-appearance button.appearance-switch:hover{background:transparent;box-shadow:none;filter:none}
.loma-appearance .appearance-track{display:block;position:relative;width:62px;height:32px;border:1px solid #73866c;border-radius:20px;background:#25382c;box-shadow:0 3px 12px #0002;transition:background .25s,box-shadow .25s,transform .2s}
.loma-appearance .appearance-thumb{position:absolute;top:3px;left:3px;width:24px;height:24px;background:#e9e9d9;border-radius:50%;box-shadow:0 1px 4px #0003;transition:transform .32s cubic-bezier(.2,.8,.2,1),background .25s}
.loma-appearance .appearance-switch[aria-checked=true] .appearance-thumb{transform:translateX(30px);background:#c6d3b6}
.loma-appearance .appearance-track svg{position:absolute;top:7px;width:16px;height:16px;transition:color .25s,transform .35s;pointer-events:none}
.loma-appearance .appearance-sun{left:7px;color:#25382c}
.loma-appearance .appearance-moon{right:7px;color:#c6d3b6}
.loma-appearance [aria-checked=true] .appearance-sun{color:#c6d3b6;transform:rotate(45deg)}
.loma-appearance [aria-checked=true] .appearance-moon{color:#25382c;transform:rotate(-12deg)}
.loma-appearance .appearance-switch:hover .appearance-track{box-shadow:0 0 0 3px #a9bc9326,0 3px 12px #0002}
.loma-appearance .appearance-switch:active .appearance-track{transform:scale(.94)}
.loma-appearance .appearance-switch:focus-visible{outline:2px solid #a9bc93;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.loma-appearance .appearance-track,.loma-appearance .appearance-thumb,.loma-appearance svg{transition:none}}

/* CSS starts the reveal with the snapshot, without a JS handoff mid-frame. */
html.theme-revealing::view-transition-group(root){animation:none}
html.theme-revealing::view-transition-old(root),html.theme-revealing::view-transition-new(root){mix-blend-mode:normal;backface-visibility:hidden}
html.theme-revealing::view-transition-old(root){animation:none;z-index:1}
html.theme-revealing::view-transition-new(root){z-index:2;animation:loma-theme-drop 620ms cubic-bezier(.18,.7,.32,1) both;will-change:clip-path}
@keyframes loma-theme-drop{from{clip-path:circle(18px at var(--theme-x) var(--theme-y))}to{clip-path:circle(var(--theme-radius) at var(--theme-x) var(--theme-y))}}
html.theme-revealing *,html.theme-revealing *::before,html.theme-revealing *::after{transition:none!important}
