/* ============================================
   SHARED STYLES — Philippe-Alexandre David
   ============================================ */

:root {
  --ink:       #04040a;
  --surface:   #080810;
  --surface2:  #0d0d1a;
  --violet:    oklch(62% 0.14 280);
  --violet-dim: oklch(45% 0.10 280);
  --violet-glow: oklch(62% 0.14 280 / 0.15);
  --silver:    oklch(78% 0.018 240);
  --silver2:   oklch(55% 0.018 240);
  --cream:     oklch(93% 0.006 80);
  --cream-dim: oklch(75% 0.006 80);
  --rule:      rgba(140, 100, 200, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--ink);
  color: var(--cream);
  font-family: 'DM Mono', monospace;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---- SCANLINE TEXTURE ---- */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 3px,
    rgba(0,0,0,0.12) 3px, rgba(0,0,0,0.12) 4px
  );
}

/* ---- NOISE GRAIN ---- */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.25;
}

/* ---- NAVIGATION ---- */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 60px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}
nav.site-nav.scrolled {
  background: rgba(4,4,10,0.92);
  border-color: var(--rule);
  backdrop-filter: blur(12px);
}
nav.site-nav .nav-logo {
  font-family: 'DM Mono', monospace;
  font-size: 12px; letter-spacing: 0.28em;
  color: var(--silver2); text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}
nav.site-nav .nav-logo span {
  color: var(--silver2);
  transition: color 0.3s;
}
nav.site-nav .nav-logo:hover,
nav.site-nav .nav-logo:hover span {
  color: var(--violet);
}
nav.site-nav .nav-links {
  display: flex; gap: 40px; list-style: none;
}
nav.site-nav .nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 12px; letter-spacing: 0.28em;
  color: var(--silver2); text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}
nav.site-nav .nav-links a:hover,
nav.site-nav .nav-links a.active { color: var(--violet); }

/* ---- PAGE WRAPPER ---- */
.page {
  position: relative; z-index: 1;
  min-height: 100vh;
}

/* ---- SECTION UTILITY ---- */
.section {
  padding: 120px 60px;
  max-width: 1200px; margin: 0 auto;
}

/* ---- SECTION LABEL ---- */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 0.45em;
  color: var(--violet); text-transform: uppercase;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 16px;
}
.section-label::before {
  content: '';
  display: block; width: 32px; height: 1px;
  background: var(--violet);
}

/* Bigger label for page headers */
.films-hero .section-label {
  font-size: 22px; letter-spacing: 0.3em;
}

/* ---- PAGE TRANSITION ---- */
.page-enter {
  animation: fadeUp 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- VIOLET RULE ---- */
.v-rule {
  width: 1px;
  background: linear-gradient(to bottom, var(--violet-dim), transparent);
}
.h-rule {
  height: 1px;
  background: var(--rule);
  margin: 0;
}

/* ---- FOOTER ---- */
footer.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--rule);
  padding: 40px 60px;
  display: flex; justify-content: space-between; align-items: center;
}
footer.site-footer .foot-name {
  font-size: 11px; letter-spacing: 0.22em;
  color: var(--silver2); text-transform: uppercase;
}
footer.site-footer .foot-name .copy {
  font-size: 13px; letter-spacing: 0;
  margin: 0 3px;
}
footer.site-footer .foot-links {
  display: flex; gap: 32px;
}
footer.site-footer .foot-links a {
  font-size: 11px; letter-spacing: 0.22em;
  color: var(--silver2); text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}
footer.site-footer .foot-links a:hover { color: var(--violet); }

/* ============================================
   MOBILE / RESPONSIVE
   ============================================ */
@media (max-width: 760px) {
  nav.site-nav {
    padding: 18px 22px;
    gap: 12px;
  }
  nav.site-nav .nav-links { gap: 18px; }
  nav.site-nav .nav-links a,
  nav.site-nav .nav-logo { font-size: 10px; letter-spacing: 0.2em; }

  .section { padding: 80px 22px; }

  /* Hero (index) */
  .hero { padding: 0 22px; height: auto; min-height: 100vh; padding-top: 110px; padding-bottom: 80px; }
  .hero-aside {
    position: static; text-align: left;
    margin-top: 60px; padding-top: 24px;
    border-top: 1px solid var(--rule);
  }
  .hero-name .first { font-size: clamp(28px, 9vw, 44px) !important; white-space: normal !important; }
  .hero-name .last  { font-size: clamp(54px, 16vw, 80px) !important; }
  .hero-cta { flex-wrap: wrap; }

  /* Films */
  .films-hero { padding: 110px 22px 40px; }
  .film-entry,
  .upcoming-inner {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    padding: 60px 22px !important;
  }
  .film-poster { max-width: 320px; margin: 0 auto; }
  .film-title-main { font-size: 48px !important; }
  .upcoming-title { font-size: 40px !important; }
  .stills-section { padding: 20px 22px 80px; }
  .stills-grid { grid-template-columns: 1fr !important; }

  /* About */
  .about-header-wrap { padding: 110px 22px 40px; }
  .about-content-wrap { padding: 40px 22px 60px; }
  .about-entry,
  .about-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .portrait-col { max-width: 320px; margin: 0 auto; }
  .bio-name { font-size: clamp(22px, 6vw, 30px) !important; white-space: normal !important; }

  /* Contact */
  .contact-header-wrap { padding: 110px 22px 40px; }
  .contact-content-wrap { padding: 40px 22px 60px; }
  .contact-grid { grid-template-columns: 1fr !important; gap: 50px !important; }
  .contact-intro { font-size: 20px !important; }

  /* Music */
  .music-header-wrap { padding: 110px 22px 40px; }
  .music-single-wrap { padding: 40px 22px 60px; }
  .single-entry,
  .single-feature { grid-template-columns: 1fr !important; gap: 40px !important; }
  .single-artwork { max-width: 320px; margin: 0 auto; }
  .single-title { font-size: 48px !important; }

  /* Page titles */
  .page-title { font-size: 56px !important; }
  .films-hero .page-title,
  .music-header .page-title { font-size: 56px !important; }

  /* Footer */
  footer.site-footer {
    flex-direction: column; gap: 16px;
    padding: 32px 22px; text-align: center;
  }
  footer.site-footer .foot-links { flex-wrap: wrap; justify-content: center; gap: 18px; }
}
