/* ══════════════════════════════════════════════════════════
   PROJECT PAGE STYLES — shared by all /projects/*.html
   Matches the brand system of the main index.html
   ══════════════════════════════════════════════════════════ */

/* ─── iOS NATIVE VIDEO OVERLAY SUPPRESSION ───────────── */
/* Hide the big "play" button iOS Safari shows over muted+playsinline videos
   even when they're actively looping, plus the AirPlay/picture-in-picture chrome. */
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-overlay-play-button,
video::-webkit-media-controls-panel,
video::-webkit-media-controls,
video::-webkit-media-controls-enclosure {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* Dark fallback so the element doesn't flash white while loading */
video { background: #000; }

/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --black:   #080808;
  --white:   #f5f2ee;
  --acid:    #d4f000;
  --orange:  #ff4d00;
  --magenta: #e8005a;
  --mid:     #1a1a1a;
  --muted:   #555;
  --radius:  4px;
  --gap:     clamp(40px, 8vw, 120px);
}

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── CUSTOM CURSOR ──────────────────────────────────── */
#cursor {
  position: fixed; top: 0; left: 0; width: 12px; height: 12px;
  background: var(--acid); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s, background .2s;
}
#cursor-ring {
  position: fixed; top: 0; left: 0; width: 38px; height: 38px;
  border: 1.5px solid rgba(212,240,0,.5); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform .12s ease-out, width .2s, height .2s, opacity .2s;
}
body:has(a:hover) #cursor, body:has(button:hover) #cursor {
  width: 20px; height: 20px; background: var(--orange);
}

/* ─── NAV ────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 48px;
  pointer-events: none; /* gradient layer doesn't catch clicks */
}
nav > * { pointer-events: auto; } /* but actual children DO */
nav::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(8,8,8,.92), transparent);
  pointer-events: none;
  z-index: 0;
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem; letter-spacing: .12em;
  color: var(--acid);
  position: relative; z-index: 10;
  cursor: pointer;
  pointer-events: auto;
}
.nav-links {
  display: flex; gap: 32px; list-style: none;
  position: relative; z-index: 10;
  pointer-events: auto;
}
.nav-links li { pointer-events: auto; }
.nav-links a {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--acid);
  opacity: 1;
  padding: 10px 6px;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
  transform-origin: center;
  transition: transform .2s ease;
}
.nav-links a:hover { transform: scale(1.18); }
.nav-links a:active { transform: scale(1.08); }

/* ─── PROJECT PAGE LAYOUT ────────────────────────────── */
.project-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(120px, 16vw, 180px) 48px clamp(60px, 8vw, 100px);
}

/* back link */
.project-back {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(245,242,238,.5);
  margin-bottom: 40px;
  transition: color .2s, gap .2s;
}
.project-back:hover { color: var(--acid); gap: 14px; }

/* header */
.project-header { margin-bottom: clamp(40px, 5vw, 64px); }
.project-eyebrow {
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--acid); display: block; margin-bottom: 18px;
}
.project-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px, 7vw, 104px);
  line-height: .98; letter-spacing: .02em;
  max-width: 14ch;
}
.project-divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--magenta));
  margin: 28px 0 0;
}

/* video embed */
.project-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(48px, 6vw, 80px);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.project-video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}

/* info row: client + description + credits */
.project-info {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 5vw, 80px);
  margin-bottom: clamp(56px, 7vw, 100px);
}
.project-info-side {
  display: flex; flex-direction: column; gap: 32px;
}
.info-block h2 {
  font-size: .7rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--acid); margin-bottom: 10px;
}
.info-block p {
  font-size: .95rem; line-height: 1.7;
  color: rgba(245,242,238,.75);
}
.info-block .credit-line {
  display: block;
  font-size: .9rem; line-height: 1.9;
  color: rgba(245,242,238,.6);
}
.info-block .credit-line strong {
  color: rgba(245,242,238,.85); font-weight: 500;
}
.project-description p {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.85;
  color: rgba(245,242,238,.8);
  margin-bottom: 22px;
}
.project-description p:last-child { margin-bottom: 0; }

/* gallery */
.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: clamp(56px, 7vw, 100px);
}
.project-gallery figure {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--mid);
  border-radius: var(--radius);
  overflow: hidden;
}
.project-gallery figure.wide { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.project-gallery img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.project-gallery figure:hover img { transform: scale(1.04); }
/* ultra-wide banner stills — shown full, at natural ratio */
.project-gallery figure.banner {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  background: var(--mid);
}
.project-gallery figure.banner img {
  position: static;
  width: 100%; height: auto;
}
.project-gallery figure.banner:hover img { transform: none; }

/* next-project navigation */
.project-pagination {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid rgba(245,242,238,.08);
}
.project-pagination .pag-link {
  display: inline-flex; flex-direction: column; gap: 6px;
}
.project-pagination .pag-link.next { text-align: right; margin-left: auto; }
.pag-label {
  font-size: .66rem; letter-spacing: .25em; text-transform: uppercase;
  color: rgba(245,242,238,.4);
}
.pag-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(20px, 2.4vw, 30px); letter-spacing: .04em;
  color: var(--white);
  transition: color .2s;
}
.project-pagination .pag-link:hover .pag-title { color: var(--acid); }

