:root {
  color-scheme: dark;
  background: #000;
  --content-width: min(78vw, calc(90svh * 1122 / 1402), 39rem);
  --text-gold: #c7b589;
  --text-muted: #b8ad96;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(80, 8, 8, 0.16), rgba(0, 0, 0, 0) 31rem),
    #000;
  color: var(--text-muted);
  font-family: "Open Sans", Arial, sans-serif;
}

.stage {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(95, 86, 65, 0.08), transparent 28rem),
    radial-gradient(circle at 50% 78%, rgba(50, 5, 5, 0.16), transparent 34rem),
    #000;
}

.stage::before,
.stage::after {
  position: absolute;
  inset: -12%;
  z-index: -2;
  content: "";
  pointer-events: none;
}

.stage::before {
  background:
    radial-gradient(circle at 50% 44%, rgba(226, 209, 159, 0.08), transparent 18rem),
    radial-gradient(circle at 20% 30%, rgba(72, 8, 8, 0.14), transparent 24rem),
    radial-gradient(circle at 82% 72%, rgba(78, 64, 45, 0.1), transparent 21rem);
  filter: blur(8px);
  animation: ember-drift 12s ease-in-out infinite alternate, background-pulse 4.8s ease-in-out infinite;
}

.stage::after {
  background-image:
    radial-gradient(circle at 18% 28%, rgba(238, 226, 188, 0.06) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 66%, rgba(238, 226, 188, 0.05) 0 1px, transparent 2px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 17px 19px, 23px 29px, 3px 3px, 3px 3px;
  mix-blend-mode: screen;
  opacity: 0.2;
  animation: grain-shift 0.85s steps(2, end) infinite, distressed-flicker 3.2s steps(4, end) infinite;
}

.distressed-crest {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 160vw;
  max-width: none;
  height: auto;
  pointer-events: none;
  opacity: 0.18;
  filter:
    brightness(0.68)
    drop-shadow(0 0 1.8rem rgba(214, 196, 143, 0.12))
    drop-shadow(0 0 4.4rem rgba(92, 8, 8, 0.18))
    contrast(1.32);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%) scale(0.98);
  animation: crest-pulse 5.6s ease-in-out infinite, crest-wear 1.1s steps(2, end) infinite;
}

.lightning-window {
  --storm-angle: 108deg;
  --storm-cross-angle: 24deg;
  --storm-x: 50%;
  --storm-y: 40%;
  --storm-power: 0.55;
  --storm-opacity: 0.56;
  position: absolute;
  inset: -8%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(var(--storm-angle), transparent 0 37%, rgba(218, 232, 255, 0.32) 39%, transparent 41% 100%),
    linear-gradient(var(--storm-cross-angle), transparent 0 49%, rgba(255, 255, 255, 0.18) 50%, transparent 52% 100%),
    radial-gradient(circle at var(--storm-x) var(--storm-y), rgba(245, 248, 255, 0.66), rgba(148, 166, 190, 0.16) 15rem, transparent 33rem);
  filter: blur(1.4px);
  mix-blend-mode: screen;
  transform: translate3d(0, 0, 0);
}

.stage.lightning-on .lightning-window {
  opacity: var(--storm-opacity);
}

.stage.lightning-on .distressed-crest {
  opacity: var(--storm-crest-opacity, 0.36);
  filter:
    brightness(var(--storm-brightness, 1.05))
    drop-shadow(0 0 2.4rem rgba(218, 229, 255, 0.25))
    drop-shadow(0 0 5.8rem rgba(130, 146, 178, 0.28))
    contrast(1.34);
}

.stage.lightning-on::before {
  opacity: var(--storm-bg-opacity, 0.7);
}

.atmosphere {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
}

