/* Design tokens. The only file that holds colour, type and spacing values. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  /* Palette: three colours. Yellow is the only accent. */
  --bone: #EFEBE2;
  --ink: #0C0C0C;
  --acid: #E6FF00;
  /* Derived, not new colours: bone and ink at reduced strength. */
  --bone-dim: rgb(239 235 226 / .66);   /* secondary text on ink, 7.9:1 */
  --ink-dim: rgb(12 12 12 / .68);       /* secondary text on bone, 6.0:1 */
  --rule-on-ink: rgb(239 235 226 / .28);
  --rule-on-bone: rgb(12 12 12 / .9);
  --block-on-ink: #262624;              /* key-art placeholder block */
  --block-on-bone: #D5D0C4;

  /* Type: one variable file, two voices. */
  --font: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --display-stretch: 62%;
  --display-weight: 900;
  --fs-label: .875rem;                            /* 14px */
  --fs-body: 1.125rem;                            /* 18px */
  --fs-lede: clamp(1.25rem, 1.05rem + .9vw, 1.75rem);
  --fs-card: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);
  --fs-row: clamp(2.75rem, 1rem + 5.6vw, 7rem);
  --fs-h2: clamp(2.75rem, 1.4rem + 6vw, 7.5rem);
  --fs-h1: clamp(4rem, 1rem + 13vw, 15rem);
  --fs-manifesto: clamp(2.25rem, 1rem + 4.6vw, 6rem);
  --track-label: .09em;
  --track-display: -.012em;

  /* Space: one scale. */
  --gut: clamp(1rem, .4rem + 2.6vw, 3rem);
  --s-1: .5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2.5rem;
  --s-5: 4rem;
  --s-6: clamp(4.5rem, 3rem + 6vw, 9rem);
  --max: 1920px;

  /* Motion: slow, and only two things move. */
  --reveal: .9s cubic-bezier(.2, .7, .2, 1);
}
/* Layout and components. Values come from tokens.css. No radius, no shadow, no gradient. */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font: 400 var(--fs-body)/1.5 var(--font);
  font-stretch: 100%;
  background: var(--ink);
  color: var(--bone);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .08em; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }
.band--bone :focus-visible { outline-color: var(--ink); }

.skip { position: absolute; left: var(--gut); top: -5rem; z-index: 10; background: var(--acid); color: var(--ink); padding: .6rem 1rem; }
.skip:focus { top: .5rem; }

/* Voices */
.label { font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; line-height: 1.3; }
.display { font-stretch: var(--display-stretch); font-weight: var(--display-weight); text-transform: uppercase; letter-spacing: var(--track-display); word-spacing: .07em; line-height: .86; }
.dim { color: var(--bone-dim); }
.band--bone .dim { color: var(--ink-dim); }

/* A missing fact or asset is printed, never papered over. */
.tok { display: inline-block; background: var(--acid); color: var(--ink); font: 600 var(--fs-label)/1.3 var(--font); font-stretch: 100%; letter-spacing: .03em; text-transform: none; padding: .2em .45em; }

.preview-bar { background: var(--acid); color: var(--ink); padding: .5rem var(--gut); text-align: center; }

/* Bands alternate bone and black. */
.band { padding: var(--s-6) max(var(--gut), (100vw - var(--max)) / 2); }
.band--bone { background: var(--bone); color: var(--ink); }
.band--ink { background: var(--ink); color: var(--bone); }
.band-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); border-top: 1px solid; padding-top: .75rem; margin-bottom: var(--s-4); }

/* Header */
.site-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; padding: 1.1rem var(--gut); }
.site-head--over { position: relative; z-index: 3; margin-bottom: -4.5rem; min-height: 4.5rem; }
.wordmark { font-size: 1.375rem; text-decoration: none; line-height: 1; }
.nav { display: flex; gap: clamp(1rem, 2.2vw, 2.25rem); }
.nav a { text-decoration: none; padding: .5rem 0; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; }

