/* =====================================================================
   Dirty Old Women — the show's own world

   Scoped to body.dow so it can be as loud as it likes without touching the
   rest of the site. Every colour is sampled from the printed flyer: the
   dusty teal wall, bone white, crimson, ink black, warning yellow as a spot.

   NOT a reproduction of the flyer. The flyer is already in the reader's
   hand when they arrive — this page exists to give them what the flyer
   could not fit: the full synopsis, the credits, the whole press review,
   what the audience said, the trailer, and every date. The art kit is used
   where it carries something (the title lockup, a stage photo in a Polaroid,
   the press quote on torn paper) and left alone where it would only repeat
   what the text already says.

   The display lettering is IMAGE (assets/img/dow/*.webp): the flyer's brush
   faces are personal-use-only licences. Live display text uses Permanent
   Marker, the one properly-licensed face from that set.
   ===================================================================== */

body.dow {
  --teal:       #7fa4ad;
  --teal-deep:  #5d818c;
  --teal-ink:   #2e4248;
  --bone:       #e2ddd3;
  --crimson:    #c7023a;
  --dow-ink:    #131413;
  --yellow:     #e8b21e;
  --aged:       #ede2cf;   /* the reading ground — the flyer's paper props */
  --scrap:      #e7e3da;

  --font-marker: "Permanent Marker", "Segoe Script", cursive;

  background: var(--teal);
  color: var(--dow-ink);
}

/* ---------- header on teal ---------- */
body.dow .site-header {
  background: color-mix(in srgb, var(--teal) 90%, transparent);
  color: var(--dow-ink);
}
body.dow .site-header.is-stuck { border-bottom-color: rgba(19,20,19,.18); }
body.dow .brand, body.dow .nav a { color: var(--dow-ink); }
body.dow .brand__sub { color: var(--teal-ink); }
body.dow .nav a.is-current::after { background: var(--crimson); }
body.dow .lang-switch { border-color: rgba(19,20,19,.25); background: rgba(255,255,255,.28); }
body.dow .lang-switch button { color: var(--teal-ink); }
body.dow .lang-switch button.is-active { background: var(--dow-ink); color: var(--bone); }
body.dow .nav-toggle { border-color: rgba(19,20,19,.3); color: var(--dow-ink); }
@media (max-width: 860px) {
  body.dow .nav { background: var(--teal); border-top-color: rgba(19,20,19,.2); }
  body.dow .nav a { border-bottom-color: rgba(19,20,19,.15); }
}

body.dow h1, body.dow h2, body.dow h3 { color: var(--dow-ink); }
/* :not(.btn) matters: `body.dow a` is (0,1,2) and would otherwise beat every
   .btn colour rule in styles.css, turning ticket buttons into crimson text on
   a pale pill. Section overrides below must repeat the same shape to win. */
body.dow a:not(.btn):not(.brand) { color: var(--crimson); }
body.dow a:not(.btn):not(.brand):hover { color: var(--dow-ink); }

