/* Velvet Rope · the stage
   Hero: top billing on crimson, no photo. The neon marquee sign (neon.css) hangs along its bottom.
   Backstage board: five instant prints, each tilted and taped, overlapping on a dark board,
   with a paper call sheet pinned beside them. */

/* ---------- Hero: top billing ---------- */
.bill { background: #BC1730; color: #FFF4EF; padding: clamp(36px, 6vw, 84px) 0 clamp(24px, 3.4vw, 48px); overflow: clip; }
.bill__grid { display: grid; gap: 28px; }
.bill__main, .bill__side { min-width: 0; }
.bill__kicker { font: 600 12px/1.5 var(--body); letter-spacing: .13em; text-transform: uppercase; text-wrap: balance; }
.bill__title { margin-top: 16px; font: 400 21vw/.86 var(--display); letter-spacing: .005em; }
.bill__tag { font: 400 clamp(2rem, 7vw, 2.9rem)/.95 var(--display); letter-spacing: .03em; text-transform: uppercase; text-wrap: balance; }
.bill__lead { margin-top: 14px; max-width: 34em; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; }
.bill__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 26px; }
.bill .btn { background: var(--bg); border-color: var(--bg); }
.bill__link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: none; touch-action: manipulation; }
.bill :focus-visible { outline-color: #FFF4EF; }

/* One entrance, on load. */
.bill [style*="--i"] { animation: rise 640ms var(--ease-out) both; animation-delay: calc(var(--i) * 90ms); }

@media (hover: hover) and (pointer: fine) {
  .bill .btn:hover { background: #2A1215; border-color: #2A1215; }
  .bill__link:hover { text-decoration: underline; text-underline-offset: 5px; }
}
@media (min-width: 1024px) {
  .bill__grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); align-items: end; }
  .bill__title { font-size: min(14.6vw, 12.8rem); }
  .bill__side { padding-bottom: .7rem; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  /* the side column is taller than the headline here: line its tag up with the headline's cap height */
  .bill__grid { align-items: start; }
  .bill__side { padding: 40px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bill [style*="--i"] { animation-name: fade; }
}

/* ---------- Backstage board ---------- */
.backstage { overflow: clip; }
.board {
  position: relative;
  display: grid;
  gap: 26px;
  padding: 34px 14px 24px;
  border: 1px solid rgba(251, 239, 239, .09);
  border-radius: var(--radius);
  background-color: #190B0E;
  /* four screws holding the board to the wall */
  background-image:
    radial-gradient(circle at 12px 12px, #4A2C31 0 2.5px, #0B0506 3px, transparent 3.6px),
    radial-gradient(circle at calc(100% - 12px) 12px, #4A2C31 0 2.5px, #0B0506 3px, transparent 3.6px),
    radial-gradient(circle at 12px calc(100% - 12px), #4A2C31 0 2.5px, #0B0506 3px, transparent 3.6px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), #4A2C31 0 2.5px, #0B0506 3px, transparent 3.6px);
}
.board__pins { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; min-width: 0; }

/* An instant print: thin white border, thick bottom border carrying the name. */
.print {
  container-type: inline-size;
  position: relative;
  z-index: var(--mz, 1);
  width: 100%;  /* needed: inline-size containment would otherwise shrink a justified grid item to nothing */
  min-width: 0;
  max-width: calc(var(--nat) * 1.3);  /* the photo never renders much past its pixel width */
  margin: var(--mt, 0) 0 0;
  grid-column: var(--col);
  grid-row: var(--row);
  justify-self: var(--js, stretch);
  transform: rotate(var(--r, 0deg));
  transition: transform 220ms var(--ease-out);
}
.print__paper {
  position: relative;
  margin: 0;
  padding: 5.5cqw 5.5cqw 0;
  background: #F2ECE3;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .35), 0 18px 30px -12px rgba(0, 0, 0, .75);
}
.print img { display: block; width: 100%; height: auto; background: #2A1A1C; }
.print figcaption {
  padding: 4.8cqw 3cqw 5.2cqw;
  text-align: center;
  font: 400 clamp(15px, 8.6cqw, 25px)/1 var(--display);
  letter-spacing: .07em;
  color: #24110F;
  overflow-wrap: anywhere;
}

/* Crimson tape. Centred on top by default; some prints are taped across a corner. */
.print__paper::before,
.callsheet::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -4cqw;
  left: calc(50% - 16cqw);
  width: 32cqw;
  height: 8.5cqw;
  background: rgba(212, 28, 54, .84);
  transform: rotate(var(--tape, -4deg));
  clip-path: polygon(0 10%, 5% 0, 50% 6%, 95% 0, 100% 12%, 98% 50%, 100% 90%, 94% 100%, 50% 94%, 6% 100%, 0 88%, 2% 50%);
}
.print--corner-r .print__paper::before { top: 1.5cqw; left: auto; right: -7cqw; --tape: 38deg; }
.print--corner-l .print__paper::before { top: 1.5cqw; left: -7cqw; --tape: -38deg; }

/* Phones and tablets: a staggered pile in a 12-column grid. */
.print--sienna    { --nat: 790px; --col: 1 / span 7;  --row: 1; --mt: 0;     --r: -3deg;   --mz: 3; --tape: -5deg; }
.print--valentina { --nat: 323px; --col: 7 / span 6;  --row: 1; --mt: 64px;  --r: 4.5deg;  --mz: 4; --js: end; }
.print--elsa      { --nat: 718px; --col: 6 / span 7;  --row: 2; --mt: 6px;   --r: 2deg;    --mz: 3; --tape: 3deg; --js: end; }
.print--romy      { --nat: 384px; --col: 1 / span 6;  --row: 2; --mt: 78px;  --r: -5deg;   --mz: 4; }
.print--camila    { --nat: 387px; --col: 3 / span 7;  --row: 3; --mt: 4px;   --r: 3.5deg;  --mz: 3; --tape: -2deg; --js: center; }

/* The call sheet: paper, taped, carrying the plan copy. */
.callsheet {
  container-type: normal;
  position: relative;
  z-index: 6;
  justify-self: center;
  width: 100%;
  max-width: 30rem;
  padding: 30px 22px 16px;
  background: #EFE7DC;
  color: #1D0F12;
  transform: rotate(-1.2deg);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .35), 0 18px 30px -12px rgba(0, 0, 0, .75);
}
.callsheet::before { top: -11px; left: calc(50% - 46px); width: 92px; height: 24px; --tape: 2deg; }
.callsheet__kicker { font: 600 .74rem/1.4 var(--body); letter-spacing: .2em; text-transform: uppercase; color: #A3172F; }
.callsheet__title { margin-top: 10px; padding-bottom: 12px; border-bottom: 2px solid #1D0F12; font: 400 clamp(2rem, 2.5vw, 2.5rem)/.95 var(--display); letter-spacing: .015em; }
.callsheet p:not(.callsheet__kicker) { margin-top: 12px; font-size: .95rem; line-height: 1.6; color: #4A3236; }
.callsheet__link {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px;
  font-size: .92rem; font-weight: 600; color: #1D0F12;
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px;
  touch-action: manipulation;
}
.callsheet__link:focus-visible { outline-color: #A3172F; }

/* Phones: Valentina sits at the board's right edge, so she steps in a little and her corner tape is pulled in to stay on the board. */
@media (max-width: 639px) {
  .print--valentina { margin-right: 1.5vw; }
  .print--corner-r .print__paper::before { right: -3cqw; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .board { padding: 40px 28px 30px; }
  .board__pins { width: 100%; max-width: 580px; margin-inline: auto; }
}

/* Desktop: the prints are pinned freely on the left of the board, the call sheet on the right.
   Positions are in a 760 × 770 reference box, so the pile keeps its shape at every width. */
@media (min-width: 1024px) {
  .board { grid-template-columns: minmax(0, 1fr) clamp(270px, 27%, 340px); gap: clamp(28px, 3.4vw, 52px); align-items: center; padding: clamp(28px, 3vw, 44px); }
  .board__pins { display: block; position: relative; aspect-ratio: 760 / 770; }
  .print {
    position: absolute;
    left: calc(var(--x) / 760 * 100%);
    top: calc(var(--y) / 770 * 100%);
    width: calc(var(--w) / 760 * 100%);
    margin: 0;
    z-index: var(--z, 1);
  }
  .print--sienna    { --x: 10;  --y: 34;  --w: 300; --z: 3; }
  .print--valentina { --x: 262; --y: 150; --w: 215; --z: 4; }
  .print--elsa      { --x: 455; --y: 22;  --w: 285; --z: 3; }
  .print--romy      { --x: 120; --y: 452; --w: 225; --z: 2; }
  .print--camila    { --x: 520; --y: 452; --w: 210; --z: 3; }
  .callsheet { max-width: none; padding: 34px 26px 18px; transform: rotate(1.4deg); }
}

/* Wide screens: the board is wide enough for the call sheet to join the pile. Prints and sheet share one
   1160 x 800 reference box (about one unit per pixel). The prints overlap at their sides, never top to bottom,
   so no photo top and no name is hidden: Valentina sits across the edges of Sienna and Elsa and over Romy's
   corner, and Camila is taped over Elsa's blank bottom corner, her tape crossing the foot of the call sheet. */
@media (min-width: 1280px) {
  .board { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .board__pins { grid-area: 1 / 1; aspect-ratio: 1160 / 800; }
  .print {
    left: calc(var(--x) / 1160 * 100%);
    top: calc(var(--y) / 800 * 100%);
    width: calc(var(--w) / 1160 * 100%);
  }
  .print--sienna    { --x: 20;  --y: 30;  --w: 311; --z: 3; }
  .print--valentina { --x: 296; --y: 204; --w: 223; --z: 5; }
  .print--elsa      { --x: 476; --y: 10;  --w: 304; --z: 2; }
  .print--romy      { --x: 94;  --y: 478; --w: 243; --z: 4; }
  .print--camila    { --x: 720; --y: 418; --w: 276; --z: 7; }
  .callsheet {
    grid-area: 1 / 1;
    justify-self: end;
    align-self: start;
    width: calc(330 / 1160 * 100%);
    margin: calc(52 / 1160 * 100%) calc(40 / 1160 * 100%) 0 0;  /* grid-item margins resolve against the board's width */
  }
  .callsheet__title { font-size: 2.25rem; }  /* one height at every wide width, so Camila's tape meets the sheet's foot */
}

/* Hover lifts a print and straightens it a little. Nothing moves under reduced motion. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .print:hover { transform: rotate(calc(var(--r) * .2)) translateY(-4px); z-index: 7; }
}
@media (prefers-reduced-motion: reduce) {
  .print { transition: none; }
}
