@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-v20.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #111111;
  --bg-2: #181818;
  --fg: #f2f2f2;
  --muted: #8b8b8b;
  --line: #2a2a2a;
  --gutter: clamp(16px, 2.6vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
a.u { border-bottom: 1px solid currentColor; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 200; padding: 10px 14px; background: var(--fg); color: var(--bg); }
.skip-link:focus { top: 12px; }

.label { font-size: 13px; text-transform: uppercase; letter-spacing: .01em; }
.muted { color: var(--muted); }
.h-xl, .h-lg, .h-md {
  font-weight: 500; text-transform: uppercase; letter-spacing: -.045em; line-height: .92;
}
.h-xl { font-size: clamp(48px, 10.5vw, 168px); }
.h-lg { font-size: clamp(36px, 5.6vw, 84px); }
.h-md { font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -.035em; }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
  mix-blend-mode: difference;
}
.site-header nav { display: flex; gap: 22px; }
.site-header a:hover { opacity: .6; }

.site-footer { padding: 140px var(--gutter) 28px; }
.site-footer .row { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: 22px; flex-wrap: wrap; }
.site-footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a.u { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.site-footer a:hover { opacity: .6; }

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

.showcase { position: relative; height: 560vh; }
.showcase .intro {
  position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 28px;
  text-align: center; pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(17,17,17,.82), rgba(17,17,17,.4) 70%, transparent);
}
.showcase .intro .hint { position: absolute; bottom: 26px; left: 0; right: 0; }
@media (prefers-reduced-motion: no-preference) {
  .showcase .intro h1, .showcase .intro p { animation: rise 1.2s var(--ease) both; }
  .showcase .intro p { animation-delay: .25s; }
  .showcase .intro .hint { animation-delay: .6s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
.section.flow {
  position: relative; z-index: 2; margin-top: -100vh; padding-top: 45vh;
  background: linear-gradient(180deg, transparent 0, rgba(17,17,17,.75) 30vh, var(--bg) 60vh);
}
.showcase .stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  perspective: 1400px; perspective-origin: 50% 40%;
}
.showcase .plane {
  position: absolute; left: 50%; top: 50%; width: 150vw; height: 260vh;
  transform-style: preserve-3d; will-change: transform;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4vw;
}
.showcase .col { display: flex; flex-direction: column; gap: 1.4vw; will-change: transform; }
.showcase .col img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; }
.showcase .shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(17,17,17,.9) 0%, transparent 38%),
    radial-gradient(ellipse at 50% 50%, transparent 30%, var(--bg) 85%);
}
.showcase .caption {
  position: absolute; inset: auto var(--gutter) 9vh var(--gutter); z-index: 3;
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
}
.showcase .caption .words { display: flex; flex-direction: column; }
.showcase .caption .words span { display: block; opacity: .15; transition: opacity .5s; }
.showcase .caption .words span.on { opacity: 1; }
.showcase .progress {
  flex: none; width: clamp(120px, 14vw, 220px); height: 2px; margin-bottom: .6em;
  background: rgba(242,242,242,.18); overflow: hidden;
}
.showcase .progress span { display: block; height: 100%; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; }

.section { padding: 120px var(--gutter) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 18px; }
.expertise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; perspective: 1200px; }
.x-card {
  position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2);
  transform-style: preserve-3d; transform-origin: 50% 100%; text-align: left;
}
.x-card img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; will-change: transform; transition: filter .6s; }
.x-card .top { position: absolute; inset: 14px 14px auto 14px; display: flex; justify-content: space-between; gap: 12px; z-index: 2; font-size: clamp(15px, 1.25vw, 18px); font-weight: 500; }
.x-card .plus { font-size: 22px; line-height: 1; transition: transform .4s var(--ease); }
.x-card .body {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 16px; max-width: 46ch;
  opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .4s var(--ease);
}
.x-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,.2) 28%, transparent 45%, transparent 55%, rgba(0,0,0,.8)); opacity: .85; transition: opacity .4s; }
.x-card.open::after, .x-card:hover::after { opacity: 1; }
.x-card.open .body { opacity: 1; transform: none; }
.x-card.open .plus { transform: rotate(45deg); }
.x-card.open img { filter: brightness(.55); }

.about { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 40px var(--gutter); align-items: start; }
.about h2 { grid-column: 1 / 3; }
.about dl { grid-column: 1 / 3; display: grid; grid-template-columns: 1fr 1.6fr; gap: 36px var(--gutter); }
.about dd { max-width: 48ch; }
.about .portrait { grid-column: 3; grid-row: 1 / span 2; overflow: hidden; aspect-ratio: 2/3; }
.about .portrait img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }

.works-hero { padding: 150px var(--gutter) 36px; }
.works-hero .intro { display: grid; grid-template-columns: 1fr 1fr; gap: 24px var(--gutter); margin-top: 28px; align-items: end; }
.works-hero .intro p { max-width: 52ch; font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 34px; justify-content: end; }
.facts div { display: flex; flex-direction: column; }
.facts b { font-weight: 500; font-size: 26px; letter-spacing: -.03em; }

