/* ============================================
   WISE NARRATORS — V3 CINEMA
   "The work is the spectacle"
   Features: intro animation, horizontal film-strip portfolio,
   hover reveal, fullscreen video, footer reveal, cinematic transitions
   ============================================ */

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

:root {
  /* Warm dark palette — less harsh than pure black */
  --bg-primary: #0c0c0c;
  --bg-secondary: #141414;
  --bg-tertiary: #1c1c1c;

  /* Text */
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #555555;

  /* Brand — from logo, never guessed */
  --accent: #663399;
  --accent-hover: #7b3fa0;
  --accent-glow: rgba(102, 51, 153, 0.3);
  --accent-gold: #DAA520;
  --accent-gold-hover: #c49b16;
  --accent-gold-glow: rgba(218, 165, 32, 0.25);

  /* Borders */
  --border: #2a2a2a;
  --border-light: #333333;

  /* Typography */
  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px;
  --container-max: 1200px;
  --container-wide: 1400px;

  /* Animation */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.3s;
  --duration: 0.6s;
  --duration-slow: 1s;
  --duration-slower: 1.5s;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* --- FOCUS STYLES (Accessibility) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.film-strip-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- UTILITY --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.hero .container {
  max-width: var(--container-wide);
  margin-left: 0;
  padding-left: 60px;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition: all var(--duration-fast) var(--ease-out);
}

.btn-primary {
  background: var(--accent);
  color: var(--text-primary);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.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; }

/* ============================================
   INTRO ANIMATION
   ============================================ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity var(--duration-slow) var(--ease-out), visibility var(--duration-slow) var(--ease-out);
}

.intro.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-logo {
  width: 180px;
  height: 180px;
  margin-bottom: 40px;
  opacity: 0;
  transform: scale(0.8);
  animation: introLogoReveal 1.2s var(--ease-out) 0.3s forwards;
}

.intro-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.intro-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0;
  animation: introTextReveal 0.8s var(--ease-out) 1.2s forwards;
}

.intro-subtitle {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
  opacity: 0;
  animation: introTextReveal 0.8s var(--ease-out) 1.5s forwards;
}

@keyframes introLogoReveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes introTextReveal {
  to {
    opacity: 1;
  }
}

@keyframes drawCrown {
  to { stroke-dashoffset: 0; }
}

/* ============================================
   PAGE TRANSITION (Cinematic)
   ============================================ */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-primary);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

.page-transition.entering {
  animation: transitionIn 0.5s var(--ease-in-out) forwards;
}

.page-transition.leaving {
  animation: transitionOut 0.5s var(--ease-in-out) forwards;
}

@keyframes transitionIn {
  0% { transform: scaleY(0); transform-origin: bottom; }
  100% { transform: scaleY(1); transform-origin: bottom; }
}

@keyframes transitionOut {
  0% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: top; }
}

/* ============================================
   NAVIGATION — Minimal Chrome
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  padding: 20px 0;
  transition: background var(--duration-fast) var(--ease-out), padding var(--duration-fast) var(--ease-out);
}

.nav.scrolled {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.nav.scrolled::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-logo span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

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

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

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

.nav-cta.btn {
  padding: 10px 20px;
  font-size: 0.8rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 9999; /* Ensure toggle is above the menu background */
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-out);
}

/* Animate toggle to "X" */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


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

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    z-index: 9998; /* Ensure menu is above other content */
    transform: translateX(100%);
    transition: transform var(--duration) var(--ease-out);
  }

  .nav-links.open {
    transform: translateX(0);
  }
}

/* ============================================
   HERO — Freshman-style statement
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end; /* Vertically align content to the bottom */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-video-bg {
  width: 100%;
  height: 105%;
  object-fit: cover;
  object-position: center 5%;
  filter: brightness(0.35);
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12, 12, 12, 0.2) 0%,
    rgba(12, 12, 12, 0.15) 40%,
    rgba(12, 12, 12, 0.7) 80%,
    rgba(12, 12, 12, 1) 100%
  );
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  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)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto; /* Center the content block horizontally */
  padding-bottom: 25vh; /* Push content up from the bottom */
  text-align: center; /* Center the text inside */
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  opacity: 0;
  animation: heroTextReveal 1s var(--ease-out) 2.8s forwards;
}

