/* AMSP 003 · Review 012 · Section 05 Listening Postcard
   AMSP003-012-P05-SCALE-01  — OPEN becomes a large reading surface (layout width, not a scale()).
   AMSP003-012-P05-FIELD-01  — once open, the light field covers the section.
   PRIVATE REVIEW CANDIDATE. Additive: loaded after listening-postcard-r009.css and review011.css.
   Every rule needs the running script (.is-live) and the open state, so the closed card, the
   no-JS stack and the Review 011 violet → warm-paper reversal are untouched. */

.lp9{
  --lp12-leaf:min(520px, 50%, max(300px, calc((100vh - 292px) * .714)));
  --lp12-single:min(100%, 560px, max(300px, calc((100vh - 220px) * .714)));
}
@supports (height:1svh){
  .lp9{
    --lp12-leaf:min(520px, 50%, max(300px, calc((100svh - 292px) * .714)));
    --lp12-single:min(100%, 560px, max(300px, calc((100svh - 220px) * .714)));
  }
}

/* ── open layout: compact intro, then the card at full presence, then the controls ── */
.lp9.is-live.is-wide{
  --lp9-tilt:-.5deg;
  grid-template-columns:minmax(0,1fr); grid-template-areas:"intro" "scene" "foot"; grid-template-rows:auto;
}
.lp9.is-live.is-wide .lp9__intro{display:grid; grid-template-columns:minmax(0,5fr) minmax(0,6fr); column-gap:clamp(24px,4vw,56px); align-items:end}
.lp9.is-live.is-wide .lp9__intro .eyebrow{grid-column:1/-1}
.e003-review .lp9.is-live.is-wide .lp9__intro h2{font-size:clamp(2.1rem,4vw,3.5rem); line-height:1.02; margin-bottom:0}
.e003-review .lp9.is-live.is-wide .lp9__intro .section-lead{max-width:30em; margin:0; font-size:clamp(1rem,1.25vw,1.15rem)}
.lp9.is-live.is-wide .lp9__scene{padding:clamp(26px,3vw,44px) 0 0}
.lp9.is-live.is-wide .lp9__foot{padding-top:34px}

/* A · the unfolded spread: the slot is the right-hand leaf, hinged on the centre line */
.lp9.is-live.is-wide[data-lp12-layout="spread"] .lp9__slot{width:var(--lp12-leaf); margin-left:50%}
.lp9.is-live.is-wide[data-lp12-layout="spread"] .lp9__listen{width:min(50%,var(--lp12-leaf)); margin-left:50%}
/* one large leaf (phones in both variants; every width in variant B) */
.lp9.is-live.is-wide[data-lp12-layout="single"] .lp9__slot{width:var(--lp12-single); margin-inline:auto}
.lp9.is-live.is-wide[data-lp12-layout="single"] .lp9__listen{width:var(--lp12-single); margin-inline:auto}

/* type follows the leaf, and is allowed to grow with it */
.lp9.is-live.is-wide .lp9__card{font-size:17px}
@supports (width:1cqw){ .lp9.is-live.is-wide .lp9__card{font-size:clamp(15.5px,4.5cqw,22px)} }

/* ── the cover's inside face: the left leaf (decorative; built by the script) ── */
.lp12__leaf{
  position:absolute; top:0; bottom:0; left:-100%; width:100%; z-index:1; border-radius:.2em; pointer-events:none;
  background-color:#1c1438; background-image:linear-gradient(270deg,rgba(0,0,0,.26) 0,rgba(0,0,0,0) .9em);
  box-shadow:0 0 0 1px rgba(237,233,220,.14) inset;
  transform-origin:right center; transform:rotateY(180deg);
  backface-visibility:hidden; -webkit-backface-visibility:hidden;
  transition:transform .85s cubic-bezier(.4,.05,.2,1), background-color 0s;
}
.lp9__card.is-open .lp12__leaf{transform:rotateY(0deg); background-color:rgba(28,20,56,0); transition:transform .85s cubic-bezier(.4,.05,.2,1), background-color .5s ease .8s}
.lp9[data-lp12-layout="single"] .lp12__leaf,.lp9.no-js .lp12__leaf{display:none}
/* the glassine window, seen from behind, at the mirror of its place on the cover */
.lp12__pane{position:absolute; left:1.3em; right:1.3em; top:54%; height:24%; border:1px solid rgba(237,233,220,.3);
  background:linear-gradient(245deg,rgba(244,236,213,.11) 0%,rgba(244,236,213,.03) 38%,rgba(244,236,213,.09) 62%,rgba(244,236,213,.02) 100%)}
.lp9.is-live.is-wide[data-lp12-layout="spread"] .lp9__card.is-open .lp9__cover{transform:rotateY(-180deg)}
.lp9.is-live.is-wide[data-lp12-layout="spread"] .lp9__shadow{left:-100%}

