.experience-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--white);
  overflow: hidden;
  transition: opacity 1.2s ease, visibility 1.2s ease, transform 1.2s ease;
}

.experience-gate.hide {
  opacity: 0;
  visibility: hidden;
  display: none;
  pointer-events: none;
  transform: scale(1.04);
}

.cover-frame {
  position: absolute;
  z-index: 0;
  width: clamp(320px, 42vw, 690px);
  aspect-ratio: 1086 / 1448;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: .98;
  pointer-events: none;
}

.cover-frame-top {
  top: -10px;
  left: -12px;
  background-image: url("../assets/cover-floral-top-left-clean.png");
  background-position: left top;
}

.cover-frame-bottom {
  right: -12px;
  bottom: -10px;
  width: clamp(340px, 44vw, 720px);
  background-image: url("../assets/cover-floral-bottom-right-clean.png");
  background-position: right bottom;
}

.corner-leaves {
  position: absolute;
  display: none;
  width: min(38vw, 270px);
  aspect-ratio: 1.18;
  color: var(--primary);
  opacity: .88;
  pointer-events: none;
}

.corner-leaves svg,
.gate-wreath svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.corner-leaves-top {
  top: -4px;
  left: -5px;
}

.corner-leaves-bottom {
  right: -5px;
  bottom: -4px;
  transform: rotate(180deg);
}

.branch,
.wreath-branch {
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.35;
  stroke-linecap: round;
  opacity: .58;
}

.branch-soft {
  stroke-width: 1.2;
  opacity: .45;
}

.corner-leaves ellipse {
  fill: var(--primary);
  opacity: .78;
  transform-box: fill-box;
  transform-origin: center;
}

.wreath-leaves ellipse {
  fill: var(--primary);
  opacity: .78;
}

.wreath-leaves ellipse:nth-child(3n),
.wreath-leaves ellipse:nth-child(3n + 1) {
  fill: #8fa08a;
  opacity: .66;
}

.gate-content {
  position: relative;
  width: min(82vw, 310px);
  height: 430px;
  display: block;
  margin-top: 12vh;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.gate-cover-image {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  display: block;
  width: min(100%, 300px);
  height: auto;
  transform: translateX(-50%);
}

.gate-wreath {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  width: 100%;
  height: 372px;
  transform: translateX(-50%);
}

.gate-wreath .wreath-ring {
  fill: none;
  stroke: var(--primary);
  stroke-width: .95;
  opacity: .32;
  transform-box: fill-box;
  transform-origin: center;
}

.ring-two {
  transform: rotate(5deg);
  opacity: .36;
}

.ring-three {
  transform: rotate(-7deg);
  opacity: .28;
}

.gate-names {
  position: absolute;
  top: 142px;
  left: 50%;
  z-index: 1;
  width: min(100%, 330px);
  margin: 0;
  font-family: "Great Vibes", "Segoe Script", "Lucida Handwriting", cursive;
  font-size: clamp(48px, 4.8vw, 64px);
  font-weight: 400;
  line-height: .92;
  color: #64646a;
  letter-spacing: 0;
  transform: translateX(-50%);
}

.gate-wreath,
.gate-names {
  display: none;
}

.gate-names span,
.gate-names small {
  display: block;
}

.gate-names small {
  margin: 10px 0 14px;
  font-size: .52em;
  line-height: 1;
  text-transform: lowercase;
}

.btn-primary {
  position: absolute;
  left: 50%;
  top: 346px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  min-height: 50px;
  margin: 0;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transform: translateX(-50%);
  transition:
    transform .45s ease,
    box-shadow .45s ease,
    background .45s ease;
}

.btn-map {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 15px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform .45s ease,
    box-shadow .45s ease,
    background .45s ease,
    letter-spacing .45s ease;
}

.btn-primary:hover {
  transform: translateX(-50%) translateY(-4px) scale(1.03);
  box-shadow: 0 18px 34px rgba(191,59,11,.22);
  background: #a9350d;
}

.experience-gate .btn-primary {
  animation: gentleFloat 3s ease-in-out infinite;
  box-shadow: 0 12px 24px rgba(191,59,11,.22);
}

.experience-gate .btn-primary:hover {
  animation-play-state: paused;
  transform: translateX(-50%) scale(1.05);
}

.btn-map:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 22px 48px rgba(47,42,37,.25);
  background: var(--primary);
  letter-spacing: 2.8px;
}

.music-control {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  opacity: 0;
  transform: translateY(20px) scale(.8);
  pointer-events: none;
  transition: all .8s ease;
}

.music-control.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.music-control button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(184,137,77,.35);
  border-radius: 50%;
  background: rgba(255,250,243,.78);
  color: var(--gold);
  font-size: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  cursor: pointer;
  animation: musicFloat 2.6s ease-in-out infinite;
}

.music-control button svg {
  display: block;
  width: 24px;
  height: 24px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.music-control button.muted {
  opacity: .45;
}
