/* ==========================================================================
   A THING BY — design system
   Black ground, Big Shoulders Display for headlines (condensed, poster-weight,
   always uppercase), Schibsted Grotesk for everything else, full-bleed video.
   ========================================================================== */

:root {
  --ink:        #000000;
  --ink-2:      #0A0A0A;
  --ink-3:      #121212;
  --paper:      #EFEDE8;
  --paper-dim:  #A5A29B;
  --paper-faint:#6E6B65;
  --line:       rgba(239, 237, 232, 0.14);
  --line-soft:  rgba(239, 237, 232, 0.08);
  --accent:     #EFEDE8;

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --text: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --max: 1560px;
  --rule: 1px solid var(--line);

  /* Micro-label: the signature of the whole layout. */
  --label-size: 0.625rem;      /* 10px */
  --label-track: 0.1em;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, video { display: block; max-width: 100%; }

/* Must beat any component `display` declaration. */
[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection { background: var(--paper); color: var(--ink); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
}
.skip:focus { left: 1rem; top: 1rem; }

/* --------------------------------------------------------------------------
   Type primitives
   -------------------------------------------------------------------------- */

.label {
  font-family: var(--text);
  font-size: var(--label-size);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  line-height: 1;
  color: var(--paper-dim);
}

.label--bright { color: var(--paper); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 0.95em;
  border: var(--rule);
  border-radius: 999px;
  font-family: var(--text);
  font-weight: 600;
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  color: var(--paper);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

a.pill:hover, button.pill:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.display {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}

/* The face has no italic. Emphasis is drawn in outline instead. */
.display em,
.opener__type em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: max(1px, 0.022em) var(--paper);
}

.display--xl { font-size: clamp(3.5rem, 11vw, 10rem); }
.display--lg { font-size: clamp(2.9rem, 7.4vw, 6.75rem); }
.display--md { font-size: clamp(2.2rem, 4.2vw, 3.75rem); }

.lede {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--paper-dim);
  max-width: 46ch;
  margin: 0;
}

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

.section {
  padding-block: clamp(5rem, 12vh, 11rem);
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: var(--rule);
}

.section__head .label { flex: 0 0 auto; }
.section__count { margin-left: auto; }

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

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2.2vw, 1.6rem) var(--gutter);
  mix-blend-mode: normal;
  transition: transform 0.45s var(--ease), background 0.45s var(--ease), border-color 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}

/* The bar itself stays transparent at every scroll position. The pills carry
   their own translucent backing, so the nav stays legible over imagery without
   painting a black band across the top of the page. */
.masthead.is-stuck {
  background: transparent;
  border-bottom-color: transparent;
}

.masthead.is-hidden { transform: translateY(-102%); }

.wordmark {
  /* The logo stays in Helvetica Neue Bold, whatever the site's type does. */
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* No bar behind it any more, so carry a little shadow for bright frames. */
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.15vw, 1.05rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Keep Work reachable on small screens; only Studio folds away. */
@media (max-width: 560px) {
  .masthead__nav .pill--secondary { display: none; }
  .masthead__nav { gap: 0.35rem; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero__stage {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--ink-2);
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}

.hero__slide.is-active { opacity: 1; }

.hero__slide img,
.hero__slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slight desaturation keeps wildly different source footage feeling like one site. */
  filter: saturate(0.88) contrast(1.04);
}

.hero__slide video { position: absolute; inset: 0; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 45%, transparent 70%),
    linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.45) 30%, rgba(0,0,0,0.2) 62%, rgba(0,0,0,0.6) 100%),
    radial-gradient(120% 80% at 50% 100%, rgba(0,0,0,0.5), transparent 60%);
  pointer-events: none;
}

.hero__body {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(6rem, 14vh, 9rem) var(--gutter) clamp(2rem, 5vh, 3.5rem);
  display: grid;
}

/* Panes share one grid cell so the hero never jumps between slides. The title
   sits centred on the left; credits keep to the bottom right. */