.poster-shell {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --move-x: 0px;
  --move-y: 0px;
  position: relative;
  z-index: 3;
  display: grid;
  width: min(78vw, calc(90svh * 1122 / 1402), 39rem);
  aspect-ratio: 1122 / 1402;
  place-items: center;
  transform:
    translate3d(var(--move-x), var(--move-y), 0)
    perspective(1000px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  animation: poster-breathe 6.8s ease-in-out infinite;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.poster-shell:focus-visible {
  outline: 2px solid rgba(216, 201, 158, 0.72);
  outline-offset: 0.65rem;
  border-radius: 0.42rem;
}

.story {
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(4.5rem, 10vh, 8rem) 0 clamp(5.5rem, 14vh, 10rem);
  overflow: hidden;
  background: transparent;
}

.story-inner {
  position: relative;
  width: var(--content-width);
  max-width: calc(100vw - 2rem);
}

.story h1 {
  scroll-margin-top: 4rem;
  margin: 0 0 clamp(1.35rem, 3vw, 2.2rem);
  color: var(--text-gold);
  font-family: "UnifrakturMaguntia", "Old English Text MT", "Engravers Old English", serif;
  font-size: clamp(2.55rem, 5.8vw, 4.8rem);
  font-weight: 700;
  line-height: 0.9;
  text-align: center;
  text-shadow:
    0 0 1rem rgba(156, 10, 10, 0.34),
    0 0 2.5rem rgba(0, 0, 0, 0.96);
}

.story p {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  font-weight: 400;
  line-height: 1.82;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  text-wrap: pretty;
  text-shadow: 0 0 1.6rem rgba(0, 0, 0, 0.9);
}

.story p + p {
  margin-top: 1.6em;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1rem clamp(2rem, 5vw, 3.5rem);
  color: rgba(184, 173, 150, 0.7);
  background: transparent;
}

.site-footer hr {
  width: min(16rem, 42vw);
  height: 1px;
  margin: 0 0 1rem;
  background: rgba(199, 181, 137, 0.24);
  border: 0;
}

.site-footer p {
  width: min(100%, 42rem);
  margin: 0;
  font-size: clamp(0.58rem, 1vw, 0.68rem);
  line-height: 1.55;
  text-align: center;
  text-shadow: 0 0 1.4rem rgba(0, 0, 0, 0.92);
}

.site-footer a {
  color: #c7b589;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(199, 181, 137, 0.42);
  text-underline-offset: 0.18em;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ead9aa;
  text-decoration-color: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.subscribe-panel {
  margin: clamp(2.25rem, 5vw, 3.5rem) 0 0;
  padding: clamp(1rem, 2.2vw, 1.35rem);
  background:
    linear-gradient(180deg, rgba(16, 16, 16, 0.96), rgba(0, 0, 0, 0.94)),
    #000;
  border: 1px solid rgba(199, 181, 137, 0.15);
  border-radius: 0.85rem;
  box-shadow:
    0 1.4rem 3.5rem rgba(0, 0, 0, 0.62),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.subscribe-panel .subscribe-kicker {
  margin: 0 0 0.55rem;
  color: rgba(199, 181, 137, 0.62);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-shadow: none;
}

.subscribe-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.subscribe-panel input[type="email"] {
  width: 100%;
  min-height: 3.8rem;
  padding: 0 1.1rem;
  color: #f1e7d1;
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.55rem;
  font: 600 1.08rem/1 "Open Sans", Arial, sans-serif;
  outline: none;
  box-shadow: inset 0 0.15rem 0.85rem rgba(0, 0, 0, 0.44);
}

.subscribe-panel input[type="email"]::placeholder {
  color: rgba(241, 231, 209, 0.42);
}

.subscribe-panel input[type="email"]:focus {
  border-color: rgba(199, 181, 137, 0.55);
  box-shadow:
    0 0 0 0.2rem rgba(112, 18, 18, 0.34),
    inset 0 0.15rem 0.85rem rgba(0, 0, 0, 0.44);
}

.subscribe-panel button {
  min-height: 3.8rem;
  padding: 0 1.35rem;
  color: #120d08;
  background: linear-gradient(180deg, #d3c196, #a99161);
  border: 0;
  border-radius: 0.55rem;
  font: 800 0.88rem/1 "Open Sans", Arial, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0.85rem 1.4rem rgba(0, 0, 0, 0.42);
}

.subscribe-panel button:hover,
.subscribe-panel button:focus-visible {
  background: linear-gradient(180deg, #ead9aa, #bca26e);
}

.subscribe-panel button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.subscribe-status {
  margin: 0;
  color: #c7b589;
  font-size: 0.88rem;
  line-height: 1.4;
  text-align: left;
  text-shadow: none;
}

.subscribe-status:not(:empty) {
  margin-top: 0.65rem;
}

.vip-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
}

.vip-modal[hidden] {
  display: none;
}

.vip-modal-card {
  position: relative;
  width: min(32rem, calc(100vw - 2rem));
  padding: clamp(2.65rem, 7vw, 3.75rem) clamp(1.4rem, 5vw, 2.5rem) clamp(2rem, 6vw, 3rem);
  color: #d6c79c;
  background:
    radial-gradient(circle at 50% 0%, rgba(112, 18, 18, 0.2), transparent 16rem),
    #050505;
  border: 1px solid rgba(199, 181, 137, 0.22);
  border-radius: 0.85rem;
  box-shadow:
    0 2rem 6rem rgba(0, 0, 0, 0.86),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.vip-modal-card p {
  margin: 0;
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

.vip-modal-logo {
  display: block;
  width: min(50%, 15rem);
  height: auto;
  margin: clamp(1.3rem, 4vw, 2rem) auto 0;
  filter: drop-shadow(0 0.85rem 1.35rem rgba(0, 0, 0, 0.68));
}

.vip-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: rgba(214, 199, 156, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font: 700 1rem/1 "Open Sans", Arial, sans-serif;
  cursor: pointer;
}

.vip-modal-close:hover,
.vip-modal-close:focus-visible {
  color: #f1e7d1;
  background: rgba(255, 255, 255, 0.11);
}

body.modal-open {
  overflow: hidden;
}

.poster-shell::before {
  position: absolute;
  inset: 4% 5%;
  z-index: -1;
  content: "";
  background:
    radial-gradient(ellipse at center, rgba(132, 16, 16, 0.28), rgba(0, 0, 0, 0) 68%),
    radial-gradient(ellipse at center, rgba(255, 235, 190, 0.16), rgba(0, 0, 0, 0) 58%);
  filter: blur(34px);
  opacity: 0.76;
  transform: translate3d(0, 3%, -80px);
  animation: pulse-shadow 4.4s ease-in-out infinite;
}

.poster-shell::after {
  position: absolute;
  inset: 0;
  z-index: 4;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0%, transparent 42%, rgba(255, 255, 255, 0.18) 48%, transparent 53%, transparent 100%),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.13), transparent 12rem);
  mix-blend-mode: screen;
  opacity: 0;
  animation: blade-glint 7.5s ease-in-out infinite;
}

.poster {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  border-radius: 0.42rem;
  user-select: none;
  -webkit-user-drag: none;
}

.poster-backdrop {
  z-index: 0;
  filter: blur(24px) saturate(1.15) contrast(1.08);
  opacity: 0.32;
  transform: scale(1.045) translateZ(-40px);
  animation: backdrop-drift 9s ease-in-out infinite alternate;
}

.poster-primary {
  z-index: 3;
  filter: drop-shadow(0 2rem 3rem rgba(0, 0, 0, 0.82));
  transform: translateZ(35px);
}

@keyframes poster-breathe {
  0%,
  100% {
    scale: 1;
  }

  50% {
    scale: 1.012;
  }
}

@keyframes pulse-shadow {
  0%,
  100% {
    opacity: 0.52;
    scale: 0.98;
  }

  50% {
    opacity: 0.84;
    scale: 1.04;
  }
}

@keyframes blade-glint {
  0%,
  22% {
    opacity: 0;
    transform: translateX(-18%) skewX(-9deg);
  }

  31% {
    opacity: 0.46;
  }

  42%,
  100% {
    opacity: 0;
    transform: translateX(18%) skewX(-9deg);
  }
}

@keyframes backdrop-drift {
  from {
    opacity: 0.25;
    transform: scale(1.035) translate3d(-0.8%, -0.5%, -40px);
  }

  to {
    opacity: 0.38;
    transform: scale(1.055) translate3d(0.8%, 0.5%, -40px);
  }
}

@keyframes ember-drift {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }

  to {
    transform: translate3d(1.5%, 1%, 0) scale(1.04);
  }
}

@keyframes grain-shift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-3px, 2px, 0);
  }
}

