/* Almighty Guys, site v1. Paper and ink, one colour per team, Sofia Sans only (DIRECTION.md). */

/* ---- fonts: self-hosted Sofia Sans subsets (OFL) ---------------------------------------------- */

@font-face {
  font-family: "Sofia Sans Extra Condensed";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/sofia-xcond-900-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/sofia-xcond-900-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/sofia-xcond-900-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sofia Sans Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/sofia-cond-600-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sofia Sans Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/sofia-cond-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sofia Sans Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/sofia-cond-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sofia Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/sofia-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sofia Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/sofia-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sofia Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/sofia-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sofia Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/sofia-600-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sofia Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/sofia-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sofia Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/sofia-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- tokens -------------------------------------------------------------------------------- */

:root {
  --paper: #F2EDE4;
  --ink: #141312;
  --mute: #E4DDD0;
  --pad: clamp(14px, 1.4vw, 24px);
  --gap: clamp(8px, 0.8vw, 14px);
  --rule: 1.5px;
  /* Opening geometry. main.js mirrors these numbers (INTRO, OPEN, STRIP). */
  --intro: 34vw;
  --open: 62vw;
  --strip: 7vw;
  --f-display: "Sofia Sans Extra Condensed", "Arial Narrow", Impact, sans-serif;
  --f-label: "Sofia Sans Condensed", "Arial Narrow", sans-serif;
  --f-body: "Sofia Sans", system-ui, sans-serif;
  color-scheme: light;
}

/* ---- base ---------------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.45 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
::selection { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Lenis (from lenis 1.3.25 dist/lenis.css) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; z-index: 100; left: 8px; top: 8px;
  padding: 12px 16px; background: var(--ink); color: var(--paper);
  font: 600 14px/1 var(--f-label); text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.label {
  font: 600 13px/1.15 var(--f-label);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.link {
  display: inline-flex; align-items: center; gap: .25em;
  text-decoration: underline; text-decoration-thickness: var(--rule); text-underline-offset: .2em;
}
.link:hover { text-decoration-thickness: 3px; }
.link .icon { width: .9em; height: .9em; flex: none; }
.link--big {
  font: 900 clamp(40px, 5vw, 88px)/.86 var(--f-display);
  text-transform: uppercase; text-decoration: none;
}
.link--big:hover { text-decoration: underline; text-decoration-thickness: 4px; }

.icon { width: 24px; height: 24px; }

/* ---- the halo: a flat ring, always a stroke --------------------------------------------------- */

.halo { overflow: visible; }
.halo ellipse { stroke-width: var(--hs, 6); }
.halo--dot { width: 18px; --hs: 11; }
.halo--logo { width: 30px; --hs: 11; margin: 0 auto 4px; }
.halo--mark { width: 44%; --hs: 5; margin: 0 auto 5%; }
.halo--foot { width: 26%; --hs: 4; margin: 0 auto 2.5%; }
.halo--lost { width: min(46vw, 360px); --hs: 4; margin: 0 auto 3vw; }

.cursor {
  position: fixed; z-index: 60; left: 0; top: 0;
  width: 44px; margin: -34px 0 0 -22px;
  color: #fff; mix-blend-mode: difference;
  pointer-events: none; opacity: 0; transition: opacity .18s;
}
.cursor .halo { width: 100%; --hs: 8; }
.cursor.is-on { opacity: 1; }

/* ---- chips, dots, round buttons ------------------------------------------------------------ */

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: baseline; gap: .5em; max-width: 100%;
  padding: 6px 9px 5px;
  background: var(--c); color: var(--on);
  font: 600 13px/1.1 var(--f-label); text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap;
}
/* A chip on a panel of its own colour keeps a hairline so it does not dissolve. */
.chip--same { box-shadow: inset 0 0 0 var(--rule) currentColor; }
.chip__role {
  font: 400 13px/1.1 var(--f-body); text-transform: none; letter-spacing: 0;
  overflow: hidden; text-overflow: ellipsis;
}

.dots { display: inline-flex; gap: 4px; flex: none; }
.dots i {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 0 1px var(--ink);
}

