/* SECTION 1 · HERO · The Blues
   Everyone starts in black and white, the way the world sees them.
   A tap brings them into colour and the blue shows. */

.blues {
  position: relative;
  padding: 24px 0 52px;
  overflow: hidden;
}
/* film grain over the whole hero */
.blues::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.blues-head { padding: 0 var(--pad); max-width: 1240px; margin: 0 auto; }
.blues h1 { font-size: clamp(52px, 13vw, 128px); max-width: 11ch; }
.lede {
  margin: 22px 0 0; max-width: 34ch;
  font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; color: var(--cream-soft);
}

/* ---------- The strip of faces ---------- */
.blues-strip {
  display: flex; gap: 12px;
  margin-top: clamp(32.0px, 4.9vw, 45.9px);
  padding: 0 var(--pad) 8px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-left: var(--pad);
  scrollbar-width: none;
}
.blues-strip::-webkit-scrollbar { display: none; }

.tile {
  position: relative; flex: 0 0 76vw; max-width: 340px;
  aspect-ratio: 9 / 16;
  border-radius: 18px; overflow: hidden;
  scroll-snap-align: start;
  background: var(--night-2);
}
@media (min-width: 900px) {
  .blues-head {
    display: grid; grid-template-columns: 1.5fr 1fr; column-gap: 56px; align-items: end;
  }
  .blues-head .eyebrow { grid-column: 1 / -1; justify-self: start; }
  .lede { margin: 0 0 12px; }
  .blues-strip {
    display: grid; grid-template-columns: repeat(4, 1fr);
    max-width: 1240px; margin-left: auto; margin-right: auto; overflow: visible;
    gap: 16px;
  }
  .tile { max-width: none; aspect-ratio: 3 / 5; }
}

.tile-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: inherit;
}
.tile-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.78);
  transform: scale(1.04);
  transition: filter 1.6s var(--ease), transform 2.4s var(--ease);
}
.tile-photo:hover img { filter: grayscale(1) contrast(1.08) brightness(.9); }
.tile.is-seen .tile-photo img { filter: none; transform: scale(1); }

/* soft shade so words stay readable */
.tile-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,24,34,0) 45%, rgba(10,24,34,.55) 70%, rgba(10,24,34,.92) 100%);
  opacity: .55; transition: opacity 1s var(--ease);
}
.tile.is-seen .tile-photo::after { opacity: 1; }

.tile-hint {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 14px; border-radius: 999px;
  background: rgba(10,24,34,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(243,237,228,.16);
  font-size: 14px; font-weight: 500; letter-spacing: .02em; white-space: nowrap;
  transition: opacity .5s var(--ease);
}
.tile-hint .dot {
  position: relative; width: 10px; height: 10px; border-radius: 50%;
  background: var(--blues);
  animation: glow 3.2s ease-in-out infinite;
}
.tile-hint .dot::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid var(--blues);
  animation: halo 3.2s ease-out infinite;
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 4px 1px rgba(74,134,236,.45); opacity: .75; }
  50%      { box-shadow: 0 0 14px 4px rgba(74,134,236,.85); opacity: 1; }
}
@keyframes halo {
  0%   { transform: scale(.6); opacity: .7; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
/* stagger so the faces don't all pulse together */
.tile:nth-child(2) .tile-hint .dot, .tile:nth-child(2) .tile-hint .dot::after { animation-delay: .8s; }
.tile:nth-child(3) .tile-hint .dot, .tile:nth-child(3) .tile-hint .dot::after { animation-delay: 1.6s; }
.tile:nth-child(4) .tile-hint .dot, .tile:nth-child(4) .tile-hint .dot::after { animation-delay: 2.4s; }
.tile.is-seen .tile-hint { opacity: 0; }

.tile-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 22px 20px 22px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .9s var(--ease) .5s, transform .9s var(--ease) .5s;
}
.tile.is-seen .tile-cap { opacity: 1; transform: none; }
.tile-cap .say {
  margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em; font-size: clamp(21.0px, 1.7vw, 24.0px); line-height: 1.2;
}
.tile-cap .who {
  margin: 12px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blues);
}

/* ---------- Below the strip ---------- */
.blues-foot { padding: 20px var(--pad) 0; max-width: 1240px; margin: 0 auto; }
.blues-count { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: .04em; color: var(--cream-soft); }
.blues-stat { margin-top: 18px; animation: rise 1s var(--ease) both; }
.stat-big { margin: 0; font-family: var(--font-display); font-size: clamp(30.0px, 3.6vw, 39.4px); line-height: 1.05; max-width: 22ch; }
.stat-small { margin: 12px 0 0; font-size: 14px; color: var(--cream-soft); max-width: 60ch; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .tile-photo img, .tile-cap, .tile-photo::after, .blues-stat { transition: none; animation: none; }
  .tile-hint .dot, .tile-hint .dot::after { animation: none; }
}

/* desktop refinements, kept last so they win */
@media (min-width: 900px) {
  .blues h1 { max-width: 12ch; font-size: clamp(64px, 6.6vw, 100px); }
  .tile-cap { padding: 18px 16px; }
  .tile-cap .say { font-size: 19px; }
  .tile-cap .who { font-size: 11px; }
}

/* centred, to match every headline after it */
.blues-head { text-align: center; }
.blues h1 { margin-left: auto; margin-right: auto; }
.lede { margin-left: auto; margin-right: auto; }
.blues-foot { text-align: center; }
@media (min-width: 900px) {
  .blues-head { display: block; }
  .blues h1 { max-width: 14ch; }
  .lede { margin: 22px auto 0; max-width: 40ch; }
}
