:root {
  --bg: #0b0b0d;
  --raise: #131316;
  --line: #1f1f24;
  --fg: #ededee;
  --mute: #a1a1a9;
  --dim: #7e7e87;
  --accent: #5b86ff;
  --pad: clamp(18px, 3.2vw, 48px);
  --w: min(100vw - 2 * var(--pad), 1680px);
  --g: clamp(10px, 1.1vw, 16px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --display: "Bricolage Grotesque", "Geist", sans-serif;
  --red: #ff3b30;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: dark;
}

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

html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 88px; }
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  color: var(--fg);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.muted { color: var(--mute); }
.eyebrow { margin: 0 0 28px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }

.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
  padding: 0 var(--pad);
}
.bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(11 11 13 / .78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.brand { display: flex; align-items: center; gap: 10px; justify-self: start; }
.mark { width: 22px; height: 22px; fill: none; stroke: var(--fg); stroke-width: 1.4; transition: transform 1.2s var(--ease), stroke .4s; }
.brand:hover .mark { transform: rotate(90deg); stroke: var(--accent); }
.brand-name { font-weight: 600; font-size: 16px; letter-spacing: -.02em; }

.tabs { position: relative; }
.tabs-track { display: flex; gap: clamp(22px, 3vw, 44px); }
.tab { position: relative; padding: 10px 6px; margin: 0 -6px; font-size: 15px; font-weight: 500; letter-spacing: -.01em; color: var(--mute); transition: color .6s var(--ease); }
.tab:hover, .tab[aria-selected="true"] { color: var(--fg); }
.tab.is-empty { color: var(--dim); }
.tab.is-empty[aria-selected="true"] { color: var(--mute); }
.tab sup { margin-left: 3px; font: 500 10px/0 var(--mono); color: var(--dim); vertical-align: 6px; transition: color .6s var(--ease); }
.tab[aria-selected="true"] sup { color: var(--accent); }
.tabs-track { position: relative; z-index: 1; }
.tabs-line { position: absolute; left: 0; bottom: 2px; z-index: 1; height: 2px; width: 0; background: var(--accent); border-radius: 2px; box-shadow: 0 0 12px rgb(91 134 255 / .55); }
.tab { display: inline-block; }

.links { justify-self: end; display: flex; gap: 24px; font-size: 14px; color: var(--mute); }
.links a { padding: 10px 2px; transition: color .3s; }
.links .cta { color: var(--fg); }
.links .cta span { color: var(--accent); margin-left: 2px; }
.links a:hover { color: var(--fg); }

main { width: var(--w); margin: 0 auto; }

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  min-height: min(64vh, 640px);
  padding: 120px 0 56px;
  text-align: center;
}

.intro h1 { max-width: 15ch; margin: 0; font: 700 clamp(40px, 6.6vw, 104px)/.98 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.intro h1 .red { display: block; color: var(--red); }
.w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.35em); animation: word .9s var(--ease) forwards; animation-delay: calc(var(--k) * 110ms + 150ms); }
.intro-side { margin: 0; font: 400 12px/1.7 var(--mono); animation: fade 1s ease both; animation-delay: calc(var(--k) * 110ms + 350ms); }
.dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px rgb(61 220 132 / .7); vertical-align: 1px; animation: blink 1.1s ease-in-out infinite; }

.work-head { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 18px; border-top: 1px solid var(--line); }
.work-head p { margin: 0; }
.work-title { font-weight: 500; font-size: 15px; }
.work-title span { margin-left: 12px; font: 400 12px var(--mono); color: var(--dim); }
.work-hint { font: 400 12px var(--mono); color: var(--dim); }

.grid { transition: opacity .22s ease, transform .22s ease; }
.grid.is-leaving { opacity: 0; transform: translateY(6px); }
.row { display: grid; grid-template-columns: var(--cols); gap: var(--g); margin-bottom: calc(var(--g) * 2.4); }

