/* ─── Google Fonts ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600&display=swap');

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

/* ─── Base ───────────────────────────────────────────────────── */
:root {
  --font: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  /* DIN Condensed is a macOS/iOS system font — no import needed */
  --font-display: 'DIN Condensed', 'DINCondensed-Bold', 'Arial Narrow', sans-serif;
  /* Proxima Nova fallback via Nunito Sans (close match) */
  --font-proxima: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
  --black: #111111;
  --white: #ffffff;
  --mid:   #999999;
  --gap:   20px;
  --side:  120px;
}

html { font-size: 13px; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Nav ────────────────────────────────────────────────────── */
.nav {
  text-align: center;
  padding: 52px 24px 36px;
}

.nav-logo { margin-bottom: 22px; }

.nav-logo a {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1;
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 4px 16px;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--black); }

/* ─── Project Grid ───────────────────────────────────────────── */
.grid-wrap {
  padding: 0 var(--side);
  margin-bottom: 80px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  /* No background — gap color comes from the wrap bg */
  background: #ffffff;
}

.project-card { background: var(--white); }

.project-card a {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 47 / 20;
  background: #111;
}

.project-card img.thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* Hover overlay — darkens + shows centered title */
.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
  pointer-events: none;
}

.card-title-label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  padding: 0 20px;
}

.project-card a:hover .card-overlay    { background: rgba(0,0,0,0.48); }
.project-card a:hover .card-title-label { opacity: 1; transform: translateY(0); }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  display: flex;
  justify-content: center;
  padding: 24px 24px 52px;
}

.footer-instagram {
  color: var(--black);
  opacity: 0.55;
  transition: opacity 0.2s;
  display: inline-flex;
}

.footer-instagram:hover { opacity: 1; }
.footer-instagram svg { width: 22px; height: 22px; }

/* ─── Project Page Nav ───────────────────────────────────────── */
.project-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 36px 36px;
  position: relative;
}

.project-nav .nav-logo { margin-bottom: 0; }

.back-link {
  position: absolute;
  left: 36px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.back-link:hover { color: var(--black); }
.back-link::before { content: '←'; font-size: 14px; font-weight: 300; }

/* ─── Vimeo Embed ────────────────────────────────────────────── */
.video-wrap {
  position: relative;
  width: calc(100% - var(--side) * 2);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
}

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

/* ─── Project Meta (under video) ─────────────────────────────── */
.project-meta {
  padding: 20px var(--side) 28px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.project-meta-title {
  font-family: var(--font-proxima);
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--mid);
  text-transform: none;
  line-height: 1;
}

.project-meta-right {
  display: flex;
  gap: 36px;
  align-items: baseline;
  flex-shrink: 0;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

.meta-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
}

.meta-value {
  font-size: 11px;
  font-weight: 400;
  color: var(--black);
}

/* ─── Production Stills ──────────────────────────────────────── */
.stills-section {
  padding: 0 var(--side);
  margin-top: 8px;
}

.stills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  background: #ffffff;
}

.still-item {
  aspect-ratio: 16 / 10;
  background: #111;
  overflow: hidden;
}

.still-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.still-item:hover img { transform: scale(1.03); }

/* ─── Project Bottom Nav ─────────────────────────────────────── */
.project-bottom-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px var(--side);
  margin-top: 32px;
}

.bottom-nav-back {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bottom-nav-back::before { content: '←'; font-size: 14px; font-weight: 300; }
.bottom-nav-back:hover { color: var(--black); }

.bottom-nav-prevnext {
  display: flex;
  align-items: center;
  gap: 28px;
}

.bottom-nav-prevnext a {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.2s;
}

.bottom-nav-prevnext a:hover { color: var(--black); }
.prev-link::before { content: '← '; }
.next-link::after  { content: ' →'; }

/* ─── Related Projects Strip ─────────────────────────────────── */
.related-strip {
  padding: 0 var(--side) 80px;
}

/* Reset homepage margin when grid is used inside related strip */
.related-strip .grid-wrap,
.related-strip .project-grid { margin-bottom: 0; }

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  background: #ffffff;
}

.related-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 47 / 20;
  background: #111;
  display: block;
}

.related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
  pointer-events: none;
}

.related-card:hover .related-card-overlay { background: rgba(0,0,0,0.48); }

.related-card-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  text-align: center;
  padding: 0 10px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.related-card:hover .related-card-title { opacity: 1; transform: translateY(0); }

/* Project footer */
.project-footer {
  display: flex;
  justify-content: center;
  padding: 20px 24px 52px;
}

/* ─── About Page ─────────────────────────────────────────────── */
.about-page { min-height: 100vh; display: flex; flex-direction: column; }

.about-content {
  display: grid;
  grid-template-columns: 490px 480px;
  gap: 60px;
  padding: 20px var(--side) 80px;
  flex: 1;
  justify-content: center;
}

.about-photo {
  width: 100%;
  display: block;
  object-fit: cover;
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #d0d0d0;
}

.about-text { padding-top: 4px; }

.about-info-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 16px;
  display: block;
}

.about-bio {
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.8;
  color: #333;
  margin-bottom: 28px;
}

.about-contact {
  font-size: 12px;
  color: #444;
  line-height: 2.2;
}

.about-contact a { transition: color 0.2s; }
.about-contact a:hover { color: var(--mid); }

.about-contact-prefix {
  color: var(--mid);
  font-size: 11px;
  margin-right: 6px;
}

.reel-btn {
  display: inline-block;
  margin-top: 28px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--black);
  padding: 11px 22px;
  transition: background 0.2s, color 0.2s;
}

.reel-btn:hover { background: var(--black); color: var(--white); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .about-content { grid-template-columns: 380px 1fr; }
}

@media (max-width: 1024px) {
  :root { --side: 60px; }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .about-content { grid-template-columns: 320px 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --side: 20px; }
  .nav-logo a { font-size: 30px; }
  .project-grid { grid-template-columns: 1fr; }
  .stills-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .about-content { grid-template-columns: 1fr; gap: 28px; padding: 16px 20px 60px; justify-content: start; }
  .project-meta { flex-direction: column; gap: 16px; padding: 20px; }
  .project-meta-right { align-items: flex-start; flex-wrap: wrap; gap: 16px; }
  .meta-item { align-items: flex-start; }
  .project-bottom-nav { flex-direction: column; gap: 20px; align-items: flex-start; padding: 24px 20px; }
  .stills-section { padding: 0 20px; }
  .related-strip { padding: 0 20px 60px; }
  .video-wrap { width: 100%; }

  /* Project page nav: stack vertically on mobile to prevent overlap */
  .project-nav {
    flex-direction: column;
    gap: 12px;
    padding: 24px 16px 20px;
    position: static;
  }
  .project-nav .back-link {
    position: static;
    align-self: flex-start;
  }
  .project-nav .nav-links {
    position: static !important;
  }
}
