/* ============================================
   IRIS - Styles
   Modular, accessible, and performant CSS
   ============================================ */

/* 1. DESIGN SYSTEM & VARIABLES */
:root {
  /* Colors */
  --void-black: #030303;
  --silver-white: #EAEAEA;
  --film-grey: #888888;
  --gold-cannes: #D4AF37;
  --gold-accent: #bda069;
  
  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-ui: 'Inter', sans-serif;
  
  /* Fluid Typography - Scales smoothly across all viewports */
  /* clamp(min, preferred, max) ensures no abrupt jumps */
  --fs-hero-title: clamp(2.5rem, 12vw, 6rem);      /* Hero main title */
  --fs-h1: clamp(2.5rem, 7vw, 4rem);               /* Page headings */
  --fs-h2: clamp(1.75rem, 5vw, 3rem);              /* Section headings */
  --fs-h3: clamp(1.25rem, 3.5vw, 1.875rem);        /* Subsections */
  --fs-h4: clamp(1.125rem, 3vw, 1.5rem);           /* Card titles / Small headings */
  --fs-h5: clamp(1rem, 2.5vw, 1.25rem);            /* Component headings */
  --fs-subtitle: clamp(1.125rem, 2.75vw, 1.375rem); /* Subtitle text */
  --fs-body: clamp(0.95rem, 2.5vw, 1.1rem);        /* Body text */
  --fs-body-large: clamp(1.0625rem, 2.75vw, 1.1875rem); /* Large body text */
  --fs-small: clamp(0.875rem, 2vw, 0.95rem);       /* Small text / Captions */
  --fs-xs: clamp(0.8125rem, 1.75vw, 0.875rem);     /* Extra small text */
  
  /* Line Heights - Consistency across typography */
  --line-height-tight: 1.2;                         /* Headings */
  --line-height-heading: 1.3;                       /* Main headings */
  --line-height-body: 1.8;                          /* Body text */
  --line-height-form: 1.5;                          /* Form labels */
  --line-height-small: 1.6;                         /* Small text */
  
  /* Theme - Dark (default) */
  --bg: #030303;
  --fg: #EAEAEA;
  --muted: #888888;
  --nav-start: rgba(3,3,3,0.9);
  --nav-end: rgba(3,3,3,0);
  --hero-bg: #000;
  --studio-bg: #050505;
  --footer-bg: var(--bg);
  --footer-border: #1a1a1a;
  --button-border: var(--silver-white);
  --button-color: var(--silver-white);
  --button-hover-bg: rgba(255, 255, 255, 0.2);
  --button-hover-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
  --hero-title-color: var(--silver-white);
  --hero-subtitle-color: var(--film-grey);
  
  /* Overlays - Dark Theme */
  --overlay-start: rgba(3,3,3,0.95);
  --overlay-middle: rgba(3,3,3,0.7);
  --overlay-end: rgba(3,3,3,0.1);
  --overlay-start-reverse: rgba(3,3,3,0.95);
  --overlay-middle-reverse: rgba(3,3,3,0.7);
  --overlay-end-reverse: rgba(3,3,3,0.1);
  
  /* Z-index Scale */
  --z-base: 1;
  --z-overlay: 2;
  --z-content: 3;
  --z-poster: 4;
  --z-nav: 100;
  --z-modal: 10000;
  --z-cursor: 99999;
  
  /* Spacing Scale - Also responsive */
  --spacing-xs: clamp(0.375rem, 1vw, 0.5rem);
  --spacing-sm: clamp(0.75rem, 2vw, 1rem);
  --spacing-md: clamp(1rem, 3vw, 1.5rem);
  --spacing-lg: clamp(1.5rem, 4vw, 2rem);
  --spacing-xl: clamp(2rem, 5vw, 3rem);
  --spacing-2xl: clamp(2.5rem, 7vw, 4rem);
  
  /* Animation */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* 2. THEME OVERRIDES - LIGHT MODE */
body.light-theme {
  --bg: #f6f5f2;
  --fg: #111111;
  --muted: #2a2a2a;                          /* Darker muted for WCAG AAA compliance (7:1 contrast) */
  --nav-start: rgba(255,255,255,0.95);
  --nav-end: rgba(255,255,255,0);
  --hero-bg: #f6f5f2;                        /* Match body background for seamless look */
  --studio-bg: #faf8f4;
  --footer-bg: #f6f5f2;
  --footer-border: #d8d4cd;
  --button-border: #111111;
  --button-color: #111111;
  --button-hover-bg: rgba(0, 0, 0, 0.15);
  --button-hover-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  --gold-cannes: #B38E26;                    /* Deeper bronze-gold for premium light mode contrast */
  --hero-title-color: #111111;
  --hero-subtitle-color: #1a1a1a;            /* Even darker for maximum AAA contrast */
  --overlay-start: rgba(255,255,255,0.95);
  --overlay-middle: rgba(255,255,255,0.8);
  --overlay-end: rgba(255,255,255,0.2);
  --overlay-start-reverse: rgba(255,255,255,0.95);
  --overlay-middle-reverse: rgba(255,255,255,0.8);
  --overlay-end-reverse: rgba(255,255,255,0.2);
}

body.light-theme img[src*="IrisTransparent.webp"] {
  filter: invert(1);
}

/* 3. BASE RESET & SETUP */
html {
  scroll-behavior: smooth;
}

body, html {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  transition: background-color var(--transition-base), color var(--transition-base), background-image var(--transition-base);
}


body {
  background-image: 
    linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.02) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.02) 75%, rgba(255, 255, 255, 0.02) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.02) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.02) 75%, rgba(255, 255, 255, 0.02) 76%, transparent 77%, transparent);
  background-size: 50px 50px;
}

body.light-theme {
  background-image: 
    linear-gradient(0deg, transparent 24%, rgba(0, 0, 0, 0.02) 25%, rgba(0, 0, 0, 0.02) 26%, transparent 27%, transparent 74%, rgba(0, 0, 0, 0.02) 75%, rgba(0, 0, 0, 0.02) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(0, 0, 0, 0.02) 25%, rgba(0, 0, 0, 0.02) 26%, transparent 27%, transparent 74%, rgba(0, 0, 0, 0.02) 75%, rgba(0, 0, 0, 0.02) 76%, transparent 77%, transparent);
  background-size: 50px 50px;
}

