/* =========================================================
   THE WED MANSION — Luxury Cinematic Editorial Stylesheet
   ========================================================= */

:root {
  --color-bg: #000000;
  --color-text-primary: #FFFFFF;
  --color-text-muted: rgba(255, 255, 255, 0.7);
  --color-text-dim: rgba(255, 255, 255, 0.45);
  
  --font-serif: 'Italiana', 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden; /* Direct single-viewport experience */
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  user-select: none;
  touch-action: none;
}

/* Cinematic App Viewport */
.cinematic-app {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--color-bg);
}

/* Typography Defaults */
h1, h2, h3, h4, p, span, a {
  color: var(--color-text-primary);
  text-decoration: none;
}

/* Monogram Logo Images */
.header-twm-logo {
  height: clamp(38px, 5.5vh, 56px);
  width: auto;
  display: block;
}

/* =========================================================
   SECTION 01: CINEMATIC HANDS & TYPOGRAPHY
   ========================================================= */

#section-cinema {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
  will-change: opacity, transform;
  pointer-events: none;
}

/* S1 Top Center Logo */
.s1-header-center {
  position: absolute;
  top: clamp(1.8rem, 3.5vh, 2.8rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}

/* High-DPI Canvas */
.canvas-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background: var(--color-bg);
}

#hero-canvas {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  object-fit: contain;
  display: block;
}

/* Typography Layer */
.hero-typography-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  pointer-events: none;
}

.text-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 1200px;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform;
  transition: opacity 0.35s var(--ease-smooth), transform 0.35s var(--ease-smooth);
}

/* Text Stage for Bottom Phase (Wedding Photography) */
.text-stage.stage-bottom {
  top: auto;
  bottom: clamp(2.5rem, 8vh, 6rem);
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
}

.stage-word {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 300;
  letter-spacing: clamp(0.28em, 0.45vw, 0.42em);
  text-transform: uppercase;
  color: var(--color-text-primary);
  line-height: 1.1;
  margin-left: clamp(0.28em, 0.45vw, 0.42em);
}

.stage-phrase {
  font-family: var(--font-sans);
  font-size: clamp(0.75rem, 1.5vw, 1.25rem);
  font-weight: 300;
  letter-spacing: clamp(0.22em, 0.35vw, 0.35em);
  text-transform: uppercase;
  color: var(--color-text-primary);
  line-height: 1.3;
  margin-left: clamp(0.22em, 0.35vw, 0.35em);
  white-space: nowrap;
}

/* Scroll Cue */
.scroll-cue {
  position: absolute;
  bottom: clamp(1.5rem, 3vh, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

.scroll-cue.hidden {
  opacity: 0;
}

.scroll-cue-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
  animation: scrollPulse 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scrollPulse {
  0% { transform: translateY(-8px); opacity: 0; }
  50% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* =========================================================
   SECTION 02: LAUNCHING SOON WITH LARGE TWM MONOGRAM
   ========================================================= */

#section-launching {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: clamp(2.5rem, 5vh, 4rem) clamp(2rem, 5vw, 4.5rem);
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.launching-center-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto 0;
}

.launching-twm-monogram-img {
  width: clamp(200px, 28vw, 360px);
  height: auto;
  display: block;
  margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6));
}

.launching-title {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 4.2vw, 3.4rem);
  font-weight: 300;
  letter-spacing: clamp(0.24em, 0.38vw, 0.38em);
  text-transform: uppercase;
  color: var(--color-text-primary);
  line-height: 1.2;
  margin-left: clamp(0.24em, 0.38vw, 0.38em);
}

.launching-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2.2vw, 1.7rem);
  font-weight: 300;
  letter-spacing: clamp(0.22em, 0.32vw, 0.32em);
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 1.3;
  margin-top: clamp(0.8rem, 1.8vh, 1.5rem);
  margin-left: clamp(0.22em, 0.32vw, 0.32em);
}

.launching-bottom-locations {
  text-align: center;
  width: 100%;
  padding-bottom: clamp(0.5rem, 1.5vh, 1.2rem);
}

.locations-list {
  font-family: var(--font-sans);
  font-size: clamp(0.68rem, 1vw, 0.88rem);
  font-weight: 300;
  letter-spacing: clamp(0.24em, 0.34vw, 0.34em);
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-left: clamp(0.24em, 0.34vw, 0.34em);
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */

@media (max-width: 768px) {
  #hero-canvas {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    object-fit: contain; /* Full fit without cropping left or right edges */
  }

  /* Center words THE, WED, MANSION in upper space above the hands */
  .text-stage:not(.stage-bottom) {
    top: 28%;
  }

  .s1-header-center {
    top: clamp(1.5rem, 3vh, 2.2rem);
  }

  .header-twm-logo {
    height: clamp(26px, 3.5vh, 34px);
  }

  #section-launching {
    padding: clamp(2rem, 4vh, 3rem) 1.2rem;
  }

  .launching-twm-monogram-img {
    width: clamp(170px, 46vw, 250px);
    margin-bottom: clamp(1.2rem, 2.5vh, 1.8rem);
  }

  /* Single line Launching Soon on mobile */
  .launching-title {
    font-size: clamp(1.15rem, 5.2vw, 1.75rem);
    letter-spacing: clamp(0.18em, 0.28vw, 0.28em);
    margin-left: clamp(0.18em, 0.28vw, 0.28em);
    white-space: nowrap;
  }

  /* Reduced Stay Tuned size on mobile */
  .launching-subtitle {
    font-size: clamp(0.68rem, 2.6vw, 0.85rem);
    letter-spacing: clamp(0.18em, 0.25vw, 0.25em);
    margin-top: clamp(0.5rem, 1vh, 0.75rem);
    margin-left: clamp(0.18em, 0.25vw, 0.25em);
  }

  .stage-word {
    font-size: clamp(1.8rem, 7.5vw, 2.8rem);
    letter-spacing: clamp(0.24em, 0.35vw, 0.35em);
    margin-left: clamp(0.24em, 0.35vw, 0.35em);
  }

  .stage-phrase {
    font-size: clamp(0.62rem, 2.6vw, 0.85rem);
    letter-spacing: clamp(0.16em, 0.24vw, 0.24em);
    margin-left: clamp(0.16em, 0.24vw, 0.24em);
    white-space: nowrap;
  }

  .text-stage.stage-bottom {
    bottom: clamp(2.5rem, 8vh, 4rem);
  }

  .locations-list {
    font-size: clamp(0.58rem, 2.2vw, 0.75rem);
    letter-spacing: clamp(0.16em, 0.24vw, 0.24em);
  }
}
