/* Home-only atmosphere: transform/opacity animation, no external media. */
.signature-live[data-page="home"] .hero-art > img {
  animation: sig-scene-drift 26s ease-in-out infinite alternate;
  transform-origin: 68% 45%;
}
.sig-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  contain: layout paint;
}
.sig-atmosphere-scene {
  position: absolute;
  inset: -3%;
  transform: translate3d(var(--atmos-x, 0px), var(--atmos-y, 0px), 0);
  transition: transform 1.8s cubic-bezier(.2,.8,.2,1);
}
.sig-light {
  position: absolute;
  width: 72%;
  height: 100%;
  right: -10%;
  top: -20%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #f7ac6538, #f7ac6510 35%, transparent 68%);
  mix-blend-mode: screen;
  animation: sig-light-breathe 14s ease-in-out infinite alternate;
}
.sig-light-cool {
  width: 65%;
  height: 75%;
  right: 28%;
  top: 15%;
  background: radial-gradient(ellipse, #64b9b32b, #64b9b309 45%, transparent 70%);
  animation-delay: -8s;
  animation-duration: 19s;
}
.sig-tactical-ring {
  position: absolute;
  width: min(39vw, 540px);
  aspect-ratio: 1;
  top: 24%;
  right: 10%;
  border: 1px solid #f5c8a323;
  border-radius: 50%;
  opacity: .7;
  animation: sig-ring-drift 45s linear infinite;
}
.sig-tactical-ring::before {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px dashed #fff2;
  border-radius: inherit;
}
.sig-tactical-ring::after {
  content: "";
  position: absolute;
  inset: -5%;
  border: 2px solid transparent;
  border-top-color: #efb67b59;
  border-bottom-color: #c7e2d82b;
  border-radius: inherit;
  transform: rotate(-32deg);
}
.sig-ember {
  position: absolute;
  left: var(--x);
  bottom: -12px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #ffd6a5;
  box-shadow: 0 0 7px 2px #ed994754;
  opacity: 0;
  animation: sig-ember-rise var(--duration) linear var(--delay) infinite;
}
.signature-live[data-page="home"] .hero-foot { z-index: 3; gap: 20px; }
.sig-ambience-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  letter-spacing: 0;
  font: 700 11px/1.3 Manrope, Arial, sans-serif;
}
.sig-ambience-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #dce7e43b;
  border-radius: 7px;
  background: #14282cbf;
  color: #e3ece7;
  font: inherit;
  transition: background .2s, border-color .2s;
}
.sig-ambience-controls button:hover { background: #29413e; border-color: #e6b68a99; }
.sig-ambience-controls button[aria-pressed="true"] { background: #344036; border-color: #d8b28d80; color: #ffdbb1; }
.sig-ambience-controls button:disabled { opacity: .65; }
.sig-ambience-controls svg { width: 17px; height: 17px; flex: none; }
.sig-equalizer { display: flex; align-items: center; gap: 2px; height: 17px; width: 18px; }
.sig-equalizer i { display: block; width: 2px; height: 4px; border-radius: 2px; background: currentColor; }
.sig-equalizer i:nth-child(2) { height: 11px; }
.sig-equalizer i:nth-child(3) { height: 16px; }
.sig-equalizer i:nth-child(4) { height: 8px; }
[data-sound-state="playing"] .sig-equalizer i { animation: sig-equalize 1.1s ease-in-out infinite alternate; }
.sig-equalizer i:nth-child(2) { animation-delay: -.3s; }
.sig-equalizer i:nth-child(3) { animation-delay: -.7s; }
.sig-equalizer i:nth-child(4) { animation-delay: -.5s; }
.sig-ambient-volume { display: flex; align-items: center; min-height: 42px; padding: 0 8px; }
.sig-ambient-volume input { width: 65px; height: 28px; accent-color: #ed9d64; cursor: pointer; }
.sig-ambient-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.signature-live[data-page="home"] .software-layout { position: relative; z-index: 1; }
.sig-software-glow {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background: radial-gradient(ellipse at 75% 45%, #699f9330, transparent 43%), radial-gradient(ellipse at 20% 60%, #b6774120, transparent 38%);
  animation: sig-software-light 18s ease-in-out infinite alternate;
}
.signature-live[data-ambience-paused="true"] .sig-atmosphere *,
.signature-live[data-ambience-paused="true"] .hero-art > img,
.signature-live[data-ambience-paused="true"] .sig-software-glow,
.signature-live[data-ambience-paused="true"] .sig-equalizer i,
.hero[data-atmos-visible="false"] .sig-atmosphere *,
.hero[data-atmos-visible="false"] .hero-art > img,
.software-section[data-atmos-visible="false"] .sig-software-glow { animation-play-state: paused; }
.signature-live[data-ambience-paused="true"] .sig-atmosphere-scene { transform: none; transition: none; }
@keyframes sig-scene-drift {
  from { transform: scale(1.035) translate3d(-.25%, 0, 0); }
  to { transform: scale(1.085) translate3d(.4%, -.5%, 0); }
}
@keyframes sig-light-breathe {
  from { opacity: .45; transform: translate3d(-3%, 2%, 0) scale(.94); }
  to { opacity: 1; transform: translate3d(4%, -3%, 0) scale(1.08); }
}
@keyframes sig-ring-drift { to { transform: rotate(360deg); } }
@keyframes sig-ember-rise {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  12% { opacity: .6; }
  75% { opacity: .25; }
  100% { opacity: 0; transform: translate3d(var(--drift), -640px, 0); }
}
@keyframes sig-equalize { to { transform: scaleY(.35); } }
@keyframes sig-software-light { to { transform: translate3d(-3%, 3%, 0) scale(1.07); opacity: .65; } }
@media(max-width: 700px) {
  .sig-tactical-ring { width: 85vw; top: 22%; right: -33%; opacity: .45; }
  .sig-ember:nth-child(n+12) { display: none; }
  .sig-light { width: 110%; right: -45%; }
  .sig-light-cool { right: 15%; }
  .signature-live[data-page="home"] .hero-foot { flex-wrap: wrap; gap: 14px; }
  .sig-ambience-controls { width: 100%; font-size: 11px; }
  .signature-live[data-page="home"] .hero-foot .scroll-label { display: none; }
}
@media(prefers-reduced-motion: reduce) {
  .signature-live[data-page="home"] .hero-art > img { transform: none; animation: none; }
  .sig-atmosphere *, .sig-software-glow, .sig-equalizer i { animation: none !important; transition: none !important; }
  .sig-ember { display: none; }
  .sig-atmosphere-scene { transform: none; }
  /* A visitor may explicitly enable just this atmosphere, without changing the OS. */
  .signature-live[data-ambience-opt-in="true"] .hero-art > img { animation: sig-scene-drift 26s ease-in-out infinite alternate !important; }
  .signature-live[data-ambience-opt-in="true"] .sig-light { animation: sig-light-breathe 14s ease-in-out infinite alternate !important; }
  .signature-live[data-ambience-opt-in="true"] .sig-light-cool { animation-duration: 19s !important; animation-delay: -8s !important; }
  .signature-live[data-ambience-opt-in="true"] .sig-tactical-ring { animation: sig-ring-drift 45s linear infinite !important; }
  .signature-live[data-ambience-opt-in="true"] .sig-ember { display: block; animation: sig-ember-rise var(--duration) linear var(--delay) infinite !important; }
  .signature-live[data-ambience-opt-in="true"] .sig-software-glow { animation: sig-software-light 18s ease-in-out infinite alternate !important; }
  .signature-live[data-ambience-opt-in="true"][data-ambience-paused="true"] .sig-atmosphere *,
  .signature-live[data-ambience-opt-in="true"][data-ambience-paused="true"] .hero-art > img,
  .signature-live[data-ambience-opt-in="true"][data-ambience-paused="true"] .sig-software-glow,
  .signature-live[data-ambience-opt-in="true"] .hero[data-atmos-visible="false"] .sig-atmosphere *,
  .signature-live[data-ambience-opt-in="true"] .hero[data-atmos-visible="false"] .hero-art > img,
  .signature-live[data-ambience-opt-in="true"] .software-section[data-atmos-visible="false"] .sig-software-glow { animation-play-state: paused !important; }
}
@media(prefers-reduced-motion: reduce) and (max-width: 700px) {
  .signature-live[data-ambience-opt-in="true"] .sig-ember:nth-child(n+12) { display: none; }
}
