/* ========================================
   RESET & BASE
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Narrow:wght@600;700&family=Barlow+Condensed:wght@500;600;700&family=IBM+Plex+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600&family=Bebas+Neue:wght@400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
  color: #000000;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 15px;
  letter-spacing: 0.01em;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

@keyframes mediaShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

h1, h2, h3 {
  font-weight: 400;
}

p {
  margin: 0;
}

/* ========================================
   NAV
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 34px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid #d6d6d6;
}

.nav-logo {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  gap: 24px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav-right a {
  position: relative;
  transition: opacity 0.2s;
}

.nav-right a:hover {
  opacity: 0.6;
}

/* ========================================
   HERO (Landing)
   ======================================== */

.hero {
  display: flex;
  align-items: flex-end;
  padding: 104px 34px 62px;
  min-height: 34vh;
  border-bottom: 1px solid #d9d9d9;
  margin-top: 48px;
}

.hero-text h1 {
  font-size: clamp(54px, 9vw, 124px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-sub {
  margin-top: 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  opacity: 0.62;
}

/* ========================================
   PROJECTS LIST (Landing)
   ======================================== */

.projects {
  padding: 0 34px;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 44px 0 26px;
  border-bottom: 1px solid #d6d6d6;
}

.projects-header h2 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.projects-count {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.11em;
  opacity: 0.45;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 36px 0 52px;
}

.project-card {
  display: flex;
  gap: 30px;
  padding: 32px 0;
  border-bottom: 1px solid #e5e5e5;
  transition: opacity 0.3s ease;
  align-items: flex-start;
  content-visibility: auto;
  contain-intrinsic-size: 260px;
}

.project-card:hover {
  opacity: 0.82;
}

.project-card-img {
  width: 200px;
  min-width: 200px;
  height: 180px;
  overflow: hidden;
  border: 1px solid #000000;
  flex-shrink: 0;
  position: relative;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card-img img {
  transform: scale(1.02);
}

.project-card-content {
  flex: 1;
  padding-top: 8px;
}

.project-card-title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.project-card-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  opacity: 0.52;
  margin-bottom: 10px;
}

.project-card-description {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.78;
  max-width: 560px;
}

/* ========================================
   PROJECT HERO (Project pages)
   ======================================== */

.project-hero {
  display: flex;
  align-items: flex-end;
  padding: 104px 34px 46px;
  min-height: 35vh;
  border-bottom: 1px solid #d9d9d9;
  margin-top: 48px;
}

.project-hero-text h1 {
  font-size: clamp(42px, 8.5vw, 112px);
  font-weight: 500;
  line-height: 0.97;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.project-hero-meta {
  margin-top: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* ========================================
   PROJECT DESCRIPTION
   ======================================== */

.project-description {
  padding: 60px 40px;
  border-bottom: 1px solid #e0e0e0;
}

.project-description-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  max-width: 1000px;
}

.project-description-label {
  font-size: 13px;
  letter-spacing: 0.05em;
  opacity: 0.6;
  font-weight: 600;
  margin-bottom: 12px;
}

.project-description-text p {
  font-size: 16px;
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 20px;
}

/* ========================================
   PROJECT GALLERY (Project pages)
   ======================================== */

.project-gallery {
  padding: 60px 40px;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  grid-auto-flow: row;
}

.project-gallery-grid--compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  grid-auto-flow: row;
  align-items: start;
}

.project-gallery-grid--compact .project-img {
  display: block;
  width: 100%;
  margin: 30px;
  max-height: 56vh;
}

.project-gallery-grid--compact .project-img--full {
  grid-column: span 1;
}

.project-gallery-grid--compact .project-img--half {
  grid-column: span 1;
  margin: 30px;
}

.project-gallery-controls {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.project-gallery-sentinel {
  width: 100%;
  height: 1px;
  opacity: 0;
}

.project-gallery-load-more {
  border: 1px solid #000000;
  background: #ffffff;
  color: #000000;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.project-gallery-load-more:hover {
  opacity: 0.65;
}

.project-gallery-load-more:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Dual-column layout for galleries with side-by-side views (B&W and Color) */
.dual-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.dual-column-half {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dual-column-half .project-tile {
  break-inside: avoid;
  margin-bottom: 0;
}

.gallery-group-heading {
  grid-column: 1 / -1;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 32px 0 8px;
  border-top: 1px solid #000;
  margin-top: 16px;
  color: #000;
}

/* ── Folder cards (subfolder browse mode) ── */

.folder-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 700px) {
  .folder-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.folder-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid #000;
}

.folder-card--skeleton {
  aspect-ratio: 3 / 4;
}

.folder-card-img {
  width: 100%;
  height: 100%;
  position: relative;
}

.folder-card-img.multi-preview {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

.folder-card-img.multi-preview img:first-child {
  grid-row: span 2;
}

.folder-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.folder-card:hover .folder-card-img img {
  transform: scale(1.03);
}

.folder-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.08) 50%, transparent 80%);
  pointer-events: none;
}

.folder-card-name {
  position: absolute;
  bottom: 18px;
  left: 20px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  pointer-events: none;
}

/* ── Gallery back bar (subfolder → folder list) ── */

.gallery-back-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 0 40px;
}

