/* ============================================
   NOBODY PRODUCTIONS — PORTFOLIO SITE
   Brand: #090B0F bg · #F6F4F0 text · #FF4937 accent
   ============================================ */

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }

body {
  background: #090B0F;
  color: #F6F4F0;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

/* ─── Typography ─── */
.display {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* ─── Nav ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background-color: rgba(9, 11, 15, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(246, 244, 240, 0.06);
  transition: padding 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.nav-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
}

.nav-logo {
  position: relative;
  z-index: 1;
}

.nav-logo img {
  height: 80px;
  width: auto;
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.nav-scrolled .nav-logo img {
  height: 56px;
}

.nav-links {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              letter-spacing 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover,
.nav-links a.active { opacity: 1; letter-spacing: 0.24em; }

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #F6F4F0;
  transition: transform 0.3s, opacity 0.3s;
}

/* Animate to X when open */
nav.nav-open .nav-toggle-bar:first-child {
  transform: translateY(9px) rotate(45deg);
}
nav.nav-open .nav-toggle-bar:last-child {
  transform: translateY(-9px) rotate(-45deg);
}

/* ─── Nav backdrop (mobile) ─── */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 11, 15, 0.7);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ─── Nav dropdown (Work → categories) ─── */
.nav-item-work {
  position: relative;
}

.nav-work-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* The caret button — hidden on desktop, shown in mobile sidebar */
.nav-work-arrow {
  display: none;
  background: none;
  border: none;
  color: #F6F4F0;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 14px;
  opacity: 0.5;
  line-height: 1;
  transition: opacity 0.2s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Desktop dropdown — shown on hover */
.nav-dropdown {
  position: absolute;
  top: 100%; /* no gap — hover area is continuous from link to dropdown */
  left: -16px;
  min-width: 180px;
  list-style: none;
  background: rgba(10, 12, 17, 0.97);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(246, 244, 240, 0.08);
  padding-top: 14px; /* visual breathing room — gap lives INSIDE the element */
  padding-bottom: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 101;
}

.nav-item-work:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown li {
  list-style: none;
}

.nav-dropdown li a {
  display: block;
  padding: 8px 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

/* Override the nav-links a hover which expands letter-spacing */
.nav-dropdown li a:hover {
  opacity: 1;
  letter-spacing: 0.15em;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 112px);
  margin-top: 112px;
  background: #090B0F;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-placeholder {
  position: absolute;
  inset: 0;
  background: #0d0f14;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide Vimeo iframe until preloader is done (prevents its spinner showing through) */
.hero-video-placeholder iframe {
  opacity: 0;
  transition: opacity 0.6s ease 0.3s;
}
.np-ready .hero-video-placeholder iframe {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(9,11,15,0.6) 100%
  );
}

.hero-placeholder-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 8vw, 120px);
  letter-spacing: 0.1em;
  color: rgba(246,244,240,0.06);
  text-align: center;
  user-select: none;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.4;
  animation: scroll-hint-drift 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scroll-hint-drift {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.2; }
}

.hero-scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: #F6F4F0;
  opacity: 0.4;
  animation: scroll-line-grow 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scroll-line-grow {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(0.6); transform-origin: top; }
}

/* ─── Category grid (portfolio page) ─── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 0 48px 80px;
}

.category-card.category-full {
  grid-column: span 2;
}

.category-card {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111318;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
}

.category-card-bg {
  position: absolute;
  inset: 0;
  background: #0f1116;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) brightness(0.55);
  transition: filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover .category-card-bg { transform: scale(1.06); }
.category-card:hover .category-card-bg img { filter: grayscale(0%) brightness(0.75); }

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,11,15,0.85) 0%, transparent 60%);
}

.category-card-content {
  position: relative;
  z-index: 1;
  padding: 32px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.category-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 2.2vw, 40px);
  letter-spacing: 0.06em;
}

.category-count {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.45;
  transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-arrow {
  font-size: 20px;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover .category-arrow {
  opacity: 1;
  transform: translateX(0);
}

.category-card:hover .category-count { color: #FF4937; opacity: 1; }

/* ─── Project list (category page) ─── */
.page-hero {
  padding: 160px 48px 60px;
  border-bottom: 1px solid rgba(246,244,240,0.08);
}

