/* A brief, decorative arrival. The site underneath always remains interactive. */
.entrance { display: none; }
html[data-entrance] .entrance {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: hidden;
  pointer-events: none;
  perspective: 1400px;
  animation: ww-entrance-fail-open 1.3s step-end forwards;
}
.entrance-door {
  position: absolute;
  inset-block: 0;
  width: calc(50% + 1px);
  overflow: hidden;
  background: linear-gradient(100deg, #16211d, #26382e 75%, #1c2923);
  backface-visibility: hidden;
  will-change: transform;
}
.entrance-door--left {
  left: 0;
  transform-origin: left center;
  border-right: 1px solid #cbb89a55;
  animation: ww-door-open-left 1.02s cubic-bezier(.3, .02, .2, 1) .08s both;
}
.entrance-door--right {
  right: 0;
  transform-origin: right center;
  background: linear-gradient(260deg, #16211d, #26382e 75%, #1c2923);
  border-left: 1px solid #0d1714;
  animation: ww-door-open-right 1.02s cubic-bezier(.3, .02, .2, 1) .08s both;
}
.entrance-arch {
  position: absolute;
  top: 5%;
  bottom: 5%;
  width: 176%;
  border: 1px solid #cbb89a80;
  border-radius: 50% 50% 0 0 / 39% 39% 0 0;
}
.entrance-arch::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid #cbb89a30;
  border-radius: inherit;
}
.entrance-door--left .entrance-arch { left: 12%; }
.entrance-door--right .entrance-arch { right: 12%; }
.entrance-handle {
  position: absolute;
  top: 55%;
  width: 3px;
  height: clamp(38px, 7vh, 62px);
  border-radius: 2px;
  background: linear-gradient(90deg, #9d8868, #f0e3c9, #b6a17e);
  box-shadow: 2px 1px 4px #0b151860;
}
.entrance-door--left .entrance-handle { right: clamp(14px, 2vw, 30px); }
.entrance-door--right .entrance-handle { left: clamp(14px, 2vw, 30px); }
.entrance-signature {
  position: absolute;
  top: 27%;
  left: 50%;
  width: min(80%, 420px);
  transform: translateX(-50%);
  color: #f5f3ed;
  text-align: center;
  animation: ww-entrance-signature .32s ease .12s both;
}
.entrance-signature svg {
  display: block;
  width: clamp(72px, 8vw, 100px);
  height: auto;
  margin: 0 auto 23px;
  fill: none;
  stroke: #cbb89a;
  stroke-width: 1.15;
}
.entrance-name {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(18px, 2.1vw, 28px);
  letter-spacing: .16em;
  line-height: 1.3;
  white-space: nowrap;
}
.entrance-caption {
  display: block;
  margin-top: 13px;
  font: 8px/1.4 Arial, sans-serif;
  letter-spacing: .34em;
  color: #cbb89a;
}
@keyframes ww-door-open-left {
  to { transform: rotateY(-100deg); }
}
@keyframes ww-door-open-right {
  to { transform: rotateY(100deg); }
}
@keyframes ww-entrance-signature {
  to { opacity: 0; }
}
/* CSS alone clears the view even if later JavaScript cannot run. */
@keyframes ww-entrance-fail-open {
  to { visibility: hidden; }
}
@media (max-width: 760px) {
  html[data-entrance] .entrance { perspective: 900px; }
  .entrance-arch { top: 4%; bottom: 4%; width: 184%; border-radius: 50% 50% 0 0 / 25% 25% 0 0; }
  .entrance-door--left .entrance-arch { left: 8%; }
  .entrance-door--right .entrance-arch { right: 8%; }
  .entrance-arch::after { inset: 9px; }
  .entrance-signature { top: 29%; }
  .entrance-name { font-size: clamp(17px, 4.7vw, 24px); letter-spacing: .12em; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-entrance] .entrance, [data-replay-entrance] { display: none !important; }
}
