:root {
  --bg-black: #000000;
  --text-white: #ffffff;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide scrollbars globally across all browsers while preserving Lenis scroll */
html, body {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  overflow-x: hidden;
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
  display: none;
}

/* ── Lenis Smooth Scrolling Base Styles ── */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

html, body {
  width: 100%;
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: var(--font-sans);
  user-select: none;
}

/* Scrollable Sections */
.section {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ── Fullscreen Volumetric Background Canvas ── */
#projection-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* ── Crisp SVG Vector Curves overlay ── */
.vector-lines-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
}

/* ── Photographic Film Grain Overlay ── */
#photographic-noise {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 350 350' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: normal;
}

/* ── UI Layer / Poster Container ── */
.app-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 4rem;
}

/* ── Center Stage: Astroid Glass & Text ── */
.center-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 900px;
  height: 700px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 4;
}

/* ── Section 1 Glass Star ── */
.glass-star-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 480px;
  height: 480px;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}



.hero-word-wrapper {
  position: relative;
  font-size: clamp(7.5rem, 16vw, 14.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.0;
  color: var(--text-white);
  z-index: 4;
  margin-left: 0;
  text-align: center;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.hero-word-wrapper .letter-blurred {
  display: inline-block;
  filter: blur(10px);
  -webkit-filter: blur(10px);
}

.hero-word-wrapper .letter-sharp {
  display: inline-block;
  filter: blur(2.5px);
  -webkit-filter: blur(2.5px);
  opacity: 0.88;
}

/* ── Section 2 Typography ── */
.hero-word-wrapper-two {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.45));
}

.hero-word-wrapper-two .word-line {
  font-size: clamp(6.5rem, 13.2vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: transparent;
  background: linear-gradient(90deg, #903aff 10%, #237aff 55%, #00f5ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ── Poster Header Logo ── */
.poster-header {
  position: fixed;
  top: 3rem;
  left: 4rem;
  z-index: 100;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

/* Quatrefoil Geometric Logo */
.quatrefoil-logo {
  width: 56px;
  height: 56px;
  opacity: 0.95;
}

/* ── Responsive adjustments ── */
@media (max-width: 768px) {
  .app-container {
    padding: 2rem 2rem;
  }
  .poster-header {
    top: 2rem;
    left: 2rem;
  }
  .glass-star-svg {
    width: 320px;
    height: 320px;
  }
  .hero-word-wrapper {
    font-size: 6rem;
    margin-left: -2vw;
  }
  .hero-word-wrapper-two .word-line {
    font-size: 5rem;
  }
}
