/* LOCK SCREEN */
.lock-screen {
  position: fixed;
  inset: 0;
  background: rgba(245,245,245,0.7);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s, visibility 0.4s;
}

.lock-screen.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lock-inner {
  text-align: center;
}

.lock-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.08em;
  color: #0a0a0a;
  margin-bottom: 32px;
}

.lock-code {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 28px;
  letter-spacing: 8px;
  color: #0a0a0a;
  min-height: 36px;
  min-width: 120px;
}

.lock-code.error {
  color: #ff4444;
  animation: shake 0.3s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.lock-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 240px;
}

.lock-key {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.15);
  background: none;
  color: #0a0a0a;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 300;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-key:hover {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.3);
}

.lock-key:active {
  background: rgba(0,0,0,0.1);
}

.lock-key-empty {
  border: none;
  cursor: default;
}

.lock-key-empty:hover {
  background: none;
}

.lock-key-del {
  font-size: 18px;
  border-color: transparent;
}

.lock-key-del:hover,
.lock-key-enter:hover {
  border-color: rgba(0,0,0,0.15);
}

.lock-key-enter {
  border-color: transparent;
}

.lock-key.pressed {
  background: rgba(0,0,0,0.15);
  transform: scale(0.92);
  transition: none;
}

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

/* BASE */
:root {
  --bg: #f5f5f5;
  --fg: #0a0a0a;
  --grey: #999;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --tracking: -0.06em;
  --size-xs: 9px;
  --size-s: 11px;
  --size-m: 12px;
  --gap: 12px;
  --header-h: 40px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking);
  font-size: var(--size-s);
  line-height: 1.2;
  cursor: default;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gap);
  z-index: 100;
  background: var(--bg);
}

.logo {
  font-size: var(--size-m);
  letter-spacing: -0.08em;
}

.header-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-toggle,
.nav-link {
  font-size: var(--size-xs);
  color: var(--grey);
  transition: color 0.15s;
}

.nav-toggle:hover,
.nav-link:hover {
  color: var(--fg);
}

.nav-toggle.active {
  color: var(--fg);
}

/* MENU PANELS */
.menu-panel {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg);
  z-index: 90;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid transparent;
}

.menu-panel.open {
  max-height: 200px;
  border-bottom: 1px solid #e0e0e0;
}

.menu-panel-large.open {
  max-height: 60vh;
  overflow-y: auto;
}

.menu-panel-inner {
  padding: var(--gap);
}

/* FILTERS */
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter {
  font-size: var(--size-xs);
  color: var(--grey);
  transition: color 0.15s;
  padding: 2px 0;
}

.filter:hover,
.filter.active {
  color: var(--fg);
}

/* MAGAZINES */
.magazines-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.magazine-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: var(--size-xs);
  padding: 4px 0;
  border-bottom: 1px solid #e8e8e8;
  transition: color 0.15s;
}

.magazine-item:last-child {
  border-bottom: none;
}

.magazine-item:hover {
  color: var(--fg);
}

.magazine-name {
  flex: 0 0 auto;
  min-width: 120px;
}

.magazine-project {
  color: var(--grey);
  flex: 1;
}

.magazine-arrow {
  color: var(--grey);
  transition: transform 0.15s, color 0.15s;
}

.magazine-item:hover .magazine-arrow {
  transform: translateX(3px);
  color: var(--fg);
}

/* NETWORK */
.network-section {
  margin-bottom: 12px;
}

.network-section:last-child {
  margin-bottom: 0;
}

.network-heading {
  font-size: var(--size-xs);
  margin-bottom: 6px;
  color: var(--fg);
}

.network-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.network-item {
  font-size: var(--size-xs);
  color: var(--grey);
  transition: color 0.15s;
}

.network-item:hover {
  color: var(--fg);
}

