/* ===== Mohammed Al Mulla — Premium Cinematic Director Portfolio ===== */

:root {
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --accent: #c9a227;
  --accent-warm: #d4af37;
  --accent-dim: rgba(201, 162, 39, 0.75);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.8);
  --text-dim: rgba(255, 255, 255, 0.5);
  --gradient-hero: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 35%, rgba(0,0,0,0.85) 100%);
  --gradient-vignette: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.5) 100%);
  --card-width: 320px;
  --card-height: 180px;
  --card-gap: 14px;
  --radius: 6px;
  --space: 4%;
  --ease-cinema: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== Film grain ===== */
.film-grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ===== Letterbox ===== */
.letterbox {
  position: fixed;
  left: 0;
  right: 0;
  height: 4vh;
  min-height: 20px;
  max-height: 40px;
  background: #000;
  z-index: 50;
  pointer-events: none;
}
.letterbox-top { top: 0; }
.letterbox-bottom { bottom: 0; }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--space);
  transition: background 0.35s ease;
}

.nav.scrolled {
  background: linear-gradient(180deg, rgba(0,0,0,0.92) 0%, transparent 100%);
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  display: none;
}
.logo-link .logo-img[style*="none"] + .logo-text,
.logo-link .logo-text:only-child {
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent-warm);
}

.nav-links a.nav-current {
  color: var(--accent-warm);
}

.nav-fade {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(180deg, transparent, var(--bg-dark));
  pointer-events: none;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-reel-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78vh;
  min-height: 100vh;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
  background: #000;
  opacity: 0;
  transition: opacity 1.25s var(--ease-soft);
}

.hero-iframe.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-iframe:not(.is-active) {
  z-index: 0;
}

.hero-reel-indicators:empty,
.hero-reel-indicators.is-single {
  display: none;
}

.hero-reel-indicators {
  position: absolute;
  bottom: clamp(6rem, 14vh, 10rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.5rem;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.hero:hover .hero-reel-indicators {
  opacity: 1;
}

.hero-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background 0.35s var(--ease-soft), transform 0.35s var(--ease-soft);
}

.hero-indicator.is-active {
  background: var(--accent-warm);
  transform: scale(1.25);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--gradient-vignette);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem var(--space);
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 0.98;
  margin-bottom: 0.4rem;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
  color: var(--text);
}

.hero-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-statement {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}

.btn-primary:hover {
  background: var(--accent-warm);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
  border-color: var(--accent-dim);
  color: var(--accent-warm);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--accent-warm);
}

/* ===== Sections ===== */
.section {
  padding: 4rem 0 5rem;
  position: relative;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  padding: 0 var(--space) 0 calc(var(--space) + 0.75rem);
  margin-bottom: 1.25rem;
  color: var(--text);
  border-left: 3px solid var(--accent);
}

/* ===== About ===== */
.section-about {
  padding: 6rem var(--space);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-portrait-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 420px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 24px 64px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.about-portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.about-text {
  min-width: 0;
}

.about-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.about-bio {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.about-connect {
  margin: 2.25rem 0 2rem;
}

.about-connect-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-left: calc(1rem + 3px);
  border-left: 3px solid var(--accent);
  font-weight: 400;
  opacity: 0.9;
}

.about-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
}

.about-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 0.2rem 0;
  transition: color 0.45s var(--ease-soft),
              transform 0.4s var(--ease-cinema);
}

.about-social-link:hover {
  color: var(--accent-warm);
  transform: translateY(-1px);
}

.about-social-link:focus-visible {
  outline: 1px solid var(--accent-dim);
  outline-offset: 3px;
}

.about-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.45s var(--ease-soft),
              border-color 0.45s var(--ease-soft),
              box-shadow 0.45s var(--ease-soft),
              transform 0.4s var(--ease-cinema);
}

.about-social-link:hover .about-social-icon {
  background: rgba(201, 162, 39, 0.08);
  border-color: rgba(201, 162, 39, 0.25);
  box-shadow: 0 0 24px rgba(201, 162, 39, 0.08);
  transform: scale(1.03);
}

.about-social-icon svg {
  width: 18px;
  height: 18px;
  opacity: 0.85;
  transition: opacity 0.4s var(--ease-soft);
}

.about-social-link:hover .about-social-icon svg {
  opacity: 1;
}

.about-social-label {
  opacity: 0.88;
  transition: opacity 0.4s var(--ease-soft);
}

.about-social-link:hover .about-social-label {
  opacity: 1;
}

