/* Original CHAOKAI effects: no third-party animation code or runtime. */
.hero-stage {
  position: relative;
  isolation: isolate;
  grid-template-columns: 1.08fr 1fr;
  gap: 28px;
  min-height: 720px;
  padding: 64px 0 78px;
}
.hero-stage h1 { font-size: clamp(3.2rem, 5.3vw, 4.8rem); }
.hero-stage .hero-copy { z-index: 3; }
.hero-stage .lead { max-width: 470px; }
.hero-stage .eyebrow { letter-spacing: .19em; }
.aurora {
  position: absolute;
  inset: 0 -20px 0 20%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  mask-image: linear-gradient(transparent, #000 18%, #000 75%, transparent);
}
.aurora i {
  position: absolute;
  inset: -10% -25% -5% 0;
  background: radial-gradient(ellipse at 70% 55%, transparent 33%, #dc40884d 40%, #ffa1ddaa 43%, #ff83cb55 46%, transparent 54%);
  filter: blur(10px);
  transform: rotate(-22deg) scale(1.1);
  animation: aurora-drift 12s ease-in-out infinite alternate paused;
}
.aurora i + i {
  inset: 16% -10% -10% 10%;
  background: radial-gradient(ellipse at 60% 45%, transparent 28%, #ffa1dd88 34%, #ff59d355 39%, transparent 47%);
  animation-duration: 17s;
  animation-delay: -9s;
}
@keyframes aurora-drift {
  from { transform: translate3d(-3%, 2%, 0) rotate(-22deg) scale(1); }
  to { transform: translate3d(5%, -3%, 0) rotate(8deg) scale(1.12); }
}
.hero-exhibit { position: relative; min-width: 0; padding: 20px 12px 38px; perspective: 1100px; overflow: clip; }
.exhibit-orbit {
  position: absolute;
  inset: 6% -1% 8%;
  border: 1px solid #ffa1dd24;
  border-radius: 50%;
  transform: rotate(-22deg) scaleX(.9);
  box-shadow: 0 0 0 22px #ffa1dd04, 0 0 0 23px #ffa1dd12;
  pointer-events: none;
}
.hero-stage .hero-art {
  width: 100%;
  aspect-ratio: 1 / 1.13;
  padding: 44px 0 0;
  background: linear-gradient(145deg, #ffa1dd0d, #05050790 65%);
  border-color: #ffa1dd55;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .25s ease-out;
}
.hero-stage .hero-art img { width: 100%; filter: none; object-fit: contain; }
.hero-stage .art-grid { opacity: .55; }
.hero-stage .art-grid:after { box-shadow: none; border-color: #ffa1dd28; }
.hero-stage .art-label { font-size: .75rem; letter-spacing: .15em; }
.hero-stage .hero-art figcaption { border-left-color: var(--accent); font-size: .75rem; }
.holo-sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .12;
  background: radial-gradient(ellipse at var(--shine-x, 65%) var(--shine-y, 20%), #fff5, #ffa1dd16 25%, transparent 50%);
  transition: opacity .3s;
}
@media (hover: hover) and (pointer: fine) {
  .hero-stage[data-motion="running"] .hero-art:hover .holo-sheen { opacity: .32; }
}

.hero-stage .actions > .button:first-child {
  position: relative;
  isolation: isolate;
  border-color: #ffd5ee;
  background: linear-gradient(115deg, #ffa1dd, #ffd4ee);
  box-shadow: 0 0 22px #ffa1dd26, inset 0 1px #fff6;
}
.hero-stage .actions > .button:first-child:before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 28px #ffa1dd66;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.hero-stage .actions > .button:first-child:is(:hover, :focus-visible):before { opacity: 1; }
.site-header .wordmark { position: relative; }
.logo-echo {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
  clip-path: inset(28% 0 45%);
}
.logo-echo.is-glitching { animation: logo-slice .35s ease-out 1; }
@keyframes logo-slice {
  0%, 100% { opacity: 0; transform: translateX(0); }
  18% { opacity: .6; transform: translateX(3px); clip-path: inset(28% 0 45%); }
  55% { opacity: .4; transform: translateX(-2px); clip-path: inset(62% 0 18%); }
  80% { opacity: .15; transform: translateX(1px); }
}
.digital-dust { position: absolute; inset: 0; pointer-events: none; }
.digital-dust i { position: absolute; width: 3px; height: 3px; background: #ffa1dd; opacity: .2; animation: dust-drift 13s ease-in-out infinite alternate paused; }
.digital-dust i:nth-child(1) { left: 4%; top: 15%; }
.digital-dust i:nth-child(2) { left: 88%; top: 8%; animation-delay: -4s; }
.digital-dust i:nth-child(3) { left: 98%; top: 62%; animation-delay: -8s; }
.digital-dust i:nth-child(4) { left: 10%; top: 84%; animation-delay: -3s; }
.digital-dust i:nth-child(5) { left: 45%; top: 3%; animation-delay: -10s; }
.digital-dust i:nth-child(6) { left: 92%; top: 86%; animation-delay: -1s; }
.digital-dust i:nth-child(7) { left: 1%; top: 50%; animation-delay: -7s; width: 7px; height: 1px; }
.digital-dust i:nth-child(8) { left: 98%; top: 30%; animation-delay: -5s; width: 1px; height: 7px; }
.digital-dust i:nth-child(9) { left: 27%; top: 5%; animation-delay: -9s; }
.digital-dust i:nth-child(10) { left: 68%; top: 94%; animation-delay: -2s; }
@keyframes dust-drift { to { transform: translate3d(5px, -16px, 0); opacity: .4; } }
.hero-stage[data-motion="running"] :is(.aurora i, .digital-dust i) { animation-play-state: running; }
.hero-stage[data-particles="off"] .digital-dust { display: none; }
.effect-controls { position: absolute; bottom: 20px; right: 0; display: flex; flex-wrap: wrap; gap: 12px; z-index: 4; }
.effect-controls button { background: #0c0c11; border: 1px solid #574052; color: #c5c0c7; font-size: .875rem; padding: 9px 12px; min-height: 44px; }
.effect-controls button:hover { border-color: var(--accent); color: var(--text); }
.effect-controls button[aria-pressed="true"] { border-color: var(--accent); }
.effect-controls button:disabled { cursor: default; opacity: .7; }
@media(max-width: 1100px) {
  .hero-stage { min-height: 610px; }
  .hero-stage h1 { font-size: clamp(2.8rem, 5.4vw, 4.5rem); }
  .hero-stage .hero-art { align-self: auto; }
}
@media(max-width: 640px) {
  .hero-stage { grid-template-columns: 1fr; gap: 24px; padding: 38px 0 80px; }
  .hero-stage h1 { font-size: clamp(2.8rem, 10.7vw, 4.2rem); margin-bottom: 22px; }
  .hero-stage .eyebrow { font-size: .75rem; }
  .hero-stage .lead { font-size: 1rem; }
  .hero-stage .actions { margin-top: 24px; }
  .hero-exhibit { width: 100%; max-width: 440px; justify-self: center; padding: 10px 8px 25px; }
  .hero-stage .hero-art { aspect-ratio: 1; padding-top: 35px; }
  .hero-stage .art-label { top: 15px; left: 16px; font-size: .65rem; }
  .hero-stage .hero-art figcaption { left: 10px; right: 10px; bottom: 12px; font-size: .65rem; }
}
@media (min-width: 641px) {
  .hero-stage .aurora {
    left: 50%;
    right: auto;
    width: 100vw;
    transform: translateX(-50%);
    overflow: hidden;
    pointer-events: none;
  }
}
