/* Hidden before JS checks; the original desktop design is retained. */
#zccIntro { display: none; }
#zccIntro[hidden] { display: none !important; }
#zccIntro.zcc-ready:not([hidden]) { display: grid; }
.zcc-intro {
  --mx: 0deg;
  --my: 0deg;
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(30, 58, 114, 0.36), transparent 31%),
    radial-gradient(circle at 15% 0%, rgba(212, 175, 55, 0.1), transparent 24%),
    linear-gradient(145deg, #02040a 0%, #070b14 54%, #010204 100%);
  color: #fff;
  transition: opacity 0.9s ease, visibility 0.9s ease;
  isolation: isolate;
}

.zcc-intro::before {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: -1;
  background: conic-gradient(from 210deg, transparent 0 40%, rgba(244, 208, 63, 0.11) 47%, transparent 54% 100%);
  animation: zcc-intro-light 8s linear infinite;
}

.zcc-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.34;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 0.6px, transparent 0.7px);
  background-size: 7px 7px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 70%, transparent);
}

.zcc-intro.zcc-exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.zcc-intro.zcc-hidden {
  display: none;
}

body.zcc-intro-open {
  overflow: hidden;
}

.zcc-stage {
  position: relative;
  width: min(1100px, 92vw);
  text-align: center;
  perspective: 1200px;
  transform: rotateX(var(--my)) rotateY(var(--mx));
  transition: transform 0.16s ease-out;
}

.zcc-stage::before,
.zcc-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 49%;
  z-index: -1;
  width: min(780px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.15);
  transform: translate(-50%, -50%) scale(0.25);
  opacity: 0;
  animation: zcc-energy-ring 3.2s 1.15s ease-out infinite;
}

.zcc-stage::after {
  animation-delay: 2.05s;
  border-color: rgba(255, 255, 255, 0.11);
}

.zcc-mark {
  width: 82px;
  height: 82px;
  margin: 0 auto 34px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  filter: drop-shadow(0 0 18px rgba(244, 208, 63, 0.24));
  opacity: 0;
  animation: zcc-rise 0.9s 0.1s cubic-bezier(0.2, 0.75, 0.25, 1) forwards,
    zcc-mark-pulse 2s 1.2s ease-in-out infinite;
}

.zcc-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.zcc-kicker {
  color: rgba(255, 255, 255, 0.58);
  text-transform: uppercase;
  letter-spacing: 0.36em;
  font-size: 0.68rem;
  font-weight: 700;
  margin: 0 0 22px;
  opacity: 0;
  animation: zcc-rise 0.9s 0.35s cubic-bezier(0.2, 0.75, 0.25, 1) forwards;
}

.zcc-headline {
  position: relative;
  display: inline-block;
  margin: 0;
  white-space: nowrap;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 7.2vw, 7.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
  color: transparent;
  background: linear-gradient(105deg, #806218 0%, #d4af37 25%, #fff6cb 49%, #d4af37 72%, #74560d 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 2px 0 rgba(216, 205, 176, 0.8), 0 4px 0 rgba(136, 117, 75, 0.7),
    0 14px 32px rgba(0, 0, 0, 0.95), 0 0 90px rgba(244, 208, 63, 0.2);
  transform: translateZ(-950px) scale(0.06);
  opacity: 0;
  filter: blur(28px) brightness(3);
  animation: zcc-emerge 1.8s 0.45s cubic-bezier(0.1, 0.82, 0.18, 1) forwards,
    zcc-gold-sweep 2.6s 2.25s ease-in-out infinite,
    zcc-title-float 3.4s 2.35s ease-in-out infinite;
}

.zcc-headline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: 18%;
  height: 130%;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(ellipse, rgba(255, 248, 194, 0.95) 0%, rgba(244, 208, 63, 0.42) 30%, rgba(212, 175, 55, 0.08) 58%, transparent 74%);
  transform: translate(-50%, -50%) scale(0.06);
  filter: blur(10px);
  animation: zcc-light-burst 2.05s 0.42s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}

.zcc-headline::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: 150vw;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent 4%, rgba(212, 175, 55, 0.18) 35%, #fff4ae 50%, rgba(212, 175, 55, 0.18) 65%, transparent 96%);
  transform: translate(-50%, -50%) scaleX(0.03);
  box-shadow: 0 0 28px 5px rgba(244, 208, 63, 0.42);
  animation: zcc-light-line 1.9s 0.55s ease-out forwards;
}

.zcc-rule {
  width: 0;
  height: 1px;
  margin: 34px auto 0;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  box-shadow: 0 0 22px rgba(244, 208, 63, 0.45);
  animation: zcc-line 1.1s 1.35s ease forwards;
}

.zcc-copy {
  max-width: 470px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.64);
  font-family: -apple-system, system-ui, sans-serif;
  font-size: clamp(0.95rem, 1.7vw, 1.08rem);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: zcc-rise 0.9s 1.5s ease forwards;
}