.gallery-back-link {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #000;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.gallery-back-link:hover {
  opacity: 0.5;
}

/* ========================================
   FLIPBOOK (Paper Dolls)
   ======================================== */

.flipbook {
  position: relative;
  width: 100vw;
  height: calc(100vh - 120px);
  margin: 0 auto;
  background: #f8f6f2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.flipbook-viewport {
  width: min(1200px, 94vw);
  height: 86vh;
  background: transparent;
  position: relative;
  perspective: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-spread, .book-left, .book-right {
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  background: #fff;
  border: 1px solid #e6e2db;
  overflow: hidden;
}

.book-left, .book-right {
  width: 50%;
  height: 100%;
  padding: 48px 56px;
  box-sizing: border-box;
}

.book-left {
  border-right: 1px solid #efede8;
}

.book-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-spread {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 60px);
  height: calc(100% - 32px);
  padding: 48px;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
}

.flipbook img, .flipbook video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.flipbook-controls {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 20;
}

.flipbook-button {
  background: rgba(0,0,0,0.8);
  color: #fff;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flipbook-counter {
  position: absolute;
  top: 18px;
  right: 28px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  opacity: 0.7;
  z-index: 30;
}

/* Spread overlay visible */
.flipbook .spread-active .book-spread { display: flex; }
.flipbook .spread-active .book-left, .flipbook .spread-active .book-right { visibility: hidden; }

/* Page turn animation */
.page-turning .book-right { transform-origin: left center; transition: transform 420ms cubic-bezier(.2,.8,.2,1); }
.page-turning-next .book-right { transform: rotateY(-12deg) translateX(-6%); opacity: 0.98; }
.page-turning-prev .book-left { transform-origin: right center; transform: rotateY(10deg) translateX(6%); opacity: 0.98; }

@media (max-width: 900px) {
  .book-left { display: none; }
  .book-right { width: 94vw; padding: 28px; }
  .book-spread { width: calc(94vw - 20px); left: 50%; transform: translateX(-50%); }
  .flipbook-viewport { width: 100vw; height: calc(100vh - 88px); }
}


.gallery-back-title {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.45;
}

.project-img {
  overflow: hidden;
  border: 1px solid #000000;
  cursor: pointer;
  content-visibility: auto;
  contain-intrinsic-size: 480px;
  position: relative;
  max-height: 52vh;
}

.project-img--full {
  grid-column: span 1;
  aspect-ratio: 1 / 1;
}

.project-img--half {
  grid-column: span 1;
  aspect-ratio: 4 / 5;
}

.media-skeleton {
  position: relative;
  background: #e8e8e8;
}

.media-skeleton::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #dcdcdc 8%, #f4f4f4 18%, #dcdcdc 33%);
  background-size: 220% 100%;
  animation: mediaShimmer 2.8s linear infinite;
  pointer-events: none;
}

.is-media-loading {
  opacity: 0 !important;
}

.media-error {
  background: #f5f5f5;
}

.project-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-img img {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  display: block;
  transition: transform 0.4s ease;
}

.project-img:hover img,
.project-img:hover video {
  transform: scale(1.02);
}

.project-video-poster {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  position: relative;
  cursor: pointer;
}

