/* Visio Film AS: one stylesheet for every page */

/* ─── FONTS (self-hosted, SIL Open Font License) ───────────── */
@font-face { font-family: 'Big Shoulders Display'; font-weight: 300; font-display: swap; src: url(../fonts/big-shoulders-display-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 300; font-display: swap; src: url(../fonts/hanken-grotesk-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-display: swap; src: url(../fonts/hanken-grotesk-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 500; font-display: swap; src: url(../fonts/hanken-grotesk-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Mono'; font-weight: 400; font-display: swap; src: url(../fonts/dm-mono-latin-400-normal.woff2) format('woff2'); }

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

:root {
  --bg:        #080808;
  --bg-2:      #101010;
  --line:      rgba(242, 240, 236, 0.10);
  --text-1:    #F2F0EC;
  --text-2:    rgba(242, 240, 236, 0.68);
  --text-3:    rgba(242, 240, 236, 0.50);
  --tally:     #E0412F;
  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;
  --font-mono:    'DM Mono', ui-monospace, monospace;
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:   cubic-bezier(0.65, 0, 0.35, 1);
  --pad:       48px;
  --bar:       clamp(44px, 7vh, 72px);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--text-1); color: var(--bg); }
:focus-visible { outline: 1px solid var(--text-1); outline-offset: 4px; }

/* Moving film grain over everything, very faint. The tile has a fixed pixel size so the grain looks the same
   on any screen, and it jumps to a new position 24 times a second, like grain changing every frame.
   The switch in the nav changes it from Super 16 (the default) to Super 8 */
:root { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.36' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --grain-opacity: 0.07; }
:root[data-film="s8"] { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.18' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --grain-opacity: 0.1; }
body::after {
  content: '';
  position: fixed;
  inset: -200px;
  background-image: var(--grain);
  background-size: 220px 220px;
  opacity: var(--grain-opacity);
  pointer-events: none;
  z-index: 9000;
  animation: grain 0.5s steps(1) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  8%  { transform: translate(-61px, 37px); }
  17% { transform: translate(83px, -112px); }
  25% { transform: translate(-140px, -26px); }
  33% { transform: translate(29px, 151px); }
  42% { transform: translate(-97px, -163px); }
  50% { transform: translate(126px, 58px); }
  58% { transform: translate(-12px, -79px); }
  67% { transform: translate(171px, 103px); }
  75% { transform: translate(-158px, 132px); }
  83% { transform: translate(64px, -141px); }
  92% { transform: translate(-36px, 88px); }
}
/* Super 8 also gets soft dark corners that flicker like a projector */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.4) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 98;
  transition: opacity 0.6s;
}
:root[data-film="s8"] body::before { opacity: 1; animation: projector 0.5s steps(1) infinite; }
@keyframes projector {
  0%  { opacity: 1; }
  20% { opacity: 0.8; }
  40% { opacity: 0.94; }
  60% { opacity: 0.76; }
  80% { opacity: 0.9; }
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 9500;
  background: var(--text-1); color: var(--bg); padding: 10px 16px;
  font: 500 13px/1 var(--font-body); text-decoration: none;
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.display {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.9;
}
.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* Scene slate used as the small marker above each section */
.slate { display: flex; align-items: center; gap: 14px; color: var(--text-3); margin-bottom: 40px; }
.slate-no { border: 1px solid var(--line); padding: 5px 9px 4px; color: var(--text-2); white-space: nowrap; flex-shrink: 0; }

/* Headline words rise out of a mask when they come into view */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.w > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms); }
.in .w > span, .w.in > span { transform: none; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ─── BUTTONS & LINKS ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 26px 17px;
  background: var(--text-1); color: var(--bg);
  font: 500 12px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; border: 0; border-radius: 1px; cursor: pointer;
  transition: background 0.3s var(--ease-out);
}
.btn svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease-out); }
.btn:hover { background: #FFFFFF; }
.btn:hover svg { transform: translateX(4px); }
.btn-line { background: none; color: var(--text-1); box-shadow: inset 0 0 0 1px rgba(242, 240, 236, 0.28); }
.btn-line:hover { background: rgba(242, 240, 236, 0.08); box-shadow: inset 0 0 0 1px rgba(242, 240, 236, 0.6); }
.link-line {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease-out), color 0.3s;
  padding-bottom: 2px;
}
.link-line:hover { background-size: 100% 1px; }

/* ─── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--bar);
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  transition: transform 0.6s var(--ease-out), background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
/* On the homepage the bar fades in after the letterbox intro */
.page-home .nav { animation: nav-in 1s var(--ease-out) 1.3s both; }
.nav.is-scrolled { background: rgba(8, 8, 8, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
@keyframes nav-in { from { opacity: 0; } to { opacity: 1; } }
.nav-logo img { height: 22px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; margin-left: auto; }
.nav-links a { font-size: 14px; font-weight: 400; color: var(--text-2); text-decoration: none; transition: color 0.3s; }
.nav-links a:hover { color: var(--text-1); }
.nav-links .nav-cta { color: var(--text-1); border: 1px solid rgba(242,240,236,0.28); padding: 10px 18px; font: 500 11px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; transition: background 0.3s, border-color 0.3s; }
.nav-links .nav-cta:hover, .nav-links .nav-cta[aria-current="page"] { background: rgba(242,240,236,0.08); border-color: rgba(242,240,236,0.6); }
.nav-links .nav-lang { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; }
/* Film grain switch, like the power switch on a Blackmagic Pocket camera: a recessed slot with a ridged slider,
   S16 and S8 printed underneath */
.film-switch {
  position: relative; flex: none; display: grid; justify-items: center; gap: 5px;
  margin-left: 30px; padding: 4px 0; background: none; border: 0; cursor: pointer;
}
.switch-slot {
  position: relative; display: block; width: 40px; height: 16px; border-radius: 4px;
  background: #040404;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(242, 240, 236, 0.14), 0 1px 0 1px rgba(242, 240, 236, 0.06);
}
.switch-thumb {
  position: absolute; top: 2px; left: 2px; width: 20px; height: 12px; border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, rgba(242, 240, 236, 0.2) 0 1px, transparent 1px 3px) center / 10px 6px no-repeat,
    linear-gradient(#2e2e2e, #161616);
  box-shadow: inset 0 1px 0 rgba(242, 240, 236, 0.14), 0 1px 2px rgba(0, 0, 0, 0.8);
  transition: transform 0.28s var(--ease-out);
}
.film-switch[aria-checked="true"] .switch-thumb { transform: translateX(16px); }
.switch-labels { display: flex; justify-content: space-between; width: 40px; font: 500 9px/1 var(--font-body); letter-spacing: 0.04em; color: var(--text-3); }
.switch-labels span { transition: color 0.3s; }
.film-switch[aria-checked="false"] .switch-labels span:first-child,
.film-switch[aria-checked="true"] .switch-labels span:last-child { color: var(--text-1); }
.switch-tip {
  position: absolute; top: calc(100% + 8px); right: -6px; white-space: nowrap;
  padding: 7px 10px; background: rgba(18, 18, 18, 0.94); border: 1px solid rgba(242, 240, 236, 0.18); color: var(--text-2);
  opacity: 0; transform: translateY(-4px); transition: opacity 0.25s, transform 0.25s var(--ease-out); pointer-events: none;
}
.film-switch:focus-visible .switch-tip, .film-switch.is-telling .switch-tip { opacity: 1; transform: none; }
@media (hover: hover) {
  .film-switch:hover .switch-tip { opacity: 1; transform: none; }
}
.nav-burger { display: none; width: 32px; height: 32px; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; }
.nav-burger span { display: block; width: 26px; height: 1px; background: var(--text-1); transition: transform 0.4s var(--ease-out), opacity 0.3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 24px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-io);
  visibility: hidden;
}
.drawer.open { clip-path: inset(0 0 0 0); visibility: visible; }
.drawer a.drawer-big { font-family: var(--font-display); font-weight: 300; font-size: clamp(56px, 16vw, 96px); line-height: 1; text-transform: uppercase; text-decoration: none; color: var(--text-1); padding: 6px 0; }
.drawer .drawer-foot { position: absolute; left: 24px; right: 24px; bottom: 32px; display: flex; justify-content: space-between; color: var(--text-3); }
.drawer .drawer-foot a { text-decoration: none; }

/* ─── HOMEPAGE: HERO ──────────────────────────────────────── */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: #000; }
.hero-media { position: absolute; inset: 0; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transform: scale(1.06); animation: hero-settle 2.6s var(--ease-out) 0.2s both; }
@keyframes hero-settle { from { transform: scale(1.14); } to { transform: scale(1.06); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(8,8,8,0.92) 0%, rgba(8,8,8,0.45) 32%, rgba(8,8,8,0) 58%),
    linear-gradient(90deg, rgba(8,8,8,0.55) 0%, rgba(8,8,8,0) 60%);
}
/* Letterbox bars: closed at load, then open like a projector starting */
.bar { position: absolute; left: 0; right: 0; height: var(--bar); background: #000; z-index: 3; animation: bar-open 1.25s var(--ease-io) 0.15s both; }
.bar-top { top: 0; }
.bar-bottom { bottom: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); color: var(--text-3); }
@keyframes bar-open { from { height: 50.5%; } to { height: var(--bar); } }
.bar-bottom > * { opacity: 0; animation: fade 0.8s ease 1.5s forwards; }
@keyframes fade { to { opacity: 1; } }
.tc { display: flex; align-items: center; gap: 18px; }
.tc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tally); display: inline-block; margin-right: 10px; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.tc-value { font-variant-numeric: tabular-nums; color: var(--text-2); }
.hero-toggle { background: none; border: 0; color: var(--text-3); cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; padding: 6px 0; transition: color 0.3s; }
.hero-toggle:hover { color: var(--text-1); }

.hero-content {
  position: absolute; z-index: 2;
  left: 0; right: 0; bottom: calc(var(--bar) + 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: end;
}
.hero-title { font-size: clamp(60px, 9.4vw, 150px); max-width: 9.2em; }
.hero-title .w > span { transition-duration: 1.2s; }
.hero-side { padding-bottom: 10px; }
.hero-sub { color: var(--text-2); font-size: 17px; line-height: 1.65; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.hero-actions .link-line { font-size: 14px; color: var(--text-2); }
.hero-actions .link-line:hover { color: var(--text-1); }
.hero-side > * { opacity: 0; animation: rise 1s var(--ease-out) both; }
.hero-side > :nth-child(1) { animation-delay: 1.55s; }
.hero-side > :nth-child(2) { animation-delay: 1.7s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ─── HOMEPAGE: CLIENT MARQUEE ────────────────────────────── */
.clients { padding: 56px 0 60px; border-bottom: 1px solid var(--line); overflow: hidden; }
.clients-label { color: var(--text-3); margin-bottom: 22px; }
.marquee { display: flex; width: max-content; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; flex-shrink: 0; list-style: none; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { font-family: var(--font-display); font-weight: 300; text-transform: uppercase; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.1; color: var(--text-3); padding: 0 34px; white-space: nowrap; transition: color 0.4s; }
.marquee-track li:hover { color: var(--text-1); }
.marquee-track li::after { content: '/'; color: rgba(242,240,236,0.18); margin-left: 68px; font-weight: 300; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ─── SECTIONS ────────────────────────────────────────────── */
.section { padding: 160px 0; }
.sec-title { font-size: clamp(52px, 7.2vw, 116px); margin-bottom: 40px; max-width: 12em; }
.sec-lead { color: var(--text-2); max-width: 46ch; font-size: 18px; }

/* ─── HOMEPAGE: PROJECTS ──────────────────────────────────── */
#work { padding-top: 120px; }
.work-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: end; margin-bottom: 64px; }
.work-head .slate { margin-bottom: 0; }
.work-head h2 { font: 300 18px/1.6 var(--font-body); color: var(--text-2); }
.projects { display: grid; gap: 120px; }
.project { display: block; text-decoration: none; color: inherit; }
.project-frame {
  position: relative; overflow: hidden; aspect-ratio: 2.39 / 1; background: var(--bg-2);
  clip-path: inset(14% 0 14% 0);
  transition: clip-path 1.5s var(--ease-io);
}
.project.in .project-frame { clip-path: inset(0 0 0 0); }
.project-frame img, .project-frame video {
  position: absolute; left: 0; top: -8%; width: 100%; height: 116%;
  object-fit: cover; will-change: transform;
}
.project-frame img { transition: filter 0.8s var(--ease-out); filter: brightness(0.86); }
.project-frame video { opacity: 0; transition: opacity 0.6s var(--ease-out); }
.project.is-playing .project-frame video { opacity: 1; }
.project:hover .project-frame img { filter: brightness(1); }
.project-frame .media-inner { position: absolute; inset: 0; transition: transform 1.4s var(--ease-out); }
.project:hover .media-inner { transform: scale(1.035); }
.project-caption { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 24px; align-items: end; padding-top: 28px; }
.project-no { color: var(--text-3); padding-bottom: 14px; }
.project-title { font-size: clamp(64px, 8.6vw, 140px); transition: color 0.4s; }
.project-meta { color: var(--text-3); text-align: right; padding-bottom: 14px; }
.project-meta b { display: block; color: var(--text-2); font-weight: 400; }

/* ─── HOMEPAGE: SERVICES (sticky frame + scrolling list) ───── */
.services { border-top: 1px solid var(--line); }
.services-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 80px; margin-top: 112px; align-items: start; }
.services-media { position: sticky; top: 16vh; aspect-ratio: 5 / 4; max-height: 68vh; overflow: hidden; background: var(--bg-2); }
.services-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1s var(--ease-out), transform 6s linear;
}
.services-media img.is-active { opacity: 1; transform: scale(1); }
.services-media::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(0deg, rgba(8,8,8,0.6), rgba(8,8,8,0)); pointer-events: none; }
.services-media .frame-tc { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; justify-content: space-between; color: rgba(242,240,236,0.85); z-index: 2; }
.service-list { list-style: none; }
.service { min-height: 56vh; padding: 8vh 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; opacity: 0.32; transition: opacity 0.6s var(--ease-out); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service.is-active { opacity: 1; }
.service .mono { color: var(--text-3); margin-bottom: 22px; }
.service h3 { font-size: clamp(44px, 4.6vw, 76px); margin-bottom: 24px; }
.service p { color: var(--text-2); max-width: 44ch; }
.service-img { display: none; }

/* ─── HOMEPAGE: ABOUT & TEAM ──────────────────────────────── */
.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 96px; align-items: start; }
.about-title { font-size: clamp(64px, 9vw, 150px); margin-bottom: 56px; }
.about-body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; color: var(--text-2); }
.about-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; margin-top: 12px; }
.about-photo img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.about-photo figcaption { position: absolute; left: 18px; bottom: 16px; right: 18px; color: var(--text-1); }
.facts { margin-top: 64px; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 40px; border-top: 1px solid var(--line); }
.facts div { padding: 22px 0 20px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--text-3); margin-bottom: 8px; }
.facts dd { font-family: var(--font-display); font-weight: 300; text-transform: uppercase; font-size: 34px; line-height: 1.05; }

