/* Zylonex's three photographic homepage banners. */
.home-hero {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #edf4f9;
}

.hero-slides {
  display: grid;
  isolation: isolate;
  cursor: grab;
  touch-action: pan-y;
}

.hero-slides:active { cursor: grabbing; }

.hero-slide {
  position: relative;
  grid-area: 1 / 1;
  min-width: 0;
  min-height: clamp(570px, 42vw, 730px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .7s ease, visibility .7s;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-slide__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(245, 249, 252, .96), rgba(245, 249, 252, .83) 30%, rgba(245, 249, 252, .15) 54%, transparent 66%);
  content: '';
}

.hero-slide__inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  align-items: center;
  padding-block: 66px 76px;
}

.hero-slide__copy {
  width: 52%;
  padding-left: clamp(24px, 2.5vw, 40px);
}

.hero-slide .eyebrow {
  max-width: 40ch;
  color: #315b80;
  font-size: .875rem;
  letter-spacing: .12em;
  line-height: 1.6;
}

.hero-slide .hero-title {
  max-width: none;
  margin: 26px 0 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 4.65vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.04;
  text-wrap: balance;
}

#hero-science .hero-title {
  font-size: clamp(2.85rem, 4.1vw, 4.8rem);
  white-space: nowrap;
  text-wrap: nowrap;
}

.hero-slide .hero-title em {
  color: var(--green-dark);
  font-weight: 500;
}

.hero-slide .hero-lead {
  max-width: 43ch;
  margin-top: 26px;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.75;
}

.hero-slide .button {
  min-height: 52px;
  padding-inline: 24px;
  border-radius: 2px;
}

.hero-controls {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-controls__inner,
.hero-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-controls__inner {
  width: 100%;
  max-width: none;
  height: 100%;
  padding-inline: clamp(16px, 2.5vw, 42px);
}

.hero-navigation {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-control {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(5px);
  pointer-events: auto;
  transition: background .2s ease, border-color .2s ease;
}

.hero-control:hover {
  border-color: var(--ink);
  background: var(--ice);
}

.hero-control--previous svg {
  transform: rotate(180deg);
}

.hero-control--previous {
  margin-left: 0;
}

.hero-navigation > .hero-control:not(.hero-control--previous):not(.hero-control--playback) {
  margin-right: 0;
}

.hero-control--playback {
  position: absolute;
  right: 0;
  bottom: 22px;
  border-color: transparent;
  font-size: 1.1rem;
}

.hero-counter {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  color: #536981;
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: auto;
}

.hero-counter > span {
  color: var(--ink);
}

@media (min-width: 1800px) {
  .hero-slide__image { object-position: center 44%; }
}

@media (max-width: 960px) {
  .hero-slide__copy { width: 58%; }
  .hero-slide::after {
    background: linear-gradient(90deg, rgba(245, 249, 252, .98), rgba(245, 249, 252, .9) 32%, rgba(245, 249, 252, .18) 68%, transparent);
  }
  .hero-navigation { gap: 8px; }
}

@media (max-width: 720px) {
  .hero-slide {
    display: flex;
    min-height: 0;
    flex-direction: column;
    background: #f1f6fa;
  }
  .hero-slide::after { display: none; }
  .hero-slide__inner {
    flex: 1;
    padding-block: 42px 32px;
  }
  .hero-slide__copy {
    width: 100%;
    padding-left: 0;
  }
  .hero-slide .eyebrow { max-width: 35ch; font-size: .875rem; }
  .hero-slide .hero-title { margin-top: 20px; font-size: clamp(2.65rem, 8.8vw, 3.8rem); }
  #hero-science .hero-title { font-size: clamp(1.7rem, 8vw, 2.7rem); }
  .hero-slide .hero-lead { max-width: 48ch; margin-top: 20px; font-size: 1rem; }
  .hero-slide .hero-actions { margin-top: 24px; }
  .hero-slide__image {
    position: relative;
    order: 2;
    height: clamp(240px, 52vw, 330px);
    object-position: 85% 50%;
  }
  .hero-controls__inner { padding-inline: 12px; }
  .hero-navigation { width: 100%; justify-content: space-between; }
  .hero-navigation > .hero-control--previous,
  .hero-navigation > .hero-control:not(.hero-control--previous):not(.hero-control--playback) {
    position: absolute;
    top: calc(100% - 165px);
    transform: translateY(-50%);
  }
  .hero-navigation > .hero-control--previous { left: 0; }
  .hero-navigation > .hero-control:not(.hero-control--previous):not(.hero-control--playback) { right: 0; }
  .hero-counter { bottom: 14px; }
  .hero-control--playback { right: 0; bottom: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}
