/* ============================================
   LIAM GRAHAM — Actor Portfolio
   Design System & Custom Styles
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300;1,9..40,400&family=Bebas+Neue&display=swap');

/* --- Design Tokens --- */
:root {
  --bg-rgb: 250, 249, 246;
  --black: #FAF9F6;
  --charcoal: #F2F0EB;
  --surface: #FFFFFF;
  --surface-hover: #F8F6F0;
  --border: #E0DCD5;
  --border-light: #D1CCC4;
  --text-primary: #1A1A1A;
  --text-secondary: #5C5A55;
  --text-muted: #827F78;
  --gold: #A88645;
  --gold-dim: #C2A56C;
  --gold-bright: #8C6D32;
  --gold-glow: rgba(168, 134, 69, 0.15);
  --red-accent: #8B2E2E;
  --grain-opacity: 0.5;
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'DM Sans', 'Helvetica Neue', sans-serif;
  --display: 'Bebas Neue', 'Impact', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 800ms;
  --duration-crawl: 1200ms;
}

[data-theme="dark"] {
  --bg-rgb: 14, 13, 11;
  --black: #0E0D0B;
  --charcoal: #16140F;
  --surface: #1A1714;
  --surface-hover: #221E18;
  --border: #2A251E;
  --border-light: #3A342C;
  --text-primary: #FAF9F6;
  --text-secondary: #C2BDB1;
  --text-muted: #8A8578;
  --gold: #C2A56C;
  --gold-dim: #A88645;
  --gold-bright: #D9BC83;
  --gold-glow: rgba(194, 165, 108, 0.20);
  --red-accent: #C44545;
  --grain-opacity: 0.35;
}

html { background: var(--black); color-scheme: light; transition: background var(--duration-normal) ease; }
[data-theme="dark"] html, html[data-theme="dark"] { color-scheme: dark; }
body { transition: background var(--duration-normal) ease, color var(--duration-normal) ease; }

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: var(--gold);
  color: var(--black);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

/* --- Typography Scale --- */
.heading-display {
  font-family: var(--display);
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.heading-xl {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.heading-lg {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
}

.heading-md {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.25;
}

.heading-sm {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.body-lg { font-size: 1.125rem; line-height: 1.7; color: var(--text-secondary); }
.body-md { font-size: 0.9375rem; line-height: 1.7; color: var(--text-secondary); }
.body-sm { font-size: 0.8125rem; line-height: 1.6; color: var(--text-muted); }

/* --- Film Grain Overlay --- */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  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)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: var(--grain-opacity);
}

/* --- Theme Toggle Button --- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--duration-fast) ease,
              border-color var(--duration-fast) ease,
              transform var(--duration-fast) ease,
              background var(--duration-fast) ease;
}

.theme-toggle:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 15px;
  height: 15px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-mobile-overlay .theme-toggle {
  width: 44px;
  height: 44px;
  margin-top: 1rem;
}
.nav-mobile-overlay .theme-toggle svg { width: 19px; height: 19px; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--duration-normal) var(--ease-out-expo);
  background: transparent;
}

.nav.scrolled {
  background: rgba(var(--bg-rgb), 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  text-transform: uppercase;
  transition: opacity var(--duration-fast) ease;
}

.nav-logo:hover { opacity: 0.7; }

.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--duration-fast) ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-imdb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F5C518;
  color: #000;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: background var(--duration-fast) ease,
              transform var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
}

.nav-links a.nav-imdb::after { display: none; }

.nav-imdb:hover,
.nav-links a.nav-imdb:hover {
  background: #FFD42E;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(245, 197, 24, 0.35);
}

.nav-mobile-overlay .nav-imdb {
  font-size: 1rem;
  padding: 0.55rem 1rem;
  letter-spacing: 0.02em;
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all var(--duration-normal) var(--ease-out-expo);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(var(--bg-rgb), 0.97);
  backdrop-filter: blur(30px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
}

.nav-mobile-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.nav-mobile-overlay a {
  font-family: var(--display);
  font-size: 2.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: all var(--duration-fast) ease;
}

.nav-mobile-overlay a:hover {
  color: var(--gold);
}

/* --- Cinematic Image System --- */
.img-container {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
}
.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-hero      { aspect-ratio: 16 / 7; }
.img-cinematic { aspect-ratio: 16 / 9; }
.img-landscape { aspect-ratio: 3 / 2; }
.img-portrait  { aspect-ratio: 3 / 4; }
.img-headshot  { aspect-ratio: 4 / 5; }
.img-square    { aspect-ratio: 1 / 1; }
.img-poster    { aspect-ratio: 2 / 3; }

/* Focal position utilities */
.focus-face    { object-position: center 20%; }
.focus-upper   { object-position: center 15%; }
.focus-center  { object-position: center center; }
.focus-lower   { object-position: center 70%; }

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -5%; /* bleed area for parallax without gaps */
  width: 110%;
  height: 110%;
  overflow: hidden;
  will-change: transform;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.05);
  animation: heroZoom 25s ease-in-out infinite alternate;
  filter: brightness(0.9) contrast(1.05) saturate(0.9);
}

