/* ==========================================================================
   Portfolio wall — "the exhibition" (premiere-night gallery)
   Loaded after cinema.css + cinema-pages.css on /portfolio/ and /case-studies/.
   Sections: hero (gallery entrance + salon hang) → curator's notes (method)
   → the hall (framed exhibits + museum placards) → floor-plan pager → vacant frame CTA.
   ========================================================================== */

.pf-page {
  --wall: #0e0a08;
  --wall-2: #15100d;
  --paper: #efe7db;
  --paper-2: #e3d8c8;
  --ink: #1c1511;
  --ink-2: #54473d;
  --ink-gold: #8a5f2c;
  --bone: #e6ddcf;
  --spot: 255, 210, 150;
  --gilt: linear-gradient(135deg, #6f4f26 0%, #e7b874 16%, #9c7037 33%, #f6d89e 50%, #a57638 67%, #e2ae66 84%, #6f4f26 100%);
  --walnut: repeating-linear-gradient(92deg, rgba(0, 0, 0, .16) 0 2px, transparent 2px 7px), linear-gradient(180deg, #5b3e2a, #3d291c 60%, #2d1e15);
  --ebony: linear-gradient(180deg, #24201d, #0c0a09 40%, #050404);
  --brass: linear-gradient(135deg, #6b5330, #c9a368 30%, #8a6a3c 55%, #d8b67c 80%, #6b5330);
  --cg: clamp(22px, 3vw, 48px);
  --rg: clamp(64px, 7vw, 112px);
}

/* ---------- Hero: gallery entrance ---------- */
.pf-hero { background: var(--wall); }
.pf-hero .cx-hero__bg {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42% 46% at var(--sx, 28%) var(--sy, 38%), rgba(var(--spot), .055), transparent 70%),
    radial-gradient(70% 60% at 22% 0%, rgba(var(--spot), .07), transparent 62%),
    repeating-linear-gradient(90deg, rgba(255, 236, 214, .018) 0 1px, transparent 1px 180px),
    linear-gradient(180deg, #130e0b 0%, #0e0a08 72%, #0b0807 100%);
  transition: background-position .4s;
}
/* skirting board + polished floor */
.pf-hero::before {
  content: ""; position: absolute; inset: auto 0 0; height: clamp(46px, 9vh, 90px); z-index: -1; pointer-events: none;
  border-top: 1px solid rgba(255, 236, 214, .07);
  background: linear-gradient(180deg, rgba(255, 236, 214, .035), transparent 70%), linear-gradient(90deg, transparent, rgba(var(--spot), .05) 30%, transparent 60%);
}
.pf-hero__inner { grid-template-columns: 1.05fr .95fr; }
.pf-hero .cx-hero__visual { width: min(100%, 600px); }
.pf-hero__stats strong { font-variant-numeric: tabular-nums; }

/* Salon hang — three framed works under track lights (decorative) */
.pf-salon { position: relative; width: 100%; aspect-ratio: 1 / .9; pointer-events: none; }
.pf-salon__track {
  position: absolute; top: 0; inset-inline: 2%; height: 10px; border-radius: 3px;
  background: linear-gradient(180deg, #2b2420, #120e0c);
  box-shadow: 0 1px 0 rgba(255, 236, 214, .08) inset, 0 8px 18px -6px rgba(0, 0, 0, .9);
}
.pf-salon__piece { position: absolute; }
.pf-salon__piece--1 { top: 18%; inset-inline-start: 0; width: 60%; z-index: 2; }
.pf-salon__piece--2 { top: 9%; inset-inline-end: 2%; width: 33%; }
.pf-salon__piece--3 { top: 60%; inset-inline-end: 9%; width: 38%; z-index: 3; }
.pf-salon__beam {
  position: absolute; left: 50%; bottom: 40%; width: 190%; height: 150%; translate: -50% 0; z-index: -1;
  background: conic-gradient(from 180deg at 50% 0%, transparent 162deg, rgba(var(--spot), .08) 172deg, rgba(var(--spot), .13) 180deg, rgba(var(--spot), .08) 188deg, transparent 198deg);
  -webkit-mask-image: linear-gradient(#000 30%, transparent 100%); mask-image: linear-gradient(#000 30%, transparent 100%);
}
.pf-salon__piece::after { content: ""; position: absolute; inset: -22% -18% -14%; z-index: -2; background: radial-gradient(50% 50% at 50% 40%, rgba(var(--spot), .12), transparent 72%); }
.pf-salon__frame { position: relative; overflow: hidden; background: #0b0908; box-shadow: 0 34px 60px -26px rgba(0, 0, 0, .95), 0 12px 24px -14px rgba(0, 0, 0, .8); }
.pf-salon__frame img, .pf-salon__frame .pf-frame__blank { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pf-salon__piece--1 .pf-salon__frame { aspect-ratio: 3 / 2; border: 12px solid transparent; background: linear-gradient(#0b0908, #0b0908) padding-box, var(--gilt) border-box; outline: 1px solid rgba(0, 0, 0, .5); outline-offset: -13px; }
.pf-salon__piece--2 .pf-salon__frame { border: 9px solid transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--walnut) border-box; padding: 11% 10% 24%; }
.pf-salon__piece--2 .pf-salon__frame img { height: auto; aspect-ratio: 4 / 3; box-shadow: 0 0 0 2px #fbf6ee, 0 0 0 3px rgba(0, 0, 0, .15); }
.pf-salon__piece--3 .pf-salon__frame { aspect-ratio: 3 / 2; border: 7px solid transparent; background: linear-gradient(var(--bone), var(--bone)) padding-box, var(--ebony) border-box; padding: 6%; }
.pf-salon__piece--3 .pf-salon__frame img { box-shadow: 0 0 0 2px #fbf6ee; }
.pf-salon__label {
  position: absolute; bottom: 3%; inset-inline-start: 6%; z-index: 3; display: grid; gap: 2px; padding: 10px 14px 11px;
  background: var(--paper); color: var(--ink); border-radius: 2px; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .9); rotate: -1.5deg;
}
.pf-salon__label .mono { font-size: 9.5px; letter-spacing: .16em; color: var(--ink-gold); font-weight: 700; }
.pf-salon__label b { font-size: 15px; font-weight: 900; line-height: 1.6; }
.js .pf-salon__piece { opacity: 0; translate: 0 -14px; rotate: -2deg; transform-origin: 50% -40px; }
.is-ready .pf-salon__piece { opacity: 1; translate: none; rotate: none; transition: opacity 1s var(--ease-out), translate 1.4s var(--ease-out), rotate 2.2s var(--ease-snap); }
.is-ready .pf-salon__piece--1 { transition-delay: .35s; }
.is-ready .pf-salon__piece--2 { transition-delay: .55s; }
.is-ready .pf-salon__piece--3 { transition-delay: .75s; }

/* ---------- Curator's notes (method) ---------- */
.pf-notes { isolation: isolate; overflow: clip; background: linear-gradient(180deg, var(--wall), #120d0a 30%, #110c0a 70%, var(--wall)); }
/* wall-washer lights: a row of soft scallops along the top edge */
.pf-notes::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 360px; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 100% at 50% 0%, rgba(var(--spot), .09), transparent 70%) 0 0 / 360px 100% repeat-x;
  -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent);
}
.pf-notes__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 88px); align-items: start; }
.pf-notes__sig { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: var(--muted); }
.pf-notes__sig .mono { font-size: 10.5px; letter-spacing: .18em; }
.pf-notes__sig .mono:first-child { color: var(--gold); }
.pf-notes__wall { position: relative; padding-inline-start: clamp(20px, 2.4vw, 34px); border-inline-start: 2px solid transparent; border-image: linear-gradient(180deg, var(--gold), rgba(224, 169, 95, 0)) 1; }
.pf-notes__lead { color: var(--text); font-size: clamp(1.08rem, .95rem + .55vw, 1.42rem); font-weight: 500; line-height: 2.15; text-wrap: pretty; max-width: 50ch; }
.pf-notes__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(48px, 6vw, 84px); }
/* standoff-mounted acrylic panels (four steel screws) */
.pf-note {
  --screw: radial-gradient(circle, #cdb89a 0 2.2px, #6a5a48 2.6px, rgba(0, 0, 0, .55) 3.4px, transparent 4.4px);
  position: relative; display: flex; flex-direction: column; min-height: 100%; padding: clamp(26px, 2.6vw, 38px) clamp(22px, 2.2vw, 32px) clamp(24px, 2.4vw, 34px);
  border: 1px solid rgba(255, 236, 214, .11); border-radius: 4px;
  background:
    var(--screw) 10px 10px / 14px 14px no-repeat, var(--screw) calc(100% - 10px) 10px / 14px 14px no-repeat,
    var(--screw) 10px calc(100% - 10px) / 14px 14px no-repeat, var(--screw) calc(100% - 10px) calc(100% - 10px) / 14px 14px no-repeat,
    linear-gradient(160deg, rgba(255, 236, 214, .07), rgba(255, 236, 214, .018) 55%, rgba(255, 236, 214, .03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 36px 60px -36px rgba(0, 0, 0, .9);
  transition: border-color .5s, transform .6s var(--ease-out);
}
.pf-note:hover { border-color: rgba(224, 169, 95, .32); transform: translateY(-4px); }
.pf-note__tag { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pf-note__tag .mono { font-size: 10.5px; letter-spacing: .16em; color: var(--muted); }
.pf-note__label { padding: 3px 12px; border-radius: 999px; border: 1px solid rgba(224, 169, 95, .35); color: var(--gold-l); font-size: 13px; font-weight: 800; background: rgba(224, 169, 95, .06); }
.pf-note__num { position: absolute; inset-block-end: 6px; inset-inline-end: 18px; z-index: -1; font-size: clamp(110px, 11vw, 170px); font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(224, 169, 95, .16); pointer-events: none; }
.pf-note__title { margin-top: 26px; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); font-weight: 900; line-height: 1.6; }
.pf-note__text { margin-top: 10px; color: var(--text-2); font-size: 15px; line-height: 2.05; }
.pf-route { position: relative; display: grid; gap: 14px; margin-top: 18px; }
.pf-route::before { content: ""; position: absolute; inset-block: 14px; inset-inline-start: 13px; border-inline-start: 1.5px dashed rgba(224, 169, 95, .4); }
.pf-route li { position: relative; display: flex; align-items: center; gap: 14px; color: var(--text); font-size: 15px; font-weight: 700; }
.pf-route__stop { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 10px; letter-spacing: .04em; color: #1a0d08; background: var(--gold); box-shadow: 0 0 0 4px #15100d, 0 0 16px rgba(224, 169, 95, .45); }
.pf-route li:last-child .pf-route__stop { background: var(--grad-fire); }

/* ---------- The hall ---------- */
.pf-hall {
  isolation: isolate; overflow: clip;
  background:
    radial-gradient(60% 40% at 80% 12%, rgba(var(--spot), .035), transparent 70%),
    radial-gradient(50% 36% at 15% 55%, rgba(var(--spot), .03), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 236, 214, .014) 0 1px, transparent 1px 220px),
    var(--wall);
  border-top: 1px solid var(--line);
}
/* lighting track across the ceiling line */
.pf-hall__rail {
  position: absolute; top: 0; inset-inline: 0; height: 12px; z-index: 1; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(16.66% - 22px), #2f2722 calc(16.66% - 22px) calc(16.66% + 22px), transparent calc(16.66% + 22px) 33.33%),
    linear-gradient(180deg, #221c18, #0f0c0a);
  box-shadow: 0 1px 0 rgba(255, 236, 214, .06) inset, 0 10px 24px -8px rgba(0, 0, 0, .9);
}
.pf-hall__rail::after { content: ""; position: absolute; inset: 100% 0 auto; height: 220px; background: radial-gradient(40% 100% at 50% 0%, rgba(var(--spot), .07), transparent 70%) 0 0 / 33.33% 100% repeat-x; }
/* polished floor at the end of the hall (under the floor plan) */
.pf-hall::after {
  content: ""; position: absolute; inset: auto 0 0; height: 240px; z-index: -1; pointer-events: none;
  border-top: 1px solid rgba(255, 236, 214, .05);
  background: linear-gradient(180deg, rgba(255, 236, 214, .03), transparent 80%), repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 120px);
}
.pf-hall__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: clamp(72px, 8vw, 120px); }
.pf-hall__head .section-title { margin: 0; }

/* exhibition ticket (range count) */
.pf-ticket {
  --notch: radial-gradient(circle at 50% 0, transparent 7px, #000 7.5px) top / 100% 51% no-repeat, radial-gradient(circle at 50% 100%, transparent 7px, #000 7.5px) bottom / 100% 51% no-repeat;
  display: inline-flex; align-items: stretch; color: var(--ink); rotate: -2deg; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .55));
}
.pf-ticket__stub, .pf-ticket__txt { background: var(--paper); }
.pf-ticket__stub { display: grid; place-items: center; padding: 10px 14px; font-size: 9.5px; line-height: 1.5; letter-spacing: .2em; font-weight: 700; color: var(--ink-gold); text-align: center; border-radius: 4px 0 0 4px; border-inline-end: 2px dashed rgba(28, 21, 17, .28); }
.pf-ticket__txt { display: flex; align-items: center; padding: 12px 20px; font-size: 15px; font-weight: 800; border-radius: 0 4px 4px 0; }
[dir="rtl"] .pf-ticket__stub, :root:not([dir="ltr"]) .pf-ticket__stub { border-radius: 0 4px 4px 0; }
[dir="rtl"] .pf-ticket__txt, :root:not([dir="ltr"]) .pf-ticket__txt { border-radius: 4px 0 0 4px; }

/* the wall: flex rows sized by the PHP layout plan (--s span of 12, --n items in that row) */
.pf-wall { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: var(--cg); row-gap: var(--rg); }
.pf-exhibit { --tilt: 0deg; position: relative; isolation: isolate; min-width: 0; flex: 0 0 calc((100% - (var(--n, 3) - 1) * var(--cg)) * var(--s, 4) / 12 - .5px); }
.pf-exhibit__body { position: relative; display: grid; gap: 26px; }

/* frame: wall light → moulding → mat → print → glass */
.pf-frame { --mould-w: 11px; --mould: var(--ebony); --mat: var(--bone); --mat-pad: 7%; --ratio: 3 / 2; --bevel: #fbf6ee; position: relative; }
.pf-frame::before { content: ""; position: absolute; inset: -20% -16% -12%; z-index: -2; pointer-events: none; background: radial-gradient(50% 52% at 50% 36%, rgba(var(--spot), .11), transparent 72%); opacity: .65; transition: opacity .7s var(--ease-out); }
.pf-frame::after {
  content: ""; position: absolute; left: 50%; bottom: 55%; width: 170%; height: 130%; translate: -50% 0; z-index: -1; pointer-events: none;
  background: conic-gradient(from 180deg at 50% 0%, transparent 163deg, rgba(var(--spot), .05) 172deg, rgba(var(--spot), .085) 180deg, rgba(var(--spot), .05) 188deg, transparent 197deg);
  -webkit-mask-image: linear-gradient(#000 20%, transparent 100%); mask-image: linear-gradient(#000 20%, transparent 100%);
  opacity: .8; transition: opacity .7s var(--ease-out);
}
.pf-frame__wire {
  position: absolute; bottom: 100%; left: 50%; width: 42%; height: 34px; translate: -50% 0; pointer-events: none;
  background:
    linear-gradient(to top right, transparent calc(50% - .75px), rgba(255, 236, 214, .2) 50%, transparent calc(50% + .75px)) left / 50% 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - .75px), rgba(255, 236, 214, .2) 50%, transparent calc(50% + .75px)) right / 50% 100% no-repeat;
}
.pf-frame__wire::after { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #8f7b63; box-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.pf-frame__mould {
  position: relative; padding: var(--mould-w); background: var(--mould);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 -1px 0 rgba(0, 0, 0, .6), 0 46px 70px -34px rgba(0, 0, 0, .98), 0 16px 26px -16px rgba(0, 0, 0, .85);
  rotate: var(--tilt); transition: transform .8s var(--ease-out), box-shadow .8s var(--ease-out);
}
.pf-frame__mat { position: relative; padding: var(--mat-pad); background: var(--mat); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3), inset 0 7px 12px -6px rgba(0, 0, 0, .45); }
.pf-frame__print { position: relative; aspect-ratio: var(--ratio); overflow: hidden; background: #0b0908; box-shadow: 0 0 0 2px var(--bevel), 0 0 0 3px rgba(0, 0, 0, .16); }
.pf-frame__print img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transform: scale(1.001); }
/* client sites are shown in their true colours (no grade or fade) */
.pf-frame__blank { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 50% 45%, rgba(224, 169, 95, .12), transparent 60%), repeating-linear-gradient(135deg, rgba(255, 236, 214, .03) 0 2px, transparent 2px 12px), #110d0b; }
.pf-frame__mark { width: clamp(36px, 22%, 84px); height: auto; aspect-ratio: 1; opacity: .55; }
.pf-frame__ed { display: none; position: absolute; inset-block-end: 6%; inset-inline: 0; text-align: center; font: 500 10px/1 var(--mono); letter-spacing: .2em; color: rgba(60, 46, 36, .55); direction: ltr; }
.pf-frame__glass {
  position: absolute; inset: var(--mould-w); pointer-events: none;
  background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, .09) 46%, rgba(255, 255, 255, .025) 52%, transparent 60%) 110% 0 / 260% 100% no-repeat;
  transition: background-position 1.4s var(--ease-out);
}

/* frame families */
.pf-exhibit--hero-a .pf-frame, .pf-exhibit--hero-b .pf-frame { --mould-w: clamp(12px, 1.3vw, 18px); --mould: var(--gilt); --mat: #15110e; --bevel: #d8c3a0; }
.pf-exhibit--hero-a .pf-frame { --mat-pad: 5.5%; --ratio: 16 / 10; }
.pf-exhibit--hero-b .pf-frame { --mat-pad: 9% 9% 17%; --ratio: 4 / 3; }
.pf-exhibit--hero-b .pf-frame__ed { display: block; color: rgba(216, 195, 160, .5); }
.pf-exhibit--hero-a .pf-frame__mould::before, .pf-exhibit--hero-b .pf-frame__mould::before { content: ""; position: absolute; inset: calc(var(--mould-w) * .42); border: 1px solid rgba(70, 45, 15, .55); pointer-events: none; }
.pf-exhibit--land .pf-frame { --mould-w: 10px; --mould: var(--ebony); --mat: var(--bone); }
.pf-exhibit--port .pf-frame { --mould-w: 12px; --mould: var(--walnut); --mat: var(--paper); --mat-pad: 10% 10% 21%; --ratio: 4 / 3; }
.pf-exhibit--port .pf-frame__ed { display: block; }
.pf-exhibit--small .pf-frame { --mould-w: 7px; --mould: var(--brass); --mat: #0d0a09; --mat-pad: 0; --bevel: rgba(0, 0, 0, .4); }

/* museum placard */
.pf-placard {
  position: relative; justify-self: start; width: min(100%, 360px); padding: 13px 16px 14px;
  background: linear-gradient(180deg, var(--paper), var(--paper-2)); color: var(--ink); border-radius: 2px;
  box-shadow: 0 14px 24px -14px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.pf-exhibit--hero-a .pf-placard, .pf-exhibit--hero-b .pf-placard { width: min(100%, 440px); padding: 16px 20px 18px; }
.pf-placard__no { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.pf-placard__no > span { font: 700 9.5px/1.5 var(--mono); letter-spacing: .16em; color: var(--ink-gold); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.pf-placard__no .pf-placard__dom { overflow: hidden; text-overflow: ellipsis; min-width: 0; letter-spacing: .04em; font-weight: 500; color: var(--ink-2); }
.pf-placard__title { margin-top: 6px; font-size: 17px; font-weight: 900; line-height: 1.65; text-wrap: balance; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pf-exhibit--hero-a .pf-placard__title, .pf-exhibit--hero-b .pf-placard__title { font-size: clamp(18px, 1rem + .5vw, 23px); }
.pf-placard__title a { color: inherit; }
.pf-placard__medium { margin-top: 2px; color: var(--ink-2); font-size: 12.5px; font-weight: 700; line-height: 1.8; }
.pf-placard__text { margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(28, 21, 17, .13); color: #463a31; font-size: 13px; line-height: 2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pf-exhibit--small .pf-placard__text { -webkit-line-clamp: 2; }
.pf-placard__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: #93432f; font-size: 12.5px; font-weight: 800; }
.pf-placard__go .ico { width: 1.05em; height: 1.05em; transition: transform .45s var(--ease-out); }

/* interaction: the exhibit's spotlight comes up */
.pf-exhibit:is(:hover, :focus-within) .pf-frame::before { opacity: 1; }
.pf-exhibit:is(:hover, :focus-within) .pf-frame::after { opacity: 1.6; }
.pf-exhibit:is(:hover, :focus-within) .pf-frame__mould { transform: translateY(-5px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -1px 0 rgba(0, 0, 0, .6), 0 64px 90px -38px rgba(0, 0, 0, 1), 0 24px 36px -18px rgba(0, 0, 0, .85); }
.pf-exhibit:is(:hover, :focus-within) .pf-frame__glass { background-position: -40% 0; }
.pf-exhibit:is(:hover, :focus-within) .pf-frame__print img { transform: scale(1.035); }
.pf-exhibit:is(:hover, :focus-within) .pf-placard__go .ico { transform: translateX(-5px); }
.pf-exhibit__body:focus-within { outline: 2px solid var(--gold); outline-offset: 12px; border-radius: 4px; }
.pf-placard__title a:focus-visible { outline: none; }

/* hung frames settle with a small swing when revealed */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.reveal-all) .pf-exhibit[data-reveal]:not(.is-in) .pf-frame__mould { rotate: -2.2deg; }
  .pf-exhibit[data-reveal].is-in .pf-frame__mould { animation: pfSettle 1.9s var(--ease-out) calc(var(--d, 0) * 90ms + .1s) both; }
}
@keyframes pfSettle { 0% { rotate: -2.2deg; } 35% { rotate: 1.1deg; } 60% { rotate: -.5deg; } 80% { rotate: .2deg; } 100% { rotate: 0deg; } }
.pf-frame__mould { transform-origin: 50% -34px; }

.pf-empty { margin-top: 0; }

/* ---------- Floor plan pager (halls) ---------- */
.pf-halls { position: relative; display: grid; justify-items: center; gap: 20px; margin-top: clamp(88px, 9vw, 140px); }
.pf-halls__plan { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.pf-halls__plan .mono { font-size: 10.5px; letter-spacing: .2em; }
.pf-halls__plan .mono:first-child { color: var(--gold); }
.pf-halls__plan::before, .pf-halls__plan::after { content: ""; width: clamp(24px, 6vw, 80px); height: 1px; background: linear-gradient(90deg, transparent, rgba(224, 169, 95, .45)); }
.pf-halls__plan::after { transform: scaleX(-1); }
.pf-halls__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 22px; }
.pf-halls__map { display: flex; align-items: stretch; padding: 10px; border: 1px dashed rgba(90, 167, 178, .28); border-radius: 6px; background: repeating-linear-gradient(0deg, rgba(90, 167, 178, .05) 0 1px, transparent 1px 16px), repeating-linear-gradient(90deg, rgba(90, 167, 178, .05) 0 1px, transparent 1px 16px); }
.pf-halls__map > li { display: flex; }
.pf-halls__map > li + li { margin-inline-start: -1.5px; }
.pf-door {
  position: relative; display: grid; align-content: center; justify-items: center; gap: 1px; min-width: 112px; min-height: 96px; padding: 14px 12px 12px;
  border: 1.5px solid rgba(255, 236, 214, .26); background: rgba(14, 10, 8, .85); color: var(--text-2); text-align: center;
  transition: background-color .4s, border-color .4s, color .4s;
}
a.pf-door:hover { color: var(--text); border-color: rgba(224, 169, 95, .7); background: rgba(224, 169, 95, .07); z-index: 1; }
a.pf-door:focus-visible { z-index: 2; outline-offset: 2px; border-radius: 0; }
/* doorway + swing arc in the shared wall (architectural plan symbol) */
.pf-door__arch { position: absolute; top: 50%; inset-inline-end: -2px; width: 3px; height: 24px; margin-top: -12px; background: #0e0a08; z-index: 1; }
.pf-door__arch::after { content: ""; position: absolute; top: 0; inset-inline-end: 2px; width: 20px; height: 24px; border-top: 1px solid rgba(90, 167, 178, .5); border-inline-end: 1px dashed rgba(90, 167, 178, .5); border-start-end-radius: 100% 100%; }
.pf-halls__map > li:last-child .pf-door__arch { display: none; }
.pf-door__code { font-size: 9px; letter-spacing: .18em; color: var(--muted); }
.pf-door__name { font-size: 15px; font-weight: 900; color: inherit; line-height: 1.7; }
.pf-door__range { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.pf-door.is-current { color: #1a0d08; border-color: transparent; background: var(--grad-fire); box-shadow: 0 0 0 1.5px rgba(243, 194, 122, .9), 0 18px 40px -16px rgba(210, 106, 78, .8); z-index: 1; }
.pf-door.is-current :is(.pf-door__code, .pf-door__range) { color: rgba(26, 13, 8, .72); }
.pf-door__here { position: absolute; bottom: calc(100% + 12px); left: 50%; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; white-space: nowrap; font-size: 11.5px; font-weight: 800; color: var(--text); background: #1c1512; border: 1px solid var(--line-2); }
.pf-door__here::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 10px var(--rec); }
.pf-halls__gap { align-items: center; padding-inline: 10px; color: var(--muted); }
.pf-halls__step { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding-inline: 22px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 236, 214, .035); color: var(--text); font-weight: 800; font-size: 15px; transition: border-color .3s, color .3s, background-color .3s; }
.pf-halls__step:hover { border-color: rgba(224, 169, 95, .6); color: var(--gold-l); background: rgba(224, 169, 95, .07); }
.pf-halls__step .ico { transition: transform .4s var(--ease-out); }
.pf-halls__step--next:hover .ico { transform: translateX(-4px); }
.pf-halls__step--prev:hover .ico { transform: scaleX(-1) translateX(-4px); }
.pf-flip { transform: scaleX(-1); }

/* ---------- Final CTA: the vacant frame ---------- */
.pf-cta .cta__bg { background: radial-gradient(60% 70% at 25% 40%, rgba(var(--spot), .05), transparent 70%), var(--wall); }
.pf-cta__visual { min-height: 460px; }
.pf-cta__beam {
  position: absolute; left: 50%; top: -40%; width: 170%; height: 120%; translate: -50% 0; z-index: -1; pointer-events: none;
  background: conic-gradient(from 180deg at 50% 0%, transparent 164deg, rgba(var(--spot), .09) 173deg, rgba(var(--spot), .15) 180deg, rgba(var(--spot), .09) 187deg, transparent 196deg);
  -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent);
}
.pf-vacant { position: relative; width: min(100%, 360px); }
.pf-vacant__wire { position: absolute; bottom: 100%; left: 50%; width: 46%; height: 40px; translate: -50% 0; background: linear-gradient(to top right, transparent calc(50% - .75px), rgba(255, 236, 214, .24) 50%, transparent calc(50% + .75px)) left / 50% 100% no-repeat, linear-gradient(to top left, transparent calc(50% - .75px), rgba(255, 236, 214, .24) 50%, transparent calc(50% + .75px)) right / 50% 100% no-repeat; }
.pf-vacant__mould { padding: 18px; background: var(--gilt); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 60px 90px -40px rgba(0, 0, 0, 1), 0 0 80px -30px rgba(224, 169, 95, .35); rotate: 1.5deg; }
.pf-vacant__mat { padding: 11%; background: #141010; box-shadow: inset 0 8px 16px -6px rgba(0, 0, 0, .7); }
.pf-vacant__void { display: grid; place-items: center; align-content: center; gap: 14px; aspect-ratio: 4 / 5; border: 1.5px dashed rgba(224, 169, 95, .38); background: radial-gradient(circle at 50% 42%, rgba(224, 169, 95, .1), transparent 62%); }
.pf-vacant__mark { width: 74px; height: 74px; opacity: .6; }
.pf-vacant__void .mono { font-size: 11px; letter-spacing: .32em; color: var(--gold); }
.pf-vacant__label { position: absolute; bottom: -34px; inset-inline-start: -28px; display: grid; gap: 1px; padding: 12px 16px 13px 44px; background: linear-gradient(180deg, var(--paper), var(--paper-2)); color: var(--ink); border-radius: 2px; box-shadow: 0 18px 30px -14px rgba(0, 0, 0, .95); rotate: -2deg; }
.pf-vacant__label .mono { font-size: 9.5px; letter-spacing: .18em; font-weight: 700; color: var(--ink-gold); }
.pf-vacant__label b { font-size: 17px; font-weight: 900; line-height: 1.6; }
.pf-vacant__label small { font-size: 12px; color: var(--ink-2); }
/* gallery red dot = reserved */
.pf-vacant__dot { position: absolute; top: 14px; left: 16px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff7b6e, #c23a35 70%); box-shadow: 0 0 0 3px rgba(194, 58, 53, .18); animation: pfDot 2.4s ease-in-out infinite; }
@keyframes pfDot { 50% { box-shadow: 0 0 0 7px rgba(194, 58, 53, 0), 0 0 18px rgba(255, 77, 79, .55); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pf-hero__inner { grid-template-columns: 1fr; }
  .pf-hero .cx-hero__visual { position: relative; top: auto; left: auto; z-index: 1; opacity: 1; width: min(100%, 600px); margin: 40px auto 0; pointer-events: none; }
  .pf-notes__grid { grid-template-columns: 1fr; }
  .pf-notes__list { grid-template-columns: 1fr; max-width: 680px; }
  .pf-exhibit { flex-basis: calc((100% - var(--cg)) / 2 - .5px); }
  .pf-exhibit--hero-a { flex-basis: 100%; }
  .pf-exhibit--hero-a .pf-frame { --ratio: 3 / 2; }
  .pf-cta__visual { min-height: 0; padding-block: 50px 60px; justify-items: center; }
}
@media (max-width: 700px) {
  .pf-page { --cg: 0px; --rg: 72px; }
  .pf-salon { aspect-ratio: 1 / .96; }
  .pf-salon__label b { font-size: 13.5px; }
  .pf-exhibit, .pf-exhibit--hero-a { flex-basis: 100%; }
  .pf-exhibit--port .pf-exhibit__body, .pf-exhibit--hero-b .pf-exhibit__body { width: 88%; }
  .pf-exhibit--port:nth-child(odd) .pf-exhibit__body { margin-inline-start: auto; }
  .pf-exhibit--small .pf-frame { --mat-pad: 0; }
  .pf-placard, .pf-exhibit--hero-a .pf-placard, .pf-exhibit--hero-b .pf-placard { width: 100%; }
  .pf-frame__wire { height: 26px; }
  .pf-hall__head { margin-bottom: 64px; }
  .pf-ticket__txt { font-size: 14px; padding: 10px 14px; }
  .pf-halls__row { gap: 12px; }
  .pf-halls__map { order: -1; flex-basis: 100%; justify-content: center; padding: 8px; }
  .pf-door { min-width: 0; flex: 1 1 0; min-height: 84px; padding: 12px 6px 10px; }
  .pf-halls__map > li { flex: 1 1 0; min-width: 0; }
  .pf-door__name { font-size: 13.5px; }
  .pf-door__range { font-size: 10.5px; }
  .pf-door__code { display: none; }
  .pf-halls__step { height: 48px; padding-inline: 18px; font-size: 14px; }
  .pf-vacant { width: min(100%, 290px); }
  .pf-vacant__label { inset-inline-start: -8px; bottom: -40px; }
}
@media (max-width: 420px) {
  .pf-door__range { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .pf-salon__piece { opacity: 1; translate: none; rotate: none; }
  .pf-vacant__dot { animation: none; }
  .pf-exhibit:is(:hover, :focus-within) .pf-frame__mould { transform: none; }
  .pf-exhibit:is(:hover, :focus-within) .pf-frame__print img { transform: none; }
}