.page-hero .eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FF4937;
  margin-bottom: 16px;
}

.page-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: 0.05em;
}

.project-list {
  padding: 0 48px 120px;
}

.project-row {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(246,244,240,0.07);
  cursor: pointer;
  transition: padding-left 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.5s ease;
  text-decoration: none;
  color: inherit;
}

.project-row:hover {
  padding-left: 16px;
  border-bottom-color: rgba(246,244,240,0.18);
}
.project-row:hover .project-row-title { color: #F6F4F0; }
.project-row:hover .project-row-thumb img { filter: grayscale(0%); transform: scale(1.03); }

.project-row-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111318;
  flex-shrink: 0;
}

.project-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%);
  transition: filter 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-row-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: #111318;
}

.project-row-info { display: flex; flex-direction: column; gap: 6px; }

.project-row-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 2.5vw, 34px);
  letter-spacing: 0.05em;
  color: rgba(246,244,240,0.75);
  transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              letter-spacing 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-row:hover .project-row-title {
  letter-spacing: 0.08em;
}

.project-row-desc {
  font-size: 13px;
  opacity: 0.4;
  font-weight: 300;
  max-width: 480px;
}

.project-row-year {
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0.35;
  white-space: nowrap;
}

/* ─── Project page ─── */
.project-header {
  padding: 140px 48px 60px;
}

.project-header .eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FF4937;
  margin-bottom: 16px;
}

.project-header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 6vw, 88px);
  letter-spacing: 0.05em;
  max-width: 800px;
  line-height: 0.95;
}

.project-meta-row {
  display: flex;
  gap: 48px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(246,244,240,0.08);
}

.project-meta-item { display: flex; flex-direction: column; gap: 4px; }

.project-meta-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.35;
}

.project-meta-value {
  font-size: 14px;
  font-weight: 400;
}

/* ─── Video embed ─── */
.video-section {
  padding: 0 48px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #050608;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── Custom Vimeo Player ─── */
.vp-wrap {
  position: relative;
  width: 100%;
  background: #050608;
  overflow: hidden;
}

.vp-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Full overlay — captures all pointer events */
.vp-ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

/* Center click zone — tap/click to play/pause */
.vp-center-zone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Big circle play button (visible only while paused) */
.vp-center-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(9, 11, 15, 0.55);
  border: 1px solid rgba(246, 244, 240, 0.18);
  color: #F6F4F0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.3s ease;
  backdrop-filter: blur(8px);
}

.vp-center-btn:hover {
  background: rgba(255, 73, 55, 0.18);
  border-color: rgba(255, 73, 55, 0.45);
  transform: scale(1.07);
}

.vp-center-btn svg {
  width: 22px;
  height: 22px;
  margin-left: 3px; /* optical center for play triangle */
}

/* Hide center btn while playing */
.vp-wrap.vp-playing .vp-center-btn {
  opacity: 0;
  pointer-events: none;
}

/* Bottom control bar */
.vp-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 13px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Auto-hide when playing and idle */
.vp-wrap.vp-idle .vp-bar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
}

.vp-wrap.vp-idle {
  cursor: none;
}

/* Icon buttons */
.vp-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: rgba(246, 244, 240, 0.75);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.vp-btn:hover { color: #F6F4F0; }

.vp-btn svg {
  width: 15px;
  height: 15px;
  display: block;
}

/* Time labels */
.vp-time, .vp-dur {
  font-size: 10px;
  letter-spacing: 0.07em;
  color: rgba(246, 244, 240, 0.5);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Scrubber */
.vp-scrubber {
  flex: 1;
  padding: 8px 0;
  margin: -8px 0;
  cursor: pointer;
}

.vp-scrubber-track {
  position: relative;
  height: 2px;
  background: rgba(246, 244, 240, 0.15);
  border-radius: 2px;
  transition: height 0.12s ease;
}

.vp-scrubber:hover .vp-scrubber-track { height: 3px; }

.vp-scrubber-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: #FF4937;
  border-radius: 2px;
  pointer-events: none;
}

.vp-scrubber-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 10px;
  height: 10px;
  background: #F6F4F0;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.12s ease;
  pointer-events: none;
}

