/* The event landing pages (chat 22): designer F's "The Season Opens Here", built by tools/v4_comp_gallery.py on the
   gallery's own v4-gallery.css (the landing page IS the event's gallery page). The opening: the place in giant type,
   its readout and counts; the 2026 season line, this event lit, fanning out into the event's task line; the season
   at the foot. Films-only events (PWC, Bassano): the same line, each stop its films as chapters (from E); a film frame
   stays 16:9 at every width, never cropped to a portrait (from D). Site tokens only; motion in v4-event.js, once. */

/* ---------------------------------------------------------------- the opening: taller than the gallery's lead */
.ev .ev-open{height:auto;min-height:clamp(380px,60svh,560px);padding-bottom:.4rem}
@media (min-width:821px){.ev .ev-open{min-height:clamp(480px,63vh,700px);padding-bottom:.6rem}}
.ev .ev-open::after{background:linear-gradient(180deg,rgba(20,21,25,.72) 0%,rgba(20,21,25,.12) 26%,rgba(20,21,25,.1) 46%,rgba(20,21,25,.74) 80%,var(--bg) 100%)}
.ev-name{font-size:clamp(3rem,14.2vw,11.5rem)}
@media (min-width:821px){.ev-name{font-size:clamp(5rem,12.5vw,11.5rem)}}
.ev-read,.ev-have{display:flex;flex-wrap:wrap;gap:.2rem 1.1rem;margin-top:.2rem;font-size:var(--fs-small);color:rgba(246,244,244,.84);font-variant-numeric:tabular-nums}
.ev-read b{font-weight:600;color:var(--white)}
.ev-have{margin-top:.45rem;gap:.1rem 1.2rem;align-items:baseline}
.ev-have a,.ev-have span{color:var(--gray-light);text-decoration:none}
.ev-have b{font-family:var(--font-display);font-weight:600;color:var(--white);margin-right:.25em}
.ev-have a{display:inline-flex;align-items:baseline;min-height:32px;padding-top:6px;border-bottom:1px solid transparent}
.ev-have a:hover,.ev-have a:focus-visible{color:var(--white);border-bottom-color:var(--orange)}
.ev-have a i{font-style:normal;margin-left:.3em}
@media (max-width:820px){
  .ev-read span:nth-child(3){display:none}
  .ev-have .ev-off{display:none}
}
@media (min-width:821px){.ev-read{font-size:var(--fs-body)}.ev-have{font-size:var(--fs-body-s)}}

/* a films-only event opens on a frame of its own footage: on a phone the frame stays 16:9 (D), the words on the dark
   ground under it; on a laptop it fills the opening, held darker */
.ev-open--film .gf-lead-media img{filter:saturate(.55) brightness(.62) contrast(1.05)}
@media (max-width:820px){
  .ev .ev-open--film{display:block;min-height:0;padding:0 0 .4rem}
  .ev-open--film .gf-lead-media{position:relative;inset:auto;z-index:0;aspect-ratio:16/9}
  .ev-open--film .gf-lead-media img{filter:saturate(.8) brightness(.8)}
  .ev .ev-open--film::after{inset:0 0 auto;height:calc(100vw * 9 / 16);background:linear-gradient(180deg,rgba(20,21,25,.7) 0%,rgba(20,21,25,0) 40%,rgba(20,21,25,0) 78%,var(--bg) 100%)}
  .ev-open--film .ev-copy{margin-top:.2rem;padding:0 var(--edge-x,var(--gutter))}
}
@media (min-width:821px){.ev-open--film .gf-lead-media img{object-position:45% 40%}}

