/* Section 1: Pitch-Dark Luminous Handprint Hero (Glass Texture + Glowing Form in Darkness) */
.glass-hero {
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: #04060A;
}

.glass-pane {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse 68% 62% at 34% 48%, rgba(28, 40, 64, 0.34) 0%, rgba(8, 11, 18, 0.92) 54%, #04060A 100%);
  transform: scale(var(--hero-scale, 1));
  opacity: var(--hero-opacity, 1);
  transform-origin: center center;
  will-change: transform, opacity;
}

.glass-behind-depth {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: 48% bottom;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  filter: grayscale(100%) contrast(1.1) brightness(0.42) blur(22px);
}

.real-glass-photo {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: screen;
  filter: grayscale(100%) contrast(1.4) brightness(0.45);
}

.glass-frost-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 72% at 50% 50%, rgba(16, 24, 38, 0.1) 0%, rgba(4, 6, 10, 0.72) 100%);
}

.glass-reflections {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      116deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(190, 214, 255, 0.05) 14%,
      rgba(255, 255, 255, 0) 22%,
      rgba(255, 255, 255, 0) 50%,
      rgba(186, 210, 255, 0.04) 56%,
      rgba(255, 255, 255, 0) 64%
    );
}

.glass-pane.is-impact {
  animation: glassShake 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.24s;
}

@keyframes glassShake {
  0% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(0, 4px, 0) scale(1.004); }
  45% { transform: translate3d(-2px, -2px, 0) scale(1.001); }
  70% { transform: translate3d(1px, 1px, 0); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

.glass-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(32px, 5vh, 64px) clamp(24px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.stamp-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  width: min(370px, 38vw, 56vh);
  margin: 0 auto;
  cursor: pointer;
  outline: none;
  isolation: isolate;
}

/* Soft Atmospheric Halo Radiating in Pitch Dark */
.stamp-void-glow {
  position: absolute;
  inset: -38%;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 48%,
    rgba(224, 236, 255, 0.28) 0%,
    rgba(164, 194, 245, 0.13) 34%,
    rgba(110, 144, 208, 0.04) 58%,
    rgba(4, 6, 10, 0) 76%
  );
  filter: blur(22px);
  opacity: 0;
}

.glass-pane.is-impact .stamp-void-glow {
  animation:
    voidGlowIgnite 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.18s forwards,
    voidGlowBreathe 5.8s ease-in-out 1.1s infinite alternate;
}

@keyframes voidGlowIgnite {
  0% { opacity: 0; transform: scale(0.62); }
  45% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 0.85; transform: scale(1); }
}

@keyframes voidGlowBreathe {
  0% { opacity: 0.72; transform: scale(0.97); }
  100% { opacity: 1; transform: scale(1.05); }
}

/* Layer 1: Wide Soft Luminous Outer Glow */
.hero-stamp-halo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: screen;
  opacity: 0;
  transform: scale(1.72) rotate(-5deg);
  filter: invert(1) contrast(1.9) brightness(1.35) blur(22px);
  pointer-events: none;
}

.glass-pane.is-impact .hero-stamp-halo {
  animation:
    stampHaloSlam 0.68s cubic-bezier(0.16, 1, 0.3, 1) 0.08s forwards,
    stampHaloPulse 5.8s ease-in-out 1s infinite alternate;
}

@keyframes stampHaloSlam {
  0% { opacity: 0; transform: scale(1.76) rotate(-5deg); }
  36% { opacity: 0.68; transform: scale(0.96) rotate(0.4deg); }
  100% { opacity: 0.56; transform: scale(1) rotate(0deg); }
}

@keyframes stampHaloPulse {
  0% { opacity: 0.46; }
  100% { opacity: 0.74; }
}

/* Layer 2: Crisp Inner Luminous Corona */
.hero-stamp-refract {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: screen;
  opacity: 0;
  transform: scale(1.72) rotate(-5deg);
  filter: invert(1) contrast(1.75) brightness(1.45) blur(6px);
  pointer-events: none;
}

