/* ============================================================
   ANUSMITA BASU — Design tokens
   Palette: near-black ground, warm parchment text, muted gold
   signature, deep burgundy for interaction states.
   Type: Inter throughout (sans-serif only, per direction).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  --ground: #0a0a0b;
  --ground-raised: #131315;
  --ground-line: #232326;
  --parchment: #ece7dc;
  --parchment-dim: #9c968a;
  --gold: #c9a15a;
  --gold-dim: #8a7550;
  --burgundy: #6e2a2a;

  --sans: 'Inter', -apple-system, sans-serif;
  --serif: var(--sans);

  --max: 1280px;
  --edge: clamp(24px, 6vw, 80px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--parchment);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--ground); }

/* ---------- Layout shells ---------- */

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--edge); padding-right: var(--edge); }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ground-line);
}

.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { font-family: var(--sans); font-size: 1.05rem; letter-spacing: 0.06em; font-weight: 600; color: var(--parchment); }

nav.main-nav { display: flex; gap: clamp(16px, 3vw, 40px); }

nav.main-nav a {
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--parchment-dim); padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

nav.main-nav a:hover, nav.main-nav a.active { color: var(--gold); border-bottom-color: var(--gold); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--ground-line);
  color: var(--parchment); width: 40px; height: 40px; font-size: 1.1rem; cursor: pointer;
}

@media (max-width: 720px) {
  nav.main-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--ground); flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--ground-line);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 16px var(--edge); border-bottom: 1px solid var(--ground-line); width: 100%; }
  .nav-toggle { display: block; }
}

/* ---------- Eyebrow / labels ---------- */

.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold-dim); }

.frame-count { font-variant-numeric: tabular-nums; color: var(--parchment-dim); font-size: 0.72rem; letter-spacing: 0.05em; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(50px, 8vw, 90px) 0 clamp(30px, 5vw, 50px); overflow: hidden; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(201,161,90,0.10), transparent 60%);
  pointer-events: none;
}
.hero h1 {
  font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08;
  letter-spacing: -0.01em; margin: 0 0 20px; max-width: 16ch;
}
.lede, .hero p.lede { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--parchment-dim); max-width: 52ch; margin: 0 0 36px; }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px;
  font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid var(--gold-dim); transition: all 0.25s ease;
}
.btn.primary { background: var(--gold); color: var(--ground); border-color: var(--gold); }
.btn.primary:hover { background: transparent; color: var(--gold); }
.btn.ghost { color: var(--parchment); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Section scaffolding ---------- */

section { padding: clamp(50px, 7vw, 90px) 0; }
section.tight { padding: clamp(24px, 4vw, 40px) 0; }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px;
  margin-bottom: 44px; border-bottom: 1px solid var(--ground-line); padding-bottom: 26px;
}
.section-head h2 { font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.section-head p { color: var(--parchment-dim); max-width: 46ch; margin: 6px 0 0; }

/* ---------- Film grid / cards ---------- */

.film-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }

.film-card { position: relative; background: var(--ground-raised); border: 1px solid var(--ground-line); }

.film-frame { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; cursor: pointer; }
.film-frame.vertical { aspect-ratio: 9/16; }

.film-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.4s ease; filter: saturate(0.85) brightness(0.82); }
.film-frame:hover img { transform: scale(1.05); filter: saturate(1) brightness(0.7); }

.play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.play-btn span {
  width: 56px; height: 56px; border: 1px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,11,0.55); backdrop-filter: blur(2px);
  transition: transform 0.25s ease, background 0.25s ease;
}
.film-frame:hover .play-btn span { transform: scale(1.08); background: var(--gold); }
.film-frame:hover .play-btn span svg { fill: var(--ground); }
.play-btn svg { fill: var(--gold); width: 16px; margin-left: 3px; transition: fill 0.25s ease; }
.film-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.film-meta { padding: 16px 18px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.film-meta h3 { font-weight: 500; font-size: 1.02rem; margin: 0; }
.film-meta .tag { font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--parchment-dim); white-space: nowrap; }

/* ---------- Thumbnail credit card (Producer: name / role / location) ---------- */

