/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg: #080808;
  --bg-soft: #0c0c0c;
  --bg-elevated: #141414;
  --text: #f5f5f5;
  --text-muted: #999;
  --text-subtle: #666;
  --accent: #c9a227;
  --accent-dim: #a8861f;
  --accent-hover: #e4b82e;
  --border: rgba(255, 255, 255, 0.06);
  --max-width: 820px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 0.8s;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(201, 162, 39, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(201, 162, 39, 0.04), transparent);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

/* Film grain overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #080808;
  text-decoration: none;
  border-radius: 4px;
  z-index: 100;
  transition: top 0.2s var(--ease-out-smooth);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.75rem 2rem;
  z-index: 100;
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
  transition: background 0.4s var(--ease-out-smooth), padding 0.4s var(--ease-out-smooth);
}

.site-header.is-scrolled {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(12px);
}

.logo-link {
  display: block;
  line-height: 0;
}

.logo-img {
  display: block;
  height: 72px;
  width: auto;
  object-fit: contain;
}

/* Animation base state */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: 
    opacity var(--duration) var(--ease-out-expo),
    transform var(--duration) var(--ease-out-expo),
    color 0.3s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
[data-animate][data-delay="1"] { transition-delay: 0.1s; }
[data-animate][data-delay="2"] { transition-delay: 0.2s; }
[data-animate][data-delay="3"] { transition-delay: 0.3s; }
[data-animate][data-delay="4"] { transition-delay: 0.4s; }
[data-animate][data-delay="5"] { transition-delay: 0.5s; }

/* Main content */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
}

/* Hero */
.hero {
  margin-bottom: 2.5rem;
  padding-top: 0.5rem;
}

.hero-title {
  font-family: 'Roboto Mono', 'JetBrains Mono', monospace;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: var(--text);
  font-feature-settings: "zero" 1;
}

.hero-tagline {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

/* Featured project */
.featured-project {
  margin-bottom: 5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.project-year {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.project-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.project-year--production {
  color: var(--accent);
}

.project-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.basepaint-logo {
  flex-shrink: 0;
  height: 40px;
  width: auto;
  object-fit: contain;
}

.project-title--basepaint {
  margin: 0;
}

.project-tagline {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  letter-spacing: 0.05em;
}

.project-banner-wrap {
  width: 100%;
  margin: 0 0 1.5rem;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.project-banner {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project-description {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  color: var(--text);
  font-weight: 500;
}

.project-description p {
  margin: 0 0 1rem;
}

.project-description p:last-child {
  margin-bottom: 0;
}

.project-details,
.project-meta {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.project-meta--centered {
  text-align: center;
}

/* Video embed */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1rem 0 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 2.5rem 0 0.75rem;
  color: var(--text-muted);
}

.subsection-label {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 1.5rem 0 0.5rem;
  color: var(--text-subtle);
}

.nfa-cta-wrap {
  text-align: center;
}

.subsection-label--centered {
  margin-left: auto;
  margin-right: auto;
}

/* CTA section: button, poster, button */
.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 0;
}

.cta-section .poster-wrap {
  width: 100%;
  align-self: stretch;
}

.poster-wrap {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
}

.poster-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-align: center;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
  transition: 
    background 0.35s var(--ease-out-smooth),
    color 0.35s var(--ease-out-smooth),
    border-color 0.35s var(--ease-out-smooth),
    transform 0.35s var(--ease-out-smooth);
}

.btn:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Links */
.link-inline {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.link-inline:hover {
  color: var(--accent-hover);
}

.link-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  min-width: 14px;
  max-width: 14px;
  margin-left: 0.2em;
  vertical-align: -0.15em;
}

/* Social links */
.social-section {
  margin-bottom: 3rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 1.25rem;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--accent);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

/* Director section */
.director-section {
  margin-bottom: 3rem;
}

.director-section--centered {
  text-align: center;
}

/* Learn more */
.learn-more {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.learn-more-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.learn-more-link {
  display: block;
  line-height: 0;
}

.learn-more-icon {
  display: block;
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* NFA page images */
.nfa-poster-wrap {
  margin: 2rem 0;
  border-radius: 4px;
  overflow: hidden;
}

.nfa-premiere-section {
  text-align: center;
}

.nfa-premiere-wrap {
  margin: 1rem 0;
  text-align: center;
}

.nfa-premiere-img {
  display: block;
  max-width: 46%;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
  object-fit: contain;
}

.nfa-awards-section {
  text-align: center;
}

.nfa-awards-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.nfa-bottom-section {
  text-align: center;
  margin-top: 2rem;
}

.nfa-x-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  margin: 0.5rem 0 1.5rem;
  transition: color 0.3s ease;
}

.nfa-x-link:hover {
  color: var(--accent-hover);
}

.nfa-x-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.nfa-x-icon svg {
  width: 100%;
  height: 100%;
}

.nfa-x-handle {
  font-size: 0.9rem;
}

.nfa-award-img {
  display: block;
  max-width: 333px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Footer */
.site-footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.copyright {
  margin-top: 0.75rem !important;
  font-size: 0.8rem !important;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 640px) {
  .site-header {
    padding: 1.25rem 1.5rem;
  }

  .main-content {
    padding: 6rem 1.5rem 4rem;
  }

  .hero {
    margin-bottom: 2rem;
  }

  .btn {
    text-align: center;
  }
}
