/* =========================================================
   EVEL CAT — Global Stylesheet
   Palette: aged VHS box-art (aubergine / teal / amber / rust)
   Signature motif: irregular tabby-stripe banding
   ========================================================= */

:root {
  --color-bg: #1c1417;
  --color-bg-alt: #142320;
  --color-surface: #271b1f;
  --color-surface-2: #1f1518;
  --color-amber: #e0a23e;
  --color-amber-bright: #f0c168;
  --color-rust: #b6431f;
  --color-teal: #3f8f83;
  --color-teal-bright: #63b8ab;
  --color-stripe: #9c9188;
  --color-text: #f2e8da;
  --color-text-muted: #c9bdae;
  --color-border: rgba(242, 232, 218, 0.1);

  --font-display: "Bungee", cursive;
  --font-body: "Lora", Georgia, serif;
  --font-label: "Archivo Narrow", sans-serif;

  --max-width: 1120px;
  --radius: 6px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--color-amber-bright); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 0.55em;
}
p { margin: 0 0 1.25em; }
ul { padding-left: 1.2em; }
dl { margin: 0; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-amber);
  color: #1c1417; padding: 0.75rem 1.25rem; z-index: 200; font-family: var(--font-label);
  font-weight: 700; text-transform: uppercase;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Signature stripe motif ---------- */
.tabby-stripes { position: relative; }
.tabby-stripes::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: repeating-linear-gradient(
    115deg,
    transparent 0px, transparent 38px,
    rgba(224, 162, 62, 0.13) 38px, rgba(224, 162, 62, 0.13) 52px,
    transparent 52px, transparent 88px,
    rgba(224, 162, 62, 0.08) 88px, rgba(224, 162, 62, 0.08) 98px
  );
}
.tabby-stripes > .container { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid var(--color-amber);
  color: var(--color-text);
  transition: all 0.2s ease;
  font-size: 0.95rem;
}
.btn:hover, .btn:focus { text-decoration: none; }
.btn-primary { background: var(--color-amber); color: #1c1417; border-color: var(--color-amber); }
.btn-primary:hover { background: var(--color-amber-bright); border-color: var(--color-amber-bright); box-shadow: 0 0 22px rgba(224, 162, 62, 0.4); }
.btn-ghost { border-color: var(--color-teal); color: var(--color-teal-bright); }
.btn-ghost:hover { background: var(--color-teal); color: #0d1a18; box-shadow: 0 0 22px rgba(63, 143, 131, 0.35); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(28, 20, 23, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; color: var(--color-text); }
.logo:hover { text-decoration: none; }
.logo-eyes { width: 32px; height: 18px; }
.logo-text { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.02em; color: var(--color-text); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { width: 24px; height: 2px; background: var(--color-text); }

.nav-menu { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.nav-menu a {
  color: var(--color-text); font-family: var(--font-label); font-weight: 700;
  font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.03em;
}
.nav-menu a:hover, .nav-menu a:focus { color: var(--color-amber-bright); text-decoration: none; }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--color-bg-alt);
    padding: 0 1.5rem; gap: 0; max-height: 0; overflow: hidden;
    border-bottom: 1px solid var(--color-border);
    transition: max-height 0.25s ease, padding 0.25s ease;
  }
  .nav-menu.is-open { max-height: 400px; padding: 0.5rem 1.5rem 1.25rem; }
  .nav-menu li { border-top: 1px solid var(--color-border); }
  .nav-menu li:first-child { border-top: 0; }
  .nav-menu a { display: block; padding: 0.85rem 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; text-align: center; padding: 5rem 1.5rem 4rem; overflow: hidden;
  background: var(--color-bg);
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.6rem, 10vw, 5.2rem);
  color: var(--color-text); letter-spacing: 0.01em; margin-bottom: 0.35em;
  text-shadow: 0.03em 0 0 rgba(182, 67, 31, 0.45), -0.03em 0 0 rgba(63, 143, 131, 0.4);
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: vhs-glitch 7s infinite; }
}
@keyframes vhs-glitch {
  0%, 95%, 100% { text-shadow: 0.03em 0 0 rgba(182, 67, 31, 0.45), -0.03em 0 0 rgba(63, 143, 131, 0.4); transform: translate(0, 0); }
  96% { text-shadow: -2px 0 0 rgba(182, 67, 31, 0.7), 2px 0 0 rgba(63, 143, 131, 0.7); transform: translate(-1px, 0); }
  97.5% { text-shadow: 2px 0 0 rgba(182, 67, 31, 0.7), -2px 0 0 rgba(63, 143, 131, 0.7); transform: translate(1px, 0); }
  99% { text-shadow: 0.03em 0 0 rgba(182, 67, 31, 0.45), -0.03em 0 0 rgba(63, 143, 131, 0.4); transform: translate(0, 0); }
}
.tagline {
  font-family: var(--font-label); color: var(--color-amber-bright); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.05rem; margin-bottom: 1.5rem;
}
.hero .lede { max-width: 620px; margin: 0 auto 2.25rem; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 1.5rem; }
.section-alt { background: var(--color-bg-alt); }
.section h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); text-align: center; margin-bottom: 0.5em; }
.section-intro { text-align: center; max-width: 620px; margin: 0 auto 2.5rem; }
.section-eyebrow {
  display: block; text-align: center; font-family: var(--font-label); font-weight: 700;
  color: var(--color-rust); text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.8rem; margin-bottom: 0.6em;
}

/* ---------- Trilogy grid (roman-numeral cards) ---------- */
.film-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 900px) { .film-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

.film-card {
  background: var(--color-surface); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--color-text); display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease; border: 1px solid var(--color-border);
}
.film-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); text-decoration: none; }

