.sec-wall { --wall-h: clamp(24rem, 40vw, 38rem); --wall-tile: clamp(11rem, 16vw, 17rem); --wall-gap: clamp(0.75rem, 1.2vw, 1.125rem); }
.wall-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.wall-head .t-lead { color: var(--text-2); }

.wall-stage { position: relative; display: grid; place-items: center; overflow: clip; isolation: isolate; }
.wall-stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 55%, rgba(91, 140, 255, 0.12), transparent 70%);
}

.wall-tile {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-md);
  background: radial-gradient(70% 80% at 50% 62%, rgba(91, 140, 255, 0.14), transparent 72%), var(--glass), var(--ink-850);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  transition: transform var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.wall-tile img, .wall-clip { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wall-tile img { object-fit: contain; }
.wall-clip { object-fit: cover; opacity: 0; transition: opacity var(--t-med) var(--ease-out); }
.wall-tile.is-playing .wall-clip { opacity: 1; }
.wall-tile:hover, .wall-tile:focus-visible {
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 24px 60px -24px var(--glow-cyan);
}

.wall-grid {
  list-style: none; margin: 0; padding: 0; width: min(100% - 2 * var(--gutter), var(--w-page));
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--wall-gap);
}
.wall-grid .wall-tile:hover { transform: translateY(-3px); }
@media (max-width: 1100px) { .wall-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .wall-grid > :nth-child(n + 19) { display: none; } }
@media (max-width: 760px) { .wall-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .wall-grid > :nth-child(n + 13) { display: none; } }
@media (max-width: 520px) { .wall-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); } .wall-grid > :nth-child(n + 10) { display: none; } }

@media (prefers-reduced-motion: no-preference) and (pointer: fine), (prefers-reduced-motion: no-preference) and (min-width: 901px) {
  .wall-stage { min-height: var(--wall-h); }
}

.wall-stage.is-wall {
  height: var(--wall-h); perspective: 1600px; perspective-origin: 50% 20%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent);
  mask-composite: intersect;
}
.wall-plane {
  position: absolute; left: 50%; top: 50%; width: 150%;
  display: grid; gap: var(--wall-gap); justify-items: center;
  transform: translate(-50%, -50%) rotateX(28deg) rotateZ(-4deg);
  transform-style: preserve-3d;
}
.wall-row {
  list-style: none; margin: 0; padding: 0; display: flex; width: max-content; justify-self: start;
  animation: wall-drift var(--wall-dur, 170s) linear infinite; will-change: transform;
}
.wall-row:nth-child(2) { animation-direction: reverse; margin-left: calc(var(--wall-tile) * -0.5); }
.wall-cell { flex: none; padding-inline-end: var(--wall-gap); }
.wall-row .wall-tile { width: var(--wall-tile); }
.wall-row .wall-tile:hover, .wall-row .wall-tile:focus-visible { transform: translateY(-4px) scale(1.04); }
.wall-stage.is-paused .wall-row, .wall-row:hover, .wall-row:focus-within { animation-play-state: paused; }
@keyframes wall-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

.wall-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); margin-top: clamp(1.5rem, 4vw, 3rem); }
.wall-count { color: var(--text-3); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .wall-row { animation: none; }
  .wall-tile, .wall-clip { transition: none; }
  .wall-grid .wall-tile:hover { transform: none; }
}
.wall-count > span { white-space: nowrap; }