.round {
  display: grid; place-items: center; flex: none;
  width: 58px; height: 58px; border-radius: 50%;
  border: var(--rule) solid currentColor;
  transition: background-color .2s, color .2s;
}
.round .icon { width: 24px; height: 24px; }

/* ---- header bar ------------------------------------------------------------------------------ */

.bar {
  position: fixed; z-index: 50; inset: 0 0 auto 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: var(--pad);
  pointer-events: none;
  transition: opacity .25s, visibility .25s;
}
.bar > * { pointer-events: auto; }
.bar__logo {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 12px 9px;
  background: var(--paper); color: var(--ink); text-decoration: none;
  font: 900 25px/.8 var(--f-display); text-transform: uppercase; white-space: nowrap;
}
.bar__nav { display: flex; background: var(--paper); }
.bar__link {
  padding: 13px 14px 12px;
  font: 600 14px/1 var(--f-label); text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none;
}
.bar__link:hover span, .bar__link[aria-current] span { text-decoration: underline; text-decoration-thickness: var(--rule); text-underline-offset: .25em; }
.bar--home:not(.is-shown) { opacity: 0; visibility: hidden; }

/* ---- home: the opening (vertical by default; .h switches on the horizontal track) ------------ */

.intro {
  display: flex; flex-direction: column; gap: 28px;
  min-height: 100svh;
  padding: var(--pad);
  background: var(--paper);
}
.intro__nav { display: flex; justify-content: space-between; gap: 12px; }
.intro__link {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 0;
  font: 600 15px/1 var(--f-label); text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none;
}
.intro__link:hover span { text-decoration: underline; text-decoration-thickness: var(--rule); text-underline-offset: .25em; }
.intro__mark { margin-block: auto; --wm: calc(100vw - 2 * var(--pad)); }
.wordmark {
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  line-height: .8; letter-spacing: 0;
}
/* Each line is set to the column width: 3.425 em and 1.799 em are the advance widths of
   ALMIGHTY and GUYS in Sofia Sans Extra Condensed Black. */
.wordmark__l1 { font-size: calc(var(--wm) / 3.425); }
.wordmark__l2 { font-size: calc(var(--wm) / 1.799); margin-top: .02em; }
.intro__line {
  max-width: 30ch; margin: 22px auto 0;
  font: 400 clamp(16px, 1.2vw, 20px)/1.35 var(--f-body);
  text-align: center; text-wrap: balance;
}
.intro__foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 12px; border-top: var(--rule) solid var(--ink);
  font: 600 14px/1.2 var(--f-label); letter-spacing: .02em;
}
.intro__foot li { display: flex; align-items: center; gap: 6px; }
.intro__foot i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