.poster { position: relative; aspect-ratio: 2 / 3; display: flex; flex-direction: column; justify-content: space-between; padding: 1.25rem; overflow: hidden; background-color: var(--color-surface-2); }
.poster--1 { background-image: repeating-linear-gradient(115deg, transparent 0 36px, rgba(224,162,62,0.4) 36px 50px, transparent 50px 84px, rgba(224,162,62,0.22) 84px 94px); }
.poster--2 { background-image: repeating-linear-gradient(115deg, transparent 0 36px, rgba(182,67,31,0.42) 36px 50px, transparent 50px 84px, rgba(182,67,31,0.24) 84px 94px); }
.poster--3 { background-image: repeating-linear-gradient(108deg, transparent 0 28px, rgba(224,71,42,0.48) 28px 40px, transparent 40px 66px, rgba(63,143,131,0.3) 66px 78px, transparent 78px 108px); }
.poster-numeral { font-family: var(--font-display); font-size: 1.4rem; color: rgba(242,232,218,0.85); text-shadow: 0 3px 10px rgba(0,0,0,0.6); position: relative; z-index: 2; }
.poster-silhouette { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); width: 62%; opacity: 0.88; z-index: 1; }
.poster-title { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; text-align: center; text-shadow: 0 4px 14px rgba(0,0,0,0.75); position: relative; z-index: 2; }

.film-card-body { padding: 1.15rem 1.3rem 1.4rem; }
.film-card-body .film-year { font-family: var(--font-label); color: var(--color-text-muted); font-size: 0.8rem; letter-spacing: 0.04em; margin-bottom: 0.3rem; }
.film-card-body h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.film-card-body p { font-size: 0.92rem; margin-bottom: 0; color: var(--color-text-muted); }

/* ---------- Film feature rows (films index) ---------- */
.film-feature { display: flex; gap: 2.25rem; align-items: center; margin-bottom: 3.5rem; flex-wrap: wrap; }
.film-feature:nth-child(even) { flex-direction: row-reverse; }
.film-feature .poster { width: 240px; flex-shrink: 0; }
.film-feature-body { flex: 1; min-width: 260px; }
.film-feature-body .film-year { font-family: var(--font-label); color: var(--color-rust); font-weight: 700; letter-spacing: 0.05em; }

/* ---------- Pull quotes ---------- */
.pull-quote {
  max-width: 700px; margin: 0 auto; text-align: center; font-family: var(--font-body);
  font-style: italic; font-size: 1.25rem; color: var(--color-text); border: none; padding: 0;
}
.pull-quote cite {
  display: block; margin-top: 1rem; font-family: var(--font-label); font-style: normal;
  font-weight: 700; font-size: 0.82rem; color: var(--color-amber-bright); text-transform: uppercase; letter-spacing: 0.06em;
}

/* ---------- Fact grid (film detail pages) ---------- */
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.4rem; background: var(--color-surface); border-radius: var(--radius); padding: 1.5rem; margin: 1.75rem 0; border: 1px solid var(--color-border); }
.fact-grid dt { font-family: var(--font-label); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-amber-bright); margin-bottom: 0.25rem; }
.fact-grid dd { margin: 0; font-size: 0.96rem; color: var(--color-text); font-family: var(--font-body); }

.film-hero { padding-top: 3.25rem; }
.film-nav { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem 3.5rem; max-width: var(--max-width); margin: 0 auto; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { padding: 3rem 1.5rem 2.5rem; border-top: 1px solid var(--color-border); background: var(--color-bg-alt); }
.site-footer p { font-size: 0.85rem; margin-bottom: 0.5rem; font-family: var(--font-label); color: var(--color-text-muted); }
.footer-nav { list-style: none; display: flex; gap: 1.25rem; flex-wrap: wrap; padding: 0; margin: 1.1rem 0 0; }
.footer-nav a { color: var(--color-text-muted); font-family: var(--font-label); font-size: 0.85rem; }
.footer-nav a:hover { color: var(--color-amber-bright); }

/* ---------- Cast & crew ---------- */
.cast-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.cast-item { background: var(--color-surface); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--color-border); }
.cast-item h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.cast-item .role { color: var(--color-amber-bright); font-family: var(--font-label); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.6rem; display: block; }
.cast-item p { font-size: 0.93rem; margin-bottom: 0; }

table.filmography { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
table.filmography th, table.filmography td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--color-border); font-size: 0.92rem; }
table.filmography th { font-family: var(--font-label); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.05em; color: var(--color-amber-bright); }

/* ---------- Contact ---------- */
.contact-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 2rem; max-width: 560px; margin: 2rem auto 0; text-align: center; }
.contact-card .label { display: block; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem; color: var(--color-amber-bright); margin-bottom: 0.4rem; }
.contact-card .value { font-size: 1.15rem; color: var(--color-text); margin-bottom: 1.5rem; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 6rem 1.5rem; }
.error-page h1 {
  font-family: var(--font-display); font-size: clamp(3.5rem, 16vw, 7rem);
  color: var(--color-rust); text-shadow: 0.04em 0 0 rgba(224,162,62,0.4), -0.04em 0 0 rgba(63,143,131,0.4);
}

/* ---------- Motion (guarded) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .logo-eyes { animation: eye-pulse 3s ease-in-out infinite; }
}
@keyframes eye-pulse {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(240, 193, 104, 0.6)); }
  50% { filter: drop-shadow(0 0 9px rgba(240, 193, 104, 0.95)); }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
