/*
 * ZeltenLabs site shell
 *
 * Layout and interaction rules shared by every marketing page live here.
 * Page-specific animation and grid rules remain next to the page markup.
 */

html {
  min-width: 320px;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
}

body {
  min-width: 320px;
  overflow-x: clip;
}

img,
video,
svg {
  max-width: 100%;
}

image-slot {
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.zl-burger {
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.zl-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink-950);
  color: #fff;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 120ms ease;
}

.zl-skip-link:focus {
  transform: translateY(0);
}

@media (max-width: 980px) {
  .zl-desktop-nav {
    display: none !important;
  }

  .zl-burger {
    display: flex !important;
  }
}

@media (max-width: 600px) {
  .zl-feat {
    grid-template-columns: 1fr !important;
  }

  /* Keep the mountain's peak in frame when wide hero art is cropped to a phone. */
  .zl-parallax,
  .zl-home-hero-video {
    object-position: 68% center !important;
  }

  .zl-home-hero {
    min-height: min(780px, 100svh);
    padding-top: 112px !important;
    padding-bottom: 44px !important;
  }

  .zl-home-hero-media {
    inset: auto 0 0 !important;
    height: 96% !important;
  }

  .zl-home-hero-media::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.84) 31%, rgba(255, 255, 255, 0.18) 68%, rgba(255, 255, 255, 0.48) 100%);
    content: "";
  }

  .zl-home-hero-video {
    height: 100% !important;
  }

  .zl-hero-kicker {
    display: grid !important;
    width: fit-content;
    max-width: 100%;
    grid-template-columns: auto 1px minmax(0, 1fr);
    border-radius: 14px !important;
    line-height: 1.3;
  }

  .zl-hero-kicker > span:last-child {
    font-size: 11.5px !important;
  }

  .zl-home-hero h1 {
    font-size: clamp(39px, 12.3vw, 54px) !important;
    line-height: 0.98 !important;
  }

  .zl-hero-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px !important;
    margin-top: 28px !important;
  }

  .zl-hero-actions > a {
    display: flex !important;
    width: 100%;
  }

  .zl-hero-actions > a > span,
  .zl-hero-actions > a:nth-child(2) {
    padding-inline: 12px !important;
  }

  .zl-hero-stats {
    display: grid !important;
    gap: 8px !important;
    margin-top: 28px !important;
    font-size: 12px !important;
  }

  .zl-hero-stats > span:nth-child(even) {
    display: none;
  }
}

@media (max-width: 380px) {
  .zl-hero-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