.panel {
  --t: 1;
  position: relative;
  display: grid; grid-template-areas: "media" "body";
  background: var(--bg); color: var(--fg);
}
.panel__media {
  grid-area: media;
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  background: color-mix(in srgb, var(--fg) 12%, var(--bg));
}
.m { width: 100%; height: 100%; object-fit: cover; }
.panel__body {
  grid-area: body;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto;
  gap: 14px 16px;
  min-height: 52vw;
  padding: var(--pad);
}
.panel__meta { grid-column: 1 / -1; padding-right: 3em; }
.panel__name {
  grid-column: 1 / -1; align-self: center;
  font: 900 clamp(56px, 15vw, 190px)/.82 var(--f-display); text-transform: uppercase;
  text-wrap: balance;
}
.panel__name a { text-decoration: none; }
.panel .chips { align-self: end; }
.panel .chip__role { max-width: 26ch; }
.panel .round { align-self: end; }
.panel__num { grid-area: body; justify-self: end; align-self: start; margin: var(--pad); }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.stretch:focus-visible { outline: none; }
.panel:has(.stretch:focus-visible) { outline: 3px solid var(--fg); outline-offset: -8px; }
.panel:hover .round { background: var(--fg); color: var(--bg); }
.panel--joint .panel__media { background: #26241f; }

.h .opening { height: 100vh; overflow: hidden; }
.h .track { display: flex; height: 100%; width: max-content; will-change: transform; }
.h .intro { flex: none; width: var(--intro); height: 100%; min-height: 0; }
.h .intro__mark { --wm: calc(var(--intro) - 2 * var(--pad)); }
.h .panel {
  display: flex; flex-direction: column; justify-content: flex-end;
  flex: none; width: var(--strip); height: 100%;
  overflow: hidden; --t: 0;
}
/* Widths at the first frame, before main.js takes over (same formula, scroll 0). */
.h .panel:nth-of-type(1) { width: 44.28vw; --t: .6778; }
.h .panel:nth-of-type(2) { width: 17.22vw; --t: .1858; }
.h .panel__media {
  position: absolute; left: 0; right: 0;
  /* The media grows upwards from the colour block's top edge, which stays at 58 % for every panel. */
  top: calc((1 - var(--t)) * 36%);
  height: calc(22% + var(--t) * 36%);
  aspect-ratio: auto;
}
.h .panel__body {
  flex: none; width: var(--open); height: 42%; min-height: 0;
  padding: 18px 20px 20px;
  opacity: clamp(0, calc((var(--t) - .25) * 2.5), 1);
}
.h .panel__name { font-size: min(8.2vw, 12vh); }
.h .panel .chips { padding-left: 52px; }
.h .panel__num { position: absolute; left: 20px; bottom: 20px; margin: 0; }

/* ---- home: more work ------------------------------------------------------------------------ */

.sec-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 18px 24px; margin-bottom: clamp(18px, 2vw, 32px);
}
.sec-title {
  font: 900 clamp(72px, 12vw, 220px)/.78 var(--f-display); text-transform: uppercase;
  margin-bottom: -.04em;
}
.more { padding: clamp(72px, 9vw, 160px) var(--pad) clamp(56px, 7vw, 120px); }

.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters[hidden] { display: none; }
.filter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 13px 9px;
  background: transparent; color: var(--ink);
  border: var(--rule) solid var(--ink); border-radius: 0;
  font: 600 14px/1 var(--f-label); text-transform: uppercase; letter-spacing: .04em;
  cursor: pointer;
}
.filter__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px var(--ink); }
.filter:hover { background: var(--mute); }
.filter[aria-pressed="true"] { background: var(--c, var(--ink)); color: var(--on, var(--paper)); }