.team { margin-top: 140px; }
.onset { margin-top: 140px; }
.team-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 8px; }
.member figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #0c0c0c; margin-bottom: 24px; }
.member img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(1) contrast(1.05); transform: scale(1.02); transition: transform 1.2s var(--ease-out), filter 0.8s; }
.member:hover img { transform: scale(1.06); }
.member .chair img { object-position: center 70%; }
.member h3 { font-size: 40px; margin-bottom: 6px; }
.member .role { color: var(--text-3); margin-bottom: 16px; }
.member p { color: var(--text-2); font-size: 15px; line-height: 1.7; }
.member .ig { display: inline-block; margin-top: 14px; color: var(--text-3); font-size: 13px; }
.member .ig:hover { color: var(--text-1); }

/* ─── HOMEPAGE: PROCESS (edit timeline with a playhead) ────── */
.process { border-top: 1px solid var(--line); }
.timeline { --p: 0; --col: 0; position: relative; margin-top: 112px; }
.tl-edit { position: relative; z-index: 1; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.timeline.is-scrubbing .tl-edit { cursor: grabbing; }
.tl-ruler { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; color: var(--text-3); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tl-ruler span { position: relative; padding-left: 10px; }
.tl-ruler span::before { content: ''; position: absolute; left: 0; top: 2px; bottom: -15px; width: 1px; background: var(--line); }
.tl-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 18px 0; }
.tl-clip {
  position: relative; overflow: hidden;
  height: 64px; padding: 12px 14px; border: 1px solid var(--line); background: rgba(242,240,236,0.025);
  display: flex; align-items: center; gap: 14px; color: var(--text-3);
  transition: color 0.6s, border-color 0.6s;
}
.tl-clip::before { content: ''; position: absolute; inset: 0; background: rgba(242,240,236,0.13); transform-origin: left center; transform: scaleX(var(--f, 0)); }
.tl-clip > * { position: relative; }
.tl-clip .display { font-size: 28px; line-height: 1; }
.tl-clip.passed { color: var(--text-1); border-color: rgba(242,240,236,0.3); }
.tl-head {
  position: absolute; top: 0; bottom: 0; left: calc(var(--p) * 100%); z-index: 2;
  width: 1px; background: var(--tally); cursor: grab;
}
.timeline.is-scrubbing .tl-head { cursor: grabbing; }
/* Playhead handle like an edit program's, with a wider invisible grip around the line */
.tl-head::before { content: ''; position: absolute; top: -16px; left: -7px; width: 15px; height: 17px; background: var(--tally); clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); transition: transform 0.25s var(--ease-out); }
.tl-head::after { content: ''; position: absolute; top: -20px; bottom: 0; left: -12px; width: 25px; }
.tl-edit:hover .tl-head::before, .timeline.is-scrubbing .tl-head::before { transform: scale(1.2); }
.tl-bar { position: absolute; left: 0; right: 0; bottom: calc(100% + 30px); display: flex; justify-content: space-between; color: var(--text-3); pointer-events: none; }
.tl-tc { color: var(--tally); }
/* While dragging, the column under the playhead lights up */
.tl-col { position: absolute; top: -12px; bottom: -12px; left: 0; z-index: 0; width: calc(25% - 3px); background: rgba(242,240,236,0.045); transform: translateX(calc(var(--col) * (100% + 4px))); opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease-out), transform 0.3s var(--ease-out); }
.timeline.is-scrubbing .tl-col { opacity: 1; }
.tl-clip.is-current { border-color: rgba(242,240,236,0.6); color: var(--text-1); }
.tl-text { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 40px; }
.tl-text > div { padding-right: 32px; opacity: 0.4; transition: opacity 0.8s var(--ease-out); }
.tl-text > div.passed, .tl-text > div.is-current { opacity: 1; }
.tl-text > div.is-current .mono { color: var(--text-1); }
.tl-text p { color: var(--text-2); font-size: 15px; line-height: 1.75; }
.tl-text .mono { display: block; color: var(--text-3); margin-bottom: 10px; }

