/* =========================================================
   HOPEX — atmospheric mascot integration (Hop A Event)
   Mobile (<1024px): centered hero with Hopex above title.
   Desktop (>=1024px): editorial two-column luxury gala hero —
   crisp left-aligned typography + tall, commanding Hopex on right.
   ========================================================= */

/* ---------- Hero: Hopex ---------- */
.hero-hopex {
  position: relative; margin: 0; z-index: 1;
  order: -1; width: min(78vw, 360px); margin-bottom: -24px;
  animation: hopexIn 1.5s cubic-bezier(.2,.7,.2,1) .15s both;
}
.hero-hopex-frame {
  position: relative; aspect-ratio: 860 / 1152;
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 48%, #000 40%, transparent 72%);
          mask-image: radial-gradient(ellipse 62% 70% at 50% 48%, #000 40%, transparent 72%);
  animation: hopexFloat 7s ease-in-out 1.8s infinite;
}
.hero-hopex-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.hero-hopex-halo {
  position: absolute; inset: 4% 4% 12%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle at 50% 38%, rgba(214,179,106,.30), rgba(196,36,61,.16) 46%, transparent 72%);
  filter: blur(26px); animation: halo 5s ease-in-out infinite;
}
/* glowing eyes & champagne sparkle (positions in % of the image) */
.hx-glint { position: absolute; width: 4.6%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, rgba(255,214,120,.95) 0%, rgba(255,180,60,.55) 35%, transparent 70%); mix-blend-mode: screen; }
.hx-eye-l { left: 41.9%; top: 23.6%; animation: eyeGlow 4.5s ease-in-out infinite; }
.hx-eye-r { left: 53.6%; top: 22.3%; width: 7.2%; animation: eyeGlow 4.5s ease-in-out infinite .15s; }
.hx-sparkle { position: absolute; left: 31%; top: 35.5%; width: 7%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0%, rgba(255,240,200,.8) 18%, transparent 60%),
              linear-gradient(90deg, transparent 46%, rgba(255,245,215,.95) 50%, transparent 54%),
              linear-gradient(0deg, transparent 46%, rgba(255,245,215,.95) 50%, transparent 54%);
  mix-blend-mode: screen; opacity: 0; animation: sparkle 3.8s ease-in-out 2.4s infinite; }

@media (max-width: 1023px) {
  .hero { gap: 0; }
}
@media (max-width: 640px) {
  .hero-hopex { width: min(70vw, 300px); margin-top: -10px; }
  .moon { right: 5%; top: 10%; width: 56px; opacity: .55; }
}