.vp-scrubber:hover .vp-scrubber-thumb {
  transform: translate(-50%, -50%) scale(1);
}

/* Utility */
.vp-hidden { display: none !important; }

/* iOS fake-fullscreen (requestFullscreen not supported on arbitrary elements in iOS Safari) */
.vp-wrap.vp-fake-fs {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  aspect-ratio: unset !important;
  width: 100% !important;
  height: 100dvh !important;
  margin: 0 !important;
}

body.vp-body-fs { overflow: hidden; }

/* Quality picker */
.vp-quality-wrap {
  position: relative;
  flex-shrink: 0;
}

.vp-quality-btn {
  font-size: 9px;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: rgba(246, 244, 240, 0.5);
  border: 1px solid rgba(246, 244, 240, 0.18);
  border-radius: 2px;
  padding: 2px 5px;
  transition: color 0.15s, border-color 0.15s;
}

.vp-quality-btn:hover {
  color: #F6F4F0;
  border-color: rgba(246, 244, 240, 0.4);
}

.vp-quality-menu {
  position: fixed; /* coords set by JS — escapes overflow:hidden on vp-wrap */
  min-width: 90px;
  background: rgba(9, 11, 15, 0.97);
  border: 1px solid rgba(246, 244, 240, 0.1);
  border-radius: 3px;
  backdrop-filter: blur(16px);
  overflow: hidden;
  z-index: 9999;
  list-style: none;
  padding: 4px 0;
  margin: 0;
}

.vp-quality-option {
  display: block;
  width: 100%;
  padding: 8px 14px;
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(246, 244, 240, 0.55);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: color 0.1s, background 0.1s;
}

.vp-quality-option:hover { color: #F6F4F0; background: rgba(246, 244, 240, 0.06); }
.vp-quality-option.vp-quality-active { color: #FF4937; }


/* ─── Project sections (stills / BTS) ─── */
.project-section {
  padding-top: 80px;
}

.project-section-header {
  padding: 0 48px 32px;
  border-top: 1px solid rgba(246,244,240,0.08);
  padding-top: 40px;
}

.project-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0.06em;
}

/* BTS tonal shift — slightly lighter background */
.project-section-bts {
  background: #0d0f14;
  padding-bottom: 80px;
  margin-top: 40px;
}

.project-stills {
  column-count: 3;
  column-gap: 4px;
  padding: 0 48px;
}

.project-still {
  overflow: hidden;
  background: #0f1116;
  break-inside: avoid;
  margin-bottom: 4px;
  cursor: zoom-in;
  display: block;
}

.project-still img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── Credits ─── */
.credits-section {
  padding: 0 48px 120px;
  border-top: 1px solid rgba(246,244,240,0.08);
  padding-top: 60px;
}

.credits-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
}

.credit-item { display: flex; flex-direction: column; gap: 4px; }

.credit-role {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.35;
}

.credit-name {
  font-size: 15px;
  font-weight: 400;
}

/* ─── Contact ─── */
.contact-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px;
}

.contact-intro {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: 0.05em;
  max-width: 700px;
  line-height: 1;
  margin-bottom: 60px;
}

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

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 300;
  opacity: 0.6;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              padding-left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: fit-content;
  padding: 8px 0;
  border-bottom: 1px solid rgba(246,244,240,0.1);
}

.contact-link:hover {
  opacity: 1;
  border-bottom-color: #FF4937;
  padding-left: 8px;
}
.contact-link:hover .contact-link-arrow { transform: translateX(8px); }