/* ─── HOMEPAGE: CALL TO ACTION ────────────────────────────── */
.cta { position: relative; overflow: hidden; padding: 200px 0; text-align: left; }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; transform: scale(1.08); animation: kenburns 30s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.08) translate(0, 0); } to { transform: scale(1.18) translate(-2%, -1.5%); } }
.cta-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,8,0.92) 0%, rgba(8,8,8,0.8) 45%, rgba(8,8,8,0.4) 100%), linear-gradient(0deg, rgba(8,8,8,0.6), rgba(8,8,8,0) 40%); }
.cta .wrap { position: relative; z-index: 2; }
.cta-title { font-size: clamp(72px, 11vw, 180px); margin-bottom: 40px; max-width: 8em; }
.cta-sub { color: var(--text-2); max-width: 42ch; margin-bottom: 48px; font-size: 18px; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.cta-mail { font-family: var(--font-display); font-weight: 300; font-size: clamp(32px, 3.4vw, 48px); text-transform: lowercase; line-height: 1; }
.cta-phone { color: var(--text-2); font-size: 15px; }

/* ─── PAGE HEAD (case pages, contact, other projects) ──────── */
.page-head { padding: calc(var(--bar) + 104px) 0 0; }
.page-head .slate { margin-bottom: 32px; }
.page-title { font-size: clamp(60px, 9vw, 148px); max-width: 11em; }
.page-title.is-long { font-size: clamp(48px, 6.4vw, 104px); max-width: 14em; }
.page-sub { margin-top: 32px; color: var(--text-2); max-width: 62ch; font-size: 16px; line-height: 1.75; }

/* ─── CASE PAGES ──────────────────────────────────────────── */
.case-frame {
  position: relative; overflow: hidden; aspect-ratio: 2.39 / 1; margin-top: 72px; background: var(--bg-2);
  clip-path: inset(14% 0 14% 0);
  transition: clip-path 1.5s var(--ease-io);
}
.case-frame.in { clip-path: inset(0 0 0 0); }
.case-frame img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.case-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); column-gap: 32px; margin-top: 48px; border-top: 1px solid var(--line); }
.case-meta div { padding: 22px 0 20px; border-bottom: 1px solid var(--line); }
.case-meta dt { color: var(--text-3); margin-bottom: 8px; }
.case-meta dd { font-size: 16px; line-height: 1.55; color: var(--text-1); }

