/* Scroll-linked reveal for the joined awards panel (pairs with the veil in
   awards-veil.css: the veil hands the whole section over from the black hero,
   this brightens the panel itself as it rises through the viewport, then
   fades in a bronze halo and a warm ambient wash — adapted from the
   awards scroll-reveal interaction study).

   Everything here is opt-in via .has-awards-glow, which main.js adds only when
   motion is allowed — with JS off or reduced motion the panel is fully lit. */

.daoyi-awards { --ambient: 0; isolation: isolate; }

/* Warm ambient wash behind the panel; opacity driven by main.js. Sits above
   the section background, below all content (negative z-index inside the
   section's own stacking context). */
.daoyi-awards::before {
  content: "";
  position: absolute;
  inset: -70px 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 62% 46% at 50% 56%, rgba(210, 161, 89, .22), transparent 75%);
  opacity: var(--ambient);
}

/* Panel brightness — progress is measured on the grid (layout position,
   unaffected by the filter we apply), applied to the cards. */
.daoyi-awards.has-awards-glow .daoyi-awards__card {
  filter: brightness(var(--panel-b, 1));
  opacity: var(--panel-o, 1);
  will-change: filter, opacity;
}

/* Bronze halo around the joined panel, same accent family as the kicker and
   the WINNER label; fades in with the same progress. Sits above the cards,
   below the veil, and never intercepts clicks. */
.daoyi-awards__grid { position: relative; }
.daoyi-awards__grid::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(146, 124, 102, .38),
              0 22px 66px rgba(146, 124, 102, .30);
  opacity: var(--panel-glow, 0);
}

@media (prefers-reduced-motion: reduce) {
  .daoyi-awards::before { display: none; }
  .daoyi-awards.has-awards-glow .daoyi-awards__card { filter: none; opacity: 1; }
  .daoyi-awards__grid::after { opacity: 0; }
}