.about-contact {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.about-contact a {
  color: var(--accent-warm);
  text-decoration: none;
}

.about-contact a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .section-about {
    padding: 4rem var(--space);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-portrait-wrap {
    max-width: 100%;
    justify-self: center;
  }
}

/* ===== Row scroll (Commercials) ===== */
.row-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem 0 1rem var(--space);
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.row-scroll::-webkit-scrollbar {
  display: none;
}

.row-inner {
  display: flex;
  gap: var(--card-gap);
  width: max-content;
  padding-right: var(--space);
}

/* Homepage Commercials — curated director showcase */
.section-commercials .section-title {
  margin-bottom: 1.5rem;
}

.section-commercials .row-scroll {
  padding: 1rem 0 1.5rem var(--space);
}

.section-commercials .row-inner {
  gap: 1.5rem;
  padding-right: calc(var(--space) + 2rem);
}

.section-commercials .video-card {
  width: 400px;
}

.section-commercials .video-card-poster {
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.section-commercials .video-card:hover .video-card-poster {
  box-shadow: 0 16px 56px rgba(0,0,0,0.6), 0 0 0 1px rgba(201, 162, 39, 0.2);
}

.section-commercials .video-card-poster img {
  transition: transform 0.7s var(--ease-cinema);
}

.section-commercials .video-card:hover .video-card-poster img,
.section-commercials .video-card.is-previewing .video-card-poster img {
  transform: scale(1.06);
}

.section-commercials .video-card-title-overlay {
  font-size: 1rem;
  padding: 1.25rem;
}

.section-commercials .section-cta {
  padding: 2rem var(--space) 0;
}

.section-commercials .section-cta .btn {
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
}

.row-inner.row-loading {
  min-height: 200px;
  align-items: center;
}

.row-inner.row-loading::after {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  border: 2px solid var(--accent-dim);
  border-top-color: transparent;
  border-radius: 50%;
  animation: row-spin 0.8s linear infinite;
}

@keyframes row-spin {
  to { transform: rotate(360deg); }
}

.row-error {
  color: var(--text-dim);
  font-size: 0.95rem;
  padding: 1.5rem var(--space);
}

.section-cta {
  padding: 1.5rem var(--space) 0;
  text-align: center;
}

.section-cta .btn {
  letter-spacing: 0.12em;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.35);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.section-cta .btn:hover {
  border-color: var(--accent-dim);
  color: var(--accent-warm);
}

/* ===== Video cards (Commercials) ===== */
.video-card {
  flex-shrink: 0;
  width: var(--card-width);
  cursor: pointer;
  transition: transform 0.6s var(--ease-cinema), z-index 0.3s;
  position: relative;
}

.video-card:hover {
  transform: scale(1.05);
  z-index: 10;
}

.video-card-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.45);
  transition: box-shadow 0.5s var(--ease-soft);
}

.video-card:hover .video-card-poster {
  box-shadow: 0 12px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(201, 162, 39, 0.15);
}

.video-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-cinema);
}

.video-card:hover .video-card-poster img {
  transform: scale(1.06);
}

/* Netflix-style video preview (lazy-loaded Vimeo overlay) */
.video-card-preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s var(--ease-soft);
  overflow: hidden;
}

.video-card-preview iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.video-card.is-previewing .video-card-preview {
  opacity: 1;
}

.video-card.is-previewing .video-card-poster img {
  transform: scale(1.06);
}

.video-card.is-previewing .video-card-play {
  opacity: 0;
}

.video-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.3) 45%,
    rgba(0,0,0,0.85) 100%
  );
  opacity: 0;
  transition: opacity 0.5s var(--ease-soft);
}

.video-card:hover .video-card-overlay {
  opacity: 1;
}

.video-card-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 1.25rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: white;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-soft) 0.05s,
              transform 0.5s var(--ease-cinema) 0.05s,
              letter-spacing 0.4s var(--ease-soft);
}

.video-card:hover .video-card-title-overlay {
  opacity: 1;
  transform: translateY(0);
  letter-spacing: 0.04em;
}

.video-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  transform: translate(-50%, -50%) scale(0.9);
  width: 64px;
  height: 64px;
  background: rgba(201, 162, 39, 0.92);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s var(--ease-soft), transform 0.45s var(--ease-cinema);
}

.video-card-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border: 12px solid transparent;
  border-left: 20px solid #0a0a0a;
  margin-left: 4px;
}

.video-card:hover .video-card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}

.video-card h3 {
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.6rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.video-card:hover h3 {
  color: var(--text);
}

/* ===== Films featured ===== */
.section-films .section-title {
  margin-bottom: 1.5rem;
}

.films-featured {
  padding: 0 var(--space);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.film-featured-card {
  flex: 1 1 100%;
  max-width: 900px;
  margin: 0 auto;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s;
}

.film-featured-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(201, 162, 39, 0.2);
}

.film-featured-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.film-featured-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.film-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.9) 100%);
  opacity: 0;
  transition: opacity 0.35s;
}

.film-featured-card:hover .film-featured-overlay {
  opacity: 1;
}