body.dow .btn--ticket { background: var(--crimson); color: #fff; border-color: transparent; }
body.dow .btn--ticket:hover { background: var(--dow-ink); color: #fff; }

/* A brush-slab chip behind a heading. The slab is a transparent PNG, so the
   text sits on it and the ragged edge survives any string length. */
.chip {
  display: inline-block; margin: 0 0 1.1rem;
  padding: .5em 1.4em .6em;
  font-family: var(--font-marker); font-size: clamp(.95rem, .88rem + .4vw, 1.2rem);
  letter-spacing: .04em; text-transform: uppercase; color: var(--bone);
  background: url("../assets/img/dow/brush-3.webp") center/100% 100% no-repeat;
  transform: rotate(-1.2deg);
}
.chip--sm { background-image: url("../assets/img/dow/brush-1.webp"); font-size: .9rem; padding: .45em 1.2em .55em; }

.hand { font-family: var(--font-marker); text-transform: uppercase; letter-spacing: .02em; line-height: 1.25; }
.crimson { color: var(--crimson); }

/* =====================================================================
   Hero — horizontal: the words on the left, the two of them on the right

   The flyer is portrait because it is A5. A browser is landscape, and
   stacking the same elements vertically just makes the reader scroll past a
   poster they already own. Side by side, the title and the practical
   information (next date, venue, language) are visible together without
   scrolling, which is the actual job of this screen.

   The layers drift with the pointer (js/main.js, data-depth). Every moving
   layer is oversized or hangs past an edge by more than the 16px cap, so no
   layer can ever pull its own boundary into the frame.
   ===================================================================== */
.dow-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(94vh, 54rem);
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(1rem, 3vw, 2rem);
}

/* Oversized on purpose: 108% with a -4% offset leaves 4% of slack on every
   side, comfortably more than the parallax cap. */
.dow-hero__paper {
  position: absolute; inset: -4%; z-index: 0;
  background: url("../assets/img/dow/paper-bg.webp") center/cover no-repeat, var(--teal);
  will-change: transform;
}
.dow-hero > *:not(.dow-hero__paper) { position: relative; z-index: 1; }

.dow-hero__names {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(.7rem, 2.4vw, 1.8rem);
  font-family: var(--font-marker); color: var(--bone);
  font-size: clamp(.9rem, .78rem + .6vw, 1.5rem); letter-spacing: .07em;
  text-transform: uppercase; text-align: center;
  margin: 0 0 clamp(1rem, 3vw, 2rem);
  text-shadow: 0 calc(var(--z) * 5px) calc(4px + var(--z) * 11px)
               rgb(19 20 19 / calc(.40 - var(--z) * .04));
}
.dow-hero__names i { color: var(--yellow); font-style: normal; }

.dow-hero__grid {
  position: relative;                 /* the figure is positioned against THIS */
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(1rem, 3vw, 3rem); align-items: end; flex: 1 1 auto;
}
.dow-hero__copy { align-self: center; padding-bottom: clamp(1rem, 3vw, 2.5rem); }

.dow-hero__title { position: relative; width: min(100%, 32rem); margin: 0 0 clamp(1.5rem, 3vw, 2.25rem); will-change: transform; }
.dow-hero__title img { display: block; width: 100%; }
.dow-hero__title .t-dirty  { width: 60%; }
.dow-hero__title .t-old    { width: 100%; margin-top: -3%; }
.dow-hero__title .t-stroke { width: 74%; margin: -5% 0 0 8%; }

/* Torn-paper strip carrying the tagline. The artwork's own strip runs at
   -4.04° (measured off the alpha channel, not guessed), so the text is
   rotated to match — otherwise it sits visibly crooked on its own banner. */
/* The torn strip is NOT symmetric inside its own file: the solid body runs
   from 5.0% to 86.8%, so its optical centre is at 45.9%, not 50%. Centred
   text therefore sits noticeably right of the paper. The extra right padding
   pulls the text back onto the strip. (Measured off the artwork's alpha.) */
.dow-tagline {
  width: min(100%, 34rem); margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  padding: clamp(1.5rem, 3vw, 2.1rem) clamp(3.2rem, 5.8vw, 4.5rem)
           clamp(1.5rem, 3vw, 2.1rem) clamp(1.5rem, 2.6vw, 2rem);
  color: var(--dow-ink); will-change: transform; position: relative;
}
/* The paper lives on ::before so the drop-shadow traces the torn edge only.
   Applied to .dow-tagline itself, the filter would shadow the lettering too
   and turn the small marker text muddy. */
.dow-tagline::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../assets/img/dow/tape.webp") center/100% 100% no-repeat;
  filter: drop-shadow(0 calc(var(--z) * 7px) calc(5px + var(--z) * 13px)
                      rgb(19 20 19 / calc(.40 - var(--z) * .04)));
}
/* The rotation lives on this wrapper, NOT on the language spans. Styling
   `.dow-tagline span` directly sets `display` at (0,1,1), which beats the
   `[data-t="de"] { display: none }` language rule at (0,1,0) — and both
   languages render at once. Any rule that touches `display` on a generic
   descendant selector can break the language switch the same way. */