.hero__pane {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), visibility 0.7s;
  pointer-events: none;
}

.hero__pane.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .hero__pane { transition: opacity 0.2s linear, visibility 0.2s; transform: none; }
}

.hero__lockup { grid-column: 1; grid-row: 1; align-self: center; min-width: 0; }

.hero__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.hero__meta .label { color: var(--paper); }

.hero__rule {
  width: clamp(1.5rem, 4vw, 4rem);
  height: 1px;
  background: var(--line);
}

.hero__name {
  max-width: 12ch;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.25rem, 8.6vw, 8.5rem);
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
  text-shadow: 0 0 50px rgba(0, 0, 0, 0.25);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.7rem;
  margin: 1.4rem 0 1.8rem;
  line-height: 1.3;
}

.hero__sep { color: var(--paper-faint); }

.hero__subname {
  display: block;
  max-width: 22ch;
  margin-top: 0.2em;
  font-size: 0.42em;
  font-weight: 800;
  line-height: 0.95;
}

.hero__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.hero__credits {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: right;
  padding-bottom: 0.4rem;
}

.hero__credits .label { color: var(--paper-faint); }
.hero__credits li { color: var(--paper-dim); }

.hero__credits ul {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  font-family: var(--text);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  line-height: 1.85;
}

@media (max-width: 900px) {
  .hero__pane { grid-template-columns: 1fr; }
  .hero__credits { grid-column: 1; text-align: left; }
}

.hero__ticker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem var(--gutter);
  border-top: var(--rule);
  max-width: var(--max);
  margin-inline: auto;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.hero__ticker::-webkit-scrollbar { display: none; }

.hero__dot {
  position: relative;
  flex: 0 0 auto;
  padding: 0.55rem 0;
  font-family: var(--text);
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--paper-faint);
  transition: color 0.4s var(--ease);
  white-space: nowrap;
}

.hero__dot::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--paper);
}

.hero__dot:hover { color: var(--paper-dim); }
.hero__dot.is-active { color: var(--paper); }
.hero__dot.is-active::after { width: 100%; }

.hero__dot.is-active.is-timing::after {
  animation: sweep var(--hero-dwell, 7s) linear forwards;
}

@keyframes sweep { from { width: 0; } to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .hero__dot.is-active.is-timing::after { animation: none; width: 100%; }
}

/* --------------------------------------------------------------------------
   Opener: the statement the site opens on, set over a full-screen reel.
   A see-through copy of the text is there from the start; the solid white
   words then type onto it one at a time.
   -------------------------------------------------------------------------- */

.opener {
  --op: 0;                        /* 0 → 1 as the page scrolls past it */
  position: relative;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.opener__media { position: absolute; inset: 0; z-index: 0; background: var(--ink-3); }

.opener__media img,
.opener__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
}

/* Enough shade for white type over any frame, light enough to see the film. */
.opener__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 30%, rgba(0,0,0,0.3) 65%, rgba(0,0,0,0.7) 100%),
    rgba(0,0,0,0.12);
}

.opener__type {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4.5rem, 11vh, 7rem) var(--gutter) clamp(4.5rem, 11vh, 6.5rem);
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.84;
  letter-spacing: -0.01em;
  /* Sized per line by site.js to fill the width; this is the no-JS fallback. */
  font-size: clamp(3.5rem, 14vw, 13rem);
  pointer-events: none;
}

.opener__type--ghost {
  color: rgba(239, 237, 232, 0.2);
  transition: opacity 0.9s var(--ease);
}

.opener__type--solid {
  z-index: 2;
  color: var(--paper);
  text-shadow: 0 0 60px rgba(0, 0, 0, 0.25);
}

.opener__line {
  display: block;
  text-align: left;
  white-space: nowrap;
  transform: translate3d(calc(var(--op) * var(--dir, 1) * 16vw), 0, 0);
  will-change: transform;
}