.case-story { padding: 128px 0 0; }
.case-story .story { max-width: 760px; margin: 0 auto; }
.story p { color: var(--text-2); margin-bottom: 1.4em; }
.story p:first-child { font-size: 21px; line-height: 1.6; color: var(--text-1); }
.story p:last-child { margin-bottom: 0; }

.case-block { padding: 144px 0 0; }
.case-block .slate { margin-bottom: 36px; }
.block-note { color: var(--text-3); margin: -12px 0 28px; }

/* Stills: rows of frames, each opens larger on click */
.stills { display: grid; gap: 4px; }
.stills-row { display: grid; gap: 4px; }
.stills-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.stills-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.still { position: relative; display: block; overflow: hidden; background: var(--bg-2); }
.still img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter 0.8s var(--ease-out); filter: brightness(0.94); }
.still:hover img { transform: scale(1.025); filter: brightness(1); }
.r-hero { aspect-ratio: 16 / 7; }
.r-wide { aspect-ratio: 16 / 9; }
.r-std  { aspect-ratio: 16 / 10; }
.r-tall { aspect-ratio: 3 / 4; }
.r-four { aspect-ratio: 4 / 3; }
.r-scope { aspect-ratio: 2.39 / 1; }
.r-dci  { aspect-ratio: 1.9 / 1; }
a.zoom { cursor: zoom-in; }
.photo-credit { position: absolute; right: 12px; bottom: 10px; font-size: 10px; letter-spacing: 0.06em; color: rgba(242, 240, 236, 0.6); pointer-events: none; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }

