@font-face {
  font-family: "Akzidenz Grotesk";
  src: url("../assets/fonts/akzidenz-grotesk-xbdcn.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html,
body {
  margin: 0;
}

* {
  box-sizing: border-box;
}

button,
input {
  font: inherit;
}

img {
  user-select: none;
  -webkit-user-drag: none;
}

.stage-shell {
  transform-origin: top left;
}

.wall-copy-block {
  transform-origin: left 30%;
  transform: perspective(980px) rotateY(18deg) rotateX(2.6deg) rotateZ(0.85deg)
    skewY(-0.35deg) scaleX(0.905);
}

.wall-title,
.wall-kicker,
.wall-body,
.wall-tagline,
.wall-kicker p,
.wall-body p {
  margin: 0;
}

.wall-type {
  color: #f3efe8;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 254, 251, 0.99) 0%,
      rgba(250, 247, 242, 0.97) 56%,
      rgba(225, 220, 212, 0.92) 100%
    ),
    radial-gradient(
      circle at 16% 14%,
      rgba(255, 255, 255, 0.26) 0%,
      transparent 34%
    ),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05) 0 2px,
      rgba(38, 34, 28, 0.035) 2px 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0 1px,
      rgba(0, 0, 0, 0.025) 1px 3px
    );
  background-size:
    100% 100%,
    180px 180px,
    auto,
    auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(-4px -2px 0 rgba(0, 0, 0, 0.4))
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.2))
    drop-shadow(0 1px 1px rgba(19, 16, 13, 0.35))
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
  mix-blend-mode: lighten;
  opacity: 0.9;
}

.wall-text-shadow {
  filter: drop-shadow(-4px -2px 0 rgba(0, 0, 0, 0.4))
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.2))
    drop-shadow(0 1px 1px rgba(19, 16, 13, 0.35))
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

.wall-shine-target {
  position: relative;
  width: max-content;
}

.wall-shine-target::after {
  content: attr(data-shine-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  white-space: nowrap;
  background-image: linear-gradient(
    102deg,
    transparent calc(50% - 1.15ch),
    rgba(255, 255, 255, 0.2) calc(50% - 0.55ch),
    rgba(255, 251, 239, 0.98),
    transparent calc(50% + 1.15ch)
  );
  background-size: 300% 100%;
  background-repeat: no-repeat;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  will-change: background-position;
}

.wall-shine-target--title-top::after {
  animation: wall-title-shine-top 4.8s infinite both;
  animation-timing-function: ease-in-out;
}

.wall-shine-target--title-bottom::after {
  animation: wall-title-shine-bottom 4.8s infinite both;
  animation-timing-function: ease-in-out;
}

.wall-shine-target--tagline::after {
  background-position: 0 0;
  animation: wall-tagline-shine 4.8s infinite both;
  animation-timing-function: ease-in-out;
}

.wall-title {
  font-size: 122px;
  line-height: 0.79;
  letter-spacing: -2.8px;
  width: max-content;
}

.wall-kicker {
  margin-top: 14px;
  font-size: 40px;
  line-height: 0.93;
  letter-spacing: -0.95px;
  width: max-content;
}

.wall-body {
  margin-top: 16px;
  font-size: 16px;
  line-height: 0.95;
  letter-spacing: -0.2px;
  opacity: 0.92;
  width: max-content;
}

.wall-tagline {
  margin-top: 30px;
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.8px;
  opacity: 0.94;
}

.wall-kicker p,
.wall-body p {
  white-space: nowrap;
  width: max-content;
}

.scene-layer,
.scene-dim,
.door-animation-layer {
  position: absolute;
  inset: 0;
}

.is-hidden {
  display: none !important;
}

.scene-dim {
  background: rgba(0, 0, 0, 0.48);
  pointer-events: none;
}

.door-side-glow,
.door-threshold-glow {
  position: absolute;
  pointer-events: none;
  mix-blend-mode: screen;
}

.door-side-glow {
  left: 641px;
  top: 34px;
  width: 214px;
  height: 456px;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 246, 221, 0.03) 8%,
      rgba(255, 247, 224, 0.1) 15%,
      rgba(255, 250, 236, 0.18) 18%,
      transparent 24%,
      transparent 76%,
      rgba(255, 250, 236, 0.18) 82%,
      rgba(255, 247, 224, 0.1) 85%,
      rgba(255, 246, 221, 0.03) 92%,
      transparent 100%
    ),
    radial-gradient(
      ellipse at 50% 10%,
      rgba(255, 250, 238, 0.14) 0%,
      rgba(255, 247, 224, 0.06) 30%,
      transparent 66%
    );
  filter: blur(10px);
  opacity: 0.42;
  animation: door-light-flicker 3.8s ease-in-out infinite;
}

