/* ===================== HERO ===================== */
.mug-hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--jg-dark);
}

/* single pre-composited collage image — one request
   (assets/mugshot_photos/mugshots-collage.jpg) */
.mug-hero__collage {
  position: absolute;
  inset: 0;
  background: url('/assets/mugshot_photos/mugshots-collage.jpg') center / cover no-repeat;
}

.mug-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 23, 25, 0.62);
}

.mug-hero__content {
  position: relative;
  text-align: center;
  z-index: 1;
  padding: 0 24px;
}

.mug-hero__h1 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 100px);
  line-height: 1.0;
  color: var(--jg-light);
  margin: 0 0 18px;
}

.mug-hero__sub {
  font-family: 'Libre Franklin', sans-serif;
  font-size: clamp(17.5px, 1.4vw, 1.2rem);
  color: #B0B2B5;
  margin: 0;
}

/* ===================== HISTORY ===================== */
.mug-history {
  background: var(--jg-dark-inlay);
  padding: var(--spacer-lg) 0;
}

.mug-history__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.mug-history__h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.1;
  color: var(--jg-light);
  margin: 0 0 32px;
}

.mug-history__copy p {
  font-family: 'Libre Franklin', sans-serif;
  line-height: 1.75;
  margin: 0 0 20px;
}

.mug-history__copy p:last-child { margin-bottom: 0; }

.mug-history__photo {
  margin: 0;
}

.mug-history__photo img {
  display: block;
  width: 100%;
}

.mug-history__photo figcaption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #B0B2B5;
  margin-top: 14px;
}

.mug-history__year {
  color: var(--fg-accent);
}

@media (max-width: 900px) {
  .mug-history__grid {
    grid-template-columns: 1fr;
  }
  .mug-history__photo {
    max-width: 560px;
  }
}

/* ===================== WINNERS ===================== */
.mug-winners {
  background: var(--jg-dark);
  padding: var(--spacer-lg) 0;
}

.mug-winners__h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.1;
  color: var(--jg-light);
  margin: 0 0 40px;
}

/* justified row: flex-grow ∝ aspect ratio ⇒ every card in a row renders at
   the same height with its photo fully uncropped */
.mug-winners__row {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.mug-winners__row:last-child { margin-bottom: 0; }

.mug-winner {
  position: relative;
  margin: 0;
  overflow: hidden;
  flex: var(--ar) 1 0%;
  aspect-ratio: var(--ar);
}

.mug-winner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* card ratio == photo ratio, so this only absorbs rounding */
  transition: transform .45s cubic-bezier(.16,.84,.44,1);
}

.mug-winner:hover img { transform: scale(1.045); }

/* legibility gradient under the year label */
.mug-winner::after {
  content: '';
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(22, 23, 25, 0.82));
  pointer-events: none;
}

.mug-winner figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mug-winner__year {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1;
  color: var(--jg-light);
}

.mug-winner__name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #B0B2B5;
}

@media (max-width: 700px) {
  .mug-winners__row {
    display: block;
    margin-bottom: 0;
  }
  .mug-winner { margin-bottom: 20px; }
}

/* ===================== WALL ===================== */
/* collage blocks + lightbox live in photos-box.css; js/photos.js builds them */
.mug-wall {
  background: var(--jg-dark-inlay);
  padding: var(--spacer-lg) 0 0;
}

.mug-wall__wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 64px);
}

.mug-wall__h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.1;
  color: var(--jg-light);
  margin: 0 0 40px;
}
