/* ===========================================================
   Devil's Breath — v3 (mobile-first, no CDN/runtime dependency)
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Cinzel:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --noir-950: #05050a;
  --noir-900: #0b0b10;
  --noir-800: #131318;
  --noir-700: #1c1c22;
  --noir-600: #2a2a32;
  --blood-400: #ff2745;
  --blood-500: #b3122e;
  --blood-600: #8d0e25;
  --gold-300: #e3c785;
  --gold: #c9a24b;
  --white-70: rgba(255, 255, 255, 0.7);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-40: rgba(255, 255, 255, 0.4);
  --white-10: rgba(255, 255, 255, 0.1);
  --font-display: 'Anton', sans-serif;
  --font-label: 'Cinzel', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --header-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--noir-950);
  color: #fff;
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--blood-500); color: #fff; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--gold); }

h1, h2, h3, h4 { font-family: var(--font-display); text-transform: uppercase; line-height: 1; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.2rem, 9vw, 4.5rem); }
h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); }
h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; text-transform: none; }

p { color: var(--white-70); }

.text-glow { text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 39, 69, 0.35); }

.section { padding: 56px 0; }
.section--alt { background: var(--noir-900); border-top: 1px solid var(--white-10); border-bottom: 1px solid var(--white-10); }
.section-head { max-width: 640px; margin: 0 0 36px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 12px; }

/* ---------- Buttons ---------- */

.btn-row { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--white-10);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  width: 100%;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-solid { background: var(--blood-500); border-color: var(--blood-500); box-shadow: 0 10px 30px -8px rgba(179, 18, 46, 0.6); }
.btn-solid:active, .btn-solid:hover { background: var(--blood-400); border-color: var(--blood-400); }
.btn-ghost:active, .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-label);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(201, 162, 75, 0.5);
  padding-bottom: 2px;
  width: fit-content;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: rgba(5, 5, 10, 0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--white-10);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }
.brand span { font-family: var(--font-label); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }

.nav-links {
  display: none;
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 12px 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: #fff; transition: 0.25s ease; }

#nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.7);
  display: none;
}
#nav-backdrop.open { display: block; }

#nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(78vw, 320px);
  background: var(--noir-900);
  border-left: 1px solid var(--white-10);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
#nav-panel.open { transform: translateX(0); }
#nav-panel a {
  font-family: var(--font-label);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-70);
  padding: 8px 0;
}
#nav-panel a.active { color: #fff; }
#nav-panel a.panel-cta { border: 1px solid var(--blood-500); color: #fff; padding: 10px 22px; border-radius: 6px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 28px) 0 48px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('../images/cd4ae1_c6b79f52e50040e88926812a02729fef~mv2.jpg');
  background-size: cover;
  background-position: center top;
  opacity: 0.22;
}
.hero-fade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5,5,10,0.55), rgba(5,5,10,0.92) 65%, var(--noir-950) 100%);
}

.hero .container { display: flex; flex-direction: column; gap: 32px; }

.hero-poster-wrap { display: flex; justify-content: center; }
.hero-poster { position: relative; max-width: 280px; width: 100%; }
.hero-ribbon {
  position: absolute;
  top: -10px;
  left: -10px;
  z-index: 2;
  background: var(--blood-500);
  color: #fff;
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  transform: rotate(-6deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  white-space: nowrap;
}
.hero-poster img {
  border-radius: 4px;
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.85);
  border: 1px solid var(--white-10);
}

.hero-title { font-size: clamp(2.1rem, 10vw, 3.2rem); margin-top: 16px; }
.hero-title .accent { color: var(--blood-400); display: block; }
.hero-lead { margin-top: 16px; max-width: 560px; }

/* ---------- News card ---------- */

.news-card { display: flex; flex-direction: column; gap: 28px; }
.news-card img { width: 100%; max-width: 320px; margin: 0 auto; border-radius: 4px; box-shadow: 0 20px 50px -10px rgba(0,0,0,0.7); border: 1px solid var(--white-10); }
.news-date { font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white-40); }
.news-card h2 { margin-top: 10px; font-size: clamp(1.5rem, 6vw, 2rem); }
.news-card p { margin-top: 14px; }

/* ---------- Explore tiles ---------- */

.tile-grid { display: grid; gap: 16px; }
.tile {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 280px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--white-10);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(5,5,10,0.92)); }
.tile-content { position: relative; z-index: 2; padding: 22px; }
.tile-content h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.5rem; margin: 6px 0 10px; }