.door-threshold-glow {
  left: 611px;
  top: 434px;
  width: 278px;
  height: 78px;
  background: radial-gradient(
    ellipse at 50% 18%,
    rgba(255, 252, 236, 0.34) 0%,
    rgba(255, 247, 221, 0.18) 26%,
    rgba(255, 240, 204, 0.08) 44%,
    transparent 72%
  );
  filter: blur(12px);
  opacity: 0.62;
}

.door-shadow-glow {
  filter: brightness(0) drop-shadow(0 0 3px rgba(60, 20, 25, 0.8));
  opacity: 0.7;
}

.door-icon {
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    filter 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
  opacity: 1;
  transform: scale(0.985);
}

.intro-layer.is-hovered + .door-cluster .door-side-glow {
  opacity: 0.54;
}

.intro-layer.is-hovered + .door-cluster .door-threshold-glow {
  opacity: 0.82;
}

.intro-layer.is-hovered + .door-cluster .door-icon {
  filter: drop-shadow(0 0 12px rgba(255, 245, 200, 0.5)) drop-shadow(0 0 24px rgba(255, 240, 180, 0.3));
}

.door-animation-layer {
  pointer-events: none;
}

.door-open-void {
  position: absolute;
  left: 667px;
  top: 78px;
  width: 166px;
  height: 391px;
  opacity: 0;
  background:
    radial-gradient(
      circle at 50% 95%,
      rgba(255, 244, 221, 0.16),
      transparent 48%
    ),
    linear-gradient(180deg, rgba(8, 8, 8, 0.96), rgba(33, 9, 9, 0.9));
  box-shadow:
    inset 0 0 50px rgba(0, 0, 0, 0.74),
    inset 0 -8px 20px rgba(255, 230, 180, 0.12);
  transition: opacity 260ms ease;
}

.door-panel {
  position: absolute;
  left: 667px;
  top: 78px;
  width: 166px;
  height: 391px;
  transform-origin: right center;
  transform: perspective(1100px) rotateY(0deg);
  opacity: 1;
  transition:
    transform 720ms cubic-bezier(0.16, 0.86, 0.34, 1),
    opacity 720ms ease;
}

.door-animation-layer.is-opening .door-open-void {
  opacity: 1;
}

.door-animation-layer.is-opening .door-panel {
  transform: perspective(1100px) rotateY(-84deg);
  opacity: 0.12;
}

.flash-input::selection {
  background: rgba(0, 0, 0, 0.16);
}

.video-shell {
  transition: opacity 2s ease;
}

.video-shell.is-fading-out {
  opacity: 0;
}

.video-surface {
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 20px rgba(0, 0, 0, 0.25);
}

.subtitle-text {
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.92);
  transition: opacity 120ms linear;
  pointer-events: none;
}

.subtitle-text.is-visible {
  opacity: 1;
}

.mute-toggle span {
  color: #5d5d5d;
  transition: color 180ms ease;
}

.mute-toggle .is-active {
  color: #9f9f9f;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .wall-type {
    color: #f1ece5;
    background: none;
  }

  .wall-shine-target::after {
    content: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wall-shine-target::after {
    content: none;
  }
}

@keyframes wall-title-shine-top {
  0% {
    background-position: 100% 0;
  }

  22%,
  100% {
    background-position: 0% 0;
  }
}

@keyframes wall-title-shine-bottom {
  0%,
  22% {
    background-position: 100% 0;
  }

  24% {
    background-position: 84% 0;
  }

  42%,
  100% {
    background-position: 0% 0;
  }
}

@keyframes wall-tagline-shine {
  0%,
  42% {
    background-position: 0% 0;
  }

  44% {
    background-position: 16% 0;
  }

  62%,
  100% {
    background-position: 100% 0;
  }
}

@keyframes door-light-flicker {
  0%,
  100% {
    opacity: 0.42;
    filter: blur(10px) brightness(0.96);
  }

  24% {
    opacity: 0.48;
    filter: blur(11px) brightness(1.02);
  }

  56% {
    opacity: 0.44;
    filter: blur(9px) brightness(0.99);
  }

  81% {
    opacity: 0.52;
    filter: blur(11px) brightness(1.06);
  }
}

@keyframes door-floor-flicker {
  0%,
  100% {
    opacity: 0.62;
    transform: translateX(0) scaleX(1);
  }

  31% {
    opacity: 0.72;
    transform: translateX(-3px) scaleX(1.02);
  }

  63% {
    opacity: 0.65;
    transform: translateX(-1px) scaleX(0.995);
  }

  84% {
    opacity: 0.78;
    transform: translateX(-4px) scaleX(1.03);
  }
}