/* When the lines are held back by the screen's height they no longer fill the
   width, so alternate sides: the block crosses the frame instead of hugging
   the left edge. */
.opener__line:nth-child(even) { text-align: right; }

.opener__ink { display: inline-block; }
.opener__word { display: inline-block; }

/* Held until the lines are measured; then the ghost fades up and the solid
   words land one after another, like keys striking. */
html:not(.no-js) .opener:not(.is-set) .opener__type--ghost { opacity: 0; }
html:not(.no-js) .opener__type--solid .opener__word { opacity: 0; transform: translate3d(0, 0.04em, 0); }

.opener.is-set .opener__type--solid .opener__word {
  opacity: 1;
  transform: none;
  transition: opacity 0.14s linear, transform 0.3s var(--ease);
  transition-delay: calc(0.6s + var(--w, 0) * 0.26s);
}

.opener__foot {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem var(--gutter);
  border-top: var(--rule);
  opacity: calc(1 - var(--op) * 2.5);
}

.opener__cue { display: inline-flex; align-items: center; gap: 0.55em; }
.opener__cue span { display: inline-block; animation: nudge 2.2s var(--ease) infinite; }

@keyframes nudge {
  0%, 100% { transform: translateY(-1px); }
  50% { transform: translateY(3px); }
}

@media (max-width: 700px) {
  .opener__disciplines { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .opener__line { transform: none; }
  .opener__cue span { animation: none; }
  html:not(.no-js) .opener__type--solid .opener__word,
  .opener.is-set .opener__type--solid .opener__word { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   What we do: a sticky lead on the left, one big row per discipline on the
   right. On a desktop a preview of the work follows the pointer down the list.
   -------------------------------------------------------------------------- */

.wwd {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}

.wwd__lead { position: sticky; top: clamp(5.5rem, 14vh, 8.5rem); }

.wwd__intro {
  margin: 1.75rem 0 0;
  max-width: 42ch;
  color: var(--paper-dim);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.6;
}

.wwd__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }

.wwd__list { list-style: none; margin: 0; padding: 0; border-top: var(--rule); }
.wwd__item { border-bottom: var(--rule); }

.wwd__row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  grid-template-areas:
    "num title   mini"
    ".   line    line"
    ".   thumb   thumb"
    ".   clients go";
  column-gap: 1rem;
  row-gap: 1rem;
  align-items: baseline;
  padding: clamp(1.75rem, 3.4vw, 3rem) 0;
  transition: opacity 0.5s var(--ease);
}

.wwd__num { grid-area: num; color: var(--paper-faint); }
/* Film count rides on the title like a footnote mark. */
.wwd__count {
  display: inline-block;
  vertical-align: top;
  margin-left: 0.6rem;
  font-size: var(--label-size);
  line-height: 1;
  color: var(--paper-faint);
  transform: translateY(0.9em);
}

.wwd__title {
  grid-area: title;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.9rem, 5.8vw, 6.25rem);
  line-height: 0.84;
  text-transform: uppercase;
  transition: transform 0.7s var(--ease), color 0.5s var(--ease);
}

.wwd__line {
  grid-area: line;
  max-width: 48ch;
  color: var(--paper-dim);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.55;
}

.wwd__clients { grid-area: clients; color: var(--paper-faint); line-height: 1.6; }

.wwd__go {
  grid-area: go;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  white-space: nowrap;
}

.wwd__arrow { display: inline-block; transition: transform 0.5s var(--ease); }

.wwd__thumb { grid-area: thumb; display: none; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-3); }

/* The hint above the list, with a pulse so it reads as live. */
.wwd__hint {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.25rem;
  color: var(--paper-dim);
  line-height: 1.4;
}
.wwd__hint-touch { display: none; }
.wwd__pulse {
  position: relative;
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--paper);
}
.wwd__pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--paper);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(3.2); opacity: 0; }
}

/* A small frame on every row: there is footage behind this. It hands over to
   the full preview that follows the pointer. */