/* ---------- Leadership ---------- */

.lead-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; text-align: center; }
.lead-photo { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; margin: 0 auto 12px; border: 2px solid var(--white-10); }
.lead-photo img { width: 100%; height: 100%; object-fit: cover; }
.lead-photo.placeholder { display: flex; align-items: center; justify-content: center; background: var(--noir-800); font-family: var(--font-label); color: var(--gold); font-size: 1.1rem; }
.lead-card h4 { font-family: var(--font-body); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.03em; text-transform: uppercase; }
.lead-card .role { font-size: 0.66rem; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 3px; }

/* ---------- About hero / poster stack ---------- */

.page-hero { position: relative; padding: calc(var(--header-h) + 36px) 0 44px; text-align: center; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero p { max-width: 480px; margin: 14px auto 0; }

.poster-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}
.poster-stack img {
  width: 78%;
  max-width: 260px;
  border-radius: 4px;
  border: 1px solid var(--white-10);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8);
}
.poster-stack img:first-child { transform: rotate(-3deg); }
.poster-stack img:last-child { transform: rotate(2deg); margin-top: -28px; z-index: 1; }

.about-copy p + p { margin-top: 16px; }

/* ---------- Facts banner ---------- */

.facts-banner { text-align: center; max-width: 640px; margin: 0 auto; }
.facts-banner h2 { margin: 12px 0 16px; }

/* ---------- Producers / Distribution ---------- */

.producer-grid { display: grid; gap: 16px; }
.producer-card { background: var(--noir-800); border: 1px solid var(--white-10); border-radius: 8px; padding: 28px 22px; }
.producer-card h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.3rem; }
.producer-card p { margin-top: 12px; }
.producer-card .btn-link { margin-top: 16px; }

.distribution-block { background: var(--noir-800); border: 1px solid var(--white-10); border-radius: 8px; padding: 36px 24px; text-align: center; }

/* ---------- Crew banner / director feature ---------- */

.cast-banner { text-align: center; }
.bracket-frame { position: relative; display: inline-block; }
.bracket-frame::before, .bracket-frame::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gold);
  z-index: 2;
}
.bracket-frame::before { top: -8px; left: -8px; border-right: none; border-bottom: none; }
.bracket-frame::after { bottom: -8px; right: -8px; border-left: none; border-top: none; }
.bracket-frame img { max-width: 280px; border-radius: 4px; border: 1px solid var(--white-10); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8); }
.cast-caption { margin-top: 20px; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white-40); }

.crew-feature { background: var(--noir-900); border: 1px solid var(--white-10); border-radius: 8px; padding: 24px; margin-bottom: 24px; }
.crew-feature-photo { width: 100%; max-width: 220px; margin: 0 auto 20px; aspect-ratio: 3/4; border-radius: 6px; overflow: hidden; border: 1px solid var(--white-10); }
.crew-feature-photo img { width: 100%; height: 100%; object-fit: cover; }
.crew-feature-photo.placeholder { display: flex; align-items: center; justify-content: center; background: var(--noir-700); color: var(--gold); font-family: var(--font-label); font-size: 1.6rem; }
.crew-feature .role { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 4px 0 12px; }
.crew-feature p + p { margin-top: 12px; }

/* ---------- Crew grid ---------- */

.crew-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.crew-card { background: var(--noir-900); border: 1px solid var(--white-10); border-radius: 8px; overflow: hidden; }
.crew-photo { aspect-ratio: 3/4; background: var(--noir-800); }
.crew-photo img { width: 100%; height: 100%; object-fit: cover; }
.crew-photo.placeholder { display: flex; align-items: center; justify-content: center; font-family: var(--font-label); color: var(--gold); font-size: 1.3rem; }
.crew-info { padding: 12px 14px 16px; }
.crew-info h3 { font-size: 0.84rem; }
.crew-info .role { font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin: 3px 0 8px; }
.crew-info .bio { font-size: 0.78rem; color: var(--white-70); line-height: 1.55; }

.bio-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.bio-wrap.expanded { grid-template-rows: 1fr; }
.bio-wrap > p { overflow: hidden; }

.bio-toggle {
  margin-top: 10px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-40);
  background: none;
  border: none;
  padding: 0;
}
.bio-toggle:active { color: var(--gold); }

/* ---------- Partners ---------- */

