/* ==========================================================================
   B VISUAL — mirrorhall.css  (immersive pass, /work)
   A 3D ring of project cards standing on a dark reflective floor.
   Without mirrorhall.js (no JS) .mh is a plain horizontal row of links.
   ========================================================================== */

.mh { position: relative; overflow: hidden; padding-bottom: clamp(48px, 6vw, 88px); }
.mh__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s5); }
.mh__head h2 { margin-top: var(--s4); color: var(--paper); }
.mh__hint { color: var(--mute); }

/* --- Fallback (no JS): a scrollable row -------------------------------- */
.mh__stage { position: relative; margin-top: clamp(32px, 4vw, 56px); outline: none; }
.mh__ring { display: flex; gap: 16px; overflow-x: auto; padding: 0 var(--gutter) 24px; }
.mh-item { flex: 0 0 auto; }
.mh-card { display: block; width: clamp(170px, 18vw, 250px); }
.mh-card__face { display: block; aspect-ratio: 3 / 4.3; border-radius: 12px; overflow: hidden; background: var(--ink-lift); }
.mh-card__face img, .mh-card__refl img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mh-card__refl { display: none; }
.mh__floor { display: none; }
.mh__foot { display: none; }

/* --- The hall (JS on) ---------------------------------------------------- */
.mh.is-hall .mh__stage {
  height: clamp(440px, 52vw, 640px);
  perspective: 1200px;
  perspective-origin: 50% 38%;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.mh.is-hall .mh__stage.is-dragging { cursor: grabbing; }
.mh.is-hall .mh__stage:focus-visible { outline: 2px solid var(--lime); outline-offset: -6px; border-radius: 12px; }
.mh.is-hall .mh__ring {
  position: absolute; left: 50%; top: 8%;
  width: 0; height: 0; padding: 0; overflow: visible; gap: 0;
  transform-style: preserve-3d;
}
.mh.is-hall .mh-item { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.mh.is-hall .mh-card {
  position: absolute; left: 0; top: 0;
  width: var(--mh-w); margin-left: calc(var(--mh-w) / -2);
  transform-style: preserve-3d;
  -webkit-user-drag: none;
}
.mh.is-hall .mh-card img { pointer-events: none; -webkit-user-drag: none; }
.mh.is-hall .mh-card__face {
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -30px rgba(0,0,0,.9);
  transition: box-shadow .5s var(--e-out);
}
.mh.is-hall .mh-item.is-active .mh-card__face { box-shadow: 0 0 0 1px rgba(216,255,53,.55), 0 0 60px -12px rgba(216,255,53,.35), 0 30px 60px -30px rgba(0,0,0,.9); }
.mh.is-hall .mh-card:focus-visible { outline: none; }
.mh.is-hall .mh-card:focus-visible .mh-card__face { box-shadow: 0 0 0 2px var(--lime); }

/* Reflection: the same image flipped under the card, fading into the floor. */
.mh.is-hall .mh-card__refl {
  display: block; position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  aspect-ratio: 3 / 4.3; border-radius: 12px; overflow: hidden;
  transform: scaleY(-1); opacity: .32; filter: blur(1.5px) saturate(.7);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 55%);
          mask-image: linear-gradient(to top, #000 0%, transparent 55%);
  pointer-events: none;
}
/* Floor: a near-black pool with a horizon and a sheen that travels as it turns. */
.mh.is-hall .mh__floor {
  display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 48%;
  pointer-events: none; z-index: -1;
  background:
    radial-gradient(60% 70% at calc(50% + var(--mh-sheen, 0) * 1%) 0%, rgba(216,255,53,.07), transparent 70%),
    linear-gradient(to bottom, rgba(255,255,255,.05), transparent 1px),
    linear-gradient(to bottom, #0f0f11, var(--ink) 85%);
}

.mh.is-hall .mh__foot { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s5); margin-top: var(--s4); }
.mh__btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  background: none; color: var(--paper); font-size: 20px; cursor: pointer;
  transition: border-color .25s, color .25s, background-color .25s;
}
.mh__btn:hover, .mh__btn:focus-visible { border-color: var(--lime); color: var(--lime); }
.mh__caption { text-align: center; }
.mh__client { color: var(--lime); }
.mh__title { margin-top: 6px; color: var(--paper); font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1; letter-spacing: -.025em; }
.mh__tags { margin-top: 8px; color: var(--mute); }

@media (max-width: 720px) {
  .mh__head { flex-direction: column; align-items: flex-start; }
  .mh.is-hall .mh__stage { height: 420px; perspective: 800px; }
}
@media (prefers-reduced-motion: reduce) {
  .mh.is-hall .mh-card__face { transition: none; }
}
