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

:root {
  --bg: #0c0c0a;
  --panel: #141412;
  --border: rgba(255,255,255,.07);
  --accent: #c8a97e;
  --backdrop-rgb: 200 169 126;
  --text: #f0ede8;
  --muted: rgba(240,237,232,.42);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', sans-serif;
  --ease: cubic-bezier(.77,0,.175,1);
}

html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  max-width: 100%;
  overflow: hidden;
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 620;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 52px;
  transition: background .5s, padding .4s;
}
nav.dark {
  background: rgba(12,12,10,.9);
  backdrop-filter: blur(14px);
  padding: 16px 52px;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .14em;
  color: #fff;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a,
.nav-links button {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  transition: color .3s;
}
.nav-links a:hover,
.nav-links button:hover,
.nav-links a.active { color: var(--accent); }

.breadcrumb {
  position: fixed;
  bottom: 36px;
  left: 52px;
  z-index: 610;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb button,
.breadcrumb span {
  color: inherit;
}
.breadcrumb .active { color: rgba(255,255,255,.82); }
.breadcrumb-sep {
  color: rgba(255,255,255,.2);
  font-size: 8px;
}

.screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .85s var(--ease), opacity .6s ease, filter .7s ease;
}
.screen.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
  filter: none;
  z-index: 40;
}
.screen.stacked {
  transform: scale(.985);
  opacity: 0;
  pointer-events: none;
  filter: blur(16px);
}

.portfolio-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgb(var(--backdrop-rgb) / .15), transparent 50%),
    #050505;
}
.portfolio-backdrop__image,
.portfolio-backdrop__glow,
.portfolio-backdrop__matte {
  position: absolute;
  inset: 0;
}
.portfolio-backdrop__image {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.12);
  filter: grayscale(.12) saturate(1.08) brightness(.24) blur(18px);
  transition: opacity .85s ease, transform 1.2s var(--ease);
}
.portfolio-backdrop__image.active {
  opacity: .92;
  transform: scale(1.05);
}
.portfolio-backdrop__glow {
  background:
    radial-gradient(circle at 50% 48%, rgb(var(--backdrop-rgb) / .28), transparent 32%),
    radial-gradient(circle at 50% 68%, rgb(var(--backdrop-rgb) / .12), transparent 48%);
  mix-blend-mode: screen;
  filter: blur(18px);
  opacity: .9;
}
.portfolio-backdrop__matte {
  background:
    linear-gradient(180deg, rgba(4,4,4,.84) 0%, rgba(6,6,6,.76) 22%, rgba(6,6,6,.7) 50%, rgba(4,4,4,.92) 100%),
    linear-gradient(90deg, rgba(5,5,5,.82) 0%, rgba(5,5,5,.34) 35%, rgba(5,5,5,.34) 65%, rgba(5,5,5,.82) 100%);
}

#screen-categories,
#screen-clients,
#screen-work {
  background: transparent;
}

#screen-clients::before,
#screen-work::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(7,7,7,.88) 0%, rgba(9,9,9,.76) 34%, rgba(10,10,10,.72) 65%, rgba(5,5,5,.9) 100%);
  backdrop-filter: blur(14px);
  z-index: 0;
}

#screen-categories .cat-stage,
#screen-clients .clients-header,
#screen-clients .clients-grid-wrap,
#screen-work .work-header,
#screen-work .work-tabs,
#screen-work .work-body {
  position: relative;
  z-index: 1;
}

.cat-stage {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(6,6,6,.38), rgba(6,6,6,.62));
}
.cat-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-right: 1px solid var(--border);
  background: rgba(10,10,10,.18);
}
.cat-item:last-child { border-right: 0; }
.cat-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.28) saturate(.78) blur(.2px);
  transform: scale(1.08);
  transition: transform 1.1s var(--ease), filter .9s ease;
}
.cat-item:hover .cat-bg {
  transform: scale(1);
  filter: brightness(.42) saturate(.92);
}
.cat-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,6,6,.08) 0%, rgba(6,6,6,.36) 45%, rgba(4,4,4,.86) 100%);
  z-index: 1;
}
.cat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
  z-index: 2;
}
.cat-item:hover::before { transform: scaleX(1); }
.cat-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 52px 44px;
}
.cat-number {
  font-size: 10px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.cat-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 300;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: .95;
  color: #fff;
}
.cat-count {
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--muted);
  margin-top: 12px;
}
.cat-arrow {
  position: absolute;
  bottom: 52px;
  right: 44px;
  z-index: 3;
  font-size: 22px;
  color: rgba(255,255,255,.3);
}

