.gala-curtain-story {
  --curtain-deep-blue: #00031c;
  --curtain-gold: #d7b46a;
  --curtain-ivory: #f5eede;
  --curtain-page-width: 1440px;
  --curtain-container-x: 130px;
  --curtain-title-y: 0vh;
  --curtain-title-opacity: 1;
  --curtain-copy-y: 105vh;
  --curtain-copy-opacity: 0;
  --curtain-hint-opacity: 1;
  --curtain-shade-opacity: 0.36;

  position: relative;
  z-index: 12;
  left: 50%;
  width: 100vw;
  height: 900svh;
  margin-left: -50vw;
  overflow: visible;
  background: var(--curtain-deep-blue);
  color: var(--curtain-ivory);
  font-family: "Roboto", Arial, sans-serif;
}

.gala-curtain-story *,
.gala-curtain-story *::before,
.gala-curtain-story *::after {
  box-sizing: border-box;
}

.gala-curtain-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(
    circle at 50% 38%,
    #0a2851 0,
    #04142d 45%,
    #020817 100%
  );
}

.gala-curtain-canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.gala-curtain-story img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.gala-curtain-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(1, 6, 17, 0.12),
      transparent 30%,
      rgba(1, 6, 17, 0.26)
    ),
    radial-gradient(circle at 50% 46%, transparent 22%, rgba(0, 4, 13, 0.6) 100%);
  opacity: var(--curtain-shade-opacity);
}

.gala-curtain-stage-copy {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, var(--curtain-page-width));
  padding: 0 var(--curtain-container-x);
  transform: translateX(-50%);
  text-align: left;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 14%,
    #000 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 14%,
    #000 82%,
    transparent 100%
  );
}

.gala-curtain-title {
  width: min(1180px, 100%);
  margin: 0;
  transform: translate3d(0, var(--curtain-title-y), 0);
  opacity: var(--curtain-title-opacity);
  color: var(--curtain-ivory);
  font-family: "Geologica", "Arial Black", sans-serif;
  font-size: 80px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 0.96;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 10px 50px rgba(0, 0, 0, 0.7);
  will-change: transform, opacity;
  pointer-events: auto;
  -webkit-user-select: text;
  user-select: text;
}

.gala-curtain-title::after {
  display: none;
}

.gala-curtain-copy {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - (var(--curtain-container-x) * 2)));
  transform: translate3d(-50%, var(--curtain-copy-y), 0);
  opacity: var(--curtain-copy-opacity);
  text-align: left;
  will-change: transform, opacity;
  pointer-events: auto;
  -webkit-user-select: text;
  user-select: text;
}

.gala-curtain-chapter {
  position: relative;
  margin: 0 0 clamp(160px, 24vh, 280px);
}

.gala-curtain-chapter:last-child {
  margin-bottom: 0;
}

.gala-curtain-chapter-label {
  margin: 0 0 12px;
  color: var(--curtain-gold);
  font-family: "Geologica", "Arial Black", sans-serif;
  font-size: 70px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 10px 45px rgba(0, 0, 0, 0.55);
}

.gala-curtain-chapter-label--wide {
  font-size: 56px;
  white-space: nowrap;
}

.gala-curtain-chapter-title {
  margin: 25px 0 34px;
  color: var(--curtain-gold);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.72);
}

.gala-curtain-chapter-title--short {
  font-size: 24px;
}

.gala-curtain-chapter > p:not(.gala-curtain-chapter-title) {
  max-width: 1180px;
  margin: 0 0 1.35em;
  color: #fff;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-shadow: 0 5px 24px rgba(0, 0, 0, 0.9);
}

.gala-curtain-chapter > p:last-of-type {
  margin-bottom: 0;
}

.gala-curtain-cta {
  display: flex;
  justify-content: center;
  margin-top: 46px;
  pointer-events: auto;
}

.gala-curtain-ticket-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 202px;
  height: 42px;
  padding: 0 24px;
  border: 1px solid #b29e81;
  border-radius: 2px;
  background:
    radial-gradient(circle at 47% 30%, #f0dfc3 0, #f0dfc3 12%, #cfb081 70%),
    var(--curtain-gold);
  color: #04061b;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}

.gala-curtain-ticket-button:focus-visible {
  outline: 2px solid var(--curtain-ivory);
  outline-offset: 4px;
}

.gala-curtain-divider {
  width: min(220px, 32vw);
  height: 1px;
  margin: 0 auto clamp(90px, 14vh, 150px);
  background: linear-gradient(90deg, var(--curtain-gold), transparent);
  box-shadow: 0 0 18px rgba(210, 170, 97, 0.48);
}

.gala-curtain-scroll-hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  transform: translateX(-50%);
  opacity: var(--curtain-hint-opacity);
  color: rgba(245, 241, 232, 0.72);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.gala-curtain-scroll-hint::after {
  content: "";
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--curtain-gold), transparent);
  animation: gala-curtain-breathe 1.8s ease-in-out infinite;
}

.gala-curtain-loading {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--curtain-deep-blue);
  color: rgba(245, 241, 232, 0.62);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.gala-curtain-loading.is-ready {
  visibility: hidden;
  opacity: 0;
}

@keyframes gala-curtain-breathe {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.6);
    transform-origin: top;
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

@media (max-width: 1440px) {
  .gala-curtain-story {
    --curtain-container-x: clamp(22px, calc(24.04vw - 216px), 130px);
  }
}

@media (max-width: 1180px) {
  .gala-curtain-title,
  .gala-curtain-chapter-label {
    font-size: 56px;
  }

  .gala-curtain-chapter-label--wide {
    font-size: 48px;
  }
}

@media (max-width: 640px) {
  .gala-curtain-story {
    --curtain-container-x: 16px;

    height: 1150svh;
  }

  .gala-curtain-stage {
    min-height: 500px;
  }

  .gala-curtain-title {
    width: 100%;
    font-size: clamp(30px, 9.3vw, 44px);
    letter-spacing: -0.02em;
    line-height: 1;
  }

  .gala-curtain-copy {
    width: calc(100% - (var(--curtain-container-x) * 2));
  }

  .gala-curtain-chapter-label,
  .gala-curtain-chapter-label--wide {
    font-size: 36px;
    white-space: normal;
  }

  .gala-curtain-chapter-title,
  .gala-curtain-chapter-title--short {
    font-size: 24px;
  }

  .gala-curtain-chapter > p:not(.gala-curtain-chapter-title) {
    font-size: 16px;
    line-height: 1.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gala-curtain-scroll-hint::after {
    animation: none;
  }
}
