/* =========================================================================
   YAMANE — يمان
   A stage, lit by the visitor.
   Palette sampled from the artist's own Metro Al Madina poster and sleeves.
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  /* Ink — the unlit stage. Warm-black with the blue cast of her poster ground. */
  --ink:        #07090e;
  --ink-2:      #0c1016;
  --ink-3:      #141922;
  --ink-4:      #1e242f;

  /* The four sampled brand colours */
  --flame:      #d6541f;   /* YAMANE logotype, Metro Al Madina poster */
  --flame-lift: #f2793e;   /* the same ink under stage light */
  --flame-deep: #8f3413;
  --gold:       #fccd2e;   /* يمّاه / Yammah title */
  --stamp:      #dc0f10;   /* the SOLD OUT rubber stamp, as printed */
  --stamp-ink:  #f4453a;   /* the same red, legible on ink at label size */
  --midnight:   #01102f;   /* بخيالي / Bi Khayali night sky */

  /* Stock */
  --plaster:    #e8d9c3;   /* Beirut limestone, poster board */
  --paper:      #f6efe4;
  --mute:       #9a9184;
  --mute-dim:   #8a8375;   /* 5.3:1 on ink */
  --rule:       rgba(232, 217, 195, 0.16);
  --rule-soft:  rgba(232, 217, 195, 0.08);

  /* Type */
  --display: "Bodoni Moda", "Bodoni MT", Didot, "Times New Roman", serif;
  /* Two Arabic registers, mirroring the Latin split. Aref Ruqaa is the display
     hand: it modulates its stroke the way her own poster lettering does, and
     the way a Didone does, so the two halves of a title match in contrast as
     well as in size. Reem Kufi stays for tracked labels and the small marks,
     where a flat geometric stroke survives at 11px and a calligraphic one
     does not. */
  --arabic-display: "Aref Ruqaa", "Reem Kufi", "Noto Naskh Arabic", serif;
  --arabic:  "Reem Kufi", "Noto Kufi Arabic", "Segoe UI", sans-serif;
  --sans:    "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Type scale — seven steps, and every size on the site is one of them.
     Before this existed the stylesheet carried fifty-four literal sizes that
     computed to thirty distinct values at a single width: eight of them
     between 11.5px and 14px, eight more between 15.7px and 17px. Sizes that
     close together do not read as hierarchy, they read as noise. Arabic set
     beside Latin keeps its em-relative optical adjustment: that derives from
     whichever step the line already uses, so it stays inside the system. */
  --t-micro: 0.75rem;                                      /* tracked caps labels */
  --t-small: 0.85rem;                                      /* captions, meta, notes */
  --t-body:  clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);     /* body copy */
  --t-lead:  clamp(1.1rem, 1rem + 0.5vw, 1.4rem);          /* lead paragraphs */
  --t-h3:    clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);        /* subheads, pull quotes */
  --t-h2:    clamp(2.2rem, 1.2rem + 4.4vw, 4.6rem);        /* section headlines */
  --t-h1:    clamp(3.1rem, 0.85rem + 10.9vw, 7.9rem);      /* the name */
  /* Two display one-offs, named so that nothing on the site is a loose
     number. The Latin half of the lockup runs larger than the Arabic because
     the two scripts only balance optically, not numerically; the door glyph
     is a graphic, and its size is set by the aperture it has to open. */
  --t-hero:  clamp(3.6rem, 1rem + 13vw, 9.6rem);
  --t-mark:  clamp(8rem, 1rem + 57vw, 22rem);

  /* Rhythm — one scale, everywhere */
  --s1: 0.5rem;  --s2: 0.75rem; --s3: 1rem;   --s4: 1.5rem;
  --s5: 2rem;    --s6: 3rem;    --s7: 4.5rem; --s8: 7rem;  --s9: 10rem;

  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --measure: 63ch;

  /* Motion */
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --settle: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* One grade for eleven photographs shot by different people in different
     light. The sepia-and-rotate pulls the cold limestone frames and the
     magenta video stills onto the warm axis of the rest without flattening
     skin. */
  --grade: saturate(0.86) contrast(1.05) brightness(0.95) sepia(0.09) hue-rotate(-6deg);
  --grade-lit: saturate(0.98) contrast(1.02);

  /* Stage lighting — written by JS, read by the whole page */
  --spot-x: 50%;
  --spot-y: 38%;
  --spot-r: 46vmax;
  --house: 0;          /* 0 = single spot, 1 = house lights up */

  color-scheme: dark;
}

/* The site is a dark room. It has no light mode; a stage does not have one.
   Contrast is carried by the plaster-on-ink pairing, which clears AA at every
   size used below. */

/* ---------- 2. Reset ----------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Measured masthead height: 51px on a phone, 76px at 1440. */
  scroll-padding-top: clamp(4rem, 8vh, 5.75rem);
  scrollbar-color: var(--flame-deep) var(--ink);
  scrollbar-width: thin;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--plaster);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  /* Safari's default is a bright blue wash on every tap, which is the one
     colour on this page that belongs to no one. The flame does the job. */
  -webkit-tap-highlight-color: rgba(214, 84, 31, 0.22);
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

/* Browser surfaces belong to the design, not to the browser. */
::selection { background: var(--gold); color: var(--ink); text-shadow: none; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: var(--flame-deep);
  border: 3px solid var(--ink);
  border-radius: 99px;
}
:

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 200;
  background: var(--flame); color: var(--ink); padding: 0.7rem 1.2rem;
  font-weight: 600; letter-spacing: 0.02em; text-decoration: none;
  transition: top 180ms var(--out);
}
.skip:focus { top: 1rem; }

.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 3. The lighting rig ------------------------------------------ */

/* The rig's own scope. It draws no box of its own — it exists so the lighting
   variables invalidate five layers instead of the whole document. */
#stage { display: contents; }

/* Star cloth. The LED backdrop she actually stands in front of at Metro. */
#starcloth {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.85;
}

/* Two layers of the same falloff, both behind the page. The deep one kills the
   star cloth outside the beam; the shallow one shades the ground and the
   photographs. Neither sits over text: measured over the page, the shallow
   layer put body copy at 4.14:1 and tracked labels as low as 1.96:1. */
#pool-deep {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    circle var(--spot-r) at var(--spot-x) var(--spot-y),
    rgba(7, 9, 14, 0) 0%,
    rgba(7, 9, 14, 0.45) 38%,
    rgba(7, 9, 14, 0.92) 68%,
    rgba(7, 9, 14, 0.99) 100%);
  opacity: calc(1 - (var(--house) * 0.75));
  transition: opacity 900ms var(--out);
}

#pool {
  position: fixed; inset: 0; z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    circle calc(var(--spot-r) * 1.25) at var(--spot-x) var(--spot-y),
    rgba(7, 9, 14, 0) 0%,
    rgba(7, 9, 14, 0.10) 44%,
    rgba(7, 9, 14, 0.34) 74%,
    rgba(7, 9, 14, 0.50) 100%);
  opacity: calc(1 - (var(--house) * 0.9));
  transition: opacity 900ms var(--out);
}

