:root{
  --bg: #050507;
  --bg-card: #0e0e12;
  --bg-card-hover: #16161c;
  --text: #f4f4f6;
  --text-dim: #8c8c96;
  --accent: #d9a253;
  --accent-glow: rgba(217, 162, 83, 0.15);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(217, 162, 83, 0.3);
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 300;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  cursor: none;
}

::selection{ background: var(--accent); color: var(--bg); }
a{ color: inherit; text-decoration: none; }
img{ display: block; width: 100%; height: 100%; object-fit: cover; }
button{ font-family: inherit; }

@media (hover:none){ body{ cursor: auto; } #cursor{ display: none; } }

/* ---------- Custom Cursor ---------- */
#cursor{
  position: fixed; top: 0; left: 0; width: 12px; height: 12px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .3s cubic-bezier(0.16, 1, 0.3, 1), height .3s cubic-bezier(0.16, 1, 0.3, 1), background .3s ease;
  mix-blend-mode: difference;
}
#cursor.grow{ width: 56px; height: 56px; background: #fff; }

/* ---------- Film Grain ---------- */
#grain{
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: 0.025; mix-blend-mode: overlay;
}

/* ---------- Navigation ---------- */
nav{
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; justify-content: space-between; align-items: center;
  padding: 32px 64px;
  transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
}
nav.solid{
  background: rgba(5, 5, 7, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px 64px;
  border-bottom: 1px solid var(--border);
}
.logo{ font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 0.1em; }
.logo span{ color: var(--accent); }
.nav-links{ display: flex; gap: 36px; font-size: 14px; font-weight: 400; color: var(--text-dim); }
.nav-links a{ transition: color .3s ease; }
.nav-links a:hover{ color: var(--text); }

/* ---------- Hero Section ---------- */
.hero{
  position: relative; height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 0 24px;
}
.hero-trails{ position: absolute; inset: 0; z-index: 0; }
.hero::after{
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
  z-index: 1; pointer-events: none;
}
.hero-content{ position: relative; z-index: 2; max-width: 800px; }
.hero-subtitle{
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.25em; color: var(--accent); text-transform: uppercase;
  margin-bottom: 20px; display: block;
}
.hero h1{
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 14vw, 150px);
  line-height: 0.9; letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero p{
  font-size: 16px; color: var(--text-dim); line-height: 1.6; max-width: 500px; margin: 0 auto;
}
.hero-scroll{
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-dim);
  letter-spacing: 0.15em; text-transform: uppercase;
}
.scroll-line{ width: 1px; height: 32px; background: linear-gradient(var(--accent), transparent); animation: pulseScroll 2s ease-in-out infinite; }
@keyframes pulseScroll{
  0%, 100%{ opacity: 0.2; transform: scaleY(0.5); transform-origin: top; }
  50%{ opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ---------- Gallery & Bento Grid (Vignettes agrandies) ---------- */
section{ padding: 120px 64px; position: relative; }
.section-container{ max-width: 1600px; margin: 0 auto; }
.section-head{
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px; border-bottom: 1px solid var(--border); padding-bottom: 24px;
}
.section-head h2{ font-family: 'Bebas Neue', sans-serif; font-size: 36px; letter-spacing: 0.04em; }
.film-count{ font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-dim); }

.bento-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
}

.bento-card{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  aspect-ratio: 16/10;
  transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1), border-color .4s ease, background .4s ease, opacity .8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover{
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.card-media{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.card-media img{
  filter: grayscale(0.4) brightness(0.75);
  transition: transform .7s cubic-bezier(0.16, 1, 0.3, 1), filter .5s ease;
}
.bento-card:hover .card-media img{
  transform: scale(1.03);
  filter: grayscale(0.1) brightness(0.9);
}

/* Overlay gradient subtil */
.card-media::after{
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,5,7,0.92) 0%, rgba(5,5,7,0.3) 50%, transparent 100%);
  pointer-events: none;
}

.play-badge{
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 64px; height: 64px; background: rgba(5, 5, 7, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px); opacity: 0;
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}
.play-badge svg{ width: 22px; height: 22px; fill: var(--text); margin-left: 2px; }
.bento-card:hover .play-badge{ opacity: 1; transform: translate(-50%, -50%) scale(1); background: var(--accent); border-color: var(--accent); }
.bento-card:hover .play-badge svg{ fill: var(--bg); }

.card-details{
  position: absolute; bottom: 0; left: 0; right: 0; padding: 28px; z-index: 3;
}
.card-meta-top{
  display: flex; gap: 12px; margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent);
}
.card-details h3{
  font-size: 20px; font-weight: 500; letter-spacing: -0.01em; color: var(--text);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px){
  nav, footer{ padding-left: 32px; padding-right: 32px; }
  section{ padding: 80px 32px; }
  .bento-grid{ grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

@media (max-width: 768px){
  nav{ padding: 20px 20px; }
  section{ padding: 60px 20px; }
  .bento-grid{ grid-template-columns: 1fr; }
  .section-head{ flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-container{ flex-direction: column; gap: 20px; text-align: center; }
}

/* ---------- Reveal Animations ---------- */
.reveal{
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s cubic-bezier(0.16, 1, 0.3, 1), transform .8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in{ opacity: 1; transform: translateY(0); }

/* ---------- Modal Player ---------- */
.player{
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(5, 5, 7, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
}
.player.open{ opacity: 1; pointer-events: auto; }
.player-wrapper{ width: min(90vw, 1200px); display: flex; flex-direction: column; align-items: center; }
.player-stage{
  width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 8px;
  overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}
.player-stage video, .player-stage iframe{ width: 100%; height: 100%; border: 0; }
.player-title{ margin-top: 20px; font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 0.05em; color: var(--text-dim); }
.player-close{
  position: absolute; top: 32px; right: 40px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  color: var(--text); width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .3s ease;
}
.player-close:hover{ background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* ---------- Footer ---------- */
footer{
  padding: 48px 64px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-dim);
}
.footer-container{
  max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center;
}
.footer-links{ display: flex; gap: 32px; }
.footer-links a{ transition: color .3s ease; }
.footer-links a:hover{ color: var(--accent); }
