:root {
  --burgundy: #380B16;
  --burgundy-mid: #470E1C;
  --burgundy-dark: #25070F;
  --champagne-ivory: #E8D7C8;
  --warm-rose-gold: #D6A99C;
  --champagne-white: #F7EFE7;

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--burgundy);
  color: var(--champagne-ivory);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: radial-gradient(
    ellipse 84% 78% at 52% 48%,
    var(--burgundy-mid) 0%,
    var(--burgundy) 52%,
    var(--burgundy-dark) 100%
  );
  cursor: default;
}

.stage.is-interactive {
  cursor: pointer;
}

/* Soft horizontal atmospheric floor illumination beneath the sculpture */
.floor-illumination {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 34% 4.5% at 54% 75%,
      rgba(247, 239, 231, 0.2) 0%,
      rgba(232, 215, 200, 0.1) 42%,
      transparent 100%
    ),
    radial-gradient(
      ellipse 56% 9% at 53% 76%,
      rgba(214, 169, 156, 0.11) 0%,
      rgba(56, 11, 22, 0.04) 60%,
      transparent 100%
    );
}

/* Upper-middle wide horizontal band (wireframe) */
.editorial-backdrop {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(76px, 14vh, 148px);
  pointer-events: none;
  overflow: hidden;
}

.backdrop-wordmark {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(4.2rem, 16.4vw, 15.8rem);
  line-height: 0.9;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(
    180deg,
    rgba(232, 215, 200, 0.68) 0%,
    rgba(232, 215, 200, 0.44) 68%,
    rgba(214, 169, 156, 0.3) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 10px 38px rgba(18, 2, 6, 0.35);
}

#living-mark-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 3;
  touch-action: none;
}

.webgl-fallback {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.webgl-fallback[hidden] {
  display: none;
}

.fallback-mark {
  width: min(52vw, 310px);
  height: auto;
  opacity: 0.92;
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(
    circle at 52% 48%,
    transparent 42%,
    rgba(22, 3, 8, 0.3) 78%,
    rgba(14, 2, 5, 0.58) 100%
  );
}

.ui-overlay {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3.8vh, 44px) clamp(24px, 4.5vw, 60px);
  pointer-events: none;
}

/* TOP REGION */
.top-bar {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.brand-signature {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: block;
  height: clamp(36px, 5vh, 52px);
  width: auto;
  object-fit: contain;
  opacity: 0.94;
  filter: drop-shadow(0 4px 16px rgba(14, 2, 5, 0.5));
}

.studio-label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(0.6rem, 0.74vw, 0.72rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--champagne-ivory);
  opacity: 0.78;
  padding-top: 6px;
}

/* LOWER-LEFT TYPOGRAPHIC LOCKUP & BOTTOM BAR */
.bottom-region {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 2.5vh, 26px);
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(6px, 0.9vh, 10px);
}

.brand-eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(0.66rem, 0.85vw, 0.8rem);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--champagne-ivory);
  opacity: 0.88;
}

.coming-soon-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 2.95vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--champagne-ivory);
  text-shadow: 0 3px 22px rgba(16, 2, 5, 0.72);
}

.meta-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: clamp(10px, 1.4vh, 14px);
  border-top: 1px solid rgba(232, 215, 200, 0.16);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(0.62rem, 0.74vw, 0.72rem);
  letter-spacing: 0.2em;
  color: var(--warm-rose-gold);
}

.meta-link {
  pointer-events: auto;
  color: var(--champagne-ivory);
  text-decoration: none;
  opacity: 0.86;
  transition: opacity 0.3s ease, color 0.3s ease;
  text-transform: lowercase;
}

.meta-link:hover,
.meta-link:focus-visible {
  opacity: 1;
  color: var(--champagne-white);
  outline: none;
}

.meta-location {
  text-transform: uppercase;
  opacity: 0.8;
}

.intro-el,
.intro-backdrop {
  opacity: 0;
}

/* Tablet */
@media (max-width: 900px) {
  .editorial-backdrop {
    padding-top: 15vh;
  }

  .backdrop-wordmark {
    font-size: clamp(3.8rem, 15.5vw, 8.5rem);
    letter-spacing: 0.06em;
  }
}

/* Mobile Portrait */
@media (max-width: 580px) {
  .ui-overlay {
    padding: 18px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .brand-logo {
    height: 34px;
  }

  .studio-label {
    font-size: 0.56rem;
    letter-spacing: 0.2em;
  }

  .editorial-backdrop {
    padding-top: 15vh;
  }

  .backdrop-wordmark {
    font-size: 16.5vw;
    letter-spacing: 0.045em;
  }

  .floor-illumination {
    background: radial-gradient(
      ellipse 64% 5% at 50% 68%,
      rgba(247, 239, 231, 0.18) 0%,
      rgba(232, 215, 200, 0.08) 45%,
      transparent 100%
    );
  }

  .brand-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.28em;
  }

  .coming-soon-title {
    font-size: 1.52rem;
    letter-spacing: 0.12em;
  }

  .meta-bar {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-el,
  .intro-backdrop {
    opacity: 1;
  }
}