/* ---------------------------------------------------------------- the season, at the opening's foot */
.ev-season{position:relative;z-index:31}
.ev-season-in{position:relative;max-width:var(--measure);margin:0 auto;--ly:76px;--h:96px;height:var(--h)}
@media (max-width:820px){.ev-season-in{margin:0 var(--gutter);--ly:74px;--h:86px}}
/* previous / next event: a phone's way between events, one tap */
.ev-pn{display:flex;justify-content:space-between;gap:.75rem;height:44px;align-items:center;font-size:var(--fs-small)}
.ev-pn a,.ev-pn>span{display:inline-flex;align-items:center;gap:.4rem;min-height:44px;color:var(--gray-light);text-decoration:none;min-width:0}
.ev-pn span span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ev-pn i{font-style:normal}
.ev-pn b{font-weight:600;color:var(--white)}
.ev-pn .is-first,.ev-pn .is-last{color:var(--gray)}
.ev-pn a:hover b,.ev-pn a:focus-visible b{color:var(--orange)}
.ev-pn-n{margin-left:auto;text-align:right}
.ev-sh{display:none}
.ev-strip{position:absolute;left:0;right:0;top:calc(var(--ly) - 26px);height:34px}
.ev-rule{position:absolute;left:0;right:0;top:26px;height:1px;background:var(--edge)}
.ev-bar{position:absolute;left:calc(var(--x) * 100%);width:max(4px,calc(var(--w) * 100%));top:-1px;height:3px;border-radius:2px;background:var(--gray-light)}
.ev-bar.is-now{background:var(--white)}
.ev-bar.is-lit{background:var(--orange);top:-2px;height:5px}
.ev-names{position:absolute;inset:0 0 auto;height:24px}
.ev-nm{position:absolute;left:calc(var(--x) * 100%);top:0;display:none;white-space:nowrap;font-size:11px;line-height:1.15;color:var(--gray-light);text-decoration:none}
.ev-nm b{font-weight:600;margin-right:.35em}
.ev-nm small{font-size:inherit;color:var(--gray)}
.ev-nm.is-lit{display:block;color:var(--orange);left:clamp(0px,calc(var(--x) * 100% - 2.4rem),calc(100% - 9rem))}
.ev-nm.is-lit small{color:var(--gray-light)}
/* the fan: from the lit dates down to the ends of the task line (its turnpoints sit 26 px into it) */
.ev-fan{position:absolute;left:0;top:var(--ly);width:100%;height:calc(var(--h) - var(--ly) + 26px);overflow:visible;pointer-events:none;transform-origin:50% 0}
.ev-fan line{stroke:var(--orange);stroke-width:1;stroke-opacity:.55;vector-effect:non-scaling-stroke}
@media (min-width:821px){
  .ev-season-in{--ly:66px;--h:84px}
  .ev-pn{display:none}
  .ev-sh{display:flex;justify-content:space-between;align-items:center;height:30px;padding-top:10px;font-size:var(--fs-micro);font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--gray)}
  .ev-sh a{color:var(--gray-light);text-decoration:none}
  .ev-sh a:hover,.ev-sh a:focus-visible{color:var(--white)}
  .ev-sh span{letter-spacing:.08em;font-variant-numeric:tabular-nums}
  .ev-strip{top:calc(var(--ly) - 30px);height:38px}
  .ev-rule{top:30px}
  .ev-names{height:28px}
  .ev-nm{display:block;font-size:var(--fs-small);padding:4px 0}
  .ev-nm.is-lit{left:calc(var(--x) * 100%)}
  a.ev-nm:hover b,a.ev-nm:focus-visible b{color:var(--white)}
  a.ev-nm:hover small,a.ev-nm:focus-visible small{color:var(--gray-light)}
  a.ev-nm::after{content:"";position:absolute;left:-6px;right:-6px;top:-8px;bottom:-12px}   /* a bigger target */
  .ev-nm.is-now small{color:var(--orange)}
  .ev-fan{height:calc(var(--h) - var(--ly) + 32px)}
}

