/* Section 3 — Gateway: one huge orange media card that grows on scroll */

.gateway {
  padding-top: clamp(70px, 9.5vh, 116px);
  text-align: center;
}

.gateway__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(15px, 2vh, 20px);
  max-width: 760px;
  margin: 0 auto clamp(30px, 4.4vh, 46px);
}

.gateway__title {
  max-width: 13ch;
  font-size: clamp(2.6rem, 5.1vw, 4.4rem);
}

.gateway__title .accent-faint {
  color: var(--faint);
}

.gateway__wide {
  width: min(calc(100% - (var(--gutter) * 2)), 1320px);
  margin-inline: auto;
}

.gateway__card {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(120% 135% at 50% -12%, #ff946f 0%, #ff6a3d 52%, #ef5122 100%);
  box-shadow:
    0 2px 6px rgba(24, 24, 27, 0.08),
    0 42px 80px -46px rgba(24, 24, 27, 0.55);
  transform-origin: 50% 62%;
  isolation: isolate;
}

.gateway__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.gateway__slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.gateway__slide {
  position: absolute;
  top: 8.5%;
  right: 10.5%;
  bottom: 0;
  left: 10.5%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 0;
  border-radius: 13px 13px 0 0;
  background: var(--paper-raised);
  box-shadow: 0 34px 70px -28px rgba(59, 16, 4, 0.55);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 460ms var(--ease-soft), transform 700ms var(--ease-out);
}

.gateway__slide.is-active {
  opacity: 1;
  transform: none;
}

.gateway__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  user-select: none;
  -webkit-user-drag: none;
}

.gateway__pills {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.gateway__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  box-shadow: 0 10px 22px -14px rgba(59, 16, 4, 0.55);
}

.gateway__pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.gateway__pill--light {
  background: #fff;
  color: var(--ink);
}

.gateway__pill--light i {
  background: var(--green);
}

.gateway__pill--dark {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--black);
  color: #fff;
}

.gateway__pill--dark i {
  background: var(--orange);
}

.gateway__dots {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 10px 3px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 15px;
  letter-spacing: 1.6px;
  line-height: 1;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.gateway__controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.gateway__controls > * {
  pointer-events: auto;
}

.gateway__watch {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  min-height: 40px;
  padding-inline: 16px;
  border-color: transparent;
  box-shadow: 0 12px 28px -18px rgba(59, 16, 4, 0.7);
}

.gateway__watch:hover {
  box-shadow: 0 16px 34px -18px rgba(59, 16, 4, 0.7);
}

.gateway__watch-icon {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}

.gateway__watch-icon svg {
  width: 7px;
  height: 7px;
  opacity: 1;
  transform: translateX(0.5px);
}

.gateway__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 900px) {
  .gateway__card {
    aspect-ratio: 16 / 8.4;
  }

  .gateway__slide {
    top: 17%;
    right: 7%;
    left: 7%;
  }
}

@media (max-width: 640px) {
  .gateway__head {
    margin-bottom: 26px;
  }

  .gateway__card {
    aspect-ratio: 4 / 3.2;
    border-radius: 15px;
  }

  .gateway__slide {
    top: 18%;
    right: 5.5%;
    left: 5.5%;
    border-radius: 10px 10px 0 0;
  }

  .gateway__pills {
    top: 11px;
    left: 11px;
  }

  .gateway__pill {
    padding: 6px 9px;
    font-size: 11px;
  }

  .gateway__dots {
    top: 11px;
    right: 11px;
  }

  .gateway__controls {
    right: 11px;
    bottom: 11px;
    left: 11px;
  }

  .gateway__watch {
    min-height: 36px;
    padding-inline: 13px;
    font-size: 12px;
  }

  .gateway__watch-icon {
    width: 15px;
    height: 15px;
  }
}

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