.hero-description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 520px; /* Keep a max-width for readability on large screens */
  margin: 0 auto; /* Ensure it stays centered within the content block */
  line-height: 1.5;
  opacity: 0;
  animation: heroTextReveal 1s var(--ease-out) 3.2s forwards;
  font-weight: 500;
  letter-spacing: .8px;
}

@keyframes heroTextReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- MOBILE HERO STYLES --- */
@media (max-width: 768px) {
  .hero .container {
    padding-left: 24px; /* Reduce side padding on mobile */
    padding-right: 24px;
  }

  .hero-content {
    padding-bottom: 20vh; /* Reduce bottom padding on taller screens */
    max-width: 100%;
  }

  .hero-content h1 {
    letter-spacing: -1px; /* Reduce negative letter-spacing */
  }

  .hero-description {
    max-width: 90%; /* Allow description to use more width */
  }

  .hero-video-bg {
    position: absolute;
    left: 50%;
    width: auto; /* Let width be determined by aspect ratio */
    height: 100%; /* Fit video to screen height */
    transform: translateX(-50%); /* Horizontally center the video */
  }
}


/* ============================================
   HOME PAGE — Non-scrollable
   ============================================ */
.home-body {
  overflow: hidden;
  height: 100vh;
}

/* ============================================
   HOME FILMSTRIP — Overlays video at bottom
   ============================================ */
.home-filmstrip {
  position: fixed;
  bottom: 60px;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 0;
  background: transparent;
  border: none;
  overflow: visible;
}

@keyframes filmstripScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.home-filmstrip-track {
  display: flex;
  gap: 20px;
  animation: filmstripScroll 60s linear infinite;
  width: max-content;
  padding: 0 20px;
  will-change: transform;
}

.home-filmstrip-track:hover {
  animation-play-state: paused;
}

.home-filmstrip-item {
  flex: 0 0 168px;
  height: 82px;
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.home-filmstrip-item:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Film-roll dashed borders — fixed strips spanning full width */
.home-filmstrip::before,
.home-filmstrip::after {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  height: 2px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.4) 12px, transparent 12px);
  background-size: 20px 2px;
  background-repeat: repeat-x;
  z-index: 25;
  pointer-events: none;
}

.home-filmstrip::before {
  bottom: 150px;
}

.home-filmstrip::after {
  bottom: 52px;
}

.home-filmstrip-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--duration) var(--ease-out);
}

.home-filmstrip-item:hover .home-filmstrip-video {
  transform: scale(1.05);
}



.home-filmstrip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 12, 12, 0.9) 0%, transparent 50%);
  pointer-events: none;
}

.home-filmstrip-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  transform: translateY(4px);
  opacity: 0.85;
  transition: all var(--duration-fast) var(--ease-out);
}

.home-filmstrip-item:hover .home-filmstrip-info {
  transform: translateY(0);
  opacity: 1;
}

.home-filmstrip-tag {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 3px;
}

.home-filmstrip-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.home-filmstrip-client {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

@keyframes filmstripScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .home-filmstrip-item {
    flex: 0 0 132px;
    height: 80px;
  }

  .home-filmstrip {
    bottom: 60px;
  }

  .home-filmstrip::before {
    /* Calculation: filmstrip bottom (60px) + item height (80px) + padding (8px) = 148px */
    bottom: 148px;
  }

  .home-filmstrip::after {
    /* Calculation: filmstrip bottom (60px) - padding (8px) = 52px */
    bottom: 52px;
  }
}

/* ============================================
   PORTFOLIO MASONRY — A24 + Wanda style
   Hover-to-play video grid, no categories
   ============================================ */
.portfolio-masonry {
  padding: 0 0 60px;
  background: var(--bg-primary);
  min-height: 100vh;
}

.portfolio-masonry-header {
  padding: 120px 0 40px;
  text-align: center;
}

.portfolio-masonry-header .section-label {
  justify-content: center;
  display: block;
}

.portfolio-masonry-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
}

/* Masonry Grid */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.masonry-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/9;
}

.masonry-large {
  grid-row: span 2;
  aspect-ratio: auto;
}

.masonry-medium {
  aspect-ratio: 16/10;
}

.masonry-small {
  aspect-ratio: 16/9;
}

.masonry-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration) var(--ease-out), filter var(--duration) var(--ease-out);
}

.masonry-item:hover .masonry-video {
  transform: scale(1.03);
  filter: brightness(0.7);
}

.masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 12, 12, 0.6) 0%, transparent 50%);
  pointer-events: none;
  opacity: 1;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.masonry-item:hover .masonry-overlay {
  opacity: 0.3;
}

.masonry-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  transform: translateY(8px);
  opacity: 0;
  transition: all var(--duration-fast) var(--ease-out);
}

.masonry-item:hover .masonry-info {
  transform: translateY(0);
  opacity: 1;
}

.masonry-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.masonry-client {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

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

  .masonry-large {
    grid-row: span 1;
    aspect-ratio: 16/9;
  }
}

@media (max-width: 640px) {
  .masonry-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
}

/* ============================================
   PHILOSOPHY
   ============================================ */
.philosophy {
  padding: var(--section-padding) 0;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.philosophy-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

.philosophy-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1rem;
}

.philosophy-content .btn {
  margin-top: 16px;
}

.philosophy-visual {
  position: relative;
}

.philosophy-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
}

.philosophy-accent-box {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.3;
}

@media (max-width: 768px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .philosophy-accent-box {
    display: none;
  }
}

/* ============================================
   SERVICES STRIP
   ============================================ */
.services-strip {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.service-item {
  padding: 32px 0;
  border-right: 1px solid var(--border);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.service-item:last-child {
  border-right: none;
}

.service-item:hover {
  border-color: var(--accent);
}

.service-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

  .service-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 24px 16px;
  }

  .service-item:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .service-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

/* ============================================
   FOOTER — END CREDITS REVEAL
   ============================================ */
.footer {
  padding: 80px 0 40px;
  background: var(--bg-primary);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-gold), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.7;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 16px;
}

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

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ============================================
   FULLSCREEN VIDEO PLAYER
   ============================================ */
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration) var(--ease-out), visibility var(--duration) var(--ease-out);
}

.video-overlay.open {
  opacity: 1;
  visibility: visible;
}

.video-overlay-content {
  width: 90%;
  max-width: 1200px;
  transform: scale(0.95);
  transition: transform var(--duration) var(--ease-out);
}

.video-overlay.open .video-overlay-content {
  transform: scale(1);
}

.video-overlay-video {
  width: 100%;
  border-radius: 4px;
  display: block;
}

.video-overlay-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.25rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.video-overlay-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(90deg);
}

.video-overlay-info {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.video-overlay-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.video-overlay-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
  margin-top: 40px;
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ABOUT PAGE — Cinematic Sections
   ============================================ */

.about-hero {
  position: relative;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: visible;
}

.about-hero-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.about-hero-bg {
  position: absolute;
  inset: -50px;
  height: calc(100vh + 100px);
  background-image: url('../images/Screenshot-2026-03-21-at-08.49.18-1024x664.png');
  background-size: cover;
  background-position: center top;
  filter: brightness(1);
  transform: none;
}

.about-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.7) 0%, rgba(12, 12, 12, 0.4) 40%, rgba(12, 12, 12, 0.85) 100%);
  z-index: 1;
}

.about-hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  z-index: 2;
}

.about-hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  max-width: var(--container-wide);
  padding: 0 24px 18vh; /* Adjust bottom padding */
  margin: 0; /* Remove auto margin */
}

.about-hero-content {
  max-width: 800px;
  margin: 0; /* Remove auto margin */
  padding-top: 0;
}

.about-hero-content #whoWeAreLabel {
  opacity: 0;
  transform: translateY(0);
  line-height: 1;
}

.about-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-top: 0;
  padding-top: 0;
  opacity: 0;
  transform: translateY(30px);
}

.about-hero-content .hero-description {
  margin-top: 28px;
  max-width: 560px;
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  margin-left: 0; /* Remove auto margin */
}

.about-hero-stats {
  display: flex;
  gap: 56px;
  margin-top: 48px;
  opacity: 0;
  justify-content: flex-start; /* Align stats to the left */
  transform: translateY(20px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 1px rgba(255, 254, 254, 0.399);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
  
}

.about-hero-scroll {
  position: absolute;
  bottom: 4vh;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 1s ease 4s;
}

.client-carousel-full {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 40px 0;
  overflow: hidden;
  opacity: 0; /* Fades in with JS */
}

.client-carousel-track {
  display: flex;
  gap: 56px;
  animation: logoScrollH 30s linear infinite;
  white-space: nowrap;
}

.client-carousel-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  pointer-events: none;
  z-index: 3;
}

