: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,.contact 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; }

.studio { background: var(--ground); }
.studio-art {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; width: 100%; height: clamp(110px,10vw,180px);
  background: #b5c1d1;
}
.studio-art canvas,.studio-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.studio-fallback {
  background: repeating-linear-gradient(90deg,transparent 0 12px,#283c5822 15px,#d7e7f76b 18px,transparent 21px),
    radial-gradient(ellipse at 44% 48%,#e4edf2,#aab5cb 36%,#6f7b96 76%,#939ebc);
}
/* A soft, fixed veil keeps the black wordmark readable throughout the light cycle. */
.studio-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center,#e2ebf69c 0%,#d3e0f259 38%,#c9d7e92b 85%);
}
.studio-art img { position: relative; z-index: 1; width: clamp(90px,9vw,162px); height: auto; filter: brightness(0); }
.studio-copy { display: grid; justify-items: center; padding-block: clamp(24px,3vw,48px); }
.studio-copy p {
  max-width: 58ch; font-size: clamp(17px,1.32vw,23px); font-weight: 400;
  line-height: 1.44; letter-spacing: -.022em; text-align: center; text-wrap: pretty;
}
.contact { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(20px,4vw,72px); padding-block: clamp(30px,3.6vw,63px); }
.contact h2 { max-width: 15ch; font-size: clamp(25px,2.1vw,38px); margin: 0 0 13px; }

.contact-title>a { font-size: .84rem; border-bottom: 1px solid #636468; padding-bottom: 2px; }
.contact-form { display: grid; gap: 15px; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
.contact-form label { display: flex; flex-direction: column; gap: 3px; font-size: .81rem; color: #d5d6d7; }
.contact-form input,.contact-form textarea { border: 0; border-bottom: 1px solid #67686a; background: transparent; color: var(--ink); border-radius: 0; padding: 5px 1px 7px; width: 100%; font-size: 1rem; }
.contact-form textarea { resize: vertical; min-height: 57px; }
.form-bottom { display: flex; align-items: center; gap: 12px; }
.submit { background: #eaeae7; color: #151619; border-radius: 24px; padding: 9px 15px; font-size: .8rem; flex: none; }
.submit:hover { background: white; }
.submit:disabled { opacity: .65; }
.form-status,.credit { font-size: .82rem; line-height: 1.45; }
.form-status a,.film-failed a { text-decoration: underline; }
footer { display: flex; align-items: center; gap: 16px; padding-block: 13px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.footer-logo img { width: 56px; }
footer i { font-style: normal; padding: 0 4px; }
footer>a:last-child { margin-left: auto; }

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-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; }

  .studio-art { height: clamp(94px,23vw,128px); }
  .studio-copy p { text-align: left; }
  .studio-copy { padding: 22px var(--edge); }

  .contact { grid-template-columns: 1fr; gap: 19px; }
  .form-pair { gap: 13px; }
  footer { gap: 8px; font-size: .68rem; }
  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; }
}