.wwd__mini {
  grid-area: mini;
  align-self: center;
  position: relative;
  width: clamp(4.5rem, 7vw, 7rem);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: var(--rule);
  background: var(--ink-3);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.wwd__mini img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; filter: grayscale(0.4); }
.wwd__mini-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.4rem 0 0.4rem 0.65rem;
  border-color: transparent transparent transparent var(--paper);
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.6));
}
.wwd__thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (hover: hover) and (pointer: fine) {
  .wwd__list:hover .wwd__row:not(:hover) { opacity: 0.3; }
  .wwd__row:hover .wwd__title { transform: translateX(0.1em); }
  .wwd__row .wwd__go { opacity: 0; transform: translateX(-0.5rem); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
  .wwd__row:hover .wwd__go,
  .wwd__row:focus-visible .wwd__go { opacity: 1; transform: none; }
  .wwd__row:hover .wwd__arrow { transform: translateX(0.3em); }
  .wwd__row:hover .wwd__mini { opacity: 0; transform: scale(0.9); }
}

/* No pointer to follow: show the still inline instead. */
@media (hover: none), (max-width: 900px) {
  .wwd__thumb { display: block; }
  .wwd__mini { display: none; }
  .wwd__hint-fine { display: none; }
  .wwd__hint-touch { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .wwd__pulse::after { animation: none; display: none; }
}

@media (max-width: 900px) {
  .wwd { grid-template-columns: 1fr; }
  .wwd__lead { position: static; }
}

@media (max-width: 520px) {
  .wwd__row {
    grid-template-columns: 2rem minmax(0, 1fr);
    grid-template-areas:
      "num   title"
      ".     line"
      ".     thumb"
      ".     clients"
      ".     go";
    row-gap: 0.8rem;
  }
}

.peek--wwd { width: clamp(260px, 24vw, 380px); z-index: 70; }

/* --------------------------------------------------------------------------
   Statement
   -------------------------------------------------------------------------- */

.statement__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

@media (max-width: 900px) {
  .statement__grid { grid-template-columns: 1fr; }
}

.statement__body {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding-top: 0.75rem;
}

.statement__body p {
  margin: 0;
  color: var(--paper-dim);
  font-size: clamp(0.95rem, 1.15vw, 1.075rem);
  line-height: 1.62;
  max-width: 44ch;
}

/* Numbers strip */

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: var(--rule);
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

.figure {
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-bottom: var(--rule);
}

.figure + .figure { border-left: var(--rule); padding-left: clamp(1.25rem, 2.5vw, 2.25rem); }

@media (max-width: 640px) {
  .figure + .figure { border-left: 0; padding-left: 0; }
}

.figure__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.25rem, 6.2vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: 0;
  margin: 0 0 0.6rem;
  font-variant-numeric: tabular-nums;
}

.figure__cap { color: var(--paper-faint); max-width: 26ch; line-height: 1.45; }

/* Client / press marquee */

.marquee {
  overflow: hidden;
  border-block: var(--rule);
  padding-block: clamp(1.25rem, 2.5vw, 2rem);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  gap: clamp(2.5rem, 6vw, 5rem);
  width: max-content;
  animation: drift 42s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; }
}



/* --------------------------------------------------------------------------
   Work index
   -------------------------------------------------------------------------- */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.filters,
.tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter[aria-pressed="true"] {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.filter__n {
  font-size: 0.85em;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: clamp(1.75rem, 3vw, 3rem) clamp(1.25rem, 2vw, 2rem);
}

.card {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  min-width: 0;
}

.card[hidden] { display: none; }


.card__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-3);
  border: var(--rule);
}

.card__frame img,
.card__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.03);
  transition: transform 1.2s var(--ease), opacity 0.5s var(--ease), filter 0.6s var(--ease);
}

.card__frame video { opacity: 0; }
.card.is-playing .card__frame video { opacity: 1; }
.card.is-playing .card__frame img { opacity: 0; }