.contact-link-arrow {
  font-size: 18px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-tagline {
  margin-top: 80px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.25;
}

/* ─── Footer ─── */
footer {
  padding: 40px 48px 32px;
  border-top: 1px solid rgba(246,244,240,0.06);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.footer-nav {
  display: flex;
  gap: 32px;
  list-style: none;
}

.footer-nav a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.footer-nav a:hover { opacity: 1; }

.footer-social {
  font-size: 11px;
  letter-spacing: 0.14em;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.footer-social:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(246,244,240,0.04);
  padding-top: 20px;
}

.footer-copy {
  font-size: 11px;
  letter-spacing: 0.1em;
  opacity: 0.18;
}

/* ─── Utilities ─── */
.accent { color: #FF4937; }

.placeholder-bg {
  background: linear-gradient(135deg, #0d0f14 0%, #111520 100%);
}

/* ─── Empty state ─── */
.empty-state {
  padding: 60px 0;
  opacity: 0.3;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 80vw);
    height: 100%;
    height: 100dvh;
    background: #0D0F14;
    border-left: 1px solid rgba(246, 244, 240, 0.07);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
    padding: 0 40px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 100;
    opacity: 1;
  }

  nav.nav-open .nav-links {
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 14px;
    opacity: 0.8;
  }

  /* Mobile: show the caret toggle */
  .nav-work-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-item-work.work-open .nav-work-arrow {
    transform: rotate(90deg);
    opacity: 1;
  }

  /* Mobile: inline sub-list in sidebar */
  .nav-dropdown {
    position: static;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-left: 1px solid rgba(246, 244, 240, 0.1);
    margin-left: 2px;
    padding: 4px 0 4px 16px;
    max-height: 0;
    overflow: hidden;
    transform: none;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  }

  .nav-item-work.work-open .nav-dropdown {
    max-height: 300px;
    opacity: 1;
    pointer-events: auto;
  }

  /* Suppress desktop hover-open in mobile */
  .nav-item-work:hover .nav-dropdown {
    opacity: 0;
    pointer-events: none;
    transform: none;
  }
  .nav-item-work.work-open:hover .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-dropdown li a {
    padding: 7px 0;
    font-size: 13px;
    opacity: 0.55;
  }

  .category-grid {
    grid-template-columns: 1fr;
    padding: 0 24px 60px;
  }

  .category-card.category-full { grid-column: span 1; }

  .hero { margin-top: 0; height: 100vh; }
  .page-hero { padding: 120px 24px 40px; }

  .project-list { padding: 0 24px 80px; }

  .project-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-row-year { display: none; }
  .project-row-thumb { max-width: 100%; }

  .video-section { padding: 0; }
  .project-section { padding-top: 60px; }
  .project-section-header { padding: 0 24px 24px; padding-top: 32px; }
  .project-section-bts { padding-bottom: 60px; margin-top: 32px; }
  .project-stills { padding: 0 24px; column-count: 1; }

  .project-header { padding: 100px 24px 40px; }
  .credits-section { padding: 40px 24px 80px; }

  .contact-section { padding: 80px 24px; }
  footer { padding: 32px 24px 24px; }
  .footer-main { margin-bottom: 20px; }
}

/* ─── View Transition overrides ─── */
/* Replace Astro's default crossfade with a cinematic scale-fade */
::view-transition-old(root) {
  animation: vt-fade-out 0.35s cubic-bezier(0.4, 0, 1, 1) forwards;
}
::view-transition-new(root) {
  animation: vt-fade-in 0.5s cubic-bezier(0, 0, 0.2, 1) 0.1s both;
}

@keyframes vt-fade-out {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.98); }
}
@keyframes vt-fade-in {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}

/* ─── Blur-up image loading ─── */
/* Images start blurred (low-res placeholder) and sharpen once loaded */
img[data-src] {
  filter: blur(8px);
  transition: filter 0.4s ease;
}
img[data-src].loaded {
  filter: blur(0);
}