/* Cinematic Film Grain Overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.8;
}

/* 3. IMAGE FADE-IN & LOADING OPTIMIZATION */
/* All images start with 0 opacity and fade in when loaded */
img {
  opacity: 0;
  transition: opacity 0.4s ease-in;
}

/* Eager-loaded images are immediately visible */
img[loading="eager"] {
  opacity: 1;
}

/* Images with explicit loaded class fade in smoothly */
img.loaded {
  opacity: 1;
}

/* Skeleton image placeholder - no harsh background color */
.skeleton-image {
  background: transparent;
}

.skeleton-image img {
  background: transparent;
}

/* Film background and poster images smooth fade-in */
.film-bg,
.small-poster {
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

.film-bg.loaded,
.small-poster.loaded {
  opacity: 1;
}

/* Skip Navigation Link - Accessibility */
/* Removed per user request */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
}

a, button {
  color: var(--fg);
  text-decoration: none;
  background: none;
  border: none;
  outline: none;
}

/* Focus Styles for Keyboard Navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-cannes);
  outline-offset: 2px;
  border-radius: 2px;
}

button:focus-visible {
  outline-offset: 4px;
}

/* 4. CUSTOM CURSOR */
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background-color: var(--silver-white);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: difference;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width var(--transition-base), height var(--transition-base), background-color var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  color: var(--void-black);
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
}

/* Hide cursor on touch devices */
@media (hover: none) {
  #cursor {
    display: none;
  }
  
  a, button {
    cursor: auto;
  }
}

/* 4.6. SKELETON LOADERS */
.skeleton {
  background: linear-gradient(90deg, 
    var(--muted) 25%, 
    rgba(255, 255, 255, 0.1) 50%, 
    var(--muted) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

body.light-theme .skeleton {
  background: linear-gradient(90deg, 
    var(--muted) 25%, 
    rgba(0, 0, 0, 0.1) 50%, 
    var(--muted) 75%);
  background-size: 200% 100%;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-image {
  position: relative;
  overflow: hidden;
  background: transparent;
}

.skeleton-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 1;
}

.skeleton-image.skeleton-loading::before {
  background: linear-gradient(90deg, 
    rgba(136, 136, 136, 0.2) 25%, 
    rgba(255, 255, 255, 0.05) 50%, 
    rgba(136, 136, 136, 0.2) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

body.light-theme .skeleton-image.skeleton-loading::before {
  background: linear-gradient(90deg, 
    rgba(42, 42, 42, 0.15) 25%, 
    rgba(0, 0, 0, 0.05) 50%, 
    rgba(42, 42, 42, 0.15) 75%);
  background-size: 200% 100%;
}

/* Hide skeleton when image is loaded */
.skeleton-image img.loaded + .skeleton-overlay {
  display: none;
}

/* 5. NAVIGATION */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  z-index: var(--z-nav);
  background: linear-gradient(to bottom, var(--nav-start) 0%, var(--nav-end) 100%);
  transition: background var(--transition-base);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
}

.logo-img {
  width: 40px;
  height: auto;
  filter: invert(1);
  transition: filter var(--transition-base);
}

body.light-theme .logo-img {
  filter: invert(0);
}

/* Image error state - visible fallback for broken images */
img[data-error="true"],
img.image-load-error {
  background-color: var(--studio-bg);
  display: inline-block !important;
  opacity: 0.5;
  filter: grayscale(100%);
  border-radius: 4px;
  border: 1px dashed var(--muted);
  min-width: 40px;
  min-height: 40px;
}

img[data-error="true"]::after {
  content: '⚠ Image failed to load';
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0.7;
  transition: all var(--transition-base);
  border-bottom: 2px solid transparent;
  position: relative;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
  border-color: var(--gold-cannes);
  color: var(--gold-accent);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 101;
  padding: 8px;
  margin: -8px;
  border-radius: 4px;
  transition: all var(--transition-base);
}

/* Visual feedback on hover/active */
.hamburger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

body.light-theme .hamburger:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.hamburger.active {
  background-color: rgba(255, 255, 255, 0.15);
}

body.light-theme .hamburger.active {
  background-color: rgba(0, 0, 0, 0.15);
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: var(--fg);
  transition: all var(--transition-base);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Theme Toggle Button */
#themeToggle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--button-border);
  border-radius: 999px;
  background: transparent;
  color: var(--button-color);
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base), transform 0.15s ease;
  cursor: pointer;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  position: relative;
  z-index: 101;
}

#themeToggle:active {
  transform: scale(0.95);
}


#themeToggle.scrolled {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base), opacity var(--transition-base), visibility var(--transition-base);
}

#themeToggle.at-top {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

#themeToggle:hover,
#themeToggle:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Theme Toggle Icons */
.theme-icon {
  width: 16px;
  height: 16px;
  display: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity var(--transition-base);
}


.theme-text {
  display: inline;
}

#themeToggle:hover .sun-icon,
#themeToggle:hover .moon-icon {
  opacity: 0.8;
}

