/* ==========================================================================
   HUSMAT — CINEMATIC COMING SOON EXPERIENCE
   Exact Wave from Reference Artwork (Alive & Moving)
   
   The 3 Core Elements:
     1. Official 3D Gold "H" Logo
     2. "COMING SOON" Typography & Diamond Divider
     3. The Exact Beige Wave (Moving & Breathing with Gold Rim)
   ========================================================================== */

:root {
  --bg-primary: #F8F4EC;
  --bg-soft-ivory: #FDFBF7;
  --color-champagne-gold: #D5AF70;
  --color-metallic-bronze: #9A641F;
  --color-deep-gold: #684218;
  --color-cashmere-beige: #E4D7C5;

  --font-serif: 'Cinzel', 'Cormorant Garamond', 'Bodoni MT', Didot, serif;
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  overflow: hidden; /* No scrollbars on desktop or mobile */
  background-color: var(--bg-primary);
  color: var(--color-deep-gold);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
}

body {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   Ambient Warm Ivory Silk Backdrop Base
   ========================================================================== */
.silk-background-base {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 35%,
    #FFFDF9 0%,
    var(--bg-primary) 55%,
    #F3ECE0 100%
  );
}

.silk-soft-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 45%,
    transparent 45%,
    rgba(215, 195, 178, 0.22) 100%
  );
  mix-blend-mode: multiply;
}

.ambient-center-glow {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(650px, 85vw);
  height: min(650px, 85vw);
  background: radial-gradient(
    circle,
    rgba(250, 235, 205, 0.28) 0%,
    rgba(245, 230, 210, 0.08) 45%,
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
}

/* ==========================================================================
   Moving Wave Canvas Viewport (The Exact Wave, Moving & Breathing)
   ========================================================================== */
.wave-canvas-viewport {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

#waveCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   Main Cinematic Stage (Centerpiece)
   ========================================================================== */
.cinematic-stage {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem;
  perspective: 1200px;
}

.centerpiece-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 820px;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ==========================================================================
   1. The Official 3D Metallic Gold "H" Logo
   ========================================================================== */
.logo-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: clamp(1.8rem, 3.8vh, 2.6rem);
  transform-style: preserve-3d;
}

.logo-3d-plane {
  position: relative;
  display: inline-block;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-luxury);
}

.h-logo-img {
  width: clamp(210px, 32vw, 330px);
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  /* Realistic physical studio drop shadow onto silk backdrop */
  filter: drop-shadow(0 22px 28px rgba(104, 66, 24, 0.18))
          drop-shadow(0 8px 12px rgba(154, 100, 31, 0.12))
          drop-shadow(0 2px 4px rgba(104, 66, 24, 0.08));
  transition: filter var(--ease-luxury) 0.4s, transform var(--ease-luxury) 0.4s;
}

.logo-container:hover .h-logo-img {
  filter: drop-shadow(0 28px 36px rgba(104, 66, 24, 0.24))
          drop-shadow(0 12px 18px rgba(154, 100, 31, 0.16))
          drop-shadow(0 3px 6px rgba(104, 66, 24, 0.10));
}

/* Subtle Specular Sheen Animation across the metallic gold */
.logo-sheen-sweep {
  position: absolute;
  top: -20%;
  left: -70%;
  width: 50%;
  height: 140%;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 30%,
    rgba(255, 253, 247, 0.45) 50%,
    rgba(255, 255, 255, 0.05) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0;
  animation: goldLightSheen 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes goldLightSheen {
  0% {
    left: -70%;
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  32% {
    left: 140%;
    opacity: 0;
  }
  100% {
    left: 140%;
    opacity: 0;
  }
}

/* ==========================================================================
   2. Typography: COMING SOON
   ========================================================================== */
.title-wrap {
  margin-bottom: 0.6rem;
}

.coming-soon-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 4.3vw, 2.9rem);
  font-weight: 500;
  letter-spacing: 0.44em;
  text-indent: 0.44em;
  text-transform: uppercase;
  color: var(--color-deep-gold);
  background: linear-gradient(
    180deg,
    #533211 0%,
    #734919 45%,
    var(--color-metallic-bronze) 60%,
    #533211 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(104, 66, 24, 0.12));
}

/* ==========================================================================
   3. Delicate Gold Divider with Diamond Accent
   ========================================================================== */
.divider-wrap {
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.4rem auto 0 auto;
}

.gold-divider-svg {
  width: 100%;
  height: auto;
  max-height: 32px;
  overflow: visible;
  filter: drop-shadow(0 1px 3px rgba(104, 66, 24, 0.1));
}

/* ==========================================================================
   Responsive Architecture & Mobile Optimization
   ========================================================================== */
@media (max-width: 768px) {
  .logo-container {
    margin-bottom: 1.6rem;
  }

  .h-logo-img {
    width: clamp(180px, 48vw, 250px);
  }

  .coming-soon-heading {
    letter-spacing: 0.38em;
    text-indent: 0.38em;
  }

  .divider-wrap {
    max-width: 340px;
  }
}

@media (max-width: 420px) {
  .logo-container {
    margin-bottom: 1.2rem;
  }

  .h-logo-img {
    width: clamp(160px, 52vw, 210px);
  }

  .coming-soon-heading {
    letter-spacing: 0.34em;
    text-indent: 0.34em;
  }

  .divider-wrap {
    max-width: 280px;
  }
}

/* ==========================================================================
   Accessibility: Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .logo-sheen-sweep {
    animation: none;
    display: none;
  }

  .centerpiece-card {
    transition: none;
  }
}