/* ─── GSAP animation baseline ─── */
/* GSAP handles GPU promotion via inline styles during animation.
   No will-change here — premature promotion causes lag on image-heavy pages. */

/* ─── Preloader ─── */
/* Multi-phase intro: brand text → counter → panel split → content reveal */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

/* Skip on repeat visits */
.np-skip-loader #preloader { display: none; }

/* ── Two split panels — vertical curtain ── */
.preloader-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: #090B0F;
  transition: transform 1.4s cubic-bezier(0.76, 0, 0.24, 1);
}
.preloader-panel-left  { left: 0; }
.preloader-panel-right { right: 0; }

/* Phase 5: panels slide apart like curtains */
#preloader.preloader-split .preloader-panel-left {
  transform: translateX(-100%);
}
#preloader.preloader-split .preloader-panel-right {
  transform: translateX(100%);
}

/* ── Brand text: "NP" → "Nobody Productions" ── */
.preloader-brand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 1;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Phase 4: fade out brand text */
#preloader.preloader-text-out .preloader-brand {
  opacity: 0;
}

/* Letters: N and P */
.preloader-letter {
  display: inline-block;
  font-size: clamp(48px, 8vw, 100px);
  color: #F6F4F0;
  letter-spacing: 0.02em;
  line-height: 1;
  vertical-align: top;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Phase 1: letters fade in */
#preloader.preloader-letters-in .preloader-letter {
  opacity: 1;
  transform: translateY(0);
}

/* Expandable letters: collapsed to zero width, then expand + fade in */
.preloader-expand-letter {
  display: inline-block;
  font-size: clamp(48px, 8vw, 100px);
  color: #F6F4F0;
  letter-spacing: 0.02em;
  line-height: 1;
  vertical-align: top;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              max-width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i) * 0.045s);
}

/* Phase 2: letters expand and fade in with stagger */
#preloader.preloader-do-expand .preloader-expand-letter {
  opacity: 1;
  max-width: 0.7em;
  transform: translateY(0);
}

/* Space gets wider */
#preloader.preloader-do-expand .preloader-expand-space {
  max-width: 0.3em;
}

/* ── Progress bar + percentage (bottom-right) ── */
.preloader-progress {
  position: absolute;
  bottom: 48px;
  right: 48px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Show progress only when counter starts */
#preloader.preloader-counting .preloader-progress {
  opacity: 1;
}

#preloader.preloader-text-out .preloader-progress {
  opacity: 0;
}

.preloader-progress-bar {
  position: relative;
  width: 120px;
  height: 2px;
  overflow: hidden;
}

.preloader-progress-bar-bg {
  position: absolute;
  inset: 0;
  background: rgba(246, 244, 240, 0.15);
}

.preloader-progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #F6F4F0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.1s ease-out;
}

.preloader-percent {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(246, 244, 240, 0.6);
  line-height: 1;
}

.preloader-percent-sign {
  font-size: 11px;
  margin-left: 1px;
}