/* Behind-the-scenes clips */
.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.clip { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #0d0d0d; }
.clip video { width: 100%; height: 100%; object-fit: cover; }
.clip.has-play { cursor: pointer; }
.clip-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 64px 18px 16px; background: linear-gradient(0deg, rgba(8, 8, 8, 0.88), rgba(8, 8, 8, 0)); color: var(--text-1); pointer-events: none; }
.clip-label .mono { display: block; color: var(--text-3); margin-top: 6px; font-size: 10px; }
.clip-label span:first-child { font-size: 14px; line-height: 1.45; }
.bts-play {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center; padding: 0;
  background: rgba(8, 8, 8, 0.55); border: 1px solid rgba(242, 240, 236, 0.3); border-radius: 50%;
  color: var(--text-1); cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.clip:hover .bts-play, .bts-play:focus-visible { background: rgba(8, 8, 8, 0.8); border-color: rgba(242, 240, 236, 0.7); }
.bts-play svg { width: 13px; height: 13px; fill: currentColor; }
.bts-play .icon-pause, .bts-play.playing .icon-play { display: none; }
.bts-play.playing .icon-pause { display: block; }

/* Production stills with captions, in columns */
.masonry { columns: 3; column-gap: 24px; }
.masonry figure { break-inside: avoid; margin-bottom: 40px; }
.masonry .still { margin-bottom: 14px; }
.masonry .still img { height: auto; }
.masonry figcaption { color: var(--text-2); font-size: 14px; line-height: 1.65; }

/* Specs and credits */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 32px; border-top: 1px solid var(--line); }
.specs div { padding: 24px 0 22px; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--text-3); margin-bottom: 10px; }
.specs dd { font-size: 16px; line-height: 1.55; }
.credits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.credit { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 28px; align-items: start; padding: 36px; background: var(--bg-2); }
.credit.no-photo { grid-template-columns: minmax(0, 1fr); }
.credit > img { width: 96px; height: 96px; object-fit: cover; object-position: center top; filter: grayscale(1); }
.credit .mono { color: var(--text-3); margin-bottom: 10px; }
.credit h3 { font-size: 36px; margin-bottom: 12px; }
.credit p { color: var(--text-2); font-size: 15px; line-height: 1.7; }
.credit p.credit-org { color: var(--text-1); margin-bottom: 6px; }
.credit .credit-link { display: inline-block; margin-top: 14px; color: var(--text-3); font-size: 13px; }
.credit .credit-link:hover { color: var(--text-1); }
.credit-lead { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4px; margin-bottom: 4px; }
.credit-lead .still { aspect-ratio: 3 / 4; }
.credit-lead .credit-stack { display: grid; grid-auto-rows: 1fr; gap: 4px; }
.credit-lead .credit { align-content: center; }