.glass-pane.is-impact .hero-stamp-refract {
  animation: stampRefractSlam 0.64s cubic-bezier(0.16, 1, 0.3, 1) 0.08s forwards;
}

@keyframes stampRefractSlam {
  0% { opacity: 0; transform: scale(1.76) rotate(-5deg); }
  34% { opacity: 0.88; transform: scale(0.955) rotate(0.4deg); }
  100% { opacity: 0.74; transform: scale(1) rotate(0deg); }
}

/* Layer 3: Sharp Glowing Core Handprint Silhouette */
.hero-stamp-img {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: screen;
  opacity: 0;
  transform: scale(1.72) rotate(-5deg);
  filter: invert(1) contrast(1.45) brightness(1.2) blur(5px);
  will-change: transform, opacity, filter;
}

.glass-pane.is-impact .hero-stamp-img {
  animation: stampSlam 0.62s cubic-bezier(0.16, 1, 0.3, 1) 0.08s forwards;
}

@keyframes stampSlam {
  0% {
    opacity: 0;
    transform: scale(1.76) rotate(-5deg) translateY(-18px);
    filter: invert(1) contrast(1.45) brightness(1.2) blur(6px);
  }
  34% {
    opacity: 0.98;
    transform: scale(0.955) rotate(0.4deg) translateY(3px);
    filter: invert(1) contrast(1.52) brightness(1.34) drop-shadow(0 0 24px rgba(235, 243, 255, 0.82));
  }
  54% {
    opacity: 0.95;
    transform: scale(1.01) rotate(-0.15deg) translateY(-1px);
    filter: invert(1) contrast(1.46) brightness(1.24) drop-shadow(0 0 18px rgba(230, 240, 255, 0.72));
  }
  100% {
    opacity: 0.94;
    transform: scale(1) rotate(0deg) translateY(0);
    filter: invert(1) contrast(1.44) brightness(1.22) drop-shadow(0 0 18px rgba(226, 238, 255, 0.68));
  }
}

.impact-ring {
  position: absolute;
  top: 52%;
  left: 50%;
  width: 220px;
  height: 220px;
  margin-left: -110px;
  margin-top: -110px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  border: 1.5px solid rgba(226, 238, 255, 0.78);
  box-shadow: 0 0 28px rgba(196, 220, 255, 0.56);
}

.glass-pane.is-impact .ring-1 { animation: glassRipple 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards; }
.glass-pane.is-impact .ring-2 { border-width: 1px; animation: glassRipple 1.35s cubic-bezier(0.16, 1, 0.3, 1) 0.32s forwards; }

@keyframes glassRipple {
  0% { opacity: 0.84; transform: scale(0.55); }
  100% { opacity: 0; transform: scale(3.4); }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  opacity: 0;
  transform: translateY(14px);
}

.glass-pane.is-impact .hero-copy {
  animation: copyReveal 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
}

@keyframes copyReveal {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-cry {
  font-family: 'Kaushan Script', cursive;
  font-size: clamp(56px, 8vw, 122px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #FFFFFF;
  text-shadow: 0 0 38px rgba(206, 224, 255, 0.24);
}

.hero-desc {
  margin-top: clamp(16px, 2vw, 24px);
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 400;
  line-height: 1.66;
  letter-spacing: -0.028em;
  color: rgba(232, 238, 248, 0.84);
}

.hero-brand {
  margin-top: clamp(20px, 2.6vw, 32px);
  font-size: clamp(13.5px, 1.05vw, 15px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(196, 208, 226, 0.62);
}

@media (max-width: 900px) {
  .glass-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 24px;
    padding: 32px 24px;
  }

  .stamp-stage { width: min(240px, 54vw, 36vh); }
  .hero-copy { align-items: center; text-align: center; }
}

@media (max-width: 640px) {
  .hero-cry { font-size: clamp(46px, 13vw, 66px); }
  .hero-desc { font-size: 15px; line-height: 1.66; }
  .hero-brand { margin-top: 18px; font-size: 13px; }
}