.grid { --row: clamp(150px, 19vw, 380px); display: flex; flex-wrap: wrap; gap: calc(var(--gap) * 2.4) var(--gap); }
/* The last tile, "All projects", takes whatever the last row leaves. */
.tile.tile--all { flex: 999 1 clamp(220px, 24vw, 420px); display: flex; }
.all {
  flex: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  min-height: clamp(120px, 12vw, 220px); padding: clamp(14px, 1.4vw, 24px);
  background: var(--ink); color: var(--paper); text-decoration: none;
  font: 900 clamp(44px, 5vw, 96px)/.8 var(--f-display); text-transform: uppercase;
}
.all .icon { width: clamp(36px, 4vw, 72px); height: auto; flex: none; transition: transform .2s; }
.all:hover .icon { transform: translate(4px, -4px); }
.all:focus-visible { outline-offset: -6px; outline-color: var(--paper); }
.tile { flex: var(--r) 1 calc(var(--r) * var(--row)); min-width: 0; }
.tile[hidden] { display: none; }
.tile__link { display: block; text-decoration: none; }
.tile__media { display: block; aspect-ratio: var(--r); overflow: hidden; background: var(--mute); }
.tile__media .m { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.tile__link:hover .m { transform: scale(1.03); }
.tile__cap { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 9px; }
.tile__name { font: 600 15px/1.1 var(--f-label); text-transform: uppercase; letter-spacing: .04em; }
.tile__link:hover .tile__name { text-decoration: underline; text-decoration-thickness: var(--rule); text-underline-offset: .2em; }

/* ---- home: crew and clients ----------------------------------------------------------------- */

.crew { padding: 0 var(--pad) clamp(72px, 9vw, 160px); }
.crew__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.crew__link {
  display: flex; flex-direction: column; gap: 18px;
  min-height: min(66vh, 40vw);
  padding: 18px 20px 20px;
  background: var(--bg); color: var(--fg); text-decoration: none;
}
.crew__name { font: 900 clamp(52px, 6.6vw, 128px)/.8 var(--f-display); text-transform: uppercase; }
.crew__does { margin-top: auto; max-width: 17ch; font: 400 clamp(18px, 1.5vw, 24px)/1.2 var(--f-body); }
.crew__host {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 12px; border-top: var(--rule) solid currentColor;
}
.crew__host .icon { width: 22px; height: 22px; transition: transform .2s; }
.crew__link:hover .crew__host .icon { transform: translate(3px, -3px); }

.clients { padding: clamp(28px, 3vw, 44px) var(--pad) clamp(72px, 9vw, 160px); border-top: var(--rule) solid var(--ink); margin: 0 var(--pad); padding-inline: 0; }
.clients__run {
  margin-top: clamp(16px, 2vw, 28px);
  font: 900 clamp(40px, 5.6vw, 108px)/.94 var(--f-display);
  text-wrap: balance;
}
.clients__name { white-space: nowrap; }
.clients__sep { display: inline-block; width: .62em; margin: 0 .04em 0 .2em; vertical-align: .2em; }
.clients__sep .halo { width: 100%; --hs: 9; }

/* ---- contact and footer ---------------------------------------------------------------------- */

.contact {
  padding: clamp(72px, 9vw, 160px) var(--pad) var(--pad);
  background: var(--ink); color: var(--paper);
  box-shadow: inset 0 1px 0 rgba(242, 237, 228, .18);
  overflow: clip; /* the wordmark's descender space would otherwise hang below the page */
}
.contact__line { font: 900 clamp(72px, 12vw, 230px)/.8 var(--f-display); text-transform: uppercase; }
.contact__links {
  display: flex; flex-wrap: wrap; gap: 14px 48px;
  margin-top: clamp(28px, 3vw, 48px);
  font: 600 clamp(22px, 2.3vw, 40px)/1.1 var(--f-label);
}
.contact__handle { opacity: .7; }
.contact__mark { display: flex; flex-direction: column; align-items: center; margin-top: clamp(96px, 12vw, 220px); }
.contact__mark span {
  font: 900 calc((100vw - 2 * var(--pad)) / 5.4)/.78 var(--f-display);
  text-transform: uppercase; white-space: nowrap;
}

/* ---- work index ------------------------------------------------------------------------------ */

.p-work main, .p-lost main { padding-top: clamp(96px, 9vw, 140px); }
.index { padding: 0 var(--pad) clamp(72px, 9vw, 160px); }
.index__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 18px 24px; margin-bottom: clamp(20px, 2.4vw, 40px);
}
.index__title { font: 900 clamp(110px, 21vw, 400px)/.76 var(--f-display); text-transform: uppercase; margin-bottom: -.03em; }
.rows { border-bottom: var(--rule) solid var(--ink); }
.row[hidden] { display: none; }
.row__link {
  display: grid; align-items: center;
  grid-template-columns: 3.2em minmax(0, 6fr) minmax(0, 3fr) minmax(0, 4fr) 3.5em 4.5em;
  gap: 18px; padding: 14px 10px 12px;
  border-top: var(--rule) solid var(--ink); text-decoration: none;
  transition: background-color .15s;
}
.row__link:hover, .row__link:focus-visible { background: var(--bg); color: var(--fg); }
.row__link:hover .dots i { box-shadow: 0 0 0 1px currentColor; }
.row__name { font: 900 clamp(34px, 3.5vw, 64px)/.86 var(--f-display); text-transform: uppercase; }
.row__meta { display: contents; }
.row__client, .row__kind { font: 400 16px/1.25 var(--f-body); }
.row__year { font: 600 15px/1 var(--f-label); font-variant-numeric: tabular-nums; }
.row .dots { justify-self: end; }
.cover {
  position: fixed; z-index: 40; left: 0; top: 0;
  width: clamp(220px, 20vw, 340px); height: auto;
  pointer-events: none;
}
.cover[hidden] { display: none; }

