/* Approved mobile layout: the document owns scrolling; overlays keep dynamic height. */
html {
  min-height: 100%;
  overflow-x: clip;
  scroll-padding-top: 106px;
}

body {
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: visible;
}

body > .fixed {
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: visible;
}

body {
  --site-header-height: 90px;
}

header {
  height: var(--site-header-height);
}

.nav-mobile {
  top: var(--site-header-height);
  height: calc(100dvh - var(--site-header-height));
}

.nav-mobile .wrapper {
  max-height: 100%;
}

.cookie-banner .banner {
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

footer {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html.site-menu-open {
  overflow: hidden;
}

body.site-menu-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

@media (max-width: 767px) {
  body {
    --site-header-height: 72px;
  }
  html {
    scroll-padding-top: 88px;
  }
  header {
    padding-top: 11px;
    padding-bottom: 11px;
  }
  #home .hero.home-hero {
    margin-top: var(--site-header-height);
    height: auto;
    min-height: 0;
  }
  #home .home-hero .home-hero__layout {
    min-height: 0;
    display: grid;
    grid-template-rows: auto clamp(150px, 23svh, 195px) auto;
    padding-top: 30px;
    padding-bottom: 18px;
  }
  #home .home-hero .home-hero__copy {
    grid-row: 1;
    width: 100%;
    margin: 0;
    padding-bottom: 0;
  }
  #home .home-hero__eyebrow {
    margin-bottom: 18px;
    font-size: 10px;
    letter-spacing: 0.05em;
  }
  #home .home-hero h1 {
    font-size: clamp(37px, 10.3vw, 51px);
    line-height: 1.08;
  }
  #home .home-hero__description {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 20px;
    max-width: 36ch;
  }
  #home .home-hero__actions {
    margin-top: 22px;
    gap: 12px;
  }
  #home .home-hero__actions .btn-1,
  #home .home-hero__actions .btn-2 {
    min-height: 46px;
  }
  #home .home-hero__footer {
    grid-row: 3;
    margin-top: 0;
    padding-top: 16px;
    gap: 12px;
  }
  #home .home-hero__disciplines {
    font-size: 9px;
  }
  #home .home-hero .home-hero__visual {
    top: auto;
    bottom: 66px;
    height: clamp(150px, 23svh, 195px);
  }
  #home .home-hero .home-hero__visual img {
    width: 155%;
    object-position: right center;
  }
  #home .home-hero::before {
    background: linear-gradient(180deg, #010101 0%, #010101 calc(100% - 261px), transparent calc(100% - 211px), transparent calc(100% - 95px), #010101 calc(100% - 55px));
  }
  input, select, textarea {
    font-size: max(16px, 1em);
  }
}
@media (max-width: 359px) {
  #home .home-hero__actions {
    gap: 10px;
  }
  #home .home-hero__disciplines {
    font-size: 8px;
    gap: 6px;
  }
}
/* The upper fade follows the image box, including short iPhone viewports. */
@media (max-width: 767px) {
  #home .home-hero .home-hero__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, #010101 0%, rgba(1, 1, 1, 0.94) 7%, rgba(1, 1, 1, 0.65) 17%, rgba(1, 1, 1, 0.25) 29%, rgba(1, 1, 1, 0) 42%);
  }
  #home .home-hero::before {
    background: linear-gradient(0deg, #010101 0px, #010101 55px, transparent 95px);
  }
}
