/* ==========================================================================
   INTRO – Gatefold-Einladung mit Wachssiegel
   In Enfold: als eigenes Overlay (Code-Block im Footer bzw. Child-Theme)
   ========================================================================== */
.intro {
  --gw: min(52svh, 86vw);              /* Kartenbreite */
  --gh: calc(var(--gw) * 1.4);          /* Format 5:7 */
  --seal: calc(var(--gw) * .32);
  --seal-y: 79%;
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
}
.intro.is-done { display: none; }
.intro__wash {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 45% at 18% 12%, rgba(127,156,184,.16), transparent 70%),
    radial-gradient(50% 40% at 88% 90%, rgba(127,156,184,.14), transparent 70%),
    radial-gradient(40% 30% at 85% 15%, rgba(214,190,160,.16), transparent 70%);
}
.intro__stage { position: relative; display: flex; flex-direction: column; align-items: center; perspective: 2400px; perspective-origin: 50% 45%; }

.gate { position: relative; width: var(--gw); height: var(--gh); transform-style: preserve-3d; }
.gate__inside { display: none; }
.gate__door {
  position: absolute; top: 0; bottom: 0; width: 50%;
  transform-style: preserve-3d;
  will-change: transform;
}
.gate__door--l { left: 0; transform-origin: 0 50%; }
.gate__door--r { right: 0; transform-origin: 100% 50%; }
.gate__face, .gate__back {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.gate__face {
  background: #fffdf9;
  box-shadow: 0 30px 60px -30px rgba(62,47,38,.35), 0 2px 6px rgba(62,47,38,.06);
}
.gate__door--l .gate__face { box-shadow: inset -1px 0 0 rgba(62,47,38,.18), 0 30px 60px -30px rgba(62,47,38,.35); }
.gate__back { transform: rotateY(180deg); background: #f6efe4; box-shadow: inset 0 0 60px rgba(62,47,38,.08); }

.gate__art { position: absolute; top: 0; height: 100%; width: 200%; display: flex; flex-direction: column; align-items: center; }
.gate__door--l .gate__art { left: 0; }
.gate__door--r .gate__art { left: -100%; }
.gate__gazebo { width: 92%; margin-top: 15%; mix-blend-mode: multiply; }
.gate__names { margin-top: 3%; text-align: center; color: var(--ink); font-size: calc(var(--gw) * .058); line-height: 1.25; }
.gate__names .caps-xl { display: block; letter-spacing: .26em; padding-left: .26em; }
.gate__names .script-and { font-size: 1.7em; margin: .05em 0 .1em; }
.gate__names .script-and::before, .gate__names .script-and::after { width: 3.6em; }
.gate__hills { position: absolute; bottom: 0; left: 0; width: 100%; height: 11%; object-fit: cover; object-position: top; mix-blend-mode: multiply; }

/* Siegelhälften sitzen auf der Kante der jeweiligen Tür */
.gate__seal {
  position: absolute; top: var(--seal-y); width: var(--seal); height: var(--seal);
  margin-top: calc(var(--seal) / -2);
  transform: translateZ(1px);
  pointer-events: none;
}
.gate__seal--l { left: calc(100% - var(--seal) / 2); }
.gate__seal--r { left: calc(var(--seal) / -2); }
.gate__seal { visibility: hidden; }
.gate__seal .wax-seal, .gate__seal-whole .wax-seal { width: 100%; height: 100%; overflow: visible; }
.gate__seal-whole {
  position: absolute; left: 50%; top: var(--seal-y);
  width: var(--seal); height: var(--seal);
  margin: calc(var(--seal) / -2) 0 0 calc(var(--seal) / -2);
  transform: translateZ(3px); pointer-events: none;
}

.gate__btn {
  position: absolute; left: 50%; top: var(--seal-y);
  width: calc(var(--seal) * .8); height: calc(var(--seal) * .8);
  transform: translate(-50%, -50%) translateZ(2px);
  border-radius: 50%; border: 0; background: transparent; cursor: pointer;
}
.gate__btn:focus-visible { outline: 1px solid var(--blue-deep); outline-offset: 10px; }

.intro__hint {
  margin: 34px 0 0; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft);
  animation: hintPulse 2.8s ease-in-out infinite;
}
@keyframes hintPulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.intro__skip {
  position: absolute; top: 22px; right: 26px; z-index: 3;
  background: none; border: 0; font: inherit; font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-soft); cursor: pointer; padding: 10px;
}
.intro__skip:hover { color: var(--ink); }

.wax-crumb { position: absolute; left: 50%; pointer-events: none; z-index: 5; border-radius: 40% 60% 55% 45%; }

@media (max-width: 767px) {
  .intro { --gw: min(50svh, 84vw); }
  .intro__hint { font-size: 12px; letter-spacing: .22em; text-align: center; padding: 0 16px; }
}