.project-video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-img:hover .project-video-poster img {
  transform: scale(1.02);
}

.project-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.38) 0%,
    rgba(0, 0, 0, 0.08) 46%,
    rgba(0, 0, 0, 0) 78%
  );
  pointer-events: none;
}

.project-video-play {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(2px);
}

.project-video-play-icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #ffffff;
}

.project-video-play-text {
  line-height: 1;
}

/* ========================================
   PROJECT NAV (prev / next)
   ======================================== */

.project-nav {
  display: flex;
  justify-content: space-between;
  padding: 40px;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.project-nav-link {
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.project-nav-link:hover {
  opacity: 0.5;
}

/* ========================================
   ABOUT
   ======================================== */

.about {
  padding: 80px 40px;
  border-top: 1px solid #e0e0e0;
}

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

.about h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 28px;
}

.about-details {
  margin-top: 48px;
  border-top: 1px solid #e0e0e0;
}

.about-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 13px;
  letter-spacing: 0.05em;
  gap: 30px;
}

.about-detail-row span:first-child {
  font-weight: 600;
  min-width: 100px;
}

.about-detail-row span:last-child {
  opacity: 0.7;
  flex: 1;
}

/* ========================================
   CONTACT
   ======================================== */

.contact {
  padding: 80px 40px;
  border-top: 1px solid #e0e0e0;
}

