@view-transition { navigation: auto; }
::view-transition-old(root) { animation: motion-out 140ms ease-in both; }
::view-transition-new(root) { animation: motion-in 220ms cubic-bezier(.2,.75,.25,1) both; }
.header { view-transition-name: site-header; } .preview-note { view-transition-name: site-note; } /* the chrome stays put between pages */
::view-transition-group(site-header), ::view-transition-group(site-note), ::view-transition-old(site-header), ::view-transition-new(site-header), ::view-transition-old(site-note), ::view-transition-new(site-note) { animation: none; }
@keyframes motion-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes motion-in { from { opacity: 0; transform: translateY(8px); } }
.motion-ready .motion-pending { opacity: 0; }
.motion-boot main :is(h1, h2, p, figure img) { opacity: 0; }
.motion-ready h1.motion-pending, .motion-ready h2.motion-pending { opacity: 1; }
.motion-ready .motion-pending .motion-word { transform: translateY(110%); }
.motion-ready .motion-mask, .motion-ready .motion-word { display: inline-block; }
.motion-mask { clip-path: inset(-.08em -.04em); vertical-align: baseline; }
.motion-count { display: inline-block; position: relative; }
.motion-count > :first-child { opacity: 0; }
.motion-count > :last-child { position: absolute; inset: 0; }
/* Home chapter seam: a red stage-light rail, punctuated by the five judges' white lights.
   The rail is drawn in CSS; shared reveal motion adds one outward ignition on entry. */
