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

html, body {
  height: 100%;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #000;
  color: #fff;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

/* Hero Section - takes remaining space */
.hero {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

/* Video container - constrained to fit the mask */
.video-container {
  width: 98vw;
  height: 55vh;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

/* Video with mask applied */
.video-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: url("mask-desktop.svg");
  mask-image: url("mask-desktop.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 1.5rem 2rem;
  background-color: #000;
  flex-shrink: 0;
  z-index: 10;
}

nav a,
nav .nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  transition: opacity 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

nav a:hover,
nav .nav-link:hover {
  opacity: 0.6;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.modal-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #111;
  border: 1px solid #333;
  padding: 2rem 2.5rem;
  max-width: 90vw;
  width: 420px;
  text-align: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  color: #888;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #fff;
}

.modal-headline {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #fff;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.modal-body {
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: #bbb;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: left;
}

.modal-body p {
  margin-bottom: 0.75rem;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  transition: opacity 0.3s ease;
}

.modal-btn:hover {
  opacity: 0.85;
}

.modal-microcopy {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #666;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem 2rem;
  background-color: #000;
  flex-shrink: 0;
}

footer p {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 0.5rem;
}

footer p:last-child {
  margin-bottom: 0;
  font-size: 0.625rem;
  color: #555;
}

/* ========================================
   MOBILE (768px and below)
   ======================================== */
@media (max-width: 768px) {
  /* Adjust video container for mobile - stacked text box */
  .video-container {
    width: 90vw;
    height: 55vh;
    max-width: 500px;
  }

  /* Switch to mobile mask (stacked text) */
  .video-main {
    -webkit-mask-image: url("mask-mobile.svg");
    mask-image: url("mask-mobile.svg");
  }

  /* Navigation stacks vertically */
  nav {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
  }

  nav a,
  nav .nav-link {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
  }

  .modal {
    padding: 1.5rem 1.75rem;
    margin: 1rem;
  }

  .modal-body {
    font-size: 0.85rem;
  }

  /* Compact footer */
  footer {
    padding: 0.75rem 1rem;
  }

  footer p {
    font-size: 0.65rem;
    margin-bottom: 0.35rem;
  }

  footer p:last-child {
    font-size: 0.55rem;
  }
}

/* Extra small devices */
@media (max-width: 380px) {
  nav {
    gap: 0.5rem;
    padding: 0.75rem;
  }

  nav a {
    font-size: 0.65rem;
  }

  footer {
    padding: 0.5rem;
  }

  footer p {
    font-size: 0.6rem;
  }

  footer p:last-child {
    font-size: 0.5rem;
  }
}