.filters {
  position: sticky; top: 52px; z-index: 20; display: flex; gap: 8px; flex-wrap: wrap;
  padding: 12px var(--gutter); background: linear-gradient(var(--bg) 70%, transparent);
}
.chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13px; text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: var(--fg); }
.chip.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip sup { font-size: 10px; margin-left: 3px; opacity: .6; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 16px; padding: 18px var(--gutter) 0; }
.card { display: block; perspective: 1000px; transition: opacity .4s, transform .4s; }
.card.hide { display: none; }
.card .media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--bg-2); transform-style: preserve-3d; transition: transform .5s var(--ease); }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .media img { transform: scale(1.05); }
.card .view {
  position: absolute; right: 12px; bottom: 12px; padding: 7px 12px; border-radius: 999px;
  background: var(--fg); color: var(--bg); font-size: 12px; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease);
}
.card:hover .view { opacity: 1; transform: none; }
.card .meta { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin-top: 14px; }
.card .meta .name { font-weight: 500; text-transform: uppercase; }
.card .meta .sum { grid-column: 1 / -1; color: var(--muted); max-width: 40ch; }
.card .meta .role { margin-top: 6px; }
.card .tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 11px; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; color: #bdbdbd; }
.card.soon { cursor: default; }
.card.soon .view { background: transparent; color: var(--fg); border: 1px solid var(--fg); opacity: 1; transform: none; }

