/* The Wall — horizontal gallery + Look Closer focus view. Shared by A and the flagship. */
.wall-page { overflow: hidden; background: #ddd2c0; }
.wall-root {
  --wall: #ddd2c0; --wall-shade: #cbbfab; --floor: #a98a6e;
  --H: min(40vh, 18vw);
  position: relative; height: 100vh; height: 100svh; color: var(--ink);
}
.wall-page .wall-root { padding-top: var(--switcher-h); }
@media (max-width: 760px) { .wall-root { --H: 33svh; } }

.wall-stage { position: relative; height: 100%; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,250,240,.6), transparent 60%),
    linear-gradient(to bottom, var(--wall) 0%, var(--wall) 78%, var(--wall-shade) 78.2%, #cdb79c 78.4%, var(--floor) 100%); }
.wall-stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 21.6%; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(60,35,20,.10) 0 1px, transparent 1px 180px), linear-gradient(to bottom, rgba(255,255,255,.18), rgba(0,0,0,.12)); }
.wall-vignette { position: absolute; inset: 0; pointer-events: none; z-index: 3; background: radial-gradient(130% 100% at 50% 45%, transparent 55%, rgba(40,25,15,.26) 100%); }

.wall-scroller { position: absolute; inset: 0 0 auto 0; height: 78%; overflow-x: auto; overflow-y: hidden; z-index: 2;
  scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; outline: none; cursor: grab; }
.wall-scroller.dragging { cursor: grabbing; }
.wall-scroller::-webkit-scrollbar { display: none; }
.wall-track { height: 100%; display: flex; align-items: center; gap: calc(var(--H) * .3); padding: 0 40vw 0 max(16px, 8vw); width: max-content; }