/* ---------- Desktop (>=1024px): full-bleed editorial gala hero ---------- */
@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    justify-items: stretch;
    text-align: left;
    gap: clamp(20px, 3.5vw, 56px);
    padding: calc(var(--header-h) + 22px) max(var(--gutter), calc((100vw - 1260px) / 2)) 68px;
  }
  .hero-content {
    max-width: 640px;
    justify-self: start;
    z-index: 2;
  }
  .hero-title {
    font-size: clamp(46px, 5.1vw, 84px);
    letter-spacing: .09em;
    line-height: 1.02;
    white-space: nowrap;
  }
  .ornament {
    justify-content: flex-start;
    margin: 20px 0 22px;
  }
  .ornament span:first-child { display: none; }
  .ornament span:last-child { width: clamp(90px, 12vw, 170px); transform: none; }
  .hero-slogan { justify-items: start; gap: 6px; }
  .slogan-line { justify-content: flex-start; }
  .slogan-line .eq:first-child { display: none; }
  .hero-slogan-2 { font-size: clamp(20px, 2.2vw, 29px); }
  .hero-countdown {
    margin: 24px 0 0;
    padding: 16px 26px 14px;
    text-align: center;
    background: rgba(8, 9, 13, 0.52);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
  }
  .cd-unit { min-width: clamp(58px, 5.6vw, 82px); }
  .hero-meta {
    justify-content: flex-start;
    gap: 12px 40px;
    margin: 24px 0 28px;
  }
  .hero-meta div { min-width: 0; }
  .hero-actions { justify-content: flex-start; }

  /* Tall, commanding Hopex framed cleanly on the right */
  .hero-hopex {
    order: 0;
    width: 100%;
    max-width: min(44vw, 570px);
    justify-self: center;
    align-self: center;
    margin: -12px 0 -40px;
  }
  .hero-hopex-frame {
    -webkit-mask-image:
      radial-gradient(ellipse 68% 76% at 50% 45%, #000 48%, transparent 78%),
      linear-gradient(180deg, transparent 0%, #000 10%, #000 76%, transparent 98%);
    -webkit-mask-composite: source-in;
            mask-image:
      radial-gradient(ellipse 68% 76% at 50% 45%, #000 48%, transparent 78%),
      linear-gradient(180deg, transparent 0%, #000 10%, #000 76%, transparent 98%);
            mask-composite: intersect;
  }
  .hero-hopex-halo {
    inset: -2% -6% 4%;
    background:
      radial-gradient(circle at 52% 36%, rgba(214,179,106,.34), rgba(196,36,61,.18) 44%, transparent 72%);
    filter: blur(36px);
  }
  .moon {
    left: auto;
    right: 6%;
    top: 11%;
    width: clamp(80px, 7.5vw, 118px);
    opacity: .34;
    filter: blur(1px);
  }
}

@media (min-width: 1024px) and (max-width: 1180px) {
  .hero-title { font-size: clamp(40px, 4.6vw, 56px); }
  .hero-hopex { max-width: 440px; }
}

@media (min-width: 1024px) and (max-height: 780px) {
  .hero { padding-top: calc(var(--header-h) + 12px); padding-bottom: 48px; }
  .hero-hopex { max-width: min(38vw, 480px); }
  .hero-countdown { margin-top: 18px; padding: 12px 22px; }
  .hero-meta { margin: 18px 0 22px; }
}

@keyframes hopexIn { from { opacity: 0; transform: translateY(34px) scale(.97); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hopexFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes halo { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes eyeGlow { 0%, 100% { opacity: .45; } 45% { opacity: 1; } 50% { opacity: .3; } 55% { opacity: 1; } }
@keyframes sparkle { 0%, 70%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(0); } 80% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(45deg); } }

/* ---------- Eye transition band ("HOPEX IS WATCHING") ---------- */
.hopex-eyes {
  position: relative; overflow: hidden; background: var(--black);
  height: clamp(180px, 30vw, 420px); margin: 0;
}
.hopex-eyes.reveal { opacity: 1; transform: none; }
.hopex-eyes img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 6%, #000 30%, #000 72%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(180deg, transparent 0%, transparent 6%, #000 30%, #000 72%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
          mask-composite: intersect;
  clip-path: inset(50% 0 50% 0); transform: scale(1.08);
  transition: clip-path 1.3s cubic-bezier(.7,0,.2,1), transform 2.4s cubic-bezier(.2,.7,.2,1);
}
.hopex-eyes.is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }
.hx-eye-glow {
  position: absolute; left: 66.5%; top: 48%; width: clamp(90px, 14vw, 220px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,244,200,.85) 0%, rgba(255,204,90,.55) 28%, rgba(214,155,40,.18) 54%, transparent 72%);
  mix-blend-mode: screen; opacity: 0; pointer-events: none;
}
.hopex-eyes.is-in .hx-eye-glow { animation: blindGlow 3.6s ease-in-out 1.2s infinite; }
@keyframes blindGlow { 0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.96); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
.hopex-eyes-caption {
  position: absolute; left: 0; right: 0; bottom: 8%; margin: 0; text-align: center;
  font-size: 11px; letter-spacing: .6em; padding-left: .6em; color: var(--gold); opacity: 0;
  transition: opacity 1s ease 1.1s;
}
.hopex-eyes.is-in .hopex-eyes-caption { opacity: .88; }

/* ---------- Chain band (Tickets -> VIP) ---------- */
.hopex-band { position: relative; overflow: hidden; height: clamp(220px, 34vw, 460px); background: var(--black); }
.hopex-band.reveal { opacity: 1; transform: none; }
.hopex-band img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
  transform: scale(1.12); opacity: 0; transition: transform 2.4s cubic-bezier(.2,.7,.2,1), opacity 1.4s ease;
}
.hopex-band.is-in img { transform: scale(1); opacity: .9; }
.hopex-band::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(8,9,13,.9), transparent 70%); }
.hopex-band-copy { position: absolute; left: 0; right: 0; bottom: 10%; z-index: 1; text-align: center; padding: 0 var(--gutter); }
.hopex-band-copy .eyebrow { margin-bottom: 6px; }
.hopex-band-title { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(24px, 4vw, 46px); color: var(--gold-warm);
  text-shadow: 0 4px 30px rgba(0,0,0,.9); }

