.hero {
  position: relative;
  min-height: calc(var(--vh) * 100);
  overflow: hidden;
  width: 100%;
  opacity: 0;
}

@media (min-width: 900px) {
  .hero {
    min-height: calc(var(--vh) * 100);
  }
}

/* For widescreen/ultrawide aspect ratios */
@media (min-width: 1200px) and (min-aspect-ratio: 1/1) {
  .hero {
    min-height: calc(var(--vh) * 120);
  }
}
@media (min-width: 1600px) and (min-aspect-ratio: 1/1) {
  .hero {
    min-height: calc(var(--vh) * 125);
  }
}
@media (min-width: 1600px) and (min-aspect-ratio: 16/9) {
  .hero {
    min-height: calc(var(--vh) * 150);
  }
}

/* background layers */
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* sky: wider than viewport so GSAP x-move never reveals empty space */
.hero__bg--sky {
  background-image: url("../img/sky.webp");
  background-size: cover;
  background-position: center;

  width: 130%;
  left: -30%;
  will-change: transform;
}

/* render: full width, bottom aligned */
.hero__render {
  position: absolute;
  left: 50%;
  bottom: 0;

  width: 140%; /* zoomed on mobile */
  transform: translateX(-50%);

  height: auto;
  z-index: 2;
  pointer-events: none;
}

@media (min-width: 900px) {
  .hero__render {
    width: 100%; /* no zoom desktop */
  }
}

/* fade overlay on top (your spec) */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 35%;

  background: linear-gradient(to bottom, rgba(34, 33, 31, 0), #22211f);

  pointer-events: none;
  z-index: 6;
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 1.5rem 2rem;

  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}

/* ADD - new simpler approach for show/hide */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 102;
}

.nav.nav--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.nav.nav--fixed .nav__inner {
  background: var(--c-bg-dark);
}

.nav.nav--fixed.nav--visible {
  transform: translateY(0);
}

/* Always show nav when menu is open - make it fixed so it's visible even when scrolled down */
.nav.is-open {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  transform: translateY(0) !important;
  z-index: 103 !important; /* Higher than overlay to ensure toggle is clickable */
}

/* Ensure toggle button and logo are visible when menu is open */
.nav.is-open .nav__toggle {
  opacity: 1 !important;
  z-index: 104;
  position: relative;
  visibility: visible !important;
}

.nav.is-open .nav__logo {
  opacity: 1 !important;
  visibility: visible !important;
}

.nav__menu li a {
  text-decoration: none;
  color: var(--c-white);
}
.nav__overlay-menu li a {
  color: var(--c-white);
  text-decoration: none;
}

/* Nav link hover animation effect */
.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--c-white);
  font-size: inherit;
  padding: 7px 0;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  display: inline-block;
}

.nav-link span {
  position: relative;
  display: inline-block;
}

.nav-link__graphic {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 300%;
  height: 100%;
  fill: none;
  stroke: var(--c-brand-secondary);
  stroke-width: 2;
  transform: translateX(100%);
}

.nav-link:hover .nav-link__graphic {
  transform: translateX(-66.6%);
  transition: transform 0.7s cubic-bezier(0.7, 0, 0.3, 1);
}
@media (min-width: 900px) {
  .nav__inner {
    padding: 2rem 3rem;
  }
}
.nav__logo {
  color: white;
  font-weight: 700;
  height: 48px;
}
.nav__logo img {
  height: 100%;
  width: auto;
  display: block;
}
@media (min-width: 900px) {
  .nav__logo {
    height: 64px;
  }
}
.nav__menu {
  display: none;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.1rem;
  color: var(--c-brand-secondary, #fff);
  overflow: hidden;
}
@media (min-width: 901px) and (max-width: 1250px) {
  .nav__menu {
    gap: 0.8rem;
    font-size: 0.85rem;
  }
}
.nav__toggle {
  background: none;
  border: 0;
  width: 48px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  opacity: 0;
}

.nav__toggle span {
  height: 2px;
  background: var(--c-brand-secondary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__toggle span:nth-child(1) {
  width: 100%;
}

.nav__toggle span:nth-child(2) {
  width: 80%;
  margin-left: auto;
}

.nav__toggle span:nth-child(3) {
  width: 60%;
  margin-left: auto;
}

.nav.is-open .nav__toggle span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  width: 100%;
}

.nav.is-open .nav__toggle span:nth-child(2) {
  opacity: 0;
  width: 100%;
}

.nav.is-open .nav__toggle span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  width: 100%;
}

.nav__overlay {
  position: fixed;
  inset: 0;
  background: var(--c-bg-dark);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 101;
}

body.nav-open .nav__overlay {
  opacity: 1;
  pointer-events: auto;
}

.nav__overlay-menu {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  color: white;
  font-size: 1.5rem;
}
.nav__overlay-menu li {
  opacity: 0;
  transform: translateY(20px);
  width: 100%;
  max-width: 400px;
}

@media (min-width: 900px) {
  .nav__menu {
    display: flex;
  }
  .nav__toggle {
    display: none;
  }
  .nav__overlay {
    display: none;
  }
}

.nav {
  z-index: 102;
}
.nav__overlay {
  z-index: 100;
}
.hero {
  z-index: 1;
}

.hero__bg,
.hero__render {
  opacity: 1;
}
.nav__logo,
.nav__menu li {
  opacity: 0;
}
.nav.is-open .nav__inner {
  background: transparent;
}

body.nav-open .nav__overlay {
  opacity: 1;
  pointer-events: auto;
}
.no-scroll {
  overflow: hidden;
}

.hero__content .line {
  display: inline-block;
  opacity: 0;
  transform: translateY(1em);
}

.hero__lead {
  padding-top: 2rem;
  opacity: 0;
}
/* hero content stays centered in FIRST viewport only */
.hero__content {
  position: absolute;
  min-height: calc(var(--vh) * 28);
  left: 0;
  width: 100%;

  display: grid;
  place-items: center;

  z-index: 5;
  color: white;
  text-align: center;
  padding-top: 25%;
}

.hero__content h1 {
  font-size: 2.25rem;
  line-height: 1.4;
  margin: 0;
  color: var(--c-text-inverse);
}

.hero__content p {
  font-size: 1rem;
  font-weight: 100;
  text-transform: uppercase;
  color: var(--c-text-inverse);
}

@container (min-width: 900px) {
  .hero__content h1 {
    font-size: 3rem;
    line-height: 1.25;
    margin: 0;
    color: var(--c-text-inverse);
  }
}

@media (min-width: 1300px) {
  .hero__content h1 {
    font-size: 3.5rem;
  }
}

@media (min-width: 900px) {
  .hero__content {
    padding-top: 15%;
  }
}
@media (max-width: 899px) {
  .hero__content {
    padding-top: unset;
    min-height: 100vh;
    place-content: center;
    place-items: unset;
    padding-bottom: 260px;
  }
}

.image-splitter-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.image-splitter {
  position: absolute;
  padding: 2rem;
  bottom: 1rem;
  width: 100%;
  opacity: 0;
}
.image-splitter img {
  display: block;
  margin: 0 auto;
  box-sizing: border-box;
  height: auto;
  width: 100%;
  max-width: var(--breakpoint-desktop);
}

.nav--simple {
  position: relative;
  background: var(--c-bg-dark);
}

.nav--simple .nav__inner {
  background: var(--c-bg-dark);
}

.privacy-page .section {
  padding-top: calc(var(--space-section-y) * 0.75);
}