.client-carousel-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.client-carousel-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.philosophy-section {
  position: relative;
  padding: 140px 0;
  background: var(--bg-secondary);
  overflow: hidden;
}

.philosophy-section .hero-grain {
  opacity: 0.03;
}

.philosophy-grid-container {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}

.philosophy-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-top: 10px;
}

.philosophy-text p {
  color: var(--text-secondary);
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.8;
  max-width: 460px;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.values-list .section-label {
  justify-content: flex-start;
  margin-bottom: 6px;
}

.value-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.value-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.value-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.value-number {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  background: rgba(102, 51, 153, 0.15);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.value-number-gold {
  color: var(--accent-gold);
  background: rgba(218, 165, 32, 0.15);
}

.value-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.value-description {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  padding-left: 42px;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  margin: 64px auto;
  max-width: 400px;
  opacity: 0.4;
}

@media (max-width: 992px) {
  .philosophy-grid-container {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .values-list { margin-top: 32px; }
  .philosophy-text p { max-width: 100%; }
}

/* Ken Burns background */
@keyframes kenBurns {
  0% { transform: scale(1.08) translate(0, 0); }
  100% { transform: scale(1.15) translate(-1%, -1%); }
}

#whoWeAreBg {
  animation: kenBurns 20s ease-in-out infinite alternate;
}

/* Scroll dot animation */
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

/* About section reveal */
.about-section .section-label {
  animation: fadeSlideUp 0.8s var(--ease-out) forwards;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.about-hero-scroll.visible {
  opacity: 1;
  }
}

/* About page nav override — transparent on dark sections */
.nav-about-dark {
  background: transparent;
}

.nav-about-dark .nav-links a {
  color: rgba(255, 255, 255, 0.7);
}

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

/* Vertical logo carousel */
@keyframes logoScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Horizontal logo carousel */
@keyframes logoScrollH {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

#clientCarousel {
  transition: opacity 1.2s ease;
}

#clientCarousel.visible {
  opacity: 1 !important;
}

.client-logo-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 60px;
}

.client-logo-item img {
  max-width: 110px;
  max-height: 44px;
  object-fit: contain;
  filter: brightness(1.1) grayscale(0.3);
  opacity: 0.55;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.client-logo-item img:hover {
  opacity: 1;
  filter: brightness(1.2) grayscale(0);
}

/* Team member hover */
.team-member:hover img {
  transform: scale(1.08);
}

.team-member:hover > div:nth-child(2) {
  opacity: 1;
}

/* Team card hover */
.team-card {
  transition: all 0.4s ease;
}

.team-card:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 0 24px rgba(102, 51, 153, 0.15);
  transform: translateY(-4px);
}

.team-card:hover img {
  transform: scale(1.08);
}

.team-section {
  margin-top: 80px;
}

.team-section .section-label {
  margin-bottom: 16px;
}

.team-grid {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 48px;
}

.team-text-content {
  padding-top: 8px;
}

.team-text-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-top: 0;
}

.team-text-content p {
  color: var(--text-secondary);
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.8;
  max-width: 420px;
}

.team-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
}

.team-member-card {
  text-align: center;
}

.team-member-img-wrapper {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 14px;
  overflow: hidden;
  border: 3px solid var(--border-light);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.4s ease;
  position: relative;
}

.team-member-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-member-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
}

.team-member-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.team-member-role {
  color: var(--accent);
  font-size: 0.75rem;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .team-text-content p { max-width: 100%; }
  .team-photo-grid { grid-template-columns: 1fr 1fr; }
  .team-member-img-wrapper { width: 140px; height: 140px; }
}

.contact-section-about {
  padding: 100px 0 60px;
  background: var(--bg-secondary);
}

.contact-container-about {
  max-width: 600px;
  text-align: center;
}

.contact-logo-about {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: 0 auto 24px;
  display: block;
  opacity: 0.8;
}

.contact-section-about h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-top: 12px;
}

.contact-info-about {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.contact-email-link {
  color: var(--text-primary);
  font-size: 1.05rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.3s;
}

.contact-email-link:hover {
  color: var(--accent);
}

.contact-email-icon {
  color: var(--accent);
  font-size: 1.1rem;
}

.social-links-about {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-icon-about {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s;
}

.social-icon-about:hover {
  border-color: var(--accent);
  color: var(--accent);
}