/* The warm side of the same lamp: tungsten spill on whatever it lands on. */
#spill {
  position: fixed; inset: 0; z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(
    circle calc(var(--spot-r) * 0.82) at var(--spot-x) var(--spot-y),
    rgba(255, 176, 106, 0.16) 0%,
    rgba(214, 84, 31, 0.07) 46%,
    rgba(0, 0, 0, 0) 78%);
  opacity: calc(1 - (var(--house) * 0.45));
  transition: opacity 900ms var(--out);
}

/* The beam is wider than the stage; the rig frame is what keeps it off the
   document's own scroll axis. */
#rig {
  position: fixed; inset: 0; z-index: 2;
  overflow: clip;
  pointer-events: none;
}

/* filter runs before clip-path, so a beam that blurs itself and then clips
   hands back the hard edge it just softened. The haze blurs the clipped
   shape instead, and carries the blend and the fade. */
#haze {
  position: absolute; inset: 0;
  filter: blur(52px);
  mix-blend-mode: screen;
  opacity: calc(0.95 - (var(--house) * 0.72));
  transition: opacity 900ms var(--out);
}

/* The beam itself, seen through haze, hung from the rig above the proscenium. */
#beam {
  position: absolute;
  left: var(--spot-x); top: -28vh;
  width: 62vmax; height: 108vh;
  margin-left: -31vmax;
  pointer-events: none;
  transform-origin: 50% 8%;
  transform: rotate(var(--beam-tilt, 0deg));
  background: linear-gradient(
    to bottom,
    rgba(255, 201, 149, 0.58) 0%,
    rgba(255, 176, 112, 0.24) 34%,
    rgba(214, 84, 31, 0.06) 70%,
    rgba(214, 84, 31, 0) 94%);
  clip-path: polygon(45.5% 0%, 54.5% 0%, 92% 100%, 8% 100%);
  /* The clip gives the beam its shape; the mask dissolves the cut edges so it
     reads as light through haze rather than as a polygon. */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 26%, #000 74%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0%, #000 26%, #000 74%, transparent 100%);
}

/* Reduced motion: house lights. No beam, no chase, full legibility. */
@media (prefers-reduced-motion: reduce) {
  #haze { display: none; }
  #pool { opacity: 0.1; transition: none; }
  #pool-deep { opacity: 0.25; transition: none; }
  #spill { opacity: 0.35; transition: none; }
}

/* ---------- 4. Page frame ------------------------------------------------ */

.page { position: relative; z-index: 4; }

.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

/* Cue sheet rail — the section marker, set like a lighting board label. */
.rail {
  position: fixed;
  left: max(0.9rem, calc((100vw - 1440px) / 2 + 0.9rem));
  top: 50%;
  max-height: 70vh;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  font-size: var(--t-micro);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--mute-dim);
}
.rail__cue, .rail__name {
  writing-mode: vertical-rl;
  white-space: nowrap;
}
@media (min-width: 1240px) { .rail { display: flex; } }
@media (min-width: 1240px) { :root { --gutter: clamp(5.5rem, 6.6vw, 7.5rem); } }

.rail__cue {
  color: var(--flame);
  font-variant-numeric: tabular-nums;
  transition: color 400ms var(--out);
}
.rail__name { color: var(--mute); }
/* Pitch is set by the hit area below, not by the dot: 5px + 2x10px inset = 25px. */
.rail__ticks { display: flex; flex-direction: column; gap: 22px; margin-top: 0.4rem; }
.rail__tick {
  position: relative;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-4);
  border: 0; padding: 0; cursor: pointer;
  transition: background 320ms var(--out), transform 320ms var(--out);
}
/* The dot stays 5px; the target does not. */
.rail__tick::after { content: ""; position: absolute; inset: -11px; }
/* The active cue is the aperture: the same lit rim the visitor came in
   through, kept on screen for the whole page. */
.rail__tick[aria-current="true"] {
  background: transparent;
  transform: scale(1.9);
  box-shadow: 0 0 0 1px var(--flame-lift), 0 0 7px rgba(252, 205, 46, 0.5);
}

/* ---------- 5. Masthead -------------------------------------------------- */

.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4);
  padding: clamp(0.85rem, 1.6vw, 1.4rem) var(--gutter);
  background: linear-gradient(to bottom,
    rgba(7, 9, 14, 0.95) 0%,
    rgba(7, 9, 14, 0.88) 72%,
    rgba(7, 9, 14, 0) 100%);
  transition: background 420ms var(--out), backdrop-filter 420ms var(--out);
}
.masthead[data-stuck="true"] {
  background: rgba(7, 9, 14, 0.9);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule-soft);
}

.mark {
  display: inline-flex; align-items: baseline; gap: 0.55rem;
  padding-block: 0.35rem;
  text-decoration: none; letter-spacing: 0.01em;
}
.mark__ar {
  font-family: var(--arabic); font-size: var(--t-h3); font-weight: 600;
  color: var(--flame); line-height: 1.45;
  margin-block: -0.3em;
}
.mark__la {
  font-family: var(--sans); font-size: var(--t-micro); font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--plaster);
}

.nav { display: none; gap: clamp(1.1rem, 2.2vw, 2.1rem); align-items: center; }
@media (min-width: 900px) { .nav { display: flex; } }

.nav a {
  font-size: var(--t-micro); font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; text-decoration: none; color: var(--mute);
  position: relative; padding-block: 0.4rem;
  transition: color 240ms var(--out);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--flame);
  transform: scaleX(0); transform-origin: left;
  transition: transform 320ms var(--out);
}
.nav a[aria-current="true"]{ color: var(--paper); }
.nav a[aria-current="true"]::after{ transform: scaleX(1); }

/* ---------- 6. Buttons --------------------------------------------------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-ring: var(--rule);
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 0.95rem 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-ring);
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background 220ms var(--out), color 220ms var(--out),
              border-color 220ms var(--out), transform 120ms var(--out);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; flex: none; }

.btn--flame {
  --btn-bg: var(--flame); --btn-fg: var(--ink); --btn-ring: var(--flame);
  font-weight: 700;
}


.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn[disabled]:active { transform: none; }

/* ---------- 7. Typography ------------------------------------------------ */

.display {
  font-family: var(--display);
  font-weight: 700;
  /* `auto` picks the ~96pt master at this size and its hairlines vanish in
     reverse on a dark ground. Didone contrast rises with opsz, so a screen
     display setting wants a lower one than the point size implies. */
  font-optical-sizing: none;
  font-variation-settings: "opsz" 30;
  line-height: 0.88;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.h-sec {
  font-family: var(--display);
  font-weight: 700;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 42;
  font-size: var(--t-h2);
  line-height: 0.96;
  letter-spacing: -0.028em;
  text-wrap: balance;
  color: var(--paper);
}
.h-sec em {
  font-style: italic;
  font-weight: 500;
  color: var(--flame-lift);
}

.h-ar {
  font-family: var(--arabic-display);
  font-weight: 600;
  line-height: 1.25;
  direction: rtl;
  color: var(--flame);
}

.lede {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--paper);
  max-width: 34ch;
  text-wrap: pretty;
}

.prose { max-width: var(--measure); color: var(--plaster); text-wrap: pretty; }
.prose p + p { margin-top: var(--s3); }
.prose strong { color: var(--paper); font-weight: 600; }