/* ---------- Footer peek ---------- */
.site-footer { position: relative; }
.hopex-peek {
  position: absolute; left: 50%; top: 0; width: clamp(150px, 18vw, 230px); aspect-ratio: 560 / 265;
  transform: translate(-50%, -100%); pointer-events: none; overflow: hidden;
}
.hopex-peek.reveal { opacity: 1; transform: translate(-50%, -100%); }
.hopex-peek img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 60% 120% at 50% 100%, #000 55%, transparent 80%);
          mask-image: radial-gradient(ellipse 60% 120% at 50% 100%, #000 55%, transparent 80%);
  transform: translateY(100%); transition: transform 1.1s cubic-bezier(.3,1.4,.4,1) .2s;
}
.hopex-peek.is-in img { transform: translateY(6%); }

/* ---------- VIP package relic headers (ring, VIP bracelet, watch) ---------- */
.package-card.has-relic { padding-top: 0; }
.package-card.has-relic::before { z-index: 3; }
.package-card.has-relic .package-status { z-index: 4; box-shadow: 0 4px 16px rgba(0,0,0,.6); }
.package-relic {
  position: relative;
  margin: 0 -28px 6px;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #06070c;
  border-bottom: 1px solid rgba(214, 179, 106, 0.22);
}
.package-relic img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .6s ease;
}
.package-relic.relic-ring img { object-position: 50% 52%; }
.package-relic.relic-vip img { object-position: 50% 48%; }
.package-relic.relic-watch img { object-position: 50% 50%; }
.package-card:hover .package-relic img {
  transform: scale(1.06);
  filter: brightness(1.07) contrast(1.04);
}
/* soft dark fade into the card body */
.package-relic::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,7,12,.18) 0%, transparent 28%, rgba(16,12,15,.45) 75%, rgba(22,15,19,.96) 100%),
    radial-gradient(ellipse 80% 60% at 50% 45%, transparent 50%, rgba(6,7,12,.45) 100%);
}
/* metallic diagonal shimmer sweep */
.relic-sheen {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(112deg, transparent 34%, rgba(255, 240, 195, .26) 49%, rgba(255, 255, 255, .42) 51%, rgba(214, 179, 106, .18) 54%, transparent 68%);
  transform: translateX(-120%);
  animation: relicSheen 5.6s cubic-bezier(.4,0,.2,1) infinite;
}
.relic-vip .relic-sheen { animation-delay: 1.8s; }
.relic-watch .relic-sheen { animation-delay: 3.6s; }
@keyframes relicSheen {
  0%, 62% { transform: translateX(-120%); opacity: 0; }
  70% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}
