/* Automatic device appearance. Photographs keep their original colors. */
:root{--wave-baseline:#ffffff20;--wave-muted:#a7a5a8}
:root[data-theme=light]{--background:#f7f6f3;--surface:#ffffff;--text-primary:#201c25;--text-secondary:#655e6d;--border-glass:rgba(41,31,49,.16);--wave-baseline:#211b2825;--wave-muted:#746c7f}
:root[data-theme=light] body{background:var(--background);color:var(--text-primary)}
:root[data-theme=light] .body-copy,
:root[data-theme=light] .editorial>.body-copy,
:root[data-theme=light] .studio-intro .body-copy,
:root[data-theme=light] #direction>.body-copy,
:root[data-theme=light] .get-section>.contact-prompt{color:#544d5e}
:root[data-theme=light] .editorial-subtitle,
:root[data-theme=light] .studio-subtitle{color:#62596c}
:root[data-theme=light] .catalogue-intro>p:first-child{color:#655d70}
:root[data-theme=light] .catalogue-intro>p+p{color:#302838}
:root[data-theme=light] .player-surface,
:root[data-theme=light] .service-card.player-surface{background:#ffffff;border-color:#29203125;box-shadow:0 12px 32px #39254306}
:root[data-theme=light] .player-surface::before{box-shadow:inset 0 1px 0 #ffffff}
:root[data-theme=light] .service-card[data-service=human]{background:#f0eeeb;border-color:#3c304a60}
:root[data-theme=light] .service-heading h3,
:root[data-theme=light] .service-benefits dt,
:root[data-theme=light] .service-card[data-service=human] .service-benefits>div:first-child dt{color:#211b28}
:root[data-theme=light] .service-category,
:root[data-theme=light] .service-card[data-service=human] .service-category,
:root[data-theme=light] .service-subtitle{color:#62596d}
:root[data-theme=light] .service-description{color:#4c4358}
:root[data-theme=light] .service-benefits dd,
:root[data-theme=light] .service-context,
:root[data-theme=light] .service-conditions,
:root[data-theme=light] .service-details-body .service-applications{color:#5c5268}
:root[data-theme=light] .service-card[data-service=synthetic] .service-category{color:var(--accent-ink)}
:root[data-theme=light] .service-benefits>div,
:root[data-theme=light] .service-details>summary{border-top-color:#2c223418}
:root[data-theme=light] .service-card[data-service=human] .service-benefits>div:first-child{border-top-color:var(--accent-border)}
:root[data-theme=light] .service-card[data-service=human] .service-cta{background:#242029;color:#fff;border-color:#242029}
:root[data-theme=light] .service-card[data-service=dataset] .service-cta{color:#302737;border-color:#2b213748}
:root[data-theme=light] .segment{border-color:#31253728}
:root[data-theme=light] .segment button{color:#52475e}
:root[data-theme=light] .segment button[aria-pressed=true]:not(:disabled){color:var(--accent-foreground)}
:root[data-theme=light] .ui-icon{filter:brightness(0)}
:root[data-theme=light] .play-button .ui-icon,
:root[data-theme=light] .segment button[aria-pressed=true]:not(:disabled) .ui-icon{filter:var(--accent-icon-filter)}
:root[data-theme=light] .track{border-top-color:#30253914}
:root[data-theme=light] .track:last-child{border-bottom-color:#30253914}
:root[data-theme=light] .track.active{background:var(--accent-faint)}
:root[data-theme=light] .track-detail p,
:root[data-theme=light] .track-detail dl,
:root[data-theme=light] .track-detail dt{color:#5c5269}
:root[data-theme=light] .comparison-heading>p,
:root[data-theme=light] #comparison-subtitle,
:root[data-theme=light] .comparison-meta #comparison-status,
:root[data-theme=light] .comparison-meta .source-indicator,
:root[data-theme=light] .comparison-meta #comparison-note{color:#655a70}
:root[data-theme=light] .technology-preview>span{color:#6b6074}
:root[data-theme=light] .technology-preview>strong{color:#312538}
:root[data-theme=light] .studio-section .technical-row{border-top-color:#2c22341f}
:root[data-theme=light] .studio-section .technical-row dt{color:#2f2436}
:root[data-theme=light] .studio-section .technical-row dd,
:root[data-theme=light] .studio-section .technical-note{color:#60546c}
:root[data-theme=light] footer .footer-note{color:#6b6075}
:root[data-theme=light] input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(to right,var(--accent-ui) var(--fill),#c8c3cb var(--fill))}
:root[data-theme=light] input[type=range]::-moz-range-track{background:linear-gradient(to right,var(--accent-ui) var(--fill),#c8c3cb var(--fill))}
:root[data-theme=light] input[type=range]::-webkit-slider-thumb{background:#3b3045}
:root[data-theme=light] input[type=range]::-moz-range-thumb{background:#3b3045}
@media(hover:hover) and (pointer:fine){
 :root[data-theme=light] .service-card.player-surface:hover{background:#faf9f7;border-color:#30223d48}
 :root[data-theme=light] .service-card[data-service=human]:hover{background:#ece9e5;border-color:#30223d85}
 :root[data-theme=light] .icon-button:hover,
 :root[data-theme=light] .segment button:hover:not([aria-pressed=true]):not(:disabled),
 :root[data-theme=light] .track-row:hover{background:#24142e06}
 :root[data-theme=light] .service-card .service-cta:hover{background:var(--accent-hover);color:var(--accent-foreground);border-color:var(--accent-ui)}
}

/* Header actions retain contact at the far right. */
.sales-rail{display:flex;align-items:center;gap:12px}
.sales-rail .sales-rail__contact{flex:none}
.hero .portrait img{filter:contrast(1.04)}
@media(max-width:359px){
 .sales-rail .sales-rail__contact{font-size:12px;padding:10px 16px;gap:10px}
 .sales-rail .sales-rail__contact>span{font-size:17px}
}
/* No decorative separator between Studio and the final contact. */
.get-section::before{display:none;content:none}
.get-section{border-top:0}
.studio-section{border-bottom:0}

/* Restored glass theme switch; contact remains at the far right. */
.theme-toggle{position:relative;display:grid;grid-template-columns:1fr 1fr;place-items:center;width:92px;height:44px;min-width:92px;min-height:44px;padding:0;border:1px solid #ffffff2c;border-radius:999px;background:#ffffff08;box-shadow:inset 0 1px 0 #ffffff14,0 4px 14px #00000012;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);isolation:isolate;touch-action:manipulation}
.theme-toggle>span:not(.theme-thumb){position:relative;z-index:1;display:grid;place-items:center;width:44px;height:42px;pointer-events:none}
.theme-toggle .ui-icon{width:18px;height:18px;opacity:.7;filter:none}
.theme-thumb{position:absolute;left:3px;top:3px;width:36px;height:36px;border:1px solid #ffffff25;border-radius:50%;background:#ffffff13;box-shadow:inset 0 1px 0 #ffffff20,0 2px 5px #0002;transform:translateX(var(--theme-travel,46px));transition:transform 240ms cubic-bezier(.2,.7,.3,1),background-color 200ms,border-color 200ms;pointer-events:none}
:root[data-theme=dark] .theme-moon .ui-icon{opacity:1}
:root[data-theme=light] .theme-thumb{transform:translateX(0);background:#ffffffc9;border-color:#ffffff;box-shadow:0 2px 8px #30233b18}
:root[data-theme=light] .theme-sun .ui-icon{opacity:1}
:root[data-theme=light] .theme-toggle{background:#ffffff65;border-color:#28212f26;box-shadow:inset 0 1px 0 #ffffffba,0 4px 14px #3325380a}
:root[data-theme=light] .theme-toggle .ui-icon{filter:brightness(0)}
@media(hover:hover) and (pointer:fine){.theme-toggle:hover{border-color:var(--accent-focus)}}
@media(max-width:359px){
 .sales-rail{gap:6px}
 .theme-toggle{width:80px;min-width:80px;--theme-travel:38px}
 .theme-toggle>span:not(.theme-thumb){width:38px}
 .sales-rail .sales-rail__contact{font-size:10px;padding:9px 8px;gap:4px}
 .sales-rail .sales-rail__contact>span{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.theme-thumb{transition:none}}
@media(forced-colors:active){.theme-toggle,.theme-thumb{border:1px solid ButtonText}}

:root[data-theme=light] .sales-rail .sales-rail__contact{background:#ffffffa6;color:#302737;border-color:#29203130}
@media(hover:hover) and (pointer:fine){:root[data-theme=light] .sales-rail .sales-rail__contact:hover{background:#eeece9;border-color:#29203155}}