/* 6. HERO SECTION */
.hero {
  /* Mobile viewport height fix - use dynamic viewport height when available */
  min-height: 100vh;                          /* Fallback for older browsers */
  min-height: 100dvh;                         /* Dynamic viewport height (iOS/Android) */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-content {
  position: relative;
  z-index: var(--z-content);
  text-align: center;
}

.hero-logo {
  width: clamp(10px, 5vw, 40px);
  height: auto;
  margin-bottom: var(--spacing-md);
  letter-spacing: 2px;
  transition: filter var(--transition-base);
}

body.light-theme .hero-logo {
  filter: brightness(0) drop-shadow(0 0 1px rgba(0, 0, 0, 0.1));
}

.hero-title {
  font-size: var(--fs-hero-title);
  letter-spacing: clamp(8px, 2vw, 20px);
  margin-right: calc(-1 * clamp(8px, 2vw, 20px));
  mix-blend-mode: screen;
  line-height: var(--line-height-tight);
  color: var(--hero-title-color);
  transition: mix-blend-mode var(--transition-base), color var(--transition-base);
  position: relative;
  z-index: 1;
}


.hero-title::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 2px;
  background: linear-gradient(90deg, transparent, #FFB700, #FFEB3B, #FFB700, transparent);
  border-radius: 50%;
  box-shadow: 0 0 20px #FFC700, 0 0 40px #FFB700;
  z-index: -1;
  pointer-events: none;
  /* Animation starts hidden */
  opacity: 0;
  width: 0%;
  animation: igniteLensFlare 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Light theme adjustment for the flare */
body.light-theme .hero-title::before {
  background: linear-gradient(90deg, transparent, #E67E22, #F39C12, #E67E22, transparent);
  box-shadow: 0 0 10px #E67E22, 0 0 25px #F39C12, 0 0 45px rgba(230, 126, 34, 0.6);
}

body.light-theme .hero-title {
  mix-blend-mode: normal;
}

.hero-subtitle {
  font-family: var(--font-ui);
  font-size: var(--fs-subtitle);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--hero-subtitle-color);
  margin-top: var(--spacing-md);
  position: relative;
  padding-top: var(--spacing-md);
  line-height: var(--line-height-form);
  font-style: italic;
  transition: text-shadow var(--transition-base), color var(--transition-base);
}


body.light-theme .hero-subtitle {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-subtitle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 1px;
  background: var(--gold-cannes);
}

/* 7. STUDIO SECTION */
.studio {
  padding: 12rem 4rem;
  background: var(--studio-bg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  margin-top: clamp(3rem, 8vw, 6rem);
  margin-bottom: clamp(3rem, 8vw, 6rem);
}

.studio-content {
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.studio h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-tight);
}

.studio p {
  font-size: var(--fs-body);
  line-height: var(--line-height-body);
  color: var(--fg);
  font-family: var(--font-ui);
  font-weight: 300;
  text-align: justify;
}

.studio p strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  color: var(--gold-cannes);
}

.sub-p {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  color: var(--film-grey);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: var(--spacing-xl);
}

/* 8. FILM CASE STUDIES */
.film-case {
  min-height: clamp(70vh, 100dvh, 100dvh);    /* Scales from 70vh on mobile to 100vh on desktop */
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 6rem;
  box-sizing: border-box;
  overflow: hidden;
  margin-bottom: var(--spacing-xl);
}

.film-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: var(--z-base);
  opacity: 0.5;
  filter: grayscale(50%);
  transition: transform var(--transition-slow), filter var(--transition-slow);
}

.film-case:hover .film-bg {
  transform: scale(1.02);
  filter: grayscale(0%);
}

.film-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--overlay-start) 0%, var(--overlay-middle) 50%, var(--overlay-end) 100%);
  z-index: var(--z-overlay);
  transition: background var(--transition-base);
  pointer-events: none;
}

.film-content {
  position: relative;
  z-index: var(--z-content);
  max-width: clamp(280px, 90vw, 650px);
}

.festival-laurel {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--gold-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  background: rgba(212, 175, 55, 0.15);
  padding: 10px 14px;
  border-left: 3px solid var(--gold-cannes);
  border-radius: 2px;
  backdrop-filter: blur(4px);
  font-style: italic;
  transition: all var(--transition-base);
}

.festival-laurel:hover {
  background: rgba(212, 175, 55, 0.25);
  transform: translateX(4px);
}

.festival-laurel::before,
.festival-laurel::after {
  content: '🌿';
  font-size: 1.2rem;
  filter: grayscale(100%) brightness(200%) sepia(100%) hue-rotate(5deg) saturate(300%);
}

.film-title {
  font-size: clamp(1.75rem, 8vw, 5rem);
  line-height: 1;
  margin-bottom: var(--spacing-md);
}

.film-meta {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  color: var(--silver-white);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-xs);
  font-style: italic;
  transition: color var(--transition-base);
}


body.light-theme .film-meta {
  color: #222222;
}

.film-cast {
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  color: var(--film-grey);
  margin-bottom: var(--spacing-lg);
  line-height: var(--line-height-small);
  transition: color var(--transition-base);
}


body.light-theme .film-cast {
  color: #222222;
}

.film-synopsis {
  font-size: var(--fs-body-large);
  line-height: var(--line-height-body);
  color: var(--silver-white);
  font-family: var(--font-display);
  font-weight: 300;
  margin-bottom: var(--spacing-xl);
  transition: color var(--transition-base);
}


body.light-theme .film-synopsis {
  color: #222222;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 10px 0 10px 0;
  border-bottom: 2px solid var(--fg);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.play-btn::after {
  content: '→';
  position: absolute;
  right: -20px;
  opacity: 0;
  transition: right var(--transition-base), opacity var(--transition-base);
}

.play-btn:hover,
.play-btn:focus-visible {
  color: var(--gold-cannes);
  border-color: var(--gold-cannes);
  padding-right: 20px;
  transform: scale(1.05);
  text-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
}

.play-btn:hover::after,
.play-btn:focus-visible::after {
  right: 0;
  opacity: 1;
}

.play-btn:active {
  transform: scale(0.98);
}

/* Small Poster Box */
.small-poster {
  width: 240px;
  height: auto;
  border: 2px solid var(--fg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.15);
  z-index: var(--z-poster);
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  transition: all var(--transition-base);
  pointer-events: none;
  border-radius: 2px;
}

.small-poster:hover,
.small-poster:focus-visible {
  transform: scale(1.08) translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.25);
}

/* Alternate Alignment for Film 2 */
.film-case.right-align {
  justify-content: flex-end;
  text-align: right;
}

.film-case.right-align .film-overlay {
  background: linear-gradient(to left, var(--overlay-start-reverse) 0%, var(--overlay-middle-reverse) 50%, var(--overlay-end-reverse) 100%);
}

