.atg-hero-deck-wrap {
  width: 100%;
  overflow: hidden;
}

.atg-hero-deck {
  --atg-featured-w: 292px;
  display: flex;
  width: max-content;
  min-width: 100%;
  /* Held at the featured card height so the copy below never shifts while a
     card grows. Hero.tsx refines this with the measured label-row height. */
  min-height: calc(var(--atg-featured-w) * 1.35 + 30px);
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: 8px 24px 0;
}

.atg-hero-card {
  flex: 0 0 auto;
  width: 168px;
  transition:
    width 600ms cubic-bezier(0.42, 0, 0.58, 1),
    margin 600ms cubic-bezier(0.42, 0, 0.58, 1);
}

.atg-hero-card.is-featured {
  width: var(--atg-featured-w);
  margin: 0 6px;
}

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

.atg-hero-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.atg-hero-card-face {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4.05;
  border-radius: 18px;
  background: #0a0d12;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transition:
    border-radius 600ms cubic-bezier(0.42, 0, 0.58, 1),
    border-color 600ms cubic-bezier(0.42, 0, 0.58, 1),
    box-shadow 600ms cubic-bezier(0.42, 0, 0.58, 1);
}

.atg-hero-card.is-featured .atg-hero-card-face {
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
}

.atg-hero-card.is-featured .atg-hero-card-face {
  border-radius: 22px;
  border-color: rgba(255, 255, 255, 0.16);
}

.atg-hero-rank {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.atg-hero-rank span {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: font-size 600ms cubic-bezier(0.42, 0, 0.58, 1);
}

.atg-hero-card.is-featured .atg-hero-rank span {
  font-size: 22px;
}

.atg-hero-rank--tl {
  top: 10px;
  left: 10px;
}

.atg-hero-rank--br {
  right: 10px;
  bottom: 10px;
  transform: rotate(180deg);
}

.atg-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 36px;
}

.atg-hero-copy-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.atg-hero-copy-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.atg-hero-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.atg-hero-title {
  margin: 0;
  width: 100%;
  color: #fff;
  font-size: clamp(40px, 12vw, 92px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.88;
  text-transform: uppercase;
}

.atg-hero-aside {
  margin: 0;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .atg-hero-deck {
    --atg-featured-w: 318px;
    gap: 22px;
    padding-inline: 0;
  }

  .atg-hero-card {
    width: 176px;
  }

  .atg-hero-copy {
    flex-direction: row;
    align-items: flex-end;
    gap: 48px;
    padding-top: 56px;
  }

  .atg-hero-copy-main {
    flex: 1 1 auto;
  }

  .atg-hero-copy-side {
    flex: 0 0 auto;
    align-items: flex-end;
    gap: 16px;
    padding-bottom: 6px;
  }

  .atg-hero-aside {
    text-align: right;
  }

  .atg-hero-title {
    white-space: nowrap;
  }
}

@media (max-width: 1023px) {
  .atg-hero-deck-wrap {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .atg-hero-deck-wrap::-webkit-scrollbar {
    display: none;
  }

  .atg-hero-deck {
    justify-content: flex-start;
  }
}

@media (max-width: 639px) {
  .atg-hero-deck {
    --atg-featured-w: 210px;
  }

  .atg-hero-card {
    width: 132px;
  }

  .atg-hero-kicker {
    font-size: 18px;
  }
}

