:root {
  --bg: #0a0a0a;
  --fg: #f2f0eb;
  --dim: #8d8a84;
  --line: #242424;
  --accent: #e8ff3a;
  --gutter: clamp(16px, 2.4vw, 32px);
  --max: 1320px;
  --top-h: 58px; /* header height; strips are sized so three fill the rest of the screen */
  --sans: "Helvetica Neue", Helvetica, "Arial Nova", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); color-scheme: dark; scroll-padding-top: var(--top-h); }

/* Nothing may make the page wider than the screen, so it cannot be dragged sideways on a phone. */
html, body { max-width: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: var(--gutter); top: 8px;
  background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 20;
  clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; padding: 0;
}
.skip:focus { clip-path: none; width: auto; height: auto; padding: 8px 12px; }

/* ---------- Header ---------- */

.top {
  position: sticky; top: 0; z-index: 10;
  height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.brand-name { margin: 0; line-height: inherit; font-size: 17px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.brand-role { font-size: 13px; color: var(--dim); letter-spacing: 0.04em; }

.nav { display: flex; gap: 26px; }
.nav a {
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); padding: 6px 0; transition: color .15s;
}
.nav a:hover, .nav a.is-current { color: var(--fg); }

/* ---------- Work strips: three per screen ---------- */

.work { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.strip {
  position: relative; display: block; width: 100%;
  height: calc((100vh - var(--top-h)) / 3);
  /* svh, not dvh: the height must not change as a phone's toolbar slides away, or the page jumps mid-scroll. */
  height: calc((100svh - var(--top-h)) / 3);
  min-height: 170px;
  overflow: hidden; background: #111;
  border-bottom: 3px solid var(--bg);
}

.strip img, .strip video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% var(--focus, 40%);
}
.strip img { transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.strip video { opacity: 0; transition: opacity .35s; }
.strip.is-previewing video { opacity: 1; }

.strip::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.3) 42%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.strip-text {
  position: absolute; left: clamp(14px, 2.2vw, 28px); right: clamp(14px, 2.2vw, 28px);
  bottom: clamp(12px, 1.6vw, 20px); z-index: 1;
}
.strip-title {
  margin: 0;
  font-size: clamp(19px, 2.7vw, 36px); font-weight: 700; line-height: 1.05;
  letter-spacing: 0.02em; text-transform: uppercase; text-wrap: balance;
  transition: color .15s;
}
.strip-title .client { font-weight: 300; }
.strip-credit { margin: 6px 0 0; font-size: 13px; letter-spacing: 0.04em; color: rgba(242,240,235,.82); }

.strip-play {
  position: absolute; top: clamp(12px, 1.6vw, 20px); right: clamp(14px, 2.2vw, 28px); z-index: 1;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s;
}

/* On a phone there is no hover: the film whose preview is playing takes the highlight colour instead. */
.strip.is-previewing .strip-title { color: var(--accent); }

@media (hover: hover) {
  .strip:hover img { transform: scale(1.025); }
  .strip:hover .strip-title, .strip:focus-visible .strip-title { color: var(--accent); }
  .strip:hover .strip-play, .strip:focus-visible .strip-play { opacity: 1; transform: none; }
}

/* ---------- Text sections ---------- */

.block {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 9vw, 120px) var(--gutter) 0;
}
.label {
  margin: 0 0 clamp(20px, 3vw, 36px); padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
}

.prose { max-width: 62ch; }
.prose p { margin: 0 0 1.1em; font-size: 16px; line-height: 1.6; color: rgba(242,240,235,.86); text-wrap: pretty; }
.prose-lead { max-width: 58ch; }
.prose-lead p { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.5; color: var(--fg); }

.press-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(24px, 5vw, 80px); }
.press-title {
  margin: 0; font-size: clamp(26px, 3.6vw, 48px); font-weight: 700; line-height: 1.02;
  letter-spacing: 0.01em; text-transform: uppercase; text-wrap: balance;
}
/* Press items have no left-hand heading; they sit in the text column, in line with the biography. */
@media (min-width: 701px) { .press-main { grid-column: 2; } }
.press-meta { margin: 14px 0 0; font-size: 12px; letter-spacing: 0.06em; color: var(--dim); }

.press-item { margin-top: clamp(48px, 7vw, 96px); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.press-figure { margin: 0; }
.press-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.press-figure figcaption { margin-top: 10px; font-size: 12px; letter-spacing: 0.06em; color: var(--dim); }

.prose blockquote { margin: 1.6em 0; padding-left: 18px; border-left: 2px solid var(--accent); }
.prose blockquote p { margin: 0; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; color: var(--fg); }
.prose cite { display: block; margin-top: 8px; font-style: normal; font-size: 12px; letter-spacing: 0.06em; color: var(--dim); }

.more { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.more:hover { color: var(--accent); border-bottom-color: var(--accent); }

.contacts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 56px); }
.contacts dt { font-size: 12px; letter-spacing: 0.06em; color: var(--dim); margin-bottom: 6px; }
.contacts dd { margin: 0; font-size: clamp(16px, 1.5vw, 19px); overflow-wrap: anywhere; }
.contacts a { border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .15s, border-color .15s; }
.contacts a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.collab {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.collab-item {
  display: flex; align-items: center; justify-content: center;
  min-height: clamp(84px, 9vw, 128px); padding: 16px;
  font-size: clamp(13px, 1.5vw, 19px); font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; text-align: center; text-wrap: balance;
}
.collab-item img {
  max-width: min(62%, 240px); max-height: clamp(34px, 4.2vw, 58px); width: auto; height: auto;
  filter: brightness(0) invert(1); opacity: .92;
}
.collab-item img.tone-asis { filter: none; }
.collab-item img.tone-invert { filter: invert(1); mix-blend-mode: screen; opacity: 1; }

/* ---------- Footer ---------- */

.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--gutter) 36px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
}
.foot a:hover { color: var(--fg); }

/* ---------- Player ---------- */

.player {
  width: 100%; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: #000; color: var(--fg);
}
.player[open] { display: flex; flex-direction: column; }
.player::backdrop { background: #000; }

.player-bar, .player-nav {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px var(--gutter);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}
.player-title { margin: 0; }
.player-title .client { color: var(--dim); }
.player-bar button, .player-nav button { color: var(--dim); padding: 6px 0; transition: color .15s; }
.player-bar button:hover, .player-nav button:hover { color: var(--accent); }

.player-stage {
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 var(--gutter);
}
.player-stage video { max-width: 100%; max-height: 100%; width: auto; height: auto; background: #000; }

.noscript { padding: 40px var(--gutter); color: var(--dim); }

/* ---------- Small screens ---------- */

@media (max-width: 700px) {
  :root { --top-h: 84px; }
  .top { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
  .brand-name { font-size: 15px; }
  .nav { gap: 4px 14px; flex-wrap: wrap; }
  .nav a { letter-spacing: 0.12em; }
  .collab { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work { padding: 0; }
  .strip { border-bottom-width: 2px; }
  .press-grid { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; gap: 22px; }
  .player-stage { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .strip img, .strip video, .strip-play, .strip-title { transition: none; }
  .strip:hover img { transform: none; }
}