.film-featured-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(201, 162, 39, 0.9);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.35s, transform 0.35s;
}

.film-featured-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border: 14px solid transparent;
  border-left: 24px solid #0a0a0a;
  margin-left: 4px;
}

.film-featured-card:hover .film-featured-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

.film-featured-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.25rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: white;
  background: linear-gradient(transparent, rgba(0,0,0,0.92));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s, transform 0.35s;
}

.film-featured-card:hover .film-featured-title {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Commercials Page ===== */
.page-header {
  padding: 8rem var(--space) 4rem;
  max-width: 800px;
}

.back-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent-warm);
}

.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--text);
}

.page-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
}

.commercials-page {
  padding: 0 var(--space) 5rem;
}

.commercials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.commercials-grid.commercials-loading {
  min-height: 280px;
  align-items: center;
  justify-content: center;
}

.commercials-loading-msg,
.commercials-fallback-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.95rem;
  padding: 2rem;
}

.commercial-card {
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.6s var(--ease-cinema), box-shadow 0.5s var(--ease-soft);
}

.commercial-card:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(201, 162, 39, 0.15);
}

.commercial-card-poster {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.commercial-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-cinema);
}

.commercial-card:hover .commercial-card-poster img,
.commercial-card.is-previewing .commercial-card-poster img {
  transform: scale(1.06);
}

/* Netflix-style video preview (lazy-loaded Vimeo overlay) */
.commercial-card-preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s var(--ease-soft);
  overflow: hidden;
}

.commercial-card-preview iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.commercial-card.is-previewing .commercial-card-preview {
  opacity: 1;
}

.commercial-card.is-previewing .commercial-card-play {
  opacity: 0;
}

.commercial-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.3) 45%,
    rgba(0,0,0,0.85) 100%
  );
  opacity: 0;
  transition: opacity 0.5s var(--ease-soft);
}

.commercial-card:hover .commercial-card-overlay {
  opacity: 1;
}

.commercial-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  transform: translate(-50%, -50%) scale(0.9);
  width: 64px;
  height: 64px;
  background: rgba(201, 162, 39, 0.9);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s var(--ease-soft), transform 0.45s var(--ease-cinema);
}

.commercial-card-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border: 12px solid transparent;
  border-left: 20px solid #0a0a0a;
  margin-left: 4px;
}

.commercial-card:hover .commercial-card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}

.commercial-card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 1.25rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: white;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-soft) 0.05s,
              transform 0.5s var(--ease-cinema) 0.05s,
              letter-spacing 0.4s var(--ease-soft);
}

.commercial-card:hover .commercial-card-title {
  opacity: 1;
  transform: translateY(0);
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .page-header {
    padding: 6rem var(--space) 3rem;
  }

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

/* ===== Contact ===== */
.section-contact {
  padding-bottom: 4rem;
}

.contact-inner {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 var(--space);
  text-align: center;
}

.contact-inner .section-title {
  border-left: none;
  text-align: center;
  padding: 0;
  margin-bottom: 1.5rem;
}

.contact-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.contact-role {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.contact-email {
  display: inline-block;
  font-size: 1.1rem;
  color: var(--accent-warm);
  text-decoration: none;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.contact-email:hover {
  text-decoration: underline;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.5;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.96);
  cursor: pointer;
}

.modal-content {
  position: relative;
  z-index: 2;
  width: 92vw;
  max-width: 1200px;
  aspect-ratio: 16/9;
}

.modal-video-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.modal-video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-close {
  position: absolute;
  top: -52px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  line-height: 1;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.modal-close:hover {
  opacity: 1;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 2.5rem var(--space);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: var(--text-muted);
}

.footer-logo .logo-img {
  height: 28px;
}

.footer-logo .logo-text {
  display: none;
}

.footer-logo .logo-img[style*="display: none"] + .logo-text { display: inline; }

.footer p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .video-card {
    width: 280px;
  }

  .section-commercials .video-card {
    width: 320px;
  }

  .section-commercials .row-inner {
    gap: 1rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .hero-tagline {
    letter-spacing: 0.12em;
  }

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

  .btn {
    width: 100%;
    max-width: 260px;
  }

}

@media (max-width: 480px) {
  .video-card {
    width: 260px;
  }

  .section-commercials .video-card {
    width: 280px;
  }

  .film-featured-title {
    font-size: 1.25rem;
  }
}
/* Mobile Fix */

@media (max-width: 768px) {

  .hero-title {
  font-size: 42px;
  line-height: 1.2;
  }
  
  .hero-subtitle {
  font-size: 14px;
  padding: 0 20px;
  }
  
  .hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  }
  
  .hero-buttons a {
  width: 80%;
  text-align: center;
  }
  
  .hero-section {
  padding-top: 80px;
  padding-bottom: 80px;
  }
  
  }