.contact h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-links a {
  font-size: clamp(24px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
  width: fit-content;
}

.contact-links a:hover {
  opacity: 0.6;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 40px;
  font-size: 12px;
  letter-spacing: 0.05em;
  border-top: 1px solid #e0e0e0;
  opacity: 0.6;
}

/* ========================================
   LIGHTBOX
   ======================================== */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  padding: 32px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.lightbox img,
.lightbox video {
  max-width: min(96vw, 1180px);
  max-height: min(94vh, 900px);
  object-fit: contain;
  transition: transform 0.32s ease;
  transform: scale(0.96);
  cursor: default;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.lightbox.active img,
.lightbox.active video {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  padding: 6px 14px;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 0.6;
}

.lightbox-info {
  position: absolute;
  bottom: 28px;
  left: 36px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.45);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .nav {
    padding: 16px 24px;
  }

  .nav-right {
    gap: 24px;
    font-size: 13px;
  }

  .hero {
    padding: 100px 24px 60px;
    min-height: 35vh;
  }

  .projects {
    padding: 0 24px;
  }

  .projects-header {
    padding: 40px 0 30px;
  }

  .projects-list {
    padding: 40px 0;
    gap: 0;
  }

  .project-card {
    flex-direction: column;
    gap: 20px;
    padding: 30px 0;
  }

  .project-card-img {
    width: 100%;
    min-width: unset;
    height: 220px;
  }

  .project-hero {
    padding: 100px 24px 40px;
    min-height: 30vh;
  }

  .project-description {
    padding: 40px 24px;
  }

  .project-description-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project-gallery {
    padding: 40px 24px;
  }

  .project-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .project-gallery-grid--compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .project-gallery-grid--compact .project-img {
    margin: 0;
  }

  .project-img--full,
  .project-img--half {
    grid-column: span 1;
  }

  /* Responsive dual-column layout for tablets */
  .dual-column-layout {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .project-nav {
    padding: 24px;
  }

  .about {
    padding: 60px 24px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about h2 {
    position: static;
  }

  .contact {
    padding: 60px 24px;
  }

  .contact-links a {
    font-size: clamp(20px, 5vw, 36px);
  }

  .footer {
    padding: 16px 24px;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .nav {
    padding: 12px 16px;
  }

  .nav-logo {
    font-size: 14px;
  }

  .nav-right {
    gap: 16px;
    font-size: 12px;
  }

  .hero {
    padding: 80px 16px 40px;
    min-height: 30vh;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .projects {
    padding: 0 16px;
  }

  .project-card-title {
    font-size: 16px;
  }

  .project-card-description {
    font-size: 13px;
  }

  .project-gallery-grid,
  .project-gallery-grid--compact {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Stack dual-column layout into single column on mobile */
  .dual-column-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-detail-row {
    flex-direction: column;
    gap: 8px;
  }

  .footer {
    font-size: 11px;
  }
}

/* ========================================
   2026 Editorial Portfolio Layout
   ======================================== */

:root {
  --bg-soft: #e9eef2;
  --ink: #121212;
  --line: #202020;
  --accent-red: #d52a2a;
  --muted: #5f6a72;
}

.archive-page,
.about-page,
.project-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(233, 238, 242, 0.72), rgba(226, 231, 236, 0.72)),
    url('https://res.cloudinary.com/drgypifsd/image/upload/v1780293538/R1-00419-0035_copy_pxxym2.jpg') center / cover no-repeat fixed;
  color: var(--ink);
  font-family: 'Archivo Narrow', 'Arial Narrow', sans-serif;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px 14px;
}

.site-title {
  font-family: 'Bebas Neue', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: clamp(38px, 6.3vw, 86px);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  max-width: 10ch;
}

.site-nav {
  display: flex;
  gap: 20px;
  padding-top: 8px;
  font-size: 19px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 200ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current='page']::after {
  width: 100%;
}

.site-divider {
  border-top: 1px solid var(--line);
}

.archive-main {
  padding: 36px 28px 20px;
}

.archive-kicker {
  margin-bottom: 28px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.archive-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 52px;
  align-items: start;
}

.archive-column {
  min-width: 0;
  padding-left: 0;
}

.archive-column-header {
  border-bottom: 1px solid var(--line);
  padding: 8px 2px 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.archive-column-title {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.archive-column-meta {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.archive-column-scroll {
  max-height: none;
  min-height: 0;
  overflow: visible;
  padding: 22px 2px 10px;
}

.archive-column-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thumb-link {
  display: block;
  position: relative;
  overflow: hidden;
  border: 3px solid #39ff6e;
  cursor: pointer;
  transform-origin: center;
  transition: transform 220ms ease;
  line-height: 0;
}

.thumb-skeleton {
  position: relative;
  overflow: hidden;
  /* border: 3px solid #39ff6e; */
  aspect-ratio: 1 / 1;
  background: #d7dde2;
}

.thumb-skeleton::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #cfd6dc 8%, #e7ecf0 18%, #cfd6dc 33%);
  background-size: 220% 100%;
  animation: mediaShimmer 2.8s linear infinite;
}

.thumb-link--tall {
  aspect-ratio: auto;
}

.thumb-link--square {
  aspect-ratio: auto;
}

.thumb-link--wide {
  aspect-ratio: auto;
}

.thumb-link:nth-child(3n) {
  transform: rotate(-0.6deg);
}

.thumb-link:nth-child(4n) {
  transform: rotate(0.45deg);
}

.thumb-link:hover {
  transform: scale(1.012);
}

.thumb-link--loading {
  background: #d4dce2;
  min-height: 200px;
}

.thumb-image {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.94);
  opacity: 0;
  transition: transform 300ms ease, filter 300ms ease, opacity 280ms ease;
}

.thumb-image.loaded {
  opacity: 1;
}

.thumb-video {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.9) contrast(0.95);
  transition: transform 300ms ease, filter 300ms ease;
}

.thumb-video-label {
  position: absolute;
  right: 8px;
  top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #f7f7f7;
  background: rgba(0, 0, 0, 0.45);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 12, 16, 0.55);
  color: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 240ms ease;
}

.thumb-overlay-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  max-width: 240px;
}

.thumb-overlay-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.thumb-overlay-subtitle {
  font-size: 12px;
  opacity: 0.9;
}

.thumb-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  width: 160px;
}

.thumb-btn {
  display: inline-block;
  padding: 6px 16px;
  font-size: 11px;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #f7f7f7;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  backdrop-filter: blur(2px);
  transition: background 150ms, border-color 150ms;
  user-select: none;
  line-height: 1.4;
  text-align: center;
}

.thumb-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}

.thumb-btn--zoom {
  appearance: none;
  -webkit-appearance: none;
}

.thumb-link:hover .thumb-overlay,
.thumb-link:focus-visible .thumb-overlay {
  opacity: 1;
}

.thumb-link:hover .thumb-image,
.thumb-link:hover .thumb-video,
.thumb-link:focus-visible .thumb-image {
  transform: scale(1.03);
  filter: saturate(0.8) brightness(0.78);
}

