h1, h2, h3,
.home-hero__title,
.home-benefits__title,
.home-links__title,
.home-link-block__title {
  font-family: var(--zl-font-display);
}

.home-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.home-hero__bg {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: min(78vh, 720px);
  padding: var(--zl-section-y) 1.25rem;
  overflow: hidden;
  isolation: isolate;
}

@media (max-width: 767.98px) {
  .home-hero__bg {
    min-height: min(70vh, 560px);
    padding: 2.5rem 1rem;
  }
}

.home-hero__media {
  position: absolute;
  inset: -3%;
  z-index: -1;
  background:
    linear-gradient(rgba(var(--zl-navy-rgb), 0.58), rgba(var(--zl-navy-rgb), 0.68)),
    image-set(
      url("../img/pexels-photo-1595387.webp") type("image/webp"),
      url("../img/pexels-photo-1595387.jpeg") type("image/jpeg")
    ) center / cover no-repeat;
  transform: scale(1);
  animation: home-ken-burns 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes home-ken-burns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.035);
  }
}

.home-hero__content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 1200px) {
  .home-hero__content {
    max-width: 54rem;
  }

  .home-hero__title {
    font-size: clamp(2rem, 3.2vw, 3rem);
  }
}

@media (min-width: 1400px) {
  .home-hero__content {
    max-width: 60rem;
  }
}

.home-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(16px);
  animation: home-hero-in 0.65s ease forwards;
  animation-delay: 0.1s;
}

