@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Manrope:wght@300;400;500;600&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #06090d;
  color: #f1f5f9;
  font-family: 'Manrope', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1.5rem;
  background: #1e293b;
  color: #f8fafc;
  padding: 0.5rem 1rem;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

/* Fixed Reading Header */
.reading-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  z-index: 30;
  pointer-events: auto;
}

.reading-header a {
  color: rgba(241, 245, 249, 0.4);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.reading-header a:hover {
  color: #f1f5f9;
}

/* Fullscreen Stage Container */
.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Base Screen State */
.screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s ease;
  padding: 2.5rem;
}

/* Active Screen Presentation */
.screen.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

/* Submerged Atmospheric Backdrop for Interior Screens */
.screen:not(.opening) {
  background-color: #06090d;
  background-image: 
    radial-gradient(circle at 50% 45%, rgba(9, 14, 20, 0.82) 0%, rgba(6, 9, 13, 0.97) 100%),
    url('images/chebar-dawn.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Opening Video Screen */
.screen.opening {
  background: #000;
}

.opening-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none; /* Prevents video from intercepting button clicks */
  filter: brightness(0.85);
}

.opening-brand,
.opening-enter {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.opening-brand {
  text-align: center;
  margin-bottom: 2.5rem;
}

.wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 300;
  margin: 0;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 25px rgba(0, 0, 0, 0.6);
}

.wordmark-sub {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.5rem;
}

/* Enter Button */
.enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(6, 9, 13, 0.45);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 40px;
  color: #f1f5f9;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
}

.enter-btn:hover {
  background: rgba(6, 9, 13, 0.85);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

/* Video Controls Button */
.video-control {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  cursor: pointer;
  z-index: 20;
  pointer-events: auto;
  transition: all 0.2s ease;
}

.video-control:hover {
  border-color: #ffffff;
  color: #ffffff;
}

/* Typography & Content Block */
.content {
  max-width: 660px;
  width: 100%;
  text-align: left;
  position: relative;
  z-index: 10;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 1.25rem 0;
}

.scene-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  line-height: 1.18;
  color: #f8fafc;
  margin: 0 0 1.75rem 0;
}

.scene-title em {
  font-style: italic;
  font-weight: 300;
  color: #e2e8f0;
}

.scene-copy p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #94a3b8;
  margin: 0 0 1.25rem 0;
}

.verse {
  border-left: 1px solid #334155;
  padding: 0.4rem 0 0.4rem 1.5rem;
  margin: 1.75rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  line-height: 1.6;
  color: #cbd5e1;
  font-style: normal;
}

.verse cite {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 0.75rem;
  font-style: normal;
}

/* Text Advance Links */
.text-link:not(.enter-btn) {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  color: #f1f5f9;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #475569;
  padding-bottom: 4px;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
}

.text-link:not(.enter-btn):hover {
  border-color: #f1f5f9;
  color: #ffffff;
  transform: translateX(3px);
}

/* Footer & Secondary Links */
.end-links {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #1e293b;
}

.end-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.end-links a:hover {
  color: #94a3b8;
}