.dim { color: var(--mute); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* Bilingual lockup: the two scripts are one title, never a translation. */

/* ---------- 8. Rules & printed matter ------------------------------------ */


/* ---------- 9. CUE 1 — Hero ---------------------------------------------- */

.hero {
  min-height: 100svh;
  display: grid;
  /* `safe` keeps the lockup on screen when the content outgrows the viewport;
     without it a short window clips the first line off the top. */
  align-content: safe center;
  padding-block: clamp(6rem, 13vh, 9.5rem) clamp(3rem, 8vh, 6rem);
}

.hero__grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 4.5rem);
  grid-template-columns: 1fr;
  grid-template-areas: "lockup" "portal" "proof";
  align-items: center;
}
.lockup { grid-area: lockup; }
.portal { grid-area: portal; }
.hero__proof { grid-area: proof; }
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
    grid-template-areas: "lockup portal" "proof portal";
    align-items: end;
  }
  .lockup { align-self: end; }
}

.lockup { position: relative; }

.lockup__la {
  font-size: var(--t-hero);
  color: var(--flame);
  display: block;
}
.lockup__ar {
  width: max-content;
  max-width: 100%;
  font-family: var(--arabic-display);
  /* Reem Kufi is a solid-stroke face against a high-contrast Didone, so equal
     optical weight means a lighter nominal weight at a larger cap height. */
  font-weight: 700;
  font-size: var(--t-h1);
  line-height: 1.12;
  direction: rtl;
  color: var(--flame);
  display: block;
  margin-top: -0.12em;
  letter-spacing: 0;
}

/* The mark is printed by default. Script takes it away for one frame and lets
   it lay back down, so a visitor without JavaScript gets the name, not a gap.
   The mask box is grown past the type so descenders and the dots under the
   Arabic ya are not clipped by it. */
.ink-wipe {
  --wipe: 130%;
  -webkit-mask-image: linear-gradient(100deg, #000 0 var(--wipe), transparent var(--wipe));
  mask-image: linear-gradient(100deg, #000 0 var(--wipe), transparent var(--wipe));
  -webkit-mask-size: 130% 220%;
  mask-size: 130% 220%;
  /* A percentage position places an oversized mask by (box - image) * pct, so
     a negative value pushes it the wrong way and uncovers the top. Centre it. */
  -webkit-mask-position: 50% 50%;
  mask-position: 50% 50%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: --wipe 1200ms var(--out) 180ms;
}
/* Arabic is written from the right, so it is inked from the right. */
.lockup__ar.ink-wipe {
  -webkit-mask-image: linear-gradient(260deg, #000 0 var(--wipe), transparent var(--wipe));
  mask-image: linear-gradient(260deg, #000 0 var(--wipe), transparent var(--wipe));
}
body.js-armed .ink-wipe { --wipe: 0%; }
body.js-armed.is-printed .ink-wipe { --wipe: 130%; }
@media (prefers-reduced-motion: reduce) {
  .ink-wipe, body.js-armed .ink-wipe { --wipe: 130%; transition: none; }
}


.hero__say {
  margin-top: var(--s4);
  max-width: 40ch;
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--plaster);
  text-wrap: pretty;
}

.hero__scroll {
  display: none;
  margin-top: clamp(2rem, 4vh, 3.2rem);
  align-items: center; gap: 0.7rem;
  font-size: var(--t-micro); letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--mute); text-decoration: none;
  background: none; border: 0; cursor: pointer; padding: 0.6rem 0;
  transition: color 240ms var(--out);
}
.hero__scroll svg { width: 13px; height: 22px; }
@media (min-width: 900px) { .hero__scroll { display: inline-flex; } }

.hero__acts {
  margin-top: clamp(1.8rem, 3.4vw, 2.6rem);
  display: flex; flex-wrap: wrap; gap: 0.75rem;
}

/* A set, not a ticker: aligned columns so no separator is ever left hanging
   at the end of a wrapped line. */
.hero__proof {
  margin-top: clamp(2rem, 3.6vw, 3rem);
  padding-top: var(--s3);
  border-top: 1px solid var(--rule-soft);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.5rem 1.4rem;
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

/* The portal. Her own backstage photograph, lit from the same side as the rig. */
.portal {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--ink-2);
  justify-self: center;
  width: 100%;
  max-width: 460px;
  /* clip-path antialiases the arc; border-radius on an overflow container
     leaves a stepped edge on the image inside it. */
  clip-path: inset(0 round 46% 46% 6px 6px / 34% 34% 6px 6px);
}
@media (min-width: 620px) { .portal { aspect-ratio: 4 / 5; max-width: 420px; } }
/* Held at 460px: the source frame is 512px wide, so a wider portal would only
   magnify the upscale. See docs/SOURCES.md. */
@media (min-width: 900px) { .portal { max-width: 460px; aspect-ratio: 5 / 6; justify-self: end; } }

.portal img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 54% 30%;
  filter: contrast(1.04) saturate(0.96);
}
.portal::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(7, 9, 14, 0.85) 0%, rgba(7, 9, 14, 0) 44%),
    linear-gradient(to right, rgba(7, 9, 14, 0.42) 0%, rgba(7, 9, 14, 0) 38%);
  pointer-events: none;
}


/* ---------- 10. Section shell -------------------------------------------- */

.sec { padding-block: clamp(4.5rem, 11vh, 9rem); }

.sec__head {
  display: grid; gap: var(--s4);
  grid-template-columns: 1fr;
  align-items: end;
  margin-bottom: clamp(2.2rem, 5vw, 3.6rem);
}
@media (min-width: 860px) {
  .sec__head { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s6); }
}
.sec__head .prose { font-size: var(--t-body); }

/* ---------- 11. CUE 2 — Who ---------------------------------------------- */

.who__grid {
  display: grid; gap: clamp(2rem, 4vw, 3.4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .who__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}

.figure { position: relative; margin: 0; }
.figure img { width: 100%; object-fit: cover; filter: var(--grade); }
.strip img, .portraits img, .epk__shots img, .pinned img { filter: var(--grade); }
.figure--crop img { aspect-ratio: 5 / 3; object-position: 48% 34%; }
.figure figcaption {
  margin-top: 0.7rem;
  font-size: var(--t-small); letter-spacing: 0.005em;
  color: var(--mute);
}

/* The instruments, as a dated list — the actual spine of her biography. */
.hands { margin-top: clamp(2rem, 4vw, 3rem); }
.hands li {
  display: grid;
  grid-template-columns: 3.4rem 1fr auto;
  align-items: baseline;
  gap: var(--s3);
  padding-block: 1.15rem;
  border-top: 1px solid var(--rule-soft);
}
.hands li:last-child { border-bottom: 1px solid var(--rule-soft); }
.hands__age {
  font-family: var(--display); font-weight: 700;
  font-size: var(--t-h3); color: var(--flame); line-height: 1;
}
.hands__what { font-weight: 500; color: var(--paper); }

/* The instrument and its Arabic name are one title in two scripts, set on one
   line, not a name with a fact hanging opposite it. */
.hands li { grid-template-columns: 3.6rem 1fr; }
.hands__pair {
  display: inline-flex; align-items: baseline; flex-wrap: wrap;
  gap: 0.15em 0.55em;
}
.hands__ar {
  font-family: var(--arabic-display); direction: rtl; unicode-bidi: isolate;
  font-size: 1.02em; font-weight: 500; color: var(--flame-lift);
}

/* A played facade is no longer a control. */
.facade--live { cursor: default; }

/* An unknown value is left blank on purpose rather than filled with a guess. */
.bill__note:only-child,
.bill__row .bill__note { color: var(--plaster); }
.bill__row .bill__note:where(:not(.num)) { color: var(--mute); }

blockquote.pull {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-left: var(--s4);
  text-indent: -0.42em;
  border-left: 1px solid var(--flame);
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--t-h3);
  line-height: 1.32;
  color: var(--paper);
  text-wrap: pretty;
}
blockquote.pull cite {
  display: block; margin-top: var(--s3);
  font-family: var(--sans); font-style: normal;
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mute-dim);
}


