/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #f5f1e8;
  --surface:   #ede9df;
  --border:    #ccc7ba;
  --text:      #1e1b17;
  --muted:     #5a5348;
  --accent:    #7a5c2e;
  --dark:      #111009;
  --white:     #ffffff;

  --font-display: 'Arvo', Georgia, serif;
  --font-body:    'Inter', sans-serif;

  --nav-h: 64px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 clamp(24px, 5vw, 64px);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--dark);
  transition: color var(--transition);
}
.nav__logo:hover { color: var(--accent); }

.nav__links {
  list-style: none;
  display: flex;
  gap: clamp(24px, 3vw, 48px);
}

.nav__links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav__links a:hover         { color: var(--dark); }
.nav__links a:hover::after  { width: 100%; }
.nav__links a.active        { color: var(--dark); }
.nav__links a.active::after { width: 100%; }

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--dark);
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav */
.nav__mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 32px 0 40px;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s;
  pointer-events: none;
  z-index: 99;
}
.nav__mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.nav__mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.nav__mobile a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
}
.nav__mobile a:hover { color: var(--dark); }

/* ─────────────────────────────────────────
   HERO / REEL
───────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  padding-top: var(--nav-h);
  background: #000;
}

.hero__video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
}
.hero__video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.hero__label {
  background: var(--bg);
  padding: 14px clamp(24px, 5vw, 64px);
  border-bottom: 1px solid var(--border);
}
.hero__label span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─────────────────────────────────────────
   WORK GRID
───────────────────────────────────────── */
.work {
  padding: clamp(48px, 6vw, 96px) clamp(24px, 5vw, 64px);
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(20px, 2.5vw, 36px);
}

.work__item {
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.work__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.work__item:nth-child(2) { transition-delay: 0.07s; }
.work__item:nth-child(3) { transition-delay: 0.14s; }
.work__item:nth-child(4) { transition-delay: 0.21s; }
.work__item:nth-child(5) { transition-delay: 0.28s; }
.work__item:nth-child(6) { transition-delay: 0.35s; }
.work__item:nth-child(n+7) { transition-delay: 0.42s; }

.work__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
}

.work__thumb img {
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1), filter 0.55s ease;
  filter: brightness(0.92) saturate(0.9);
}
.work__item:hover .work__thumb img {
  transform: scale(1.04);
  filter: brightness(0.85) saturate(0.8);
}

.work__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transition: opacity var(--transition);
  padding: 20px;
  background: rgba(245, 241, 232, 0.75); /* #f5f1e8 at 75% = 25% transparent */
}
.work__item:hover .work__overlay { opacity: 1; }

.play-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.play-icon circle  { stroke: #1e1b17; }
.play-icon polygon { fill: #1e1b17; }
.work__item:hover .play-icon { transform: scale(1.08); }

.work__overlay-title {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.03em;
  color: #1e1b17;
  text-align: center;
  line-height: 1.15;
}

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
.about {
  border-top: 1px solid var(--border);
  padding: clamp(64px, 8vw, 120px) clamp(24px, 5vw, 64px);
}
.about__inner  { max-width: 560px; }

.about__heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
  color: var(--dark);
}

.about__text p {
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.85;
}
.about__text em {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
}

.about__contact {
  display: inline-block;
  margin-top: 28px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  transition: color var(--transition), border-color var(--transition);
}
.about__contact:hover {
  color: var(--accent);
  border-color: transparent;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px clamp(24px, 5vw, 64px);
  text-align: center;
}
.site-footer p {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ─────────────────────────────────────────
   LIGHTBOX
───────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(16, 14, 10, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 20px;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(245,241,232,0.7);
  font-size: 22px;
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
  padding: 8px;
}
.lightbox__close:hover { color: var(--bg); }

.lightbox__inner {
  width: 100%;
  max-width: 1100px;
  transform: scale(0.96);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.lightbox.is-open .lightbox__inner { transform: scale(1); }

.lightbox__video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
}
.lightbox__video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ─────────────────────────────────────────
   CV PAGE
───────────────────────────────────────── */
.cv-page {
  padding-top: calc(var(--nav-h) + 52px);
  padding-bottom: 96px;
  padding-left:  clamp(24px, 8vw, 120px);
  padding-right: clamp(24px, 8vw, 120px);
}

/* Constrain readable sections but let gaffer grid go full width */
.cv-page > .cv-section:not(.cv-section--gaffer),
.cv-page > h1,
.cv-page > .cv-subtitle,
.cv-page > .cv-imdb-link {
  max-width: 860px;
}

.cv-page h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1;
}

.cv-subtitle {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.cv-imdb-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  margin-bottom: 56px;
  transition: opacity var(--transition);
}
.cv-imdb-link:hover { opacity: 0.65; }

/* ── Section ── */
.cv-section {
  margin-bottom: 52px;
}

.cv-section__partial {
  font-weight: 400;
  letter-spacing: 0.12em;
  opacity: 0.6;
}

.cv-section__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--border);
}

/* ── Credit row ── */
.cv-credit {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 28px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.cv-credit__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--dark);
  line-height: 1.25;
}

.cv-credit__meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.cv-credit__role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 2px;
  text-transform: uppercase;
}

.cv-credit__note {
  font-size: 12px;
  font-weight: 400;
  color: var(--accent);
  font-style: italic;
  margin-top: 2px;
}

/* ── Gaffer / CLT section — subdued ── */
.cv-section--gaffer .cv-section__partial {
  font-weight: 400;
  letter-spacing: 0.12em;
  opacity: 0.6;
}

.cv-section__label {
  color: var(--muted);
  border-bottom-color: #d0cbbf;
  letter-spacing: 0.22em;
}

.cv-section--gaffer .cv-credit {
  border-bottom-color: #ddd8ce;
  padding: 8px 0;
}

.cv-section--gaffer .cv-credit__title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.cv-section--gaffer .cv-credit__meta {
  font-size: 11px;
  color: #9a9488;
}

.cv-section--gaffer .cv-credit__role {
  font-size: 10px;
  font-weight: 500;
  color: #9a9488;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.cv-gaffer-intro {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.7;
  max-width: 560px;
}

.cv-gaffer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(20px, 3vw, 48px);
  width: 100%;
}

.cv-gaffer-grid .cv-credit {
  grid-column: span 1;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links  { display: none; }
  .nav__burger { display: flex; }
  .work__grid  { grid-template-columns: 1fr; }
  .cv-page {
    padding-left:  24px;
    padding-right: 24px;
  }
  .cv-credit {
    grid-template-columns: 1fr;
  }
  .cv-credit__meta { margin-top: 4px; }
  .cv-gaffer-grid  { grid-template-columns: 1fr; }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1400px) {
  .work__grid { grid-template-columns: repeat(3, 1fr); }
}