.page-c {
  background: var(--surface-alt);
}

.hero {
  --field: #0546ef;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: clamp(720px, 100svh, 980px);
  padding-top: var(--nav-h);
  padding-bottom: clamp(24px, 3.4vh, 40px);
  overflow: hidden;
  background: var(--field);
  color: #fff;
}

.hero-end {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
}

.hero-media {
  position: absolute;
  inset: 0 0 96px 0;
  z-index: -1;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 30%, #000 54%), linear-gradient(to bottom, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, transparent 30%, #000 54%), linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-composite: intersect;
}

.media-img {
  position: absolute;
  top: 0;
  right: -11%;
  height: 100%;
  width: auto;
  max-width: none;
  opacity: 0;
  visibility: hidden;
  transform-origin: 70% 50%;
}

.media-img.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-top {
  grid-row: 1;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 860px;
  padding-block: 40px 56px;
}

.hero-title {
  font-size: clamp(46px, 4.6vw, 82px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.038em;
}

.hero-sub {
  margin-top: 28px;
  max-width: 34ch;
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.55;
  color: #e4eaff;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.page-c .btn-ghost-dark {
  background: rgba(255, 255, 255, 0.14);
}

.page-c .btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.22);
}

.picker-wrap {
  grid-row: 2;
}

.picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pick {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 20px 16px;
  border-radius: 22px;
  background: rgba(3, 20, 92, 0.34);
  overflow: hidden;
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

.pick:hover {
  background: rgba(3, 20, 92, 0.5);
}

.pick.is-active {
  background: #fff;
  color: var(--blue-950);
}

.pick-btn {
  text-align: left;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.pick-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.pick-btn:focus-visible {
  outline: none;
}

.pick-btn:focus-visible::after {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.pick.is-active .pick-btn:focus-visible::after {
  outline-color: var(--blue-500);
}

.pick-meta {
  font-size: 14.5px;
  color: #d6defc;
  transition: color 0.4s var(--ease-out);
}

.pick.is-active .pick-meta {
  color: var(--ink-soft);
}

.pick-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  margin-top: 12px;
}

.pick-price {
  font-size: 17px;
  font-weight: 800;
}

.pick-price small {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.85;
}

.pick-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--pill);
  background: var(--blue-600);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out), background-color 0.25s var(--ease-out);
}

.pick.is-active .pick-link {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.pick-link:hover {
  background: var(--blue-700);
}

.pick-link i {
  transition: transform 0.3s var(--ease-out);
}

.pick-link:hover i {
  transform: translateX(3px);
}

.pick-progress {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--blue-500);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.hero.is-auto .pick.is-active .pick-progress {
  animation: pick-progress 6.5s linear forwards;
}

.hero.is-auto:has(.picker:hover) .pick.is-active .pick-progress,
.hero.is-auto:has(.picker:focus-within) .pick.is-active .pick-progress,
.hero.is-offscreen .pick.is-active .pick-progress {
  animation-play-state: paused;
}

@keyframes pick-progress {
  to {
    transform: scaleX(1);
  }
}

.js-intro .hero-title .reveal-line > span {
  transform: translateY(108%);
}

.js-intro .hero-sub,
.js-intro .hero-ctas,
.js-intro .pick,
.js-intro .hero-media {
  opacity: 0;
}

@media (max-width: 1279px) {
  .picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-media {
    inset: 0 0 200px 0;
  }
}

@media (max-width: 1079px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-bottom: 48px;
  }

  .hero-top {
    order: 1;
  }

  .hero-copy {
    padding-block: 40px 0;
  }

  .hero-title {
    font-size: clamp(36px, 9.6vw, 64px);
  }

  .hero-sub {
    margin-top: 20px;
  }

  .hero-ctas {
    margin-top: 28px;
  }

  .hero-media {
    order: 2;
    position: relative;
    inset: auto;
    z-index: 0;
    height: clamp(260px, 68vw, 480px);
    margin-top: 16px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%);
  }

  .media-img {
    right: -12%;
  }

  .picker-wrap {
    order: 3;
  }

  .pick {
    padding: 14px 16px 12px;
  }

  .pick-btn,
  .pick-price {
    font-size: 16px;
  }

  .pick-meta {
    display: none;
  }

  .pick-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
  }

  .pick-link {
    display: none;
  }

  .pick.is-active .pick-link {
    display: inline-flex;
  }
}

@media (max-width: 420px) {
  .hero-ctas .btn {
    flex: 1 1 100%;
  }
}