/* ---- case page ------------------------------------------------------------------------------- */

.case__hero {
  position: relative; overflow: hidden;
  height: min(56.25vw, calc(100svh - 132px));
  background: var(--bg);
}
.case__hero--v { height: calc(100svh - 132px); display: flex; justify-content: center; }
.case__hero--v .m { width: auto; height: 100%; aspect-ratio: 9 / 16; }
.case__head {
  padding: clamp(22px, 2.4vw, 40px) var(--pad) clamp(40px, 5vw, 88px);
  background: var(--bg); color: var(--fg);
}
.case__title {
  font: 900 clamp(68px, 12.5vw, 250px)/.8 var(--f-display); text-transform: uppercase;
  text-wrap: balance; margin-bottom: clamp(28px, 4vw, 64px);
}
.case__facts { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(24px, 4vw, 72px); align-items: start; }
.facts__row {
  display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 16px;
  padding: 12px 0 11px; border-top: var(--rule) solid currentColor;
}
.facts dt { padding-top: 4px; }
.facts dd { font: 600 18px/1.3 var(--f-body); }
.credits { display: grid; gap: 8px; }
.credits li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.credits__role { font: 400 17px/1.3 var(--f-body); }
.case__line { font: 400 clamp(22px, 2.1vw, 34px)/1.2 var(--f-body); max-width: 24ch; text-wrap: pretty; }

.gallery { padding: clamp(40px, 5vw, 88px) 0; }
.strip {
  overflow-x: auto; overscroll-behavior-x: contain;
  padding: 0 var(--pad) 14px;
  scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
  cursor: grab;
}
.strip:focus-visible { outline-offset: -3px; }
.strip.is-drag { cursor: grabbing; user-select: none; }
.strip.is-drag * { pointer-events: none; }
.strip__list { display: flex; align-items: flex-end; gap: var(--gap); width: max-content; margin-inline: auto; }
.strip__tile {
  flex: none; overflow: hidden;
  height: min(66vh, calc(88vw / var(--r)));
  aspect-ratio: var(--r);
  background: var(--mute);
}
.strip__tile img { -webkit-user-drag: none; user-select: none; }

.film-sec { padding: clamp(28px, 4vw, 72px) var(--pad); background: var(--ink); color: var(--paper); }
.film { margin: 0 auto; max-width: min(100%, calc((100svh - 150px) * 16 / 9)); }
.film--v { max-width: min(100%, calc((100svh - 150px) * 9 / 16)); }
.film__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.film--v .film__frame { aspect-ratio: 9 / 16; }
.film__video { width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
.film__start {
  position: absolute; inset: 0; margin: auto;
  display: grid; place-items: center; align-content: center; gap: 4px;
  width: clamp(104px, 10vw, 150px); height: clamp(104px, 10vw, 150px); border-radius: 50%;
  border: 2px solid var(--paper); background: rgba(20, 19, 18, .35); color: var(--paper);
  font: 600 14px/1 var(--f-label); text-transform: uppercase; letter-spacing: .06em;
  cursor: pointer; transition: background-color .2s, color .2s;
}
.film__start .icon { width: 34px; height: 34px; margin-left: 4px; }
.film__start:hover { background: var(--paper); color: var(--ink); }
.film.is-started .film__start { display: none; }
.film__bar { display: flex; align-items: center; gap: 12px; padding-top: 12px; }
.film__btn {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: var(--rule) solid currentColor; background: transparent; cursor: pointer;
}
.film__btn:hover { background: var(--paper); color: var(--ink); }
.film__btn .icon { width: 20px; height: 20px; }
.film__btn .icon--pause, .film__btn .icon--muted { display: none; }
.film.is-playing [data-act="toggle"] .icon--play { display: none; }
.film.is-playing [data-act="toggle"] .icon--pause { display: block; }
.film.is-muted [data-act="mute"] .icon--sound { display: none; }
.film.is-muted [data-act="mute"] .icon--muted { display: block; }
.film__seek { flex: 1; min-width: 0; height: 44px; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.film__seek::-webkit-slider-runnable-track { height: 2px; background: rgba(242, 237, 228, .35); }
.film__seek::-moz-range-track { height: 2px; background: rgba(242, 237, 228, .35); }
.film__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6px; border-radius: 50%; background: var(--paper); border: 0; }
.film__seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 0; }
.film__time { min-width: 9ch; text-align: right; font-variant-numeric: tabular-nums; }

