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

:root {
  --white: #f5f5f5;
  --black: #0a0a0a;
  --accent: #E8A830;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--black);
  font-family: 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
  opacity: 0;
  animation: pageFadeIn 0.4s ease forwards;
}

@keyframes pageFadeIn {
  to { opacity: 1; }
}

/* landing page only — lock scroll for fullscreen video */
body.landing {
  overflow: hidden;
}

/* ── Video Background ── */
.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* ── Dark overlay ── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.55);
}

/* ── Landing Logo ── */
.landing-logo {
  width: clamp(120px, 20vw, 220px);
  height: auto;
}

/* ── Landing Content ── */
.landing {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  text-align: center;
  padding: 2rem;
}

.title {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--white);
  font-size: clamp(3.5rem, 10vw, 10rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.email-form {
  display: flex;
  gap: 0;
}

.email-form input[type="email"] {
  background: transparent;
  border: 1px solid var(--white);
  border-right: none;
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  letter-spacing: 0.15em;
  padding: 0.75rem 1.5rem;
  outline: none;
  width: clamp(200px, 28vw, 340px);
}

.email-form input[type="email"]::placeholder {
  color: rgba(245, 245, 245, 0.45);
}

.email-form button {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--black);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  letter-spacing: 0.2em;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.email-form button:hover {
  background: var(--white);
  border-color: var(--white);
}

.form-msg {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-top: -1.5rem;
  min-height: 1.2em;
  display: none;
}

.form-msg--error {
  color: #e05555;
}

[data-fs-success]:not(:empty),
[data-fs-error]:not(:empty) {
  display: block;
}

.landing-sound-btn {
  position: fixed;
  bottom: 1.2rem;
  right: 1.5rem;
  z-index: 10;
  background: none;
  border: none;
  color: rgba(245, 245, 245, 0.55);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s;
}

.landing-sound-btn:hover {
  color: #f5f5f5;
}

@media (max-width: 700px) {
  .landing-sound-btn { display: none; }
}

.mobile-sound-btn {
  display: none;
  position: fixed;
  bottom: 1.2rem;
  right: 1.5rem;
  z-index: 10;
  background: none;
  border: none;
  color: rgba(245, 245, 245, 0.55);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s;
}

.mobile-sound-btn:hover {
  color: #f5f5f5;
}

@media (max-width: 700px) {
  .mobile-sound-btn { display: block; }
}

/* ── Page transition curtain ── */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  pointer-events: none;
}

.curtain.enter {
  transform: translateY(100%);
  animation: curtain-in 0.55s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.curtain.cover {
  transform: translateY(0);
}

.curtain.exit {
  transform: translateY(0);
  animation: curtain-out 0.65s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes curtain-in {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@keyframes curtain-out {
  from { transform: translateY(0); }
  to   { transform: translateY(-100%); }
}

.curtain-logo {
  width: clamp(100px, 18vw, 200px);
  height: auto;
  opacity: 0;
  transition: opacity 0.3s ease 0.3s;
}

.curtain.enter .curtain-logo {
  opacity: 1;
}

/* ── Mobile ── */
@media (max-width: 700px) {
  .curtain.exit {
    animation-duration: 0.35s;
  }

  .title {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .video-bg video {
    display: none;
  }

  .video-bg {
    background: #0a0a0a url('images/hero-mobile.gif') center center / cover no-repeat;
  }

  .email-form {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .email-form input[type="email"] {
    border-right: 1px solid var(--white);
    border-bottom: none;
    width: 100%;
  }

  .email-form button {
    width: 100%;
  }
}