.portraits {
  display: grid; gap: clamp(1rem, 2vw, 1.6rem);
  grid-template-columns: 1fr;
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
}
@media (min-width: 720px) {
  .portraits { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
.portraits .figure img { aspect-ratio: 4 / 3; }
.portraits .figure:last-child img { object-position: 50% 28%; }

/* ---------- 12. CUE 3 — The record --------------------------------------- */

.lead-release {
  display: grid; gap: clamp(1.6rem, 3.4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: center;
  margin-bottom: clamp(2.6rem, 5vw, 4rem);
}
@media (min-width: 940px) {
  .lead-release { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}

.lead-release__meta .h-sec { margin-bottom: var(--s2); }

.plays {
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  font-family: var(--display); font-weight: 700;
  font-size: var(--t-h3);
  color: var(--gold); line-height: 1;
}
.plays small {
  font-family: var(--sans); font-size: var(--t-micro); font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute);
}

/* Facade — nothing third-party loads until the visitor asks for it.
   The artwork carries no type of ours; titles sit on the caption line below,
   because several of her sleeves already have her name burned into them. */
.facade {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9; overflow: hidden;
  padding: 0; border: 1px solid var(--rule-soft); background: var(--ink-2);
  cursor: pointer; color: inherit; text-align: left;
}
.facade img {
  width: 100%; height: 100%; object-fit: cover;
  filter: var(--grade);
  transition: filter 500ms var(--out), transform 900ms var(--out);
}
.facade:focus-visible img{
  filter: var(--grade-lit);
  transform: scale(1.02);
}
/* The cue lives on the caption line, not stamped across her photograph. */
.tile__cue {
  width: 40px; height: 40px; flex: none;
  border: 1px solid var(--rule); border-radius: 50%;
  display: grid; place-items: center;
  transition: background 240ms var(--out), border-color 240ms var(--out);
}
.tile__cue svg { width: 12px; height: 12px; fill: var(--flame); transition: fill 240ms var(--out); }
.facade:focus-visible ~ .tile__cap .tile__cue{ background: var(--flame); border-color: var(--flame); }
.facade:focus-visible ~ .tile__cap .tile__cue svg{ fill: var(--ink); }
.facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.tile { margin: 0; }
/* Stacked, the lead release's caption would repeat the heading beside it. */
@media (max-width: 939px) {
  .lead-release .tile__cap .tile__title { display: none; }
  .lead-release .tile__cap { justify-content: flex-start; gap: var(--s3); }
}
.tile__cap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.3rem var(--s3);
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule-soft);
  margin-top: 0.75rem;
  /* It plays the tile, so it has to look like it does. */
  cursor: pointer;
}
/* The caption is not a control once that tile's player has replaced the still. */
.facade--live ~ .tile__cap { cursor: default; }
.tile__text { min-width: 0; }
.tile__title {
  font-family: var(--display); font-weight: 700;
  font-size: var(--t-lead);
  line-height: 1.1; color: var(--paper);
}
.tile__title [lang="ar"] {
  font-family: var(--arabic-display); direction: rtl; font-weight: 600;
  color: var(--flame-lift); font-size: 0.94em;
  margin-left: 0.45em;
  unicode-bidi: isolate;
}
.tile__side {
  display: block; margin-top: 0.25rem;
  font-size: var(--t-micro); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mute); font-variant-numeric: tabular-nums;
}

/* The record index. Her catalogue set as a ruled bill that plays where it
   stands, rather than the grid of equal streaming squares every artist site
   already has. */
.index { border-top: 2px solid var(--flame-deep); }
.index__row { border-bottom: 1px solid var(--rule-soft); }

.index__btn {
  width: 100%;
  display: grid;
  grid-template-columns: clamp(104px, 16vw, 232px) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--s4);
  padding: 1rem 0;
  background: none; border: 0; color: inherit;
  text-align: left; cursor: pointer;
}
.index__thumb {
  aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2);
  border: 1px solid var(--rule-soft);
}
.index__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: var(--grade);
  transition: filter 420ms var(--out), transform 700ms var(--out);
}
.index__btn:focus-visible .index__thumb img{ filter: var(--grade-lit); transform: scale(1.05); }

.index__text { display: block; min-width: 0; }
/* On a wide screen the title and its running time sat seven hundred pixels
   apart with nothing between them. A printed index answers that with a
   leader, so the eye can follow the row across. */
@media (min-width: 1240px) {
  .index__text {
    display: grid;
    grid-template-columns: auto minmax(2rem, 1fr);
    column-gap: var(--s4);
    align-items: center;
  }
  .index__title, .index__meta { grid-column: 1; }
  .index__text::after {
    content: ""; grid-column: 2; grid-row: 1 / span 2;
    border-bottom: 1px dotted color-mix(in srgb, var(--plaster) 34%, transparent);
  }
}
.index__title {
  display: block;
  font-family: var(--display); font-weight: 700;
  font-size: var(--t-lead);
  line-height: 1.12; color: var(--paper);
}
.index__title [lang="ar"] {
  font-family: var(--arabic-display); direction: rtl; font-weight: 600;
  color: var(--flame-lift); font-size: 0.94em;
  margin-left: 0.45em;
  unicode-bidi: isolate;
}
.index__meta {
  display: block; margin-top: 0.3rem;
  font-size: var(--t-micro); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mute); font-variant-numeric: tabular-nums;
}
.index__cue {
  width: 40px; height: 40px; flex: none;
  border: 1px solid var(--rule); border-radius: 50%;
  display: grid; place-items: center;
  transition: background 240ms var(--out), border-color 240ms var(--out);
}
.index__cue svg { width: 12px; height: 12px; fill: var(--flame); transition: fill 240ms var(--out); }
.index__btn:focus-visible .index__cue{ background: var(--flame); border-color: var(--flame); }
.index__btn:focus-visible .index__cue svg{ fill: var(--ink); }

.index__player { display: none; }
.index__row[data-open="true"] .index__player { display: block; padding-bottom: var(--s4); }
.index__row[data-open="true"] .index__cue { background: var(--flame); border-color: var(--flame); }
.index__row[data-open="true"] .index__cue svg { fill: var(--ink); }
.index__frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink-2); }
.index__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.index__time {
  font-size: var(--t-small); color: var(--plaster);
  font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
}

