/* Shared effects and header control for the single light/dark site. */
html { color-scheme: light; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  padding: 0;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { border-color: var(--blue); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .theme-sun { display: none; }
html[data-theme="dark"] .theme-toggle .theme-sun { display: block; }
html[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
html[data-theme="dark"] .theme-toggle { background: #16364a; }
/* Photograph transforms apply equally in both themes, always within clipped frames. */
html.parallax-ready [data-parallax] {
  translate: 0 var(--parallax-y, 0px);
  scale: 1.24;
}
html.motion-disabled [data-parallax] { translate: none; scale: 1; }
html[data-theme].motion-disabled .hero:before { translate: none; }
html[data-theme="light"] body {
  background: radial-gradient(ellipse 75% 650px at 80% 0%, #d9eef888, transparent 75%), #fff;
}
html[data-theme="light"] .hero { position: relative; isolation: isolate; }
html[data-theme="light"] .hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 12% 30%, #169ada0c, transparent 52%),
    radial-gradient(ellipse at 76% 75%, #ff8a2412, transparent 47%);
  translate: 0 var(--ambient-shift, 0px);
}
html[data-theme="light"] .button.orange { background: linear-gradient(110deg, #ff8a24, #ffb15c); }
html[data-theme="light"] .button.blue, html[data-theme="light"] .float-button {
  background: linear-gradient(110deg, #006da3, #087aa8);
}
html[data-theme="light"] .tracking { background: linear-gradient(115deg, #073c61, #105979); }
html[data-theme="light"] .promo-band { background: linear-gradient(115deg, #fff0df, #fff7ed 70%, #eaf5fa); }
@media (max-width: 1100px) {
  .header-actions { gap: 12px; }
}
@media (max-width: 580px) {
  .header-actions { gap: 8px; }
  .language-switch { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]).parallax-ready [data-parallax] { translate: none; scale: 1; }
  html:not([data-motion="full"])[data-theme="light"] .hero:before,
  html:not([data-motion="full"])[data-theme="dark"] .hero:before { translate: none; }
}