:root {
  --bg-color: #08080a;
  --gold-accent: #d8b26a;
  --gold-dim: rgba(216, 178, 106, 0.3);
  --text-cream: #ece6d9;
  --text-dim: rgba(236, 230, 217, 0.6);
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-cream);
  font-family: var(--font-sans);
  overflow-x: clip;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-accent) var(--bg-color);
}

/* Scrollbar styles for webkit */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-accent);
}

/* Global Effects */
.global-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

@keyframes grain-animation {
  0%, 100% { transform:translate(0, 0); }
  10% { transform:translate(-2%, -2%); }
  20% { transform:translate(-4%, 2%); }
  30% { transform:translate(2%, -4%); }
  40% { transform:translate(-2%, 6%); }
  50% { transform:translate(-4%, 2%); }
  60% { transform:translate(6%, 0); }
  70% { transform:translate(0, 4%); }
  80% { transform:translate(1%, 8%); }
  90% { transform:translate(-4%, 4%); }
}

.grain-overlay {
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  animation: grain-animation 8s steps(10) infinite;
}

/* INTRO SECTION */
.intro-section {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background-color: var(--bg-color);
  padding: 24px;
  z-index: 10;
}

.intro-content {
  max-width: 600px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 1;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 3.5rem;
  line-height: 1.1;
  color: var(--text-cream);
}

.subtitle {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-dim);
}

/* Scroll Cue */
.scroll-cue {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.scroll-cue:hover {
  opacity: 1;
}

.cue-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-accent);
}

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

.cue-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-accent), transparent);
  position: relative;
  animation: bounce 2s infinite ease-in-out;
}

/* ZOOM SECTION */
.zoom-section {
  width: 100%;
  height: 900vh; /* Extremely tall to give lots of scrolling resolution */
  position: relative;
  background-color: var(--bg-color);
}

.zoom-sticky-stage {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-color);
}

#zoomVideo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.vignette-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(8, 8, 10, 0) 30%, rgba(8, 8, 10, 0.7) 70%, rgba(8, 8, 10, 0.95) 100%);
  pointer-events: none;
  z-index: 2;
}

/* CAPTIONS */
.caption-container {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 90%;
  max-width: 600px;
  text-align: center;
  pointer-events: none;
}

.caption-text {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 300;
  color: var(--text-cream);
  text-shadow: 0 4px 20px rgba(8, 8, 10, 0.9);
  transition: opacity 0.25s cubic-bezier(0.25, 1, 0.5, 1), transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), filter 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translate(0, 0);
  opacity: 1;
  filter: blur(0);
}

.caption-text.fading {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(4px);
}

/* SCALE HUD */
.hud-container {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8, 8, 10, 0.85);
  border: 1px solid rgba(216, 178, 106, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 24px;
  border-radius: 4px;
  width: 290px;
  font-family: var(--font-mono);
  color: var(--gold-accent);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none; /* Let user scroll through the HUD if needed */
}

.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.hud-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  font-weight: 700;
}

.hud-magnitude {
  font-size: 0.8rem;
  color: var(--gold-accent);
  opacity: 0.8;
}

.hud-magnitude sup {
  font-size: 0.6rem;
}

.hud-value {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text-cream);
  letter-spacing: -0.02em;
  margin: 4px 0;
}

/* HUD Ruler */
.hud-ruler {
  position: relative;
  width: 100%;
  height: 18px;
  margin-top: 6px;
}

.ruler-line {
  position: absolute;
  top: 9px;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(216, 178, 106, 0.25);
}

.ruler-ticks {
  position: absolute;
  top: 5px;
  left: 0;
  width: 100%;
  height: 9px;
  display: flex;
  justify-content: space-between;
}

.tick {
  width: 1px;
  height: 5px;
  background: rgba(216, 178, 106, 0.3);
}

.tick:first-child, .tick:last-child {
  height: 9px;
  background: rgba(216, 178, 106, 0.75);
}

.ruler-marker {
  position: absolute;
  top: 2px;
  left: 0%;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--gold-accent);
  transform: translateX(-50%);
  will-change: left;
}

/* OUTRO SECTION */
.outro-section {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background-color: var(--bg-color);
  padding: 24px;
  z-index: 10;
}

.outro-content {
  max-width: 600px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.outro-content .title {
  font-size: 3rem;
  line-height: 1.2;
}

.outro-content .subtitle {
  margin-bottom: 12px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--gold-accent);
  color: var(--bg-color);
  box-shadow: 0 4px 20px rgba(216, 178, 106, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: #e3c180;
  box-shadow: 0 8px 30px rgba(216, 178, 106, 0.45);
}

.btn-secondary {
  border: 1px solid rgba(236, 230, 217, 0.25);
  color: var(--text-cream);
  background-color: transparent;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--gold-accent);
  color: var(--gold-accent);
  box-shadow: 0 4px 20px rgba(216, 178, 106, 0.1);
}

.sign-off {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold-accent);
  margin-top: 40px;
  opacity: 0.95;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .title {
    font-size: 2.5rem;
  }
  
  .outro-content .title {
    font-size: 2.25rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .caption-text {
    font-size: 1.75rem;
  }
  
  .hud-container {
    width: 250px;
    bottom: 20px;
    padding: 10px 16px;
    gap: 4px;
  }
  
  .hud-value {
    font-size: 1.35rem;
    margin: 2px 0;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    gap: 12px;
  }
  
  .btn {
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 2.25rem;
  }
  
  .outro-content .title {
    font-size: 2rem;
  }
  
  .caption-text {
    font-size: 1.5rem;
  }
}