/* ── Content reveal system ── */
/* Elements start hidden; .np-ready on body triggers CSS transitions */
.np-reveal-clip {
  clip-path: inset(20% 0);
  transition: clip-path 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.np-reveal-up {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.np-reveal-fade {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* When body gets .np-ready, reveal everything */
.np-ready .np-reveal-clip {
  clip-path: inset(0);
}

.np-ready .np-reveal-up {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.np-ready .np-reveal-fade {
  opacity: 1;
}

/* Stagger delays — wider spacing so cascade is visible */
.np-d1 { transition-delay: 0s; }
.np-d2 { transition-delay: 0.15s; }
.np-d3 { transition-delay: 0.3s; }
.np-d4 { transition-delay: 0.45s; }
.np-d5 { transition-delay: 0.6s; }
.np-d6 { transition-delay: 0.8s; }

/* ── Responsive preloader ── */
@media (max-width: 600px) {
  .preloader-progress {
    bottom: 32px;
    right: 24px;
  }
  .preloader-progress-bar { width: 80px; }
}

/* ─────────────────────────────────────────────────────────────────
   HOMEPAGE — Editorial layout
   Each group is its own visual moment. Black space is the rhythm.
───────────────────────────────────────────────────────────────── */

/* ── Shared cell base ── */
.bento-cell {
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: #F6F4F0;
  background: rgba(246, 244, 240, 0.03);
}

/* ── Image cells (shared across all groups) ── */
.bento-img-wrap {
  position: absolute;
  inset: 0;
}
.bento-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-cell:hover .bento-img-wrap img {
  transform: scale(1.04);
  filter: brightness(1);
}
.bento-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(9, 11, 15, 0.80) 0%,
    rgba(9, 11, 15, 0.15) 50%,
    transparent 100%
  );
  pointer-events: none;
}

/* Project title + category label over image */
.bento-meta {
  position: absolute;
  bottom: 28px;
  left: 32px;
  right: 32px;
}
.bento-meta-category {
  display: block;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 6px;
}
.bento-meta-title {
  display: block;
  font-size: clamp(20px, 2.2vw, 34px);
  letter-spacing: 0.04em;
  line-height: 1;
}

/* ── Text cell internals ── */
.bento-text-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  gap: 6px;
}

/* ── Group spacing — the rhythm (intentionally irregular) ── */
.home-group {
  padding: 0;
}

/* ──────────────────────────────────────────────────────────────
   GROUP 1: Statement — hero project + side cells
   The hero image dominates. Side cells are secondary — narrow.
   Inset from left, bleeds right — asymmetric framing.
────────────────────────────────────────────────────────────── */
.home-statement {
  margin-top: 100px;
}
.home-statement-grid {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 4px;
  height: 88vh;
  min-height: 580px;
  max-height: 920px;
  margin-left: 3vw;
}
.home-statement-hero {
  display: block;
}
.home-statement-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.home-statement-side .bento-cell {
  flex: 1;
}

/* Stat cell: "THE REAL THING." */
.bento-eyebrow {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.32;
  margin-bottom: 14px;
}
.bento-big {
  font-size: clamp(32px, 3vw, 50px);
  letter-spacing: 0.01em;
  line-height: 0.88;
}

/* Accent cell: "CAIRO" on brand red */
.bc-accent {
  background: #FF4937;
}
.bc-accent .bento-text-inner {
  justify-content: space-between;
  padding-top: 26px;
}
.bc-accent-word {
  font-size: clamp(52px, 6vw, 100px);
  letter-spacing: -0.025em;
  line-height: 0.82;
  color: #090B0F;
}
.bc-accent-sub {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(9, 11, 15, 0.4);
}

/* ──────────────────────────────────────────────────────────────
   BRAND MOMENT — "NOBODY." as a massive watermark
   with a thin accent rule above it for editorial rhythm
────────────────────────────────────────────────────────────── */
.home-brand-moment {
  padding: 180px 0 160px;
  padding-right: 20vw;
  padding-left: 5vw;
  position: relative;
}
.home-brand-moment::before {
  content: '';
  position: absolute;
  top: 90px;
  left: 5vw;
  width: 40px;
  height: 1px;
  background: #FF4937;
}
.home-brand-text {
  font-size: clamp(100px, 15vw, 280px);
  letter-spacing: -0.03em;
  line-height: 0.82;
  color: #F6F4F0;
  opacity: 0.05;
}

/* ──────────────────────────────────────────────────────────────
   GROUP 2: First pair — asymmetric split (wider left)
────────────────────────────────────────────────────────────── */
.home-pair {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4px;
  margin-top: 4px;
  padding: 0 6vw 0 2vw;
}
.home-pair-item {
  height: 60vh;
  min-height: 400px;
  max-height: 650px;
  display: block;
}

/* ──────────────────────────────────────────────────────────────
   GROUP 3: Showcase — single project, offset left
   Not centered — bleeds left, breathes right.
────────────────────────────────────────────────────────────── */
.home-showcase {
  margin-top: 200px;
  padding: 0 12vw 0 8vw;
}
.home-showcase-item {
  display: block;
  height: 75vh;
  min-height: 480px;
  max-height: 800px;
}

/* ──────────────────────────────────────────────────────────────
   GROUP 4: Second pair — reversed asymmetry (wider right)
   Different proportions from pair 1 to break the pattern.
────────────────────────────────────────────────────────────── */
.home-pair-offset {
  grid-template-columns: 2fr 3fr;
  margin-top: 180px;
  padding: 0 3vw 0 14vw;
}
.home-pair-offset .home-pair-item {
  height: 50vh;
  min-height: 340px;
  max-height: 550px;
}

/* ──────────────────────────────────────────────────────────────
   CTA — "VIEW ALL WORK →"
   Generous top margin. Thin rule above for editorial close.
────────────────────────────────────────────────────────────── */
.home-cta-section {
  padding: 0 48px 180px;
  margin-top: 160px;
  position: relative;
}
.home-cta-section::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(246, 244, 240, 0.2);
  margin-bottom: 48px;
}
.home-cta {
  display: inline-flex;
  align-items: baseline;
  gap: 28px;
  text-decoration: none;
  color: #F6F4F0;
}
.home-cta-label {
  font-size: clamp(40px, 5.5vw, 80px);
  letter-spacing: 0.02em;
  line-height: 1;
}
.home-cta-arrow {
  font-size: 36px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.home-cta:hover .home-cta-arrow {
  transform: translateX(18px);
}

/* ── Placeholder (no Sanity content yet) ── */
.bento-placeholder {
  background: rgba(246, 244, 240, 0.02);
  border: 1px dashed rgba(246,244,240,0.1);
}

/* ── Tablet ── */
@media (max-width: 960px) {
  .home-statement-grid {
    grid-template-columns: 3fr 2fr;
    height: 70vh;
    min-height: 480px;
  }
  .home-statement { margin-top: 60px; }
  .home-statement-grid { margin-left: 0; }
  .home-brand-moment { padding: 120px 12vw 100px 4vw; }
  .home-brand-moment::before { left: 4vw; top: 60px; }
  .home-brand-text { font-size: clamp(60px, 12vw, 160px); }
  .home-pair { grid-template-columns: 1fr 1fr; padding: 0 4vw 0 2vw; }
  .home-pair-item { height: 45vh; min-height: 300px; }
  .home-pair-offset {
    grid-template-columns: 1fr 1fr;
    padding: 0 2vw 0 8vw;
    margin-top: 100px;
  }
  .home-pair-offset .home-pair-item { height: 45vh; min-height: 300px; }
  .home-showcase { padding: 0 8vw 0 4vw; margin-top: 120px; }
  .home-showcase-item { height: 50vh; min-height: 350px; }
  .home-cta-section { padding: 0 32px 120px; margin-top: 120px; }
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .home-statement-grid {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
    max-height: none;
  }
  .home-statement-hero { height: 65vh; min-height: 380px; }
  .home-statement-side {
    flex-direction: row;
    height: 180px;
  }
  .home-statement { margin-top: 48px; }
  .home-statement-grid { margin-left: 0; }
  .home-brand-moment { padding: 80px 20px 60px; }
  .home-brand-moment::before { left: 20px; top: 40px; }
  .home-brand-text { font-size: clamp(56px, 18vw, 120px); }
  .home-pair {
    grid-template-columns: 1fr;
    padding: 0 4vw;
  }
  .home-pair-item { height: 50vh; min-height: 300px; }
  .home-pair-offset {
    grid-template-columns: 1fr;
    padding: 0 4vw;
    margin-top: 48px;
  }
  .home-pair-offset .home-pair-item { height: 50vh; min-height: 300px; }
  .home-showcase { padding: 0 4vw; margin-top: 64px; }
  .home-showcase-item { height: 50vh; min-height: 300px; }
  .home-cta-section { padding: 0 20px 100px; margin-top: 80px; }
  .bc-accent-word { font-size: clamp(48px, 16vw, 80px); }
}