.thumb-meta { padding: 16px 18px 18px; }
.thumb-meta .t-name { font-weight: 500; font-size: 1rem; margin: 0 0 5px; }
.thumb-meta .t-role { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; margin: 0 0 3px; }
.thumb-meta .t-loc { color: var(--parchment-dim); font-size: 0.78rem; margin: 0; }

.placeholder-frame {
  aspect-ratio: 16/9; background: var(--ground-raised); border-bottom: 1px solid var(--ground-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-dim); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---------- Frames gallery (masonry) ---------- */

.frames-grid { columns: 1; column-gap: 24px; }
@media (min-width: 560px) { .frames-grid { columns: 2; } }
@media (min-width: 900px) { .frames-grid { columns: 3; } }
@media (min-width: 1220px) { .frames-grid { columns: 4; } }
.frames-grid figure {
  margin: 0 0 24px; break-inside: avoid; overflow: hidden;
  border: 1px solid var(--ground-line); background: var(--ground-raised);
}
.frames-grid img { width: 100%; display: block; transition: transform 0.5s ease, filter 0.4s ease; filter: saturate(0.92) brightness(0.9); }
.frames-grid figure:hover img { transform: scale(1.04); filter: saturate(1) brightness(0.78); }

/* ---------- Home: full-frame video stack ---------- */

.video-stack { display: flex; flex-direction: column; gap: 96px; }
.video-stack .film-frame { width: 100%; }
.vs-meta { margin-top: 18px; }
.vs-meta .vs-title { font-weight: 600; font-size: 1.3rem; margin: 0 0 6px; }
.vs-meta .vs-sub { color: var(--gold); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }

/* ---------- Producer / credit list (Documentary — text + thumbnails) ---------- */

.credit-block {
  border-top: 1px solid var(--ground-line); padding: 40px 0;
  display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 32px;
}
.credit-block:last-child { border-bottom: 1px solid var(--ground-line); }
@media (max-width: 720px) { .credit-block { grid-template-columns: 1fr; gap: 14px; } }

.credit-meta .client { font-size: 1.25rem; font-weight: 600; margin: 0 0 6px; }
.credit-meta .role { color: var(--gold); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.credit-meta .locale { color: var(--parchment-dim); font-size: 0.85rem; margin-top: 8px; }

.credit-body p { color: var(--parchment-dim); margin: 0 0 18px; max-width: 62ch; }
.credit-body .film-grid { margin-top: 20px; }

.category-label {
  color: var(--gold); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; margin: 60px 0 4px;
}
.category-label:first-of-type { margin-top: 0; }

/* ---------- About / bio ---------- */

.bio-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
@media (max-width: 860px) { .bio-grid { grid-template-columns: 1fr; gap: 40px; } }

.bio-grid p { color: var(--parchment-dim); margin: 0 0 20px; max-width: 60ch; }
.bio-grid p:first-of-type { color: var(--parchment); font-size: 1.05rem; }

.side-card { background: var(--ground-raised); border: 1px solid var(--ground-line); padding: 32px; }
.side-card h3 { font-weight: 600; font-size: 1.1rem; margin: 0 0 14px; }
.side-card + .side-card { margin-top: 24px; }

.simple-list { list-style: none; padding: 0; margin: 0; }
.simple-list li {
  padding: 12px 0; border-top: 1px solid var(--ground-line); font-size: 0.95rem; color: var(--parchment);
}
.simple-list li:first-child { border-top: none; padding-top: 0; }

/* ---------- Footer ---------- */

footer.site-footer { border-top: 1px solid var(--ground-line); padding: 56px 0 40px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 32px; }
.footer-grid h3 { font-size: 1.5rem; font-weight: 600; margin: 0; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--parchment-dim); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--gold); }

.footer-bottom { border-top: 1px solid var(--ground-line); padding-top: 24px; font-size: 0.78rem; color: var(--parchment-dim); }

/* ---------- Empty state ---------- */

.empty-state {
  border: 1px dashed var(--ground-line); padding: 40px; text-align: center;
  color: var(--parchment-dim); font-size: 0.9rem;
}

/* ---------- Utility ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