.cs-head { padding: 130px var(--gutter) 28px; }
.back { display: inline-flex; gap: 8px; margin-bottom: 40px; }
.back:hover { opacity: .6; }
.cs-head .sum { font-size: clamp(17px, 1.6vw, 22px); max-width: 44ch; margin-top: 14px; color: #cfcfcf; }
.cs-hero { padding: 0 var(--gutter); }
.cs-hero .frame { display: block; overflow: hidden; background: var(--bg-2); }
.cs-hero img, .cs-hero video { display: block; width: 100%; height: auto; transform-origin: 50% 0; will-change: transform; }
.cs-sec .gallery { margin-top: 40px; }
.gallery button.small { width: auto; max-width: min(100%, 592px); }

.overview {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px var(--gutter); align-items: start;
  margin: 0 var(--gutter); padding: 48px 0 56px; border-bottom: 1px solid var(--line);
}
.ov-role { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; margin-top: 6px; }
.ov-meta { margin-top: 8px; }
.ov-skills { margin-top: 28px; }
.ov-skills .label { margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.skill {
  font-size: 14px; line-height: 1; padding: 9px 14px; border-radius: 999px;
  border: 1px solid #3a3a3a; background: var(--bg-2); color: var(--fg);
}
.ov-details { display: grid; grid-template-columns: 110px 1fr; gap: 10px 20px; margin-top: 32px; max-width: 60ch; }
.overview > .ov-details { margin-top: 0; }
.ov-details dt { padding-top: 2px; }
.ov-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.stat { border-top: 1px solid var(--line); padding-top: 14px; }
.stat b { display: block; font-weight: 500; font-size: clamp(34px, 3.2vw, 46px); letter-spacing: -.04em; line-height: 1; }
.stat span { color: var(--muted); display: block; margin-top: 8px; max-width: 28ch; }

.cs-body { display: grid; grid-template-columns: 220px 1fr; gap: var(--gutter); padding: 0 var(--gutter); }
.toc { position: sticky; top: 90px; align-self: start; padding-top: 72px; display: flex; flex-direction: column; gap: 8px; }
.toc a { color: var(--muted); transition: color .25s; display: flex; gap: 10px; align-items: center; }
.toc a::before { content: ''; width: 0; height: 1px; background: var(--fg); transition: width .3s var(--ease); }
.toc a.on { color: var(--fg); }
.toc a.on::before { width: 18px; }
.cs-sec { padding-top: 72px; scroll-margin-top: 40px; }
.cs-sec > .label { margin-bottom: 18px; }
.prose { max-width: 62ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; letter-spacing: -0.014em; }
.prose p + p { margin-top: 1em; }

.process { display: flex; flex-direction: column; gap: 14px; }
.step { position: relative; display: block; width: 100%; text-align: left; overflow: hidden; background: #efe9e1; }
.step img { width: 100%; transition: transform .8s var(--ease); }
.step:hover img { transform: scale(1.02); }
.step .n { position: absolute; top: 10px; right: 12px; color: #111; font-size: 12px; }

.gallery { display: flex; flex-direction: column; gap: 14px; }
.gallery button { display: block; width: 100%; overflow: hidden; background: var(--bg-2); }
.gallery img { width: 100%; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.gallery .in img { transform: none; }

.next { padding: 140px var(--gutter) 0; }
.next .grid { padding: 18px 0 0; }

.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
.vid { display: block; text-align: left; }
.vid-media { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-2); }
.vid-media video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.vid:hover .vid-media video { transform: scale(1.03); }
.vid-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.vid.previewing .vid-poster { opacity: 0; }
.vid.previewing .vid-play { opacity: 0; }
.vid-play {
  position: absolute; left: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--fg); color: var(--bg); font-size: 14px; padding-left: 3px;
  transition: transform .4s var(--ease), opacity .3s;
}
.vid:hover .vid-play { transform: scale(1.1); }
.vid-meta { display: grid; gap: 2px; margin-top: 12px; }
.vid-title { font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: -.02em; }
.vid-hint { margin-top: 18px; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,.96);
  display: none; place-items: center; padding: 56px var(--gutter);
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: calc(100svh - 112px); object-fit: contain; }
.lightbox .lb-video { width: min(100%, calc((100svh - 112px) * 16 / 9)); max-height: calc(100svh - 112px); background: #000; }
.lightbox [hidden] { display: none; }
.lightbox .lb-bar { position: absolute; inset: 18px var(--gutter) auto; display: flex; justify-content: space-between; }
.lightbox .lb-nav { position: absolute; inset: auto var(--gutter) 18px; display: flex; justify-content: space-between; }

.works-hero .intro a.u { border-bottom: 1px solid currentColor; }
.filters[hidden] { display: none; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 16px; padding: 18px var(--gutter) 0; }
.archive-empty { grid-column: 1 / -1; padding: 40px 0 80px; }
.a-tile.hide { display: none; }
.a-tile { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.a-media { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); margin-bottom: 10px; }
.a-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.a-tile:hover .a-media img { transform: scale(1.03); }
.a-tile.open .a-media img { opacity: .55; }
.a-meta { display: flex; justify-content: space-between; align-items: center; font-size: 17px; font-weight: 500; }
.a-tile .plus { font-size: 22px; font-weight: 400; line-height: 1; transition: transform .4s var(--ease); }
.a-tile.open .plus { transform: rotate(45deg); }
.archive-drawer {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 32px var(--gutter);
  background: var(--bg-2); padding: clamp(20px, 3vw, 40px); animation: drawer .45s var(--ease);
}
@keyframes drawer { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.a-info { position: sticky; top: 120px; align-self: start; display: flex; flex-direction: column; gap: 12px; }
.a-sum { color: #cfcfcf; max-width: 40ch; }
.a-info .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.a-close { align-self: start; margin-top: 6px; color: var(--muted); }
.a-close:hover { color: var(--fg); }
.a-group + .a-group { margin-top: 32px; }
.a-group > .label { margin-bottom: 12px; }
.a-masonry { columns: 3 220px; column-gap: 10px; }
.a-masonry button { display: block; width: 100%; margin-bottom: 10px; break-inside: avoid; background: var(--bg); }
.a-masonry img { width: 100%; transition: opacity .3s; }
.a-masonry button:hover img { opacity: .85; }

@media (max-width: 900px) {
  .expertise, .grid, .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-drawer { grid-template-columns: 1fr; }
  .a-info { position: static; }
  .about { grid-template-columns: 1fr; }
  .about h2, .about dl, .about .portrait { grid-column: 1; grid-row: auto; }
  .about .portrait { max-width: 420px; }
  .works-hero .intro { grid-template-columns: 1fr; }
  .facts { justify-content: start; }
  .overview { grid-template-columns: 1fr; }
  .cs-body { grid-template-columns: 1fr; }
  .toc { display: none; }
  .showcase .plane { grid-template-columns: repeat(4, 1fr); width: 190vw; }
}
@media (max-width: 600px) {
  .expertise, .grid, .videos, .archive-grid { grid-template-columns: 1fr; }
  .about dl { grid-template-columns: 1fr; gap: 8px; }
  .about dd { margin-bottom: 20px; }
  .ov-details { grid-template-columns: 1fr; gap: 2px; }
  .ov-details dd { margin-bottom: 12px; }
  .x-card .body { opacity: 1; transform: none; }
  .x-card img { filter: brightness(.6); }
  .site-header nav { gap: 14px; }
  .site-header nav [data-clock] { display: none; }
  .showcase .plane { grid-template-columns: repeat(3, 1fr); width: 230vw; }
  .showcase .caption { flex-direction: column; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery img { transform: none; }
}

.legal { padding: 0 var(--gutter); }
.legal h2 { margin: 2em 0 .5em; font-size: 13px; text-transform: uppercase; letter-spacing: .01em; color: var(--muted); }

.site-header a, .site-footer .links a, .toc a, .section-head > a { padding-block: 3px; margin-block: -3px; }
.back { padding-block: 3px; margin-top: -3px; margin-bottom: 37px; }
.site-footer a.u { border-bottom: 0; padding: 3px 0 4px; margin-block: -3px -4px; background: linear-gradient(currentColor, currentColor) left 0 bottom 3px / 100% 1px no-repeat; }
.h-xl { overflow-wrap: break-word; }