.film-case.right-align .festival-laurel {
  justify-content: flex-end;
}

.film-case.right-align .small-poster {
  right: auto;
  left: 2rem;
}

/* Form Styles */
.contact-form,
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--silver-white);
  font-weight: 500;
  line-height: var(--line-height-form);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.5rem 0.7rem;
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: 1rem;
  transition: all var(--transition-base);
}

body.light-theme .form-group input,
body.light-theme .form-group textarea,
body.light-theme .form-group select {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #111111;
  font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold-cannes);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

body.light-theme .form-group input:focus,
body.light-theme .form-group textarea:focus,
body.light-theme .form-group select:focus {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-group.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.8rem;
}

.form-group.checkbox input {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.form-group.checkbox label {
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

.form-submit {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0.5rem 1.2rem;
  border: 2px solid var(--button-border);
  background: transparent;
  color: var(--button-color);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 36px;
}

.form-submit:hover,
.form-submit:focus-visible {
  background: var(--button-hover-bg);
  color: var(--button-color);
  transform: scale(1.02);
  border-color: var(--gold-cannes);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.form-submit:active {
  transform: scale(0.98);
}

.form-notice {
  font-size: 0.9rem;
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 4px;
  text-align: center;
}

.form-notice.success {
  background: rgba(76, 175, 80, 0.15);
  color: #4CAF50;
  border: 1px solid #4CAF50;
}

.form-notice.error {
  background: rgba(244, 67, 54, 0.15);
  color: #F44336;
  border: 1px solid #F44336;
}

/* Film Case Studies - Placeholder styling */
.spotlight-placeholder {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.spotlight-placeholder.visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  position: relative;
}


footer {
  padding: 8rem 4rem 6rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: flex-start;
  background: var(--footer-bg);
  position: relative;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  gap: 3rem;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-cannes), transparent);
  opacity: 0.6;
}

/* Section Divider with Gradient Border */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-cannes), transparent);
  opacity: 0.7;
  margin: 3rem 0;
}

.footer-col {
  transition: all var(--transition-base);
  padding: 1rem;
  border-radius: 4px;
}

.footer-col:hover {
  background: rgba(212, 175, 55, 0.08);
}

.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--gold-cannes);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.footer-col p {
  margin: 0;
  font-size: 1rem;
  line-height: var(--line-height-body);
  color: var(--fg);
  font-weight: 300;
}

.footer-center {
  text-align: center;
}

.footer-right {
  text-align: right;
}

body.light-theme .footer-col p,
body.light-theme .footer-col h4,
body.light-theme .social-links a {
  color: #111111;
}

body.light-theme .footer-col h4 {
  color: #666666;
}

.social-links {
  margin-top: var(--spacing-sm);
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}

.social-links a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base);
}

.social-links a:hover,
.social-links a:focus-visible {
  border-bottom-color: var(--gold-cannes);
  color: var(--gold-cannes);
}

/* 10. VIDEO MODAL */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  backdrop-filter: blur(20px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem;
  box-sizing: border-box;
  transform: translateY(20px);
}

/* Keep the modal dark and cinematic even in light theme */
body.light-theme .modal {
  background: rgba(0, 0, 0, 0.95);
}

.modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.modal-content {
  width: min(100%, 1100px);
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  position: relative;
  background: rgba(7, 7, 7, 0.98);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-content iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--silver-white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background var(--transition-base), opacity var(--transition-base), transform var(--transition-base);
  z-index: 10001;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.75rem 1rem;
}

body.light-theme .close-modal {
  color: #f6f5f2;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.close-modal:hover,
.close-modal:focus-visible {
  opacity: 0.85;
  transform: translateY(-1px);
}

.close-modal:hover,
.close-modal:focus-visible {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .close-modal {
    top: -40px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .close-modal {
    top: -35px;
    font-size: 0.75rem;
  }
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 11. CATALOGUE PAGE */
.catalogue-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--studio-bg);
  padding: 8rem 4rem;
  text-align: center;
  margin-top: clamp(3rem, 8vw, 6rem);
}

.catalogue-hero-content {
  max-width: 800px;
}

.catalogue-hero-content h1 {
  font-size: var(--fs-hero-title);
  color: var(--fg);
  margin-bottom: 1.5rem;
  line-height: var(--line-height-tight);
}

.catalogue-hero-subtitle {
  font-size: var(--fs-subtitle);
  color: var(--muted);
  line-height: var(--line-height-body);
  font-family: var(--font-ui);
  font-weight: 300;
}

.catalogue-section {
  padding: 8rem 4rem;
  background: var(--bg);
  margin-bottom: clamp(3rem, 8vw, 6rem);
}

.catalogue-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.catalogue-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.catalogue-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: flex-start;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.catalogue-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-cannes), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

body.light-theme .catalogue-item {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.catalogue-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.catalogue-item:hover::before {
  opacity: 1;
}

body.light-theme .catalogue-item:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.catalogue-poster {
  position: relative;
  width: 100%;
  height: auto;
}

.catalogue-poster img {
  width: 100%;
  height: auto;
  border: 2px solid var(--gold-cannes);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.15);
  transition: all var(--transition-base);
  border-radius: 8px;
}

.catalogue-item:hover .catalogue-poster img {
  transform: scale(1.05);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 175, 55, 0.25);
}

.catalogue-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.catalogue-badge {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--gold-cannes);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 400;
  font-style: italic;
}

.catalogue-title {
  font-size: var(--fs-h2);
  line-height: var(--line-height-tight);
  color: var(--fg);
  margin: 0;
  font-family: var(--font-display);
}

.catalogue-director {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--silver-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  font-weight: 500;
}

body.light-theme .catalogue-director {
  color: #222222;
}

.catalogue-cast {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--film-grey);
  line-height: 1.6;
  margin: 0;
  font-weight: 300;
}

body.light-theme .catalogue-cast {
  color: #555555;
}

