/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #0a0a0f;
  --color-text: #e8e6e1;
  --color-text-muted: rgba(232, 230, 225, 0.5);
  --color-number: rgba(232, 230, 225, 0.25);
  --color-overlay: rgba(10, 10, 15, 0.35);
  --font-display: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --font-body: 'Cormorant Garamond', 'Georgia', serif;
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
}

html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== Video Layer ===== */
.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  pointer-events: none;
}

/* ===== Scroll Container ===== */
.scroll-container {
  position: relative;
  height: 500vh;
  pointer-events: none;
}

/* ===== Content Blocks ===== */
.content-block {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 2;
}

.content-block.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.block-inner {
  text-align: center;
  max-width: 720px;
  padding: 0 32px;
  will-change: opacity, transform;
}

.block-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  font-weight: 300;
  letter-spacing: 0.35em;
  color: var(--color-number);
  margin-bottom: clamp(24px, 4vh, 48px);
}

.block-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: clamp(16px, 3vh, 32px);
}

.block-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
  position: fixed;
  bottom: clamp(24px, 4vh, 48px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 1;
  transition: opacity 0.8s var(--ease-smooth);
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-indicator span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.scroll-indicator svg {
  color: var(--color-text-muted);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== Loading State ===== */
body.loading .video-container {
  opacity: 0;
}

body.loading .scroll-indicator {
  opacity: 0;
}

.video-container {
  opacity: 1;
  transition: opacity 1.2s var(--ease-smooth);
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .scroll-indicator svg {
    animation: none;
  }
}

/* ===== Tablet ===== */
@media (max-width: 1024px) {
  .block-inner {
    max-width: 600px;
  }
}

/* ===== Mobile ===== */
@media (max-width: 640px) {
  .block-inner {
    padding: 0 24px;
  }

  .block-number {
    margin-bottom: clamp(16px, 3vh, 32px);
  }

  .scroll-indicator {
    bottom: 20px;
  }
}
