/* ==========================================================================
   WEST COAST FILMS — Design System
   Cinematic, editorial, dark
   ========================================================================== */

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

:root {
  --bg: #0a0908;
  --bg-soft: #14120f;
  --ink: #f0ebe0;
  --ink-soft: #a8a095;
  --ink-mute: #6b645a;
  --accent: #f0ebe0;
  --accent-soft: #d4cfc3;
  --rule: rgba(240, 235, 224, 0.12);

  --font-display: 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max: 1440px;
  --pad-x: clamp(1.5rem, 4vw, 4rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  letter-spacing: -0.005em;
}

/* Film grain overlay (subtle, noise applied via SVG data-URI) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Vignette */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.4) 100%);
}

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

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.5rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(10, 9, 8, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
}
.nav-logo img {
  height: 42px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: none;
}
@media (min-width: 768px) {
  .nav-logo-text { display: block; }
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 0.5rem;
  z-index: 52;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
    z-index: 51;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { font-size: 1rem; }
  .nav-toggle { display: block; }
}

/* ===== SECTIONS & TYPOGRAPHY ===== */
section { padding: clamp(5rem, 12vh, 9rem) var(--pad-x); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.eyebrow::before {
  content: '';
  width: 2.5rem;
  height: 1px;
  background: var(--ink-mute);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 0.95; letter-spacing: -0.03em; }

.display {
  font-size: clamp(3rem, 9vw, 8.5rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-soft);
}

h2.section-title {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  margin-bottom: 2rem;
}
h2.section-title em { font-style: italic; font-weight: 400; color: var(--accent-soft); }

p.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
}

p.body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 62ch;
}
p.body + p.body { margin-top: 1.25rem; }

/* ===== BUTTONS / LINKS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 1rem 0;
  border-bottom: 1px solid var(--ink);
  transition: gap 0.4s var(--ease), color 0.3s var(--ease);
}
.btn:hover { gap: 1.5rem; color: var(--ink-soft); }
.btn svg { width: 14px; height: 14px; }

/* ===== FOOTER ===== */
footer {
  padding: 4rem var(--pad-x) 2.5rem;
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-mark {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-mark img { height: 56px; }
.footer-mark .text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink-soft);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1rem;
  font-weight: 400;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 2;
  transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  max-width: var(--max);
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* Image reveal with mask slide */
.img-reveal {
  position: relative;
  overflow: hidden;
}
.img-reveal img {
  transform: scale(1.08);
  transition: transform 1.6s var(--ease);
}
.img-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform-origin: right;
  transition: transform 1.2s var(--ease);
}
.img-reveal.is-visible::after { transform: scaleX(0); }
.img-reveal.is-visible img { transform: scale(1); }

/* ===== UTILITIES ===== */
.divider-rule {
  height: 1px;
  background: var(--rule);
  margin: 0 auto;
  max-width: var(--max);
}
