/* ==========================================================================
   ANTIHORIZN: Watch
   Loaded after site.css and brand.css on watch.html only. The page is a
   cinema: night from the bar to the footer.

   W1  Page ground
   W2  The feature      our launch film on one very large still
   W3  Shelf head       label, headline, one sentence
   W4  Start here       the first film of shelf one, at full size
   W5  Chips, arrows
   W6  Rail             a row of films that scrolls sideways
   W7  Programme        nine talks as a list, with a panel that follows it
   W8  Closing
   W9  Narrow screens, reduced motion

   Colour is ink, paper and grey. Every still is set in grey; what changes on
   hover is how much light it gets, never its hue.
   ========================================================================== */

/* --- W1. Page ground ---------------------------------------------------- */

.wt-body { background: var(--night); }
.wt { --wt-edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
.wt i[aria-hidden] {            /* the square dot between two facts on a line */
  display: inline-block;
  width: 3px; height: 3px;
  margin: 0 0.62em;
  vertical-align: 0.26em;
  background: currentColor;
  opacity: 0.6;
}
.wt img { background: var(--night-2); }

/* --- W2. The feature ---------------------------------------------------- */

.wt-hero { padding: calc(var(--nav-h) + clamp(40px, 7vh, 88px)) 0 clamp(56px, 9vh, 120px); }
.wt-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(28px, 4vw, 72px);
}
.wt-hero__eyebrow { display: flex; align-items: center; margin-bottom: clamp(18px, 2.6vh, 30px); }
.wt-dot {
  width: 7px; height: 7px;
  margin-right: 10px;
  background: #FFFFFF;
  animation: wtLive 1.8s steps(1) infinite;
}
@keyframes wtLive { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.25; } }

.wt-hero__title {
  max-width: 17ch;
  font-family: var(--display);
  font-size: clamp(40px, 5.5vw, 100px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.032em;
  color: var(--grey);
  text-wrap: balance;
}
.wt-hero__title em { display: block; color: #FFFFFF; }

/* The bill: what is on tonight. Three lines, each a link down the page. */
.wt-bill { display: grid; border-top: 1px solid var(--line-night-2); }
.wt-bill a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: baseline;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-night);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.006em;
  color: var(--on-dark-soft);
  transition: color 180ms var(--ease), padding-left 0s;
}
.wt-bill a span { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--dimmer); }
.wt-bill a b { font-weight: 600; color: var(--on-dark); }
.wt-bill a small { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.wt-bill a b::after {
  content: "↓";
  display: inline-block;
  margin-left: 8px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .wt-bill a:hover b::after { opacity: 1; transform: none; }
}

/* The screen. A 2.35:1 window onto the 16:9 film; the player shows all of it. */
.wt-screen {
  position: relative;
  display: block;
  margin-top: clamp(32px, 5vh, 64px);
  aspect-ratio: 2.35 / 1;
  overflow: hidden;
  background: var(--night-2);
  isolation: isolate;
}
.wt-screen__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 62%;     /* the poster frame has no caption; the drone sits a little below centre */
  filter: grayscale(1) contrast(1.06);
  transform: scale(1.03);
  transform-origin: 50% 0;
  transition: transform 1400ms var(--ease-out);
}
.wt-screen[data-missing] .wt-screen__img { display: none; }
/* Without a poster the screen is still a screen: a horizon and a peak. */
.wt-screen[data-missing]::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#FFFFFF, #FFFFFF) center 62% / 22% 2px no-repeat,
    radial-gradient(120% 90% at 50% 62%, #1d1d20 0%, var(--night-2) 60%);
}
.wt-screen__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 11, 12, 0.34) 0%, rgba(11, 11, 12, 0.18) 38%, rgba(11, 11, 12, 0.78) 100%);
  transition: opacity 600ms var(--ease-out);
}
.wt-screen .playdisc {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 3;
  margin: calc(clamp(64px, 6.4vw, 104px) / -2) 0 0 calc(clamp(64px, 6.4vw, 104px) / -2);
}
.wt-screen__cap {
  position: absolute;
  left: clamp(18px, 2.4vw, 40px);
  right: clamp(18px, 2.4vw, 40px);
  bottom: clamp(16px, 2.2vw, 34px);
  z-index: 3;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  color: #FFFFFF;
}
.wt-screen__name {
  font-family: var(--display);
  font-size: clamp(22px, 2.35vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.wt-screen__meta { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); white-space: nowrap; }
.wt-screen__corner {
  position: absolute;
  z-index: 3;
  width: 22px; height: 22px;
  border: 0 solid rgba(255, 255, 255, 0.8);
}
.wt-screen__corner--tl { left: clamp(18px, 2.4vw, 40px); top: clamp(18px, 2.4vw, 40px); border-width: 1.5px 0 0 1.5px; }
.wt-screen__corner--br { right: clamp(18px, 2.4vw, 40px); top: clamp(18px, 2.4vw, 40px); border-width: 1.5px 1.5px 0 0; }
@media (hover: hover) and (pointer: fine) {
  .wt-screen:hover .wt-screen__img { transform: scale(1); }
  .wt-screen:hover .wt-screen__shade { opacity: 0.72; }
  .wt-screen:hover .playdisc { transform: scale(1.08); }
}
.wt-screen:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 4px; }