.home-hero__title-main {
  display: block;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.home-hero__title-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.62em;
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0.9;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.home-hero__title-main .zl-text-accent {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.home-hero__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  font-family: var(--zl-font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 0.25rem;
  border-width: 1px;
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.65);
  background-color: transparent;
}

.home-hero__btn-secondary:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.home-hero__btn-secondary:focus-visible {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.home-hero__lead {
  margin: 0 0 1.75rem;
  font-family: var(--zl-font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(16px);
  animation: home-hero-in 0.65s ease forwards;
  animation-delay: 0.25s;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(16px);
  animation: home-hero-in 0.65s ease forwards;
  animation-delay: 0.4s;
}

@keyframes home-hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zl-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-serving {
  background-color: var(--zl-navy);
  color: #fff;
  padding: 1.1rem 0 1.25rem;
  overflow: hidden;
}

.home-serving__inner {
  text-align: center;
}

.home-serving__label {
  margin: 0 0 0.65rem;
  padding: 0 1rem;
  font-family: var(--zl-font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.72);
}

.home-serving__viewport {
  overflow: hidden;
  outline: none;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

.home-serving__viewport:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 4px;
}

.home-serving__track {
  display: flex;
  width: max-content;
  animation: home-marquee 60s linear infinite;
  will-change: transform;
}

.home-serving__viewport:hover .home-serving__track,
.home-serving__viewport:focus-within .home-serving__track {
  animation-play-state: paused;
}

.home-serving__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0 0.75rem;
}

.home-serving__list li {
  flex-shrink: 0;
  font-family: var(--zl-font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 0.35rem 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.2rem;
  white-space: nowrap;
}

.home-serving__list a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

.home-serving__list a:hover,
.home-serving__list a:focus-visible {
  text-decoration: underline;
  color: #fff;
}

@keyframes home-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.home-benefits {
  background-color: #eef1f5;
  padding: var(--zl-section-y) 1.25rem;
  border-top: 1px solid rgba(11, 47, 111, 0.12);
}

@media (min-width: 992px) {
  .home-benefits {
    padding-top: var(--zl-section-y-lg);
    padding-bottom: var(--zl-section-y-lg);
  }
}

@media (max-width: 767.98px) {
  .home-benefits {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home-benefits__item {
    padding: 1.05rem 0.85rem;
  }
}

.home-benefits__title {
  margin: 0 auto 2.25rem;
  text-align: center;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  max-width: 32rem;
  color: var(--zl-navy);
}

.home-benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: var(--zl-max-content);
  margin: 0 auto;
  border-top: 1px solid rgba(11, 47, 111, 0.12);
}

@media (min-width: 768px) {
  .home-benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.home-benefits__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.9rem;
  text-align: left;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid rgba(11, 47, 111, 0.12);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    background-color 0.2s ease;
}

@media (min-width: 768px) {
  .home-benefits__item:nth-child(odd) {
    border-right: 1px solid rgba(11, 47, 111, 0.12);
  }
}

.home-benefits__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-benefits__item:nth-child(1) {
  transition:
    opacity 0.5s ease 0.05s,
    transform 0.5s ease 0.05s,
    background-color 0.2s ease;
}
.home-benefits__item:nth-child(2) {
  transition:
    opacity 0.5s ease 0.1s,
    transform 0.5s ease 0.1s,
    background-color 0.2s ease;
}
.home-benefits__item:nth-child(3) {
  transition:
    opacity 0.5s ease 0.15s,
    transform 0.5s ease 0.15s,
    background-color 0.2s ease;
}
.home-benefits__item:nth-child(4) {
  transition:
    opacity 0.5s ease 0.2s,
    transform 0.5s ease 0.2s,
    background-color 0.2s ease;
}
.home-benefits__item:nth-child(5) {
  transition:
    opacity 0.5s ease 0.25s,
    transform 0.5s ease 0.25s,
    background-color 0.2s ease;
}
.home-benefits__item:nth-child(6) {
  transition:
    opacity 0.5s ease 0.3s,
    transform 0.5s ease 0.3s,
    background-color 0.2s ease;
}

@media (hover: hover) {
  .home-benefits__item.is-visible:hover {
    background-color: rgba(11, 47, 111, 0.04);
  }
}

.home-benefits__icon {
  --bs-icon-size: 1.35rem;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  font-size: var(--bs-icon-size);
  color: var(--zl-orange);
  background: transparent;
  border-radius: 0;
}

.home-benefits__item h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--zl-navy);
  line-height: 1.3;
}

.home-links {
  padding: var(--zl-section-y) 1.25rem;
}

.home-links__title {
  margin: 0 auto 2.25rem;
  text-align: center;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  max-width: 32rem;
  color: var(--zl-navy);
}

@media (min-width: 992px) {
  .home-links {
    padding-top: var(--zl-section-y-lg);
    padding-bottom: var(--zl-section-y-lg);
  }
}

@media (max-width: 767.98px) {
  .home-links {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.home-links__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 1.75rem;
  max-width: var(--zl-max);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .home-links__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1400px) {
  .home-links__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-link-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.home-link-block__media {
  width: 100%;
  margin-bottom: 0.95rem;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  box-shadow: var(--zl-shadow-soft);
  border-radius: 0.15rem;
}

.home-link-block__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.home-link-block .btn {
  margin-top: auto;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-link-block:hover .home-link-block__img,
.home-link-block:focus-within .home-link-block__img {
  transform: scale(1.03);
}

.home-link-block__title {
  position: relative;
  display: inline-block;
  margin: 0 0 0.45rem;
  padding-bottom: 0.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--zl-navy);
  line-height: 1.25;
}

@media (min-width: 768px) {
  .home-link-block__title {
    font-size: 1.2rem;
  }
}

@media (min-width: 1400px) {
  .home-link-block__title {
    font-size: 1.1rem;
  }
}

.home-link-block__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--zl-orange);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.home-link-block:hover .home-link-block__title::after,
.home-link-block:focus-within .home-link-block__title::after {
  width: 2.5rem;
}

.home-link-block__text {
  margin: 0 0 1.1rem;
  flex: 1 1 auto;
  color: #151719;
  line-height: 1.5;
  font-size: 0.98rem;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__media {
    animation: none;
    transform: none;
    inset: 0;
  }

  .home-hero__title,
  .home-hero__lead,
  .home-hero__actions {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .home-serving__viewport {
    mask-image: none;
    -webkit-mask-image: none;
    overflow: visible;
    padding: 0 1rem;
  }

  .home-serving__track {
    display: block;
    width: auto;
    animation: none;
  }

  .home-serving__list--clone {
    display: none !important;
  }

  .home-serving__list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .home-serving__list li {
    white-space: normal;
  }

  .home-benefits__item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .home-link-block__img {
    transition: none;
  }

  .home-link-block:hover .home-link-block__img,
  .home-link-block:focus-within .home-link-block__img {
    transform: none;
  }

  .home-link-block__title::after {
    transition: none;
  }
}