.card:hover .card__frame img,
.card:hover .card__frame video,
.card:focus-visible .card__frame img,
.card:focus-visible .card__frame video {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.03);
}

.card__badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 2;
}

.card__play {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.card:hover .card__play,
.card:focus-visible .card__play { opacity: 1; transform: none; }

.card__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 45%);
  opacity: 0.9;
  pointer-events: none;
}

.card__meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-top: 0.9rem;
}

.card__meta .card__year { margin-left: auto; color: var(--paper-faint); font-variant-numeric: tabular-nums; }

.card__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0.45rem 0 0;
}

.card__client {
  margin: 0.3rem 0 0;
  font-size: 0.875rem;
  color: var(--paper-dim);
  letter-spacing: -0.01em;
}


.grid__empty {
  padding: 4rem 0;
  color: var(--paper-faint);
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}

@media (max-width: 860px) {
  .contact__inner { grid-template-columns: 1fr; align-items: start; }
}

.contact__mail {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 4.25rem);
  letter-spacing: 0;
  line-height: 1.1;
  margin-top: 1.5rem;
  background-image: linear-gradient(var(--paper), var(--paper));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size 0.5s var(--ease);
  word-break: break-word;
}

.contact__mail:hover { background-size: 0 1px; }

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

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

.colophon {
  border-top: var(--rule);
  padding-block: 2rem 2.5rem;
}

.colophon__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.colophon .label { color: var(--paper-faint); }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  /* Clear the control bar pinned along the top. */
  padding-top: clamp(4rem, 9vh, 5.5rem);
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  /* visibility flips instantly on open (so focus can land immediately) and only
     after the fade on close (so the panel doesn't vanish mid-transition). */
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0s;
}

.lightbox__panel {
  width: min(1200px, 100%);
  max-height: 100%;
  overflow-y: auto;
  transform: translateY(12px) scale(0.99);
  transition: transform 0.45s var(--ease);
}

.lightbox.is-open .lightbox__panel { transform: none; }

.lightbox__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  /* Constrain by viewport height so the frame stays exactly 16:9 rather than
     letterboxing the embed, and title + credits stay visible. */
  width: min(100%, calc(62vh * 16 / 9));
  margin-inline: auto;
  background: var(--ink-3) center / cover no-repeat;
  border: var(--rule);
}

@supports (height: 1svh) {
  .lightbox__frame { width: min(100%, calc(62svh * 16 / 9)); }
}

.lightbox__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox__info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  padding-top: 1.5rem;
}

@media (max-width: 800px) {
  .lightbox__info { grid-template-columns: 1fr; }
}

.lightbox__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  letter-spacing: 0;
  line-height: 0.92;
  text-transform: uppercase;
  margin: 0.6rem 0 0.4rem;
}

.lightbox__client { color: var(--paper-dim); margin: 0 0 1rem; }

.lightbox__desc {
  color: var(--paper-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  max-width: 62ch;
}

.lightbox__credits {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  font-family: var(--text);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  line-height: 1.95;
  color: var(--paper-dim);
}

.lightbox__bar {
  position: fixed;
  top: clamp(0.75rem, 2.4vw, 1.5rem);
  right: clamp(1rem, 3vw, 2rem);
  left: clamp(1rem, 3vw, 2rem);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.lightbox__count {
  margin-right: auto;
  color: var(--paper-dim);
  font-variant-numeric: tabular-nums;
}

.lightbox__unavailable {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--paper-faint);
}

/* noscript / no-JS fallback: show everything, no filtering */
.no-js .filters { display: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Works whose source upload is gone: a typographic plate, not a broken thumbnail. */
.card__plate {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 2rem;
  text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(239,237,232,0.035) 0 1px, transparent 1px 9px),
    var(--ink-3);
}

.card__plate-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--paper-faint);
  transition: color var(--dur) var(--ease);
}

.card__plate-sub {
  display: block;
  margin-top: 0.9rem;
  color: var(--paper-faint);
}