@media (max-width: 560px) {
  .index__btn { grid-template-columns: 92px minmax(0, 1fr) auto; gap: var(--s3); }
  .index__cue { width: 34px; height: 34px; }
  .index__time { display: none; }
}

.releases {
  display: grid; gap: clamp(1rem, 2vw, 1.6rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr));
}

.platforms {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule-soft);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.6rem;
}
/* On a phone the label shared a row with the first link and the rest fell
   into a ragged grid under it. It gets its own line. */
@media (max-width: 620px) { .platforms__lab { flex-basis: 100%; } }
.platforms__lab {
  font-size: var(--t-micro); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--mute-dim); margin-right: auto;
}
.plat {
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: var(--mute);
  font-size: var(--t-micro); font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 0;
  min-height: 44px;
  transition: color 220ms var(--out);
}
.plat svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- 13. CUE 4 — The night ---------------------------------------- */

.night {
  position: relative;
  background: linear-gradient(180deg,
    rgba(1, 16, 47, 0) 0%,
    rgba(1, 16, 47, 0.75) 14%,
    var(--midnight) 30%,
    var(--midnight) 70%,
    rgba(1, 16, 47, 0.75) 86%,
    rgba(1, 16, 47, 0) 100%);
  overflow: hidden;
  padding-block: clamp(5.5rem, 14vh, 11rem);
}
.night canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.9;
}
.night__inner { position: relative; z-index: 1; }

@media (min-width: 940px) {
  .night__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: var(--s4) var(--s7);
    align-items: start;
  }
  .night__inner > .night__say,
  .night__inner > .night__ar { grid-column: 1; }
  .night__inner > .prose { grid-column: 2; grid-row: 1 / span 2; margin-top: 0.5em; }
  .night__inner > .night__trio { grid-column: 1 / -1; }
}

.night__say {
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: var(--t-h2);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--paper);
  max-width: 19ch;
  text-wrap: balance;
}
.night__ar {
  width: max-content; max-width: 100%;
  font-family: var(--arabic-display); direction: rtl;
  font-size: var(--t-h3);
  font-weight: 500; line-height: 1.5;
  color: var(--gold);
  margin-top: var(--s4);
}
.night__trio {
  margin-top: clamp(2.6rem, 6vw, 4.4rem);
  display: grid; gap: clamp(1rem, 2vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

/* ---------- 14. CUE 5 — The bill ----------------------------------------- */

.bill-top {
  display: grid; gap: clamp(1.8rem, 4vw, 3.2rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 940px) {
  .bill-top { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}

/* Her own poster, pinned to the wall, stamp and all. */
.pinned {
  position: relative;
  /* Its own property, not `transform`: the reveal system also writes
     `transform` on this element and used to win, so the one tilt the
     contract licenses was never on screen. These compose. */
  rotate: -1.4deg;
  transform-origin: 50% 0;
}
.pinned img {
  display: block;
  width: 100%;
  box-shadow: 0 26px 60px -24px rgba(0, 0, 0, 0.95);
}
/* A shadow cannot show on a ground this dark, so the sheet is described by
   the light on it instead: a rake across the top and one lit edge. */
.pinned__sheet { position: relative; display: block; }
.pinned__sheet::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(168deg,
    rgba(246, 239, 228, 0.16) 0%,
    rgba(246, 239, 228, 0.05) 16%,
    rgba(246, 239, 228, 0) 34%);
  box-shadow: inset 0 1px 0 rgba(246, 239, 228, 0.22);
  mix-blend-mode: screen;
}
.pinned::before {
  content: ""; position: absolute;
  top: -9px; left: 50%; transform: translateX(-50%);
  width: 46px; height: 17px;
  background: rgba(232, 217, 195, 0.13);
  border: 1px solid rgba(232, 217, 195, 0.2);
}
@media (min-width: 940px) {
  .pinned { position: sticky; top: 6.5rem; }
}
.pinned figcaption {
  margin-top: var(--s3);
  font-size: var(--t-small); letter-spacing: 0.005em;
  color: var(--mute);
}

/* The bill itself: hanging dates, leaders, a stamped line. */
.bill { margin-top: clamp(2rem, 4vw, 3rem); }
.bill__dates {
  margin-bottom: var(--s3);
  font-size: var(--t-micro);
  color: var(--mute-dim);
}
.bill__group + .bill__group { margin-top: clamp(2rem, 4vw, 2.8rem); }
.bill__lab {
  font-size: var(--t-micro); font-weight: 600; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--flame);
  padding-bottom: 0.7rem; border-bottom: 2px solid var(--flame-deep);
}
.bill__group ul { margin-top: 0.2rem; }
.bill__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem var(--s3);
  align-items: baseline;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--rule-soft);
}
.bill__name { font-size: var(--t-body); font-weight: 500; color: var(--paper); }
.bill__note {
  font-size: var(--t-micro); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--plaster); text-align: right;
  font-variant-numeric: tabular-nums;
}

.stamp {
  -webkit-mask-image: var(--ink-mask, none);
  mask-image: var(--ink-mask, none);
  -webkit-mask-size: 96px 96px;
  mask-size: 96px 96px;
  display: inline-block;
  margin-left: 0.7rem;
  padding: 0.2em 0.55em;
  border: 2px solid var(--stamp);
  color: var(--stamp-ink);
  font-size: var(--t-micro); font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  transform: rotate(-4deg);
  white-space: nowrap;
}

/* The formats are lines on the same bill, set the way the engagements above
   them are set: name at the left, the countable fact hanging at the right. */
.formats { margin-top: clamp(2.4rem, 5vw, 3.6rem); }
.formats__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem var(--s4);
  align-items: baseline;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--rule-soft);
}
.formats__name {
  font-family: var(--display); font-weight: 700;
  font-size: var(--t-lead);
  color: var(--paper); line-height: 1.1;
}
.formats__what {
  grid-column: 1 / -1;
  font-size: var(--t-small); color: var(--mute); max-width: 62ch;
}
.formats__count {
  grid-row: 1 / 2; grid-column: 2 / 3;
  font-size: var(--t-micro); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--flame); white-space: nowrap;
}

.strip {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.strip figcaption {
  margin-top: 0.6rem; font-size: var(--t-small);
  letter-spacing: 0.005em; color: var(--mute);
}

/* ---------- 15. CUE 6 — House lights ------------------------------------- */

.book { position: relative; }
.book__grid {
  display: grid; gap: clamp(2.2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 940px) {
  .book__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}

.field { display: block; margin-bottom: var(--s4); }
.field > span:not(.field__err) {
  display: block; margin-bottom: 0.5rem;
  font-size: var(--t-micro); font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--mute);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.85rem 0.95rem;
  background: var(--ink-2);
  border: 1px solid var(--rule-soft);
  border-radius: 0;
  color: var(--paper);
  transition: border-color 220ms var(--out), background 220ms var(--out);
}
.field input::placeholder, .field textarea::placeholder { color: var(--mute-dim); }
/* No outline:none here. A 1px border recolour was the only focus indicator on
   all seven controls; the global :focus-visible ring now stands, and the
   global :focus:not(:focus-visible) still takes it away for pointer users. */
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--flame); background: var(--ink-3);
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input[type="date"] { color-scheme: dark; }
.field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.6) sepia(0.25) saturate(0.5);
  opacity: 0.9; cursor: pointer;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%239a9184' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 12px;
  padding-right: 2.4rem;
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea { border-color: var(--stamp); }
.field__err {
  display: none; margin-top: 0.45rem;
  font-size: var(--t-small); letter-spacing: 0; text-transform: none;
  font-weight: 400; color: #ff9186;
}
/* The error span is the label's next sibling, not its child: as a descendant
   selector this never matched and no message was ever shown. */
