/* Selected photographic composition: actual portrait over a continuous,
   neutral-toned gym. No decorative divider or abrupt image boundary.
   Gym photograph: Salman Sidheek, Unsplash (Unsplash License),
   https://unsplash.com/photos/dark-gym-interior-with-exercise-equipment-and-weight-machines-iW79tgCbiMs */
.landing-page .hero {
  margin-inline: calc(-1 * var(--gutter));
  min-height: clamp(14rem, 38vw, 21rem);
  align-items: flex-start;
  background-color: var(--bg);
}
.landing-page .hero::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 64% 93% at 69% 52%, rgba(16,16,16,.62), rgba(16,16,16,.53) 26%, rgba(16,16,16,.29) 55%, rgba(16,16,16,.08) 82%, transparent),
    linear-gradient(rgba(16,16,16,.48), rgba(16,16,16,.48)),
    url('./assets/hero-gym.webp');
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, 160% auto;
  background-position: center, center, 9% 97%;
}
.landing-page .hero-photo {
  inset: -2.7% 0 auto auto;
  width: 52%;
  height: 115%;
  max-width: none;
  object-fit: contain;
  object-position: right top;
  --portrait-fade: linear-gradient(180deg, #000 0%, #000 80%, rgba(0,0,0,.98) 83%, rgba(0,0,0,.89) 86%, rgba(0,0,0,.68) 90%, rgba(0,0,0,.38) 94%, rgba(0,0,0,.10) 98%, transparent 100%);
  -webkit-mask-image: var(--portrait-fade);
  mask-image: var(--portrait-fade);
}
.landing-page .hero::after {
  display: block;
  background:
    linear-gradient(0deg, #101010 0%, rgba(16,16,16,.97) 1.6%, rgba(16,16,16,.86) 3.2%, rgba(16,16,16,.65) 5%, rgba(16,16,16,.39) 7.8%, rgba(16,16,16,.14) 11.6%, transparent 16%),
    linear-gradient(90deg, rgba(16,16,16,.96) 0%, rgba(16,16,16,.937) 6.4%, rgba(16,16,16,.868) 12.8%, rgba(16,16,16,.762) 19.2%, rgba(16,16,16,.628) 25.6%, rgba(16,16,16,.48) 32%, rgba(16,16,16,.332) 38.4%, rgba(16,16,16,.198) 44.8%, rgba(16,16,16,.092) 51.2%, rgba(16,16,16,.023) 57.6%, transparent 64%);
}
.landing-page .hero-content {
  width: 100%;
  max-width: 100%;
  padding: clamp(.45rem, 1vw, 1.05rem) var(--gutter) .15rem calc(var(--gutter) + var(--card-inset));
}
.landing-page .brand {
  margin-bottom: clamp(.65rem, 3.8vw, 1.2rem);
}
.landing-page .hero h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.02;
  font-weight: 675;
  letter-spacing: -.025em;
}
.landing-page .hero h1 .hero-surname {
  display: block;
  margin-top: .1em;
  color: var(--profile-gold);
  font-size: clamp(1.8rem, 4.35vw, 3rem);
  font-weight: 730;
  line-height: 1.04;
}
.landing-page .hero-role {
  max-width: none;
  margin-top: .5rem;
  color: var(--text);
  font-size: clamp(.85rem, 1.8vw, 1rem);
  line-height: 1.34;
}
.landing-page .hero-links {
  margin-top: .3rem;
  gap: 0 clamp(.625rem, 2.8vw, 1.15rem);
}

/* Small phones use the same inset as the service heading, while the actual
   text remains live and the portrait keeps its proportions on both axes. */
@media (max-width: 48rem), (orientation: landscape) and (max-height: 32rem) and (max-width: 64rem) {
  .landing-page .hero {
    min-height: clamp(13.4rem, 56vw, 15.2rem);
  }
  .landing-page .hero-content {
    padding: .3rem var(--mobile-text-inset) .1rem calc(var(--gutter) + var(--mobile-text-inset));
  }
  .landing-page .hero-photo {
    inset: -.35rem 0 auto auto;
    width: 52%;
    height: auto;
    object-fit: contain;
  }
  .landing-page .hero h1 { font-size: clamp(1.45rem, 6.05vw, 2rem); }
  .landing-page .hero h1 .hero-surname { font-size: clamp(1.8rem, 7.1vw, 2.4rem); }
  .landing-page .hero-role { font-size: clamp(.8125rem, 3.43vw, .9375rem); }
}
@media (orientation: landscape) and (max-height: 32rem) and (min-width: 36rem) {
  .landing-page .hero { min-height: 14.5rem; }
  .landing-page .hero-photo {
    inset: -2.7% .5rem auto auto;
    width: 52%; height: 115%;
  }
  .landing-page .hero-role { font-size: .875rem; }
}
@container profile (max-width: 20.5em) {
  .landing-page .hero-photo { width: 49%; }
  .landing-page .hero-role { max-width: 68%; }
  .landing-page .hero::before { background-size: 100% 100%, 100% 100%, 180% auto; }
  .landing-page .hero::after {
    background:
      linear-gradient(0deg, #101010, transparent 17%),
      linear-gradient(90deg, rgba(16,16,16,.96) 0%, rgba(16,16,16,.89) 18%, rgba(16,16,16,.67) 37%, rgba(16,16,16,.29) 57%, transparent 77%);
  }
}
/* Retain the existing reflow for very narrow screens and enlarged text. */
@container profile (max-width: 17.5em) {
  .landing-page .hero {
    min-height: 0;
    grid-template-columns: minmax(0,1fr) minmax(0,32%);
    align-items: start;
  }
  .landing-page .hero-content { display: contents; }
  .landing-page .hero-photo {
    position: static;
    width: 100%; height: auto;
    align-self: start;
    object-fit: contain;
    object-position: center top;
  }
  .landing-page .hero h1 { overflow-wrap: anywhere; }
  .landing-page .hero h1 .hero-surname { font-size: clamp(1.45rem, 7.1vw, 2rem); }
  .landing-page .hero-role, .landing-page .hero-links { max-width: 100%; }
  .landing-page .hero::after { display: block; }
}
