main {
  position: relative;
}

main::before {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1024px;
  background-image: url("../images/awards-light.png");
  background-size: cover;
  pointer-events: none;
  z-index: -1;
}

main::before {
  top: 0;
}

main::after {
  content: "";
  position: absolute;
  bottom: -70px;
  left: 0;
  width: 100%;
  height: 1024px;
  background-image: url("../images/awards-light.png");
  background-size: cover;
  background-position-x: center;
  pointer-events: none;
  transform: rotate(-180deg);
  z-index: -1;
}

#particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 600px;
  pointer-events: none;
  z-index: -1;
}

#particles-cta {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 800px;
  pointer-events: none;
  z-index: 0;
}

/* AWARDS SHOWCASE */
.awards-showcase {
  position: relative;
  padding-bottom: 8rem;
}

.awards-showcase .container {
  max-width: 80%;
}

.awards-showcase__layout {
  display: flex;
  gap: 2.5rem;
  align-items: stretch;
  position: relative;
}

/* --- Grid (default: centered 3-col) --- */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Award Card (left: program bg on ::before so only image rotates, not text) --- */
.award-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border: 1px solid #1e293b;
  outline: none;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.award-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.award-card[data-program="fvp"]::before {
  background-image: url("../images/fvp-bg.png");
}

.award-card[data-program="idd"]::before {
  background-image: url("../images/idd-bg.png");
}

.award-card[data-program="rtbn"]::before {
  background-image: url("../images/rtbn-bg.png");
}

.award-card[data-program="ignite"]::before {
  background-image: url("../images/ignite-bg.png");
}

/* Column rotation: image only (::before). 1st = 0°, 2nd = 90°, 3rd = 180° */
.award-card:nth-child(3n + 2)::before {
  transform: rotate(90deg);
}

.award-card:nth-child(3n)::before {
  transform: rotate(180deg);
}

.award-card__label {
  position: relative;
  font-size: 1rem;
  line-height: 120%;
  z-index: 1;
  text-align: center;
  padding: 0.5rem;
  text-shadow:
    -6px 66px 19px rgba(0, 0, 0, 0),
    -4px 42px 17px rgba(0, 0, 0, 0.01),
    -2px 24px 14px rgba(0, 0, 0, 0.05),
    -1px 11px 11px rgba(0, 0, 0, 0.09),
    0 3px 6px rgba(0, 0, 0, 0.1);
}

.award-card.is-selected {
  border-color: var(--red-light);
  /* box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 24px -4px var(--light); */
}

.awards-showcase__layout.is-detail-open .award-card:not(.is-selected) {
  opacity: 0.65;
}

.awards-showcase__layout.is-detail-open .award-card:not(.is-selected):hover {
  opacity: 1;
}

/* --- Detail Panel --- */
.award-detail {
  position: relative;
  width: 0;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  flex-shrink: 0;
  transition:
    width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease 0.1s;
}

.awards-showcase__layout.is-detail-open .award-detail {
  width: 45%;
  opacity: 1;
}

.award-detail__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.85);
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.award-detail__close:hover {
  background: rgba(15, 23, 42, 1);
}

.award-detail__image {
  width: 100%;
  overflow: hidden;
}

.award-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.award-detail__program {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.award-detail-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem;
  text-align: center;
  padding-bottom: 3rem;
  width: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 100%);
}

.award-detail__title {
  font-size: var(--font-h3);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1rem;
  line-height: 1;
}

.award-detail__desc {
  font-size: var(--font-small);
  color: rgba(246, 243, 240, 0.8);
  line-height: 140%;
}

/* --- CTA --- */
.awards-cta {
  text-align: center;
  padding-bottom: 10rem;
}

.awards-cta h2 {
  font-size: var(--font-h2);
  margin-bottom: 2.5rem;
}

/* --- Responsive --- */
@media screen and (max-width: 1024px) {
  .awards-showcase__layout {
    flex-direction: column;
  }

  .awards-grid {
    width: 100% !important;
  }

  .award-detail {
    width: 100% !important;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.4s ease 0.1s;
  }

  .awards-showcase__layout.is-detail-open .award-detail {
    max-height: 1200px;
    opacity: 1;
  }
}

@media screen and (max-width: 640px) {
  .awards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* 2-col: only 2nd column image rotates 90° */
  .award-card:nth-child(3n)::before {
    transform: rotate(0deg);
  }

  .award-card:nth-child(2n)::before {
    transform: rotate(90deg);
  }

  .awards-cta {
    padding-bottom: 8rem;
  }
}

@media screen and (max-width: 480px) {
  .awards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .awards-showcase .container {
    max-width: 100%;
  }
}

/* Animated gradient orbs – scattered, subtle */
.mask_animation-bg {
  z-index: -2;
  filter: blur(80px);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
}

[bg-animation-gradient] .circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.22;
  animation: moveAround ease-in-out infinite;
}

@keyframes moveAround {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(4vw, -3vw);
  }
  50% {
    transform: translate(-3vw, 5vw);
  }
  75% {
    transform: translate(3vw, 2vw);
  }
  100% {
    transform: translate(0, 0);
  }
}