/* ABOUT PAGE — fullscreen */
.about-page {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-page.open {
  transform: translateY(0);
}

.about-page-inner {
  padding: calc(var(--header-h) + 48px) 60px 100px;
  max-width: 900px;
  margin: 0 auto;
}

.about-hero {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 80px;
}

.about-portrait img {
  width: 100%;
  display: block;
}

.about-title {
  font-size: 14px;
  letter-spacing: -0.08em;
  margin-bottom: 16px;
}

.about-subtitle {
  font-size: var(--size-xs);
  margin-bottom: 1px;
}

.about-muted {
  color: var(--grey);
  font-size: var(--size-xs);
  margin-top: 8px;
}

.about-bio {
  color: var(--grey);
  line-height: 1.45;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 10px;
}

.about-section {
  margin-bottom: 60px;
}

.about-section-title {
  font-size: var(--size-xs);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.about-network {
  display: block;
}

.about-network .network-heading {
  font-size: var(--size-xs);
  color: var(--fg);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e0e0e0;
}

.about-network .network-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2px 16px;
}

.about-network .network-item {
  font-size: var(--size-xs);
  color: var(--grey);
  display: block;
  padding: 0;
  line-height: 1.6;
  transition: color 0.15s;
}

.about-network .network-item:hover {
  color: var(--fg);
}

.about-page a {
  border-bottom: 1px solid var(--fg);
}

.about-page .network-item {
  border-bottom: none;
}

.about-section p {
  font-size: var(--size-xs);
  margin-bottom: 2px;
}

.about-ventures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.venture-name {
  font-size: var(--size-xs);
  font-weight: 700;
  margin-bottom: 8px !important;
}

@media (max-width: 768px) {
  .about-page-inner {
    padding: calc(var(--header-h) + 24px) var(--gap) 60px;
  }

  .about-hero {
    grid-template-columns: 120px 1fr;
    gap: 16px;
  }


}

/* PRESS PAGE — fullscreen */
.press-page {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.press-page.open {
  transform: translateY(0);
}

.press-page-inner {
  padding: calc(var(--header-h) + 48px) 60px 100px;
  max-width: 1100px;
  margin: 0 auto;
}

.press-page-title {
  font-size: 14px;
  letter-spacing: -0.08em;
  margin-bottom: 40px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.press-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.press-card {
  display: block;
  text-decoration: none;
  color: var(--fg);
  border: 1px solid #e0e0e0;
  margin: -1px -1px 0 0;
  transition: background 0.2s, color 0.2s;
  overflow: hidden;
}

.press-card:hover {
  background: var(--fg);
  color: var(--bg);
  z-index: 1;
  position: relative;
}

.press-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e8e8e8;
  transition: background 0.2s;
}

.press-card:hover .press-card-media {
  background: #1a1a1a;
}

.press-card-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 16px 16px;
  gap: 12px;
}

.press-publication {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.06em;
  flex: 0 0 auto;
}

.press-project {
  font-size: var(--size-xs);
  color: var(--grey);
  flex: 1;
  transition: color 0.2s;
}

.press-card:hover .press-project {
  color: rgba(245,245,245,0.6);
}

.press-arrow {
  font-size: var(--size-xs);
  flex: 0 0 auto;
  transition: transform 0.2s;
}

.press-card:hover .press-arrow {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .press-page-inner {
    padding: calc(var(--header-h) + 24px) var(--gap) 60px;
  }
  .press-grid {
    grid-template-columns: 1fr;
  }
}

/* TALENTS PAGE — fullscreen */
.talents-page {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.talents-page.open {
  transform: translateY(0);
}

.talents-page-inner {
  padding: calc(var(--header-h) + 48px) 60px 100px;
  max-width: 1100px;
  margin: 0 auto;
}

.talents-page-title {
  font-size: 14px;
  letter-spacing: -0.08em;
  margin-bottom: 40px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.talents-list {
  display: flex;
  flex-direction: column;
}

.talent-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.15s;
}

.talent-row:first-child {
  border-top: 1px solid #e0e0e0;
}

.talent-left {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.talent-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.06em;
  flex: 0 0 auto;
}

.talent-projects {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: baseline;
}

.talent-proj {
  font-size: var(--size-xs);
  color: var(--grey);
  background: none;
  border: none;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: 2px 6px;
  border: 1px solid #e0e0e0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.talent-proj:hover {
  color: var(--fg);
  border-color: var(--fg);
}

.talent-handle {
  font-size: var(--size-xs);
  color: var(--grey);
  text-decoration: none;
  flex: 0 0 auto;
  transition: color 0.15s;
  white-space: nowrap;
}

.talent-handle:hover {
  color: var(--fg);
}

@media (max-width: 768px) {
  .talents-page-inner {
    padding: calc(var(--header-h) + 24px) var(--gap) 60px;
  }
  .talent-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .talent-left {
    flex-direction: column;
    gap: 6px;
  }
}

/* WORK LIST */
.work-list {
  padding: calc(var(--header-h) + 48px) var(--gap) 60px;
  max-width: 900px;
}

.work-item {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
  max-height: 60px;
  overflow: hidden;
  transition: color 0.15s;
}

/* SELECTED WORK BUTTON — above the list */
.selected-work-btn {
  display: inline-block;
  font-size: var(--size-xs);
  color: var(--fg);
  margin-bottom: 8px;
  padding: 5px 10px;
  border: 1px solid var(--fg);
  text-align: left;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}

.selected-work-btn:hover,
.selected-work-btn.active {
  background: var(--fg);
  color: var(--bg);
}

/* INLINE FILTERS — below selected work button */
.inline-filters {
  display: none;
  gap: 12px;
  margin-bottom: 24px;
  padding: 8px 0;
}

.inline-filters.open {
  display: flex;
}

/* WORK LIST HEADINGS */
.work-list-heading {
  font-size: var(--size-xs);
  color: var(--grey);
  letter-spacing: 0.05em;
  margin: 28px 0 0;
  padding: 0 0 6px;
}

.work-list-heading:first-child {
  margin-top: 0;
}

.work-item:first-child,
.work-list-heading + .work-item {
  border-top: 1px solid #e0e0e0;
}

.work-name {
  font-size: clamp(13px, 1.8vw, 18px);
  letter-spacing: -0.04em;
  transition: letter-spacing 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-item:hover .work-name {
  letter-spacing: 0.01em;
}

@media (hover: hover) {
  .work-item {
    cursor: none;
  }
}

/* ENTRANCE ANIMATION */
.work-item {
  opacity: 0;
  transform: translateX(-10px);
}

.work-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.work-item.hidden {
  display: none;
}

/* WORK GRID — visual mode (hidden by default) */
.work-grid {
  display: none;
  padding: calc(var(--header-h) + 48px) var(--gap) 60px;
  column-count: 3;
  column-gap: var(--gap);
}

.work-grid.active {
  display: block;
}

.grid-project {
  display: block;
  overflow: hidden;
  break-inside: avoid;
  margin-bottom: var(--gap);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid-project.visible {
  opacity: 1;
  transform: translateY(0);
}

.grid-project.hidden {
  display: none;
}

.grid-cover {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #e8e8e8;
}

.grid-cover img,
.grid-cover video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project:hover .project-cover img,
.grid-project:hover .grid-cover img,
.grid-project:hover .grid-cover video {
  transform: scale(1.03);
}

.grid-project:hover .grid-cover img {
  transform: scale(1.03);
}

.grid-label {
  display: block;
  padding: 6px 0 0;
  font-size: var(--size-xs);
  color: var(--fg);
}

@media (hover: hover) {
  .grid-project {
    cursor: none;
  }
}

/* POLAROID GRID — compact, centered, satisfying */
.polaroid-grid {
  display: none;
  padding: calc(var(--header-h) + 48px) 0 60px;
  max-width: 680px;
  margin: 0 auto;
}

.polaroid-grid.active {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.polaroid-grid .grid-project {
  margin: 0;
}

.polaroid-grid .grid-cover {
  background: #eee;
}

.polaroid-grid .grid-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.polaroid-grid .grid-label {
  font-size: 8px;
  color: var(--grey);
  padding: 3px 0 8px;
}

@media (max-width: 768px) {
  .work-grid { column-count: 2; }
  .polaroid-grid.active { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .work-grid { column-count: 1; }
  .polaroid-grid.active { grid-template-columns: repeat(2, 1fr); }
  .polaroid-grid { padding: calc(var(--header-h) + 24px) var(--gap) 60px; }
}

/* VIDEO LIST — masonry like photo grid */
.video-list {
  display: none;
  padding: calc(var(--header-h) + 48px) var(--gap) 60px;
  column-count: 3;
  column-gap: var(--gap);
}

.video-list.active {
  display: block;
}

.video-group-heading {
  font-size: var(--size-xs);
  color: var(--grey);
  margin: 0 0 4px;
  break-inside: avoid;
}

.video-list-item {
  margin-bottom: var(--gap);
  cursor: pointer;
  break-inside: avoid;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-list-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.video-list-item video {
  width: 100%;
  display: block;
  background: #0a0a0a;
}

.video-list-item {
  position: relative;
}

.video-list-item:hover video {
  opacity: 0.85;
}

/* VIDEO OVERLAY — brand + project */
.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.5));
  pointer-events: none;
  transition: opacity 0.25s;
}

.video-overlay-brand {
  font-size: var(--size-s);
  color: #fff;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.video-overlay-project {
  font-size: var(--size-xs);
  color: rgba(255,255,255,0.7);
  font-weight: 200;
  letter-spacing: 0.02em;
}

.video-list-label {
  display: none;
}

@media (hover: hover) {
  .video-list-item { cursor: none; }
}

@media (max-width: 768px) {
  .video-list {
    column-count: 2;
    padding: calc(var(--header-h) + 24px) var(--gap) 60px;
  }
}

@media (max-width: 480px) {
  .video-list {
    column-count: 1;
  }
}

/* HOVER VIDEO — in gallery */
.hover-video {
  cursor: pointer;
  position: relative;
}

.hover-video video {
  width: 100%;
  display: block;
}

/* CUSTOM GRIDS */
.custom-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.custom-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 768px) {
  .custom-grid-3 {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .custom-grid-2 {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .gallery-row.half {
    grid-template-columns: 1fr;
  }
  .gallery-row.third {
    grid-template-columns: 1fr;
  }
  .project-view-header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: calc(var(--header-h) + 24px) var(--gap) 24px;
  }
  .project-view-gallery {
    padding: 0 var(--gap) 60px;
  }
  .project-view-title {
    font-size: 18px;
  }
}

/* VIDEO OVERLAY PLAYER */
.video-overlay-player {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.video-overlay-player.active {
  display: flex;
}

.video-overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  cursor: pointer;
}

.video-overlay-wrap {
  position: relative;
  width: 80%;
  max-width: 900px;
  z-index: 1;
}

.video-overlay-wrap video {
  width: 100%;
  display: block;
}

.video-overlay-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.video-overlay-close:hover {
  opacity: 1;
}

@media (max-width: 480px) {
  .video-overlay-wrap {
    width: 95%;
  }
  .gallery-row.third {
    grid-template-columns: 1fr;
  }
}

/* HOVER IMAGE — fullscreen background */
.hover-image {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-image.active {
  opacity: 1;
}

.hover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text list sits above the background */
.work-list {
  position: relative;
  z-index: 10;
}

.work-item {
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.15s,
              border-color 0.15s;
}

.work-item.filtered-out {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
  pointer-events: none;
}

.work-list-heading {
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 60px;
  overflow: hidden;
}

.work-list-heading.filtered-out {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
}


/* MOBILE — no hover image, ever */
@media (hover: none) {
  .hover-image {
    display: none !important;
  }

  body.hover-active header,
  body.hover-active footer {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
    color: var(--fg);
  }
}

/* CUSTOM CURSOR */
.cursor {
  position: fixed;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fg);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.15s;
  display: none;
}

.cursor.active {
  display: block;
}

.cursor.hover {
  transform: scale(3);
  background: #fff;
}

/* PROJECT VIEW */
.project-view {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-view.open {
  transform: translateY(0);
}

.back-btn {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: none;
  align-items: center;
  padding: 0 var(--gap);
  font-size: var(--size-xs);
  color: var(--fg);
  z-index: 999;
  background: var(--bg);
  border: none;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  gap: 6px;
}

.back-btn.visible {
  display: flex;
}

.back-btn::before {
  content: '\2190';
  font-size: 14px;
}

.back-btn:hover {
  color: var(--grey);
}

/* PROJECT VIEW — HEADER */
.project-view-header {
  padding: calc(var(--header-h) + 48px) 60px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-view-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.08em;
}

.project-view-description {
  font-size: var(--size-xs);
  color: var(--grey);
  line-height: 1.6;
  font-weight: 400;
  max-width: 360px;
}

/* PROJECT VIEW — GALLERY EDITORIAL LAYOUT */
.project-view-gallery {
  padding: 0 60px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-row {
  display: grid;
  gap: 24px;
  margin-bottom: 80px;
}

.gallery-row.full {
  grid-template-columns: 1fr;
}

.gallery-row.half {
  grid-template-columns: 1fr 1fr;
}

.gallery-row.third {
  grid-template-columns: 1fr 1fr 1fr;
}

.gallery-row.half-portrait {
  grid-template-columns: 1fr 1fr;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* VIDEO ROW — video left, text space right */
.gallery-row.video-row {
  grid-template-columns: 3fr 1fr;
  align-items: start;
  margin: 60px 0;
}

.gallery-video-main video {
  width: 100%;
  display: block;
}

.gallery-video-caption {
  font-size: var(--size-xs);
  color: var(--grey);
  line-height: 1.7;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  padding-top: 4px;
  align-self: end;
}

/* POLAROID ROW — 3 columns, small, contained */
.gallery-row.pola-row {
  grid-template-columns: repeat(3, 1fr);
  max-width: 700px;
  margin: 24px auto;
  gap: 12px;
}

.pola-row .gallery-item img {
  width: 100%;
  object-fit: contain;
}

/* VIDEO STORY — vertical, centered, contained */
.gallery-row.video-story-row {
  max-width: 300px;
  margin: 80px auto;
}

.video-story-row video {
  width: 100%;
  display: block;
}

.gallery-item {
  overflow: hidden;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  display: block;
}

/* Landscape images = full bleed */
.gallery-item.landscape img {
  width: 100%;
}

/* Portrait images in pairs = contained, not stretched */
.gallery-item.portrait img {
  width: 100%;
}

.gallery-caption {
  font-size: var(--size-xs);
  color: var(--grey);
  line-height: 1.6;
  font-weight: 400;
  padding: 12px 0;
  align-self: end;
}

/* GALLERY NAV — sub-project filters */
.gallery-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: var(--header-h);
  background: var(--bg);
  z-index: 5;
  padding-top: 8px;
}

.gallery-nav-item {
  font-size: var(--size-xs);
  color: var(--grey);
  transition: color 0.15s;
  padding: 4px 0;
}

.gallery-nav-item:hover,
.gallery-nav-item.active {
  color: var(--fg);
}

.gallery-section {
  margin-bottom: 100px;
}

.gallery-section-title {
  font-size: var(--size-xs);
  color: var(--grey);
  letter-spacing: 0.05em;
  margin: 0 0 20px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
  .gallery-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gallery-nav::-webkit-scrollbar { display: none; }
  .gallery-nav-item { white-space: nowrap; }
}


/* FOOTER */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gap);
  font-size: var(--size-xs);
  color: var(--grey);
  background: var(--bg);
  z-index: 50;
}

footer a {
  color: var(--grey);
  transition: color 0.15s;
}

footer a:hover {
  color: var(--fg);
}

/* IMAGES & VIDEOS */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* RESPONSIVE — TABLET */
@media (max-width: 768px) {
  .filters,
  .network-list {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar,
  .network-list::-webkit-scrollbar {
    display: none;
  }

  .filter,
  .network-item {
    white-space: nowrap;
  }

  .header-right {
    gap: 10px;
  }

  .hover-image {
    width: 250px;
    height: 330px;
  }
}

/* RESPONSIVE — MOBILE */
@media (max-width: 480px) {
  :root {
    --gap: 8px;
    --header-h: 36px;
  }

  .logo {
    font-size: var(--size-s);
  }

  .header-right {
    gap: 8px;
  }

  .nav-toggle,
  .nav-link {
    font-size: 8px;
  }

  .project-view-header {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: calc(var(--header-h) + 24px) var(--gap) 24px;
  }

  .project-view-gallery {
    padding: 0 var(--gap) 60px;
  }

  .gallery-row.half,
  .gallery-row.video-row {
    grid-template-columns: 1fr;
  }

  .gallery-row.pola-row {
    max-width: 100%;
  }

  .gallery-row.video-row {
    margin: 24px 0;
  }

  .about-content {
    max-width: 100%;
  }

  .magazine-name {
    min-width: 80px;
  }

  .network-list {
    gap: 4px 8px;
  }

  .work-list {
    padding-top: calc(var(--header-h) + 24px);
  }
}
