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

:root {
  --font-global: "Lekton", monospace;
  --font-heading: "Bodoni Moda", serif;
  --font-body: "Cormorant Garamond", serif;
  --font-label: "IBM Plex Mono", monospace;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  color: #ffffff;
  font-family: var(--font-global);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

.page {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.hero {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background-color: transparent;
}

/* Background Vimeo iframe with object-fit: cover behavior */
.hero-video-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  container-type: size;
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max(100cqw, calc(100cqh * 16 / 9));
  height: max(100cqh, calc(100cqw * 9 / 16));
  border: 0;
  pointer-events: none;
}

/* Subtle fading gradient overlay for cinematic depth and text legibility */
.hero-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0) 35%,
      rgba(0, 0, 0, 0.68) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.45) 20%,
      rgba(0, 0, 0, 0.08) 42%,
      rgba(0, 0, 0, 0.08) 62%,
      rgba(0, 0, 0, 0.5) 84%,
      rgba(0, 0, 0, 0.9) 100%
    );
  pointer-events: none;
  z-index: 1;
  transform: translate3d(0, 0, 0);
}

/* Header (matches .site-header on project pages) */
.hero-header {
  position: relative;
  width: 82vw;
  max-width: 1320px;
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
  pointer-events: none;
}

.brand-logo {
  display: block;
  margin-left: 0;
  pointer-events: auto;
  transition: opacity 0.25s ease;
}

.brand-logo:hover {
  opacity: 0.6;
}

.brand-logo img {
  display: block;
  width: 185px;
  height: auto;
}

.hero-nav {
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 22px;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.25s ease;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 1px;
  background-color: #ffffff;
}

.nav-menu:hover,
.nav-menu:focus-visible {
  opacity: 0.55;
  outline: none;
}

/* Campaign typography */
.campaign-title {
  position: absolute;
  top: 112px;
  right: max(9vw, calc((100vw - 1320px) / 2));
  z-index: 2;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  font-family: var(--font-label);
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.25;
  text-align: right;
  pointer-events: auto;
}

.campaign-title a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.campaign-title a:hover,
.campaign-title a:focus-visible {
  opacity: 0.6;
  outline: none;
}

.campaign-title a.campaign-title-bold {
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.22em;
}

.campaign-meta {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  white-space: nowrap;
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

/* Minimalist menu & login overlays */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.modal-overlay.is-open {
  opacity: 1;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-close {
  position: absolute;
  top: 30px;
  right: max(9vw, calc((100vw - 1320px) / 2));
  width: 22px;
  height: 22px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0.88;
  transition: opacity 0.25s ease;
}

.close-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #ffffff;
}

.close-line:first-child {
  transform: translateY(-50%) rotate(45deg);
}

.close-line:last-child {
  transform: translateY(-50%) rotate(-45deg);
}

.modal-close:hover,
.modal-close:focus-visible {
  opacity: 0.55;
  outline: none;
}

.overlay-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.overlay-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 15px;
  font-weight: 200;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: opacity 0.25s ease;
}

.overlay-nav a:hover,
.overlay-nav a:focus-visible {
  opacity: 0.5;
  outline: none;
}

/* Mobile & Tablet responsive behavior */
@media (max-width: 768px) {
  .hero {
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
  }

  .hero-header {
    width: 100%;
    height: 76px;
    padding: 0 max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
  }

  .brand-logo img {
    width: 155px;
  }

  .nav-menu {
    width: 22px;
    height: 22px;
    gap: 4px;
  }

  .campaign-title {
    top: 96px;
    right: max(18px, env(safe-area-inset-right));
    left: max(18px, env(safe-area-inset-left));
    font-size: 13px;
    letter-spacing: 0.16em;
  }

  .campaign-meta {
    bottom: max(22px, env(safe-area-inset-bottom));
    gap: 20px;
    font-size: 11px;
    letter-spacing: 2px;
    max-width: calc(100% - 32px);
  }

  .modal-close {
    top: max(22px, env(safe-area-inset-top));
    right: max(18px, env(safe-area-inset-right));
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 390px) {
  .brand-logo img {
    width: 135px;
  }

  .campaign-title {
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .campaign-meta {
    gap: 14px;
    font-size: 10px;
    letter-spacing: 1.5px;
  }
}
