:root {
  --black: #050505;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--black);
  color: #fff;
}

body {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  overflow: hidden;
}

.fade-black {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #000;
  opacity: 1;
  pointer-events: none;
  transition: opacity 620ms ease;
}

body.ready .fade-black {
  opacity: 0;
}

.scene10 {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding-bottom: calc(142px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at 24% 32%, rgba(240, 196, 109, 0.08), transparent 42%),
    radial-gradient(circle at 76% 66%, rgba(204, 210, 220, 0.08), transparent 44%),
    var(--black);
}

.scene-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1.02);
  z-index: 3;
  margin: 0;
  padding: 0 16px;
  width: 100%;
  text-align: center;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(2rem, 8vw, 6rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 236, 214, 0.96);
  text-shadow:
    0 0 14px rgba(255, 255, 255, 0.2),
    0 0 32px rgba(244, 201, 118, 0.16);
  opacity: 0;
  filter: blur(10px);
}

body.ready .scene-title {
  animation: cinematicFadeIn 1.65s ease-out forwards;
}

body.show-hero .scene-title {
  animation: titleExit 640ms ease forwards;
  pointer-events: none;
}

.scene-hero {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1.03);
  z-index: 3;
  width: min(86vw, 1080px);
  height: min(74vh, 700px);
  border-radius: 14px;
  overflow: hidden;
  opacity: 0;
  filter: blur(8px);
}

body.show-hero .scene-hero {
  animation: heroReveal 1.5s ease-out forwards;
}

.cue-next {
  position: absolute;
  left: 50%;
  bottom: calc(164px + env(safe-area-inset-bottom, 0px));
  z-index: 16;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(243, 243, 236, 0.9);
  font-size: 0.73rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 520ms ease;
  pointer-events: none;
}

.cue-next.is-visible {
  opacity: 0.86;
  animation: cuePulse 2.6s ease-in-out infinite;
}

body.is-glass-visible .cue-next {
  opacity: 0;
  animation: none;
}

.scene-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #070707;
}

.glass-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 30px);
  opacity: 0;
  pointer-events: none;
  filter: blur(4px);
}

.glass-overlay.is-visible {
  pointer-events: auto;
  animation: glassReveal 900ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.glass-content {
  width: min(100%, 600px);
  padding: clamp(18px, 3vw, 30px);
  max-height: min(68vh, calc(100vh - 240px));
  overflow-y: auto;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(248, 240, 221, 0.98);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.glass-content::-webkit-scrollbar {
  width: 8px;
}

.glass-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.26);
  border-radius: 999px;
}

.glass-content h2 {
  margin: 0 0 12px;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.05rem, 2.4vw, 1.58rem);
  letter-spacing: 0.04em;
  color: rgba(250, 236, 198, 0.98);
}

.glass-content h3 {
  margin: 6px 0 12px;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.98rem, 2.1vw, 1.32rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(236, 231, 219, 0.94);
}

.glass-content p {
  margin: 0;
  font-size: clamp(0.92rem, 1.55vw, 1.05rem);
  line-height: 1.64;
  color: rgba(246, 240, 224, 0.94);
  text-wrap: pretty;
}

.scene-next-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(245, 224, 171, 0.42);
  background: rgba(0, 0, 0, 0.48);
  color: rgba(248, 236, 205, 0.98);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.66rem;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.scene-next-button:hover {
  border-color: rgba(245, 224, 171, 0.72);
  background: rgba(0, 0, 0, 0.66);
  transform: translateY(-1px);
}

.scene-next-button:focus-visible {
  outline: 2px solid rgba(255, 234, 184, 0.94);
  outline-offset: 2px;
}

.vignette,
.grain,
.breath {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vignette {
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.84) 100%);
}

.grain {
  inset: -45%;
  opacity: 0.16;
  background-image: radial-gradient(rgba(255, 255, 255, 0.95) 0.45px, transparent 0.45px);
  background-size: 4px 4px;
  animation: grainMove 1.2s steps(2, end) infinite;
}

.breath {
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.055), transparent 56%);
  opacity: 0.28;
  animation: breathe 7.5s ease-in-out infinite;
}

@keyframes grainMove {
  0% { transform: translate(0, 0); }
  25% { transform: translate(11%, -9%); }
  50% { transform: translate(-10%, 10%); }
  75% { transform: translate(8%, 6%); }
  100% { transform: translate(0, 0); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.22; }
  50% { opacity: 0.34; }
}

@keyframes cuePulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes cinematicFadeIn {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(1.02);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes titleExit {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 14px)) scale(0.98);
    filter: blur(8px);
  }
}

@keyframes heroReveal {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.03);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
}

@keyframes glassReveal {
  0% {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }

  .fade-black {
    display: none;
  }

  .scene-title {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .scene-hero {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .glass-overlay {
    opacity: 1;
    pointer-events: auto;
    filter: none;
  }

  .glass-overlay.is-visible {
    animation: none;
  }

  .cue-next {
    display: none;
  }
}

@media (max-width: 700px) {
  .scene-hero {
    width: 96vw;
    height: 58vh;
    top: 46%;
  }

  .glass-content {
    max-height: min(50vh, calc(100vh - 230px));
    padding: 16px 14px;
  }

  .cue-next {
    top: max(14px, env(safe-area-inset-top, 0px));
    bottom: auto;
    font-size: 0.62rem;
    padding: 6px 12px;
  }
}


