/* ========================================
   Awards — minimal recognition page
   ======================================== */

/* ---- Hero ---- */
.aw-hero {
  padding: 12rem var(--gutter) var(--space-xl);
}

.aw-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.aw-hero__title {
  font-size: clamp(3.5rem, 11vw, 9rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0;
  color: var(--color-text);
}

.aw-hero__subtitle {
  margin-top: 2rem;
  max-width: 34ch;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ---- Counters ---- */
.aw-stats {
  padding: 0 var(--gutter);
  margin-bottom: var(--space-2xl);
}

.aw-stats__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.aw-stat__count {
  display: block;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-text);
}

.aw-stat__name {
  display: block;
  margin-top: 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.aw-stat__desc {
  margin-top: 0.5rem;
  max-width: 32ch;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* ---- Groups ---- */
.aw-group {
  padding: 0 var(--gutter);
  margin-bottom: var(--space-2xl);
}

.aw-group__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.aw-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.aw-group__note {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}

/* ---- Row ---- */
.aw-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto 2rem;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  position: relative;
  transition: color 0.35s var(--ease);
}

/* accent wipe that grows from the left on hover */
.aw-row::before {
  content: '';
  position: absolute;
  left: calc(var(--gutter) * -0.5);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease);
}

.aw-row:hover::before,
.aw-row:focus-visible::before {
  transform: scaleY(1);
  transform-origin: top;
}

.aw-row__index {
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
  transition: color 0.35s var(--ease);
}

.aw-row__name {
  font-size: clamp(1.125rem, 2.2vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  transition: transform 0.4s var(--ease);
}

.aw-row__meta {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.aw-row__arrow {
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), color 0.35s var(--ease);
}

.aw-row:hover .aw-row__name,
.aw-row:focus-visible .aw-row__name {
  transform: translateX(8px);
}

.aw-row:hover .aw-row__index {
  color: var(--color-accent);
}

.aw-row:hover .aw-row__arrow,
.aw-row:focus-visible .aw-row__arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--color-accent);
}

/* ---- Reveal on scroll (progressive enhancement) ---- */
.aw-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.aw-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .aw-stats__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .aw-hero {
    padding-top: 8rem;
  }

  .aw-row {
    grid-template-columns: 2.25rem 1fr auto;
    gap: 1rem;
    padding: 1.25rem 0;
  }

  /* the meta label duplicates the group heading on narrow screens */
  .aw-row__meta {
    display: none;
  }

  .aw-row__arrow {
    opacity: 1;
    transform: none;
  }

  .aw-row:hover .aw-row__name {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aw-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .aw-row__name,
  .aw-row__arrow,
  .aw-row::before {
    transition: none;
  }
}

/* ---- Counter blur-in ---- */
.aw-stat__count [data-count] {
  display: inline-block;
}

[data-count].is-counting {
  filter: blur(var(--n-blur, 0px));
  opacity: var(--n-opacity, 1);
  will-change: filter, opacity;
}

/* ---- 16:9 project preview following the cursor ---- */
.aw-thumb {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: min(24vw, 340px);
  aspect-ratio: 16 / 9;
  border-radius: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform-origin: top left;
  transition: opacity 0.35s var(--ease), scale 0.45s var(--ease);
  scale: 0.94;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  border: 1px solid var(--color-border);
  will-change: transform, opacity;
}

.aw-thumb.is-on {
  opacity: 1;
  scale: 1;
}

.aw-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .aw-thumb { display: none; }
}

/* ---- Hero intro ----
   The heading itself uses the site-wide word reveal (.hero__word, built by the
   [data-split-words] pass in awards.js) so it matches every other page. Only
   the subtitle is styled here, fading in just behind the word that precedes it.
   It is opt-in via .is-intro and torn down by awards.js, so a stalled animation
   clock or disabled JS can cost the effect but never hide the text. */
.aw-hero__subtitle.is-intro {
  animation: awSubtitleIn 0.9s var(--ease) 0.35s both;
}

@keyframes awSubtitleIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aw-hero__subtitle.is-intro {
    animation: none;
  }
}

/* ---- WebGL stretch preview ----
   Sits above the page but below the cursor. It only ever draws while a row is
   hovered; the rest of the time the context is idle and nothing is rendered. */
.aw-gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 88;
  pointer-events: none;
}

/* The DOM preview is the fallback. Once WebGL is confirmed working it steps
   aside, so the two can never both be visible. */
:root.aw-gl-ok .aw-thumb {
  display: none;
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .aw-gl { display: none; }
}


/* ---- Hero title: word reveal, matched to the services hero ----
   Overrides copied 1:1 from the services hero so large display type sits
   correctly inside its clipping box. */
.aw-hero__title .case-hero__line {
  display: block;
}

.aw-hero__title .hero__word {
  vertical-align: top;
  margin-right: 0.22em;
  padding-bottom: 0.05em;
}