.catalogue-synopsis {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg);
  margin: 1rem 0 2rem 0;
  display: block;
  max-height: 80px;
  overflow: hidden;
  transition: max-height var(--transition-base);
  font-family: var(--font-ui);
  font-weight: 300;
}

.catalogue-synopsis.expandable {
  cursor: pointer;
}

.catalogue-synopsis.expandable:hover {
  opacity: 0.8;
}

.catalogue-synopsis.expanded {
  max-height: 1000px;
}

.catalogue-buttons {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.catalogue-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  transition: all var(--transition-base);
  cursor: pointer;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-weight: 500;
}

.catalogue-play-btn:hover,
.catalogue-play-btn:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-cannes);
  color: var(--gold-cannes);
  transform: translateY(-2px);
}

.catalogue-info-btn,
.catalogue-presskit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-weight: 500;
}

.catalogue-info-btn:hover,
.catalogue-info-btn:focus-visible,
.catalogue-presskit-btn:hover,
.catalogue-presskit-btn:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-cannes);
  color: var(--gold-cannes);
  transform: translateY(-2px);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.pagination::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-cannes), transparent);
}

body.light-theme .pagination {
  border-top-color: rgba(0, 0, 0, 0.1);
}

.pagination-btn {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 1rem 2rem;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  transition: all var(--transition-base);
  cursor: pointer;
  border-radius: 8px;
  font-weight: 500;
}

.pagination-btn:hover:not(:disabled),
.pagination-btn:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-cannes);
  color: var(--gold-cannes);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.pagination-info {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 300;
}

/* 12. FOCUS VISIBLE STATES */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-cannes);
  outline-offset: 4px;
}

/* 13. CONTACT PAGE STYLES */
.contact-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--studio-bg);
  padding: 8rem 4rem;
  text-align: center;
  margin-top: clamp(3rem, 8vw, 6rem);
}

.contact-hero-content {
  max-width: 800px;
}

.contact-hero-content h1 {
  font-size: var(--fs-hero-title);
  color: var(--fg);
  margin-bottom: 1.5rem;
  line-height: var(--line-height-tight);
}

.contact-hero-subtitle {
  font-size: var(--fs-subtitle);
  color: var(--muted);
  line-height: var(--line-height-body);
  font-family: var(--font-ui);
  font-weight: 300;
}

.contact-info-section {
  padding: 8rem 4rem;
  background: var(--bg);
}

.contact-info-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}

.contact-info-card {
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-cannes), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

body.light-theme .contact-info-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-info-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-info-card:hover::before {
  opacity: 1;
}

body.light-theme .contact-info-card:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--fg);
  font-family: var(--font-display);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-info-card p,
.contact-info-card a {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  font-family: var(--font-ui);
}

.contact-info-card a:hover {
  color: var(--gold-cannes);
  border-bottom: 1px solid var(--gold-cannes);
}

/* Center social links within contact info cards */
.contact-info-card .social-links {
  justify-content: center;
}

.contact-form-section {
  padding: 8rem 4rem;
  background: var(--studio-bg);
  margin-bottom: clamp(3rem, 8vw, 6rem);
}

.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-form-card {
  padding: 4rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.contact-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-cannes), transparent);
}

body.light-theme .contact-form-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-form-card h2 {
  font-size: var(--fs-h2);
  margin-bottom: 2.5rem;
  color: var(--fg);
  font-family: var(--font-display);
  position: relative;
  display: inline-block;
  padding: 0 1rem;
}

.contact-form-card h2::before,
.contact-form-card h2::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--gold-cannes);
}

.contact-form-card h2::before {
  left: -40px;
}

.contact-form-card h2::after {
  right: -40px;
}

/* 13.1 RESPONSIVE CONTACT PAGE */
@media (max-width: 768px) {
  .contact-hero {
    padding: 6rem 2rem;
    min-height: 50vh;
  }

  .contact-hero-content h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .contact-info-section,
  .contact-form-section {
    padding: 4rem 2rem;
  }

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

  .contact-info-card {
    padding: 2.5rem 1.5rem;
  }

  .contact-form-card {
    padding: 3rem 2rem;
  }

  .contact-form-card h2 {
    font-size: var(--fs-h3);
    margin-bottom: 2rem;
  }

  .contact-form-card h2::before,
  .contact-form-card h2::after {
    width: 20px;
  }

  .contact-form-card h2::before {
    left: -30px;
  }

  .contact-form-card h2::after {
    right: -30px;
  }
}

/* 12.1 RESPONSIVE CATALOGUE PAGE */
@media (max-width: 768px) {
  .catalogue-hero {
    padding: 6rem 2rem;
    min-height: 50vh;
  }

  .catalogue-hero-content h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .catalogue-section {
    padding: 4rem 2rem;
  }

  .catalogue-item {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .catalogue-poster {
    max-width: 200px;
    margin: 0 auto;
  }

  .catalogue-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .pagination {
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
  }

  .pagination-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
  }
}

