/* Hero — portrait photo without soft full-bleed crop on desktop */

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  height: calc(100svh - 51px);
  max-height: calc(100svh - 51px);
  min-height: 28rem;
  margin-top: 51px;
  background: #1a1f24 !important;
  background-image: none !important;
  overflow: hidden;
  color: #fff;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Head sits near the top of the photo — keep it in frame */
  object-position: center 8%;
}

.home-hero__shade {
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(18, 22, 26, 0.42) 0%,
    rgba(18, 22, 26, 0.62) 45%,
    rgba(18, 22, 26, 0.88) 100%
  ) !important;
}

.home-hero__inner {
  align-self: end;
  z-index: 2;
  padding-top: 2rem;
  padding-bottom: 2.75rem;
}

/* Desktop: text | photo split — image only ~half width, sharper */
@media (min-width: 992px) {
  .home-hero {
    grid-template-columns: minmax(22rem, 1fr) minmax(22rem, 42vw);
    height: calc(100svh - 91px);
    max-height: calc(100svh - 91px);
    margin-top: 91px;
  }

  .home-hero__media {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    inset: auto;
    height: 100%;
    min-height: 0;
    background: #12161a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.75rem 1.5rem 0.5rem;
    box-sizing: border-box;
  }

  .home-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    /* Full portrait visible — head stays in frame */
    object-fit: contain;
    object-position: center center;
  }

  .home-hero__shade {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    inset: auto;
    height: 100%;
    background: #1a1f24 !important;
  }

  .home-hero__inner {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    width: 100%;
    max-width: none;
    padding: 3rem clamp(1.5rem, 3vw, 3rem);
    margin: 0;
  }

  .home-hero__inner > .row {
    margin: 0;
  }

  .home-hero__inner > .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .home-hero__brand {
    font-size: clamp(2.35rem, 3.4vw, 3.2rem);
  }

  .home-hero__headline {
    max-width: 18ch;
  }

  .home-hero__lead {
    max-width: 32ch;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .home-hero {
    height: calc(100svh - 91px);
    max-height: calc(100svh - 91px);
    margin-top: 91px;
  }

  .home-hero__media img {
    object-position: center 6%;
  }
}
