/* ═══════════════════════════════════════════════════
   YKA, PORTFOLIO SITE
   style.css
═══════════════════════════════════════════════════ */

/* === DESIGN TOKENS === */
:root {
  --black:       #0a0a0a;
  --white:       #f5f2eb;
  --gold:        #c9a84c;
  --gray-dark:   #1a1a1a;
  --gray-mid:    #2a2a2a;
  --gray-text:   #888888;
  --gray-border: #222222;
  --font-head:   'Bebas Neue', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --font-hand:   'Caveat', 'Segoe Script', cursive;
}

/* === YKA HANDWRITTEN SIGNATURE ===
   Personal mark, handwritten, off-axis, underlined with a pen-stroke SVG.
   Used sparingly: after the contact headline and in the director's note. */
.yka-signature {
  display: inline-block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: #f0e9d8;
  line-height: 1;
  letter-spacing: 0.015em;
  position: relative;
}
.yka-signature.sig-lg { font-size: 50px; }
.yka-signature.sig-md { font-size: 40px; }
.yka-signature.sig-sm { font-size: 30px; }
.yka-signature .sig-gold { color: var(--gold); }
@media (max-width: 768px) {
  .yka-signature.sig-lg { font-size: 38px; }
  .yka-signature.sig-md { font-size: 32px; }
}

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

html {
  font-size: 16px;
  overscroll-behavior-y: none;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

/* === LENIS SMOOTH SCROLL === */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 60px;
  position: relative;
}

