/* ============================================
   REZISTOR FILMS — Global Stylesheet
   ============================================ */

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #000;
  --white: #fff;
  --red: #e63946;
  --grey: #888;
  --dark-grey: #1a1a1a;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Oswald', 'Impact', 'Arial Narrow', sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain overlay — sits over the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Cursor-following red spotlight — only on non-touch pointer devices */
@media (hover: hover) and (pointer: fine) {
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(circle 420px at var(--mx, 50%) var(--my, 50%), rgba(230,57,70,0.10), transparent 65%);
    mix-blend-mode: screen;
    transition: background 120ms linear;
  }
}

a {
  color: var(--white);
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ============================================
   Typography (Google Fonts loaded in HTML)
   ============================================ */

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 50%, transparent 100%);
  pointer-events: none;
}

.nav * {
  pointer-events: auto;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.nav__logo img {
  height: 28px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 0 rgba(230,57,70,0));
  transition: filter 320ms ease, transform 320ms ease;
}

.nav__logo:hover img {
  filter: drop-shadow(0 0 14px rgba(230,57,70,0.7)) drop-shadow(0 0 28px rgba(230,57,70,0.35));
  transform: translateY(-1px);
}

.footer__logo {
  display: block;
  margin: 0 auto 1rem;
}

.footer__logo img {
  height: 64px;
  width: auto;
  margin: 0 auto;
  display: block;
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--red);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ============================================
   Homepage — Hero Slider
   ============================================ */

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-size: contain;
  background-position: right center;
  background-repeat: no-repeat;
  background-origin: content-box;
  padding: 5.5rem 0 0;
  transform: scale(1);
  transform-origin: 75% 50%;
  will-change: transform, opacity;
}

.hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.95) 30%, rgba(0,0,0,0.6) 55%, rgba(0,0,0,0.1) 80%),
    linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 30%);
}

.hero__slide.active {
  opacity: 1;
  animation: kenBurns 6.5s ease-out forwards;
}

@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}

.hero__titles {
  position: absolute;
  left: 2.5rem;
  bottom: 15%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero__title-link {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.35);
  transition: color 0.35s ease, transform 0.35s ease, letter-spacing 0.45s ease, text-shadow 0.35s ease;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  padding-left: 0;
}

.hero__title-link::before {
  content: '';
  position: absolute;
  left: -1.1rem;
  top: 50%;
  width: 3px;
  height: 0.7em;
  background: var(--red);
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 12px rgba(230,57,70,0.6);
}

.hero__title-link:hover {
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
  transform: translateX(8px);
}

.hero__title-link.active {
  color: var(--white);
  text-shadow: 0 0 20px rgba(230,57,70,0.25), 0 2px 12px rgba(0,0,0,0.9);
  letter-spacing: 0.085em;
}

.hero__title-link.active::before {
  transform: translateY(-50%) scaleY(1);
}

/* Hero meta panel — dossier / file-card */
.hero__meta {
  position: absolute;
  left: 42vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 288px;
  max-width: 32vw;
  padding: 1.15rem 1.25rem 1rem 1.15rem;
  color: var(--white);
  pointer-events: none;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  background: linear-gradient(180deg, rgba(12,12,14,0.72), rgba(12,12,14,0.55));
  border-left: 2px solid var(--red);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(230,57,70,0.08);
}

.hero__meta::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -2px;
  width: 14px;
  height: 14px;
  background: var(--red);
  box-shadow: 0 0 12px rgba(230,57,70,0.55);
}

.hero__meta-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.hero__meta-brand {
  color: rgba(255,255,255,0.7);
}

.hero__meta-counter {
  color: rgba(255,255,255,0.55);
  font-variant-numeric: tabular-nums;
}

.hero__meta-deg {
  color: var(--red);
  margin: 0 1px 0 1px;
}

.hero__meta-index {
  color: var(--red);
  font-weight: 700;
}

.hero__meta-sep {
  color: rgba(255,255,255,0.25);
  margin: 0 0.15rem;
}

.hero__meta-rule {
  height: 1px;
  margin: 0.75rem 0 0.9rem;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.28) 0 6px,
    transparent 6px 11px
  );
}

.hero__meta-rows {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.hero__meta-row {
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: start;
  gap: 0.65rem;
  transition: opacity 0.35s ease;
}

.hero__meta-row[data-empty] {
  display: none;
}

.hero__meta-key {
  margin: 0;
  padding-top: 2px;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.4);
  border-right: 1px dashed rgba(255,255,255,0.15);
}