.wall-intro { flex: none; width: min(80vw, 470px); }
.wall-intro h1 { font-family: var(--display); font-weight: 500; font-size: clamp(38px, 6.4vh, 76px); line-height: .98; margin: 0 0 16px; letter-spacing: -.01em; }
.wall-intro .by { font-family: var(--display); font-style: italic; font-size: clamp(21px, 3vh, 30px); margin: 0 0 18px; color: var(--sepia); }
.wall-intro p { font-size: 16px; max-width: 36ch; color: var(--ink-2); margin: 0 0 10px; }
.wall-intro .hint { margin-top: 22px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.wall-intro .hint i { display: inline-block; width: 46px; height: 1px; background: currentColor; position: relative; animation: nudge 2.2s ease-in-out infinite; }
.wall-intro .hint i::after { content: ''; position: absolute; right: 0; top: -3px; border: 3.5px solid transparent; border-left: 6px solid currentColor; border-right: 0; }
@keyframes nudge { 50% { transform: translateX(8px); } }

.wall-chapter { flex: none; width: min(72vw, 300px); padding: 0 10px; border-left: 1px solid var(--hair); }
.wall-chapter .num { font-family: var(--display); font-size: clamp(50px, 8.5vh, 96px); line-height: 1; color: var(--oxblood); opacity: .85; }
.wall-chapter h2 { font-family: var(--display); font-weight: 500; font-size: clamp(23px, 3.4vh, 34px); line-height: 1.05; margin: 8px 0 6px; }
.wall-chapter .yr { font-variant: all-small-caps; letter-spacing: .14em; color: var(--muted); font-size: 15px; }
.wall-chapter p { font-size: 15px; color: var(--ink-2); margin: 12px 0 0; }

.wall-print { flex: none; position: relative; cursor: zoom-in; background: none; border: 0; padding: 0; text-align: left; -webkit-tap-highlight-color: transparent; }
.wall-print .spot { position: absolute; left: 50%; top: -85%; width: 135%; height: 250%; transform: translateX(-50%); pointer-events: none; z-index: -1;
  background: radial-gradient(50% 46% at 50% 42%, rgba(255,249,236,1), rgba(255,246,228,.55) 48%, transparent 72%); }
.wall-print .mount { position: relative; background: #fbf6ec; padding: calc(var(--H) * .07) calc(var(--H) * .09);
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 18px 40px -22px rgba(40,22,12,.55); transition: transform .5s cubic-bezier(.2,.75,.15,1), box-shadow .5s; }
.wall-print:hover .mount, .wall-print:focus-visible .mount { transform: translateY(-4px); box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 28px 50px -24px rgba(40,22,12,.6); }
.wall-print img { height: var(--H); width: auto; max-width: none; background: var(--paper-2); user-select: none; -webkit-user-drag: none; }
.wall-print .pins { position: absolute; inset: calc(var(--H) * .07) calc(var(--H) * .09); pointer-events: none; }
.wall-print .pins i { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff8ec; box-shadow: 0 0 0 2px var(--oxblood), 0 2px 6px rgba(0,0,0,.3); }
.wall-print .pins i::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid #fff8ec; animation: wallping 2.8s ease-out infinite; }
@keyframes wallping { 0% { transform: scale(.4); opacity: .9 } 80%, 100% { transform: scale(1.4); opacity: 0 } }
.wall-print .label { position: absolute; left: calc(var(--H) * .09); top: 100%; margin-top: 14px; width: max(60%, 250px); }
.wall-print .label .n { font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.wall-print .label .t { font-family: var(--fell); font-style: italic; font-size: clamp(17px, 2.3vh, 21px); color: var(--ink); line-height: 1.2; margin: 2px 0 4px; }
.wall-print .label .lc { font-size: 13px; color: var(--oxblood); letter-spacing: .04em; }
.wall-print:focus-visible { outline: none; }
.wall-print:focus-visible .mount { outline: 2px solid var(--oxblood); outline-offset: 6px; }

.wall-blanks { display: flex; gap: calc(var(--H) * .3); align-items: center; }
.wall-blank { flex: none; height: calc(var(--H) * 1.14); aspect-ratio: 4.3 / 1; background: #f7f1e6; position: relative; box-shadow: 0 18px 40px -26px rgba(40,22,12,.45); display: grid; place-items: center; }
.wall-blank::before { content: ''; position: absolute; inset: 7% 4.5%; border: 1px solid rgba(110,61,36,.25); }
.wall-blank span { font-family: var(--fell); font-style: italic; color: var(--muted); font-size: 15px; text-align: center; padding: 0 10px; }
.wall-blanks .wall-blank:nth-child(2) { opacity: .7 } .wall-blanks .wall-blank:nth-child(3) { opacity: .45 }
.wall-cta { flex: none; width: min(80vw, 380px); }
.wall-cta h2 { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 4vh, 42px); line-height: 1.05; margin: 0 0 10px; }
.wall-cta p { margin: 0 0 18px; color: var(--ink-2); font-size: 16px; }
.wall-cta a { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; padding: 13px 22px; border-radius: 99px; font-size: 15px; letter-spacing: .04em; }

/* HUD */
.wall-hud { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 10px clamp(12px, 2vw, 22px) max(12px, env(safe-area-inset-bottom)); color: #f6eee2;
  display: grid; grid-template-columns: auto auto 1fr auto auto auto; gap: 10px 16px; align-items: center; font-size: 14px; }
.wall-hud .metres { font-family: var(--display); font-size: 22px; white-space: nowrap; min-width: 92px; }
.wall-hud .metres small { font-size: 14px; opacity: .8; margin-left: 4px; font-family: var(--text); }
.wall-hud .skip { border: 1px solid rgba(255,255,255,.45); background: rgba(40,25,15,.18); color: #fff; border-radius: 99px; padding: 10px 16px; font: inherit; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.wall-hud .skip:hover { background: rgba(40,25,15,.35); }
.wall-hud .ch { text-align: right; white-space: nowrap; font-style: italic; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
.wall-hud button.step { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(40,25,15,.18); color: #fff; font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.wall-hud button.step:hover { background: rgba(40,25,15,.35); }
.wall-rail { position: relative; height: 44px; cursor: pointer; touch-action: none; }
.wall-rail .seg { position: absolute; top: 20px; height: 4px; background: rgba(255,255,255,.4); border-radius: 2px; }
.wall-rail .seg.out { background: repeating-linear-gradient(90deg, rgba(255,255,255,.32) 0 2px, transparent 2px 6px); }
.wall-rail .tick { position: absolute; top: 15px; width: 1px; height: 14px; background: rgba(255,255,255,.6); }
.wall-rail .thumb { position: absolute; top: 10px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.wall-rail .thumb::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--oxblood); }
@media (max-width: 760px) {
  .wall-hud { grid-template-columns: auto 1fr auto; grid-template-areas: "m m s" "p r n"; row-gap: 2px; }
  .wall-hud .metres { grid-area: m; font-size: 19px; } .wall-hud .ch { display: none; } .wall-hud .skip { grid-area: s; justify-self: end; padding: 7px 12px; }
  .wall-hud .prev { grid-area: p; } .wall-hud .next { grid-area: n; } .wall-rail { grid-area: r; }
}

/* ---------- Focus view (Look Closer) ---------- */
.focus { position: fixed; inset: 0; z-index: 900; background: #1b140f; color: #eee3d2; display: flex; flex-direction: column;
  padding: calc(var(--switcher-h) + 12px) clamp(14px, 3vw, 40px) 16px; overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.focus.open { opacity: 1; pointer-events: auto; }
.focus .f-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.focus .f-top .no { font-size: 13px; letter-spacing: .14em; color: #a8957f; white-space: nowrap; }
.focus .f-top h2 { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(24px, 3vw, 38px); margin: 0; line-height: 1.05; flex: 1; min-width: 0; }
.focus .f-top button { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; font-size: 17px; cursor: pointer; }
.focus .f-top button:hover { background: rgba(255,255,255,.08); }
.focus .f-frame { position: relative; overflow: hidden; box-shadow: 0 30px 70px -30px #000; background: #2a1f18; flex: none; align-self: center; width: min(100%, 1500px); }
.focus .f-inner { position: relative; transform-origin: 0 0; transition: transform 1s cubic-bezier(.2,.75,.15,1); }
.focus .f-inner img { width: 100%; height: auto; display: block; user-select: none; -webkit-user-drag: none; }
.focus .hs { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: none; }
.focus .hs::before { content: ''; position: absolute; inset: 13px; border-radius: 50%; background: #fff8ec; box-shadow: 0 0 0 2px var(--oxblood), 0 2px 10px rgba(0,0,0,.4); }
.focus .hs::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; border: 1.5px solid #fff8ec; animation: wallping 2.6s ease-out infinite; }
.focus .hs[aria-pressed="true"]::before { background: var(--oxblood); box-shadow: 0 0 0 2px #fff8ec, 0 2px 10px rgba(0,0,0,.4); }
.focus .f-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(18px, 4vw, 56px); margin-top: 20px; align-self: center; width: min(100%, 1500px); }
.focus .f-body .desc { color: #cdbfac; margin: 0; }
.focus .f-body .hint { color: #8d7b68; font-size: 14px; margin-top: 10px; }
.focus .notes { display: grid; gap: 8px; }
.focus .note { text-align: left; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); color: inherit; padding: 12px 14px; cursor: pointer; display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.focus .note[aria-pressed="true"] { border-color: #c9895c; background: rgba(201,137,92,.1); }
.focus .note .i { font-family: var(--display); font-size: 21px; color: #c9895c; line-height: 1; }
.focus .note h3 { font-family: var(--display); font-weight: 600; font-size: 20px; margin: 0 0 3px; }
.focus .note p { margin: 0; font-size: 15.5px; color: #cdbfac; }
.focus .nonotes { color: #8d7b68; font-style: italic; margin: 0; }
.focus .f-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 18px; align-self: center; width: min(100%, 1500px); }
.focus .f-nav button { border: 1px solid rgba(255,255,255,.25); background: none; color: #eee3d2; padding: 11px 16px; border-radius: 99px; cursor: pointer; font-size: 14.5px; max-width: 48%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.focus .f-nav button:hover { background: rgba(255,255,255,.08); }
@media (max-width: 760px) {
  .focus .f-frame { overflow-x: auto; overflow-y: hidden; width: calc(100% + 2 * clamp(14px, 3vw, 40px)); margin: 0 calc(-1 * clamp(14px, 3vw, 40px)); scrollbar-width: none; }
  .focus .f-frame::-webkit-scrollbar { display: none; }
  .focus .f-inner { display: inline-block; height: 46svh; transition: none; }
  .focus .f-inner img { height: 100%; width: auto; max-width: none; }
  .focus .f-body { grid-template-columns: 1fr; }
}
.wall-loupe { position: fixed; z-index: 950; width: 220px; height: 220px; border-radius: 50%; pointer-events: none; display: none; background-repeat: no-repeat; background-color: #1b140f;
  box-shadow: 0 0 0 1px rgba(255,255,255,.7), 0 0 0 6px rgba(43,27,19,.85), 0 18px 40px -10px rgba(0,0,0,.6); }
.wall-loupe.on { display: block; }
@media (prefers-reduced-motion: reduce) { .wall-print .pins i::after, .focus .hs::after, .wall-intro .hint i { animation: none; } .focus .f-inner { transition: none; } }