.card.is-plate:hover .card__plate-title,
.card.is-plate:focus-visible .card__plate-title { color: var(--paper); }

/* Dashed edge marks "no longer online"; posterMode:'plate' keeps the solid rule. */
.card.is-archive .card__frame { border-style: dashed; }
.card.is-archive .card__plate-title { color: var(--paper-faint); }
.card.is-plate:not(.is-archive) .card__plate-title { color: var(--paper-dim); }

/* Long-tail music videos sit quieter than the documentary and top-tier work,
   and come forward on hover. */
.card.is-minor .card__frame img { opacity: 0.62; filter: saturate(0.6) contrast(1.02); }
.card.is-minor:hover .card__frame img,
.card.is-minor:focus-visible .card__frame img { opacity: 1; filter: saturate(1) contrast(1.03); }
.card.is-minor .card__client { color: var(--paper-faint); }

/* --------------------------------------------------------------------------
   Client marquee — logos when supplied, wordmarks until then
   -------------------------------------------------------------------------- */

.marquee__item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  opacity: 0.55;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.marquee__item:hover,
.marquee__item:focus-visible { opacity: 1; transform: translateY(-2px); }

.marquee__item img {
  height: clamp(22px, 2.4vw, 34px);
  width: auto;
  object-fit: contain;
  /* Client logos arrive in every colour; flatten them to the page's palette. */
  filter: brightness(0) invert(1);
}

/* Wordmark fallback: a client wall, not body copy. */
.marquee__word {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--paper);
}


/* ==========================================================================
   Interaction layer
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Reading progress: a hairline along the very top. */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 95;
  height: 2px;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ------------------------------------------------- headlines rise by word */

.reveal--words { opacity: 1; transform: none; }

.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* Room for descenders and italic overhang inside the clip. */
  padding: 0.06em 0.06em 0.14em;
  margin: -0.06em -0.06em -0.14em;
}

.w__i {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--i) * 55ms);
}

.reveal--words.is-in .w__i,
.no-js .w__i { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .w__i { transform: none; transition: none; }
}

/* ------------------------------------------- hero: depth, lean and counter */

.hero__stage {
  transform: translate3d(0, calc(var(--scroll, 0) * 14%), 0);
}

.hero__slide img,
.hero__slide video {
  /* Slightly oversized so the lean toward the pointer never shows an edge. */
  transform: scale(1.05) translate3d(calc(var(--px, 0) * -0.9%), calc(var(--py, 0) * -0.9%), 0);
}

.hero__body {
  opacity: calc(1 - var(--scroll, 0) * 1.5);
  transform: translate3d(0, calc(var(--scroll, 0) * -36px), 0);
}

.hero__count {
  margin-left: auto;
  padding-left: 1.5rem;
  flex: 0 0 auto;
  color: var(--paper-dim);
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------- search, tools */

.search {
  padding: 0;
  cursor: text;
}

.search input {
  width: 13.5rem;
  max-width: 62vw;
  padding: 0.62em 1em;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--paper);
  font-family: var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1;
  outline: none;
  transition: width 0.5s var(--ease);
}

.search input::placeholder {
  color: var(--paper-faint);
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
}

.search input:focus { width: 17rem; }
.search:focus-within { border-color: var(--paper); }
.search input::-webkit-search-cancel-button { filter: invert(1) grayscale(1); cursor: pointer; }

/* iOS zooms the page on inputs under 16px. */
@media (hover: none) {
  .search input { font-size: 16px; letter-spacing: 0; }
}

.segment { display: inline-flex; }
.segment .pill:first-child { border-radius: 999px 0 0 999px; }
.segment .pill:last-child { border-radius: 0 999px 999px 0; margin-left: -1px; }