.zcc-enter {
  margin-top: 34px;
  min-height: 50px;
  padding: 0 27px;
  border-radius: 999px;
  border: 1px solid rgba(244, 208, 63, 0.48);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font: 700 0.76rem/1 -apple-system, system-ui, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  animation: zcc-rise 0.9s 1.72s ease forwards, zcc-button-beacon 2.2s 2.8s ease-in-out infinite;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.zcc-enter:hover {
  background: #f4d03f;
  color: #081124;
  box-shadow: 0 0 36px rgba(212, 175, 55, 0.25);
  transform: translateY(-2px);
}

.zcc-skip {
  position: absolute;
  right: 24px;
  top: 22px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font: 600 0.78rem/1 -apple-system, system-ui, sans-serif;
  cursor: pointer;
  padding: 12px;
}

@keyframes zcc-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes zcc-emerge {
  0% {
    opacity: 0;
    transform: translateZ(-950px) scale(0.06);
    filter: blur(28px) brightness(3);
  }
  36% {
    opacity: 0.95;
    filter: blur(7px) brightness(2.1);
  }
  72% {
    transform: translateZ(115px) scale(1.08);
    filter: blur(0) brightness(1.45);
  }
  100% {
    opacity: 1;
    transform: translateZ(72px) scale(1);
    filter: blur(0) brightness(1);
  }
}
@keyframes zcc-line {
  to {
    width: min(460px, 72vw);
  }
}
@keyframes zcc-intro-light {
  to {
    transform: rotate(360deg);
  }
}
@keyframes zcc-energy-ring {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.28);
  }
  18% {
    opacity: 0.9;
  }
  78%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.22);
  }
}
@keyframes zcc-title-float {
  0%,
  100% {
    translate: 0 0;
    filter: brightness(1);
  }
  50% {
    translate: 0 -12px;
    filter: brightness(1.13);
  }
}
@keyframes zcc-gold-sweep {
  0%,
  100% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 0% 50%;
  }
}
@keyframes zcc-light-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.04);
    filter: blur(6px);
  }
  38% {
    opacity: 0.55;
  }
  72% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(5.8);
    filter: blur(22px);
  }
  100% {
    opacity: 0.1;
    transform: translate(-50%, -50%) scale(9);
    filter: blur(40px);
  }
}
@keyframes zcc-light-line {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(0.03);
  }
  32% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(1);
  }
}
@keyframes zcc-mark-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.18));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 34px rgba(244, 208, 63, 0.68));
    transform: scale(1.12);
  }
}
@keyframes zcc-button-beacon {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(212, 175, 55, 0.08), 0 0 34px rgba(212, 175, 55, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .zcc-intro::before,
  .zcc-stage::before,
  .zcc-stage::after,
  .zcc-mark,
  .zcc-kicker,
  .zcc-headline,
  .zcc-headline::before,
  .zcc-headline::after,
  .zcc-rule,
  .zcc-copy,
  .zcc-enter {
    animation: none;
  }
  .zcc-mark,
  .zcc-kicker,
  .zcc-headline,
  .zcc-copy,
  .zcc-enter {
    opacity: 1;
    transform: none;
  }
  .zcc-rule {
    width: min(460px, 72vw);
  }
}

@media (max-width: 760px) {
  .zcc-mark {
    margin-bottom: 34px;
  }
  .zcc-headline {
    white-space: normal;
    font-size: clamp(3rem, 15vw, 4.8rem);
    max-width: 6.8em;
  }
  .zcc-copy {
    max-width: 29ch;
    line-height: 1.7;
  }
}

/* Touch devices use bounded 2D layers and opacity pulses instead of
   large animated blur/filter surfaces. Set before revealing the intro. */
.zcc-intro.zcc-mobile { overflow-y: auto; padding: 32px 20px; box-sizing: border-box; }
.zcc-mobile .zcc-stage { width: min(520px, 100%); perspective: none; transform: none; transition: none; }
.zcc-mobile::before { inset: 0; background: radial-gradient(ellipse at center, rgba(212,175,55,.13), transparent 65%); animation: zcc-mobile-glow 3.2s ease-in-out infinite; }
.zcc-mobile::after { display: none; }
.zcc-mobile .zcc-stage::before, .zcc-mobile .zcc-stage::after { width: min(340px, 76vw); animation-name: zcc-mobile-ring; }
.zcc-mobile .zcc-headline {
  font-size: clamp(2.6rem, 12vw, 4.8rem); max-width: 7.5em; white-space: normal;
  line-height: 1.1; opacity: 1; filter: none; transform: none;
  text-shadow: 0 2px 0 rgba(216,205,176,.45), 0 4px 0 rgba(136,117,75,.3), 0 8px 18px rgba(0,0,0,.7);
  background-size: 100% 100%;
  animation: zcc-mobile-emerge .85s ease-out both;
}
.zcc-mobile .zcc-headline::before { width: 100%; height: 100%; transform: translate(-50%, -50%); filter: none; animation: zcc-mobile-glow 3s ease-in-out infinite; opacity: .18; }
.zcc-mobile .zcc-headline::after { width: 90vw; box-shadow: none; animation: zcc-light-line 1.2s .2s ease-out forwards; }
.zcc-mobile .zcc-mark { filter: none; animation: zcc-rise .6s ease-out forwards, zcc-mobile-mark 2.4s .6s ease-in-out infinite; }
.zcc-mobile .zcc-enter { opacity: 1; animation: none; box-shadow: 0 0 18px rgba(212,175,55,.15); }
.zcc-enter:focus-visible { outline: 2px solid #fff6cb; outline-offset: 5px; }
@keyframes zcc-mobile-glow { 0%,100% { opacity: .1; } 50% { opacity: .28; } }
@keyframes zcc-mobile-mark { 0%,100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes zcc-mobile-emerge { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes zcc-mobile-ring { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.7); } 30% { opacity: .55; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  #zccIntro *, #zccIntro::before, #zccIntro::after { animation: none !important; transition: none !important; }
  #zccIntro .zcc-headline, #zccIntro .zcc-mark, #zccIntro .zcc-copy, #zccIntro .zcc-kicker, #zccIntro .zcc-enter { opacity: 1; transform: none; filter: none; }
  #zccIntro .zcc-headline::before, #zccIntro .zcc-headline::after, #zccIntro .zcc-stage::before, #zccIntro .zcc-stage::after { display: none; }
}
