* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background: #000;
  font-family: "Roboto", sans-serif;
}

/* ================= HEADER ================= */

#header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 20;
  transition: opacity 1s ease, transform 1s ease;
}

#header.pre-reveal {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

#header.revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  display: flex;
  flex-direction: column;
}

.htitle {
  margin: 0;
  font-weight: 700;
  font-size: 128px;
  text-decoration: none;
  color: white;
  mix-blend-mode: difference;
  line-height: 0.8;
}

.hero-subtitle {
  margin-top: 12px;
  font-family: "Jost", sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: rgba(255,255,255,0.85);
  mix-blend-mode: difference;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-item {
  font-family: "Jost", sans-serif;
  font-size: 14px;
  text-decoration: none;
  color: white;
  mix-blend-mode: difference;
}

/* ================= VIDEO ================= */

.hero-video {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
  z-index: 0;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================= TEXTO INFERIOR ================= */

.hero-bottom-text {
  position: absolute;
  left: 50%;
  bottom: calc(60px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(10px);
  text-align: center;
  z-index: 10;
  width: 100%;
  padding: 0 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.hero-bottom-text.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hero-bottom-text p {
  margin: 0;
  font-family: "Jost", sans-serif;
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  color: white;
  mix-blend-mode: difference;
  opacity: 0.8;
}

/* ================= INTRO ================= */

.intro-screen {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease;
}

.intro-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.intro-content {
  text-align: center;
  mix-blend-mode: difference;
}

.intro-logo {
  margin: 0;
  font-size: clamp(56px, 10vw, 180px);
  font-weight: 700;
  color: white;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInLogo 1.2s ease forwards;
}

@keyframes fadeInLogo {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
  #header {
    padding: 16px;
  }

  .htitle {
    font-size: 64px;
  }

  .hero-subtitle {
    white-space: normal;
    max-width: 260px;
    font-size: 12px;
    letter-spacing: 0.06em;
    line-height: 1.3;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
  }

  .nav-item {
    font-size: 12px;
  }

  .hero-bottom-text {
    bottom: calc(110px + env(safe-area-inset-bottom));
  }

  .hero-bottom-text p {
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .intro-logo {
    font-size: clamp(48px, 16vw, 100px);
  }
}