/* ============================================================
   style.css — portfolio
   FRAME aesthetic: dark, editorial, gold accent
   ============================================================ */

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

:root {
  --bg:            #0a0a0a;
  --surface:       #111111;
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(200, 185, 122, 0.34);
  --text:          #e8e4dc;
  --muted:         #888888;
  --accent:        #c8b97a;
  --font-mono:     'DM Mono', monospace;
  --font-display:  'Bebas Neue', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Filmstrip scroll bar ──────────────────────────────────── */
.filmstrip {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1000;
  background: var(--border);
}
.filmstrip-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Header ────────────────────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}
.logo-role {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-sep {
  width: 1px;
  height: 14px;
  background: var(--border-strong);
  margin: 0 20px;
}
.nav-link {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active { color: var(--text); }

/* ── Hero banner ───────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero img,
.hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Vimeo / YouTube background embed */
.hero-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Wider than the container so it crops like object-fit:cover */
  width: 177.78vh; /* 16/9 * 100vh */
  height: 56.25vw; /* 9/16 * 100vw */
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0.7) 100%);
}
.hero-content {
  position: absolute;
  bottom: 48px;
  left: 48px;
}
.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.hero-title {
  font-size: 72px;
  line-height: 0.95;
  margin-bottom: 10px;
}
.hero-subtitle {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero-cta {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--border-strong);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.hero-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ── Portfolio section header ──────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  border-bottom: 1px solid var(--border);
}
.section-head h2 {
  font-size: 32px;
}
.section-count {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ── Portfolio grid ────────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.portfolio-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio-item:hover img {
  transform: scale(1.04);
}
.portfolio-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.portfolio-item:hover .portfolio-item-overlay {
  opacity: 1;
}
.portfolio-item-category {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.portfolio-item-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.1;
}
.portfolio-item-year {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.footer-social {
  display: flex;
  gap: 24px;
}
.footer-social a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--accent); }

/* ── Detail page ───────────────────────────────────────────── */

/* Hero still (first image, full-width) */
.detail-hero {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  cursor: zoom-in;
}

/* Meta bar: title + category + year */
.detail-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 40px 20px;
  border-bottom: 1px solid var(--border);
  gap: 24px;
}
.detail-title {
  font-size: 48px;
  line-height: 1;
}
.detail-badge {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* Description + credits two-column */
.detail-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.detail-description {
  padding: 36px 40px;
  border-right: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.75;
  color: var(--text);
}
.detail-description p + p { margin-top: 1em; }
.detail-credits {
  padding: 36px 32px;
}
.detail-credits dl {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.detail-credits dt {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
}
.detail-credits dd {
  font-size: 12px;
  color: var(--text);
}

/* Video embed */
.detail-video {
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: #000;
}
.detail-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

/* Stills grid */
.detail-stills-head {
  padding: 24px 40px 16px;
  border-bottom: 1px solid var(--border);
}
.detail-stills-head h3 {
  font-size: 20px;
}
.detail-stills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.detail-still-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  cursor: zoom-in;
}
.detail-still-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.detail-still-item:hover img { transform: scale(1.03); }

/* Prev / Next navigation */
.detail-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}
.detail-nav-item {
  padding: 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.2s;
}
.detail-nav-item:hover { background: var(--surface); }
.detail-nav-item:first-child { border-right: 1px solid var(--border); }
.detail-nav-item.next { align-items: flex-end; text-align: right; }
.detail-nav-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-nav-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.detail-nav-category {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Reel modal ────────────────────────────────────────────── */
.reel-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.90);
  z-index: 1500;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.reel-modal.open { display: flex; }
.reel-modal-inner {
  position: relative;
  width: 90vw;
  max-width: 1100px;
}
.reel-modal-close {
  position: absolute;
  top: -2.4rem;
  right: 0;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px 8px;
}
.reel-modal-close:hover { color: var(--accent); }
.reel-modal-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.reel-modal-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Lightbox ──────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: var(--font-mono);
}
.lightbox-close:hover { color: var(--text); }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 20px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-mono);
}
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .header { padding: 18px 24px; }
  .hero-content { left: 24px; bottom: 32px; }
  .hero-title { font-size: 48px; }
  .section-head { padding: 20px 24px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-meta { padding: 20px 24px; flex-direction: column; gap: 8px; }
  .detail-title { font-size: 36px; }
  .detail-body { grid-template-columns: 1fr; }
  .detail-description { padding: 24px; border-right: none; border-bottom: 1px solid var(--border); }
  .detail-credits { padding: 24px; }
  .detail-stills-head { padding: 16px 24px 12px; }
  .detail-stills-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-nav-item { padding: 20px 24px; }
  .footer { padding: 20px 24px; flex-direction: column; gap: 12px; align-items: flex-start; }
}

@media (max-width: 600px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .detail-stills-grid { grid-template-columns: 1fr; }
  .detail-hero { aspect-ratio: 4 / 3; }
  .hero { aspect-ratio: 4 / 3; }
  .hero-title { font-size: 36px; }
  .nav-link { font-size: 10px; }
  .nav-sep { margin: 0 12px; }
}