/* Cities on the Showpony campaign */
.cities { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 48px; list-style: none; border-top: 1px solid var(--line); counter-reset: city; }
.cities li { display: flex; align-items: baseline; gap: 24px; padding: 18px 0 16px; border-bottom: 1px solid var(--line); counter-increment: city; }
.cities li::before { content: counter(city, decimal-leading-zero); font: 400 12px/1 var(--font-mono); letter-spacing: 0.08em; color: var(--text-3); min-width: 24px; }
.cities .display { font-size: clamp(34px, 3.4vw, 52px); line-height: 1; }
.cities .mono { color: var(--text-3); margin-left: auto; }

/* Embedded films and reels */
.embeds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.embed { position: relative; aspect-ratio: 16 / 9; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reels { display: grid; grid-template-columns: repeat(3, minmax(0, 340px)); justify-content: center; gap: 4px; }
.reels .embed { aspect-ratio: 9 / 16; }

/* The Performance Lab film */
.film { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.film video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.film.is-playing video { object-fit: contain; }
.film-play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: linear-gradient(0deg, rgba(8, 8, 8, 0.55), rgba(8, 8, 8, 0.15)); border: 0; color: var(--text-1); cursor: pointer;
  transition: opacity 0.4s var(--ease-out);
}
.film-play .ring { width: 92px; height: 92px; border-radius: 50%; border: 1px solid rgba(242, 240, 236, 0.6); display: flex; align-items: center; justify-content: center; transition: transform 0.6s var(--ease-out), background 0.3s; }
.film-play .ring svg { width: 22px; height: 22px; margin-left: 4px; fill: currentColor; }
.film-play:hover .ring { transform: scale(1.06); background: rgba(242, 240, 236, 0.08); }
.film.is-playing .film-play { opacity: 0; pointer-events: none; }
.film-play[hidden] { display: none; }

/* Next project */
.case-next { margin-top: 160px; border-top: 1px solid var(--line); padding: 120px 0 140px; }
.next-link { display: inline-block; text-decoration: none; margin-bottom: 48px; }
.next-link .display { font-size: clamp(64px, 9vw, 148px); transition: color 0.4s; }
.next-link .mono { display: block; color: var(--text-3); margin-top: 18px; }
.next-link:hover .display { color: #FFFFFF; }
.next-link .display svg { display: inline-block; width: 0.42em; height: 0.42em; margin-left: 0.18em; vertical-align: 0.1em; transition: transform 0.5s var(--ease-out); }
.next-link:hover .display svg { transform: translateX(0.08em); }
.next-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Lightbox for stills */
.lightbox { position: fixed; inset: 0; z-index: 9100; display: flex; align-items: center; justify-content: center; padding: 72px 88px; background: rgba(8, 8, 8, 0.96); opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s; }
.lightbox.open { opacity: 1; visibility: visible; transition: opacity 0.35s; }  /* visible at once, so the close button can take focus */
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-caption { position: absolute; left: var(--pad); right: 220px; bottom: 24px; color: var(--text-3); }
.lightbox-btn { position: absolute; background: none; border: 0; color: var(--text-2); cursor: pointer; padding: 12px; transition: color 0.3s; }
.lightbox-btn:hover { color: var(--text-1); }
.lightbox-close { top: 16px; right: calc(var(--pad) - 12px); }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); font-size: 26px; line-height: 1; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ─── CONTACT PAGE ────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 112px; align-items: start; margin-top: 88px; padding: 72px 0 168px; border-top: 1px solid var(--line); }
.form-title { font-size: clamp(40px, 4vw, 60px); margin-bottom: 44px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; row-gap: 36px; }
.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label, .field > legend { color: var(--text-3); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5; }
.field .opt { color: rgba(242, 240, 236, 0.32); text-transform: none; letter-spacing: 0.02em; }
fieldset.field { border: 0; min-width: 0; }
fieldset.field legend { margin-bottom: 14px; padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; padding: 10px 0 12px;
  background: transparent; border: 0; border-bottom: 1px solid rgba(242, 240, 236, 0.22); border-radius: 0;
  color: var(--text-1); font: 300 18px/1.5 var(--font-body);
  transition: border-color 0.3s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(242, 240, 236, 0.28); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--text-1); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.field [aria-invalid="true"] { border-color: var(--tally); }
