/* Stop rubber-band overscroll from pulling the page and flashing the fixed hero / video */
html,
body {
  overscroll-behavior: none;
}

body {
  background-color: #fff;
}

/* Reference-style grid hero: nav row, text | video split, footer strip */
.landing-hero {
  --landing-border: 1px solid #000;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  border-top: var(--landing-border);
  border-bottom: var(--landing-border);
  border-left: 0;
  border-right: 0;
  background: #fff;
  color: #000;
  overflow: hidden;
}

/* Reserve first viewport for scroll; sits under fixed hero in hit-testing via z-index */
.landing-hero-spacer {
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
  position: relative;
  z-index: 0;
}

#works,
.section-3 {
  position: relative;
  z-index: 2;
  background-color: #fff;
}

.landing-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: var(--landing-border);
}

.landing-nav__cell {
  box-sizing: border-box;
  padding: 0.65rem 1rem;
  text-align: center;
  font-family: AlteHaasGrotesk, Arial, sans-serif;
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  font-weight: 700;
  color: #000;
  text-decoration: none;
  border-right: var(--landing-border);
}

.landing-nav__cell:last-child {
  border-right: none;
}

.landing-nav__cell:hover,
.landing-nav__cell:focus-visible {
  text-decoration: underline;
  outline: none;
}

.landing-split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.landing-left {
  box-sizing: border-box;
  border-right: var(--landing-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: clamp(1.25rem, 3vw, 2.75rem);
  gap: 2rem;
  min-width: 0;
}

.landing-logo-wrap {
  width: 100%;
  transform-origin: 0 0;
  will-change: transform;
}

.landing-hero .lottie-animation-4 {
  width: 100%;
  max-width: min(100%, 28rem);
  min-width: 0;
  border: none;
  display: block;
}

.landing-intro {
  margin: 0;
  max-width: 38ch;
  font-family: Neuemontreal, sans-serif;
  font-size: clamp(0.7rem, 1.05vw, 0.8125rem);
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
}

.landing-media {
  position: relative;
  min-height: 280px;
  background: #000;
  overflow: hidden;
}

.landing-media .landing-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.landing-media .landing-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  inset: 0;
}

@media (max-width: 768px) {
  .landing-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .landing-left {
    border-right: none;
    border-bottom: var(--landing-border);
    min-height: auto;
  }

  .landing-media {
    aspect-ratio: 4 / 5;
    min-height: 220px;
  }
}