.dow-tagline__set {
  display: block; transform: rotate(-4.04deg);
  font-family: var(--font-marker); text-transform: uppercase; text-align: center;
  font-size: clamp(.72rem, .66rem + .34vw, .92rem); line-height: 1.5;
  text-wrap: balance;
}

/* The next date gets its own full-width row; language and runtime pair up
   beneath it. Left to flex-wrap they broke as 2 + 1, which reads as an
   accident rather than a grouping. */
.dow-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.5rem; margin: 0 0 1.6rem; max-width: 26rem;
}
.dow-facts > :first-child { grid-column: 1 / -1; }
.dow-facts dt {
  font-family: var(--font-head); font-size: .66rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: .2rem;
}
.dow-facts dd { margin: 0; font-weight: 600; font-size: .98rem; }

/* Lifted out of the grid so its height is set by the HERO, not by whichever
   is taller of the two columns: it now runs from just under the names line
   all the way down, which is what makes them read at poster scale.
   It hangs 3rem past the bottom edge because the cut-out's hem is trimmed in
   the artwork — that cut has to stay outside the frame, or the parallax would
   slide a hard horizontal line into view. */
/* Positioned against .dow-hero__grid (the .wrap), so all four offsets are
   plain percentages of a box that already has a definite width. An earlier
   version anchored `right` to a viewport expression, which left the box's
   width indeterminate: the img collapsed to 293px and `object-fit: contain`
   quietly letterboxed the two of them down to a thumbnail in the corner.

   Both width and height are 100% here — never `width: auto` — so nothing has
   to be resolved from the intrinsic ratio, and `contain` alone does the
   fitting. It hangs 3rem past the bottom because the cut-out's hem is
   trimmed in the artwork: that cut has to stay out of frame, or the parallax
   would slide a hard horizontal line into view. */
.dow-hero__figure {
  position: absolute; z-index: 1;
  inset: 0 0 -3rem 44%;
  margin: 0; will-change: transform; pointer-events: none;
}
.dow-hero__figure img {
  display: block; width: 100%; height: 100%;
  object-fit: contain; object-position: bottom right;
}

/* ---------------------------------------------------------------------
   Depth — one number per layer, used TWICE

   `--z` drives both the parallax travel (js/main.js reads the matching
   data-depth) and the drop shadow below, so the lighting agrees with the
   movement instead of contradicting it: a layer further from the wall
   drifts further AND throws its shadow further, softer and fainter.
   Keep --z and data-depth in step when tuning either.

   drop-shadow, not box-shadow: every one of these is an irregular shape —
   brush lettering, a torn strip, two cut-out women — and a box shadow would
   draw a rectangle behind them.
   --------------------------------------------------------------------- */
.dow-hero__paper  { --z: 0; }      /* this IS the wall; it casts nothing */
.dow-hero__figure { --z: .7; }
.dow-hero__names  { --z: .8; }
.dow-hero__title  { --z: 1.5; }
.dow-tagline      { --z: 2.2; }

/* --sx/--sy are a unit direction, --sd the distance the shadow is thrown at
   depth 1, --sa its opacity. The default is straight down, which is right for
   flat graphic layers sitting on a wall. */
.dow-hero__title img,
.dow-hero__figure img {
  --sx: 0; --sy: 1; --sd: 7px; --sa: .40;
  --sb: calc(5px + var(--z) * 13px);
  filter: drop-shadow(calc(var(--sx) * var(--z) * var(--sd))
                      calc(var(--sy) * var(--z) * var(--sd))
                      var(--sb)
                      rgb(19 20 19 / calc(var(--sa) - var(--z) * .04)));
}

/* The photograph is the one layer with a light source of its own: the two of
   them are lit from the LEFT, so their shadow has to fall to the RIGHT — a
   generic top-down shadow contradicts the light already in the picture.
   ~97° measured from straight up, rotating right: mostly sideways, a touch
   below. Thrown further than the flat layers but blurred more and kept
   fainter, so it grounds them without announcing itself. */
.dow-hero__figure img { --sx: .99; --sy: .12; --sd: 30px; --sb: 26px; --sa: .50; }

