:root {
  --cream: #fdf0dc;
  --shadow-deep: #3a1257;
  --shadow-mid: #5b1f7a;
  --night: #1b0a33;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background: var(--night);
  color: var(--cream);
  font-family: "Montserrat", system-ui, sans-serif;
  overflow: hidden;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(1rem, 2.5vw, 2rem) clamp(1.25rem, 3vw, 2.75rem);
}

.logo {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(58, 18, 87, 0.5);
}

.nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  padding-bottom: 0.4rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

/* ---------- Hero / parallax ---------- */

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.layer {
  position: absolute;
  inset: -4%;
  will-change: transform;
  pointer-events: none;
}

.layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  user-select: none;
}

.layer-bg { z-index: 1; }
.layer-mid { z-index: 2; }
.layer-fg { z-index: 4; }

.vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(27, 10, 51, 0.45) 100%);
}

/* ---------- Title + button ---------- */

.hero-content {
  position: absolute;
  z-index: 3;
  left: clamp(1.5rem, 3.5vw, 3.5rem);
  top: 18%;
  will-change: transform;
}

.title {
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-weight: 400;
  font-size: clamp(5rem, 17vw, 15rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--cream);
  transform: skewX(-12deg);
  transform-origin: left bottom;
  text-shadow:
    1px 1px 0 var(--shadow-mid),
    2px 2px 0 var(--shadow-mid),
    3px 3px 0 var(--shadow-mid),
    4px 4px 0 var(--shadow-mid),
    5px 5px 0 var(--shadow-deep),
    6px 6px 0 var(--shadow-deep),
    7px 7px 0 var(--shadow-deep),
    8px 8px 0 var(--shadow-deep),
    9px 9px 0 var(--shadow-deep),
    10px 10px 0 var(--shadow-deep),
    12px 16px 30px rgba(27, 10, 51, 0.55);
}

.btn-explore {
  margin-top: clamp(1.5rem, 4vw, 3.5rem);
  padding: 1rem 2.5rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(58, 18, 87, 0.15);
  border: 2px solid var(--cream);
  cursor: pointer;
  backdrop-filter: blur(2px);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn-explore:hover,
.btn-explore:focus-visible {
  background: var(--cream);
  color: var(--shadow-deep);
  box-shadow: 0 0 24px rgba(255, 120, 200, 0.6);
  outline: none;
}

/* ---------- Intro animation ---------- */

.layer img,
.hero-content {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.is-loaded .layer img,
.is-loaded .hero-content {
  opacity: 1;
}

.is-loaded .layer-mid img { transition-delay: 0.2s; }
.is-loaded .hero-content { transition-delay: 0.5s; }
.is-loaded .layer-fg img { transition-delay: 0.35s; }

/* ---------- Small screens ---------- */

@media (max-aspect-ratio: 1/1) {
  .layer img {
    object-position: 70% bottom;
  }

  .hero-content {
    top: 14%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .layer img,
  .hero-content {
    transition: none;
  }
}