.clients-header,
.work-header {
  padding: 124px 52px 56px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.06));
}
.clients-eyebrow,
.work-eyebrow {
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.clients-title,
.work-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
}
.work-category-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.back-btn:hover {
  color: var(--text);
  border-color: rgba(255,255,255,.2);
}

.clients-grid-wrap,
.work-body {
  flex: 1;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 56px 52px 88px;
}
.clients-grid-wrap::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(960px, calc(100% - 104px));
  height: 320px;
  border-radius: 38px;
  background:
    radial-gradient(circle at 18% 22%, rgb(var(--backdrop-rgb) / .14), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.028), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.04);
  pointer-events: none;
  opacity: .92;
}
.clients-grid-wrap.is-single::before {
  top: 44px;
  width: min(520px, calc(100% - 104px));
  height: 520px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 20%, rgb(var(--backdrop-rgb) / .18), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.032), rgba(255,255,255,.012));
}
.clients-grid-wrap::-webkit-scrollbar,
.work-body::-webkit-scrollbar { width: 3px; }
.clients-grid-wrap::-webkit-scrollbar-thumb,
.work-body::-webkit-scrollbar-thumb { background: var(--border); }

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.clients-grid.is-single {
  width: min(100%, 420px);
  margin: 0 auto;
}
.client-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 5 / 6;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 30px;
  width: 100%;
  flex: 0 1 380px;
  max-width: 380px;
  background: rgba(14,14,14,.72);
  box-shadow:
    0 28px 72px rgba(0,0,0,.24),
    0 0 0 1px rgba(255,255,255,.02) inset;
  transition: border-color .4s, transform .55s var(--ease), box-shadow .45s ease;
}
.clients-grid.is-single .client-card {
  flex-basis: min(100%, 420px);
  max-width: 420px;
}
.client-card:hover {
  border-color: rgb(var(--backdrop-rgb) / .42);
  transform: translateY(-8px);
  box-shadow:
    0 30px 90px rgba(0,0,0,.34),
    0 0 0 1px rgb(var(--backdrop-rgb) / .14) inset,
    0 0 46px rgb(var(--backdrop-rgb) / .12);
}
.client-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.52) saturate(.9);
  transition: transform .8s var(--ease), filter .6s;
}
.client-card:hover .client-thumb {
  transform: scale(1.06);
  filter: brightness(.42) saturate(1.02);
}
.client-info {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px 30px 28px;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.18) 62%, transparent 100%);
}
.client-name {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 300;
  letter-spacing: .05em;
  color: #fff;
  margin-bottom: 10px;
}
.client-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.6);
}
.tag.has-film {
  background: rgba(200,169,126,.12);
  border-color: var(--accent);
  color: var(--accent);
}