.field-error { min-height: 0; color: #F0806F; font-size: 13px; line-height: 1.4; }
.field-error:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; padding: 11px 16px 10px; border: 1px solid rgba(242, 240, 236, 0.22); border-radius: 999px;
  font-size: 14px; line-height: 1.2; color: var(--text-2); cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.chip span:hover { border-color: rgba(242, 240, 236, 0.6); color: var(--text-1); }
.chip input:checked + span { background: var(--text-1); border-color: var(--text-1); color: var(--bg); }
.chip input:focus-visible + span { outline: 1px solid var(--text-1); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 48px; }
.form-submit .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-note { color: var(--text-3); font-size: 14px; line-height: 1.6; }
.form-status { margin-top: 28px; padding: 18px 20px; border: 1px solid rgba(240, 128, 111, 0.5); color: var(--text-1); font-size: 15px; }
.form-status[hidden] { display: none; }
.form-done { padding: 48px 0 0; }
.form-done[hidden] { display: none; }
.form-done .display { font-size: clamp(48px, 5vw, 80px); margin-bottom: 24px; }
.form-done p { color: var(--text-2); max-width: 46ch; }
.form-done:focus { outline: none; }

.contact-aside { display: grid; gap: 56px; }
.direct { display: grid; gap: 28px; }
.direct .mono { display: block; color: var(--text-3); margin-bottom: 8px; }
.direct a, .direct .value { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 2.6vw, 42px); line-height: 1.05; text-decoration: none; }
.direct a.lower { text-transform: lowercase; }
.direct p { color: var(--text-3); font-size: 14px; margin-top: 6px; }
.next-steps { list-style: none; border-top: 1px solid var(--line); }
.next-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 18px 0 16px; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 15px; line-height: 1.6; }
.next-steps .mono { color: var(--tally); padding-top: 3px; }
.aside-note { color: var(--text-2); font-size: 15px; line-height: 1.7; }
.aside-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.aside-photo img { width: 100%; height: 100%; object-fit: cover; }
.aside-photo figcaption { position: absolute; left: 16px; bottom: 14px; right: 16px; color: var(--text-1); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }

/* ─── OTHER PROJECTS PAGE ─────────────────────────────────── */
.tools { margin-top: 88px; border-top: 1px solid var(--line); }
.tool {
  display: grid; grid-template-columns: 64px minmax(0, 0.9fr) minmax(0, 1.3fr) 150px; gap: 32px; align-items: baseline;
  padding: 40px 0 38px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.tool-no { color: var(--text-3); }
.tool-name { font-size: clamp(40px, 4vw, 64px); transition: color 0.4s; }
.tool-tags { display: block; color: var(--text-3); margin-top: 12px; }
.tool p { color: var(--text-2); font-size: 16px; }
.tool-url { color: var(--text-3); white-space: nowrap; justify-self: end; transition: color 0.3s; }
.tool:hover .tool-url { color: var(--text-1); }
.tools-note { color: var(--text-3); max-width: 62ch; margin: 56px 0 168px; font-size: 15px; }

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 72px 0 32px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-cols .mono { color: var(--text-3); margin-bottom: 14px; display: block; }
.footer-cols a, .footer-cols p { font-size: 15px; color: var(--text-2); text-decoration: none; line-height: 1.9; display: block; }
.footer-cols a:hover { color: var(--text-1); }
.footer-mark { margin: 96px 0 28px; }
.footer-mark img { width: 100%; height: auto; opacity: 0.94; }
.footer-base { display: flex; justify-content: space-between; color: var(--text-3); }
.footer-base-links { display: flex; gap: 32px; }
.footer-base a { text-decoration: none; }
.footer-base a:hover { color: var(--text-1); }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-content { grid-template-columns: 1fr; gap: 28px; }
  .hero-side { max-width: 440px; }
  .about-grid { grid-template-columns: 1fr; gap: 64px; }
  .about-photo { max-width: 560px; }
  .contact-grid { grid-template-columns: 1fr; gap: 88px; }
  .contact-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .tool { grid-template-columns: 48px minmax(0, 1fr) 150px; }
  .tool p { grid-column: 2 / -1; }
}
@media (max-width: 900px) {
  :root { --pad: 22px; --bar: 52px; }
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .film-switch { margin: 0 18px 0 auto; }
  .hero-content { bottom: calc(var(--bar) + 32px); }
  .hero-title { font-size: clamp(52px, 15vw, 84px); }
  .hero-sub { font-size: 16px; margin-bottom: 24px; }
  .bar-bottom .loc { display: none; }
  .section { padding: 112px 0; }
  .work-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .work-head h2 { font-size: 16px; }
  .projects { gap: 88px; }
  .project-frame { aspect-ratio: 4 / 3; }
  .project-caption { grid-template-columns: 1fr; gap: 8px; padding-top: 20px; }
  .project-no { display: none; }
  .project-meta { text-align: left; padding-bottom: 0; }
  .services-grid { grid-template-columns: 1fr; margin-top: 64px; gap: 0; }
  .services-media { display: none; }
  .service { min-height: 0; padding: 40px 0 48px; opacity: 1; }
  .service-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 28px; }
  .service-img img { width: 100%; height: 100%; object-fit: cover; }
  .about-body { grid-template-columns: 1fr; gap: 20px; }
  .facts dd { font-size: 26px; }
  .team { margin-top: 100px; }
  .onset { margin-top: 100px; }
  .team-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); gap: 16px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 8px; scrollbar-width: none; }
  .team-row::-webkit-scrollbar { display: none; }
  .member { flex: 0 0 78%; scroll-snap-align: start; }
  .timeline { margin-top: 64px; }
  .tl-edit, .tl-col, .tl-bar { display: none; }
  .tl-text { grid-template-columns: 1fr; gap: 0; margin-top: 0; position: relative; padding-left: 28px; }
  .tl-text::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
  .tl-text::after { content: ''; position: absolute; left: 0; top: 6px; width: 1px; height: calc(var(--p) * (100% - 12px)); background: var(--tally); }
  .tl-text > div { padding: 0 0 36px; opacity: 1; }
  .tl-text .display { font-size: 34px; display: block; margin-bottom: 10px; color: var(--text-1); }
  .cta { padding: 128px 0; }
  .footer-cols { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-mark { margin: 64px 0 20px; }
  .footer-base { flex-direction: column; gap: 8px; }

  .page-head { padding-top: calc(var(--bar) + 64px); }
  .page-title { font-size: clamp(48px, 13vw, 84px); }
  .page-title.is-long { font-size: clamp(40px, 10.5vw, 64px); }
  .page-sub { font-size: 15px; }
  .case-frame { aspect-ratio: 4 / 3; margin-top: 48px; }
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .case-story { padding-top: 88px; }
  .story p:first-child { font-size: 18px; }
  .case-block { padding-top: 104px; }
  .stills-row.cols-3 { grid-template-columns: 1fr 1fr; }
  .stills-row.cols-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .clips { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; column-gap: 16px; }
  .credits { grid-template-columns: 1fr; }
  .credit { grid-template-columns: 72px minmax(0, 1fr); gap: 20px; padding: 28px 22px; }
  .credit > img { width: 72px; height: 72px; }
  .credit h3 { font-size: 30px; }
  .credit-lead { grid-template-columns: 1fr; }
  .credit-lead .still { aspect-ratio: 4 / 5; }
  .cities { grid-template-columns: 1fr; }
  .embeds { grid-template-columns: 1fr; }
  .reels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .film-play .ring { width: 72px; height: 72px; }
  .case-next { margin-top: 112px; padding: 88px 0 104px; }
  .lightbox { padding: 64px 12px; }
  .lightbox-caption { left: var(--pad); right: var(--pad); bottom: 16px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 8px; transform: none; }
  .lightbox-prev { left: auto; right: 64px; }
  .lightbox-next { right: 12px; }
  .lightbox-caption { right: 128px; }

  .contact-grid { margin-top: 56px; padding: 56px 0 120px; gap: 72px; }
  .form-grid { grid-template-columns: 1fr; row-gap: 32px; }
  .contact-aside { grid-template-columns: 1fr; gap: 48px; }
  .tool { grid-template-columns: 1fr auto; gap: 8px 16px; padding: 32px 0 30px; }
  .tool-no { display: none; }
  .tool p { grid-column: 1 / -1; margin-top: 8px; }
  .tools-note { margin-bottom: 120px; }
}
@media (max-width: 560px) {
  .specs { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .masonry { columns: 1; }
  .clips { gap: 3px; }
  .reels { grid-template-columns: 1fr 1fr; }
  .reels .embed:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 2px); justify-self: center; }
  .next-link .display { font-size: clamp(44px, 14vw, 64px); }
}
@media (min-width: 901px) { .tl-text .display { display: none; } }