/* Hero */
.hero { position: relative; min-height: min(100svh, 75rem); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 6rem var(--gut) var(--gut); background: var(--ink); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero video { opacity: 0; transition: opacity 1.4s linear; }
.hero video.on { opacity: 1; }
.hero-meta { position: relative; display: flex; justify-content: space-between; gap: var(--s-2); border-top: 1px solid var(--bone); padding-top: .75rem; }
.hero-meta a { text-decoration: none; }
.hero h1 { position: relative; font-size: min(11.9vw, 14.3rem); margin: 0 0 .1em -.04em; color: var(--bone); mix-blend-mode: difference; white-space: nowrap; }
.hero h1 span { display: inline; }

/* Plates: moving texture between bands. */
.plate { height: clamp(11rem, 30vw, 30rem); background: var(--ink); overflow: hidden; }
.plate video { width: 100%; height: 100%; object-fit: cover; }

/* Manifesto */
/* Plain bone break between the cover and the films. */
.gap { height: clamp(2.5rem, 5vw, 5rem); background: var(--bone); }

/* The index: one title per row, on visible rules. */
.index-cols, .row > a { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 6rem 9.5rem; column-gap: var(--s-3); align-items: baseline; }
.index-cols { padding-bottom: .6rem; }
.row { --frame-w: clamp(9rem, 14vw, 16rem); --open: calc((var(--frame-w) * 1.5 - 5rem) / 2); position: relative; border-top: 1px solid var(--rule-on-ink); }
.index .row:last-child { border-bottom: 1px solid var(--rule-on-ink); }
.row > a { padding: 1rem 0 .7rem; text-decoration: none; }
/* Under the pointer a row opens: its rules move apart until the poster fits between them, and turn bright. */
.row::before, .row::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--bone); opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 3; }
.row::before { top: -1px; } .row::after { bottom: -1px; }
.row:hover::before, .row:hover::after, .row:focus-within::before, .row:focus-within::after { opacity: 1; }
@media (hover: hover) and (min-width: 768px) {
  .row > a { transition: padding .4s cubic-bezier(.2, .7, .2, 1); }
  .row > a:hover, .row > a:focus-visible { padding-block: calc(1rem + var(--open)) calc(.7rem + var(--open)); }
  /* Long titles wrap clear of the poster instead of running under it. */
  .row > a:hover .row-t, .row > a:focus-visible .row-t { padding-right: calc(var(--frame-w) + 3rem); }
}
.row > a > *, .row-meta > * { grid-row: 1; }
.row-meta { display: contents; }
.row-n { grid-column: 1; } .row-t { grid-column: 2; } .row-y { grid-column: 3; } .row-s { grid-column: 4; }
.row-t { font-size: var(--fs-row); text-wrap: balance; }
.row-y { font-stretch: var(--display-stretch); font-weight: 800; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); letter-spacing: 0; line-height: 1; }
.row > a:hover .row-t, .row > a:focus-visible .row-t, .row.is-active .row-t { color: var(--acid); }
.frame { position: absolute; z-index: 2; right: 20rem; top: 50%; width: var(--frame-w); aspect-ratio: 2 / 3; transform: translateY(-50%); overflow: hidden; pointer-events: none; background: var(--block-on-ink); clip-path: inset(0 0 100% 0); transition: clip-path var(--reveal); }
.frame img, .card img, .still img, .portrait img { width: 100%; height: 100%; object-fit: cover; }
.row > a:hover + .frame, .row > a:focus-visible + .frame, .row.is-active .frame { clip-path: inset(0); }
.ph { display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: .75rem; background: var(--block-on-ink); color: var(--bone); }
.band--bone .ph { background: var(--block-on-bone); color: var(--ink); }
.ph b { font-size: var(--fs-card); overflow-wrap: anywhere; }
.jump { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); margin-top: var(--s-4); text-decoration: none; font-size: var(--fs-h2); }
.jump:hover { color: var(--acid); }
.band--bone .jump:hover { color: inherit; background: var(--acid); }