@keyframes background-pulse {
  0%,
  100% {
    opacity: 0.44;
  }

  47% {
    opacity: 0.66;
  }
}

@keyframes distressed-flicker {
  0%,
  100% {
    opacity: 0.13;
  }

  50% {
    opacity: 0.22;
  }
}

@keyframes crest-pulse {
  0%,
  100% {
    opacity: 0.14;
    transform: translate(-50%, -50%) scale(0.965);
  }

  46% {
    opacity: 0.24;
    transform: translate(-50%, -50%) scale(1.015);
  }

  58% {
    opacity: 0.18;
  }
}

@keyframes crest-wear {
  from {
    filter:
      brightness(0.6)
      drop-shadow(0 0 1.6rem rgba(214, 196, 143, 0.1))
      drop-shadow(0 0 4rem rgba(92, 8, 8, 0.16))
      contrast(1.24);
  }

  to {
    filter:
      brightness(0.76)
      drop-shadow(0 0 2rem rgba(214, 196, 143, 0.15))
      drop-shadow(0 0 4.9rem rgba(92, 8, 8, 0.2))
      contrast(1.4);
  }
}

@media (max-width: 760px) {
  :root {
    --content-width: min(92vw, calc(72svh * 1122 / 1402), 31rem);
  }

  .distressed-crest {
    top: 47%;
    width: 160vw;
    opacity: 0.16;
  }

  .lightning-window {
    inset: -4%;
  }

  .poster-shell {
    width: min(92vw, calc(72svh * 1122 / 1402), 31rem);
  }

  .story {
    padding-top: clamp(3.5rem, 8vh, 5rem);
  }

  .story h1 {
    font-size: clamp(2.35rem, 10.5vw, 3.45rem);
  }

  .story p {
    font-size: 1rem;
    line-height: 1.72;
  }

  .subscribe-row {
    grid-template-columns: 1fr;
  }

  .subscribe-panel button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .atmosphere {
    display: none;
  }

  .distressed-crest {
    animation: none;
    opacity: 0.16;
  }

  .lightning-window {
    display: none;
  }

  .poster-shell {
    transform: none;
  }
}