/* ─── MULTI-PRODUCTION PAGE ──────────────────────────── */
.project-intro {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.7;
  color: rgba(245,242,238,.78);
  max-width: 780px;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.production {
  margin-bottom: clamp(64px, 9vw, 130px);
}
.production-head { margin-bottom: 30px; }
.production-label {
  font-size: .7rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--acid); display: block; margin-bottom: 14px;
}
.production-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1; letter-spacing: .03em;
}
.production-sub {
  margin-top: 12px;
  font-size: .95rem; letter-spacing: .04em;
  color: rgba(245,242,238,.5);
}
/* awards row */
.awards-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 22px 0 2px;
}
.award-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .74rem; letter-spacing: .04em;
  color: var(--white);
  background: rgba(212,240,0,.07);
  border: 1px solid rgba(212,240,0,.25);
  padding: 9px 16px; border-radius: 100px;
}
.award-badge .trophy { font-size: .95rem; }
.award-badge .yr { color: rgba(245,242,238,.5); }

.production-body {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: clamp(28px, 4vw, 64px);
  margin-bottom: 36px;
  align-items: start;
}
.production-meta .info-block { margin-bottom: 24px; }
.production-meta .info-block:last-child { margin-bottom: 0; }
.production-desc p {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.85;
  color: rgba(245,242,238,.8);
  margin-bottom: 18px;
}
.production-desc p:last-child { margin-bottom: 0; }

/* media grid — looping videos + stills */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.media-item {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--mid);
  border-radius: var(--radius);
  overflow: hidden;
}
.media-item.wide { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.media-item video,
.media-item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.media-item video { background: #000; }
.media-item:hover video,
.media-item:hover img { transform: scale(1.03); }

/* ─── UNCROPPED STACK ────────────────────────────────── */
/* Stack of media shown at natural aspect ratio — no cropping. */
.uncropped-stack {
  display: flex; flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.uncropped-stack figure {
  background: var(--mid);
  border-radius: var(--radius);
  overflow: hidden;
}
.uncropped-stack img,
.uncropped-stack video {
  display: block;
  width: 100%; height: auto;
  max-width: 100%;
}
/* Masonry grid — columns layout, each item shown at natural aspect (no cropping). */
.masonry-grid {
  column-gap: 14px;
  margin-top: 4px;
}
.masonry-grid figure {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 14px;
  background: var(--mid);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
}
.masonry-grid img,
.masonry-grid video {
  display: block;
  width: 100%; height: auto; max-width: 100%;
}
.masonry-grid.cols-3 { columns: 3; }
.masonry-grid.cols-2 { columns: 2; }
@media (max-width: 900px) {
  .masonry-grid.cols-3 { columns: 2; }
}
@media (max-width: 600px) {
  .masonry-grid.cols-3,
  .masonry-grid.cols-2 { columns: 1; }
}

/* Featured hero variant — same rules, used to replace a fixed-aspect video block */
.project-hero-image {
  margin-bottom: clamp(48px, 6vw, 80px);
  background: var(--mid);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.project-hero-image img {
  display: block; width: 100%; height: auto; max-width: 100%;
}

/* ─── VIMEO EMBED GRID ───────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.video-grid.single { grid-template-columns: 1fr; max-width: 1000px; }
.video-block { display: flex; flex-direction: column; }
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
.video-caption {
  margin-top: 12px;
  font-size: .8rem; letter-spacing: .03em;
  color: rgba(245,242,238,.55);
  line-height: 1.5;
}
.video-caption strong {
  color: var(--white); font-weight: 500;
  display: block; margin-bottom: 2px;
  font-size: .9rem; letter-spacing: .04em;
}

/* ─── PRODUCT CHIPS ──────────────────────────────────── */
.product-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 4px;
}
.product-chip {
  font-size: .76rem; letter-spacing: .06em;
  padding: 9px 18px; border-radius: 100px;
  border: 1px solid rgba(212,240,0,.28);
  background: rgba(212,240,0,.05);
  color: rgba(245,242,238,.85);
}

/* ─── LOGO STRIP ─────────────────────────────────────── */
/* Logos display at natural aspect ratio against the page background,
   uniform height, wrapping across rows. No card backgrounds. */
.logo-wall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 36px 56px;
  padding: 18px 0 8px;
}
.logo-cell {
  display: flex; align-items: center;
  height: 60px;
  opacity: .88;
  transition: opacity .25s ease, transform .35s cubic-bezier(.16,1,.3,1);
}
.logo-cell:hover { opacity: 1; transform: translateY(-3px); }
.logo-cell img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

@media (max-width: 700px) {
  .logo-wall { gap: 28px 36px; }
  .logo-cell { height: 44px; }
  .logo-cell img { max-width: 160px; }
}

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  background: var(--black);
  padding: 32px 48px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(245,242,238,.07);
}
footer p {
  font-size: .72rem; color: rgba(245,242,238,.3);
  letter-spacing: .08em;
}
.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem; letter-spacing: .15em; color: rgba(245,242,238,.2);
}

/* ─── SCROLL REVEAL ──────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 16px 16px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: .82rem; letter-spacing: .08em; padding: 8px 4px; }
  .nav-logo { font-size: 1.3rem; }
  .project-page { padding: 110px 24px 70px; }
  .project-info { grid-template-columns: 1fr; gap: 36px; }
  .production-body { grid-template-columns: 1fr; gap: 28px; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 600px) {
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery figure.wide { aspect-ratio: 4 / 3; }
  .media-grid { grid-template-columns: 1fr; }
  .media-item.wide { aspect-ratio: 16 / 10; }
  .video-grid { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