/* 12. RESPONSIVE DESIGN */
/* Tablet (768px to 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  nav {
    padding: 2rem 3rem;
  }
  
  .hero-logo {
    width: clamp(120px, 40vw, 400px);
  }
  
  .hero-title {
    font-size: 6vw;
  }
  
  .studio {
    padding: 10rem 3rem;
  }
  
  .studio h2 {
    font-size: 2.55rem;
    line-height: var(--line-height-tight);
  }
  
  .studio p {
    font-size: 1.3rem;
  }
  
  .film-case {
    padding: 0 4rem;
    height: 90vh;
  }
  
  .film-title {
    font-size: 4rem;
  }
  
  .film-meta,
  .film-cast,
  .film-synopsis {
    font-size: 0.95rem;
  }
  
  .small-poster {
    width: 160px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .film-case.right-align .small-poster {
    left: 1.5rem;
    right: auto;
  }
  
  footer {
    padding: 5rem 3rem;
  }
  
  .catalogue-header {
    padding: 8rem 3rem 5rem;
  }
  
  .catalogue-header h1 {
    font-size: var(--fs-h1);
    line-height: var(--line-height-tight);
  }
  
  .catalogue {
    padding: 4rem 3rem;
  }
  
  .catalogue-container {
    max-width: 800px;
  }
  
  .catalogue-list {
    gap: 1.2rem;
  }
  
  .catalogue-item {
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(212, 175, 55, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .catalogue-title {
    font-size: 1.2rem;
  }
  
  .catalogue-director {
    font-size: 0.8rem;
  }
  
  .catalogue-cast {
    font-size: 0.75rem;
  }
  
  .catalogue-synopsis {
    font-size: 0.85rem;
  }
  
  .pagination {
    gap: 1.2rem;
  }
}

/* Mobile (up to 768px) */
@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo-container {
    gap: 8px;
  }
  
  .logo-img {
    width: 32px;
  }
  
  .logo-text {
    font-size: 0.95rem;
    letter-spacing: 1.5px;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    gap: 0;
    background: rgba(3, 3, 3, 0.95);
    transform: none;
    opacity: 0;
    transition: max-height 0.35s ease, opacity var(--transition-base), padding var(--transition-base);
    z-index: var(--z-nav);
    padding: 0 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  }

  body.light-theme .nav-links {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  }

  body.light-theme .nav-links a {
    border-bottom-color: rgba(0, 0, 0, 0.08);
  }
  
  .nav-links.active {
    max-height: 400px;
    opacity: 1;
    padding: 1.5rem 1.5rem;
  }
  
  .nav-links a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .hamburger {
    display: flex;
    z-index: 102;
  }
  
  #themeToggle {
    font-size: 0.375rem;
    padding: 0.45rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    z-index: 101;
  }

  .theme-text {
    display: none;
  }

  .theme-icon {
    display: block;
    width: 20px;
    height: 20px;
  }

  .sun-icon {
    display: block;
  }

  .moon-icon {
    display: none;
  }

  body.light-theme #themeToggle .sun-icon {
    display: none;
  }

  body.light-theme #themeToggle .moon-icon {
    display: block;
  }
  
  .hero {
    min-height: 80vh;
  }
  
  .hero-logo {
    width: clamp(70px, 18vw, 180px);
    margin-bottom: var(--spacing-xs);
  }
  
  .hero-title {
    font-size: 9vw;
    letter-spacing: -0.5px;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .studio {
    padding: 8rem 1.5rem;
  }
  
  .studio h2 {
    font-size: 2.125rem;
  }
  
  .studio p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
  }
  
  .film-case {
    padding: 0 1rem;
    min-height: 50vh;
    flex-direction: column;
    justify-content: flex-end;
  }
  
  .film-case.right-align {
    text-align: left;
    justify-content: flex-end;
  }
  
  .film-case.right-align .film-content {
    padding-right: clamp(90px, 20vw, 120px);
  }
  
  .festival-laurel {
    font-size: 0.7rem;
    padding: 8px 10px;
    margin-bottom: 1rem;
    background: rgba(212, 175, 55, 0.2);
    border-left: 2px solid var(--gold-cannes);
  }
  
  .film-title {
    font-size: 2.5rem;
  }
  
  .film-meta {
    font-size: 0.9rem;
  }
  
  .film-cast {
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
  }
  
  .film-synopsis {
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
  }
  
  .play-btn {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    border-bottom: 2px solid var(--fg);
    gap: 10px;
  }
  
  .play-btn:hover,
  .play-btn:focus-visible {
    border-color: var(--gold-cannes);
  }
  
  .small-poster {
    width: clamp(70px, 20vw, 100px);
    bottom: clamp(0.75rem, 2vw, 1.5rem);
    right: clamp(0.5rem, 2vw, 1rem);
    left: auto;
    top: auto;
    border: 1.5px solid var(--fg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  }
  
  .film-case.right-align .small-poster {
    left: auto;
    right: clamp(0.5rem, 2vw, 1rem);
  }
  
  .inquiries-section {
    padding: 1.9rem 1.2rem;
  }
  
  .inquiries-section h2 {
    font-size: 1.1rem;
  }
  
  .inquiries-subtitle {
    font-size: 0.75rem;
  }
  
  .inquiries-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .inquiry-card {
    padding: 0.8rem;
  }
  
  .inquiry-card h3 {
    font-size: 0.9rem;
  }
  
  .form-group label {
    font-size: 0.7rem;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px;
    padding: 0.7rem;
  }
  
  .form-submit {
    font-size: 0.75rem;
    padding: 0.8rem 1.5rem;
  }
  
  footer {
    padding: 4rem 1.5rem;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-center {
    order: -1;
  }
  
  .footer-right {
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
    gap: 15px;
  }
  
  .modal-content {
    width: 95%;
  }
  
  .close-modal {
    top: -40px;
    font-size: 0.9rem;
  }
  
  .catalogue-header {
    padding: 6rem 1.5rem 4rem;
  }
  
  .catalogue-header h1 {
    font-size: 2.5rem;
  }
  
  .catalogue-header p {
    font-size: 1rem;
  }
  
  .catalogue {
    padding: 3rem 1.5rem;
  }
  
  .catalogue-container {
    gap: 2rem;
  }
  
  .catalogue-list {
    gap: 1rem;
  }
  
  .catalogue-item {
    grid-template-columns: 100px 1fr;
    gap: 1.2rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(212, 175, 55, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  body.light-theme .catalogue-item {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(212, 175, 55, 0.04) 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .catalogue-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(212, 175, 55, 0.06) 100%);
    transform: translateX(2px);
  }
  
  .catalogue-poster {
    width: 100%;
  }
  
  .catalogue-title {
    font-size: 1.2rem;
  }
  
  .catalogue-director {
    font-size: 0.75rem;
  }
  
  .catalogue-cast {
    font-size: 0.7rem;
  }
  
  .catalogue-synopsis {
    font-size: 0.8rem;
  }

  .catalogue-play-btn,
  .catalogue-info-btn,
  .catalogue-presskit-btn {
    font-size: 0.7rem;
  }
  
  .pagination {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .pagination-btn {
    width: 100%;
    font-size: 0.75rem;
    padding: 0.6rem;
  }
  
  .pagination-info {
    font-size: 0.75rem;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  nav {
    padding: 1rem;
  }
  
  .logo-text {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }
  
  .hero {
    min-height: 70vh;
  }
  
  .hero-logo {
    width: clamp(60px, 18vw, 150px);
  }
  
  .hero-title {
    font-size: 8vw;
  }
  
  .studio {
    padding: 5rem 1rem;
  }
  
  .film-case {
    min-height: 70vh;
    padding: 0 0.5rem;
  }
  
  .film-case.right-align .film-content {
    padding-right: clamp(80px, 18vw, 100px);
  }
  
  .film-content {
    max-width: 100%;
  }
  
  .small-poster {
    width: 65px;
    bottom: auto;
    right: auto;
    top: 0.8rem;
    left: 0.8rem;
  }
  
  .film-case.right-align .small-poster {
    left: auto;
    right: 0.8rem;
  }
  
  .studio h2 {
    font-size: 1.7rem;
  }
  
  .film-title {
    font-size: 1.8rem;
  }
  
  footer {
    padding: 2rem 1rem;
  }
  
  .catalogue-header {
    padding: 4rem 1rem 3rem;
  }
  
  .catalogue-header h1 {
    font-size: 1.8rem;
  }
  
  .catalogue {
    padding: 2rem 1rem;
  }
  
  .catalogue-item {
    grid-template-columns: 80px 1fr;
    gap: 0.8rem;
    padding: 1rem;
  }
  
  .catalogue-poster {
    width: 100%;
  }
  
  .catalogue-title {
    font-size: 1rem;
  }
  
  .catalogue-director {
    font-size: 0.7rem;
  }
  
  .catalogue-cast {
    font-size: 0.65rem;
  }
  
  .catalogue-synopsis {
    font-size: 0.75rem;
  }
  
  .catalogue-play-btn,


  .catalogue-buttons {
    gap: 0.6rem;
  }
  
  .pagination-btn {
    font-size: 0.65rem;
    padding: 0.5rem;
  }
  
  .pagination-info {
    font-size: 0.65rem;
  }
}

/* 13. ADDITIONAL RESPONSIVE REFINEMENTS */

/* Small tablets/large phones (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  
  .hero-title {
    font-size: 9vw;
  }
  
  .film-title {
    font-size: 2.2rem;
  }
  
  .modal-content {
    min-height: 350px;
  }
  
  .close-modal {
    font-size: 0.9rem;
  }
}

/* Landscape mode adjustments */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    min-height: 150vh;
  }
  
  .film-case {
    min-height: 150vh;
  }
}

/* iPad Pro and large tablets (1025px and up) */
@media (min-width: 1025px) {
  .modal-content {
    aspect-ratio: 16 / 9;
    min-height: auto;
  }
}

/* Ultra-wide displays (1441px and up) */
@media (min-width: 1441px) {
  :root {
    --spacing-xl: 4rem;
    --spacing-2xl: 5rem;
  }
  
  .studio {
    padding: 15rem 6rem;
  }
  
  .film-case {
    padding: 0 8rem;
  }
}

/* 14. DIVISIONS PAGE */
.divisions-section {
  padding: 8rem 4rem;
  background: var(--studio-bg);
  min-height: 100vh;                          /* Fallback for older browsers */
  min-height: 100dvh;                         /* Dynamic viewport height (iOS/Android) */
}

.divisions-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.division-card {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.division-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-cannes), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.division-card:hover::before {
  opacity: 1;
}

.division-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

body.light-theme .division-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .division-card:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
}

.division-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold-cannes);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.division-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--fg);
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.division-subtitle {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--gold-cannes);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 1rem 0;
}

