:root {
  color-scheme: light;
  --ink: #191919;
  --red: #cf3326;
  --paper: #fff;
  --page-margin: clamp(18px, 3.05vw, 56px);
  --sans: "Helvetica Neue", Arial, sans-serif;
  --mono: "Courier Prime", "Courier New", monospace;
}

* { box-sizing: border-box; }

html { scrollbar-gutter: stable; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.45 var(--mono);
}

a { color: inherit; }

a:focus-visible, button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 7px 11px;
  background: var(--paper);
}

.home, .mosaic, .film-archive { font-family: var(--sans); }

.portfolio-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(30px, 4.2vw, 68px) var(--page-margin) clamp(24px, 3.4vw, 52px);
  font-family: var(--sans);
}

.home .portfolio-header { padding-bottom: clamp(6px, .9vw, 14px); }
.film-archive .portfolio-header { padding-bottom: clamp(20px, 3vw, 40px); }

.portfolio-identity { min-width: 0; overflow-wrap: anywhere; }
.portfolio-identity h1 { margin: 0; }

.portfolio-name {
  display: block;
  margin: 0;
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  text-decoration: none;
}

.portfolio-header p {
  margin: 6px 0 0;
  color: #555;
  font-size: clamp(.95rem, 1.18vw, 1.125rem);
}

.portfolio-links {
  display: flex;
  flex: none;
  gap: clamp(12px, 2.2vw, 28px);
  padding-top: .3em;
  font-size: .9rem;
}

.portfolio-links a { text-underline-offset: .25em; }
.portfolio-links a[aria-current] { text-decoration-thickness: .12em; }

.home-main { padding: 0 var(--page-margin); }

.work-scale {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  width: min(100%, 30rem);
  margin: 0 auto clamp(16px, 2.5vw, 32px);
}

.work-scale-icon {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  color: var(--ink);
}

.work-scale-bounce::before {
  position: absolute;
  inset: 5px;
  border: 1px solid currentColor;
  content: "";
}

.work-scale-ball {
  position: absolute;
  bottom: 6px;
  left: calc(50% - 2.5px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: work-scale-ball-bounce 3.6s infinite;
}

@keyframes work-scale-ball-bounce {
  0%, 100% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(.18, .64, .35, 1);
  }
  50% {
    transform: translateY(-14px);
    animation-timing-function: cubic-bezier(.65, 0, .82, .36);
  }
}

.work-scale-orbit { animation: work-scale-orbit-turn 18s linear infinite; }

.work-scale-orbit > span {
  position: absolute;
  inset: 0;
}

.work-scale-orbit > span:nth-child(2) { transform: rotate(90deg); }
.work-scale-orbit > span:nth-child(3) { transform: rotate(180deg); }
.work-scale-orbit > span:nth-child(4) { transform: rotate(270deg); }

.work-scale-orbit > span::before {
  position: absolute;
  top: 8px;
  left: 10px;
  width: 14px;
  height: 1px;
  background: currentColor;
  animation: work-scale-edge-turn 7.2s ease-in-out infinite;
  content: "";
}

@keyframes work-scale-orbit-turn {
  to { transform: rotate(360deg); }
}

