/* =========================================================
   HOME / HERO
========================================================= */

.hero {
  min-height: 100svh;
  background: var(--bg-dark);
}

.hero .container {
  min-height: 100svh;
  width: min(var(--container-wide), 100%);
  display: flex;
  flex-direction: column;
  padding-top: clamp(10px, 2vh, 22px);
  padding-bottom: clamp(40px, 6vh, 96px);
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 0;
}

.hero-inner {
  width: 100%;
}

.hero .toggle {
  color: #fff;
}

.right-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-4);
}


/* =========================================================
   HOME / GATE MENU
========================================================= */

.gate {
  width: min(517px, 100%);
  max-width: 100%;
  align-self: flex-end;
  position: relative;
  transform: none;
  --dx: 0px;
}

.gate-visual {
  overflow: visible;
}

.gate-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

#gate {
  transition: stroke 300ms ease;
}

.gate.open #gate {
  stroke: #7FD4E6;
}

.gate-hit {
  position: absolute;
  inset: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 4;
}

.gate.open .gate-hit {
  pointer-events: none;
}

.menu {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translate(-50%, -50%) translateX(calc(var(--dx) / 2));

  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(20px, 5vw, 70px);

  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
  z-index: 5;
}

.menu.open {
  opacity: 1;
  pointer-events: auto;
}

.menu a {
  position: relative;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 200;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
}

@media (max-width: 700px) {
  .menu {
    gap: clamp(20px, 4vw, 40px);
  }

  .menu a {
    font-size: clamp(10px, 3vw, 12px);
    letter-spacing: 0.1em;
  }
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 0.5px;
  background: var(--bg-light);
  transition: width 250ms ease;
}

.menu a:hover::after {
  width: 100%;
}


/* =========================================================
   HOME / HERO TEXT
========================================================= */

.hero-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  transition: opacity 300ms ease, transform 300ms ease;
}

.hero-text h1 {
  width: 100%;
  text-align: right;
  color: var(--text-light);
  font-size: var(--fs-hero);
  font-weight: 700;
  white-space: nowrap;
}

.hero-text h2 {
  width: fit-content;
  max-width: 100%;
  text-align: right;
  color: var(--text-light);
  opacity: 0.82;
  margin-bottom: 14px;
  font-style: normal;
}



@media (max-width: 1235px) {
  .hero-text h1 {
    font-size: clamp(50px, 5.4vw, 72px);
    white-space: nowrap;
  }
}

@media (max-width: 920px) {
  .hero-text h1 {
    font-size: clamp(38px, 5.8vw, 54px);
    white-space: normal;
    text-wrap: balance;
    line-height: 1.02;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: auto;
  }

  .hero .container {
    min-height: auto;
    padding-top: 8px;
    
  }

  .hero-inner {
    margin-top: var(--space-3);
  }

  .hero-text h1 {
    font-size: clamp(28px, 9vw, 40px);
    line-height: 1.02;
  }
}

@media (max-width: 356px) {
  .hero-text h1 {
    font-size: 28px;
    line-height: 1.02;
  }
}



.gate.open ~ .hero-text {
  opacity: 0.25;
  transform: translateY(10px);
}


/* =========================================================
   HOME / INTRO
========================================================= */

.intro {
  padding: var(--space-5) 0;
}

/* =========================================================
   HOME / CLOSING
========================================================= }*/

.closing-section {
  margin-top: -5vh;
}

/* =========================================================
   HERO GATE / COMPACT SAFETY
========================================================= */

@media (max-width: 700px) {

  .right-col {
    gap: var(--space-3);
  }

  .gate {
    width: min(100%, 420px);
  }

  .menu {
    top: 7%;
    gap: clamp(14px, 4vw, 28px);
  }

  .menu a {
    font-size: clamp(9px, 2.8vw, 11px);
    letter-spacing: 0.08em;
  }

  .gate.open ~ .hero-text {
    opacity: 0.35;
    transform: translateY(8px);
  }
}

/* =========================================================
   HERO TEXT / COMPACT RHYTHM
========================================================= */

@media (max-width: 700px) {

  .hero-text h2 {
    width: min(100%, 24ch);

    text-wrap: balance;
    line-height: 1.45;

    margin-bottom: 18px;
  }
}