/* ==========================================================================
   Hero: full-bleed photo, navigation bar, intro and key facts
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100svh;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark scrim over the photo (left to right on desktop) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 12, 24, 0.86) 0%, rgba(8, 12, 24, 0.6) 40%, rgba(8, 12, 24, 0) 72%);
}

.hero__inner {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 16px var(--page-gutter) 0;
}

/* Navigation bar ----------------------------------------------------------- */
.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
}

/* Soft dark band behind the bar so white links stay readable */
.navbar::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -16px;
  bottom: -28px;
  left: calc(var(--page-gutter) * -1);
  right: calc(var(--page-gutter) * -1);
  background: linear-gradient(to bottom, rgba(8, 12, 24, 0.8) 0%, rgba(8, 12, 24, 0.5) 55%, rgba(8, 12, 24, 0) 100%);
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 40px);
}

.navbar__link {
  padding: 10px 0;
  font-weight: 500;
  text-decoration: none;
}

.navbar__link:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-blue);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.navbar__toggle {
  display: none;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

/* Hero content -------------------------------------------------------------- */
.hero__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(20px, 2.4vw, 32px);
  padding-top: clamp(24px, 3.2vw, 44px);
  color: var(--color-white);
}

.hero__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: flex-start;
  gap: 18px;
  width: min(100%, 680px);
}

.hero__heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero__title {
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero__since {
  color: #8fb6ff;
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero__lead {
  max-width: 28em;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.1875rem, 1.6vw, 1.375rem);
  text-wrap: pretty;
}

.hero__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

/* Key facts strip */
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 32px;
  margin-bottom: clamp(24px, 3vw, 44px);
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

.hero__facts b {
  color: var(--color-white);
  font-size: clamp(1.375rem, 1.7vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero__facts-link {
  text-decoration: none;
}

.hero__facts-link:hover b {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Desktop: white navigation links over the dark band */
@media (min-width: 901px) {
  .navbar__link {
    color: var(--color-white);
  }
}

/* Tablet and phone --------------------------------------------------------- */
@media (max-width: 900px) {
  .hero {
    min-height: min(100svh, 700px);
  }

  /* Scrim is dark at the top and bottom (text) and light in the middle (photo) */
  .hero::after {
    background: linear-gradient(180deg, rgba(8, 12, 24, 0.8) 0%, rgba(8, 12, 24, 0.72) 42%, rgba(8, 12, 24, 0.1) 62%, rgba(8, 12, 24, 0.1) 72%, rgba(8, 12, 24, 0.8) 100%);
  }

  .hero__bg {
    object-position: 88% center;
  }

  .hero__content {
    justify-content: space-between;
  }

  .hero__intro {
    width: 100%;
    margin-top: 16px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__since {
    font-size: 1.125rem;
  }

  .hero__lead {
    font-size: 1.0625rem;
  }

  .hero__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__facts {
    flex-direction: column;
    flex-wrap: nowrap;
    align-self: stretch;
    gap: 0;
    padding-top: 6px;
  }

  .hero__facts b {
    font-size: 1.0625rem;
  }

  .hero__facts p {
    padding: 6px 0;
    font-size: 0.9375rem;
  }

  .hero__facts p + p {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  /* Collapsible menu */
  .navbar__toggle {
    display: inline-flex;
    align-items: center;
  }

  .navbar__menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: var(--page-gutter);
    z-index: 5;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 240px;
    padding: 12px 24px 20px;
    border-radius: var(--radius-md);
    background: var(--color-white);
  }

  .navbar__menu.is-open {
    display: flex;
  }

  .navbar__link {
    padding: 14px 0;
    font-size: 1.125rem;
  }
}

@media (max-width: 560px) {
  .navbar {
    gap: 12px;
  }
}

@media (max-width: 360px) {
  .navbar__toggle {
    padding: 0 16px;
  }
}