/* twinkling 4-point star sparkles on the jewelry highlights */
.relic-spark {
  position: absolute; z-index: 2; pointer-events: none;
  width: 26px; height: 26px;
  transform: translate(-50%, -50%) scale(.3);
  background:
    radial-gradient(circle, #fffdf5 0%, rgba(255, 226, 148, .9) 18%, rgba(214, 179, 106, .3) 40%, transparent 66%),
    linear-gradient(90deg, transparent 45%, rgba(255, 248, 224, .98) 50%, transparent 55%),
    linear-gradient(0deg, transparent 45%, rgba(255, 248, 224, .98) 50%, transparent 55%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: relicSpark 3.8s ease-in-out infinite;
}
.relic-spark.sp-2 { width: 18px; height: 18px; animation-duration: 4.6s; }
/* ring sparkle spots */
.relic-ring .sp-1 { left: 57%; top: 50%; animation-delay: .4s; }
.relic-ring .sp-2 { left: 46%; top: 44%; animation-delay: 2.3s; }
/* VIP bracelet sparkle spots */
.relic-vip .sp-1 { left: 58%; top: 47%; animation-delay: 1.1s; }
.relic-vip .sp-2 { left: 37%; top: 49%; animation-delay: 3.1s; }
/* watch sparkle spots */
.relic-watch .sp-1 { left: 53%; top: 44%; animation-delay: .8s; }
.relic-watch .sp-2 { left: 43%; top: 56%; animation-delay: 2.7s; }
@keyframes relicSpark {
  0%, 58%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(0deg); }
  74% { opacity: 1; transform: translate(-50%, -50%) scale(1.05) rotate(35deg); }
  88% { opacity: .35; transform: translate(-50%, -50%) scale(.7) rotate(65deg); }
}

/* ---------- Hopex chasing Santa & 2 elves (+ occasional catch!) ---------- */
.crew-svg.hopex { width: 84px; height: 112px; animation-duration: .15s; }
.crew-svg.hopex .hx-crew-eye { filter: drop-shadow(0 0 4px #FFD25A) drop-shadow(0 0 8px rgba(214,179,106,.9)); animation: eyeGlow 2.4s ease-in-out infinite; }
.crew-svg.hopex .hx-tail { transform-box: fill-box; transform-origin: 100% 80%; animation: hxTail .35s ease-in-out infinite alternate; }
@keyframes hxTail { from { transform: rotate(-10deg); } to { transform: rotate(12deg); } }

/* 7.6s synced loop: Hopex surges & catches the trailing elf, elf jumps in panic with "!" burst and escapes */
.runner.hx-chaser { animation: hxCatch 7.6s ease-in-out infinite; }
.runner.hx-prey { position: relative; animation: hxCaught 7.6s ease-in-out infinite; }
.runner.hx-prey::after {
  content: "!";
  position: absolute; left: 50%; top: -18px;
  font-family: var(--sans); font-weight: 800; font-size: 16px; line-height: 1;
  color: #FFD25A; text-shadow: 0 0 10px rgba(255, 210, 90, .95), 0 0 4px #C4243D;
  opacity: 0; transform: translate(-50%, 6px) scale(.5);
  animation: hxBang 7.6s ease-out infinite;
}
.runner.hx-santa { animation: hxSantaHop 7.6s ease-in-out infinite; }

@keyframes hxCatch {
  0%, 38%   { transform: translateX(0) rotate(0deg); }
  48%       { transform: translateX(12px) rotate(3deg); }
  56%, 63%  { transform: translateX(36px) translateY(-4px) rotate(8deg); }
  71%       { transform: translateX(18px) rotate(-3deg); }
  84%, 100% { transform: translateX(0) rotate(0deg); }
}
@keyframes hxCaught {
  0%, 54%   { transform: translate(0, 0) rotate(0deg); }
  58%       { transform: translate(4px, -16px) rotate(-14deg); }
  63%       { transform: translate(12px, -6px) rotate(10deg); }
  70%       { transform: translate(22px, -10px) rotate(6deg); }
  80%, 100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes hxBang {
  0%, 54%   { opacity: 0; transform: translate(-50%, 6px) scale(.4); }
  58%, 67%  { opacity: 1; transform: translate(-50%, -8px) scale(1.25); }
  74%, 100% { opacity: 0; transform: translate(-50%, -18px) scale(.7); }
}
@keyframes hxSantaHop {
  0%, 64%   { transform: translate(0, 0) rotate(0deg); }
  70%       { transform: translate(10px, -8px) rotate(5deg); }
  78%, 100% { transform: translate(0, 0) rotate(0deg); }
}

@media (max-width: 640px) {
  .crew-svg.hopex { width: 56px; height: 74px; }
  .runner.hx-prey::after { font-size: 12px; top: -14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-hopex, .hero-hopex-frame, .hero-hopex-halo, .hx-glint, .hx-sparkle, .hx-eye-glow, .relic-sheen, .relic-spark { animation: none !important; }
  .hopex-eyes img, .hopex-band img, .hopex-peek img { transition: none; clip-path: none; transform: none; opacity: .9; }
  .hopex-peek img { transform: translateY(6%); }
}