.case__links {
  display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 16px;
  margin: clamp(40px, 5vw, 80px) var(--pad); padding-top: 14px;
  border-top: var(--rule) solid var(--ink);
}
.case__links h2 { padding-top: 6px; }
.case__links ul { display: flex; flex-wrap: wrap; gap: 8px 36px; }
.case__links .link { font: 600 clamp(22px, 2vw, 32px)/1.2 var(--f-label); }
.film-sec + .case__links, .gallery + .case__links { margin-top: clamp(24px, 3vw, 48px); }

.next {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr;
  gap: 24px; min-height: min(72vh, 54vw);
  padding: var(--pad);
  background: var(--bg); color: var(--fg); text-decoration: none;
}
.next .label { grid-column: 1 / -1; }
.next__title { align-self: end; font: 900 clamp(72px, 13vw, 260px)/.8 var(--f-display); text-transform: uppercase; text-wrap: balance; }
.next .round { align-self: end; width: clamp(64px, 6vw, 96px); height: clamp(64px, 6vw, 96px); }
.next .round .icon { width: 40%; height: 40%; }
.next:hover .round { background: var(--fg); color: var(--bg); }
.next:focus-visible { outline: 3px solid var(--fg); outline-offset: -8px; }

/* ---- 404 --------------------------------------------------------------------------------------- */

.lost { min-height: 64vh; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 40px var(--pad) 96px; text-align: center; }
.lost__title { font: 900 clamp(140px, 26vw, 480px)/.76 var(--f-display); text-transform: uppercase; }
.lost__line { font: 400 clamp(18px, 1.6vw, 26px)/1.3 var(--f-body); }

/* ---- small screens ----------------------------------------------------------------------------- */

@media (max-width: 1023px) {
  .crew__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crew__link { min-height: min(96vw, 560px); }
  .case__facts { grid-template-columns: minmax(0, 1fr); }
  .row__link {
    grid-template-columns: 2.4em minmax(0, 1fr) auto;
    grid-template-areas: "num name dots" ". meta meta";
    gap: 6px 12px; padding: 12px 4px 11px;
  }
  .row__num { grid-area: num; }
  .row__name { grid-area: name; }
  .row .dots { grid-area: dots; }
  .row__meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 2px 12px; }
  .cover { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .intro__nav { justify-content: flex-start; gap: 22px; }
  .panel__body { min-height: 88vw; }
  .panel__name { font-size: clamp(52px, 16vw, 120px); }
  /* Phones: two columns; wide tiles take both, the rest share a row at 4:5. */
  .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 18px var(--gap); }
  .tile--wide, .tile.tile--all { grid-column: span 2; }
  .tile:not(.tile--wide) .tile__media { aspect-ratio: 4 / 5; }
  .tile__cap { align-items: flex-start; }
  .crew__link { padding: 14px; }
  .crew__name { font-size: clamp(40px, 12vw, 72px); }
  .crew__does { font-size: 16px; }
  .crew__host { font-size: 11px; }
  .bar__logo { font-size: 20px; padding: 7px 9px 8px; }
  .halo--logo { width: 24px; }
  .bar__link { padding: 11px 9px 10px; font-size: 13px; }
  .facts__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .case__links { grid-template-columns: minmax(0, 1fr); }
  .contact__links { flex-direction: column; }
  .film__time { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