.hero__meta-val {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--white);
  letter-spacing: 0.01em;
  transition: opacity 0.35s ease;
}

.hero__meta-val.swap {
  opacity: 0;
}

.hero__meta-val--status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.85);
}

.hero__meta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(230,57,70,0.6);
  animation: statusPulse 2.2s ease-out infinite;
  flex-shrink: 0;
}

@keyframes statusPulse {
  0%   { box-shadow: 0 0 0 0 rgba(230,57,70,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(230,57,70,0);   }
  100% { box-shadow: 0 0 0 0 rgba(230,57,70,0);     }
}


/* Hero progress bar — fills across the bottom edge per slide dwell */
.hero__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--red);
  box-shadow: 0 0 14px rgba(230,57,70,0.7);
  z-index: 15;
  animation: progressFill 5s linear forwards;
}

@keyframes progressFill {
  from { width: 0; }
  to   { width: 100%; }
}

/* Staggered entry for title list */
.hero__title-link {
  opacity: 0;
  animation: titleRise 0.6s ease forwards;
}

.hero__title-link:nth-child(1) { animation-delay: 0.10s; }
.hero__title-link:nth-child(2) { animation-delay: 0.17s; }
.hero__title-link:nth-child(3) { animation-delay: 0.24s; }
.hero__title-link:nth-child(4) { animation-delay: 0.31s; }
.hero__title-link:nth-child(5) { animation-delay: 0.38s; }
.hero__title-link:nth-child(6) { animation-delay: 0.45s; }
.hero__title-link:nth-child(7) { animation-delay: 0.52s; }
.hero__title-link:nth-child(8) { animation-delay: 0.59s; }
.hero__title-link:nth-child(9) { animation-delay: 0.66s; }

@keyframes titleRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Project Page
   ============================================ */

.project-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.project-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top center;
}

.project-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.2) 100%),
    linear-gradient(to right, rgba(0,0,0,0.5) 0%, transparent 60%);
}

.project-hero__cast {
  position: absolute;
  top: 6rem;
  left: 2.5rem;
  right: 2.5rem;
  z-index: 10;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

.project-hero__content {
  position: relative;
  z-index: 10;
  padding: 0 2.5rem 4rem;
}

.project-hero__title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.project-hero__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.project-hero__meta strong {
  color: var(--white);
  font-weight: 600;
}

.project-hero__meta span {
  display: block;
}

.project-hero__status {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.project-hero__ep-note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
}

/* ============================================
   Team Page
   ============================================ */

.page-header {
  padding: 8rem 2.5rem 3rem;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--grey);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2rem 2.5rem 6rem;
  max-width: 1000px;
  margin: 0 auto;
}

.team-member {
  text-align: center;
}

.team-member__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  margin-bottom: 1rem;
  background: var(--dark-grey);
}

.team-member__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.team-member__role {
  font-size: 0.75rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.team-member__imdb {
  font-size: 0.75rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.team-member__imdb:hover {
  opacity: 0.7;
}

/* ============================================
   Media Page
   ============================================ */

.media-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2.5rem 6rem;
}

.media-item {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s;
}

.media-item:hover {
  background: rgba(255,255,255,0.03);
}

.media-item__date {
  flex-shrink: 0;
  width: 5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.media-item__pub {
  flex-shrink: 0;
  width: 8rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.media-item__headline {
  flex: 1;
  font-size: 0.95rem;
  color: var(--white);
  line-height: 1.4;
}

.media-item:hover .media-item__headline {
  color: var(--red);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 3rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--grey);
}

.footer__socials {
  display: flex;
  gap: 1.25rem;
}

.footer__socials a {
  color: var(--grey);
  transition: color 0.2s;
}

.footer__socials a:hover {
  color: var(--white);
}

.footer__socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links a {
    font-size: 1.25rem;
  }

  .nav__toggle {
    display: block;
    z-index: 101;
  }

  .nav__toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero__titles {
    left: 1.5rem;
    bottom: 10%;
  }

  .hero__title-link {
    font-size: clamp(1.25rem, 6vw, 2rem);
  }

  .hero__title-link::before {
    left: -0.8rem;
    width: 2px;
  }

  .hero__meta {
    display: none;
  }

  .hero__progress {
    height: 2px;
  }

  .project-hero__content {
    padding: 0 1.5rem 3rem;
  }

  .project-hero__cast {
    left: 1.5rem;
    right: 1.5rem;
    font-size: 0.65rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem 1.5rem 4rem;
  }

  .media-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  .media-item__date,
  .media-item__pub {
    width: auto;
  }

  .footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
}
