:root {
  --gold: #d4af37;
  --maroon: #4a0f22;
  --ivory: #f3eadb;
  --text-light: #f8f5f0;
  --text-dark: #4a0f22;
}

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

body {
  background-color: var(--ivory);
  color: var(--text-dark);
  font-family: "Cormorant Garamond", serif;
  overflow-x: hidden;
}

/* HERO SECTION */
#hero {
  position: relative;
  /* Height controls how long the scroll animation lasts. 
       400vh means it takes 4 screen heights to scrub through all frames. */
  height: 400vh;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#scrub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  z-index: 1;
}

.vignette {
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  /* Feathers the floating world into the ivory background like the reference */
  background:
    radial-gradient(
      ellipse 78% 54% at 50% 42%,
      transparent 56%,
      var(--ivory) 92%
    ),
    linear-gradient(
      to bottom,
      var(--ivory) 0%,
      transparent 12%,
      transparent 80%,
      var(--ivory) 97%
    );
  z-index: 2;
  pointer-events: none;
}

/* DECORATIVE ELEMENTS */
.hero-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-side-left {
  left: 40px;
}
.hero-side-right {
  right: 40px;
}

.hero-side-dev {
  font-family: "Noto Serif Devanagari", serif;
  font-size: 1.5rem;
  color: var(--gold);
}

.hero-side-role {
  font-size: 0.9rem;
  color: var(--gold);
}

.hero-side-rule {
  width: 1px;
  height: 60px;
  background-color: var(--gold);
}

.hero-side em {
  font-family: "Great Vibes", cursive;
  text-transform: none;
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: rgba(58, 34, 48, 0.85);
}

.hero-side small {
  font-size: 0.75rem;
  color: rgba(109, 26, 51, 0.62);
  margin-top: 10px;
}

/* CROWN */
#hero-crown {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: "Cinzel", serif;
  color: var(--maroon);
  letter-spacing: 3px;
}

.crown-mono {
  font-size: 1.2rem;
}
.crown-rule {
  width: 40px;
  height: 1px;
  background-color: var(--gold);
}
.crown-chapter {
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* MAIN CONTENT (Glassmorphism card) */
.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: 0 16px calc(env(safe-area-inset-bottom, 0px) + 20px);
    z-index: 3;
    pointer-events: none; /* Let clicks pass through if needed, though they shouldn't matter here */
}

.hero-copy-glass {
    width: min(100%, 560px);
    padding: 17px 18px 15px;
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(255,255,255,0.78), rgba(255,244,215,0.58) 54%, rgba(244,235,219,0.72));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 38px rgba(74,15,34,0.14), inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -1px 0 rgba(201,162,75,0.18);
    pointer-events: auto;
}

.eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--maroon);
    opacity: 0.95;
    margin-bottom: 5px;
}

.names {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: clamp(29px, 8.4vw, 60px);
    line-height: 1.08;
    margin: 8px 0 5px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.72);
}

.amp {
    font-size: 0.6em;
    vertical-align: 0.18em;
    color: var(--gold);
}

.hero-vow {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(14px, 3.9vw, 19px);
    line-height: 1.4;
    letter-spacing: 0.03em;
    font-style: italic;
    color: rgba(58,34,48,0.86);
    margin: 2px 0 13px;
}

.scroll-hint {
    margin-top: 4px;
    display: grid;
    justify-items: center;
    gap: 6px;
    font-family: 'Cinzel', serif;
    font-size: 10.5px;
    letter-spacing: 0.13em;
    color: var(--maroon);
}

.scroll-icon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
}

.scroll-flower-leaf {
    font-size: 15px;
    line-height: 1;
    display: inline-block;
    animation: leaf-drop 1.6s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(201,162,75,0.4));
}

.chev {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
    animation: chev-drop 1.6s ease-in-out infinite;
    font-style: normal;
    color: transparent; /* Since it's CSS border drawn */
}

@keyframes leaf-drop {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(5px) scale(1.18); opacity: 1; }
}

@keyframes chev-drop {
    0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.5; }
    50% { transform: translateY(7px) rotate(45deg); opacity: 1; }
}

/* DUMMY SECTION FOR SCROLLING */
.dummy-scroll-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--ivory);
  font-family: "Cinzel", serif;
  color: var(--text-dark);
  text-align: center;
}

.dummy-scroll-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.dummy-scroll-section p {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--text-dark);
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .names {
    font-size: 3.5rem;
  }
  .hero-side {
    display: none;
  } /* Hide sides on smaller screens like the original */
}

@media (max-width: 576px) {
  .names {
    font-size: 2.2rem;
    flex-direction: column;
    gap: 5px;
  }
  .amp {
    font-size: 2rem;
  }
  .eyebrow {
    font-size: 1.2rem;
  }
  .hero-vow {
    font-size: 1.2rem;
  }
}