@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.14); }
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--black) 0%, rgba(var(--bg-rgb),0.5) 35%, transparent 55%),
    linear-gradient(135deg, rgba(var(--bg-rgb),0.7) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(var(--bg-rgb),0.35) 0%, transparent 25%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 clamp(1.5rem, 5vw, 6rem);
  padding-bottom: clamp(3rem, 8vh, 6rem);
  max-width: 900px;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out-expo) 0.5s forwards;
}

.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero-name {
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.88;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.hero-name .word {
  display: inline-block;
  overflow: hidden;
}

.hero-name .word-inner {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: wordReveal 1s var(--ease-out-expo) forwards;
}

.hero-name .word-inner:nth-child(1) { animation-delay: 0.3s; }

.hero-name-line2 .word-inner { animation-delay: 0.5s !important; }

@keyframes wordReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out-expo) 0.8s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out-expo) 1s forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 169, 110, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  padding: 0.5rem 0;
  letter-spacing: 0.1em;
}

.btn-ghost::after {
  content: '→';
  transition: transform var(--duration-fast) ease;
}

.btn-ghost:hover::after {
  transform: translateX(4px);
}

/* --- Section Styles --- */
.section {
  padding: clamp(4rem, 10vh, 8rem) clamp(1.5rem, 5vw, 6rem);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1rem;
}

/* --- Credits Grid — Streaming-Style Tiles --- */
.credits-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-badge {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.filter-badge:hover {
  border-color: var(--text-secondary);
  color: var(--text-secondary);
}

.filter-badge.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.credit-card {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out-expo);
  cursor: pointer;
  position: relative;
}

.credit-card:hover {
  border-color: var(--border-light);
  transform: translateY(-6px) scale(1.015);
  box-shadow:
    0 24px 48px rgba(0,0,0,0.15),
    0 0 0 1px rgba(201,169,110,0.08);
  z-index: 2;
}

.credit-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: var(--charcoal);
}

/* Cinematic gradient overlay on image — always visible */
.credit-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(var(--bg-rgb),0.85) 0%,
    rgba(var(--bg-rgb),0.2) 40%,
    transparent 65%
  );
  z-index: 1;
  pointer-events: none;
  transition: opacity var(--duration-normal) ease;
}

.credit-card:hover .credit-card-image::after {
  background: linear-gradient(
    to top,
    rgba(var(--bg-rgb),0.7) 0%,
    transparent 50%
  );
}

.credit-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo),
              filter var(--duration-normal) ease;
  filter: brightness(0.85) saturate(0.95);
}

.credit-card:hover .credit-card-image img {
  transform: scale(1.08);
  filter: brightness(0.95) saturate(1.1);
}

.credit-card-body {
  padding: 1.15rem 1.25rem 1.25rem;
}

.credit-card-year {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.credit-card-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  line-height: 1.2;
  transition: color var(--duration-fast) ease;
}

.credit-card:hover .credit-card-title {
  color: var(--gold-bright);
}

.credit-card-role {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
}

.credit-card-desc {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.credit-card:hover .credit-card-desc {
  -webkit-line-clamp: unset;
}

.credit-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.credit-badge {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 2px;
  transition: all var(--duration-fast) ease;
}

.credit-card:hover .credit-badge {
  border-color: var(--border-light);
}

.credit-badge.badge-lead { border-color: var(--gold-dim); color: var(--gold); }
.credit-badge.badge-film { border-color: var(--border-light); }
.credit-badge.badge-tv { border-color: var(--border-light); }

/* Featured credit — first 2 cards span wider on large screens */
@media (min-width: 900px) {
  .credits-grid.has-featured .credit-card:nth-child(-n+2) {
    grid-column: span 1;
  }
  .credits-grid.has-featured {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* --- Credits Carousel (home page) --- */
.credits-carousel {
  position: relative;
  margin: 0 -1rem;
  padding: 0 2.5rem;
}

.credits-carousel .carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 1rem 1.5rem;
  scroll-padding-inline: 1rem;
}

.credits-carousel .carousel-track::-webkit-scrollbar { display: none; }

.credits-carousel .carousel-track > .credit-card {
  flex: 0 0 calc((100% - 2 * 1.25rem) / 3);
  scroll-snap-align: start;
  min-width: 0;
}

@media (max-width: 1024px) {
  .credits-carousel .carousel-track > .credit-card {
    flex: 0 0 calc((100% - 1.25rem) / 2);
  }
}

@media (max-width: 640px) {
  .credits-carousel {
    margin: 0 -1.5rem;
    padding: 0 0.5rem;
  }
  .credits-carousel .carousel-track > .credit-card {
    flex: 0 0 calc(100% - 2.5rem);
  }
}

.carousel-btn {
  position: absolute;
  top: calc(50% - 1.25rem);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: background var(--duration-fast) ease,
              border-color var(--duration-fast) ease,
              color var(--duration-fast) ease,
              opacity var(--duration-fast) ease,
              transform var(--duration-fast) ease;
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.carousel-btn[disabled],
.carousel-btn[aria-disabled="true"] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.carousel-prev { left: -0.25rem; }
.carousel-next { right: -0.25rem; }

@media (max-width: 640px) {
  .carousel-btn { display: none; }
}

/* --- Character Gallery --- */
.character-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.character-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
  border-radius: 2px;
}

.character-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.28);
  transform-origin: center 30%;
  transition: all 1s var(--ease-out-expo);
  filter: grayscale(30%) brightness(0.78) contrast(1.05);
}