.partners-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 28px; margin-top: 28px; }
.partner-name { font-family: var(--font-label); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white-40); }

/* ---------- Footer ---------- */

.site-footer { padding: 48px 0 32px; text-align: center; border-top: 1px solid var(--white-10); background: var(--noir-950); }
.footer-brand { font-family: var(--font-label); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 12px; font-size: 0.9rem; }
.footer-contact a { color: var(--white-70); font-size: 0.9rem; }
.social-row { display: flex; justify-content: center; gap: 12px; margin: 24px 0; }
.social-row a {
  width: 40px; height: 40px;
  border: 1px solid var(--white-10);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white-70);
}
.social-row svg { width: 15px; height: 15px; fill: currentColor; }
.footer-fine { font-size: 0.72rem; color: var(--white-40); }

/* ---------- Modal ---------- */

.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.82);
  padding: 20px;
}
.modal.open { display: flex; }
.modal-box {
  background: var(--noir-900);
  border: 1px solid var(--white-10);
  border-radius: 8px;
  padding: 40px 28px;
  max-width: 360px;
  text-align: center;
  position: relative;
}
.modal-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none;
  color: var(--white-40); font-size: 1.5rem; line-height: 1;
  padding: 8px;
}
.modal-box h3 { margin-top: 12px; font-size: 1.3rem; }
.modal-box p { margin-top: 10px; font-size: 0.9rem; }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===========================================================
   Tablet — 640px+
   =========================================================== */
@media (min-width: 640px) {
  .container { padding: 0 32px; }
  .btn-row { flex-direction: row; }
  .btn { width: auto; }
  .news-card { flex-direction: row-reverse; align-items: center; gap: 40px; }
  .news-card > div { flex: 1; }
  .news-card img { max-width: 280px; margin: 0; }
  .tile-grid { grid-template-columns: 1fr 1fr; }
  .lead-grid { grid-template-columns: repeat(3, 1fr); }
  .crew-grid { grid-template-columns: repeat(3, 1fr); }
  .producer-grid { grid-template-columns: 1fr 1fr; }
  .poster-stack { flex-direction: row; justify-content: center; gap: 0; }
  .poster-stack img:first-child { transform: rotate(-4deg) translateX(20px); }
  .poster-stack img:last-child { transform: rotate(3deg) translateX(-20px); margin-top: 0; }
  .crew-feature { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 32px; text-align: left; }
  .crew-feature-photo { margin: 0; }
}

/* ===========================================================
   Desktop — 1024px+
   =========================================================== */
@media (min-width: 1024px) {
  .section { padding: 96px 0; }
  .section--alt { padding: 96px 0; }

  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    font-family: var(--font-label);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--white-70);
  }
  .nav-links a { transition: color 0.2s ease; }
  .nav-links a:hover, .nav-links a.active { color: #fff; }
  .nav-links a.active { border-bottom: 1px solid var(--blood-400); padding-bottom: 4px; }
  .nav-cta { display: inline-flex; border: 1px solid var(--blood-500); padding: 9px 18px; border-radius: 6px; transition: background 0.2s ease; }
  .nav-cta:hover { background: var(--blood-500); }

  .hero { min-height: 100vh; display: flex; align-items: center; padding-top: var(--header-h); }
  .hero .container { flex-direction: row; align-items: center; gap: 56px; }
  .hero-text { flex: 1.4; order: 1; }
  .hero-poster-wrap { flex: 1; order: 2; }
  .hero-poster { max-width: 340px; }
  .hero-title { font-size: clamp(3rem, 6vw, 4.4rem); }
  .hero-lead { font-size: 1.05rem; }
  .btn-row { margin-top: 36px; }

  .news-card { gap: 64px; }
  .news-card img { max-width: 340px; }

  .lead-grid { grid-template-columns: repeat(5, 1fr); }
  .lead-photo { width: 100px; height: 100px; }

  .about-grid { display: flex; gap: 64px; align-items: flex-start; }
  .poster-stack-col { flex: 1; position: sticky; top: 110px; }
  .about-copy-col { flex: 1; }
  .poster-stack { flex-direction: row; }
  .poster-stack img { max-width: 230px; }

  .producer-grid { gap: 24px; }
  .producer-card { padding: 40px; }

  .crew-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

@media (min-width: 1280px) {
  .hero-title { font-size: clamp(3.4rem, 6vw, 4.8rem); }
}
