/* Bands 4 and 4b: who has stood on the stage (portraits) and last year's edition (photos, sessions,
   the speaker mix). Loaded after bands-conviction.css, which still owns the speaker-mix card. */

/* ---------- 4 · Portraits ---------- */

/* Four across on a desktop, two on a phone. The photos are black and white at rest, like the brand's
   own photography; the name takes the accent on hover and the frame lifts. */
.faces {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.75rem, 1rem + 2vw, 3rem) clamp(1rem, 0.5rem + 1.5vw, 2rem);
}

.face__link {
  display: grid;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
  border-radius: 20px;
}

.face__link:focus-visible {
  outline: 2px solid var(--color-violet);
  outline-offset: 6px;
}

.face__frame {
  display: block;
  margin-bottom: 0.65rem;
  overflow: hidden;
  border-radius: 20px;
  background: var(--color-surface-soft);
  aspect-ratio: 4 / 5;
}

.face__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

/* Block, not flex, so a wrapped name keeps its arrow on the last line */
.face__name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--display-6);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-plum);
  transition: color var(--duration-normal) var(--ease-out-expo);
}

/* 45° arrow: the person's public page */
.face__arrow {
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-left: 0.3em;
  vertical-align: 0.12em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--duration-normal) var(--ease-spring);
}

.face__name {
  text-wrap: balance;
}

.face__role {
  font-size: var(--text-small);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-muted);
  text-wrap: pretty;
}

@media (hover: hover) {
  .face__link:hover .face__photo {
    transform: scale(1.04);
  }

  .face__link:hover .face__name {
    color: var(--color-violet);
  }

  .face__link:hover .face__arrow {
    transform: translate(0.12em, -0.12em);
  }
}

/* The other names: one quiet wrapping line under a stitch */
.faces-also {
  display: grid;
  grid-template-columns: minmax(0, 0.25fr) minmax(0, 1fr);
  gap: 0.75rem 2rem;
  margin-top: var(--space-band-tight);
  padding-top: 1.5rem;
  background-image: var(--stitch);
  background-size: var(--stitch-pitch) var(--stitch-dot);
  background-repeat: repeat-x;
  background-position: 0 0;
}

.faces-also__title {
  margin: 0;
  font-size: var(--text-caps);
  font-weight: 700;
  letter-spacing: var(--caps-tracking);
  text-transform: uppercase;
  color: var(--color-plum);
}

.faces-also__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-navy);
}

/* A thin slash after every name but the last */
.faces-also__list li:not(:last-child)::after {
  content: "/";
  margin: 0 0.6em;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* ---------- 4b · Last year at ICH ---------- */

.band--recap {
  background-color: var(--color-surface-soft);
  background-image: var(--grid);
  background-size: var(--grid-size) var(--grid-size);
}

/* Bento: the stage photo leads at two by two, four smaller photos around it */
.recap-photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.5rem, 0.25rem + 0.8vw, 1rem);
}

.recap-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 3 / 2;
  background: var(--color-navy);
}

.recap-photo--lead {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.recap-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition:
    filter var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
}

/* The caption sits on a navy scrim at the foot of the photo */
.recap-photo figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1rem 0.85rem;
  font-size: var(--text-small);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-white);
  background: linear-gradient(to top, color-mix(in oklab, var(--color-navy) 82%, transparent), transparent);
  text-wrap: balance;
}

/* Colour comes back on hover, as on the partner logos */
@media (hover: hover) {
  .recap-photo:hover img {
    filter: none;
    transform: scale(1.03);
  }
}

/* Sessions: format, title, who. Three across, a stitch above each, no markers. */
.sessions {
  margin-top: var(--space-band-tight);
}

.sessions__title,
.band--recap .stage__mix .eyebrow {
  margin: 0 0 1.25rem;
}

.sessions__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--display-5);
  color: var(--color-plum);
}

.sessions__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 1rem + 2vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.session {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.5rem;
  padding: 1.25rem 0 1.5rem;
  background-image: var(--stitch);
  background-size: var(--stitch-pitch) var(--stitch-dot);
  background-repeat: repeat-x;
  background-position: 0 0;
}

.session__format {
  font-size: var(--text-caps);
  font-weight: 700;
  letter-spacing: var(--caps-tracking);
  text-transform: uppercase;
  color: var(--color-magenta);
}

.session__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--display-6);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--color-navy);
  text-wrap: balance;
}

.session__who {
  font-size: var(--text-small);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-muted);
  text-wrap: pretty;
}

/* The speaker-mix card sits on white inside the bone band */
.band--recap .stage {
  margin-top: var(--space-band-tight);
}

.band--recap .stage__mix {
  background-color: var(--color-surface);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .sessions__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .faces {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faces-also {
    grid-template-columns: 1fr;
  }

  .recap-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recap-photo--lead {
    grid-row: auto;
    aspect-ratio: 3 / 2;
  }
}

/* Phones: centred, like every other band */
@media (max-width: 640px) {
  .face__link,
  .faces-also,
  .session {
    justify-items: center;
    text-align: center;
  }

  .faces-also__list {
    justify-content: center;
  }

  .sessions__title {
    text-align: center;
  }

  .sessions__list {
    grid-template-columns: 1fr;
  }

  /* Captions leave the photo and sit under it, so the small tiles stay pictures */
  .recap-photo,
  .recap-photo--lead {
    overflow: visible;
    aspect-ratio: auto;
    border-radius: 0;
    background: none;
  }

  .recap-photo img {
    height: auto;
    aspect-ratio: 3 / 2;
    border-radius: 16px;
  }

  .recap-photo figcaption {
    position: static;
    padding: 0.5rem 0.25rem 0;
    font-size: 0.8125rem;
    color: var(--color-navy);
    text-align: center;
    background: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .face__photo,
  .face__name,
  .face__arrow,
  .recap-photo img {
    transition: none;
  }
}