/* =====================================================================
   Reading sections
   ===================================================================== */
.dow-section { padding-block: clamp(3rem, 7vw, 5rem); }
.dow-section--paper { background: var(--aged); }
.dow-section--ink   { background: var(--teal-ink); color: var(--bone); }
.dow-section--ink h2, .dow-section--ink h3 { color: var(--bone); }
body.dow .dow-section--ink a:not(.btn) { color: var(--yellow); }
body.dow .dow-section--ink a:not(.btn):hover { color: #fff; }

.dow-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.dow-lead { font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem); line-height: 1.55; }
.dow-section p { max-width: 62ch; }
.pull {
  font-family: var(--font-marker); text-transform: uppercase;
  font-size: clamp(1.1rem, .95rem + .8vw, 1.6rem); line-height: 1.3;
  color: var(--dow-ink); margin: 1.75rem 0; max-width: 18ch;
}

/* Credits table — this is where the runtime/language/etc. live. The VHS
   label prop said the same things in picture form; printing both was just
   the same list twice, so the prop is gone and the table stayed. */
.credits { margin: 0; }
.credits div {
  display: grid; grid-template-columns: 9rem 1fr; gap: 1rem;
  padding: .7rem 0; border-bottom: 1px solid rgba(19,20,19,.16);
}
.credits div:first-child { border-top: 1px solid rgba(19,20,19,.16); }
.credits dt { font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-ink); padding-top: .18em; }
.credits dd { margin: 0; font-weight: 600; }

/* Taped Polaroid holding a stage photograph. */
.polaroid { position: relative; width: min(100%, 21rem); margin: 0 auto; transform: rotate(2deg); }
/* The photo is positioned against THIS, not against .polaroid — the figure
   also contains the caption, so percentages measured on it resolved against a
   taller box and pushed the photo down out of the frame's window. */
.polaroid__plate { position: relative; display: block; }
/* Window measured off the frame PNG's own alpha, along its centre lines
   (the corner rounding pollutes a plain bounding box). */
.polaroid__photo { position: absolute; left: 6.78%; top: 7.19%; width: 86.72%; height: 80.83%; object-fit: cover; }
.polaroid__frame { position: relative; width: 100%; display: block; filter: drop-shadow(0 16px 30px rgba(19,20,19,.3)); }
/* On the printed piece this line is scrawled below the print, not inside the
   frame — the white band is far too shallow for two lines. */
.polaroid__cap { margin-top: .9rem; font-size: clamp(.75rem, .65rem + .35vw, .92rem); text-align: center; }

/* =====================================================================
   Who's on stage
   ===================================================================== */
.cast { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.75rem, 4vw, 3rem); }
.cast__plate { border-radius: 10px; overflow: hidden; background: var(--indigo, #33455f); margin-bottom: 1.1rem; box-shadow: 0 16px 36px -22px rgba(19,20,19,.6); }
.cast__plate img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cast h3 { font-family: var(--font-marker); font-weight: 400; font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); text-transform: uppercase; color: var(--crimson); margin: 0 0 .3rem; }
.cast__line { font-family: var(--font-head); font-weight: 600; font-size: .92rem; margin: 0 0 .7rem; }
.cast p { font-size: .96rem; line-height: 1.55; max-width: 40ch; }

/* =====================================================================
   Press — the full review, which is the flyer's one starred line in full
   ===================================================================== */
.press { display: grid; grid-template-columns: 1fr minmax(0, 20rem); gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.press blockquote { margin: 0 0 1.25rem; font-size: 1.02rem; line-height: 1.6; }
.press__stars { color: var(--crimson); letter-spacing: .25em; margin: 0 0 .75rem; }
.press__by { font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); }
.press__head { font-family: var(--font-marker); font-size: clamp(1.3rem, 1.1rem + .9vw, 1.9rem); text-transform: uppercase; margin: 0 0 1rem; color: var(--dow-ink); }
.scrap {
  position: relative; width: 100%; transform: rotate(-1.5deg);
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.75rem, 3vw, 2.25rem);
  background: url("../assets/img/dow/paper.webp") center/100% 100% no-repeat;
  filter: drop-shadow(0 14px 26px rgba(19,20,19,.22));
}
.scrap p { margin: 0; font-size: .95rem; line-height: 1.5; max-width: none; }
.scrap cite { display: block; margin-top: .8rem; font-family: var(--font-marker); font-style: normal; color: var(--crimson); text-transform: uppercase; font-size: .85rem; }

