/* P. 02 The problem: "the flood + the lens". A paper band. A full-bleed pile of real sample documents floods in,
   and a stippled Sift ring reads whatever is under it. */
.wall-head { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); align-items: end; }
.wall-head__title { max-width: 12ch; }
.wall-head__lead { margin-top: 0; max-width: 40ch; }
.wall-stat { display: flex; align-items: flex-end; gap: clamp(16px, 2vw, 24px); margin-top: clamp(28px, 3.4vw, 44px); padding-top: clamp(20px, 2.4vw, 28px); border-top: 1px solid var(--p-line); }
.wall-stat__num { display: inline-flex; align-items: flex-start; font: 700 clamp(4.4rem, 2.6rem + 5.4vw, 8.2rem)/0.8 var(--f-disp); letter-spacing: -0.055em; color: var(--p-ink); }
.wall-stat__num i { font-style: normal; font-size: 0.5em; line-height: 1; margin: 0.06em 0 0 0.04em; color: var(--red); letter-spacing: -0.02em; }
.wall-stat__txt { display: block; max-width: 17ch; padding-bottom: 4px; font: 500 clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem)/1.32 var(--f-ui); letter-spacing: -0.01em; color: var(--p-ink); text-wrap: balance; }
.wall-stat__txt small { display: block; margin-top: 10px; font: 500 0.75rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--p-ink-2); }
@media (max-width: 860px) {
  .wall-head { grid-template-columns: minmax(0, 1fr); }
  .wall-head__lead { margin-top: 24px; }
}

/* the pile */
.wall { position: relative; height: clamp(560px, 88vh, 880px); margin-top: clamp(40px, 6vw, 88px); margin-bottom: calc(-1 * clamp(96px, 12vw, 180px)); overflow: hidden; touch-action: pan-y pinch-zoom; isolation: isolate; }
.wall__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (hover: hover) and (pointer: fine) { .wall.is-live { cursor: none; } }
.wall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(21, 23, 27, 0.18); pointer-events: none; }

/* lens hit area: keyboard + touch drag; sits over the drawn ring */
.wall__lens { position: absolute; left: 0; top: 0; z-index: 2; width: 220px; height: 220px; border-radius: 50%; touch-action: none; opacity: 0; pointer-events: none; will-change: transform; -webkit-tap-highlight-color: transparent; }
.wall.is-live .wall__lens { pointer-events: auto; }
.wall__lens:focus-visible { opacity: 1; outline: 2px solid var(--red); outline-offset: 10px; border-radius: 50%; }
@media (hover: none) { .wall__lens { cursor: grab; } .wall__lens:active { cursor: grabbing; } }

/* label that rides on the lens rim: the document under the ring */
.wall__tag { position: absolute; left: 0; top: 0; z-index: 3; display: flex; flex-direction: column; gap: 5px; max-width: min(440px, calc(100vw - 32px)); padding: 9px 13px 10px; border-radius: 10px; background: rgba(11, 13, 16, 0.92); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 40px -18px rgba(0, 0, 0, 0.6); color: var(--fg); pointer-events: none; opacity: 0; transform: translate3d(-400px, -400px, 0); transition: opacity 0.35s var(--ease-out); will-change: transform; }
.wall__tag.is-on { opacity: 1; }
.wall__tag-type { display: flex; align-items: center; gap: 8px; font: 600 0.75rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--tc, var(--gold)); white-space: nowrap; }
.wall__tag-type i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; flex: none; }
.wall__tag-type b { font-weight: 500; color: var(--fg-3); letter-spacing: 0.08em; }
.wall__tag-type b::before { content: "·"; margin-right: 8px; color: var(--fg-3); }
.wall__tag-title { font: 500 0.8125rem/1.3 var(--f-mono); letter-spacing: -0.01em; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* HUD along the bottom of the pile */
.wall__hud { position: absolute; left: 0; right: 0; bottom: clamp(16px, 2.4vw, 28px); z-index: 4; pointer-events: none; }
.wall__hud-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wall__count, .wall__hint { margin: 0; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 14px; border-radius: 999px; background: rgba(250, 250, 248, 0.95); box-shadow: inset 0 0 0 1px rgba(21, 23, 27, 0.08), 0 14px 34px -16px rgba(21, 23, 27, 0.35); font: 500 0.75rem/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--p-ink-2); white-space: nowrap; }
.wall__count b { font-weight: 600; color: var(--p-ink); }
.wall.is-flood .wall__count-pre, .wall.is-flood .wall__count-of { display: none; }
.wall__count .wall__count-total { color: var(--p-ink); }
.wall__count-ring { position: relative; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--red); flex: none; }
.wall__count-bar { position: relative; width: 56px; height: 2px; border-radius: 2px; background: rgba(21, 23, 27, 0.12); overflow: hidden; margin-left: 2px; }
.wall__count-bar i { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 0.5s var(--ease-out); }
.wall__count.is-bump .wall__count-ring { animation: wall-bump 0.5s var(--ease-out); }
@keyframes wall-bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
.wall__hint { transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); opacity: 0; transform: translateY(8px); }
.wall.is-live .wall__hint { opacity: 1; transform: none; }
.wall.is-used .wall__hint { opacity: 0.55; }
.wall__hint-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.wall__hint-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--red); opacity: 0; animation: wall-ping 2.2s var(--ease-out) infinite; }
@keyframes wall-ping { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
@media (max-width: 640px) {
  .wall { height: clamp(520px, 78vh, 640px); }
  .wall__hud-in { flex-direction: column-reverse; justify-content: center; gap: 8px; }
  .wall__hint { height: 34px; padding: 0 14px 0 12px; font-size: 0.75rem; }
  .wall__count { height: 44px; padding: 0 16px 0 12px; font-size: 0.75rem; letter-spacing: 0.06em; }
  .wall__count-bar { width: 36px; }
  .wall__tag { padding: 8px 11px 9px; }
  .wall__tag-title { font-size: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wall__hint-dot::after { animation: none; }
}