.thumb-link:focus-visible .thumb-video {
  transform: scale(1.03);
  filter: saturate(0.8) brightness(0.78);
}

.thumb-fallback {
  aspect-ratio: 4 / 5;
  border: 1px dashed #444;
  display: grid;
  place-items: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #444;
  background: rgba(255, 255, 255, 0.5);
}

.site-contact {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding: 14px 22px 20px;
  font-size: 18px;
  text-transform: uppercase;
  display: grid;
  gap: 6px;
}

.site-contact a:hover {
  text-decoration: underline;
}

.about-main {
  padding: 22px;
}

.about-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.about-bio {
  margin-top: clamp(80px, 16vh, 170px);
  font-size: clamp(20px, 2.25vw, 32px);
  line-height: 1.13;
  text-wrap: balance;
  max-width: 30ch;
}

.about-bio p + p {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.about-portrait-wrap {
  position: relative;
  width: min(560px, 100%);
  margin-left: auto;
}

.about-portrait-accent {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24px;
  height: 80px;
  background: var(--accent-red);
  z-index: 0;
}

.about-portrait {
  position: relative;
  z-index: 1;
  border: 1px solid #151515;
  width: 100%;
  max-height: 800px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.title-highlight {
  background: linear-gradient(transparent 58%, rgba(213, 42, 42, 0.92) 58%);
  padding-right: 6px;
}

.project-main {
  padding: 22px;
}

.project-intro {
  max-width: 1040px;
  margin-bottom: 20px;
}

.project-intro h1 {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: clamp(40px, 7.5vw, 100px);
  line-height: 0.92;
  text-transform: uppercase;
}

.project-meta {
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
}

.project-copy {
  margin-top: 14px;
  max-width: 70ch;
  font-size: 19px;
  line-height: 1.2;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 14px;
  max-width: 900px;
}

.project-meta-item {
  border-top: 1px solid #151515;
  padding-top: 8px;
}

.project-meta-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.project-meta-value {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.project-back-link {
  display: inline-block;
  margin-top: 18px;
  border-bottom: 1px solid #111;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-video-placeholder {
  margin: 20px 0 14px;
  border: 1px dashed #2a2a2a;
  min-height: 180px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.38);
}

.project-video-placeholder h3 {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: clamp(22px, 4vw, 36px);
  text-transform: uppercase;
}

.project-video-placeholder p {
  font-size: 14px;
  max-width: 52ch;
}

.project-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.project-folder-card {
  border: 1px solid #111;
  padding: 24px;
  display: grid;
  gap: 18px;
  min-height: 280px;
  background: rgba(255, 255, 255, 0.82);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.project-folder-card:hover,
.project-folder-card:focus-within {
  transform: translateY(-4px);
  border-color: #d52a2a;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.08);
}

.project-folder-card h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.project-folder-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #2d2d2d;
}

.project-folder-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  border: 1px solid #111;
  padding: 10px 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: #111;
  transition: background 200ms ease, color 200ms ease;
}

.project-folder-card a:hover {
  background: #111;
  color: #fff;
}

.folder-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.folder-preview-swatch {
  min-height: 92px;
  border: 1px solid #d6d6d6;
  background: linear-gradient(135deg, #f8f8f8 0%, #e7e7e7 100%);
}

.documentary-main {
  padding: 22px;
  max-width: 1040px;
}

.documentary-hero {
  display: grid;
  gap: 22px;
}

.documentary-hero h1 {
  font-family: 'Bebas Neue', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: clamp(42px, 8vw, 100px);
  line-height: 0.92;
  text-transform: uppercase;
}

.documentary-hero p {
  max-width: 60ch;
  font-size: 18px;
  line-height: 1.4;
}

.documentary-video-card {
  border: 1px solid #111;
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(255, 255, 255, 0.88);
}

.documentary-video-placeholder {
  width: 100%;
  max-width: 820px;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f2f2f2 0%, #e2e2e2 45%, #d8d8d8 100%);
  display: grid;
  place-items: center;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
}

.documentary-video-text {
  margin-top: 18px;
  max-width: 58ch;
  color: #2d2d2d;
}

.about-contact {
  margin-top: clamp(56px, 12vh, 140px);
  border-top: 1px solid #171717;
  padding-top: 14px;
  display: grid;
  gap: 8px;
  max-width: 420px;
}

.about-contact h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-contact p,
.about-contact a {
  font-size: 16px;
}

.project-gallery-grid-new {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  justify-content: center;
  max-width: calc(800px * 2 + 14px);
  width: min(100%, calc(800px * 2 + 14px));
  margin: 0 auto;
}

.gallery-moving-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: none;
  width: 100%;
  margin: 0 auto;
}

.gallery-moving-image .project-tile {
  width: min(100%, 800px);
  max-width: 800px;
  margin: 0 auto;
}

.gallery-moving-image .project-tile--wide {
  max-width: 800px;
}

.gallery-moving-image video {
  width: 100%;
  height: auto;
}

.gallery-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: none;
  width: 100%;
  margin: 0 auto;
}

