/* index.php — moved from its inline <style> block (loaded at the same position). */
/* Hero visual: ไอคุจัง mascot video, blended into the page background */
.hero-3d {
  position: relative;
  width: min(460px, 88vw);
  aspect-ratio: 1;
  margin: 40px auto 0
}

.hero-3d.is-chat-trigger {
  cursor: pointer;
  outline: none
}

.hero-3d.is-chat-trigger:focus-visible {
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(6, 118, 71, .24)
}

.ai-modal[hidden] { display: none }

.ai-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 25, 19, .62);
  backdrop-filter: blur(8px)
}

.ai-modal-dialog {
  position: relative;
  width: min(1180px, 100%);
  height: min(820px, calc(100vh - 36px));
  overflow: hidden;
  border-radius: 30px;
  background: #f8fffd;
  box-shadow: 0 28px 100px rgba(0, 0, 0, .3)
}

.ai-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(6, 47, 37, .78);
  font-size: 25px;
  cursor: pointer
}

.ai-modal iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0
}

body.ai-modal-open { overflow: hidden }

@media(max-width:640px) {
  .ai-modal { padding: 0 }
  .ai-modal-dialog { width: 100%; height: 100%; border-radius: 0 }
  .ai-modal-close { top: 8px; right: 8px }
}

.hero3d-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #f3fffa 42%, transparent 72%);
  filter: blur(4px);
  animation: hero3d-glow-pulse 5s ease-in-out infinite;
  z-index: 0
}

.hero3d-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed #06764766;
  z-index: 1;
  pointer-events: none
}

.hero3d-ring-a {
  animation: hero3d-spin 18s linear infinite
}

.hero3d-ring-b {
  inset: 9%;
  border-color: #a9edc599;
  animation: hero3d-spin 26s linear infinite reverse
}

.hero3d-stage {
  position: absolute;
  inset: 0;
  z-index: 2
}

.hero3d-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 13%;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 55% 58% at 50% 40%, #000 45%, transparent 85%);
  mask-image: radial-gradient(ellipse 55% 58% at 50% 40%, #000 45%, transparent 85%);
  transition: opacity .13s ease;
  transform-origin: 50% 18%
}

#hero3d-v1 {
  transform: scale(1.21) translateY(-2.5%);
  transform-origin: 50% 50%
}

.hero-3d .float {
  z-index: 3
}

@keyframes hero3d-glow-pulse {
  50% {
    transform: scale(1.06);
    opacity: .85
  }
}

@keyframes hero3d-spin {
  to {
    transform: rotate(360deg)
  }
}

@media(max-width:520px) {
  .hero-3d {
    width: 300px
  }
}

@media(prefers-reduced-motion:reduce) {

  .hero3d-glow,
  .hero3d-ring-a,
  .hero3d-ring-b,
  .hero:before,
  .hero:after,
  .hero-grid {
    animation: none
  }
}

/* was style="opacity:0" on the second clip; the hero script fades it in via element.style */
#hero3d-v1 {
  opacity: 0
}