/* ── the inside surface: night, with the light field crossing it ── */
.lp12__inner{position:absolute; top:0; left:0; width:100%; height:100%; z-index:0; display:block; border-radius:.2em; pointer-events:none;
  background:radial-gradient(ellipse 70% 60% at 50% 42%,#2a1e57 0%,#1c1438 58%,#130d29 100%);
  visibility:hidden; transition:visibility 0s linear .85s}
/* in the spread the canvas spans both leaves, but its left half waits until the turning leaf has landed */
.lp9[data-lp12-layout="spread"] .lp12__inner{left:-100%; width:200%; clip-path:inset(0 0 0 50%)}
.lp9__card.is-open .lp12__inner{visibility:visible; transition:visibility 0s}
.lp9[data-lp12-layout="spread"] .lp9__card.is-open .lp12__inner{clip-path:inset(0); transition:visibility 0s, clip-path 0s linear .8s}
.lp9.no-js .lp12__inner{display:none}
.e003-review .lp009.lp011--open .lp9.is-live .lp9__interior{background:transparent}
.lp9.is-live.is-wide .lp9__window{border-color:rgba(237,233,220,.2); background:none}
.lp9.is-live.is-wide .lp9__panel{background:linear-gradient(180deg,rgba(21,16,48,.8) 0%,rgba(15,11,31,.93) 100%)}

/* ── the record, at reading size ── */
.lp9.is-live.is-wide .lp9__panel{padding:1.5em 1.5em 1.55em}
.lp9.is-live.is-wide .lp9__enclosed{font-size:.62em}
.lp9.is-live.is-wide .lp9__panel h3{font-size:2.35em; line-height:1.05; letter-spacing:-.03em; margin-top:.42em}
.lp9.is-live.is-wide .lp9__panel-meta{font-size:.74em; margin-top:.7em}
.lp9.is-live.is-wide .lp9__links{margin-top:1.25em; gap:.6em}
.e003-review .lp9.is-live.is-wide .lp9__links a.lp9__primary{min-height:56px; padding:.6em 1.5em; font-size:max(.74em,13px); letter-spacing:.14em}
.lp9.is-live.is-wide .lp9__close{top:.75em; right:.75em}

/* the door to the Edition 003 Listening Room (present in the markup; styled for every state) */
.lp12__room{margin:1.05em 0 0; padding-top:.95em; border-top:1px solid rgba(237,233,220,.14)}
.e003-review a.lp12__room-link{display:flex; align-items:center; justify-content:space-between; gap:1em; min-height:48px; padding:.5em 0; text-decoration:none;
  font:500 max(.66em,11.5px)/1.4 "IBM Plex Mono",monospace; letter-spacing:.13em; text-transform:uppercase; color:#ede9dc}
.lp12__room-link span[aria-hidden]{flex:0 0 auto; font-size:1.5em; line-height:1; color:#f1df21; transition:transform .25s ease}
.e003-review a.lp12__room-link:hover,.e003-review a.lp12__room-link:focus-visible{color:#f1df21}
.e003-review a.lp12__room-link:hover span[aria-hidden],.e003-review a.lp12__room-link:focus-visible span[aria-hidden]{transform:translateX(5px)}
.e003-review a.lp12__room-link:focus-visible{outline:3px solid #fbf14f; outline-offset:4px}
.lp12__nw{white-space:nowrap}

/* ── the light field over the section ── */
.e003-review .lp009.lp012--field .lp9__field{
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 7%,#000 93%,transparent 100%);
  mask-image:linear-gradient(180deg,transparent 0,#000 7%,#000 93%,transparent 100%)}
.lp9.is-flipping .lp9__route{opacity:0}
.lp9__route{transition:opacity .3s ease}
/* reduced motion keeps the still glow, now across the section, tinted for paper */
.e003-review .lp009.lp012--field .lp9.is-reduced .lp9__glow{opacity:.75; filter:saturate(1.5) brightness(.8)}

/* B · the same fold with a closer camera */
@keyframes lp12-push{from{transform:translateZ(-260px) rotateX(5deg)} to{transform:translateZ(0) rotateX(0)}}
.lp9.is-live.is-wide[data-lp12-variant="b"]:not(.is-reduced) .lp9__stage{perspective:1500px}
.lp9.is-live.is-wide[data-lp12-variant="b"]:not(.is-reduced) .lp9__card{animation:lp12-push 1.15s cubic-bezier(.3,.1,.2,1) both}

@media (max-width:860px){
  .lp9.is-live.is-wide .lp9__intro{display:block}
  .e003-review .lp9.is-live.is-wide .lp9__intro .section-lead{margin-top:.7em}
}
@media (max-width:760px){
  .lp9{--lp12-single:100%}
  .lp9.is-live.is-wide .lp9__scene{padding:26px 0 0}
  /* phones: the open leaf runs almost edge to edge and a little taller, for the most reading room a phone allows */
  .lp9.is-live.is-wide[data-lp12-layout="single"] .lp9__slot{width:calc(100% + 16px); margin-inline:-8px; aspect-ratio:5/7.6}
  .lp9.is-live.is-wide .lp9__panel{padding:1.25em 1.2em 1.3em}
  .lp9.is-live.is-wide .lp9__panel h3{font-size:2.05em}
  .e003-review .lp9.is-live.is-wide .lp9__links a.lp9__primary{width:100%; justify-content:center}
}
@media (prefers-reduced-motion:reduce){
  .lp12__leaf,.lp9__card.is-open .lp12__leaf,.lp12__inner,.lp9__card.is-open .lp12__inner{transition:none!important}
  .lp9 .lp9__card{animation:none!important}
}
