/* The home page shares the site's components, but fits in one viewport. */
.home-page {
  --yellow: #f8c20f;
  --home-gutter: clamp(24px, 5.5vw, 88px);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.home-page .site-header {
  position: relative;
  flex: none;
  min-height: 92px;
  padding: 10px var(--home-gutter);
  background: #f4f5f6;
  border-bottom: 1px solid rgba(13, 27, 47, .12);
  box-shadow: 0 4px 24px rgba(0, 18, 45, .08);
}

.home-page .brand {
  width: 260px;
  height: 70px;
  flex: 0 0 auto;
}

.home-page .brand-logo {
  width: 100%;
  max-height: none;
  object-position: left center;
}

.home-page main {
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
}

.home-page .hero {
  width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 clamp(24px, 4vw, 64px);
  padding: clamp(18px, 3dvh, 36px) var(--home-gutter);
  background: radial-gradient(ellipse at 90% 25%, rgba(248, 194, 15, .09), transparent 55%),
    linear-gradient(120deg, #00122a, #071d32);
}

/* A mirrored decorative copy extends the photograph behind the text. */
.home-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/betocon-original.jpg") center / cover no-repeat;
  transform: scaleX(-1);
  pointer-events: none;
}

.home-page .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(0, 14, 30, .35), transparent 30%),
    linear-gradient(90deg, rgba(0, 18, 42, .96), rgba(0, 18, 42, .89) 30%, rgba(0, 18, 42, .62) 50%, rgba(0, 18, 42, .22) 74%, rgba(0, 18, 42, .12));
  pointer-events: none;
}

.home-page .hero-photo {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 58%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  container-type: size;
}

/* The main photograph stays complete; only its edge blends into the backdrop. */
.home-page .hero-media {
  position: static;
  display: block;
  width: min(100cqw, 133.333333cqh);
  height: auto;
  max-width: 100%;
  max-height: 100%;
  z-index: 0;
  object-fit: contain;
  object-position: right center;
  transform: none;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, .18) 2%, rgba(0, 0, 0, .65) 5%, rgba(0, 0, 0, .94) 8%, #000 11%);
  mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, .18) 2%, rgba(0, 0, 0, .65) 5%, rgba(0, 0, 0, .94) 8%, #000 11%);
}

.home-page .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: .17em;
  font-size: 12px;
  margin-bottom: clamp(14px, 2.4dvh, 24px);
}

.home-page .eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--yellow);
}

.home-page .hero-content {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.home-page h1 {
  font-size: clamp(60px, 6.5vw, 112px);
  margin-bottom: 24px;
  letter-spacing: -.035em;
  line-height: .94;
  text-shadow: 0 3px 24px rgba(0, 12, 28, .2);
}

.home-page .hero-copy {
  color: #e0e7ef;
  font-weight: 500;
  margin-bottom: clamp(20px, 3.5dvh, 32px);
}

.home-page .button {
  gap: 20px;
  min-height: 52px;
  border-radius: 5px;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.home-page .button.primary {
  box-shadow: 0 6px 22px rgba(0, 0, 0, .16);
}

.home-page .button.secondary {
  background: rgba(0, 18, 42, .3);
  border-color: rgba(232, 241, 255, .3);
  backdrop-filter: blur(8px);
}

.home-page .button-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.home-page .site-nav a {
  transition: background-color .18s ease, color .18s ease;
}

@media (hover: hover) {
  .home-page .button:hover {
    transform: translateY(-2px);
  }

  .home-page .button.primary:hover,
  .home-page .site-nav .nav-cta:hover {
    color: var(--teal-dark);
    background: #ffcf36;
    box-shadow: 0 6px 22px rgba(248, 194, 15, .16);
  }

  .home-page .button.secondary:hover {
    background: rgba(232, 241, 255, .16);
    border-color: rgba(232, 241, 255, .6);
  }
}

.home-page .hero-badges {
  z-index: 1;
  grid-column: 1;
  grid-row: 2;
  position: relative;
  inset: auto;
  max-width: 100%;
  margin-top: 0;
  padding: 20px 0 0;
}

.home-page .hero-badges span {
  gap: 10px;
  max-width: 100%;
  padding: 10px 0;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  font-weight: 600;
  color: #dce4ee;
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
}

.home-page .hero-badges span::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--yellow);
}

.home-page a:focus-visible,
.home-page button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

@media (max-width: 920px) {

  .home-page .site-nav {
    position: absolute;
    top: calc(100% - 1px);
  }

  .home-page .hero-copy {
    max-width: 480px;
  }
}

@media (max-width: 620px) {
  .home-page .brand {
    width: clamp(200px, 58vw, 250px);
    height: 50px;
  }

  .home-page .site-header {
    min-height: 72px;
    padding: 10px 18px;
  }

  .home-page .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    padding: 0;
    gap: 0;
  }

  .home-page .hero-content {
    padding: 32px 18px 24px;
  }

  .home-page .hero-photo {
    position: relative;
    inset: auto;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    height: auto;
    padding: 0;
    container-type: normal;
  }

  .home-page .hero-media {
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .7) 4%, #000 10%);
    mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .7) 4%, #000 10%);
  }

  .home-page .hero-badges {
    grid-row: 3;
    padding: 20px 18px;
  }

  .home-page h1 {
    font-size: clamp(52px, min(18.5vw, 12dvh), 88px);
    margin-bottom: 20px;
  }

  .home-page .hero-copy {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 22px;
  }

  .home-page .hero-actions {
    gap: 10px;
  }

  .home-page .button {
    gap: 12px;
    padding: 12px 14px;
    font-size: 14px;
  }

  .home-page .hero-badges {
    gap: 6px;
  }

  .home-page .hero-badges span {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 16px;
  }

}

/* Size the desktop layout to the viewport, rather than the photo's natural height. */
@media (min-width: 621px) {
  .home-page {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
  }

  .home-page .hero-content {
    padding: 0;
  }

  .home-page h1 {
    font-size: clamp(36px, min(6.5vw, 11dvh), 112px);
    margin-bottom: clamp(12px, 2dvh, 24px);
  }

  .home-page .hero-badges {
    padding-bottom: 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  .home-page .button,
  .home-page .site-nav a {
    transition: none;
  }

  .home-page .button:hover {
    transform: none;
  }
}

@media (min-width: 621px) and (max-height: 740px) {
  .home-page .site-header {
    min-height: 80px;
    padding-block: 6px;
  }

  .home-page .brand {
    height: 64px;
  }

  .home-page .hero {
    padding-block: 18px;
  }

  .home-page h1 {
    font-size: clamp(36px, min(6.5vw, 10vh), 90px);
    margin-bottom: 18px;
  }

  .home-page .hero-copy {
    font-size: 18px;
    margin-bottom: 20px;
  }

}

@media (min-width: 621px) and (max-height: 600px) {
  .home-page .hero {
    padding-block: 12px;
  }

  .home-page h1 {
    font-size: clamp(32px, 8dvh, 48px);
    margin-bottom: 10px;
  }

  .home-page .eyebrow {
    margin-bottom: 10px;
  }

  .home-page .hero-copy {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .home-page .button {
    min-height: 44px;
    padding-block: 10px;
    font-size: 14px;
  }

  .home-page .hero-badges {
    padding-top: 8px;
  }

}