/* =====================================================================
   Voices, trailer, gallery, tour
   ===================================================================== */
.voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.25rem; }
.voice { background: rgba(255,255,255,.42); border-radius: 10px; padding: 1.5rem; font-size: .96rem; line-height: 1.55; }
.voice p { margin: 0; max-width: none; }

.video-frame { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--dow-ink); box-shadow: 0 20px 46px -22px rgba(19,20,19,.6); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Click-to-load facade — our own poster, no third-party request until play. */
.video-facade { position: absolute; inset: 0; display: block; overflow: hidden; text-decoration: none; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.video-facade:hover img, .video-facade:focus-visible img { transform: scale(1.03); filter: brightness(.88); }
.video-facade__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: clamp(3.6rem, 8vw, 5rem); aspect-ratio: 1; border-radius: 50%;
  background: var(--crimson); box-shadow: 0 10px 30px -8px rgba(19,20,19,.6);
  transition: transform .25s var(--ease), background .25s;
}
/* The triangle, drawn rather than shipped as an asset. Nudged right of centre
   because a triangle's optical centre sits left of its bounding box. */
.video-facade__play::after {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: .62em 0 .62em 1.02em;
  border-color: transparent transparent transparent #fff;
}
.video-facade:hover .video-facade__play,
.video-facade:focus-visible .video-facade__play { transform: translate(-50%, -50%) scale(1.08); background: var(--dow-ink); }
.video-facade__label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.25rem .9rem;
  font-family: var(--font-marker); text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(.8rem, .72rem + .35vw, 1rem); color: #fff; text-align: center;
  background: linear-gradient(to top, rgba(19,20,19,.85), rgba(19,20,19,0));
}

.tour { list-style: none; margin: 0; padding: 0; }
.tour__row {
  display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 1rem 1.5rem; align-items: center;
  padding: 1.1rem 0; border-bottom: 1px solid rgba(226,221,211,.22);
}
.tour__row:first-child { border-top: 1px solid rgba(226,221,211,.22); }
.tour__when { font-family: var(--font-marker); line-height: 1; text-align: center; color: var(--yellow); }
.tour__when b { display: block; font-size: 1.9rem; font-weight: 400; }
.tour__when span { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.tour__where b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; }
.tour__where span { font-size: .9rem; color: rgba(226,221,211,.72); }
.dow-section--ink .ev-empty { color: rgba(226,221,211,.75); list-style: none; }

body.dow .site-footer { background: var(--dow-ink); }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 900px) {
  .dow-hero { min-height: 0; }
  .dow-hero__grid { grid-template-columns: 1fr; gap: 0; }
  .dow-hero__copy { padding-bottom: 1.5rem; }
  .dow-hero__title { width: min(100%, 26rem); }
  /* Back into the flow on small screens — there is no room beside the copy. */
  .dow-hero__figure { position: static; inset: auto; margin: 0 0 -1.5rem; }
  .dow-hero__figure img { width: 100%; height: auto; max-height: 62vh; object-fit: contain; }
  .dow-split, .press { grid-template-columns: 1fr; }
  .cast { grid-template-columns: 1fr; max-width: 22rem; }
  .polaroid, .scrap, .chip { transform: none; }
  .credits div { grid-template-columns: 7.5rem 1fr; }
  .tour__row { grid-template-columns: 4rem 1fr; }
  .tour__cta { grid-column: 2; justify-self: start; margin-top: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .polaroid, .scrap, .chip { transform: none; }
}

/* The venue under the next date in the hero facts list. */
.next__where { font-weight: 400; font-size: .9rem; color: var(--teal-ink); }

}