/* ---------------------------------------------------------------- a day with its film and no photos: state "film" */
.gf-tp[data-state=film] .gf-dot{background:var(--gray-light);border-color:var(--gray-light)}
.gf-tp.is-open[data-state=film] .gf-dot{background:var(--white);border-color:var(--white)}
.gf-tp[data-state=none] .gf-dot{background:var(--bg);border:1px dashed var(--edge-hi)}
.gf-tp[data-state=none] b{color:var(--gray)}
.gf-tp[data-film-only] .ev-tp-s{display:none}
@media (min-width:821px){.gf-tp[data-film-only] .ev-tp-s:not(:empty){display:block}}
.ev-dh-n{color:var(--gray)}
.gf-day[data-film-only] .gf-wait{display:none!important}
/* a day's film from a frame of the film itself stays 16:9 on a phone (D: never cropped further) */
@media (max-width:820px){.gff.ev-still .gff-media{aspect-ratio:16/9}}
/* its film's end card offers the photos only where the day has some */
.gffv.ev-nophotos .gffv-end-t,.gffv.ev-nophotos .gffv-photos{display:none}

/* ---------------------------------------------------------------- films-only events: each stop its films, as chapters */
.ev-films .gf-tp-s{display:none}
@media (min-width:821px){.ev-films .gf-tp-s{display:block;margin-top:.15rem;color:var(--gray);font-size:11px}}
.ev-films .gf-days{padding-top:var(--sp-3)}
.ev-films .gf-day{padding-bottom:var(--sp-3)}
.ev-ch{display:grid;gap:.9rem;margin-bottom:var(--sp-3)}
.ev-ch .md-frame{max-width:none;margin:0}
.ev-ch-f{display:grid;gap:.3rem;align-content:end}
.ev-ch-k{font-size:var(--fs-micro);font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--orange)}
.ev-ch-t{font-family:var(--font-display);font-weight:600;font-size:clamp(1.15rem,2.4vw,1.6rem);line-height:1.2;color:var(--white)}
.ev-ch-m{display:flex;flex-wrap:wrap;gap:.2rem 1rem;font-size:var(--fs-small);color:var(--gray-light);font-variant-numeric:tabular-nums}
.ev-ch-a{display:flex;flex-wrap:wrap;gap:0 1.4rem;font-size:var(--fs-small)}
.ev-ch-a a{display:inline-flex;align-items:center;gap:.35rem;min-height:44px;color:var(--white);text-decoration:none;border-bottom:1px solid transparent}
.ev-ch-a a:hover,.ev-ch-a a:focus-visible{border-bottom-color:var(--orange)}
.ev-ch-a i{font-style:normal}
@media (min-width:821px){
  .ev-ch{grid-template-columns:minmax(0,1fr) 17rem;gap:2rem;align-items:end}
  .ev-ch-f{padding-bottom:.4rem}
}
/* a missing film: a dashed slot the shape of a film (E), so the jump from Task 2 to Task 4 is not a mystery */
.ev-none{display:grid;place-content:center;gap:.4rem;aspect-ratio:16/9;max-height:62vh;border:1px dashed var(--edge-hi);border-radius:3px;padding:var(--sp-3);text-align:center;color:var(--gray-light);font-size:var(--fs-body-s)}
.ev-none-t{font-family:var(--font-display);font-weight:600;font-size:clamp(1.2rem,3vw,1.7rem);color:var(--white)}
.ev-none p+p{max-width:30rem;margin:0 auto}
.ev-films .gf-df{display:flex;justify-content:space-between;gap:1rem;margin-top:.6rem}