/* Global film-grain texture, kept as a fixed overlay for atmosphere,
   but with touch-action:none AND mix-blend-mode removed so it no longer
   interferes with scroll / compositing on mobile Safari. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.022;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  background-repeat: repeat;
}

@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === UTILITY === */
.gold { color: var(--gold); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === SECTION LABEL === */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.label-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* === SECTION HEADLINE === */
.section-headline {
  font-family: var(--font-head);
  font-size: 72px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 40px;
  letter-spacing: 0.01em;
}

/* === SECTION SUB === */
.section-sub {
  font-size: 15px;
  color: #666666;
  line-height: 1.75;
  margin-bottom: 48px;
  max-width: 580px;
}

/* === BODY TEXT === */
.body-text {
  font-size: 16px;
  color: #999999;
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 580px;
}

/* === BUTTONS === */
.btn-gold {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 14px 36px;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s;
}

.btn-gold:hover { background: #dbb855; }
.btn-gold:active { transform: scale(0.97); }

.btn-outline-dim {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid #555555;
  padding: 14px 36px;
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.btn-outline-dim:hover { background: rgba(255,255,255,0.05); border-color: #888; }
.btn-outline-dim:active { transform: scale(0.97); }

.btn-outline-gold {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 14px 32px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-outline-gold:hover { background: var(--gold); color: var(--black); }
.btn-outline-gold:active { transform: scale(0.97); }


/* ════════════════════════════════
   GRAIN TEXTURE
════════════════════════════════ */
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  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");
  background-size: 200px 200px;
  background-repeat: repeat;
}

/* ════════════════════════════════
   NAVIGATION
════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: #151515;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 28px;
  color: var(--white);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  opacity: 0.65;
  transition: opacity 0.2s, color 0.2s;
}

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

.nav-links a:hover { opacity: 1; color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 10px 22px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.nav-cta:hover { background: var(--gold); color: var(--black); }
.nav-cta:active { transform: scale(0.97); }

.nav-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: 4px;
}

.nav-social a {
  color: #555;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px; height: 1px;
  background: var(--white);
  transition: all 0.3s;
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-drawer.open { opacity: 1; pointer-events: all; }

.nav-drawer ul {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}

.drawer-link {
  font-family: var(--font-head);
  font-size: 52px;
  color: var(--white);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.drawer-link:hover { color: var(--gold); }


/* ════════════════════════════════
   SECTION 1, HERO
════════════════════════════════ */
#hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 100px 48px 80px;
  overflow: hidden;
}

/* Hero video background */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  filter: grayscale(30%) contrast(1.05) brightness(0.9);
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-video.hero-video-active {
  opacity: 1;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.65) 55%,
    rgba(0,0,0,0.45) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Push grid and grain above overlay */
.hero-grid,
.hero-grain {
  z-index: 2;
}

.hero-content,
.hero-stats {
  z-index: 3;
}

/* Mobile: video plays and loops; poster fallback if video fails */
@media (max-width: 768px) {
  #hero {
    background-image: url("images/showreel-poster.webp");
    background-size: cover;
    background-position: center center;
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(72px, 10vw, 140px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.h1-solid { color: var(--white); }

.h1-outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--white);
}

/* Secondary role line */
.hero-secondary {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: rgba(245,242,235,0.3);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: rgba(245,242,235,0.35);
  letter-spacing: 0.04em;
  margin-bottom: 36px;
  max-width: 520px;
}

/* Pills hidden, role hierarchy handled by hero-secondary */
.hero-pills { display: none; }

.pill {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid #333333;
  padding: 10px 24px;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
  cursor: pointer;
}

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

.pill-sep {
  color: #333;
  font-size: 14px;
  line-height: 1;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  position: absolute;
  bottom: 60px; right: 0;
  display: flex;
  gap: 52px;
  z-index: 2;
  padding-right: 48px;
}

.stat { text-align: right; }

.stat-num {
  font-family: var(--font-head);
  font-size: 76px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.02em;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: #666666;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.4;
  margin-top: 6px;
}


/* ════════════════════════════════
   SHOWREEL
════════════════════════════════ */
#showreel {
  padding: 100px 0;
  text-align: center;
}

.showreel-headline {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.showreel-video-wrap {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
}

.showreel-video-wrap video {
  width: 100%;
  height: auto;
  display: block;
}

.showreel-coming-soon {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
}

.showreel-coming-soon span {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 56px);
  color: var(--gold);
  letter-spacing: 0.15em;
}


/* ════════════════════════════════
   SECTION 2, ABOUT
════════════════════════════════ */
#about { padding: 120px 0; }

/* Keep content above ghost numbers */
.about-grid,
.work-grid-3,
.work-grid-2,
.film-grid,
.illicit-wrap,
.clients-wrap,
.clients-grid,
.contact-btns,
.section-label,
.section-headline,
.section-sub,
.body-text,
.about-photo,
.ach-cards,
.film-cta,
.contact-inner > * {
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 42fr 58fr;
  gap: 72px;
  align-items: start;
}

.about-left {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-h2-top {
  font-family: var(--font-head);
  font-size: 72px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: 0.01em;
}

.about-h2-bottom {
  font-family: var(--font-head);
  font-size: 72px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: 0.01em;
  margin-bottom: 36px;
}

.about-photo {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: contrast(1.04) brightness(1.02);
  box-shadow: inset 0 0 80px rgba(0,0,0,0.5);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.about-photo:hover img { transform: scale(1.02); }

/* Vignette */
.about-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 70%, transparent 50%, rgba(10,10,10,0.5) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Film grain */
.photo-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
  background-size: 300px 300px;
}

/* Stage sketch overlay */
.photo-sketch {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  height: 60%;
  z-index: 4;
  pointer-events: none;
  opacity: 0.22;
}

.ach-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ach-card {
  background: #0f0f0f;
  border: 1px solid #1e1e1e;
  border-left: 2px solid var(--gold);
  padding: 24px 28px;
  transition: border-color 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.ach-card:hover { border-color: var(--gold); border-left-color: var(--gold); }

.ach-text strong {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 6px;
}

.ach-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  color: #555555;
  line-height: 1.6;
}


/* ════════════════════════════════
   SECTION 3, EVENTS
════════════════════════════════ */
#events { padding: 120px 0; }

.work-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

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

.work-grid-2 .work-card:nth-child(n+3) { display: none; }

.work-card {
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
  display: flex;
  flex-direction: column;
  transition: border-color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
}

.work-card:hover {
  border-color: rgba(201,168,76,0.35);
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 0 0 1px rgba(201,168,76,0.08);
}

.work-thumb {
  display: block;
  height: 260px;
  background-size: cover;
  background-position: center;
  background-color: #161616;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.work-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,10,0.45);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.work-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.work-role {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.work-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.work-block { margin-bottom: 12px; }

.block-label {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
  margin-top: 14px;
}

.work-block p {
  font-family: var(--font-body);
  font-size: 13px;
  color: #777777;
  line-height: 1.6;
}

.work-watch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  margin-top: auto;
  padding-top: 18px;
  transition: gap 0.2s;
}

.work-watch:hover { gap: 12px; }

.arrow { transition: transform 0.2s; }
.work-watch:hover .arrow { transform: translateX(4px); }


/* ════════════════════════════════
   SECTION 4, CONTENT & FILMS
════════════════════════════════ */
#content-films { padding: 120px 0 80px; }

#content-films .section-headline {
  margin-bottom: 12px;
}

#content-films .section-sub {
  margin-bottom: 28px;
}

.film-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: transparent;
  margin-bottom: 0;
}