.field[data-invalid="true"] + .field__err {
  display: block;
  /* The gap belongs under the message, not between the input and it. */
  margin-bottom: var(--s4);
}
.field[data-invalid="true"] { margin-bottom: 0; }

.form__note { font-size: var(--t-micro); color: var(--mute-dim); margin-top: var(--s3); }

.form__status {
  margin-top: var(--s3);
  padding: 0.85rem 1rem;
  border-left: 1px solid var(--flame);
  background: var(--ink-2);
  font-size: var(--t-small);
  color: var(--paper);
  display: none;
}
.form__status[data-show="true"] { display: block; }

.direct { margin-top: 0; }
.direct__row {
  display: grid; grid-template-columns: 8.5rem 1fr;
  gap: var(--s3);
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}
.direct__row:first-child { border-top: 1px solid var(--rule-soft); }
.direct__k {
  font-size: var(--t-micro); font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--mute-dim);
}
.direct__v a {
  display: inline-block; padding-block: 0.3rem;
  /* "X" is a one-letter wordmark and lands at 10px wide without this. */
  min-width: 24px; text-align: center;
  text-decoration: none; border-bottom: 1px solid var(--flame-deep);
}

.socials { margin-top: clamp(2rem, 4vw, 2.8rem); display: flex; flex-wrap: wrap; gap: 1.4rem; }

/* Ledger rows hang a value at the right. Below 620px there is no room for a
   second column, so the value drops under the name rather than crushing it. */
@media (max-width: 620px) {
  .formats__row { grid-template-columns: 1fr; gap: 0.3rem; }
  /* The bill keeps its right-hand column. With the placeholder dashes gone
     only five rows carry a value, and a date that hangs at the right is the
     ledger's whole device; stacked under the name it read as a list. */
  .bill__row { grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem var(--s3); }
  .formats__count {
    grid-row: auto; grid-column: 1;
    justify-self: start; white-space: normal;
  }
  .direct__row { grid-template-columns: 1fr; gap: 0.3rem; }
  .direct__v { overflow-wrap: anywhere; }
  .hero__acts .btn { flex: 1 1 100%; justify-content: center; }
  .socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 0.6rem 1.2rem; }
}

/* ---------- 15b. Box office — the mobile action bar --------------------- */

.boxoffice {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr 1.25fr;
  gap: 1px;
  background: var(--rule-soft);
  border-top: 1px solid var(--rule-soft);
  padding-bottom: env(safe-area-inset-bottom, 0);
  transform: translateY(101%);
  visibility: hidden;
  transition: transform 420ms var(--out), visibility 0s 420ms;
}
.boxoffice[data-show="true"] {
  transform: none;
  visibility: visible;
  transition: transform 420ms var(--out), visibility 0s;
}
@media (min-width: 900px) { .boxoffice { display: none; } }
@media (prefers-reduced-motion: reduce) { .boxoffice { transition: none; } }

.boxoffice a {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 56px;
  background: var(--ink-2);
  color: var(--paper);
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none;
}
.boxoffice a svg { width: 14px; height: 14px; }
.boxoffice a.is-primary { background: var(--flame); color: var(--ink); font-weight: 700; }
.boxoffice a:active { filter: brightness(1.15); }

/* The bar covers the last strip of the page; give the footer room. */
@media (max-width: 899px) {
  .foot { padding-bottom: calc(clamp(2rem, 4vw, 3rem) + 64px); }
}

/* ---------- 16. Footer --------------------------------------------------- */

.foot {
  border-top: 1px solid var(--rule-soft);
  padding-block: clamp(2.4rem, 5vw, 3.6rem) clamp(2rem, 4vw, 3rem);
  font-size: var(--t-micro);
  color: var(--mute-dim);
}
.foot__grid {
  display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6);
  justify-content: space-between; align-items: flex-end;
}
.foot a { text-decoration: none; color: var(--mute); }
/* Standalone links, so the hit box has to clear 24px even though the type is small. */
.foot nav a { display: inline-block; padding-block: 0.5rem; min-width: 24px; }
/* --flame-deep is a rule colour: as 30px type on ink it only reaches 2.53:1. */
.foot__mark { font-family: var(--arabic); font-size: var(--t-h3); color: var(--flame); line-height: 1; }

/* ---------- 17. Reveal --------------------------------------------------- */