/* Visitors who ask for less motion get a still, calm page (adding ?motion to the address overrides this) */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) { scroll-behavior: auto; }
  html:not(.force-motion) body::after { animation: none; }
  html:not(.force-motion)[data-film] body::before { animation: none; }
  html:not(.force-motion) .switch-thumb { transition: none; }
  html:not(.force-motion) :is(.bar, .bar-bottom > *, .hero-side > *, .nav) { animation: none !important; opacity: 1; }
  html:not(.force-motion) .hero-media video { animation: none; }
  html:not(.force-motion) .bar { height: var(--bar); }
  html:not(.force-motion) .w > span { transform: none !important; transition: none; }
  html:not(.force-motion) [data-reveal] { opacity: 1; transform: none; transition: none; }
  html:not(.force-motion) :is(.project-frame, .case-frame) { clip-path: none; transition: none; }
  /* A still list that wraps, so every client shows. The slash in front of the first name on each row is clipped away. */
  html:not(.force-motion) .marquee { display: block; width: auto; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); -webkit-mask-image: none; mask-image: none; }
  html:not(.force-motion) .marquee-track { --sep: 1.2em; animation: none; flex-wrap: wrap; row-gap: 0.12em; font-size: clamp(28px, 3.4vw, 48px); margin-left: calc(-1 * var(--sep)); clip-path: inset(0 0 0 var(--sep)); }
  html:not(.force-motion) .marquee-track li { position: relative; font-size: inherit; padding: 0; margin-left: var(--sep); }
  html:not(.force-motion) .marquee-track li::after { content: none; }
  html:not(.force-motion) .marquee-track li::before { content: '/'; position: absolute; left: calc(-1 * var(--sep)); width: var(--sep); text-align: center; color: rgba(242,240,236,0.18); }
  html:not(.force-motion) .marquee-track[aria-hidden] { display: none; }
  html:not(.force-motion) .cta-bg img { animation: none; }
  html:not(.force-motion) .tc-dot { animation: none; }
  html:not(.force-motion) .services-media img { transition: opacity 0.3s; transform: none; }
  html:not(.force-motion) .tl-col { transition: opacity 0.2s; }
  html:not(.force-motion) .still img { transition: none; }
  html:not(.force-motion) .still:hover img { transform: none; }
  html:not(.force-motion) .drawer { transition: none; }
}