.gallery-centered .project-tile {
  width: min(100%, 800px);
  max-width: 800px;
  max-height: none;
  margin: 0 auto;
}

.gallery-centered .project-tile img,
.gallery-centered .project-tile video {
  width: 100%;
  height: auto;
  max-height: none;
}

@media (max-width: 1024px) {
  .gallery-centered {
    gap: 32px;
  }
}

.gallery-subfolder-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: none !important;
  width: 100%;
  padding: 0 12px;
}

.gallery-subfolder-centered .project-img {
  width: min(100%, 600px);
  max-width: 600px;
  margin: 0 auto 32px;
  grid-column: auto !important;
  max-height: none;
  aspect-ratio: auto !important;
  overflow: visible;
}

.gallery-subfolder-centered .project-img img,
.gallery-subfolder-centered .project-img video {
  width: 100%;
  /* height: auto; */
  max-height: 90%;
}

.project-tile {
  width: 100%;
  max-width: 800px;
  max-height: 600px;
  border: 3px solid #39ff6e;
  overflow: hidden;
  position: relative;
  margin-bottom: 0;
}

.project-tile img,
.project-tile video {
  max-height: 600px;
  object-fit: cover;
}

.project-tile--wide {
  grid-column: span 2;
}

.project-tile--loading {
  background: #d4dce2;
  aspect-ratio: 2 / 3;
}

.project-tile--loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #cfd6dc 8%, #e7ecf0 18%, #cfd6dc 33%);
  background-size: 220% 100%;
  animation: mediaShimmer 2.8s linear infinite;
  z-index: 1;
}

.project-tile--loading img {
  opacity: 0;
}

.project-tile-skeleton {
  background: #d4dce2;
}

.project-tile-skeleton::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #cfd6dc 8%, #e7ecf0 18%, #cfd6dc 33%);
  background-size: 220% 100%;
  animation: mediaShimmer 2.8s linear infinite;
}

.project-tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 280ms ease;
  cursor: zoom-in;
}

.project-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-placeholder {
  border: 1px dashed #242424;
  min-height: 220px;
  display: grid;
  place-items: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 1100px) {
  .archive-columns {
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 300px);
    grid-template-columns: none;
    overflow-x: auto;
    gap: 34px;
    padding-bottom: 8px;
  }

  .about-grid-layout {
    grid-template-columns: 1fr;
  }

  .about-portrait-wrap {
    margin-left: 0;
    margin-top: 8px;
  }

  .about-bio {
    margin-top: 24px;
  }

  .project-gallery-grid-new {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-meta-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    gap: 14px;
    font-size: 17px;
    flex-wrap: wrap;
  }

  .archive-columns {
    display: block;
    overflow: visible;
  }

  .archive-column {
    margin-bottom: 14px;
    border-left: 0;
    padding-left: 0;
  }

  .archive-column-scroll {
    max-height: none;
    min-height: 0;
    overflow: visible;
  }

  .project-gallery-grid-new {
    grid-template-columns: 1fr;
  }

  .project-tile--wide {
    grid-column: span 1;
  }

  .project-meta-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Archive lightbox ───────────────────────────── */
.archive-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 10, 0.96);
  z-index: 999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.archive-lightbox.active {
  display: flex;
}

.archive-lb-img {
  max-width: 96vw;
  max-height: 96vh;
  object-fit: contain;
  cursor: default;
  display: block;
}

.archive-lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #f7f7f7;
  font-size: 24px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
}
 