.film-card {
  display: flex;
  flex-direction: column;
  background: #0d0d0d;
  border: none;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.film-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.film-thumb {
  height: 210px;
  background-color: #161616;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.film-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,10,0.4);
  opacity: 0;
  transition: opacity 0.3s;
}

.film-card:hover .film-play { opacity: 1; }

.film-info {
  padding: 16px 20px;
  border-top: 1px solid #1a1a1a;
}

.film-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #cccccc;
  margin-bottom: 4px;
  line-height: 1.4;
}

.film-url {
  font-family: var(--font-body);
  font-size: 11px;
  color: #444444;
}

/* === ILLICIT FLIP CARD === */
.illicit-wrap {
  margin-top: 100px;
  margin-bottom: 48px;
  perspective: 1200px;
}

.illicit-card {
  width: 100%;
  height: 440px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  cursor: pointer;
}

.illicit-card.flipped { transform: rotateY(180deg); }

.illicit-front,
.illicit-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.illicit-front {
  background: #000;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border: 1px solid #1a1a1a;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, filter 0.3s;
  overflow: hidden;
}

.illicit-card:hover .illicit-front {
  filter: brightness(1.05);
}

/* Cinematic grade: darken top + strong bottom gradient so title reads */
.illicit-poster-grade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(8,8,8,0.55) 0%,
      rgba(8,8,8,0.15) 28%,
      rgba(8,8,8,0.35) 55%,
      rgba(8,8,8,0.85) 82%,
      rgba(8,8,8,0.98) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Subtle film grain overlay */
.illicit-poster-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
}

/* Top-left badge, styled to match the Click-to-Read hint */
.illicit-rating {
  position: absolute;
  top: 16px; left: 20px;
  z-index: 3;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 12px;
  background: rgba(10,10,10,0.75);
  border: 1px solid rgba(201,168,76,0.4);
  backdrop-filter: blur(6px);
}

/* Poster title block, bottom-anchored */
.illicit-poster {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 0 40px 54px;
  text-align: center;
  color: #f3eddd;
}

/* Credit block centered at bottom, overlaid on the poster */
.illicit-poster-credit {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  padding: 10px 22px;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(245,240,225,0.18);
  border-bottom: 1px solid rgba(245,240,225,0.18);
  pointer-events: none;
}
/* Standalone Arabic title, film-poster size, positioned above the credit block */
.illicit-poster-arabic-title {
  position: absolute;
  left: 0; right: 0;
  bottom: 112px;
  z-index: 3;
  text-align: center;
  font-family: 'Reem Kufi', 'Tajawal', sans-serif;
  font-weight: 500;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: #f5f0e1;
  direction: rtl;
  text-shadow: 0 4px 28px rgba(0,0,0,0.75);
  pointer-events: none;
}
@media (max-width: 768px) {
  .illicit-poster-arabic-title {
    bottom: 160px;
    font-size: clamp(34px, 8vw, 56px);
  }
  .illicit-poster-credit {
    bottom: 24px;
    padding: 8px 16px;
    max-width: calc(100% - 40px);
  }
  .illicit-hint { display: none !important; }
}
.illicit-poster-credit .illicit-byline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: rgba(245,240,225,0.82);
  margin-bottom: 4px;
}
.illicit-poster-credit .illicit-status {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--gold);
}

.illicit-arabic-title {
  font-family: 'Reem Kufi', 'Tajawal', sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(245,240,225,0.88);
  margin-bottom: 6px;
  direction: rtl;
}

.illicit-english-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 10vw, 128px);
  line-height: 0.95;
  letter-spacing: 0.18em;
  margin: 0 0 14px;
  color: #f5f0e1;
  text-shadow: 0 4px 24px rgba(0,0,0,0.65);
  padding-left: 0.18em;
}

.illicit-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: rgba(245,240,225,0.82);
  max-width: 560px;
  margin: 0 auto 22px;
  line-height: 1.45;
}

.illicit-credit-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(245,240,225,0.22);
  max-width: 320px;
  margin: 0 auto;
}

.illicit-byline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: rgba(245,240,225,0.75);
}

.illicit-status {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.illicit-front::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(8,8,8,0.55) 0%,
    rgba(8,8,8,0.20) 34%,
    rgba(8,8,8,0.45) 68%,
    rgba(8,8,8,0.92) 100%);
  z-index: 1;
  pointer-events: none;
}

