:root {
  --ground: #0c0d0e;
  --surface: #141518;
  --ink: #f1f0ed;
  --muted: #acadaf;
  --line: #37383b;
  --edge: clamp(16px, 3.2vw, 68px);
  --limit: 2040px;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  background: var(--ground);
  color: var(--ink);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 12px;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; color: inherit; background: none; border: 0; }
:where(a,button,input,textarea):focus-visible { outline: 2px solid #bac4ff; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { padding-inline: var(--edge); max-width: var(--limit); margin-inline: auto; }
.skip { position: fixed; top: -90px; left: 16px; z-index: 20; background: white; color: black; padding: 12px; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The wordmark is the only item above the opening film. */
.mast {
  position: absolute;
  z-index: 8;
  top: max(14px, env(safe-area-inset-top));
  left: max(var(--edge), calc((100% - var(--limit))/2 + var(--edge)));
}
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img, .footer-logo img {
  display: block; width: 109px; height: auto; margin-left: -3px;
  filter: brightness(0) invert(1);
}
.logo img { filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgb(0 0 0 / .38)); }
.contact-title>a:hover, footer>a:last-child:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero { position: relative; isolation: isolate; overflow: hidden; color: white; background: #202525; height: clamp(450px,72svh,810px); }
.film-plane, .hero-shade, .film-plane picture, .film-plane img, .film-plane video, .film-plane canvas, .optical-fallback { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.film-plane { z-index: 0; isolation: isolate; overflow: hidden; pointer-events: none; }
.film-plane img, .film-plane video { object-fit: cover; object-position: 50% 46%; }
.film-plane video { opacity: 0; }
.film-plane video.ready { opacity: 1; }
.film-plane canvas { z-index: 1; }
.optical-fallback { left: 64%; width: 28%; background: repeating-linear-gradient(90deg,#8ad4ff22 0 1px,#fffbdd2a 2px,transparent 4px,#09101f3a 11px,transparent 18px); backdrop-filter: blur(1px); mask-image: linear-gradient(90deg,transparent,#000 17% 82%,transparent); animation: glide 7s ease-in-out infinite alternate; }
.has-shader .optical-fallback { display: none; }
@keyframes glide { to { transform: translateX(-32%); } }
.hero-shade { z-index: 1; pointer-events: none; background: linear-gradient(90deg,#0a0b0e57,transparent 52%), linear-gradient(0deg,#07090ce8,#0a0c103b 33%,transparent 64%); }
.hero-copy { z-index: 2; position: absolute; left: max(var(--edge),calc((100% - var(--limit))/2 + var(--edge))); right: var(--edge); bottom: clamp(84px,7.8vw,112px); pointer-events: none; }

.hero h1 { font-weight: 400; font-size: clamp(29px,2.55vw,42px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 12px; }

.hero-link { display: inline-flex; align-items: center; min-height: 34px; gap: 7px; padding: 6px 12px; font-size: .75rem; pointer-events: auto; border: 1px solid #ffffff77; border-radius: 22px; background: #14161b5c; }
.hero-link:hover { background: #fafaf3; color: #111; }
.play-icon { width: 0; height: 0; border-left: 6px solid currentColor; border-block: 4px solid transparent; }
.sequence { position: absolute; z-index: 2; inset: auto 0 0; max-width: var(--limit); margin: auto; padding: 0 var(--edge) clamp(12px,1.4vw,22px); display: flex; align-items: center; gap: 18px; }
.scene-tabs { flex: 1; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: clamp(7px,1.4vw,24px); }
.scene-tabs button { text-align: left; color: #e4e4e0; min-width: 0; padding: 5px 0; }
.scene-line { height: 2px; display: block; background: #ffffff59; position: relative; }
.scene-line i { position: absolute; inset: 0; background: #eeefff; transform: scaleX(0); transform-origin: left; }
.scene-label { display: block; padding-top: 7px; font-size: clamp(.66rem,.88vw,.86rem); }
.scene-tabs [aria-pressed=true] .scene-label { color: #fff; font-weight: 700; }
.pause,.close { display: grid; place-items: center; flex: none; width: 35px; height: 35px; border: 1px solid #ffffff60; border-radius: 50%; }
.pause span { width: 8px; height: 10px; border-inline: 2px solid; }
.pause.stopped span { width: 0; height: 0; border: 0; border-left: 7px solid; border-block: 4px solid transparent; }
.paused-art .optical-fallback,.paused-art .studio-fallback { animation-play-state: paused; }

.works { padding-block: clamp(23px,2.5vw,43px) clamp(28px,3vw,56px); }
.archive-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.archive-head h2,.viewer-head h2 { font-weight: 400; line-height: 1.05; letter-spacing: -.035em; }
.archive-head h2 { display: flex; align-items: center; gap: 8px; font-size: clamp(24px,2.1vw,35px); }
.total { align-self: flex-start; font: 400 10px/1 var(--sans); letter-spacing: 0; color: #d5d6d8; padding: 3px 5px; border: 1px solid #55565a; border-radius: 15px; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.filters button { border: 1px solid transparent; border-radius: 22px; min-height: 32px; padding: 6px 10px; font-size: .75rem; color: #bfc0c1; white-space: nowrap; }
.filters button:hover { color: white; border-color: #606166; }
.filters button[aria-pressed=true] { color: #141517; background: #eeefed; }
.work-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: clamp(13px,1.18vw,21px) clamp(6px,.62vw,12px); }
.work-card { grid-column: span 3; min-width: 0; }
.work-card a { display: block; }
.work-grid:not(.filtered) .work-card:nth-child(1) { grid-column: span 5; }
.work-grid:not(.filtered) .work-card:nth-child(2) { grid-column: span 7; }
.work-grid:not(.filtered) .work-card:where(:nth-child(n+3):nth-child(-n+8)) { grid-column: span 4; }
.work-image { position: relative; isolation: isolate; overflow: hidden; background: #1b1d20; aspect-ratio: 1.72; }
.work-grid:not(.filtered) .work-card:nth-child(-n+2) .work-image { height: clamp(215px,23vw,440px); aspect-ratio: auto; }
.work-image img,.work-image video { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-image video { position: absolute; inset: 0; opacity: 0; transition: opacity .2s; }
.work-image video.ready { opacity: 1; }
.card-lens,.card-lens canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.card-lens { z-index: 1; }
.card-lens:not(.has-shader)::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--glass-x,50%); width: 30%; transform: translateX(-50%); background: repeating-linear-gradient(90deg,#badeff2b 0,transparent 2px,#8babc025 9px,transparent 12px); backdrop-filter: blur(1px); mask-image: linear-gradient(90deg,transparent,#000 26% 75%,transparent); }
.card-action { position: absolute; z-index: 2; bottom: 9px; right: 9px; padding: 4px 9px; border: 1px solid #ffffff65; border-radius: 18px; background: #15171cc4; color: white; font-size: .67rem; opacity: 0; transition: opacity .15s; }
.work-card a:is(:hover,:focus-visible) .card-action { opacity: 1; }
.caption { padding-top: 5px; }
.caption h3 { font-weight: 400; font-size: clamp(14px,.96vw,17px); line-height: 1.18; letter-spacing: -.032em; }

/* The closing panel aligns the studio signature, the introduction and the inquiry form. */
.closing { background: #151619; color: #f3f3f1; }
.closing-inner { width: min(100%, 1410px); margin-inline: auto; padding-inline: clamp(22px,5.1vw,84px); }
.studio-art {
  position: relative; isolation: isolate; overflow: hidden; width: 100%;
  height: clamp(90px,7.6vw,124px); background: #abb7ca;
}
.studio-art canvas,.studio-fallback,.studio-art::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.studio-fallback {
  background: repeating-linear-gradient(90deg,transparent 0 12px,#45566b26 15px,#dbe4ed75 18px,transparent 21px),
    linear-gradient(125deg,#b9c5d7,#8c9ab7 44%,#c7cede 65%,#8796ab);
}
.studio-art::after { content:""; pointer-events:none; background:linear-gradient(90deg,#d2ddedb5,#c5d3e942 38%,#c3d1e32e 61%,#e2e7eea8); }
.signature { z-index:1; position:relative; height:100%; display:flex; align-items:center; justify-content:space-between; gap:24px; color:#0b0c10; }
.signature img { display:block; width:clamp(82px,7.3vw,116px); height:auto; filter:brightness(0); margin-left:-4px; }
.signature .cities { font-size:clamp(12px,.94vw,15px); font-weight:550; line-height:1.2; letter-spacing:-.015em; }
.cities b { font-weight:400; padding-inline:.29em; opacity:.58; }
.closing-body {
  display:grid; grid-template-columns:minmax(0,.96fr) minmax(0,1fr); column-gap:clamp(54px,8vw,140px);
  align-items:start; padding-block:clamp(38px,4.2vw,70px) clamp(32px,3.5vw,56px);
}
.studio-copy { max-width: 47ch; }
.studio-copy p { margin:0; color:#c1c3c8; font-size:clamp(15px,1.12vw,18px); line-height:1.52; letter-spacing:-.016em; }
.studio-copy strong { display:block; font-size:clamp(23px,2.08vw,34px); color:#f3f3f1; font-weight:500; line-height:1.13; letter-spacing:-.04em; margin:0 0 13px; text-wrap:balance; }
.studio-email { display:inline-flex; gap:9px; align-items:center; margin-top:24px; padding-block:3px; color:#e7e9f1; font-size:.94rem; text-underline-offset:4px; }
.studio-email:hover { text-decoration:underline; }
.studio-email span { color:#b7bed2; }
.contact h2 { margin:1px 0 16px; font-size:clamp(20px,1.58vw,25px); line-height:1.2; font-weight:500; letter-spacing:-.035em; }
.contact-form { display:grid; gap:10px; }
.form-pair { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.contact-form label { display:block; min-width:0; color:#d3d5d9; font-size:.77rem; line-height:1.3; }
.field-shell { display:block; height:100%; border:1px solid #414349; border-radius:6px; padding:9px 12px 5px; background:#1b1d20; transition:border-color .15s; }
.field-shell:focus-within { border-color:#b8c7ec; box-shadow:0 0 0 1px #b8c7ec; }
.contact-form input:not([type=hidden]),.contact-form textarea {
  display:block; padding:4px 0; border:none; border-radius:0; outline:none; width:100%; min-width:0;
  background:transparent; color:#fff; font-size:1rem; line-height:1.3;
}
.contact-form textarea { min-height:48px; resize:vertical; }
.form-bottom { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.submit { display:inline-flex; align-items:center; justify-content:center; gap:13px; flex:none;
  min-height:38px; border-radius:4px; background:#e9ebef; color:#151619; padding:7px 14px; font-weight:550; font-size:.82rem; }
.submit:hover { background:#fff; }
.submit:after { content:"↗"; font-weight:400; }
.submit:disabled { opacity:.6; }
.form-status,.credit { font-size:.83rem; line-height:1.45; }
.form-status a,.film-failed a { text-decoration:underline; }
.site-footer { background:#151619; color:#adafb6; }
.footer-line { display:flex; align-items:center; justify-content:space-between; gap:18px; min-height:49px; border-top:1px solid #33353a; font-size:.78rem; }
.top-link:hover { text-decoration:underline; text-underline-offset:4px; }
.archive-heading { display:flex; align-items:center; gap:20px; }
.locale { display:inline-flex; gap:3px; align-items:center; white-space:nowrap; font-size:.71rem; letter-spacing:.045em; line-height:1; }
.locale span,.locale a { display:inline-grid; place-items:center; min-width:30px; min-height:34px; }
.locale a { color:#b5b7c1; text-underline-offset:3px; }
.locale a:hover { text-decoration:underline; color:#fff; }
.locale [aria-current] { color:#fff; font-weight:650; }
.locale i { width:1px; height:11px; background:#51535a; }
.viewer-controls { display:flex; gap:10px; align-items:center; }
@media(max-width:750px) {
  .closing-inner { padding-inline:clamp(18px,5vw,32px); }
  .closing-body { grid-template-columns:1fr; row-gap:25px; padding-block:27px 23px; }
  .studio-copy { max-width:55ch; }
  .studio-copy strong { margin-bottom:8px; }
  .studio-email { margin-top:12px; }
  .contact { border-top:1px solid #393a3e; padding-top:21px; }
  .contact h2 { margin:0 0 11px; }
  .studio-art { height:85px; }
  .signature .cities { font-size:12px; }
  .archive-heading { justify-content:space-between; }
}
@media(max-width:400px) {
  .form-pair { grid-template-columns:1fr; }
  .viewer-controls { gap:4px; }
}

body.lock { overflow: hidden; }
dialog { color: var(--ink); background: var(--surface); border: 1px solid #42434a; width: min(1080px,95vw); max-width: 100%; max-height: 94dvh; padding: 0; overflow: auto; }
dialog::backdrop { background: #080a0dea; backdrop-filter: blur(8px); }
.viewer-inner { padding: clamp(13px,1.5vw,24px); }
.viewer-head,.viewer-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.viewer-head { margin-bottom: 10px; }

.viewer-head h2 { font-size: clamp(21px,1.85vw,32px); margin-top: 4px; }
.close { font: 400 25px/1 var(--sans); }
.viewer-stage { background: #070808; position: relative; display: grid; place-items: center; }
.viewer-stage video,.viewer-stage img { display: block; width: 100%; height: min(58dvh,620px); object-fit: contain; }
.viewer-actions { margin-top: 10px; }
.piece-list { display: flex; flex-wrap: wrap; gap: 5px; }
.piece-list button { border: 1px solid #646569; padding: 6px 10px; border-radius: 18px; font-size: .75rem; }
.piece-list button[aria-pressed=true] { background: #efefea; color: #161719; }
.piece-count { font: .72rem var(--sans); }
.credit { margin-top: 9px; color: var(--muted); }
.film-failed { padding: 20px; text-align: center; }
@media(max-width:1050px) {
  .work-card { grid-column: span 4; }
  .work-grid:not(.filtered) .work-card:nth-child(-n+2) { grid-column: span 6; }
}
@media(max-width:700px) {
  :root { --edge: 14px; scroll-padding-top: 10px; }
  .mast { top: max(8px, env(safe-area-inset-top)); }

  .logo img { width: 76px; }

  .hero { height: clamp(420px,68svh,640px); }
  .hero-copy { bottom: 77px; }
  .hero h1 { font-size: 28px; }

  .hero-shade { background: linear-gradient(0deg,#090c11e6,#090b1038 39%,transparent 68%); }
  .sequence { gap: 7px; padding-bottom: 10px; }
  .scene-tabs { gap: 5px; }
  .scene-tabs button { min-height: 43px; display: flex; flex-direction: column; justify-content: flex-start; padding: 5px 0 0; }
  .scene-line { width: 100%; }
  .scene-label { font-size: .59rem; line-height: 1.2; padding-top: 6px; }
  .pause { width: 30px; height: 30px; }
  .archive-heading { justify-content: space-between; }
  .archive-head { display: block; margin-bottom: 8px; }
  .archive-head h2 { font-size: 25px; }
  .filters { margin-top: 7px; }
  .filters button { min-height: 31px; padding: 4px 7px; font-size: .71rem; }
  .work-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 6px; }
  .work-card,.work-grid:not(.filtered) .work-card:nth-child(n) { grid-column: span 1; }
  .work-grid:not(.filtered) .work-card:is(:first-child,:last-child) { grid-column: span 2; }
  .work-image,.work-grid:not(.filtered) .work-card:nth-child(-n+2) .work-image { height: auto; aspect-ratio: 1.5; }
  .work-grid:not(.filtered) .work-card:first-child .work-image { aspect-ratio: 1.9; }
  .work-grid:not(.filtered) .work-card:last-child .work-image { aspect-ratio: 2.35; }
  .caption { padding-top: 4px; }
  .caption h3 { font-size: 14px; }

  dialog { width: 100%; max-height: 100dvh; }
}
@media(prefers-reduced-motion:reduce) {
  :root { scroll-behavior: auto; }
  *,*:before,*:after { animation-duration: .01ms!important; animation-iteration-count: 1!important; transition-duration: .01ms!important; }
  .card-lens { display: none; }
}

.upcoming-note {
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 3%, 24px);
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 15px;
  border: 1px solid rgb(255 255 255 / .28);
  border-radius: 999px;
  color: #fff;
  background: rgb(24 18 32 / .88);
  font: 500 13px/1.2 var(--sans);
  white-space: nowrap;
}
.credit:empty {display:none}
@media(min-width:1051px) {
  .work-grid:not(.filtered) .work-card:nth-child(n+13) {grid-column:span 4}
}
@media(min-width:701px) and (max-width:1050px) {
  .work-grid:not(.filtered) .work-card:nth-last-child(-n+4) {grid-column:span 6}
}
@media(max-width:700px) {
  .work-grid:not(.filtered) .work-card:last-child {grid-column:span 1}
  .work-grid:not(.filtered) .work-card:last-child .work-image {aspect-ratio:1.5}
}