.division-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--silver-white);
  margin: 0;
  flex-grow: 1;
}

body.light-theme .division-description {
  color: #222222;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .film-case:hover .film-bg {
    transform: none;
    filter: grayscale(50%);
  }
  
  .catalogue-item:hover {
    background: rgba(255, 255, 255, 0.01);
    border-color: rgba(255, 255, 255, 0.08);
    transform: none;
  }
  
  #themeToggle,
  .play-btn,
  .catalogue-play-btn {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Retina displays optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .close-modal {
    font-weight: 500;
  }
}

/* 15. FORM VALIDATION FEEDBACK */
.form-error {
  display: block;
  font-size: 0.85rem;
  color: #e74c3c;
  margin-top: 0.4rem;
  min-height: 1.2rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Light theme form inputs */
body.light-theme .contact-form input,
body.light-theme .contact-form select,
body.light-theme .contact-form textarea {
  border-color: rgba(0, 0, 0, 0.2);
}

.contact-form input.field-error,
.contact-form select.field-error,
.contact-form textarea.field-error {
  border-color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.05);
}

.contact-form input.field-valid,
.contact-form select.field-valid,
.contact-form textarea.field-valid {
  border-color: #27ae60;
  background-color: rgba(39, 174, 96, 0.05);
}

.contact-form input.field-error:focus,
.contact-form select.field-error:focus,
.contact-form textarea.field-error:focus {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.contact-form input.field-valid:focus,
.contact-form select.field-valid:focus,
.contact-form textarea.field-valid:focus {
  border-color: #27ae60;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* 16. IRIS GROUP SECTION - Separate from Spotlight */
.spotlight-section {
  padding: 0;
  margin-top: clamp(3rem, 8vw, 6rem);
  margin-bottom: clamp(3rem, 8vw, 6rem);
}

.spotlight-heading,
.studio-heading,
.iris-group-heading {
  max-width: 1400px;
  margin: clamp(2rem, 5vw, 5rem) auto 3rem;
  padding: 0 2rem 2rem 2rem;
  text-align: center;
}

.spotlight-heading h2,
.studio-heading h2.decorated-heading,
.iris-group-heading h2.decorated-heading {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  color: var(--fg);
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
  position: relative;
  display: inline-block;
  padding: 0 1.5rem;
}

.spotlight-heading h2::before,
.spotlight-heading h2::after,
.studio h2.decorated-heading::before,
.studio h2.decorated-heading::after,
.iris-group-heading h2.decorated-heading::before,
.iris-group-heading h2.decorated-heading::after {
  content: '';
  position: absolute;
  top: 50%;
  width: clamp(20px, 8vw, 40px);
  height: 1px;
  background: var(--gold-cannes);
  transform: translateY(-50%);
}

.spotlight-heading h2::before,
.studio h2.decorated-heading::before,
.iris-group-heading h2.decorated-heading::before {
  left: -2rem;
}

.spotlight-heading h2::after,
.studio h2.decorated-heading::after,
.iris-group-heading h2.decorated-heading::after {
  right: -2rem;
}

.spotlight-subtitle {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
  letter-spacing: 1px;
}

body.light-theme .spotlight-heading h2,
body.light-theme .studio h2.decorated-heading,
body.light-theme .iris-group-heading h2.decorated-heading {
  color: #111111;
}

body.light-theme .spotlight-subtitle,
body.light-theme .iris-group-subtitle {
  color: #666666;
}

/* 16. CAROUSEL STYLES */
.spotlight-carousel-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  /* Mobile optimization: Allow vertical scrolling while handling horizontal swipes */
  touch-action: pan-y;
}

.spotlight-carousel {
  position: relative;
  width: 100%;
  /* Hide scrollbar for cleaner appearance */
  scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for webkit browsers (Chrome, Safari, Edge) */
.spotlight-carousel::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.carousel-slide.inactive {
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.carousel-film {
  margin-bottom: 0;
}

/* Carousel Controls - Navigation Buttons & Dots */
.carousel-controls {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  flex-wrap: wrap;
  background: linear-gradient(to top, rgba(3, 3, 3, 0.95), rgba(3, 3, 3, 0.7), transparent);
  z-index: 10;
  backdrop-filter: blur(4px);
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
}

.carousel-btn {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 1rem 2rem;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  transition: all var(--transition-base);
  cursor: pointer;
  border-radius: 8px;
  font-weight: 500;
}

.carousel-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-cannes);
  color: var(--gold-cannes);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Pagination Dots */
.carousel-dots {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.3);
  border: 2px solid var(--gold-cannes);
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.dot.active {
  background: var(--gold-cannes);
  transform: scale(1.3);
}

.dot:hover {
  background: rgba(212, 175, 55, 0.6);
  transform: scale(1.15);
}

/* Auto-play Animation (active slide indicator) */
@keyframes carouselAutoplay {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

/* Light theme carousel controls */
body.light-theme .carousel-btn {
  border-color: var(--fg);
  color: var(--fg);
}

body.light-theme .carousel-btn:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.1);
  border-color: var(--gold-cannes);
  color: var(--gold-cannes);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

body.light-theme .dot {
  background: rgba(17, 17, 17, 0.2);
  border-color: #111111;
}

body.light-theme .dot.active {
  background: #111111;
}

body.light-theme .dot:hover {
  background: rgba(17, 17, 17, 0.4);
}

/* Light theme carousel controls overlay */
body.light-theme .carousel-controls {
  background: linear-gradient(to top, rgba(246, 245, 242, 0.98), rgba(246, 245, 242, 0.85), transparent);
}

/* Mobile Swipe Support */
@media (max-width: 768px) {
  .carousel-controls {
    gap: 0.375rem;
    padding: 1.5rem 0.5rem 0.5rem 0.5rem;
    background: linear-gradient(to top, rgba(3, 3, 3, 0.98), rgba(3, 3, 3, 0.85), transparent);
    flex-wrap: nowrap;
    margin-top: 0.5rem;
  }

  .carousel-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .carousel-dots {
    gap: 0.25rem;
    flex-shrink: 0;
  }

  .dot {
    width: 8px;
    height: 8px;
    border: 1px solid var(--gold-cannes);
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .carousel-slide {
    scroll-snap-align: start;
  }

  .spotlight-carousel-wrapper {
    touch-action: pan-y pinch-zoom;
  }
}

/* 17. IRIS GROUP SECTION - Separate from Spotlight */
.iris-group-section {
  padding: 6rem 2rem;
  background: var(--studio-bg);
  min-height: auto;
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  margin-bottom: clamp(3rem, 8vw, 6rem);
}

.iris-group-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-cannes), transparent);
  opacity: 0.8;
}

