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

html {
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: #fff;
  overflow-x: hidden;
  font-family: 'Helvetica Neue ME', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0 48px;
}

.navbar__inner {
  max-width: 1400px;
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
  animation: fadeInDown 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.2s both;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.navbar__links li {
  opacity: 0;
}

.navbar__links li:nth-child(1) { animation: fadeInDown 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.3s both; }
.navbar__links li:nth-child(2) { animation: fadeInDown 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.4s both; }
.navbar__links li:nth-child(3) { animation: fadeInDown 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.5s both; }
.navbar__links li:nth-child(4) { animation: fadeInDown 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.6s both; }

.navbar__links a {
  font-size: 0.9375rem;
  font-weight: 300;
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.navbar__links a:hover {
  opacity: 1;
}

.navbar__cta {
  font-size: 0.8125rem;
  padding: 4px 10px;
  animation: fadeInDown 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.7s both;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.hamburger-line {
  position: absolute;
  left: 0;
  width: 32px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.hamburger-line:nth-child(1) { top: 2px; }
.hamburger-line:nth-child(2) { top: 11px; }
.hamburger-line:nth-child(3) { top: 20px; }

.hamburger.active .hamburger-line:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active .hamburger-line:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              visibility 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}

.mobile-menu__links li {
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-menu.open .mobile-menu__links li:nth-child(1) {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.1s;
}
.mobile-menu.open .mobile-menu__links li:nth-child(2) {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.15s;
}
.mobile-menu.open .mobile-menu__links li:nth-child(3) {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.2s;
}
.mobile-menu.open .mobile-menu__links li:nth-child(4) {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.25s;
}

.mobile-menu__links a {
  font-size: 1.75rem;
  font-weight: 300;
  color: #fff;
  text-decoration: none;
}

.mobile-menu__cta {
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.3s,
              opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.3s;
}

.mobile-menu.open .mobile-menu__cta {
  transform: translateY(0);
  opacity: 1;
}

/* ===== SCROLL VIDEO ===== */
.scroll-video {
  position: relative;
  width: 100%;
  height: 500vh;
}

.scroll-video video {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
}

.scroll-canvas {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  transition: opacity 200ms linear;
  margin-top: -100vh;
}

.scroll-canvas.is-live {
  opacity: 1;
}

/* ===== CONTENT OVERLAY ===== */
.content-overlay {
  position: fixed;
  inset: 0;
  height: 100vh;
  z-index: 3;
  pointer-events: none;
}

.section-content {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.section-content.active {
  opacity: 1;
}

/* Section 0 — bottom-left */
.section-content--1 {
  align-items: flex-end;
  justify-content: flex-start;
}

/* Section 1 — top-right */
.section-content--2 {
  align-items: flex-start;
  justify-content: flex-end;
}

/* Section 2 — bottom-right */
.section-content--3 {
  align-items: flex-end;
  justify-content: flex-end;
}

.content {
  max-width: 480px;
  padding: 64px;
  pointer-events: auto;
}

.content h1 {
  font-size: clamp(2rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.1s,
              transform 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.1s;
}

.content p {
  font-size: clamp(0.875rem, 1.2vw, 1.125rem);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.25s,
              transform 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.25s;
}

.content .btn {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.4s,
              transform 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.4s,
              background 0.3s all,
              color 0.3s all,
              border-color 0.3s all;
}

.section-content.active .content h1 {
  opacity: 1;
  transform: translateY(0);
}

.section-content.active .content p {
  opacity: 0.85;
  transform: translateY(0);
}

.section-content.active .content .btn {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: 'Helvetica Neue ME', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  padding: 5px 12px;
  border-radius: 0;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.btn--primary {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
}

.btn--primary:hover {
  background: transparent;
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: none;
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn--outline:hover {
  opacity: 0.7;
}

/* ===== KEYFRAMES ===== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 0 24px;
  }

  .navbar__inner {
    height: 64px;
  }

  .navbar__links,
  .navbar__cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .content {
    max-width: 100%;
    padding: 32px 24px;
  }

  .content h1 {
    font-size: 1.75rem;
  }

  /* Section 2 on mobile */
  .section-content--2 {
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 72px;
  }

  /* Section 3 on mobile */
  .section-content--3 {
    justify-content: flex-start;
    align-items: flex-end;
  }
}