.tile { display: block; width: 100%; text-align: left; transition: opacity .5s var(--ease); }
.frame {
  display: block;
  height: calc(var(--w) / var(--row-ar));
  overflow: hidden;
  border-radius: 6px;
  background: var(--raise);
  animation: unveil 1s var(--ease) both;
  animation-delay: calc(var(--i) * 70ms);
}
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos); transition: transform 1.2s var(--ease); }
.tile.is-source .frame { visibility: hidden; }
.frame { position: relative; }
.clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos); opacity: 0; transition: opacity .5s; }
.tile:hover .clip, .clip.is-on { opacity: 1; }
.play { position: absolute; left: 14px; bottom: 14px; width: 30px; height: 30px; border-radius: 50%; background: rgb(11 11 13 / .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%23ededee'/%3E%3C/svg%3E") center / 16px no-repeat; backdrop-filter: blur(6px); transition: opacity .4s; }
.tile:hover .play { opacity: 0; }

.cap {
  display: flex;
  gap: 14px;
  padding-top: 11px;
  font: 400 11px/1 var(--mono);
  letter-spacing: .03em;
  color: var(--dim);
  transition: color .4s;
  animation: fade .8s ease both;
  animation-delay: calc(var(--i) * 70ms + 250ms);
}
.cap-n { color: var(--mute); }
.cap-kind { margin-left: auto; }

@media (hover: hover) {
  .grid:has(.tile:hover) .tile:not(:hover) { opacity: .42; }
  .tile:hover .frame img { transform: scale(1.035); }
  .tile:hover .cap { color: var(--fg); }
}

.empty { min-height: 30vh; padding: 56px 0; border-radius: 6px; }
.empty p { margin: 0; max-width: 520px; }
.empty p:first-child { margin-bottom: 10px; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; }
.empty a { display: inline-block; padding: 3px 0 1px; color: var(--fg); border-bottom: 1px solid var(--dim); transition: border-color .3s; }
.empty a:hover { border-color: var(--accent); }

.team { padding-top: clamp(32px, 6vh, 64px); }
.work { padding-top: clamp(96px, 14vh, 160px); }
.team-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.member {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.3fr;
  align-items: center;
  gap: 24px;
  min-height: 112px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.member.is-in { opacity: 1; transform: none; }
.member:nth-child(2) { transition-delay: .08s; }
.member:nth-child(3) { transition-delay: .16s; }
.member-id { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); }
.member-id > span { display: grid; gap: 6px; }
.avatar { width: clamp(52px, 4.6vw, 68px); height: auto; aspect-ratio: 1; border-radius: 14px; background: radial-gradient(circle at 50% 35%, #26262c, var(--raise)); object-fit: cover; transition: transform .6s var(--ease); }
.member:hover .avatar { transform: rotate(-4deg) scale(1.05); }
.member-name { font: 600 clamp(28px, 3.2vw, 44px)/1 var(--display); letter-spacing: -.03em; }
.member-handle { justify-self: start; padding: 6px 0; font: 400 12px/1 var(--mono); color: var(--dim); transition: color .3s; }
.member-handle:hover { color: var(--accent); }
.member-roles { font: 400 12px var(--mono); color: var(--mute); }
.member-work { display: flex; justify-content: flex-end; gap: 8px; }
.peek { width: clamp(88px, 8vw, 132px); aspect-ratio: 2.1; overflow: hidden; border-radius: 4px; background: var(--raise); }
.peek img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; opacity: .8; }
.peek:hover img { transform: scale(1.06); opacity: 1; }
.peek-empty { font: 400 12px var(--mono); color: var(--dim); }

.contact {
  width: var(--w);
  margin: 0 auto;
  padding: clamp(120px, 18vh, 200px) 0 32px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.contact.is-in { opacity: 1; transform: none; }
.contact-cta {
  display: inline-block;
  font: 700 clamp(52px, 10vw, 156px)/.95 var(--display);
  letter-spacing: -.045em;
  line-height: .95;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 3px no-repeat;
  padding-bottom: .06em;
  transition: background-size .7s var(--ease);
}
.contact-cta span { color: var(--accent); font-size: .55em; vertical-align: .55em; margin-left: .06em; display: inline-block; transition: transform .6s var(--ease); }
.contact-cta:hover { background-size: 100% 3px; }
.contact-cta:hover span { transform: translate(.08em, -.08em); }
.contact-note { margin: 28px 0 0; color: var(--mute); max-width: 440px; }
.fine { display: flex; justify-content: space-between; margin: clamp(88px, 14vh, 140px) 0 0; padding-top: 18px; border-top: 1px solid var(--line); font: 400 11px var(--mono); color: var(--dim); }

.viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--fg);
  background: rgb(7 7 9 / 0);
  transition: background-color .5s var(--ease);
  overflow: hidden;
}
.viewer::backdrop { background: transparent; }
.viewer.is-open { background: rgb(7 7 9 / .97); }
html.is-locked .tabs { opacity: 0; transition: opacity .3s; }
.viewer-stage { position: absolute; inset: 76px 88px 104px; touch-action: pan-y; }
.viewer-vid { position: fixed; z-index: 1; border-radius: 4px; background: #000; object-fit: contain; }
.viewer-img { position: fixed; transform-origin: 0 0; will-change: transform, clip-path; border-radius: 4px; user-select: none; -webkit-user-drag: none; }
.viewer-ui { opacity: 0; transition: opacity .35s ease; }
.viewer.is-open .viewer-ui { opacity: 1; transition-delay: .25s; }
.viewer-meta, .viewer-count { position: absolute; bottom: 38px; margin: 0; font: 400 12px var(--mono); }
.viewer-meta { left: var(--pad); display: flex; gap: 14px; }
.viewer-kind { color: var(--mute); }
.viewer-count { left: 50%; transform: translateX(-50%); }
.viewer-count span { color: var(--dim); }
.viewer-nav { position: absolute; right: var(--pad); bottom: 26px; display: flex; gap: 8px; }
.viewer-nav button, .viewer-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--mute);
  transition: color .3s, border-color .3s, background-color .3s;
}
.viewer-nav button:hover, .viewer-close:hover { color: var(--fg); border-color: #34343b; background: var(--raise); }
.viewer-close { position: absolute; top: 18px; right: var(--pad); }
.viewer svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.viewer.is-single .viewer-nav, .viewer.is-single .viewer-count { display: none; }

@keyframes unveil { from { opacity: 0; clip-path: inset(10% 0 0 0 round 6px); transform: translateY(16px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 6px); transform: none; } }
@keyframes blink { 50% { opacity: .15; box-shadow: none; } }
@keyframes word { to { opacity: 1; filter: none; transform: none; } }
@keyframes fade { from { opacity: 0; } }

@media (max-width: 720px) {
  .bar { grid-template-columns: 1fr auto; height: 60px; }
  .tabs {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    padding: 4px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgb(19 19 22 / .82);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 12px 32px rgb(0 0 0 / .45);
  }
  .tabs-track { gap: 22px; }
  .tabs-line { bottom: 5px; }
  .tab { padding: 10px 6px 12px; }
  .links { gap: 18px; }
  .intro { min-height: 62svh; gap: 26px; padding: 96px 0 40px; }
  .work-hint { display: none; }
  .row { display: block; margin: 0; }
  .tile { margin-bottom: 26px; }
  .frame { height: auto; aspect-ratio: var(--ar); }
  .grid[data-cat="thumbnails"] .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); }
  .member { grid-template-columns: 1fr auto; gap: 14px 16px; }
  .member-work { grid-column: 1 / -1; justify-content: flex-start; }
  .peek { flex: 1; width: auto; max-width: 33%; }
  .contact { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .contact-cta { font-size: clamp(44px, 14vw, 72px); }
  .fine { margin-top: 72px; }
  .viewer-stage { inset: 64px 0 112px; }
  .viewer-meta { bottom: 44px; }
  .viewer-count { left: var(--pad); bottom: 22px; transform: none; }
  .viewer-nav { bottom: 28px; }
  .viewer-close { top: 12px; }
}