/* Two lines from the film, typed. The block is as tall as both lines from the
   first frame, so the shelf below never moves. */
.wt-lines {
  margin-top: clamp(40px, 7vh, 96px);
  text-align: center;
  font-family: var(--display);
  font-size: clamp(24px, 3.1vw, 54px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.022em;
  color: var(--grey);
}
.wt-lines p + p { color: #FFFFFF; }
.wt-lines strong { color: #FFFFFF; }

/* --- W3. Shelf head ----------------------------------------------------- */

.shelf { padding: clamp(64px, 10vh, 132px) 0 clamp(40px, 6vh, 80px); border-top: 1px solid var(--line-night); }
.shelf__head {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(28px, 4vw, 72px);
  margin-bottom: clamp(36px, 6vh, 72px);
}
.shelf__head .label { margin-bottom: 18px; }
.shelf__head .display em { white-space: nowrap; }
.shelf__head .lede { max-width: 40ch; padding-bottom: 0.3em; text-wrap: pretty; }

/* --- W4. Start here ----------------------------------------------------- */

.ft {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: end;
}
.ft__still {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--night-2);
}
.ft__still img, .rc__still img, .pg__still img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transition: transform 900ms var(--ease-out);
}
/* The light on a still: a veil that lifts on hover. Only its opacity moves. */
.ft__still::after, .rc__still::after, .pg__still::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 12, 0.36);
  transition: opacity 420ms var(--ease-out);
  pointer-events: none;
}
.ft__still .playdisc, .pg__still .playdisc {
  position: absolute;
  left: clamp(16px, 2vw, 32px);
  bottom: clamp(16px, 2vw, 32px);
  z-index: 2;
  width: clamp(56px, 5vw, 84px);
}
.ft__len, .rc__len {
  position: absolute;
  right: 0; bottom: 0;
  z-index: 2;
  padding: 7px 10px;
  background: #0B0B0C;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
@media (hover: hover) and (pointer: fine) {
  .ft__still:hover img { transform: scale(1.03); }
  .ft__still:hover::after { opacity: 0; }
}
.ft__tag { display: inline-block; padding: 5px 8px; background: #FFFFFF; color: #0B0B0C !important; }
.ft__who { margin-top: 22px; font-size: 14px; font-weight: 500; color: var(--dim); }
.ft__title {
  margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(26px, 2.5vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.ft__quote {
  margin-top: clamp(18px, 2.6vh, 28px);
  padding-left: 16px;
  border-left: 2px solid #FFFFFF;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: #FFFFFF;
  text-wrap: pretty;
}
.ft__why { margin-top: 18px; max-width: 44ch; color: var(--on-dark-soft); text-wrap: pretty; }
.ft__src { margin-top: 18px; font-size: 14px; }
.ft__src a, .pg__src a {
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-night-2);
  padding-bottom: 2px;
  transition: border-color 180ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .ft__src a:hover, .pg__src a:hover { border-color: #FFFFFF; }
}

/* --- W5. Chips, arrows -------------------------------------------------- */

.shelf__tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(48px, 8vh, 96px);
  padding-top: 20px;
  border-top: 1px solid var(--line-night);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chipbtn {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line-night-2);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--on-dark-soft);
  white-space: nowrap;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 140ms var(--ease-out);
}
.chipbtn span { font-size: 11px; font-variant-numeric: tabular-nums; opacity: 0.6; }
.chipbtn[aria-pressed="true"] { background: #FFFFFF; border-color: #FFFFFF; color: #0B0B0C; }
.chipbtn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .chipbtn:not([aria-pressed="true"]):hover { border-color: #FFFFFF; color: #FFFFFF; }
}
.shelf__arrows { flex: none; display: flex; gap: 8px; }
.arrowbtn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-night-2);
  font-size: 18px;
  line-height: 1;
  color: var(--on-dark);
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), opacity 180ms var(--ease), transform 140ms var(--ease-out);
}
.arrowbtn:active { transform: scale(0.94); }
.arrowbtn[disabled] { opacity: 0.3; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .arrowbtn:not([disabled]):hover { background: #FFFFFF; border-color: #FFFFFF; color: #0B0B0C; }
}

/* --- W6. Rail ----------------------------------------------------------- */
/* The rail runs to the right edge of the window. Its left edge sits on the
   page's column, and so does the snap point. */

.rail {
  margin-top: clamp(24px, 3.4vh, 40px);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--wt-edge);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail[data-drag="true"] { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.rail[data-drag="true"] a { pointer-events: none; }
.rail:focus-visible { outline: 1.5px solid #FFFFFF; outline-offset: -2px; }
.rail__track {
  display: flex;
  gap: clamp(16px, 1.8vw, 28px);
  width: max-content;
  padding-inline: var(--wt-edge);
}
.rc {
  flex: none;
  width: clamp(280px, 27.5vw, 440px);
  scroll-snap-align: start;
  transition: opacity 320ms var(--ease-out);
}
.rc[hidden] { display: none; }
.rc.is-entering { opacity: 0; }
.rc__link { display: block; }
.rc__still {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--night-2);
}
.rc__play {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.rc__play::before {
  content: "";
  margin-left: 3px;
  border-left: 12px solid #0B0B0C;
  border-block: 8px solid transparent;
}
.rc__who {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim);
}
.rc__title {
  display: block;
  margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(19px, 1.5vw, 23px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--on-dark);
  text-wrap: balance;
}
.rc__why { margin-top: 10px; font-size: 14px; line-height: 1.45; letter-spacing: -0.006em; color: var(--on-dark-soft); text-wrap: pretty; }
.rc__src { margin-top: 12px; font-size: 12px; line-height: 1.45; color: var(--dim); }
@media (hover: hover) and (pointer: fine) {
  .rc__link:hover .rc__still img { transform: scale(1.045); }
  .rc__link:hover .rc__still::after { opacity: 0; }
  .rc__link:hover .rc__play { opacity: 1; transform: none; }
  .rc__link:hover .rc__title { color: #FFFFFF; }
}
.rc__link:focus-visible { outline: 1.5px solid #FFFFFF; outline-offset: 4px; }
.rc__link:focus-visible .rc__still::after { opacity: 0; }
.rc__link:focus-visible .rc__play { opacity: 1; transform: none; }

/* How far along the rail is. */
.rail__bar { margin-top: clamp(22px, 3vh, 36px); height: 1px; background: var(--line-night-2); overflow: visible; }
.rail__bar i {
  display: block;
  height: 3px;
  margin-top: -1px;
  width: 100%;
  background: #FFFFFF;
  transform-origin: left;
  transform: translateX(calc(var(--at, 0) * (100% - 100% * var(--span, 0.3)))) scaleX(var(--span, 0.3));
}

/* --- W7. Programme ------------------------------------------------------ */
/* Each list item holds its row and its panel. On a desktop the item gives up
   its box (display: contents): rows fall into the first column and every
   panel into the same cell of the second, where it sticks under the bar.
   Only the active panel is opaque. */

.pg__list {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  column-gap: clamp(28px, 4vw, 72px);
  border-top: 1px solid var(--line-night-2);
  counter-reset: pg;
}
.pg__item { display: contents; }
.pg__row {
  grid-column: 1;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 96px 92px;
  align-items: baseline;
  gap: 16px;
  padding: clamp(18px, 2.5vh, 26px) 0;
  border-bottom: 1px solid var(--line-night);
  color: var(--dim);
  transition: color 220ms var(--ease);
}
.pg__n { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.pg__main { display: block; min-width: 0; transition: transform 420ms var(--ease-out); }
.pg__title {
  display: block;
  font-family: var(--display);
  font-size: clamp(22px, 2.15vw, 34px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--grey);
  text-wrap: balance;
  transition: color 220ms var(--ease);
}
.pg__who { display: block; margin-top: 8px; font-size: 14px; line-height: 1.45; letter-spacing: -0.006em; color: var(--dim); }
.pg__who span { color: var(--dimmer); }
.pg__kind, .pg__len { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.pg__len { text-align: right; font-variant-numeric: tabular-nums; }
.pg__item[data-active="true"] .pg__row { color: var(--on-dark); }
.pg__item[data-active="true"] .pg__title { color: #FFFFFF; }
.pg__item[data-active="true"] .pg__main { transform: translateX(10px); }
.pg__row:focus-visible { outline: 1.5px solid #FFFFFF; outline-offset: 2px; }

.pg__more {
  grid-column: 2;
  grid-row: 1 / span 9;
  align-self: start;
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  padding-top: clamp(18px, 2.5vh, 26px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 360ms var(--ease-out), transform 520ms var(--ease-out), visibility 0s linear 360ms;
}
.pg__item[data-active="true"] .pg__more { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.pg__still { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night-2); }
.pg__still::after { background: rgba(11, 11, 12, 0.22); }
.pg__meta { margin-top: 18px; font-size: 12px; line-height: 1.45; color: var(--dim); }
.pg__meta b { font-weight: 600; color: var(--on-dark); }
.pg__why { margin-top: 10px; color: var(--on-dark-soft); text-wrap: pretty; }
.pg__src { margin-top: 16px; font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
  .pg__still:hover img { transform: scale(1.03); }
  .pg__still:hover::after { opacity: 0; }
}

/* --- W8. Closing -------------------------------------------------------- */

.wt-close { padding: clamp(96px, 16vh, 200px) 0 clamp(64px, 10vh, 120px); border-top: 1px solid var(--line-night); }
.wt-close__in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.wt-close__title {
  margin-top: 22px;
  font-family: var(--display);
  font-size: clamp(56px, 10.5vw, 196px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--grey);
}
.wt-close__title em { color: #FFFFFF; white-space: nowrap; }
.wt-close .lede { margin-top: clamp(24px, 4vh, 40px); max-width: 42ch; }
.wt-close .closing__actions { justify-content: center; margin-top: 28px; }
.wt-note {
  max-width: 78ch;
  margin-top: clamp(64px, 11vh, 132px);
  padding-top: 20px;
  border-top: 1px solid var(--line-night);
  text-align: left;
  text-wrap: pretty;
}
.wt-note a { color: var(--on-dark); border-bottom: 1px solid var(--line-night-2); }

/* --- W9. Narrow screens, reduced motion --------------------------------- */

@media (max-width: 1000px) {
  .wt-hero__top, .shelf__head, .ft { grid-template-columns: 1fr; align-items: start; }
  .wt-screen { aspect-ratio: 2.2 / 1; }
  .wt-screen__img { object-position: 50% 62%; }
  .wt-screen__meta { display: none; }
  .shelf__tools { align-items: flex-end; }

  /* Programme: each item is a block again and carries its own panel. */
  .pg__list { display: block; }
  .pg__item { display: block; border-bottom: 1px solid var(--line-night); padding-bottom: 28px; }
  .pg__row { grid-template-columns: 32px minmax(0, 1fr) auto; border-bottom: 0; color: var(--on-dark); padding-bottom: 16px; }
  .pg__title { color: #FFFFFF; }
  .pg__kind { display: none; }
  .pg__item[data-active="true"] .pg__main { transform: none; }
  .pg__more { position: static; opacity: 1; visibility: visible; transform: none; padding-top: 0; }
}
@media (max-width: 640px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .shelf__tools { display: block; }
  .shelf__arrows { display: none; }
  .rc { width: 78vw; }
  .wt-bill a { grid-template-columns: 28px 1fr auto; }
  .wt-screen__corner { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wt-dot { animation: none; }
  .wt-screen__img, .ft__still img, .rc__still img, .pg__still img { transform: none !important; transition: none; }
  .rc, .rc__play, .pg__more, .pg__main, .wt-bill a b::after { transition: none; }
  .pg__item[data-active="true"] .pg__main { transform: none; }
  .rail { scroll-behavior: auto; }
}