/* Pipeline strip: quiet on purpose. */
.pipeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); }
.pipeline h3 { margin-bottom: var(--s-2); }
.pipeline li { border-top: 1px solid rgb(12 12 12 / .25); }
.pipeline li .label { white-space: nowrap; padding-top: .3em; }
.pipeline li a { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; text-decoration: none; font-weight: 500; }
.pipeline li a:hover { background: var(--acid); }

/* Contact */
.contact-line { font-size: var(--fs-h2); max-width: 16ch; }
.contact-mail { display: inline-block; margin-top: var(--s-4); font-size: var(--fs-lede); font-weight: 600; }
a.contact-mail { background: var(--acid); color: var(--ink); padding: .35em .6em; text-decoration: none; }
.what-for { margin-top: var(--s-5); border-bottom: 1px solid; }
.what-for li { border-top: 1px solid; }
.what-for a, .what-for span { display: flex; justify-content: space-between; align-items: baseline; padding: .9rem 0 .6rem; text-decoration: none; font-size: var(--fs-row); }
.what-for a:hover { background: var(--acid); color: var(--ink); }

/* Work: the wall */
.page-head h1 { font-size: var(--fs-h1); margin-left: -.04em; }
.page-head .lede { margin-top: var(--s-3); max-width: 46ch; font-size: var(--fs-lede); line-height: 1.35; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--s-4); }
.chip { font: inherit; font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: inherit; background: none; border: 1px solid; border-radius: 0; padding: .7rem 1rem; min-height: 2.75rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.chip:hover { background: var(--acid); color: var(--ink); border-color: var(--ink); }
.group h2 { font-size: var(--fs-h2); }
.wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-2); }
.card a { display: block; text-decoration: none; }
.card-art { aspect-ratio: 2 / 3; overflow: hidden; margin-bottom: .75rem; }
.card-art .ph { padding: 1rem; }
.card--type .card-art { margin-bottom: .6rem; }
.card-t { font-size: var(--fs-card); line-height: .92; }
.card-m { margin-top: .4rem; }
.card a:hover .card-t { color: var(--acid); }
.band--bone .card a:hover .card-t { color: inherit; background: var(--acid); }
.print-only { display: none; }

/* Image reveal on scroll: the one other thing that moves. */
.js .reveal { clip-path: inset(0 0 100% 0); }
.js .reveal.in { clip-path: inset(0); transition: clip-path var(--reveal); }