.iris-group-heading {
  max-width: 1400px;
  margin: 0 auto 3rem;
  text-align: center;
  padding-bottom: 2rem;
}

.iris-group-heading h2 {
  font-family: var(--font-display);
  font-size: 2.125rem;
  color: var(--fg);
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.iris-group-subtitle {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
  letter-spacing: 1px;
}

body.light-theme .iris-group-heading h2 {
  color: #111111;
}

body.light-theme .iris-group-subtitle {
  color: #666666;
}

.divisions-container-spotlight {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}

.division-card-small {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.division-card-small::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-cannes), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.division-card-small:hover::before {
  opacity: 1;
}

.division-card-small:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

body.light-theme .division-card-small {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .division-card-small:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
}

.division-number-small {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold-cannes);
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.division-title-small {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--fg);
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
  font-weight: normal;
}

.division-subtitle-small {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--gold-cannes);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 0.5rem 0;
}

.division-description-small {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--silver-white);
  margin: 0;
  flex-grow: 1;
}

body.light-theme .division-description-small {
  color: #222222;
}

/* Anamorphic Lens Flare Animation */
@keyframes igniteLensFlare {
  0% {
    width: 0%;
    opacity: 0;
    filter: brightness(0.5) blur(4px);
    transform: translate(-50%, -50%) translateX(0);
  }
  40% {
    width: 140%; /* Shoots out wide */
    opacity: 1;
    filter: brightness(1.5) blur(2px);
    transform: translate(-50%, -50%) translateX(10px); /* Subtle rightward sweep */
  }
  100% {
    width: 110%; /* Settles into a stable beam */
    opacity: 0.65;
    filter: brightness(1) blur(1px);
    transform: translate(-50%, -50%) translateX(0); /* Returns to center */
  }
}
