/* How it works: sticky title and step list on the left, one big block per step on the right.
   The active step (scroll position, set by how.js) is navy with a lime bar; the rest are dimmed. */
.how { z-index: 1; background: var(--gray-200); color: var(--ink); }

.how__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); }
.how__title { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4rem); max-width: 12ch; }
.how__lede { margin-top: 1.5rem; max-width: 30rem; color: var(--ink-soft); }
.how__nav { display: none; }

.how__steps { display: grid; gap: 1.25rem; }
.step {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg); background: var(--white);
  box-shadow: 0 24px 40px -28px rgb(16 16 45 / .45);
}
/* Photo full bleed on top, same card radius as the honorees. The img is taller than its frame so
   how.js can drift it inside (parallax) without ever exposing an edge. */
.step__media {
  position: relative; overflow: hidden; margin: 0; aspect-ratio: 4 / 3; background: var(--gray-200);
  container-type: inline-size; /* the numeral scales with the card, not the viewport */
}
.step__media img {
  position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover;
}
/* Until how.js swaps data-src in, the photo has no source: keep the empty <img> (and its alt text) invisible.
   Without JS the <noscript> twin is the one that shows. */
.step__media img[data-src] { visibility: hidden; }
/* Navy scrim concentrated behind the numeral (bottom right) so the lime digit holds at least 3:1
   (large text, AA) over any photo, without dimming the rest of the picture. */
.step__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 58% 78% at 100% 100%, rgb(16 16 45 / .92) 0%, rgb(16 16 45 / .78) 50%, rgb(16 16 45 / 0) 100%),
    linear-gradient(to top, rgb(16 16 45 / .4) 0%, rgb(16 16 45 / 0) 38%);
}
.step__num {
  position: absolute; z-index: 1; right: clamp(1.25rem, 3vw, 2.25rem); bottom: -.14em;
  font-size: clamp(5rem, 26cqw, 10rem); font-weight: 900; line-height: 1; letter-spacing: -0.04em;
  color: var(--lime); font-variant-numeric: tabular-nums;
}
.step__body { padding: clamp(1.5rem, 3.4vw, 2.5rem); padding-top: clamp(1.5rem, 3vw, 2.25rem); }
.step__title {
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); font-weight: 900; line-height: 1.05; letter-spacing: var(--track-display);
  margin-bottom: 1rem;
}
.step p { max-width: 30rem; font-size: var(--fs-lede); text-wrap: pretty; color: var(--ink-soft); }

@media (min-width: 720px) { .step__media { aspect-ratio: 3 / 2; } }

/* Who can be nominated */
.who {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  display: grid; gap: 1.75rem clamp(2rem, 5vw, 5rem); align-items: start;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(1.75rem, 5vw, 4rem);
  border-radius: var(--radius-lg); background: var(--navy);
}
.who::after {
  content: ""; position: absolute; z-index: -1; right: -8rem; bottom: -10rem; width: 26rem; aspect-ratio: 1;
  border-radius: 50%; background: radial-gradient(closest-side, rgb(73 248 57 / .22), transparent);
}
.who__title { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); font-weight: 900; line-height: 1.05; letter-spacing: var(--track-display); }
.who__body > p { margin-bottom: 1.25rem; font-weight: 800; font-size: 1.1875rem; }
.who ul { display: grid; gap: 1rem; }
.who li { display: flex; gap: 1rem; align-items: flex-start; font-size: var(--fs-lede); color: var(--on-dark-soft); }
.who__check {
  flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; margin-top: .1rem;
  border-radius: 50%; background: var(--lime); color: var(--navy-900); font-size: 1rem;
}

@media (min-width: 720px) {
  .who { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}

/* Desktop: the left column sticks while the steps scroll past it. */
@media (min-width: 1024px) {
  .how__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(3rem, 6vw, 6rem); }
  .how__sticky { position: sticky; top: clamp(4.5rem, 10vh, 7rem); }
  .how__steps { gap: 1.75rem; }

  .how__nav { display: block; margin-top: 2rem; }
  .how__nav ol { display: grid; gap: .5rem; }
  .how__nav a {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 1rem;
    padding: .85rem 1.25rem .85rem 1.5rem; border-radius: var(--radius-md);
    font-weight: 800; font-size: 1.1875rem; text-decoration: none;
    color: var(--ink-soft);
    transition: background-color .35s var(--ease-out), color .35s var(--ease-out), padding .35s var(--ease-out);
  }
  .how__nav a::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: .375rem;
    background: var(--lime); transform: scaleY(0); transform-origin: 50% 50%;
    transition: transform .35s var(--ease-out);
  }
  .how__navnum { font-size: .9375rem; font-variant-numeric: tabular-nums; opacity: .8; }
  .how__nav a.is-active { background: var(--navy); color: var(--white); padding-left: 1.75rem; }
  .how__nav a.is-active::before { transform: scaleY(1); }
}
@media (hover: hover) {
  .how__nav a:not(.is-active):hover { background: rgb(32 32 92 / .08); color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  .how__nav a, .how__nav a::before { transition: none; }
}