/* ---------------------------------------------------------------- the foot: the whole season, a picture each (E) */
.ev-foot{padding:var(--sp-5) 0 var(--sp-4);border-top:1px solid var(--line)}
.ev-foot-in{max-width:var(--measure);margin:0 auto}
@media (max-width:820px){.ev-foot-in{margin:0 var(--gutter)}}
.ev-foot-h{font-family:var(--font-display);font-weight:700;font-size:clamp(1.6rem,4vw,2.2rem);letter-spacing:-.01em;color:var(--white);margin:0 0 var(--sp-2)}
.ev-rows{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.ev-row{position:relative;display:grid;grid-template-columns:6.5rem minmax(0,1fr);grid-template-areas:"p d" "p n" "p m" "p go";gap:.1rem 1rem;padding:.95rem 0 .9rem;border-bottom:1px solid var(--line)}
.ev-row-pic{grid-area:p;align-self:start;aspect-ratio:16/9;overflow:hidden;border-radius:2px;background:var(--card)}
.ev-row-pic img{display:block;width:100%;height:100%;object-fit:cover;filter:brightness(.82) saturate(.85);transition:filter .45s var(--ease-out),transform .9s var(--ease-out)}
.ev-row:hover .ev-row-pic img,.ev-row:focus-within .ev-row-pic img{filter:none;transform:scale(1.03)}
.ev-row-d{grid-area:d;font-size:var(--fs-small);color:var(--gray-light);font-variant-numeric:tabular-nums}
.ev-now{display:none;color:var(--white);font-weight:600}
.ev-row.is-now .ev-now{display:inline}
.ev-tally{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--orange);margin-right:.45rem;vertical-align:.05em}
.ev-row-n{grid-area:n;display:grid;min-width:0}
.ev-row-n b{font-family:var(--font-display);font-weight:600;font-size:1.1rem;color:var(--white)}
.ev-row-n small{font-size:var(--fs-small);color:var(--gray)}
.ev-row-m{grid-area:m;font-size:var(--fs-small);color:var(--gray-light)}
.ev-row-bar{position:absolute;left:0;right:0;bottom:-2px;height:3px;pointer-events:none}   /* its dates on the row's own rule, where the season line has them */
.ev-row-bar i{position:absolute;left:calc(var(--x) * 100%);width:max(4px,calc(var(--w) * 100%));top:-1px;height:3px;border-radius:2px;background:var(--gray)}
.ev-row.is-here .ev-row-bar i{background:var(--orange)}
.ev-row.is-now .ev-row-bar i{background:var(--white)}
.ev-row-go{grid-area:go;justify-self:start;display:inline-flex;align-items:center;gap:.35rem;min-height:40px;font-size:var(--fs-small);font-weight:600;color:var(--white);text-decoration:none;white-space:nowrap}
.ev-row-go i{font-style:normal;transition:transform .3s var(--ease-out)}
a.ev-row-go::after{content:"";position:absolute;inset:0;z-index:1}   /* the whole row opens it */
.ev-row:has(a.ev-row-go):hover{background:rgba(246,244,244,.02)}
.ev-row-go:hover,.ev-row-go:focus-visible{color:var(--orange)}
.ev-row-go:hover i,.ev-row-go:focus-visible i{transform:translateX(4px)}
.ev-row-go.is-here{color:var(--orange);font-weight:500}
.ev-row.is-here{background:linear-gradient(90deg,rgba(255,117,23,.06),transparent 60%)}
.ev-rows-f{margin-top:var(--sp-2);font-size:var(--fs-micro);color:var(--gray);max-width:46rem}
.ev-rows-m{margin-top:.4rem;font-size:var(--fs-small)}
.ev-rows-m a{display:inline-flex;align-items:center;gap:.35rem;min-height:44px;color:var(--gray-light);text-decoration:none}
.ev-rows-m a:hover,.ev-rows-m a:focus-visible{color:var(--white)}
.ev-rows-m i{font-style:normal}
@media (min-width:821px){
  .ev-row{grid-template-columns:9rem 12.5rem minmax(0,1.3fr) minmax(0,1fr) 10rem;grid-template-areas:"p d n m go";align-items:center;padding:1rem 0}
  .ev-row-go{justify-self:end}
  .ev-row.is-here{padding-left:.75rem;margin-left:-.75rem}
  .ev-row.is-here .ev-row-bar{left:.75rem}
}

/* ---------------------------------------------------------------- reduced motion: the finished page, still */
@media (prefers-reduced-motion:reduce){.ev-fan,.gf-track,.ev-row-pic img,.ev-row-go i{transition:none!important;animation:none!important}}
/* laptop widths: the season strip and the foot keep the page's side margin (site audit 14 Nov) */
@media (min-width:821px){.ev-season-in,.ev-foot-in{max-width:min(var(--measure),calc(100% - 2 * var(--gutter)))}}
