/* ============================================================
   The Wall — real students, real products
   Scoped with .wl- prefix. Sits between Cases and Quiz.
   ============================================================ */

.wl {
  background: var(--bg);
}

.wl__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
  align-items: end;
}
.wl__head h2 { margin: 18px 0 0; }
.wl__head h2 em { color: var(--accent); font-style: italic; }
.wl__head-right { color: var(--ink-2); max-width: 46ch; font-size: 17px; }
.wl__head-right b { color: var(--ink); font-weight: 600; }

.wl__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.wl__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wl__card--event {
  grid-column: span 2;
}
.wl__photo {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  /* Placeholder pattern — diagonal stripes that signal "photo goes here" */
  background-image: repeating-linear-gradient(
    35deg,
    transparent 0 14px,
    color-mix(in oklab, var(--ink) 4%, transparent) 14px 15px
  );
  transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .35s;
  cursor: pointer;
}
.wl__card--event .wl__photo {
  aspect-ratio: 2/1;
  /* Slightly different texture so the event tile reads as a different "kind" */
  background-image:
    repeating-linear-gradient(
      35deg,
      transparent 0 14px,
      color-mix(in oklab, var(--ink) 4%, transparent) 14px 15px
    ),
    radial-gradient(circle at 30% 60%, color-mix(in oklab, var(--accent) 22%, transparent) 0%, transparent 40%),
    radial-gradient(circle at 70% 40%, color-mix(in oklab, var(--accent) 14%, transparent) 0%, transparent 45%);
}
.wl__photo:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
}
.wl__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.wl__photo-tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 9px;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  backdrop-filter: blur(8px);
}
.wl__card--event .wl__photo-tag {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.wl__pulse-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px;
  vertical-align: middle;
  animation: wl-pulse 1.8s ease-in-out infinite;
}
@keyframes wl-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}
.wl__photo-placeholder {
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 4px 8px;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border-radius: 4px;
  border: 1px solid var(--line);
}

.wl__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.wl__name {
  font-family: var(--f-display);
  font-size: 17px;
  color: var(--ink);
  line-height: 1.2;
}
.wl__card--event .wl__name {
  font-size: 22px;
  font-style: italic;
}
.wl__when {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex-shrink: 0;
}
.wl__product {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}

.wl__footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.wl__count {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
}
.wl__count em { color: var(--accent); font-style: italic; }
.wl__footer-link {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s;
}
.wl__footer-link:hover { color: var(--ink); border-color: var(--accent); }

@media (max-width: 1100px) {
  .wl__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 760px) {
  .wl__head { grid-template-columns: 1fr; gap: 20px; }
  .wl__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