/* Title page */
.title-head h1 { font-size: var(--fs-h1); margin: var(--s-3) 0 var(--s-4) -.04em; overflow-wrap: anywhere; }
.title-head h1.long { font-size: var(--fs-h2); }
.th { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 2fr); gap: 0 var(--s-3); align-items: start; margin-top: var(--s-3); }
.th h1 { font-size: min(var(--fs-h1), var(--fit)); margin: -.08em 0 0 -.04em; }
.th h1.long { font-size: min(var(--fs-h2), var(--fit), 6vw); }
.th-col { border-left: 1px solid var(--rule-on-ink); padding-left: var(--s-3); min-height: 100%; }
.th .logline { font-size: var(--fs-lede); line-height: 1.3; margin-bottom: var(--s-3); }
.th-links { display: flex; gap: var(--s-3); }
.th .facts { display: block; border-top: 0; }
.th .facts div { padding: 0 0 var(--s-2); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--s-3); border-top: 1px solid; }
.facts div { padding: .75rem 0 var(--s-3); }
.facts dt { margin-bottom: .5rem; }
.facts dd { font-size: var(--fs-lede); font-weight: 600; line-height: 1.25; }
.title-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-4) var(--s-3); align-items: start; }
.still { aspect-ratio: 16 / 9; overflow: hidden; }
.still + .still { margin-top: var(--s-2); }
.poster { aspect-ratio: 2 / 3; overflow: hidden; }
.missing { display: grid; place-items: center; height: 100%; padding: 1rem; text-align: center; background: var(--block-on-bone); }
.band--ink .missing { background: var(--block-on-ink); }
.logline { font-size: var(--fs-lede); line-height: 1.35; max-width: 40ch; margin-bottom: var(--s-4); }
.reel { background: var(--ink); overflow: clip; padding-block: var(--s-3); display: grid; gap: var(--s-1, .5rem); }
.reel-row { display: flex; gap: var(--s-1, .5rem); width: max-content; }
.reel-row a { flex: none; width: clamp(6.5rem, 12vw, 12rem); aspect-ratio: 2 / 3; }
.reel-row img { width: 100%; height: 100%; object-fit: cover; }
.reel-b { margin-left: -45vw; }
.reel-run { gap: 0; }
.reel-run a { margin-right: var(--s-1, .5rem); }
@keyframes run { from { transform: translateX(-50%); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) { .reel-run { animation: run 90s linear infinite; } }
@keyframes slide-a { from { translate: 0; } to { translate: -45vw; } }
@keyframes slide-b { from { translate: 0; } to { translate: 45vw; } }
/* Custom pointer (site.js adds .has-cursor on mouse devices): a yellow point with a viewfinder frame that trails it and opens up with a label over anything clickable. */
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor { position: fixed; inset: 0 auto auto 0; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .2s; }
.cursor.on { opacity: 1; }
.cursor-dot, .cursor-frame { position: absolute; left: 0; top: 0; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--acid); }
.cursor-frame { width: 30px; height: 30px; margin: -15px 0 0 -15px; transition: width .25s, height .25s, margin .25s; }
.cursor-frame i { position: absolute; inset: 0; filter: drop-shadow(1px 1px 0 var(--ink)) drop-shadow(-1px -1px 0 var(--ink)); border: 2px solid var(--bone); clip-path: polygon(0 0, 32% 0, 32% 32%, 68% 32%, 68% 0, 100% 0, 100% 32%, 68% 32%, 68% 68%, 100% 68%, 100% 100%, 68% 100%, 68% 68%, 32% 68%, 32% 100%, 0 100%, 0 68%, 32% 68%, 32% 32%, 0 32%); }
.cursor-frame b { font-size: .6875rem; font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink); background: var(--acid); white-space: nowrap; opacity: 0; transition: opacity .15s; position: absolute; left: 0; top: calc(100% + 6px); padding: .2rem .4rem; line-height: 1.2; }
.cursor.link .cursor-frame { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.cursor.link .cursor-frame b { opacity: 1; }
.cursor.down .cursor-dot { scale: 2.2; }
/* Scroll-linked motion: stills pan inside their frame, the poster rides against them. shortcut: CSS scroll timelines only, so Firefox shows them still; add a JS fallback if that matters. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .drift { overflow: clip; } /* hidden would make the frame its own scroller and freeze the timeline */
    .drift img { scale: 1.2; animation: drift linear both; animation-timeline: view(); }
    .title-body .poster { animation: ride linear both; animation-timeline: view(); }
    .reel { view-timeline: --reel; }
    .reel-a { animation: slide-a linear both; animation-timeline: --reel; }
    .reel-b { animation: slide-b linear both; animation-timeline: --reel; }
  }
}
@keyframes drift { from { translate: 0 -8%; } to { translate: 0 8%; } }
@keyframes ride { from { translate: 0 2.5rem; } to { translate: 0 -2.5rem; } }
.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule-on-ink); }
.pager a { padding: var(--s-3) 0 var(--s-5); text-decoration: none; }
.pager a + a { text-align: right; border-left: 1px solid var(--rule-on-ink); padding-left: var(--s-3); }
.pager b { display: block; margin-top: .5rem; font-size: var(--fs-card); }
.pager a:hover b { color: var(--acid); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 5fr); gap: var(--s-3); border-top: 1px solid; padding-top: .75rem; }
.about .prose { max-width: 34em; font-size: var(--fs-lede); line-height: 1.4; }
.prose p + p { margin-top: 1em; }
.principal { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-4) var(--gut); align-items: start; }
.principal h2 { font-size: var(--fs-h2); margin-bottom: var(--s-3); }
.portrait { aspect-ratio: 4 / 5; overflow: hidden; }
.principal .prose { max-width: 36em; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule-on-ink); padding: var(--s-4) var(--gut) var(--s-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); }
.site-foot .wordmark { font-size: 2rem; }
.site-foot ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-foot small { flex-basis: 100%; font-size: var(--fs-label); }