/* === BEYOND PERMITTED · centered poster front === */
.illicit-front-stack {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 28px 58px;
}
.illicit-feature-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,240,225,0.72);
}
.illicit-title-group {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.illicit-en-title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: clamp(30px, 5.2vw, 72px);
  line-height: 0.98;
  letter-spacing: 0.04em;
  color: #f3eddd;
  text-shadow: 0 6px 34px rgba(0,0,0,0.7);
  white-space: nowrap;
}
@media (max-width: 600px) {
  .illicit-en-title { white-space: normal; font-size: clamp(40px, 13vw, 64px); line-height: 1; }
}
.illicit-ar-title {
  font-family: 'Reem Kufi', 'Tajawal', sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: #f5f0e1;
  direction: rtl;
  text-shadow: 0 4px 24px rgba(0,0,0,0.65);
}
.illicit-front-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.illicit-front-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.illicit-hint {
  position: absolute;
  bottom: 16px; right: 20px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(10,10,10,0.75);
  border: 1px solid rgba(201,168,76,0.4);
  backdrop-filter: blur(6px);
  animation: illicit-pulse 2.4s ease-in-out infinite;
}
@keyframes illicit-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.35); }
  50%      { box-shadow: 0 0 0 6px rgba(201,168,76,0); }
}

.illicit-front:hover { border-color: #2a2a2a; }

.illicit-front-inner { text-align: center; }

.illicit-arabic {
  font-family: var(--font-body);
  font-size: 60px;
  line-height: 1.1;
  color: var(--gold);
  margin-bottom: 10px;
  direction: rtl;
  letter-spacing: 0.02em;
}

.illicit-title-en {
  font-family: var(--font-head);
  font-size: 64px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1;
}

.illicit-tag {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 14px;
  opacity: 0.85;
}

.illicit-back {
  background: #111111;
  border: 1px solid #1a1a1a;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
}

.illicit-back-inner {
  padding: 48px;
  max-width: 800px;
}

.illicit-back-title {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.illicit-back-tag {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.illicit-body {
  font-family: var(--font-body);
  font-size: 16px;
  color: #999999;
  line-height: 1.8;
  margin-bottom: 16px;
}

.illicit-credit {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--white);
  margin-top: 24px;
  margin-bottom: 12px;
}

.illicit-coming {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.film-cta { text-align: center; }


/* ════════════════════════════════
   SECTION 5, CLIENTS
════════════════════════════════ */
#clients { padding: 120px 0; }

/* Clients marquee */
.clients-marquee {
  overflow: hidden;
  position: relative;
  padding: 12px 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 0;
  animation: clientMarquee 50s linear infinite;
  width: max-content;
  will-change: transform;
}

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

@keyframes clientMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .clients-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.client-logo {
  max-height: 50px;
  max-width: 130px;
  width: auto;
  height: auto;
  margin: 0 32px;
  opacity: 0.5;
  transition: opacity 0.3s;
  filter: grayscale(100%) brightness(1.2);
  flex-shrink: 0;
  object-fit: contain;
}

.client-logo:hover {
  opacity: 0.85;
}

/* Composite logos (emblem + multi-line text) need more height to read at carousel scale */
.clients-marquee img[src$="hqws.png"],
.clients-marquee img[src$="dct-abu-dhabi.png"] {
  max-height: 68px;
}


/* ════════════════════════════════
   SECTION 6, CONTACT
════════════════════════════════ */
#contact { padding: 120px 0; }

.contact-inner { text-align: center; }

.contact-headline {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.0;
}

.contact-sub {
  text-align: center;
  margin: 24px auto 60px;
  max-width: 480px;
  color: #555555;
  font-size: 16px;
  line-height: 1.75;
}

.contact-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aaaaaa;
  border: 1px solid var(--gray-border);
  padding: 16px 28px;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}

.contact-btn:hover {
  border-color: var(--gold);
  color: var(--white);
}

.contact-btn:active { transform: scale(0.97); }

.contact-btn.is-copied {
  border-color: var(--gold);
  color: var(--gold);
}


/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
footer {
  padding: 48px 0;
  border-top: 1px solid #111111;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--white);
  letter-spacing: 0.04em;
}

.footer-copy-stack {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 12px;
  color: #444444;
}

.footer-vibe {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  color: #555555;
  letter-spacing: 0.04em;
}

.vibe-cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--gold);
  animation: vibe-blink 1.05s steps(2, start) infinite;
}