/* Content is visible by default; the reveal is the light finding it. */
.rise { opacity: 0.999; }
@media (prefers-reduced-motion: no-preference) {
  /* No blur: on forty blocks it costs an offscreen buffer each and the
     opacity and the lift already do the work. */
  .rise {
    opacity: 0.32;
    transform: translate3d(0, 16px, 0);
    transition: opacity 900ms var(--out), transform 900ms var(--out);
  }
  .rise[data-lit="true"] { opacity: 1; transform: none; filter: none; }
  .rise[data-delay="1"] { transition-delay: 90ms; }
  .rise[data-delay="2"] { transition-delay: 180ms; }
  .rise[data-delay="3"] { transition-delay: 270ms; }

  /* A block that handed the reveal to its paragraphs stops moving itself. */
  .rise--split { opacity: 1; transform: none; transition: none; }

  /* The reveal is a position, not an event. --rise runs 0 as a paragraph
     arrives to 1 once it has settled, and it is driven either by the
     browser's own view timeline below or, where that does not exist, by the
     small loop in site.js. It defaults to 1 so nothing is ever hidden before
     a driver has had its say. */
  /* translateY, not translate3d: at rest this is forty elements, and a 3d
     transform would hand every one of them its own compositor layer for
     nothing. */
  .rise__part,
  .rise:not(.rise--split) {
    --rise: 1;
    opacity: var(--rise);
    transform: translateY(calc((1 - var(--rise)) * 42px));
    transition: none;
  }

  @supports (animation-timeline: view()) {
    .rise__part,
    .rise:not(.rise--split) {
      animation-name: riseIn;
      animation-duration: auto;
      /* linear, not an ease: the scroll IS the curve. An ease-out spent
         almost the whole range in its first few percent, so the paragraph
         was lit before it had climbed anywhere worth watching. */
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: view();
      /* Finishes around the middle of the screen, so the travel happens
         across the lower half where the eye is heading, not off the bottom
         edge where nobody is looking. */
      animation-range: entry 0% cover 55%;
    }
  }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(42px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 17b. Ink ------------------------------------------------------
   The page has one entrance for everything, and that is right for a ledger
   and wrong for a title. A line marked .ink is not lifted into place, it is
   printed: the same diagonal pass the name gets on the first screen, driven
   by the same --rise position. Latin runs from the left and Arabic from the
   right, so where the two scripts share a block they arrive from opposite
   edges and meet. */
@media (prefers-reduced-motion: no-preference) {
  .rise.ink {
    opacity: 1;
    transform: none;
    --wipe: calc(var(--rise) * 130%);
    -webkit-mask-image: linear-gradient(100deg, #000 0 calc(var(--wipe) - 14%), transparent var(--wipe));
    mask-image: linear-gradient(100deg, #000 0 calc(var(--wipe) - 14%), transparent var(--wipe));
    -webkit-mask-size: 130% 220%;
    mask-size: 130% 220%;
    -webkit-mask-position: 50% 50%;
    mask-position: 50% 50%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
  .rise.ink--rtl {
    -webkit-mask-image: linear-gradient(260deg, #000 0 calc(var(--wipe) - 14%), transparent var(--wipe));
    mask-image: linear-gradient(260deg, #000 0 calc(var(--wipe) - 14%), transparent var(--wipe));
  }
  @supports (animation-timeline: view()) {
    .rise.ink {
      animation-name: inkIn;
      animation-range: entry 20% cover 46%;
    }
    /* The rule that opens the night is drawn, left to right, as it arrives. */
    .night__inner::before {
      animation: ruleIn linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 34%;
    }
  }
}
@keyframes inkIn  { from { --wipe: 0%; }   to { --wipe: 130%; } }
@keyframes ruleIn { from { scale: 0 1; }   to { scale: 1 1; } }

/* The night is the one passage on a different ground, so it gets the one
   authored threshold: a flame rule drawn across before anything is said. */
.night__inner::before {
  content: ""; display: block;
  height: 2px; background: var(--flame-deep);
  margin-bottom: var(--s6);
  transform-origin: 0 50%;
}
@media (min-width: 940px) {
  .night__inner::before { grid-column: 1 / -1; grid-row: 1; margin-bottom: var(--s4); }
  .night__inner > .night__say { grid-row: 2; }
  .night__inner > .night__ar  { grid-row: 3; }
  .night__inner > .prose { grid-row: 2 / span 2; }
}

/* ---------- 17c. House lights --------------------------------------------
   The cue sheet ends on "House lights" and the page used to end on a line of
   copyright. It closes now on the thing it opened with: her name at the size
   it had on the door, the bowl of the noon still lit, and the way back in. */
.curtain {
  display: grid; gap: var(--s6);
  align-items: end;
  padding-block: var(--s6) var(--s8);
}
@media (min-width: 940px) {
  .curtain { grid-template-columns: auto minmax(0, 1fr); gap: var(--s8); }
}
.curtain__mark {
  width: max-content; max-width: 100%;
  font-family: var(--arabic-display); font-weight: 700;
  font-size: var(--t-mark); line-height: 1.5;
  color: var(--flame); direction: rtl;
}
/* Measured off this render, not borrowed from the door: the door's fractions
     are of an SVG tspan's bounding box, and an inline span's box is taller.
     The largest circle that sits inside the cup, read from the pixels at two
     sizes, centres at 55.9% / 63.7% with a radius of 18.5% of the glyph. */
.curtain__noon { position: relative; }
.curtain__noon::after {
  content: ""; position: absolute;
  left: 55.9%; top: 63.7%;
  width: 34%; aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  border: 2px solid var(--flame-lift);
  box-shadow: 0 0 28px 2px rgba(252, 205, 46, 0.42), inset 0 0 18px rgba(252, 205, 46, 0.28);
}
.curtain__say { padding-bottom: clamp(1rem, 4vw, 3.4rem); }
.curtain__line {
  max-width: 16ch;
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.02em;
  color: var(--paper);
  text-wrap: balance;
}
.foot .curtain__mail {
  display: inline-block;
  margin-top: var(--s4); padding-block: 0.3rem;
  font-family: var(--display); font-weight: 700;
  font-size: var(--t-lead); letter-spacing: 0;
  color: var(--paper);
  border-bottom: 1px solid var(--flame-deep);
  overflow-wrap: anywhere;
}
/* The mark is the last thing on the page, so its inking has to finish while
   it is still arriving: there is no scroll left afterwards to finish it. */
.curtain__mark.rise.ink { animation-range: entry 5% entry 100%; }
/* .door__replay is inline-flex and loads later; this one starts its own row. */
.foot .curtain__again { display: flex; margin-top: var(--s3); }


/* ---------- 18. EPK page ------------------------------------------------- */

.epk { padding-block: clamp(7rem, 16vh, 10rem) clamp(4rem, 9vh, 7rem); }

/* The press kit is read on a desk and forwarded from a phone. Above 1000px the
   contacts and the asset requests ride alongside the document instead of
   waiting at the bottom of it. */
.epk__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 1000px) {
  .epk__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); align-items: start; }
  .epk__aside { position: sticky; top: 6.5rem; }
  .epk__main > h2:first-child { margin-top: 0; }
}
.epk__aside .epk__asideHead { margin-top: 0; }
.epk__aside .direct__row { grid-template-columns: 1fr; gap: 0.25rem; padding-block: 0.9rem; }
.epk__aside .direct__v { overflow-wrap: anywhere; font-size: var(--t-body); }

/* Arabic inside the press kit prose is set in the reading hand, not left to
   whatever the Latin stack falls back to. */
.epk [lang="ar"] { font-family: var(--arabic-display); }
.epk p[lang="ar"] { font-size: var(--t-lead); line-height: 1.9; }
.epk h3[lang="ar"] { direction: rtl; }

.linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
  border-bottom: 1px solid var(--flame-deep);
}
.epk h2 {
  font-family: var(--display); font-weight: 700;
  font-size: var(--t-h3);
  color: var(--paper); line-height: 1.05;
  margin-top: clamp(2.6rem, 5vw, 4rem);
  padding-bottom: var(--s3);
  border-bottom: 2px solid var(--flame-deep);
}
.epk h3 {
  font-size: var(--t-micro); font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--flame);
  margin-top: var(--s5); margin-bottom: var(--s2);
}
.epk p { max-width: var(--measure); margin-top: var(--s3); text-wrap: pretty; }
.epk ul.dot { margin-top: var(--s3); max-width: var(--measure); }
/* A link that is the whole row is a control, not a word in a sentence. */
.epk ul.dot li > a:only-child,
.epk ul.dot li > button:only-child { display: inline-block; padding-block: 0.35rem; }
.epk ul.dot li {
  padding-left: 1.2rem; position: relative; padding-block: 0.3rem;
}
.epk ul.dot li::before {
  content: ""; position: absolute; left: 0; top: 0.85em;
  width: 5px; height: 1px; background: var(--flame);
}
.epk__shots {
  display: grid; gap: 1rem; margin-top: var(--s4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}
.epk__shots img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

@media print {
  #stage, .masthead, .rail, .boxoffice, [data-print] { display: none !important; }
  body::after { display: none; }
  .epk__grid { display: block; }
  .epk__aside { position: static; margin-top: 2rem; }
  body { background: #fff; color: #111; }
  .epk h2, .epk h3, .tag { color: #000; }
  a { color: #000; }
  /* Every colour the screen sheet sets has to be answered here. Without
     these the lede and the three format names printed in --paper on white,
     which is the one page an agent actually saves. */
  .lede, .epk p, .dot li, strong,
  .formats__name, .formats__what,
  .direct__k, .direct__v, .bill__name, .bill__note { color: #111; }
  .formats__count, .bill__lab { color: #8f3413; }
  figcaption, .foot, .form__note { color: #444; }
  .epk__shots img, figure, .formats__row, .direct__row { break-inside: avoid; }
}

/* ---------- 19. Print-ink texture for the poster sections ---------------- */

.ruled-top { border-top: 2px solid var(--flame-deep); padding-top: var(--s4); }

/* ---------- 20. Animatable custom properties ----------------------------- */

@property --wipe {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}
@property --house {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@property --spot-r {
  syntax: "<length>";
  inherits: true;
  initial-value: 600px;
}

/* ------------------------------------------------------------------
   Hover belongs to a pointer that can hover. On iOS a tapped element
   keeps its hover state until something else is tapped, so an
   unguarded :hover reads as a control stuck mid-press. These are the
   same rules, behind the one query that keeps them off a thumb.
   ------------------------------------------------------------------ */
@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar-thumb:hover { background: var(--flame); 
  }
  .rail__tick:hover { background: var(--flame-lift); 
  }
  .nav a:hover { color: var(--paper); 
  }
  .nav a:hover::after { transform: scaleX(1); 
  }
  .btn--flame:hover { --btn-bg: var(--flame-lift); --btn-ring: var(--flame-lift); 
  }
  .btn--ghost:hover { --btn-ring: var(--plaster); --btn-bg: rgba(232, 217, 195, 0.06); 
  }
  .hero__scroll:hover { color: var(--flame); 
  }
  .facade:hover img {
    filter: var(--grade-lit);
    transform: scale(1.02);
  }
  .tile:hover .tile__cue { background: var(--flame); border-color: var(--flame); 
  }
  .tile:hover .tile__cue svg { fill: var(--ink); 
  }
  .index__btn:hover .index__thumb img { filter: var(--grade-lit); transform: scale(1.05); 
  }
  .index__btn:hover .index__cue { background: var(--flame); border-color: var(--flame); 
  }
  .index__btn:hover .index__cue svg { fill: var(--ink); 
  }
  .plat:hover { color: var(--flame); 
  }
  .field input:hover, .field textarea:hover, .field select:hover { border-color: var(--rule); 
  }
  .direct__v a:hover { color: var(--flame-lift); border-color: var(--flame-lift); 
  }
  .foot a:hover { color: var(--flame); 
  }
  .linklike:hover { color: var(--flame-lift); border-color: var(--flame-lift); 
  }
}


/* ==========================================================================
   19. THE PRINT SHOP
   The site is a hand-printed theatre bill, so what makes it look made by a
   person is what a press leaves behind: grain in the stock, a second colour
   that did not quite register, a stamp that came down by hand, photographs
   held up with tape, one line drawn with a marker, and the printer's note at
   the foot. Nothing here is a costume from somewhere else.
   ========================================================================== */

/* 1. Grain. One fixed, still layer over the whole sheet: plain alpha, no
   blend mode, so it costs a single composited tile on a phone. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90;
  pointer-events: none;
  background-image: var(--grain, none);
  background-size: 160px 160px;
}

/* 2. Misregistration. The headline is struck twice, and the flame plate
   landed a hair low and to the right. Set in em so it scales with the type:
   about a pixel and a half at display size, under one on a phone. */
.h-sec,
.door__say { text-shadow: 0.02em 0.016em 0 color-mix(in srgb, var(--flame) 62%, transparent); }
.h-sec em { text-shadow: 0.02em 0.016em 0 color-mix(in srgb, var(--paper) 28%, transparent); }

/* 3. The stamp comes down. */
@media (prefers-reduced-motion: no-preference) {
  body.js-armed .stamp:not(.is-struck) { opacity: 0; }
  .stamp.is-struck { animation: strike 440ms cubic-bezier(0.2, 1.5, 0.4, 1) both; }
}
@keyframes strike {
  0%   { opacity: 0; transform: rotate(-12deg) scale(1.75); }
  55%  { opacity: 1; transform: rotate(-3deg) scale(0.93); }
  100% { opacity: 1; transform: rotate(-4deg) scale(1); }
}

/* 4. Tape. The two photographs under the bill are pinned up the way the
   poster is, each a little off true, and they straighten under a pointer. */
.strip figure {
  position: relative;
  rotate: var(--tilt, 0deg);
  transition: rotate 520ms var(--out);
}
.strip figure:nth-child(odd)  { --tilt: -0.9deg; }
.strip figure:nth-child(even) { --tilt: 0.7deg; }
.strip figure::before {
  content: ""; position: absolute; z-index: 1;
  top: -9px; left: 16%;
  width: 54px; height: 18px;
  rotate: -6deg;
  background: rgba(232, 217, 195, 0.13);
  border: 1px solid rgba(232, 217, 195, 0.2);
}
.strip figure:nth-child(even)::before { left: auto; right: 14%; rotate: 5deg; }
@media (hover: hover) and (pointer: fine) {
  .strip figure:hover { rotate: 0deg; }
}

/* 5. One line by hand, under the one word the page is asking for. It is
   drawn left to right as the heading arrives, and it runs dry in places. */
.handline { position: relative; display: inline-block; }
.handline__stroke {
  position: absolute; left: -3%; bottom: -0.2em;
  width: 106%; height: auto;
  overflow: visible; pointer-events: none;
  -webkit-mask-image: var(--ink-mask, none);
  mask-image: var(--ink-mask, none);
  -webkit-mask-size: 72px 72px;
  mask-size: 72px 72px;
  clip-path: inset(-40% calc((1 - var(--rise, 1)) * 100%) -40% 0);
}
.handline__stroke path {
  fill: none; stroke: var(--flame);
  stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .handline__stroke {
      animation: drawIn linear both;
      animation-timeline: view();
      animation-range: entry 60% cover 44%;
    }
  }
}
@keyframes drawIn {
  from { clip-path: inset(-40% 100% -40% 0); }
  to   { clip-path: inset(-40% 0 -40% 0); }
}

/* 6. The colophon. What the sheet is set in, the four inks with the artwork
   each was taken from, and a registration mark to close the job. */
.colophon {
  display: grid; gap: var(--s4);
  align-items: center;
  padding-block: var(--s5);
  border-top: 1px solid var(--rule-soft);
}
@media (min-width: 940px) {
  .colophon { grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s6); }
}
.colophon__say {
  max-width: 46ch;
  font-size: var(--t-small); letter-spacing: 0;
  color: var(--mute);
}
.colophon__inks {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4);
  font-size: var(--t-micro); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mute);
}
.colophon__inks li { display: inline-flex; align-items: center; gap: 0.55rem; }
.ink-chip {
  width: 14px; height: 14px; flex: none;
  background: var(--chip);
  border: 1px solid var(--rule);
}
.ink-chip--flame    { --chip: var(--flame); }
.ink-chip--gold     { --chip: var(--gold); }
.ink-chip--stamp    { --chip: var(--stamp); }
.ink-chip--midnight { --chip: var(--midnight); }
.colophon__reg {
  width: 26px; height: 26px;
  fill: none; stroke: var(--mute-dim); stroke-width: 1;
}
