/* Progressive enhancement: no script, no overlay. */
.brand-intro-pending {
  overflow: hidden;
  scrollbar-gutter: stable;
}
.brand-intro {
  display: none;
}
.brand-intro-pending .brand-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: 1400px;
  color: #ffefd1;
}
.brand-intro-door {
  position: absolute;
  inset-block: 0;
  width: calc(50% + 1px);
  overflow: hidden;
  background: radial-gradient(ellipse at 100% 45%, #b62b34 0, #8c1d2a 36%, #521823 100%);
  backface-visibility: hidden;
  transition: transform 1050ms cubic-bezier(0.65, 0, 0.25, 1);
}
.brand-intro-door::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid #f0c88736;
  pointer-events: none;
}
.brand-intro-door::after {
  content: "";
  position: absolute;
  inset: 20% 0 0;
  background: url("../imgs/common/editorial-lines.svg") center bottom / auto 85% no-repeat;
  opacity: 0.18;
  pointer-events: none;
}
.brand-intro-door--left {
  left: 0;
  transform-origin: left center;
  border-right: 1px solid #f6d190ad;
}
.brand-intro-door--right {
  right: 0;
  transform-origin: right center;
  border-left: 1px solid #f6d190ad;
  background: radial-gradient(ellipse at 0 45%, #b62b34 0, #8c1d2a 36%, #521823 100%);
}
.brand-intro-door--right::after {
  transform: scaleX(-1);
}
.brand-intro-seal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(90%, 460px);
  text-align: center;
  transition:
    opacity 350ms ease,
    transform 650ms ease;
}
.brand-intro-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 192px;
  height: 192px;
  margin-bottom: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe7aa22, #a5263300 70%);
  box-shadow: 0 0 80px #f9ce7424;
}
.brand-intro-emblem img {
  width: 152px;
  height: 152px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px #310a154d);
}
.brand-intro-orbit {
  position: absolute;
  inset: 0;
  border: 1px solid #f3d69e4d;
  border-radius: 50%;
}
.brand-intro-orbit::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 2px solid transparent;
  border-top-color: #ffe3a6;
  border-right-color: #f7d08f55;
  border-radius: 50%;
  animation: brand-orbit 1800ms linear infinite;
}
.brand-intro-title {
  color: #fff2d8;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding-left: 0.18em;
  line-height: 1.4;
}
.brand-intro-subtitle {
  color: #e5c7a0;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.16em;
  margin-top: 14px;
}
.brand-intro-skip {
  position: absolute;
  bottom: max(32px, env(safe-area-inset-bottom));
  right: max(32px, env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #ebc99655;
  border-radius: 24px;
  color: #f4d8b3;
  font-size: 14px;
  transition:
    opacity 180ms ease,
    background 180ms ease;
}
.brand-intro-skip:hover {
  background: #edc99716;
}
.brand-intro-skip:focus-visible {
  outline: 2px solid #ffe7b8;
  outline-offset: 4px;
}
.brand-intro.is-opening .brand-intro-door--left {
  transform: translateX(-100%) rotateY(12deg);
}
.brand-intro.is-opening .brand-intro-door--right {
  transform: translateX(100%) rotateY(-12deg);
}
.brand-intro.is-opening .brand-intro-seal {
  opacity: 0;
  transform: scale(1.06);
}
.brand-intro.is-opening .brand-intro-skip {
  opacity: 0;
}
@keyframes brand-orbit {
  to {
    transform: rotate(360deg);
  }
}

/* A single quiet sweep welcomes the footer into view. */
.footer-scenery::after {
  content: "";
  position: absolute;
  inset: -35% -65%;
  background: linear-gradient(
    110deg,
    transparent 38%,
    #e1b87b00 43%,
    #e1b87b1f 50%,
    #e1b87b00 57%,
    transparent 62%
  );
  opacity: 0;
  pointer-events: none;
}
.footer-mark {
  transition:
    filter 250ms ease,
    transform 250ms ease;
}
@media (prefers-reduced-motion: no-preference) {
  .footer-is-revealed .footer-scenery::after {
    animation: footer-gold-sweep 4200ms ease-out both;
    animation-play-state: var(--footer-motion-state, paused);
  }
  .footer-is-revealed .footer-invitation,
  .footer-is-revealed .footer-brand,
  .footer-is-revealed .footer-links {
    animation: footer-copy-reveal 650ms cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
    animation-play-state: var(--footer-motion-state, paused);
  }
  .footer-is-revealed .footer-brand {
    animation-delay: 100ms;
  }
  .footer-is-revealed .footer-links:nth-child(2) {
    animation-delay: 160ms;
  }
  .footer-is-revealed .footer-links:nth-child(3) {
    animation-delay: 220ms;
  }
  .footer-is-revealed .footer-links:nth-child(4) {
    animation-delay: 280ms;
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .footer-brand .brand:hover .footer-mark {
    filter: drop-shadow(0 0 12px #eacb7b66);
    transform: translateY(-2px);
  }
}
@keyframes footer-gold-sweep {
  0% {
    opacity: 0;
    transform: translateX(-35%);
  }
  22% {
    opacity: 0.7;
  }
  75% {
    opacity: 0.45;
  }
  100% {
    opacity: 0;
    transform: translateX(35%);
  }
}
@keyframes footer-copy-reveal {
  from {
    opacity: 0.4;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 767px) {
  .brand-intro-door::before {
    inset: 16px;
  }
  .brand-intro-emblem {
    width: 160px;
    height: 160px;
    margin-bottom: 26px;
  }
  .brand-intro-emblem img {
    width: 128px;
    height: 128px;
  }
  .brand-intro-title {
    font-size: 32px;
  }
  .brand-intro-subtitle {
    font-size: 14px;
  }
  .brand-intro-skip {
    right: 22px;
    bottom: max(26px, env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand-intro-door,
  .brand-intro-seal {
    transition: none;
  }
  .brand-intro-orbit::after {
    animation: none;
  }
  .footer-mark {
    transition: none;
  }
}