.stage-divider { position: relative; height: 18px; isolation: isolate; border-block: 1px solid #ed303b38; background: linear-gradient(90deg, #ed303b04, #ed303b18 50%, #ed303b04); }
.stage-armed .stage-divider-light { transform: scaleX(.08); opacity: .4; }
.stage-divider-light { position: absolute; inset: 7px 0; background: linear-gradient(90deg, #ed303b22, var(--red) 24%, var(--red) 76%, #ed303b22); box-shadow: 0 0 20px #ed303b66; transform-origin: center; }
.stage-divider-marks { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 8px; }
.stage-divider-marks i { display: block; width: 24px; height: 6px; background: var(--paper); box-shadow: 0 0 10px #f4f2ef45; transform: skewX(-24deg); }
.home-page .stage-divider + .section { border-top: 0; }
@media (max-width: 760px) { .stage-divider-marks { gap: 5px; } .stage-divider-marks i { width: 18px; } }
.text-link { text-decoration-thickness: 1px; text-underline-offset: .25em; transition: text-underline-offset 180ms ease-out, text-decoration-thickness 180ms ease-out; }
.text-link:hover, .text-link:focus-visible { text-decoration-thickness: 2px; text-underline-offset: .38em; }
.btn, .file-chip, .film-controls button { transition: transform 150ms ease-out, border-color 150ms ease-out, background-color 150ms ease-out; }
.btn:active, .file-chip:active, .film-controls button:active { transform: translateY(2px) scale(.98); }
a.lightbox-tile { overflow: hidden; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a.lightbox-tile > img { transition: scale 300ms cubic-bezier(.2,.75,.25,1); }
  a.lightbox-tile:hover > img { scale: 1.025; }
  .film-strip a.lightbox-tile:hover > img { scale: 1; }
}

.photo-pass-season .season-timeline { display: block; position: relative; padding-left: 48px; margin-block: 28px; border: 0; background: none; }
.season-spine { position: absolute; left: 14px; top: 26px; bottom: 26px; width: 2px; height: var(--spine-height, auto); background: var(--line); }
.season-spine::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleY(var(--season-progress, 1)); transform-origin: top; }
.photo-pass-season .season-timeline .season-card { display: block; position: relative; padding: 0; border: 0; min-height: 0; background: none; }
.season-node { position: absolute; top: 50%; left: -39px; width: 12px; height: 12px; margin-top: -6px; z-index: 1; border: 2px solid var(--muted); border-radius: 50%; background: var(--ink); }
.season-next { display: inline-block; margin-left: 10px; padding: 3px 7px; color: var(--ink); background: var(--red); font-size: .6875rem; letter-spacing: .08em; vertical-align: middle; }
.season-timeline .is-next .season-node { border-color: var(--red); background: var(--red); }
.season-timeline .is-next .season-node::after { content: ""; position: absolute; inset: -7px; border: 1px solid var(--red); border-radius: 50%; animation: next-night 1800ms ease-out infinite; }
@keyframes next-night { 0%, 100% { transform: scale(.65); opacity: 0; } 20% { opacity: .75; } 80% { transform: scale(1.15); opacity: 0; } }
.season-details { border-top: 1px solid var(--line); min-width: 0; }
.season-timeline .season-card:last-child .season-details { border-bottom: 1px solid var(--line); }
/* one compact row per night: number · date · details · tag */
.photo-pass-season .season-timeline .event-copy { display: grid; grid-template-columns: 72px minmax(190px, 260px) minmax(0, 1fr) auto; column-gap: clamp(16px, 2.5vw, 32px); row-gap: 2px; align-items: center; padding: 18px 0; text-decoration: none; }
.photo-pass-season .season-timeline .season-num { grid-column: 1; grid-row: 1 / span 6; margin: 0; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; color: var(--muted); }
.season-timeline .event-copy b { grid-column: 2; grid-row: 1 / span 6; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.25; }
.season-timeline .event-copy small { grid-column: 3; font-size: .9375rem; color: var(--muted); }
.season-timeline .event-copy > b + small { color: var(--paper); margin: 0; }
.season-timeline .event-copy .meta { grid-column: 4; grid-row: 1 / span 6; justify-self: end; white-space: nowrap; }
.photo-pass-season .season-timeline .event-stream { margin: 0 0 18px 102px; }
.season-timeline .is-next .season-num, .season-timeline .is-finale .season-num { color: var(--red-text); }
.season-timeline .is-finale .season-details { border-top: 3px solid var(--red); }
.season-timeline .is-finale .season-node { width: 18px; height: 18px; margin-top: -9px; left: -42px; border: 4px solid var(--red); }
.season-timeline .event-copy:hover .meta, .season-timeline .event-copy:hover .season-num { color: var(--red-text); }

.gallery.film-strip { --film-height: clamp(190px, 29vw, 360px); position: relative; display: flex; gap: 16px; width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line) var(--ink); padding-block: 16px; border-block: 1px solid var(--line); }
.film-strip figure { flex: 0 0 auto; width: calc(var(--film-height) * var(--photo-ratio, 1.5)); height: var(--film-height); aspect-ratio: auto; scroll-snap-align: start; background: var(--panel); }
.film-strip::after { content: ""; flex: 0 0 max(0px, calc(100% - var(--film-height) * 1.5 - 16px)); }
.gallery.film-strip img { width: 100%; height: 100%; object-fit: contain; }
.film-strip, .film-strip a.lightbox-tile.lightbox-ready { cursor: grab; }
.film-strip.is-dragging { scroll-snap-type: none; user-select: none; }
.film-strip.is-dragging, .film-strip.is-dragging a { cursor: grabbing; }
.film-strip:focus-visible { outline: 2px solid var(--paper); outline-offset: 5px; }
.film-controls { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 16px; }
.film-controls output { margin-right: auto; font: 700 .875rem/1 var(--body); font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.film-controls button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); background: var(--panel); }
.film-controls button:hover { border-color: var(--paper); }
.film-controls button:disabled { opacity: .35; cursor: default; }
@media (max-width: 760px) {
  .photo-pass-season .season-timeline { padding-left: 30px; }
  .season-spine { left: 5px; }
  .photo-pass-season .season-timeline .event-copy { grid-template-columns: 44px minmax(0, 1fr); padding: 14px 0; }
  .photo-pass-season .season-timeline .season-num { grid-row: 1 / span 6; font-size: 1.6rem; }
  .season-timeline .event-copy .meta { grid-column: 2; grid-row: auto; justify-self: start; order: -1; font-size: .6875rem; }
  .season-timeline .event-copy b, .season-timeline .event-copy small { grid-column: 2; grid-row: auto; }
  .photo-pass-season .season-timeline .event-stream { margin-left: 44px; }
  .season-node { left: -30px; }
  .season-timeline .is-finale .season-node { left: -33px; }
  .gallery.film-strip { --film-height: min(280px, calc((100vw - 72px) * 2 / 3)); }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .motion-boot main :is(h1, h2, p, figure img), .motion-ready .motion-pending { opacity: 1; }
  .motion-ready .motion-word { transform: none !important; }
  .season-spine::after { transform: none; }
  a.lightbox-tile > img, .btn:active, .file-chip:active, .film-controls button:active { scale: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@media print { .motion-pending, .motion-boot main :is(h1, h2, p, figure img) { opacity: 1 !important; } .motion-word { transform: none !important; } }
