:root {
  --bg: #050505;
  --text: #f8f8f8;
  --glow: rgba(255, 255, 255, 0.55);
  --paper-bg: #f4f1e8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  overflow: hidden;
  font-family: "Cinzel Decorative", serif;
}

.title,
.ui {
  opacity: 0;
}

body.started .title,
body.started .ui {
  opacity: 1;
}

body.subscribe-active .title,
body.subscribe-active .ui {
  opacity: 0;
  transition: opacity 0.6s ease;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.title {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 8vh;
  text-align: center;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.45em;
  font-size: clamp(28px, 6vw, 64px);
  text-shadow: 0 0 16px var(--glow), 0 0 40px rgba(255, 255, 255, 0.2);
  pointer-events: none;
  user-select: none;
  transition: opacity 0.6s ease;
}

.ui {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 3vh;
  display: flex;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.play-btn {
  text-decoration: none;
}

.start-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: opacity 0.9s ease;
}

.start-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.start-btn {
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 999px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.subscribe-btn {
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.55);
}

.subscribe-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 12% 14%, #fffdf7 0%, #f4f1e8 48%, #ebe5d6 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
}

.subscribe-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hook-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: clamp(24px, 4vw, 46px);
  opacity: 0;
  filter: blur(9px);
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 1.1s ease, filter 1.1s ease, transform 1.1s ease;
}

.hook-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.11) 0 1px,
      rgba(255, 255, 255, 0.05) 1px 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.05) 0 1px,
      transparent 1px 3px
    );
  mix-blend-mode: multiply;
  transition: opacity 0.08s ease;
}

.hook-stage > * {
  position: relative;
  z-index: 4;
}

.hook-stage.is-static::before {
  opacity: 0.22;
  animation: hook-static-wash 0.12s steps(3, end) infinite;
}

.subscribe-overlay.show-hook .hook-stage {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  pointer-events: auto;
}

.subscribe-overlay.show-card .hook-stage {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(-8px);
  pointer-events: none;
}

.hook-kicker {
  margin: 0;
  color: rgba(0, 0, 0, 0.6);
  font-family: "Cinzel Decorative", serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hook-intro {
  margin: -6px 0 0;
  min-height: 1.6em;
  color: rgba(0, 0, 0, 0.78);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(18px, 2.6vw, 24px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
}

.hook-intro.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hook-intro.is-fading {
  opacity: 0;
  filter: blur(2px);
}

.hook-intro.is-visible::after {
  content: "";
  display: inline-block;
  width: 0.6ch;
  height: 1em;
  margin-left: 0.2ch;
  border-right: 2px solid rgba(0, 0, 0, 0.75);
  vertical-align: -0.04em;
  animation: hook-caret-blink 0.8s step-end infinite;
}

.hook-copy {
  width: min(760px, 90vw);
  max-height: min(62vh, 640px);
  min-height: min(34vh, 320px);
  overflow-y: auto;
  padding-right: 12px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  color: rgba(0, 0, 0, 0.9);
}

.hook-copy::-webkit-scrollbar {
  width: 8px;
}

.hook-copy::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
}

.hook-line {
  margin: 0 0 1.15em;
  color: rgba(0, 0, 0, 0.9);
  font-size: clamp(20px, 2.9vw, 28px);
  line-height: 1.45;
  letter-spacing: 0.01em;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(8px);
  transition: opacity 1.2s ease, filter 1.2s ease, transform 1.2s ease;
}

.hook-line.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.sanitized-tag {
  position: relative;
  display: inline;
  overflow: hidden;
  line-height: inherit;
  vertical-align: baseline;
  white-space: nowrap;
  color: #5f1111;
  font-weight: 600;
  letter-spacing: 0.015em;
  text-shadow: 0 0 8px rgba(95, 17, 17, 0.2);
}

.sanitized-tag::after {
  content: "";
  position: absolute;
  top: 0.08em;
  bottom: 0.08em;
  left: -130%;
  width: 160%;
  background: linear-gradient(
    90deg,
    rgba(28, 0, 0, 0) 0%,
    rgba(52, 6, 6, 0.35) 30%,
    rgba(15, 0, 0, 0.55) 50%,
    rgba(52, 6, 6, 0.35) 70%,
    rgba(28, 0, 0, 0) 100%
  );
  opacity: 0;
  pointer-events: none;
  animation: sanitized-redaction-sweep 5.8s ease-in-out infinite;
}

@keyframes sanitized-redaction-sweep {
  0%,
  70%,
  100% {
    transform: translateX(0);
    opacity: 0;
  }
  74% {
    opacity: 0.55;
  }
  90% {
    transform: translateX(170%);
    opacity: 0.55;
  }
  94% {
    opacity: 0;
  }
}

.hook-continue {
  border: 1px solid rgba(0, 0, 0, 0.36);
  background: rgba(255, 255, 255, 0.55);
  color: #111;
  font-family: "Cinzel Decorative", serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.4s ease;
}

.hook-continue.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hook-continue:disabled {
  pointer-events: none;
}

.hook-continue:not(:disabled):hover {
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.18);
}

@keyframes hook-caret-blink {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

@keyframes hook-static-wash {
  0% {
    background-position: 0 0, 0 0;
  }
  33% {
    background-position: 0 10px, 8px 0;
  }
  66% {
    background-position: 0 22px, -4px 0;
  }
  100% {
    background-position: 0 32px, 12px 0;
  }
}

.subscribe-card {
  position: relative;
  z-index: 2;
  width: min(520px, 90vw);
  padding: 40px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  text-align: center;
  color: #111;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.9s ease, filter 0.9s ease, transform 0.9s ease;
}

.subscribe-overlay.show-card .subscribe-card {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  pointer-events: auto;
}

.subscribe-card h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 4vw, 32px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.subscribe-card p {
  margin: 0 0 24px;
  font-family: "Times New Roman", serif;
  font-size: 16px;
}

.subscribe-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.subscribe-row input {
  flex: 1 1 220px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  font-size: 15px;
}

.subscribe-submit {
  border: 1px solid rgba(0, 0, 0, 0.4);
  background: #111;
  color: #f7f7f4;
  padding: 12px 18px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.subscribe-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.subscribe-status {
  margin-top: 14px;
  min-height: 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #333;
}

.subscribe-consent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #333;
}

.subscribe-consent input {
  width: 16px;
  height: 16px;
}

.subscribe-status.is-error {
  color: #8f1d1d;
}

.subscribe-status.is-success {
  color: #0f5d3a;
}

.subscribe-back {
  margin-top: 18px;
  border: none;
  background: transparent;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

@media (max-width: 600px) {
  .title {
    bottom: 10vh;
    letter-spacing: 0.3em;
  }

  .ui {
    bottom: 2vh;
  }

  .hook-stage {
    padding: 20px 18px 24px;
  }

  .hook-copy {
    width: 100%;
    max-height: 58vh;
    min-height: 42vh;
    padding-right: 8px;
  }

  .hook-kicker {
    letter-spacing: 0.16em;
  }

  .hook-line {
    font-size: clamp(19px, 5.8vw, 24px);
    line-height: 1.38;
  }
}