.character-card:hover img {
  transform: scale(1.34);
  filter: grayscale(0%) brightness(0.95) contrast(1);
}

/* --- Dark Section (always-black band, regardless of theme) --- */
.section-dark {
  background: #0A0A0A !important;
  color: #FAF9F6;
  border-top: 1px solid #1A1A1A !important;
  border-bottom: 1px solid #1A1A1A !important;
}

.section-dark .heading-xl,
.section-dark .heading-lg,
.section-dark .heading-md {
  color: #FAF9F6;
}

.section-dark .body-lg,
.section-dark .body-md,
.section-dark .body-sm {
  color: #C2BDB1;
}

.section-dark .heading-sm { color: var(--gold-dim); }

.section-dark .section-divider { background: var(--gold-dim); }

.section-dark .btn-ghost {
  color: #FAF9F6;
  border-color: rgba(255, 255, 255, 0.18);
}
.section-dark .btn-ghost:hover {
  color: #0A0A0A;
  background: var(--gold);
  border-color: var(--gold);
}

.section-dark .character-card::after {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.3) 35%,
    transparent 55%
  );
}
.section-dark .character-card:hover::after {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.45) 40%,
    transparent 65%
  );
}
.section-dark .character-card-overlay .heading-md {
  color: #FAF9F6 !important;
}

/* Persistent subtle gradient for depth */
.character-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(var(--bg-rgb),0.65) 0%,
    rgba(var(--bg-rgb),0.1) 35%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 1;
  transition: opacity var(--duration-normal) ease;
}

.character-card:hover::after {
  background: linear-gradient(
    to top,
    rgba(var(--bg-rgb),0.85) 0%,
    rgba(var(--bg-rgb),0.3) 40%,
    transparent 60%
  );
}

.character-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--duration-normal) var(--ease-out-expo);
  z-index: 2;
}

.character-card:hover .character-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* --- Awards Timeline --- */
.award-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
}

.award-card:hover {
  border-color: var(--gold-dim);
  background: var(--surface-hover);
}

.award-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.award-card.winner .award-icon { color: var(--gold); }
.award-card.nominee .award-icon { color: var(--text-muted); }

.award-status {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.5rem;
}

.award-card.winner .award-status {
  background: var(--gold);
  color: var(--black);
}

.award-card.nominee .award-status {
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

/* --- News Cards --- */
.news-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  margin-bottom: 1rem;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.news-card:hover {
  border-color: var(--border-light);
  transform: translateX(4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.news-card-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--charcoal);
  border-radius: 2px;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  transition: all var(--duration-slow) var(--ease-out-expo);
}

.news-card:hover .news-card-image img {
  transform: scale(1.04);
  filter: brightness(1);
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 0.9rem;
  transition: border-color var(--duration-fast) ease;
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238A8680' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-select option {
  background: var(--surface);
  color: var(--text-primary);
}

/* --- Laurel Wreaths --- */
.laurel-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.laurel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 200px;
  gap: 0.35rem;
}

.laurel-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.laurel-title {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.laurel-detail {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-secondary);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem clamp(1.5rem, 5vw, 6rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-links a {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  transition: color var(--duration-fast) ease;
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--text-muted);
  transition: color var(--duration-fast) ease;
}

.footer-social a:hover { color: var(--gold); }

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--duration-slow) var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- Page Header (for inner pages) --- */
.page-header {
  padding-top: 8rem;
  padding-bottom: 3rem;
  padding-left: clamp(1.5rem, 5vw, 6rem);
  padding-right: clamp(1.5rem, 5vw, 6rem);
  background: var(--charcoal);
  border-bottom: 1px solid var(--border);
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(var(--bg-rgb),0.96);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  transform: scale(0.95);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 2rem; right: 2rem;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) ease;
}

.lightbox-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .credits-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
  .character-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero {
    min-height: 600px;
  }
  .hero-content { padding-bottom: 2rem; }
  .hero-bg {
    inset: -3%;
    width: 106%;
    height: 106%;
  }

  .credits-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
  }

  .character-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .award-card {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .laurel-bar {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .character-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
  }

  .credits-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    text-align: center;
    justify-content: center;
  }

  .credit-card-image {
    aspect-ratio: 16/10;
  }
}

/* --- Utility --- */
.gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.mt-8 { margin-top: 4rem; }
.max-w-prose { max-width: 65ch; }