@keyframes work-scale-edge-turn {
  0% { transform: translate(0, 0) rotate(0); }
  28% { transform: translate(2px, -1px) rotate(75deg); }
  50% { transform: translate(-1px, 1px) rotate(180deg); }
  73% { transform: translate(-2px, -1px) rotate(285deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .work-scale-ball, .work-scale-orbit, .work-scale-orbit > span::before { animation: none; }
}

.work-scale input {
  appearance: none;
  display: block;
  width: 100%;
  height: 36px;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.work-scale input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.work-scale input::-webkit-slider-runnable-track { height: 1px; background: #888; }

.work-scale input::-webkit-slider-thumb {
  appearance: none;
  width: 17px;
  height: 17px;
  margin-top: -8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.work-scale input::-moz-range-track { height: 1px; background: #888; }

.work-scale input::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.video-grid {
  --video-grid-gap: clamp(10px, 1.15vw, 20px);
  display: grid;
  grid-template-columns: repeat(var(--desktop-columns, 2), minmax(0, 1fr));
  gap: var(--video-grid-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.video-tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: var(--grid-ratio, 16 / 9);
  background: #000;
  color: #fff;
  text-decoration: none;
}

.video-tile:focus-visible { outline-color: var(--ink); }

.video-tile > img:first-child {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--still-fit, cover);
  object-position: var(--still-position, 50% 50%);
  transform: scale(var(--still-scale, 1));
  transform-origin: var(--still-position, 50% 50%);
  transition: filter 180ms ease-out;
}

.video-title {
  position: absolute;
  z-index: 1;
  inset: auto clamp(12px, 1.6vw, 24px) clamp(12px, 1.6vw, 24px);
  font-size: clamp(1.02rem, 1.7vw, 1.5rem);
  font-weight: 600;
  line-height: 1.15;
  overflow-wrap: anywhere;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease-out;
}

@media (any-hover: hover) {
  .home:not([data-framing-preview]) .video-grid:has(.video-tile:hover) .video-tile:not(:hover) > img:first-child {
    filter: brightness(var(--hover-brightness, .92));
  }
  .video-grid:is([data-title-display="hover"], [data-collage]):not([data-video-details]) .video-tile:hover .video-title { opacity: 1; }
}

.video-grid[data-title-display="always"] .video-title {
  opacity: 1;
  text-shadow: 0 2px 7px #000, 0 1px 2px #000;
}

.video-grid[data-collage] .video-tile { container-type: size; }

.video-collage {
  --collage-caption-delay: 145ms;
  --collage-stills-delay: 325ms;
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  background: var(--paper);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease-out;
}

[data-title-display="collage-blend"] .video-collage {
  --collage-caption-delay: 55ms;
  --collage-stills-delay: 230ms;
  background: transparent;
}

[data-title-display="collage-blend"] .video-collage-caption { background: var(--paper); }

[data-title-display="collage-strips"] .video-collage {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(3, minmax(0, 1fr)) minmax(max(32%, calc(100% - 54cqi)), max-content);
}

.video-tile.is-showing-collage .video-collage {
  opacity: 1;
  transition-duration: 180ms;
}

.video-collage-caption, .video-collage-still {
  opacity: 0;
  transition: opacity 180ms ease-out;
}

.video-tile.is-showing-collage .video-collage-caption {
  opacity: 1;
  transition: opacity 165ms ease-out var(--collage-caption-delay);
}

.video-tile.is-showing-collage .video-collage-still.is-ready {
  opacity: 1;
  transition: opacity 380ms ease-out calc(var(--collage-stills-delay) + var(--collage-delay, 0ms));
}

@starting-style {
  .video-tile.is-showing-collage .video-collage-still.is-ready { opacity: 0; }
}

.video-collage-still {
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.video-collage-still > :is(img, canvas) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--collage-position);
  transform: scale(var(--collage-zoom, 1));
  transform-origin: var(--collage-position);
}

[data-framing-preview] .video-collage,
[data-framing-preview] .video-collage-caption,
[data-framing-preview] .video-collage-still { transition: none; }

[data-framing-preview] button.video-collage-still {
  position: relative;
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  cursor: grab;
  touch-action: none;
}

[data-framing-preview] button.video-collage-still.is-ready { pointer-events: auto; }
[data-framing-preview] button.video-collage-still > * { pointer-events: none; }
[data-framing-preview] button.video-collage-still:active { cursor: grabbing; }

[data-framing-preview] button.video-collage-still:is(:hover, :focus-visible, [aria-pressed="true"])::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 2px solid #fff;
  box-shadow: inset 0 0 0 1px #191919;
  content: "";
  pointer-events: none;
}

.video-collage-caption {
  grid-area: title;
  display: grid;
  align-content: end;
  min-width: 0;
  gap: clamp(2px, 1.4cqb, 5px);
  padding: 0 clamp(6px, 2cqi, 16px) clamp(6px, 2cqi, 16px);
  font: 500 clamp(.56rem, min(2.35cqi, 6cqb), .8rem)/1.15 var(--sans);
  letter-spacing: .025em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

:is(.video-collage-caption, .video-details-copy):has(> .project-type-badge:not([hidden])) {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(5px, 1.4cqi, 12px);
}

.video-caption-text {
  display: grid;
  min-width: 0;
  row-gap: inherit;
}

.project-type-badge:not([hidden]) + .video-caption-text { grid-area: 1 / 1; }

.project-type-badge {
  display: grid;
  place-items: center;
  grid-area: 1 / 2;
  place-self: stretch end;
  width: clamp(13px, 3.2cqw, 19px);
  padding: 2px 0;
  border: 1px solid currentColor;
  font: 600 clamp(.5rem, 3.85cqh, .6875rem)/1 var(--sans);
  letter-spacing: .01em;
  text-transform: none;
  white-space: nowrap;
  writing-mode: vertical-rl;
}

.project-type-badge[hidden] { display: none; }

.video-collage-title {
  font-size: clamp(.75rem, min(4.8cqi, 11cqb), 1.875rem);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -.025em;
}

.video-collage-role { font-weight: 700; }

[data-title-display="collage-strips"] .video-collage-caption {
  align-content: center;
  row-gap: clamp(2px, .8cqb, 4px);
  padding-block: clamp(3px, 1.6cqb, 8px);
  font-size: clamp(.56rem, min(2.1cqi, 4.2cqb), .75rem);
}

@container (max-height: 108px) {
  .video-collage-caption .video-caption-text { grid-template-columns: minmax(0, 1fr) auto; }
  .video-collage-title { grid-column: 1 / -1; }
}

@container (max-height: 175px) {
  [data-title-display="collage-strips"] .video-collage-caption .video-caption-text {
    grid-template-columns: fit-content(70%) minmax(0, 1fr);
    column-gap: clamp(6px, 2cqi, 14px);
  }
  [data-title-display="collage-strips"] .video-collage-title { grid-column: 1 / -1; }
}

.video-details {
  position: absolute;
  z-index: 2;
  inset: 0;
  container-type: size;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease-out;
}

.video-details-copy {
  display: grid;
  min-width: 0;
  gap: clamp(3px, 2.5cqb, 9px);
  padding: clamp(10px, 10cqb, 36px) clamp(12px, 6cqi, 38px);
  opacity: 0;
  transform: translateY(clamp(3px, 6cqb, 12px));
  transition: opacity 220ms ease-out, transform 300ms cubic-bezier(.2, .75, .3, 1);
}

.video-tile.is-showing-details .video-details,
.video-tile.is-showing-details .video-details-copy { opacity: 1; }

.video-tile.is-showing-details .video-details-copy {
  transform: translateY(0);
  transition-delay: 55ms;
}

.home .video-grid > li { position: relative; }

.video-details-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: calc(var(--video-grid-gap) + clamp(9px, 1.2vw, 16px) - 2px);
  height: 1px;
  background: currentColor;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease-out;
}

.video-details-arrow::before {
  position: absolute;
  top: 50%;
  left: 1px;
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 0 1px 1px;
  transform: translateY(-50%) rotate(45deg);
  content: "";
}

.video-details-arrow[data-points-to="left"] {
  left: calc(2px - var(--video-grid-gap));
  transform: translateY(-50%);
}

.video-details-arrow[data-points-to="right"] {
  right: calc(2px - var(--video-grid-gap));
  transform: translateY(-50%) rotate(180deg);
}

.video-tile.is-showing-details + .video-details-arrow[data-points-to] { opacity: 1; }

.video-details-title, .video-details-credit, .video-details-role {
  min-width: 0;
  overflow-wrap: anywhere;
}

.video-details-title {
  font-size: clamp(.95rem, 16cqb, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.video-details-credit {
  color: #474747;
  font-size: clamp(.75rem, 8cqb, 1.05rem);
  line-height: 1.25;
}

.video-details-credit:empty { display: none; }

.video-details-role {
  font-size: clamp(.65rem, 7cqb, .85rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .065em;
  text-transform: uppercase;
}

@container (max-height: 66px) {
  .video-details-copy {
    row-gap: 2px;
    padding: 5px 10px;
  }
  .video-details-copy .video-caption-text {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 8px;
  }
  .video-details-title { grid-column: 1 / -1; }
  .video-details-credit { font-size: .7rem; }
}

.portfolio-footer {
  padding: 30px var(--page-margin) 36px;
  font: .9rem/1.45 var(--sans);
}

.portfolio-footer p { margin: 0; color: #555; }

.video-player {
  width: min(1040px, calc(100% - 28px), calc((100dvh - 80px) * 16 / 9));
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

.video-player::backdrop { background: rgb(0 0 0 / 91%); }
body:has(.video-player[open]) { overflow: hidden; }

.video-player-actions {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  margin-bottom: 4px;
}

.video-player-action {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: .76;
}

.video-player-action:is(:hover, :focus-visible) { opacity: 1; }
.video-player-action:focus-visible { outline-offset: -4px; }

.video-player-action::before, .video-player-action::after {
  position: absolute;
  content: "";
}

.video-close::before, .video-close::after, .video-source::before {
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
}

.video-close::after, .video-source::before { transform: rotate(-45deg); }

.video-source::after {
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: translate(3px, -3px);
}

.video-player iframe, .video-native, .video-watch-original {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: min(200px, calc(100dvh - 80px));
  border: 0;
  background: #000;
}

.video-player [hidden] { display: none; }

.video-native, .video-watch-original { position: relative; }

.video-native video, .video-watch-original img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-native video { cursor: pointer; }

.video-native-controls {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  padding: 9px 5px 2px;
  background: linear-gradient(transparent, rgb(0 0 0 / 75%));
  transition: opacity 200ms ease-out;
}

@media (hover: hover) {
  .video-native.is-playing:not(:hover):not(:focus-within) .video-native-controls {
    opacity: 0;
    pointer-events: none;
  }
}

.video-scrubber {
  flex: 1 1 auto;
  min-width: 0;
  height: 24px;
  margin-inline: 2px;
  accent-color: #fff;
  cursor: pointer;
}

.video-scrubber:focus-visible { outline: 2px solid #fff; }

.video-toggle::before, .video-watch-icon::before {
  width: 12px;
  height: 14px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.video-native.is-playing .video-toggle::before {
  clip-path: none;
  background: linear-gradient(90deg, currentColor 33%, transparent 33% 67%, currentColor 67%);
}

.video-mute::before {
  width: 16px;
  height: 16px;
  background: currentColor;
  clip-path: polygon(4% 36%, 30% 36%, 70% 5%, 70% 95%, 30% 64%, 4% 64%);
}

.video-mute[aria-pressed="true"]::after {
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(-45deg);
  box-shadow: 0 -1px #000;
}

.video-fullscreen::before, .video-fullscreen::after {
  width: 6px;
  height: 6px;
  border: solid currentColor;
}

.video-fullscreen::before { border-width: 1.5px 0 0 1.5px; transform: translate(-4px, -3px); }
.video-fullscreen::after { border-width: 0 1.5px 1.5px 0; transform: translate(4px, 3px); }

.video-native:fullscreen { width: 100%; height: 100%; }

.video-watch-original:focus-visible { outline-offset: -4px; }

.video-watch-icon {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgb(0 0 0 / 75%);
  color: #fff;
  transform: translate(-50%, -50%);
}

.video-watch-icon::before { content: ""; }

@media (max-width: 600px) {
  .video-grid { grid-template-columns: repeat(var(--mobile-columns, 1), minmax(0, 1fr)); }
}

@media (max-width: 460px) {
  .portfolio-links { flex-direction: column; align-items: flex-end; gap: 3px; padding-top: 0; }
}

.mosaic .portfolio-header { padding-bottom: clamp(16px, 2.6vw, 36px); }

.mosaic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #d4d4d1;
  border-left: 1px solid #d4d4d1;
}

.mosaic-tile {
  container-type: inline-size;
  aspect-ratio: 1;
  border-right: 1px solid #d4d4d1;
  border-bottom: 1px solid #d4d4d1;
}

.mosaic-tile:focus-visible {
  z-index: 1;
  outline-offset: -3px;
}

.mosaic-caption {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(4px, 2.2cqi, 9px);
  padding: clamp(9px, 7cqi, 27px);
  background: var(--paper);
  color: var(--ink);
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.mosaic-tile[data-face="title"] .mosaic-caption,
.mosaic-tile:focus-visible .mosaic-caption {
  opacity: 1;
}

.mosaic-title, .mosaic-credit {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
}

.mosaic-title {
  font-size: clamp(1rem, 8.6cqi, 2.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  -webkit-line-clamp: 3;
}

.mosaic-credit {
  color: #474747;
  font-size: clamp(.74rem, 4.5cqi, 1.15rem);
  line-height: 1.18;
  -webkit-line-clamp: 2;
}

.mosaic-credit:empty { display: none; }

.mosaic-role {
  margin-top: auto;
  font-size: clamp(.68rem, 3.55cqi, .875rem);
  font-weight: 700;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.mosaic-motion {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .25em;
  cursor: pointer;
}

@media (min-width: 760px) {
  .mosaic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .mosaic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .mosaic-grid:not([data-playing="true"]) .mosaic-caption { opacity: 1; }
}

.work-main {
  padding: clamp(74px, 8vw, 128px) var(--page-margin) 0;
}

.project { margin: 0 auto clamp(88px, 11vw, 164px); }

.project-heading {
  margin: 0 0 clamp(42px, 10vw, 154px);
  text-align: center;
}

.project-heading h2 {
  margin: 0;
  color: var(--red);
  font: 800 clamp(29px, 4.4vw, 84px)/1.04 var(--sans);
  letter-spacing: -.025em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.project-heading h2 a {
  text-decoration-thickness: 1px;
  text-underline-offset: .19em;
}

.project-heading h2 a:hover { color: #a3281d; }
.project-heading p { margin: clamp(16px, 2vw, 28px) 0 0; }

.stills {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(7px, 1.35vw, 24px);
}

.still {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #202023;
  color: #fff;
}

.still:focus-visible { outline-color: var(--ink); }

.still img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0;
  border-top: 1px solid #dedbd6;
}

.work-nav a { text-decoration: none; }
.work-nav a:last-child { text-align: right; }
.work-nav a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.work-nav span { display: block; }
.work-nav strong { font: 800 clamp(17px, 2.2vw, 31px)/1.14 var(--sans); }

.contact-page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.contact-main {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 350px;
  padding: 24px var(--page-margin);
}

.contact-main address {
  font-style: normal;
  text-align: center;
  overflow-wrap: anywhere;
}

.contact-main p { margin: .5em 0; }
.contact-main a { text-underline-offset: 3px; }

.editorial-main {
  width: min(100%, 78rem);
  margin-inline: auto;
  padding: clamp(30px, 6vw, 88px) var(--page-margin) clamp(36px, 7vw, 96px);
  font: 1rem/1.55 var(--sans);
}

.editorial-main a { text-underline-offset: .25em; }

.editorial-main h1 {
  margin: 0;
  font-size: clamp(2rem, 5.2vw, 4.8rem);
  line-height: 1.055;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}

.editorial-main h2 {
  margin-block: 0 .55em;
  font-size: clamp(1.22rem, 2.5vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.editorial-copy { max-width: 64ch; }
.editorial-back { display: inline-block; margin-bottom: 16px; font-size: .9rem; }

.hire-main {
  --about-width: 73rem;
  --hire-section-gap: clamp(30px, 4.6vw, 64px);
  width: min(100%, 96rem);
  padding-top: clamp(14px, 2.5vw, 38px);
  padding-bottom: clamp(36px, 5vw, 68px);
}

.hire-credits, .hire-inquiry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(24px, 4.5vw, 72px);
  max-width: var(--about-width);
  margin: var(--hire-section-gap) auto 0;
  padding-top: clamp(14px, 1.9vw, 24px);
  border-top: 1px solid #d5d5d5;
}

.about-machine[data-ready] {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(42px, 7vw, 112px);
  align-items: center;
  max-width: var(--about-width);
  margin-inline: auto;
  padding-block: clamp(12px, 3vw, 40px);
}

.about-machine-visual {
  width: min(100%, 25rem);
  margin-inline: auto;
}

.about-bounce {
  display: grid;
  width: 100%;
  gap: clamp(28px, 3vw, 32px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.about-court {
  position: relative;
  display: block;
  aspect-ratio: 1;
}

.about-walls { position: absolute; inset: 0; }

.about-edge {
  position: absolute;
  display: block;
  left: var(--wall-x);
  top: var(--wall-y);
  width: var(--wall-length, 100%);
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(var(--wall-angle, 0deg));
  transition-property: left, top, width, transform;
  transition-duration: var(--wall-transition-time, 440ms);
  transition-timing-function: cubic-bezier(.22, .75, .27, 1);
}

.about-walls-ghost { mix-blend-mode: multiply; }
.about-walls-ghost-red .about-edge {
  transition-duration: calc(var(--wall-transition-time, 440ms) + 160ms);
  transition-delay: 40ms;
}
.about-walls-ghost-blue .about-edge {
  transition-duration: calc(var(--wall-transition-time, 440ms) + 360ms);
  transition-delay: 90ms;
}
.about-trampoline {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.about-trampoline path { fill: none; stroke: currentColor; stroke-width: 1; }
.about-machine[data-scene="2"] .about-walls[data-floor-live] .about-trampoline { display: block; }
.about-machine[data-scene="2"] .about-walls[data-floor-live] .about-edge-bottom { opacity: 0; }
.about-walls-ghost-red { color: #ff2448; }
.about-walls-ghost-blue { color: #1f6dff; }

.about-edge-top { --wall-x: 50%; --wall-y: .5px; }
.about-edge-right { --wall-x: calc(100% - .5px); --wall-y: 50%; --wall-angle: 90deg; }
.about-edge-bottom { --wall-x: 50%; --wall-y: calc(100% - .5px); --wall-angle: 180deg; }
.about-edge-left { --wall-x: .5px; --wall-y: 50%; --wall-angle: -90deg; }

.about-machine[data-scene="1"] .about-edge-top { --wall-y: -5.5px; --wall-angle: -4deg; }
.about-machine[data-scene="1"] .about-edge-right { --wall-x: calc(99.3% - .5px); --wall-angle: 96deg; }
.about-machine[data-scene="1"] .about-edge-bottom { --wall-y: calc(100% + 5.5px); --wall-angle: 176deg; }
.about-machine[data-scene="1"] .about-edge-left { --wall-x: -5.5px; --wall-angle: -96deg; }
.about-machine[data-scene="3"] .about-edge {
  --wall-x: var(--documentary-wall-x);
  --wall-y: var(--documentary-wall-y);
  --wall-length: var(--documentary-wall-length);
  --wall-angle: var(--documentary-wall-angle);
}
.about-machine[data-scene="4"] .about-edge-top { --wall-y: -9.5px; --wall-angle: -8deg; }
.about-machine[data-scene="4"] .about-edge-right {
  --wall-x: calc(104.2% + 4.5px);
  --wall-y: 59.2%;
  --wall-length: 81%;
  --wall-angle: 81deg;
}
.about-machine[data-scene="4"] .about-edge-bottom {
  --wall-x: 67%;
  --wall-y: calc(100% + 9.5px);
  --wall-length: 66%;
  --wall-angle: 176deg;
}
.about-machine[data-scene="4"] .about-edge-left { --wall-x: -6.5px; --wall-angle: -82deg; }

.about-ball-track[data-simulating] {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: clip;
  pointer-events: none;
}

.about-ball {
  position: absolute;
  top: var(--ball-y, 32%);
  left: var(--ball-x, 100%);
  width: clamp(12px, 1.5vw, 22px);
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
  background: currentColor;
}

.about-ball-track[data-simulating] .about-ball {
  inset: 0 auto auto 0;
}

.about-bounce-label {
  justify-self: center;
  font-size: .85rem;
  text-decoration: underline;
  text-underline-offset: .25em;
}

.about-machine[data-ready] .about-story {
  display: flex;
  flex-direction: column;
}

.about-tabs {
  order: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px clamp(12px, 2vw, 26px);
  margin-top: 14px;
}

.about-tabs button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #555;
  font: inherit;
  font-size: .92rem;
  cursor: pointer;
}

.about-tabs button:is(:hover, [aria-selected="true"]) { color: var(--ink); }
.about-tabs button[aria-selected="true"] { text-decoration: underline; text-underline-offset: .35em; }
.about-tabs[hidden], .about-panel[hidden] { display: none; }
.about-panel { padding-block: 26px; }
.about-machine[data-ready] .about-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-block-size: clamp(225px, 25vw, 340px);
}

.about-panel h2 {
  max-width: 13ch;
  margin: 0 0 .2em;
  font-size: clamp(2.6rem, 5.6vw, 5.2rem);
  letter-spacing: -.044em;
  line-height: 1;
}
.about-panel p {
  max-width: 44ch;
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.48;
  white-space: pre-line;
}
.about-track { display: contents; }
.about-slot { display: none; }
.about-panel-film, .hire-clients { display: none; }
.about-panel .about-role {
  margin: 0 0 12px;
  color: #555;
  font-size: .95rem;
}

.about-selection {
  max-width: var(--about-width);
  margin: clamp(8px, 1.4vw, 20px) auto 0;
}

.about-selection-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 8px;
}

.about-selection h2 { margin: 0; font-size: clamp(1rem, 1.7vw, 1.3rem); }
.about-selection-heading a { padding-block: 5px; font-size: .875rem; }

.about-work, .about-work-column {
  display: grid;
  gap: clamp(8px, 1.1vw, 14px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-work { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.about-work a {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
  color: var(--ink);
  text-decoration: none;
}

.about-work img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(var(--still-brightness, 1)) blur(var(--still-blur, 0px));
  transition: filter 240ms ease-out;
}

.about-work a::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.87' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath d='M0 0h96v96H0z' filter='url(%23grain)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: var(--still-grain, 0);
  pointer-events: none;
  transition: opacity 240ms ease-out;
  content: "";
}

.about-work:has(> [aria-current]) a {
  --still-brightness: .84;
  --still-blur: clamp(1px, .18vw, 2.5px);
  --still-grain: .25;
}

.about-work a:is([aria-current] [data-about-lead], :focus-visible) {
  --still-brightness: 1;
  --still-blur: 0px;
  --still-grain: 0;
  --still-caption-opacity: 1;
  --still-caption-offset: 0%;
}

.about-work .about-work-caption {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: clamp(4px, 2.8cqi, 11px);
  gap: 2px clamp(4px, 2cqi, 9px);
  background: var(--paper);
  font-size: clamp(.65rem, 4.3cqi, 1rem);
  opacity: var(--still-caption-opacity, 0);
  transform: translateY(var(--still-caption-offset, 100%));
  transition: opacity 200ms ease-out, transform 240ms cubic-bezier(.22, .75, .27, 1);
}

@media (any-hover: hover) {
  .about-work a:hover {
    --still-brightness: 1;
    --still-blur: 0px;
    --still-grain: 0;
    --still-caption-opacity: 1;
    --still-caption-offset: 0%;
  }
}

.hire-cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 6px;
  font-size: .95rem;
  font-weight: 600;
}

.hire-credits p, .hire-inquiry p { max-width: 60ch; margin: 0; color: #555; }

.hire-inquiry h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
}

@media (max-width: 740px) {
  /* Edge-to-edge stills use 100vw; clip the extra width a desktop scrollbar adds so the page never scrolls sideways. */
  .hire-main { overflow-x: clip; }
  .hire-credits, .hire-inquiry { grid-template-columns: minmax(0, 1fr); }
  .hire-credits { gap: 12px; }
  .hire-inquiry { gap: 8px; }

  /* About on phones: two layouts to compare, chosen in about-motion.js from ?mobile=.
     frame:  the story pins to the screen and scrolling cuts between beats in place.
     travel: a plain stacked page; the live box hops into whichever beat you're reading. */
  .about-bounce-label { display: none; }
  .about-tabs button { flex: none; color: #767676; font-size: clamp(.74rem, 3.6vw, .88rem); white-space: nowrap; }
  .about-tabs button:focus-visible { outline-width: 1px; outline-offset: 3px; }
  .about-machine[data-ready] .about-panel h2 { max-width: none; margin: 0; font-size: clamp(2rem, 9.5vw, 2.6rem); }
  .about-machine[data-ready] .about-panel .about-role { margin: 8px 0 0; color: #666; font-size: .88rem; }
  .about-machine[data-ready] .about-panel > p:not(.about-role) { max-width: none; margin: 16px 0 0; color: #2a2a2a; font-size: 1rem; line-height: 1.55; }

  /* Pinned frame: a tall track to scroll through, with one screen-sized frame stuck inside it.
     The frame is a fixed grid: title at the top, the box centred in the middle, the text below, the still last.
     Every beat's pieces share the same rows, so the rows fit the longest beat and nothing jumps between beats. */
  .about-track[data-layout="frame"] { display: block; height: calc(100svh + var(--beats, 4) * 70svh); }
  .about-machine[data-layout="frame"] {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
    grid-template-areas: "tabs" "title" "role" "box" "body" "film";
    align-items: start;
    gap: 0;
    height: 100svh;
    padding: 0 0 max(18px, env(safe-area-inset-bottom));
  }
  .about-machine[data-layout="frame"] .about-story,
  .about-machine[data-layout="frame"] .about-panel,
  .about-machine[data-layout="frame"] .about-panel[hidden],
  .about-machine[data-layout="frame"] .about-panel:not([hidden]) { display: contents; }
  .about-machine[data-layout="frame"] .about-tabs {
    grid-area: tabs;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0 clamp(6px, 2.4vw, 12px);
    margin: 0 0 10px;
  }
  .about-machine[data-layout="frame"] .about-panel > * { opacity: 0; visibility: hidden; transition: opacity 260ms ease, visibility 0s 260ms; }
  .about-machine[data-layout="frame"] .about-panel:not([hidden]) > * { opacity: 1; visibility: visible; transition: opacity 420ms ease 120ms; }
  .about-machine[data-layout="frame"] .about-slot { display: none; }
  .about-machine[data-layout="frame"] .about-panel > h2 { grid-area: title; }
  .about-machine[data-layout="frame"] .about-panel > .about-role { grid-area: role; }
  .about-machine[data-layout="frame"] .about-panel > p:not(.about-role) { grid-area: body; margin-top: 0; }
  /* The box fills the middle row: as large as the screen allows, always square, never wider than 62vw. */
  .about-machine[data-layout="frame"] .about-machine-visual {
    grid-area: box;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 20px 0;
  }
  .about-machine[data-layout="frame"] .about-bounce {
    display: block;
    height: 100%;
    width: auto;
    max-width: min(62vw, 280px);
    aspect-ratio: 1;
    margin: 0;
  }
  .about-machine[data-layout="frame"] .about-bounce .about-court { width: 100%; }
  /* The film still closes the frame, full width, clear of rounded corners and the home bar. */
  .about-machine[data-layout="frame"] .about-panel-film { grid-area: film; margin: 18px calc(50% - 50vw) 0; }
  .about-machine[data-layout="frame"] .about-panel-film img { aspect-ratio: auto; width: 100%; height: min(52vw, 24svh); }

  @media (max-height: 700px) {
    .about-machine[data-layout="frame"] .about-panel > h2 { font-size: 1.9rem; }
    .about-machine[data-layout="frame"] .about-panel > p:not(.about-role) { font-size: .93rem; line-height: 1.45; }
    .about-machine[data-layout="frame"] .about-machine-visual { padding: 12px 0; }
    .about-machine[data-layout="frame"] .about-panel-film img { height: 19svh; }
  }

  /* Travelling box: each beat has a quiet empty box beside its title; the live one hops into the beat you're reading. */
  .about-machine[data-layout="travel"] { display: block; padding: 0; }
  .about-machine[data-layout="travel"] .about-machine-visual,
  .about-machine[data-layout="travel"] .about-tabs { display: none; }
  .about-machine[data-layout="travel"] .about-panel,
  .about-machine[data-layout="travel"] .about-panel[hidden],
  .about-machine[data-layout="travel"] .about-panel:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
    grid-template-areas: "slot title" "slot role";
    column-gap: 18px;
    min-block-size: 0;
    padding: 34px 0;
    border-top: 1px solid #e2e2e2;
  }
  .about-machine[data-layout="travel"] .about-panel:first-of-type { padding-top: 8px; border-top: 0; }
  .about-machine[data-layout="travel"] .about-slot { grid-area: slot; display: block; aspect-ratio: 1; border: 1px solid #d4d4d4; }
  .about-machine[data-layout="travel"] .about-slot:has(.about-bounce) { border-color: transparent; }
  .about-machine[data-layout="travel"] .about-slot .about-bounce { width: 100%; gap: 0; }
  .about-machine[data-layout="travel"] .about-panel h2 { grid-area: title; align-self: end; font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .about-machine[data-layout="travel"] .about-panel .about-role { grid-area: role; align-self: start; }
  .about-machine[data-layout="travel"] .about-panel > p:not(.about-role),
  .about-machine[data-layout="travel"] .about-panel-film { grid-column: 1 / -1; }

  /* The film still runs edge to edge: the one loud moment in each film beat. */
  .about-panel-film { position: relative; display: block; margin: 26px calc(50% - 50vw) 0; }
  .about-panel-film a { display: block; color: #fff; text-decoration: none; }
  .about-panel-film img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
  .about-panel-film a::after {
    content: '';
    position: absolute;
    inset: 60% 0 0;
    background: linear-gradient(rgb(0 0 0 / 0), rgb(0 0 0 / .45));
    pointer-events: none;
  }
  .about-panel-film span {
    position: absolute;
    left: var(--page-margin);
    bottom: 12px;
    z-index: 1;
    font-size: .85rem;
    text-decoration: underline;
    text-underline-offset: .25em;
  }

  /* After the story: one link to every film, then clients and the ask. */
  .about-selection { margin: 8px 0 0; padding: 18px 0 0; border-top: 1px solid #e2e2e2; }
  .about-selection-heading { justify-content: flex-start; }
  .about-selection-heading h2, .about-work { display: none; }
  .about-selection-heading a { font-weight: 600; }

  .hire-credits > p { display: none; }
  .hire-clients { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
  .hire-clients-title { grid-column: 1 / -1; margin: 0 0 4px; font-size: 1.35rem; letter-spacing: -.02em; }
  .hire-clients h3 { margin: 0 0 6px; color: #767676; font-size: .82rem; font-weight: 400; }
  .hire-clients ul { margin: 0; padding: 0; list-style: none; }
  .hire-clients li { margin-bottom: 5px; color: var(--ink); font-size: .97rem; line-height: 1.35; }

  .hire-inquiry { padding-bottom: 24px; }
  .hire-inquiry h2 { font-size: 2rem; letter-spacing: -.03em; line-height: 1.05; }
  .hire-inquiry p { color: #444; font-size: .97rem; }
  .hire-cta {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin-top: 20px;
    border: 1px solid var(--ink);
    text-decoration: none;
  }
}

.film-index-section + .film-index-section { margin-top: clamp(30px, 4vw, 54px); }
.film-index-section h2 {
  margin: 0 0 9px;
  font-size: .95rem;
  line-height: 1.2;
  font-weight: 600;
}
.film-index-section h2 a { text-decoration: none; text-underline-offset: .25em; }
.film-index-section h2 a:hover { text-decoration: underline; }
.film-index-link {
  position: relative;
  display: block;
  text-decoration: none;
}

.film-index-caption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 9px;
  padding: 7px 0 10px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.film-index-caption small { color: #555; }

@media (hover: hover) and (pointer: fine) {
  .film-index-caption {
    position: absolute;
    inset: auto 0 0;
    padding: 8px 11px;
    background: var(--paper);
    opacity: 0;
    transition: opacity 180ms ease-out;
  }
  .film-index-link:is(:hover, :focus-visible) .film-index-caption { opacity: 1; }
}

.watch-main { padding-top: clamp(16px, 3vw, 44px); }
.watch-line { margin: .35em 0 1em; color: #555; }

.watch-player {
  aspect-ratio: 16 / 9;
  background: #161616;
}

.watch-player :is(video, iframe, a, img) { display: block; width: 100%; height: 100%; border: 0; }
.watch-player img { object-fit: contain; }
.watch-source { display: inline-block; margin-top: .65em; font-size: .9rem; }
.watch-main .editorial-copy h2 { margin-top: 1.4em; }
.watch-credits { margin-top: clamp(28px, 4vw, 48px); }
.credit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr));
  gap: 1.15em clamp(16px, 2.5vw, 36px);
  margin: 0;
  padding-top: 1.15em;
  border-top: 1px solid #e2e2e2;
}
.credit-grid + .credit-grid { margin-top: 1.6em; }
.credit-grid dt {
  margin-bottom: .3em;
  color: #8c8c8c;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.credit-grid dd { margin: 0; line-height: 1.35; }
.credit-grid-lead dd { font-weight: 600; }
@media (max-width: 520px) {
  .credit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 56px clamp(47px, 7vw, 104px);
  border: 0;
  background: rgb(12 12 13 / 96%);
  color: white;
}

.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: #111; }
body:has(.lightbox[open]) { overflow: hidden; }

.lightbox figure {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0;
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 150px);
  object-fit: contain;
}

.lightbox figcaption {
  font-size: .85rem;
  text-align: center;
}

.lightbox button {
  position: absolute;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #29292b;
  color: inherit;
  font: 400 30px/1 var(--sans);
  cursor: pointer;
}

.lightbox button:hover { background: #47474a; }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-previous, .lightbox-next { top: 50%; transform: translateY(-50%); }
.lightbox-previous { left: 4px; }
.lightbox-next { right: 4px; }

@media (max-width: 650px) {
  .stills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stills .still:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

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

@media (prefers-reduced-motion: reduce) {
  .about-walls-ghost { display: none; }
}