@keyframes vibe-blink {
  to { visibility: hidden; }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: 12px;
  color: #444444;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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


/* ════════════════════════════════
   SOCIAL BAR
════════════════════════════════ */
.social-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: #080808;
  border-top: 1px solid #111111;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.social-bar a {
  color: #555555;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

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

.social-bar a svg { display: block; }

/* Footer social icons */
.footer-social {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-social a {
  color: #444444;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

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

.footer-social a svg { display: block; }


/* ════════════════════════════════
   INTERLUDE 1, PHILOSOPHY
════════════════════════════════ */
.interlude-philosophy {
  padding: 80px 0;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
  background: #070707;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #111;
  position: relative;
  z-index: 1;
}

.philosophy-cell {
  background: #070707;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  transition: background 250ms ease, transform 250ms ease, box-shadow 250ms ease;
  cursor: default;
}

.philosophy-cell:hover {
  background: #0e0e0e;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* Make DIRECT cell slightly more prominent */
.philosophy-cell:nth-child(2) {
  background: #0a0a0a;
}
.philosophy-cell:nth-child(2) .phil-label {
  color: var(--gold);
}

.phil-symbol {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.philosophy-cell:hover .phil-symbol { opacity: 1; }

.phil-label {
  font-family: var(--font-head);
  font-size: 28px;
  color: var(--white);
  letter-spacing: 0.05em;
}

.phil-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: #555555;
  line-height: 1.7;
  max-width: 280px;
}

/* ════════════════════════════════
   INTERLUDE 2, DIRECTOR'S NOTE
════════════════════════════════ */
.interlude-note {
  padding: 100px 0;
  background: #060606;
  position: relative;
}

.note-line-top,
.note-line-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: #111;
}

.note-line-top { top: 0; }
.note-line-bottom { bottom: 0; }

.director-note-wrap {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.director-note {
  flex: 1;
  max-width: 680px;
}

.note-sketch {
  flex: 0 0 400px;
  width: 400px;
  opacity: 0.65;
  margin-top: 8px;
  transition: opacity 300ms ease;
  display: none;
}

.note-sketch:hover { opacity: 0.9; }

.note-sketch-img {
  flex: 0 0 400px;
  width: 400px;
  height: auto;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 300ms ease;
  mask-image: radial-gradient(ellipse 85% 85% at center, black 30%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at center, black 30%, transparent 72%);
}

.note-sketch-img:hover { opacity: 0.9; }

@media (max-width: 900px) {
  .note-sketch { display: none; }
  .director-note { max-width: 100%; }
  .director-note-wrap {
    flex-direction: column;
    gap: 32px;
  }
  .note-sketch-img {
    flex: unset;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

.note-scene {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.note-line {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  color: #2a2a2a;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.note-line-gold {
  color: var(--white);
}

.note-sig {
  margin-top: 48px;
  font-family: var(--font-body);
  font-size: 13px;
  color: #444;
  letter-spacing: 0.05em;
}

.note-sig strong {
  font-weight: 500;
  color: #888;
}

/* Achievement icon */

.ach-icon {
  flex-shrink: 0;
  padding-top: 2px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.ach-card:hover .ach-icon { opacity: 1; }

/* Film-frame corner brackets on work cards */
.work-card {
  position: relative;
}

.work-card::before,
.work-card::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}

.work-card::before {
  top: -1px; left: -1px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}

.work-card::after {
  bottom: -1px; right: -1px;
  border-bottom: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
}

.work-card:hover::before,
.work-card:hover::after { opacity: 1; }

/* === FEATURED WORK CARD === */
.work-grid-featured {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 20px;
  margin-bottom: 20px;
}

.work-card-featured .work-thumb {
  height: 380px;
}

.work-card-featured .work-title {
  font-size: 34px;
  line-height: 1.05;
}

@media (max-width: 768px) {
  .work-grid-featured { grid-template-columns: 1fr; }
  .work-card-featured .work-thumb { height: 260px; }
  .work-card-featured .work-title { font-size: 26px; }
}

/* === BUTTON HOVER GLOW === */
.btn-gold:hover {
  background: #dbb855;
  box-shadow: 0 0 24px rgba(201,168,76,0.25);
}

.btn-outline-dim:hover {
  background: rgba(255,255,255,0.04);
  border-color: #888;
  box-shadow: 0 0 16px rgba(255,255,255,0.04);
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 0 20px rgba(201,168,76,0.2);
}

/* === NOTE SKETCH DRAW-IN ANIMATION === */
@keyframes drawIn {
  from { opacity: 0; transform: translateX(20px) scale(0.97); }
  to   { opacity: 0.65; transform: translateX(0) scale(1); }
}

.note-sketch.visible {
  animation: drawIn 0.8s ease 0.3s forwards;
}


/* === WORK GRID FILLER === */
.work-card-filler {
  background: #080808;
  border: 1px solid #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  overflow: hidden;
  position: relative;
}

.work-card-filler svg {
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

/* === CONTACT HEADLINE BIGGER === */
.contact-headline {
  font-size: clamp(52px, 7vw, 80px) !important;
}

/* ════════════════════════════════
   GHOST SECTION NUMBERS
════════════════════════════════ */
#about,
#events,
#content-films,
#clients,
#contact {
  position: relative;
}

#about::before     { content: '01'; }
#events::before    { content: '02'; }
#content-films::before { content: '03'; }
#clients::before   { content: '04'; }
#contact::before   { content: '05'; }

#about::before,
#events::before,
#content-films::before,
#clients::before,
#contact::before {
  position: absolute;
  top: 60px;
  right: 24px;
  font-family: var(--font-head);
  font-size: clamp(120px, 14vw, 200px);
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px #1a1a1a;
  pointer-events: none;
  line-height: 1;
  z-index: 0;
  letter-spacing: -0.02em;
}


/* ════════════════════════════════
   PAGE LOAD ANIMATIONS
════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 32px, 0) scale(0.98); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.anim-1 { opacity: 0; animation: fadeUp 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0ms    both; }
.anim-2 { opacity: 0; animation: fadeUp 1.6s cubic-bezier(0.16, 1, 0.3, 1) 200ms  both; }
.anim-3 { opacity: 0; animation: fadeUp 1.6s cubic-bezier(0.16, 1, 0.3, 1) 400ms  both; }
.anim-4 { opacity: 0; animation: fadeUp 1.6s cubic-bezier(0.16, 1, 0.3, 1) 600ms  both; }
.anim-5 { opacity: 0; animation: fadeUp 1.6s cubic-bezier(0.16, 1, 0.3, 1) 780ms  both; }
.anim-6 { opacity: 0; animation: fadeUp 1.6s cubic-bezier(0.16, 1, 0.3, 1) 960ms  both; }
.anim-7 { opacity: 0; animation: fadeUp 1.7s cubic-bezier(0.16, 1, 0.3, 1) 1300ms both; }

.reveal {
  opacity: 0;
  transform: translate3d(0, 56px, 0) scale(0.98);
  transition:
    opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* === MOBILE SMOOTHNESS ===
   Phones: drop the per-frame backdrop blur on the scrolled nav (recomputing a
   20px blur every scroll frame stutters), and make reveals snappier with less
   travel so content settles quickly instead of drifting for 1.5s. */
@media (max-width: 768px) {
  #nav.scrolled {
    background: rgba(10,10,10,0.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .reveal {
    transform: translate3d(0, 28px, 0);
    transition:
      opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.visible { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .anim-1, .anim-2, .anim-3, .anim-4, .anim-5, .anim-6, .anim-7 {
    animation: none;
    opacity: 1;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* AI crawler / no-JS fallback, render all reveal + anim content visible */
html:not(.js) .reveal,
html:not(.js) .anim-1,
html:not(.js) .anim-2,
html:not(.js) .anim-3,
html:not(.js) .anim-4,
html:not(.js) .anim-5,
html:not(.js) .anim-6,
html:not(.js) .anim-7,
html:not(.js) .note-sketch {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}


/* ════════════════════════════════
   RESPONSIVE, 768px
════════════════════════════════ */
@media (max-width: 768px) {

  #nav { padding: 18px 24px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-social { display: none; }
  .hamburger { display: flex; }
  .nav-drawer { display: flex; }

  #hero {
    padding: 96px 20px 56px;
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
  }

  .hero-content { width: 100%; max-width: 100%; }
  .hero-content h1 { font-size: clamp(36px, 11vw, 72px); margin-bottom: 16px; max-width: 100%; overflow-wrap: break-word; }
  .hero-content h1 .h1-line { display: block; max-width: 100%; overflow-wrap: break-word; }
  .hero-sub { font-size: 15px; margin-bottom: 28px; max-width: 100%; }

  .hero-stats {
    position: static;
    flex-direction: row;
    justify-content: flex-start;
    gap: 28px;
    padding-right: 0;
    margin-top: 8px;
    flex-wrap: wrap;
    width: 100%;
  }

  .stat { text-align: left; }
  .stat-num { font-size: 40px; }
  .stat-label { font-size: 10px; }
  .pill-sep { display: none; }
  .hero-pills { gap: 8px; }

  .philosophy-grid { grid-template-columns: 1fr; }
  .philosophy-cell { padding: 36px 24px; }
  .note-line { font-size: clamp(28px, 8vw, 42px); }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-left { order: 1; }
  .about-right { order: 2; }
  .about-h2-top { font-size: clamp(34px, 10vw, 48px); }
  .about-h2-bottom { font-size: clamp(34px, 10vw, 48px); }
  .about-left { padding-top: 0; }

  .work-grid-3,
  .work-grid-2 { grid-template-columns: 1fr; }
  .work-grid-2 .work-card:nth-child(n+3) { display: flex; }

  .section-headline { font-size: clamp(36px, 11vw, 52px); margin-bottom: 40px; max-width: 100%; overflow-wrap: break-word; }
  .about-h2-top, .about-h2-bottom { max-width: 100%; overflow-wrap: break-word; }
  .stat-num { font-size: clamp(32px, 9vw, 40px); }

  .film-grid { grid-template-columns: 1fr; background: transparent; gap: 16px; }

  .illicit-card { height: 480px; }
  .illicit-front {
    background-size: cover;
    background-position: center 28%;
  }
  .illicit-poster { padding: 0 20px 32px; }
  .illicit-arabic-title { font-size: 22px; }
  .illicit-english-title { font-size: clamp(56px, 16vw, 88px); letter-spacing: 0.14em; }
  .illicit-tagline { font-size: 12.5px; margin-bottom: 16px; }
  .illicit-byline { font-size: 10px; letter-spacing: 0.22em; }
  .illicit-status { font-size: 9px; letter-spacing: 0.24em; }
  .illicit-back-inner { padding: 28px; }
  .illicit-back-title { font-size: 28px; }
  .illicit-body { font-size: 14px; }

  .clients-marquee { mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); }
  .clients-track { animation-duration: 35s; }
  .client-logo { max-height: 36px; max-width: 100px; height: auto; width: auto; margin: 0 20px; }
  .clients-marquee img[src$="hqws.png"],
  .clients-marquee img[src$="dct-abu-dhabi.png"] { max-height: 50px; }

  .contact-btns { flex-direction: column; align-items: center; }
  .contact-btn { width: 100%; max-width: 360px; justify-content: center; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-left { flex-direction: column; align-items: flex-start; gap: 6px; }

  .social-bar { gap: 20px; }
  .footer-social { gap: 14px; }

  .container { padding: 0 20px; }

  #about,
  #events,
  #content-films,
  #clients,
  #contact { padding: 80px 0; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: clamp(44px, 13vw, 64px); }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 36px; }
  .social-bar { gap: 16px; }
}

/* ═══ Project page, mobile safe-zone for BACK button vs hero title ═══ */
@media (max-width: 768px) {
  .project-back {
    top: 12px !important;
    left: 12px !important;
    padding: 8px 14px !important;
    font-size: 11px !important;
  }
  .project-hero-content {
    top: 80px !important;
    bottom: 32px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
  }
  .project-title {
    font-size: clamp(32px, 8vw, 44px) !important;
    line-height: 1.05 !important;
  }
}


/* ════════════════════════════════
   LANGUAGE TOGGLE (EN ↔ AR)
════════════════════════════════ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-inline: 6px;
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 50%;
  color: var(--gold);
  font-family: 'Tajawal', 'Reem Kufi', sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.lang-toggle:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.drawer-lang {
  font-family: 'Tajawal', 'Reem Kufi', sans-serif !important;
  color: var(--gold) !important;
}
@media (max-width: 768px) {
  .lang-toggle { display: none; }
}


/* ════════════════════════════════
   ARABIC / RTL VERSION (dir="rtl" lang="ar")
════════════════════════════════ */
html[lang="ar"],
html[dir="rtl"] {
  --font-head: 'Reem Kufi', 'Tajawal', sans-serif;
  --font-body: 'Tajawal', 'IBM Plex Sans Arabic', sans-serif;
}

[dir="rtl"] body {
  font-family: var(--font-body);
  line-height: 1.8;
}

/* Reset latin-leaning letter-spacing that reads ugly in Arabic */
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] .hero-content h1,
[dir="rtl"] .section-headline,
[dir="rtl"] .stat-num,
[dir="rtl"] .work-title,
[dir="rtl"] .about-h2-top,
[dir="rtl"] .about-h2-bottom,
[dir="rtl"] .note-line,
[dir="rtl"] .pill,
[dir="rtl"] .section-label span,
[dir="rtl"] .stat-label,
[dir="rtl"] .work-role,
[dir="rtl"] .block-label,
[dir="rtl"] .hero-secondary,
[dir="rtl"] .footer-copy,
[dir="rtl"] .nav-cta {
  letter-spacing: 0 !important;
}

/* Arabic needs smaller display sizes, glyphs carry more visual weight than Latin */
[dir="rtl"] .hero-content {
  max-width: 100%;
  text-align: right;
}
[dir="rtl"] .hero-content h1 {
  font-weight: 700;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 1.15;
  text-align: right;
}
[dir="rtl"] .hero-sub {
  font-size: 15px;
  max-width: 520px;
  line-height: 1.8;
}
[dir="rtl"] .section-headline {
  font-weight: 600;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.2;
}
[dir="rtl"] .section-sub {
  line-height: 1.8;
}
/* Numbers stay in Bebas Neue across both languages, 100+, 12+, 2× are pure Latin */
[dir="rtl"] .stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 76px;
  letter-spacing: 0.02em;
}

/* Brand marks (YKA) stay in Bebas Neue regardless of lang, it's a Latin wordmark */
[dir="rtl"] .nav-logo,
[dir="rtl"] .footer-logo {
  font-family: 'Bebas Neue', sans-serif;
}
[dir="rtl"] .about-h2-top,
[dir="rtl"] .about-h2-bottom {
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.2;
}
[dir="rtl"] .work-title {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
}
[dir="rtl"] .project-title,
[dir="rtl"] .note-line {
  font-weight: 600;
}

/* Arabic outlined stroke needs to be thicker or it disappears on large glyphs */
[dir="rtl"] .h1-outline {
  -webkit-text-stroke: 1.5px var(--white);
}

/* Gold accent dot, BIDI isolate so it sits cleanly at the end of the line,
   and nudge it into the baseline instead of floating */
[dir="rtl"] .h1-line .gold,
[dir="rtl"] .section-headline .gold,
[dir="rtl"] .showreel-headline .gold {
  display: inline-block;
  unicode-bidi: isolate;
  margin-inline-start: 2px;
  vertical-align: baseline;
}

/* Container padding: keep hero content from crowding edges */
[dir="rtl"] #hero {
  padding: 100px 48px 80px;
}

/* Hero sub + CTAs align right in RTL */
[dir="rtl"] .hero-ctas {
  justify-content: flex-start;
}

/* Prevent long Arabic section-sub lines from breaking a single word onto its own line */
[dir="rtl"] .section-sub {
  text-wrap: pretty;
  max-width: 720px;
}

/* Directional icons flip */
[dir="rtl"] .arrow,
[dir="rtl"] .work-watch .arrow {
  display: inline-block;
  transform: scaleX(-1);
}

/* Section label line flips to the correct side naturally via flex, but ensure gap */
[dir="rtl"] .section-label {
  direction: rtl;
}

/* Hero stats stay flex, but text aligns right */
[dir="rtl"] .hero-stats {
  right: auto;
  left: 0;
  padding-right: 0;
  padding-left: 48px;
}
[dir="rtl"] .stat {
  text-align: right;
}

/* Signature stays LTR (it's a name stylised as a Latin signature) */
[dir="rtl"] .yka-signature {
  direction: ltr;
}

/* Footer copy direction */
[dir="rtl"] .footer-inner {
  direction: rtl;
}

/* Mobile hero, stats sit below headline, aligned right */
@media (max-width: 768px) {
  [dir="rtl"] .hero-stats {
    padding-left: 0;
    padding-right: 0;
    justify-content: flex-start;
  }
  [dir="rtl"] #hero {
    align-items: flex-end;
    text-align: right;
  }
  [dir="rtl"] .hero-content { text-align: right; }
}

/* Clients marquee should flow RTL (right-to-left) */
[dir="rtl"] .clients-track {
  animation-direction: reverse;
}

/* Buttons keep LTR feel but Arabic centers cleanly */
[dir="rtl"] .btn-gold,
[dir="rtl"] .btn-outline-dim,
[dir="rtl"] .btn-outline-gold,
[dir="rtl"] .contact-btn {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0;
}

/* Hide unrecoverable assets (sketch + 3 client logos). Remove when user supplies files. */
.clients-marquee img[src$="cisco.png"],
.clients-marquee img[src$="nakheel-mall.png"],
.clients-marquee img[src$="one-development.png"] {
  display: none !important;
}