/* Share card: shot at 1200x630 by tools/shots.mjs into assets/og.png */
.og { width: 1200px; height: 630px; padding: 48px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--ink); }
.og b { font-size: 138px; white-space: nowrap; }
.og span { border-top: 1px solid var(--bone); padding-top: 14px; margin-top: 10px; font-size: 20px; }
.og i { position: absolute; top: 48px; left: 48px; width: 150px; height: 215px; background: var(--acid); }

.nf { min-height: 70svh; display: flex; flex-direction: column; justify-content: flex-end; }
.nf h1 { font-size: var(--fs-h1); }

/* 768 and up: wall thickens */
@media (min-width: 768px) {
  .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1440px) {
  .wall { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Below 768 the index stops being a table and becomes a credit roll: centred, one credit per beat. */
@media (max-width: 767px) {
  .hero h1 { font-size: 17.4vw; white-space: normal; line-height: .82; }
  .hero h1 span { display: block; white-space: nowrap; }
  .hero-meta { flex-direction: column; gap: .35rem; }
  .about { grid-template-columns: 1fr; }
  .index-cols { display: none; }
  .row > a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .55rem; padding: 2.5rem 0 2.25rem; position: relative; z-index: 1; }
  .row-n { display: none; }
  .row-t { font-size: clamp(3rem, 15vw, 5rem); }
  .row-y { font: inherit; letter-spacing: inherit; }
  .row-y::after { content: " \00B7  "; white-space: pre; }
  .row-meta { display: block; }
  /* Phones: the poster is cropped to the row itself, edge to edge between its two rules, so it never crosses them. */
  .frame { inset: 0 calc(-1 * var(--gut)); width: auto; aspect-ratio: auto; transform: none; z-index: 0; }
  .frame img { filter: brightness(.34); object-position: 50% 28%; }
  .frame .ph > * { visibility: hidden; }
  .jump { flex-direction: column; gap: .5rem; }
  .pipeline { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .title-body, .principal { grid-template-columns: 1fr; }
  .th { grid-template-columns: 1fr; gap: var(--s-3) 0; }
  .th h1 { font-size: var(--fs-h1); } .th h1.long { font-size: var(--fs-h2); }
  .th-col { border-left: 0; padding-left: 0; }
  .portrait { max-width: 78%; }
  .site-foot .wordmark { font-size: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { clip-path: none; }
  .hero video { display: none; }
}

/* Print: the credits page becomes a plain credit list on white. */
@media print {
  body { background: #fff; color: #000; font-size: 10pt; }
  .site-head .nav, .skip, .preview-bar, .chips, .card-art, .frame, .plate, .reel, .cursor, .site-foot ul, .pager, .hero-media, .jump { display: none !important; }
  .band, .band--bone, .band--ink { background: #fff !important; color: #000 !important; padding: 0 0 12pt; }
  .site-head, .site-foot { padding: 0 0 12pt; border: 0; }
  .dim, .band--bone .dim { color: #000; }
  .page-head h1 { font-size: 30pt; }
  .group h2 { font-size: 15pt; }
  .band-head { margin-bottom: 4pt; break-after: avoid; }
  .wall { display: block; }
  .card { break-inside: avoid; border-bottom: .5pt solid #000; }
  .card a { display: flex; justify-content: space-between; gap: 12pt; padding: 3pt 0; }
  .card-t { font-size: 11pt; line-height: 1.2; }
  .card-m { margin: 0; font-size: 8pt; }
  .tok { background: none; border: .5pt solid #000; }
  .js .reveal { clip-path: none; }
  .print-only { display: block; font-size: 8pt; margin-top: 4pt; }
}