.view[aria-pressed="true"] {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

/* ------------------------------------------------------------ index layout */

.grid { counter-reset: film; }
.card { counter-increment: film; }

.grid.is-index {
  display: block;
  border-top: var(--rule);
}

.grid.is-index .card {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.8fr) 3.5rem;
  grid-template-areas: "n title client kicker year";
  align-items: baseline;
  gap: 0 1.5rem;
  padding: 1.05rem 0;
  border-bottom: var(--rule);
  transition: padding 0.5s var(--ease), background 0.5s var(--ease), opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.grid.is-index .card[hidden] { display: none; }

.grid.is-index .card::before {
  grid-area: n;
  content: counter(film, decimal-leading-zero);
  font-family: var(--text);
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
  color: var(--paper-faint);
}

.grid.is-index .card__frame { display: none; }
.grid.is-index .card__meta { display: contents; }
.grid.is-index .card__kicker { grid-area: kicker; }
.grid.is-index .card__year { grid-area: year; margin: 0; text-align: right; }

.grid.is-index .card__title {
  grid-area: title;
  margin: 0;
  font-size: clamp(1.25rem, 2.1vw, 1.9rem);
}

.grid.is-index .card__client {
  grid-area: client;
  margin: 0;
}

.grid.is-index .card:hover,
.grid.is-index .card:focus-visible {
  padding-left: 0.9rem;
  background: linear-gradient(to right, rgba(239, 237, 232, 0.05), transparent 70%);
}

/* A whole row dims when it is not the one being read. */
.grid.is-index:hover .card:not(:hover) .card__title { color: var(--paper-faint); }
.grid.is-index .card__title { transition: color 0.4s var(--ease); }

@media (max-width: 760px) {
  .grid.is-index .card {
    grid-template-columns: 2.25rem minmax(0, 1fr) auto;
    grid-template-areas:
      "n title  year"
      ". client client";
    gap: 0.2rem 0.75rem;
  }
  .grid.is-index .card__kicker { display: none; }
}

/* The still that follows the pointer down the index. */
.peek {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: clamp(240px, 26vw, 400px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-3);
  pointer-events: none;
  clip-path: inset(50% 0 50% 0);
  transition: clip-path 0.5s var(--ease);
  will-change: transform;
}

.peek.is-on { clip-path: inset(0); }

.peek img,
.peek video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------- pointer label */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 150;
  pointer-events: none;
  will-change: transform;
}

.cursor__dot {
  display: grid;
  place-items: center;
  width: 5.25rem;
  height: 5.25rem;
  margin: -2.625rem 0 0 -2.625rem;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  transform: scale(0);
  transition: transform 0.4s var(--ease);
}

.cursor.is-on .cursor__dot { transform: scale(1); }
.cursor.is-on.is-down .cursor__dot { transform: scale(0.82); }

/* The disc is the affordance, so the corner pill and the arrow step aside. */
.has-cursor [data-cursor] { cursor: none; }
.has-cursor .card__play { display: none; }

/* --------------------------------------------------------------- lightbox */

.lightbox__close { position: static; }
.lightbox__prev,
.lightbox__next { min-width: 2.6em; justify-content: center; }

/* While the card's still is morphing into the player, the dialog must already
   be in its final state: no fade of its own underneath the transition. */
.lightbox.is-instant,
.lightbox.is-instant .lightbox__panel { transition: none; }

/* -------------------------------------------------------- view transitions */

.grid.vt .card { view-transition-name: var(--vt); }

::view-transition-group(*) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.35s; }

::view-transition-group(film-open) { animation-duration: 0.6s; }

/* The still stretches cleanly into the player instead of cross-fading two
   differently shaped boxes. */
::view-transition-old(film-open),
::view-transition-new(film-open) {
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

.lightbox__frame iframe { opacity: 0; transition: opacity 0.5s var(--ease); }
.lightbox__frame iframe.is-ready { opacity: 1; }

@media (max-width: 560px) {
  .tools { width: 100%; }
  .search { flex: 1 1 100%; }
  .search input,
  .search input:focus { width: 100%; max-width: none; }
}