.work-tabs {
  display: flex;
  gap: 0;
  padding: 0 52px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.work-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 28px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: rgba(14,14,14,.44);
}
.work-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.work-tab:hover {
  color: rgba(255,255,255,.88);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.film-intro {
  max-width: 640px;
  margin-bottom: 48px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  min-width: 0;
}
.film-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(10,10,10,.58);
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}
.film-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.5);
  transition: transform .7s var(--ease), filter .5s;
}
.film-card:hover .film-thumb {
  transform: scale(1.05);
  filter: brightness(.4);
}
.film-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, border-color .3s, transform .3s;
}
.film-card:hover .film-play {
  background: var(--accent);
  border-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.1);
}
.film-play svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  margin-left: 3px;
}
.film-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 24px 24px 20px;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%);
}
.film-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  color: #fff;
  margin-bottom: 4px;
}
.film-meta {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.photo-grid {
  columns: 3;
  column-gap: 18px;
}
.photo-item {
  break-inside: avoid;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 26px;
  box-shadow: 0 18px 60px rgba(0,0,0,.24);
}
.photo-item img {
  width: 100%;
  display: block;
  filter: brightness(.88);
  transition: transform .7s var(--ease), filter .5s;
}
.photo-item:hover img {
  transform: scale(1.04);
  filter: brightness(.7);
}
.photo-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background .4s;
}
.photo-item:hover::after { background: rgba(0,0,0,.2); }
.photo-expand {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
  background: rgba(0,0,0,.3);
}
.photo-item:hover .photo-expand { opacity: 1; }
.photo-expand svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
}

#lightbox,
#video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}
#video-lightbox { z-index: 901; background: #000; }
#lightbox.open,
#video-lightbox.open {
  opacity: 1;
  pointer-events: all;
}
#lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
}
.lightbox-close,
.vlb-close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.48);
}
.lightbox-close,
.vlb-close,
.lb-nav {
  background: rgba(10,10,10,.38);
  backdrop-filter: blur(8px);
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 20px;
  font-size: 28px;
  color: rgba(255,255,255,.35);
}
.lb-nav:hover,
.lightbox-close:hover,
.vlb-close:hover { color: var(--accent); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.video-shell {
  width: min(92vw, 1180px);
  display: grid;
  gap: 18px;
}
.video-shell-copy {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 10px;
}
.video-shell-copy .eyebrow {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.video-shell-copy h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 300;
}
.video-shell-copy span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.video-frame {
  position: relative;
  padding-top: 56.25%;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.empty-state {
  color: rgba(255,255,255,.56);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 36px 0;
}

@media (max-width: 980px) {
  body { overflow: auto; }
  body { overflow-x: hidden; }
  nav,
  nav.dark { padding: 18px 20px; }
  .nav-links {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .nav-links a {
    font-size: 9px;
    letter-spacing: .16em;
  }
  .breadcrumb { display: none; }
  .portfolio-backdrop__image {
    filter: grayscale(.08) saturate(1.04) brightness(.2) blur(12px);
  }
  .screen,
  .screen.active,
  .screen.stacked {
    position: relative;
    transform: none;
    opacity: 1;
    pointer-events: all;
    filter: none;
  }
  .screen.stacked { display: none; }
  #screen-clients::before,
  #screen-work::before { backdrop-filter: blur(8px); }
  .cat-stage { grid-template-columns: 1fr; }
  .clients-header,
  .work-header,
  .clients-grid-wrap,
  .work-body,
  .work-tabs { padding-left: 20px; padding-right: 20px; }
  .clients-header,
  .work-header {
    padding-top: 104px;
    align-items: flex-start;
    flex-direction: column;
  }
  .work-tabs {
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 18px;
    padding-bottom: 4px;
  }
  .work-tab {
    border: 1px solid var(--border);
    border-radius: 999px;
    margin-bottom: 0;
  }
  .work-tab.active {
    background: rgba(200,169,126,.12);
    border-color: var(--accent);
  }
  .clients-grid,
  .film-grid {
    gap: 14px;
    grid-template-columns: 1fr;
  }
  .clients-grid {
    gap: 14px;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .client-card,
  .film-card,
  .photo-item { border-radius: 20px; }
  .photo-grid { columns: 1; }
  .video-shell {
    width: min(100%, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    gap: 12px;
  }
  .video-shell-copy {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
  }
  .lightbox-close,
  .vlb-close {
    top: 14px;
    right: 14px;
    padding: 10px 12px;
  }
  .lb-nav {
    top: auto;
    bottom: 14px;
    transform: none;
    padding: 14px 16px;
    font-size: 22px;
  }
  .lb-prev { left: 14px; }
  .lb-next { right: 14px; }
  .lb-counter {
    bottom: 20px;
    font-size: 10px;
  }
}
