/* ============================================================
   main.css — Core styles, variables, layout, reset
   ============================================================ */

/* ─── Custom Fonts ──────────────────────────────────────────── */
@font-face {
  font-family: 'ArslanWessam';
  src: url('../assets/(A) Arslan Wessam B (A) Arslan Wessam B.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ─── CSS Custom Properties ────────────────────────────────── */
:root {
  --gold:         #C9A84C;
  --gold-light:   #E8C96A;
  --gold-dark:    #9B7A2E;
  --white:        #F5F5F0;
  --gray-light:   #9A9A9A;
  --gray-mid:     #4A4A4A;
  --gray-dark:    #1E1E1E;
  --black:        #0A0A0A;
  --bg-dark:      #0D0D0D;
  --bg-card:      rgba(255,255,255,0.04);
  --bg-glass:     rgba(255,255,255,0.06);
  --border-glass: rgba(255,255,255,0.08);
  --border-gold:  rgba(201,168,76,0.3);

  --font-ar:      'Cairo', 'Tajawal', sans-serif;
  --font-en:      'Bebas Neue', 'Clash Display', sans-serif;
  --font-body:    'Inter', 'DM Sans', sans-serif;

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);

  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    40px;

  --section-pad:  120px;
  --container:    1280px;
}

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

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

body {
  background: var(--bg-dark);
  background-image: url('film-background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

body.lang-ar {
  direction: rtl;
  font-family: var(--font-ar);
}

body.lang-en {
  direction: ltr;
}

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

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

ul, ol { list-style: none; }

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

input, textarea, select {
  font-family: inherit;
}

/* ─── Noise Overlay ─────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.06;
  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;
}

/* ─── Cinematic Engine ───────────────────────────────────────── */
.cinematic-engine {
  position: fixed;
  inset: -3%;
  pointer-events: none;
  z-index: 2;
  will-change: transform;
}

.ce-light-leaks {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at -8% 58%, rgba(190,85,15,0.32),   transparent 50%),
    radial-gradient(circle  at  6% 8%,  rgba(201,168,76,0.13),  transparent 30%),
    radial-gradient(circle  at 18% 95%, rgba(160,65,10,0.09),   transparent 26%),
    radial-gradient(ellipse at  2% 38%, rgba(220,130,30,0.10),  transparent 28%),
    radial-gradient(circle  at 95% 90%, rgba(130,50,8,0.06),    transparent 20%);
  animation: ceLeak 10s ease-in-out infinite;
}

@keyframes ceLeak {
  0%,100% { opacity: 0.75; }
  50%      { opacity: 1;    }
}

/* Dust particles using box-shadow */
.ce-dust {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ce-dust::before,
.ce-dust::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: transparent;
  animation: ceDustDrift 28s linear infinite alternate;
}

.ce-dust::before {
  box-shadow:
    88px  72px  2px rgba(201,168,76,0.55),
    195px 145px 1px rgba(255,190,90,0.40),
    52px  310px 2px rgba(201,168,76,0.45),
    340px 88px  1px rgba(255,200,80,0.30),
    128px 430px 2px rgba(201,168,76,0.35),
    470px 190px 1px rgba(220,140,60,0.28),
    75px  555px 1px rgba(255,180,70,0.38),
    260px 320px 2px rgba(201,168,76,0.32),
    580px 110px 1px rgba(201,168,76,0.22),
    165px 200px 2px rgba(255,210,100,0.42),
    390px 410px 1px rgba(201,168,76,0.25),
    110px 680px 2px rgba(255,180,70,0.30),
    220px 510px 1px rgba(201,168,76,0.28),
    680px 260px 2px rgba(180,80,20,0.18),
    40px  180px 1px rgba(255,210,110,0.48);
}

.ce-dust::after {
  box-shadow:
    148px 95px  1px rgba(255,200,90,0.32),
    305px 175px 2px rgba(201,168,76,0.38),
    62px  400px 1px rgba(255,180,70,0.28),
    490px 75px  2px rgba(201,168,76,0.20),
    185px 580px 1px rgba(220,140,60,0.32),
    420px 295px 2px rgba(201,168,76,0.22),
    95px  240px 1px rgba(255,210,100,0.35),
    550px 460px 1px rgba(180,80,20,0.18),
    280px 125px 2px rgba(201,168,76,0.30),
    145px 730px 1px rgba(255,190,80,0.25),
    360px 530px 2px rgba(201,168,76,0.20),
    75px  820px 1px rgba(220,130,50,0.28),
    620px 330px 1px rgba(201,168,76,0.15),
    32px  640px 2px rgba(255,200,90,0.32);
  animation-delay: -14s;
}

@keyframes ceDustDrift {
  0%   { transform: translate(0px, 0px); }
  100% { transform: translate(-18px, -24px); }
}

.ce-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 52% 50%, transparent 38%, rgba(0,0,0,0.78) 100%);
}

/* ─── Custom Cursor ─────────────────────────────────────────── */
#cursor-outer {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              border-color 0.3s, background 0.3s, opacity 0.3s;
  mix-blend-mode: difference;
}

#cursor-inner {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s, background 0.3s;
}

body.cursor-hover #cursor-outer {
  width: 60px;
  height: 60px;
  background: rgba(201,168,76,0.1);
  border-color: var(--gold-light);
}

body.cursor-link #cursor-outer {
  width: 20px;
  height: 20px;
  background: var(--gold);
}

/* ─── Scroll Progress ───────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  z-index: 9998;
  width: 0%;
  transition: width 0.05s linear;
}

/* ─── Container ─────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* ─── Section Base ──────────────────────────────────────────── */
section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-label {
  display: none;
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
}

.section-subtitle {
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--gray-light);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Title underline accent */
.section-title .accent {
  color: var(--gold);
}

.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 20px auto 0;
}

body.lang-ar .section-divider {
  background: linear-gradient(270deg, var(--gold), transparent);
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease-out);
  z-index: -1;
}

.btn:hover::before { transform: translateX(0); }
.btn:hover { color: var(--black); }

.btn-primary {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 0 30px rgba(201,168,76,0.2);
}

.btn-primary::before { background: var(--white); }

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

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

.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,245,240,0.6);
  border-bottom: 1px solid rgba(201,168,76,0.3);
  padding-bottom: 5px;
  transition: color 0.3s, border-color 0.3s;
}
.btn-cv:hover { color: var(--gold); border-color: var(--gold); }

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn-icon { transform: translateX(4px); }
body.lang-ar .btn:hover .btn-icon { transform: translateX(-4px); }

/* ─── Magnetic Button wrapper ────────────────────────────────── */
.magnetic-wrap { display: inline-block; }

/* ─── Glass Card ─────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
}

/* ─── Enter Screen ───────────────────────────────────────────── */
#enter-screen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.es-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  user-select: none;
}

.es-logo {
  font-family: var(--font-en);
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0.22em;
  color: #fff;
  text-transform: uppercase;
}
.es-logo span { color: var(--gold); }

.es-tagline {
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  margin-top: -4px;
  margin-bottom: 28px;
}

.es-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(201,168,76,0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.3s, transform 0.2s;
}
.es-btn:hover { border-color: rgba(201,168,76,0.85); transform: scale(1.06); }

.es-btn-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.12);
  animation: esRingPulse 2.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes esRingPulse {
  0%, 100% { transform: scale(1);    opacity: 0.6; }
  50%       { transform: scale(1.18); opacity: 0.1; }
}

.es-btn-icon {
  width: 20px;
  height: 20px;
  color: rgba(255,255,255,0.7);
  margin-left: 3px;
  transition: color 0.3s;
}
.es-btn:hover .es-btn-icon { color: var(--gold); }

.es-hint {
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  margin-top: 14px;
  animation: esHintBlink 2.8s ease-in-out infinite;
}
@keyframes esHintBlink {
  0%, 100% { opacity: 0.2; }
  50%       { opacity: 0.55; }
}

/* ─── Preloader ──────────────────────────────────────────────── */
/* ─── Cinematic Preloader ────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  background: #030303;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Scan lines */
.pl-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.06) 3px,
    rgba(0,0,0,0.06) 4px
  );
}

/* Film grain */
.pl-grain {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: 6;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: plGrain 0.1s steps(1) infinite;
}

@keyframes plGrain {
  0%   { transform: translate(0%,  0%); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-1%, 4%); }
  80%  { transform: translate(4%, -1%); }
  100% { transform: translate(0%,  0%); }
}

/* Film strip rows */
.pl-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  height: 38px;
  flex-shrink: 0;
  overflow: hidden;
  border-top: 1px solid rgba(201,168,76,0.08);
  border-bottom: 1px solid rgba(201,168,76,0.08);
  background: rgba(0,0,0,0.4);
  position: relative;
  z-index: 10;
}

.pl-hole {
  width: 24px;
  height: 18px;
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 3px;
  flex-shrink: 0;
  background: rgba(0,0,0,0.6);
}

.pl-strip-label {
  font-family: var(--font-en);
  font-size: 0.52rem;
  letter-spacing: 0.35em;
  color: rgba(201,168,76,0.28);
  white-space: nowrap;
  margin-left: auto;
  padding-left: 16px;
}

/* Stage (main area) */
.pl-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 20px 48px;
  position: relative;
  z-index: 10;
}

/* Sidebars */
.pl-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 52px;
}

.pl-sidebar-text {
  font-family: var(--font-en);
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  color: rgba(201,168,76,0.25);
  writing-mode: vertical-rl;
}

.pl-sidebar-num {
  font-family: var(--font-en);
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  color: rgba(201,168,76,0.18);
}

/* Center area */
.pl-center {
  position: relative;
  width: 300px;
  height: 300px;
}

/* Countdown circle */
.pl-circle-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.pl-circle-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pl-num {
  position: relative;
  z-index: 2;
  font-family: var(--font-en);
  font-size: 7.5rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 0 60px rgba(201,168,76,0.15);
}

/* Flicker animation */
@keyframes plFlicker {
  0%, 100% { opacity: 1; }
  35%       { opacity: 0.05; }
  65%       { opacity: 0.7; }
}

.pl-num.pl-flickering {
  animation: plFlicker 0.12s ease-in-out;
}

/* Flash overlay */
#preloader.pl-flash-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.82);
  z-index: 50;
  animation: plFlashOut 0.2s ease-out forwards;
  pointer-events: none;
}

@keyframes plFlashOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* Name reveal */
.pl-name-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
}

.pl-name-wrap.pl-name-visible { opacity: 1; }

.pl-name-en {
  font-family: var(--font-en);
  font-size: 1.05rem;
  letter-spacing: 0.3em;
  color: var(--white);
  text-align: center;
}

.pl-name-line {
  width: 48px;
  height: 1px;
  background: rgba(201,168,76,0.55);
}

.pl-name-ar {
  font-family: var(--font-ar);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(201,168,76,0.9);
  direction: rtl;
}

.pl-name-role {
  font-family: var(--font-ar);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.3);
  direction: rtl;
}

/* Progress bar */
.pl-progress-track {
  height: 2px;
  background: rgba(255,255,255,0.05);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.pl-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(201,168,76,0.5), rgba(201,168,76,1));
  transition: width 0.04s linear;
  box-shadow: 0 0 8px rgba(201,168,76,0.5);
}

/* ─── Navigation ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: padding 0.4s var(--ease-out), background 0.4s;
}

#navbar.scrolled {
  padding: 14px 0;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Dancing Script', cursive;
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  color: var(--white);
  line-height: 1;
}

body.lang-ar .nav-logo {
  font-family: 'ArslanWessam', cursive;
  font-weight: normal;
  font-size: 1.4rem;
}

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

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

.nav-link {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--gold); }
.nav-link.active::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Nav Brand (logo + CV btn stacked) */
.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

/* CV Download Button */
.nav-cv-btn {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  transition: opacity 0.3s;
  white-space: nowrap;
}
.nav-cv-btn:hover { opacity: 1; }
@media (max-width: 1024px) { .nav-cv-btn { display: none; } }

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gray-light);
  padding: 6px 12px;
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  transition: all 0.3s;
  cursor: none;
}

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

.lang-divider {
  width: 1px;
  height: 12px;
  background: var(--gray-mid);
}

.lang-option {
  transition: color 0.3s;
}

.lang-option.active { color: var(--gold); font-weight: 700; }

/* Mobile Menu Toggle */
.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s var(--ease-out);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.nav-mobile.open { display: flex; }

.nav-mobile .nav-link {
  font-size: 1.5rem;
  letter-spacing: 0.1em;
}

/* ─── Hero Section ───────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

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

.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}

.hero-bg-circle.c1 {
  width: 600px;
  height: 600px;
  background: var(--gold);
  right: -100px;
  top: -100px;
}

.hero-bg-circle.c2 {
  width: 400px;
  height: 400px;
  background: #4A3E1A;
  left: 10%;
  bottom: 10%;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px;
  min-width: 0;
}

.hero-greeting {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  opacity: 0;
}

.hero-greeting::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-name {
  font-family: var(--font-en);
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  overflow: hidden;
  margin-bottom: 8px;
  padding-bottom: 0.1em;
}

body.lang-ar .hero-name {
  font-family: var(--font-ar);
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: 0;
  line-height: 1.3;
  overflow: visible;
  padding-bottom: 0.15em;
}

.hero-name-inner {
  display: block;
  transform: translateY(100%);
}

.hero-title {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 400;
  opacity: 0;
}

.hero-subtitle {
  font-size: 0.85rem;
  color: var(--gray-light);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  opacity: 0;
}

.hero-tagline {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--gray-light);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 48px;
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-light);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

/* ─── Hero Visual (Photo Side) ───────────────────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0 60px;
  min-width: 0;
}

.hero-photo-wrap {
  position: relative;
  width: 420px;
  height: 520px;
  opacity: 0;
}

.hero-photo-bg {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at center, rgba(201,168,76,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseBg 4s ease-in-out infinite;
}

.hero-photo-ring {
  position: absolute;
  inset: -30px;
  border: 1px solid var(--border-gold);
  border-radius: 40% 60% 55% 45% / 45% 55% 45% 55%;
  animation: morphRing 8s ease-in-out infinite;
}

.hero-photo-ring-2 {
  position: absolute;
  inset: -15px;
  border: 1px dashed rgba(201,168,76,0.15);
  border-radius: 55% 45% 40% 60% / 55% 40% 60% 45%;
  animation: morphRing 12s ease-in-out infinite reverse;
}

.hero-photo-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 90% 0, 100% 10%, 100% 100%, 10% 100%, 0 90%);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: filter 0.6s var(--ease-out);
  filter: grayscale(20%) contrast(1.05);
}

.hero-photo-wrap:hover .hero-photo {
  filter: grayscale(0%) contrast(1);
}

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.15) 0%, transparent 50%, rgba(0,0,0,0.3) 100%);
  mix-blend-mode: overlay;
  transition: opacity 0.6s;
}

.hero-photo-wrap:hover .hero-photo-overlay { opacity: 0; }

/* Light streaks behind photo */
.hero-light-streak {
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.3;
  animation: streakMove 3s ease-in-out infinite;
}

.hero-light-streak:nth-child(1) { height: 120px; left: -20px; top: 30%; animation-delay: 0s; }
.hero-light-streak:nth-child(2) { height: 80px; right: -10px; top: 50%; animation-delay: 1s; }

/* Photo corner accents */
.photo-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.6;
}

.photo-corner.tl { top: -4px; left: -4px; border-width: 2px 0 0 2px; }
.photo-corner.tr { top: -4px; right: -4px; border-width: 2px 2px 0 0; }
.photo-corner.bl { bottom: -4px; left: -4px; border-width: 0 0 2px 2px; }
.photo-corner.br { bottom: -4px; right: -4px; border-width: 0 2px 2px 0; }

/* Hero photo placeholder */
.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gray-dark) 0%, var(--black) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gray-mid);
}

.hero-photo-placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.4;
}

.hero-photo-placeholder p {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-align: center;
}

/* ─── About Section ──────────────────────────────────────────── */
#about {
  position: relative;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--black) 100%);
  overflow: hidden;
}

#about > .container {
  position: relative;
  z-index: 1;
}

/* ─── About Photos Strip (background layer) ────────────────── */
.about-photos-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 24px;
  padding: 0 48px;
  align-items: flex-start;
  pointer-events: none;
  z-index: 0;
  opacity: 0.10;
  filter: grayscale(55%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 40%, rgba(0,0,0,0.3) 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 40%, rgba(0,0,0,0.3) 70%, transparent 100%);
}

.about-photo-frame {
  flex: 1;
  height: 100%;
  overflow: hidden;
  border-radius: 3px;
}

.about-photo-frame--down {
  margin-top: 40px;
  height: calc(100% - 40px);
}

.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Tablet */
@media (max-width: 1024px) {
  .about-photos-strip {
    gap: 16px;
    padding: 0 32px;
  }
}

/* Mobile — show only 2 center photos */
@media (max-width: 768px) {
  .about-photos-strip {
    gap: 12px;
    padding: 0 20px;
    opacity: 0.08;
  }
  .about-photo-frame:first-child,
  .about-photo-frame:last-child {
    display: none;
  }
  .about-photo-frame--down {
    margin-top: 24px;
    height: calc(100% - 24px);
  }
}

/* Small mobile — hide strip entirely */
@media (max-width: 480px) {
  .about-photos-strip {
    display: none;
  }
}

.about-grid {
  max-width: 860px;
  margin: 0 auto;
}

.about-visual { display: none; }

.about-bio {
  font-size: 1.1rem;
  line-height: 1.9;
  color: rgba(245,245,240,0.8);
  margin-bottom: 48px;
}

.about-bio strong {
  color: var(--white);
  font-weight: 600;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-bottom: 60px;
}

.stat-item {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-out);
}

.stat-item:hover::before { transform: scaleX(1); }

.stat-number-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 8px;
}

.stat-number {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  display: inline-block;
}

.stat-suffix {
  font-size: 2rem;
  margin-bottom: 0;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-light);
}

/* ─── Cinema Stats (inside About) ───────────────────────── */
.cs-wrap {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid rgba(201,168,76,0.14);
  position: relative;
  overflow: hidden;
}

.cs-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  direction: ltr;
  position: relative;
  z-index: 1;
}

.cs-item {
  padding: 40px 28px;
  text-align: center;
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.8s cubic-bezier(.22,1,.36,1),
              transform 0.8s cubic-bezier(.22,1,.36,1);
  position: relative;
  cursor: default;
}

.cs-item::before {
  content: "";
  position: absolute;
  bottom: 12px; left: 50%;
  width: 0; height: 1px;
  background: rgba(201,168,76,0.7);
  transform: translateX(-50%);
  transition: width 0.45s cubic-bezier(.22,1,.36,1);
}

.cs-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 20%;
  height: 60%; width: 0.5px;
  background: rgba(201,168,76,0.15);
}

.cs-item.show {
  opacity: 1;
  transform: translateY(0);
}

.cs-item.show:hover {
  transform: translateY(-7px);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
}

.cs-item.show:hover::before { width: 44px; }

.cs-svg-icon {
  width: 44px;
  height: 44px;
  color: rgba(201,168,76,0.72);
  margin: 0 auto 20px;
  display: block;
  transition: color 0.35s, transform 0.4s cubic-bezier(.22,1,.36,1);
}

.cs-item.show:hover .cs-svg-icon {
  color: rgba(201,168,76,1);
  transform: scale(1.12) translateY(-2px);
}

.cs-line {
  width: 32px; height: 1px;
  background: rgba(201,168,76,0.35);
  margin: 14px auto 16px;
}

.cs-title {
  font-family: var(--font-ar);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.cs-desc {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.42);
  line-height: 1.75;
  margin-top: 12px;
}

.cs-desc-ar {
  font-family: var(--font-ar);
  font-size: 12.5px;
  font-weight: 300;
  color: rgba(255,255,255,0.38);
  line-height: 1.85;
  margin-top: 12px;
  direction: rtl;
}

/* Bilingual visibility */
body.lang-en .cs-ar,
body.lang-en .cs-desc-ar { display: none; }
body.lang-ar .cs-en,
body.lang-ar .cs-desc { display: none; }

/* Global bilingual helpers */
body.lang-en .ar-only { display: none !important; }
body.lang-ar .en-only { display: none !important; }

@media (max-width: 768px) {
  .cs-wrap { margin-top: 48px; padding-top: 40px; }
  .cs-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-item:nth-child(2)::after,
  .cs-item:nth-child(4)::after { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .hero-photo-wrap { width: 240px; height: 300px; }
}

.about-skills-title {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.skills-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  padding: 8px 18px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  color: var(--gray-light);
  transition: all 0.3s;
}

.skill-tag:hover {
  background: rgba(201,168,76,0.1);
  color: var(--gold);
  border-color: var(--gold);
}

/* About visual side */
.about-visual {
  position: relative;
}

.about-filmstrip {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.about-filmstrip-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  filter: grayscale(40%);
  transition: filter 0.5s;
}

.about-filmstrip:hover .about-filmstrip-img { filter: grayscale(0%); }

.about-filmstrip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.7) 0%, transparent 60%);
}

.about-experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--black);
}

.exp-num {
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.exp-label {
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
  padding: 0 8px;
}

/* ─── Awards Section — Festival Laurel Badges ────────────────── */
.awards-laurels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 20px;
  padding: 20px 0;
}

.laurel-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  cursor: default;
  transition: transform 0.35s var(--ease-out);
  direction: ltr;
}

.laurel-badge:hover {
  transform: translateY(-6px);
}

/* Left branch — mirrors for right wing */
.laurel-wing {
  width: 34px;
  height: 74px;   /* 34 × 1304/600 ≈ 74px */
  color: rgba(201,168,76,0.38);
  flex-shrink: 0;
  transition: color 0.4s;
  overflow: visible;
}

.laurel-wing-r {
  transform: scaleX(-1);
}

.laurel-badge:hover .laurel-wing {
  color: rgba(201,168,76,0.88);
}

.laurel-badge-inner {
  width: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.laurel-icon {
  font-size: 1.2rem;
  line-height: 1;
  margin-bottom: 2px;
}

.laurel-festival {
  font-family: var(--font-ar);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.45;
}

.laurel-detail {
  font-size: 0.61rem;
  color: rgba(201,168,76,0.85);
  line-height: 1.45;
  letter-spacing: 0.01em;
}

/* ─── Works Section ──────────────────────────────────────────── */
#works {
  background: var(--black);
}

.works-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 24px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: all 0.3s;
  cursor: none;
}

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

/* Logo filter buttons */
.filter-btn--logo {
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 80px;
  background: transparent;
}

.filter-btn--logo img {
  height: 22px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.45);
  transition: filter 0.3s;
}

.filter-btn--logo:hover,
.filter-btn--logo.active {
  background: transparent;
  border-color: var(--gold);
  color: inherit;
}

.filter-btn--logo:hover img,
.filter-btn--logo.active img {
  filter: grayscale(0) brightness(1);
}

/* ─── Works — Netflix-style horizontal rows ───────────────────── */
.works-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Network group */
.works-group {
  margin-bottom: 56px;
}
.works-group.hidden { display: none; }

/* Section header */
.works-group-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.works-group-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,168,76,0.35), transparent);
}
.works-group-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.works-group-label {
  font-family: var(--font-ar);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.works-group-count {
  font-family: var(--font-en);
  font-size: 0.7rem;
  color: rgba(245,245,240,0.35);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.06em;
}

/* Horizontal scroll row */
.works-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 2px 22px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  cursor: grab;
}
.works-row::-webkit-scrollbar { display: none; }
.works-row.is-grabbing { cursor: grabbing; }

/* Film card — flex item */
.film-card {
  flex: 0 0 260px;
  position: relative;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--gray-dark);
  cursor: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
  overflow: visible;
  user-select: none;
}
.film-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201,168,76,0.55);
  box-shadow: 0 20px 50px rgba(0,0,0,0.65);
}

/* Thumbnail area */
.film-thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  aspect-ratio: 16/9;
}

.film-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
  display: block;
}
.film-card:hover .film-poster { transform: scale(1.06); }

.film-poster-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Info strip below poster */
.film-info {
  padding: 10px 12px 10px;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(0,0,0,0.25);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.film-title {
  font-family: var(--font-ar);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

/* Play button */
.film-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.75);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(201,168,76,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
  z-index: 3;
}
.film-play-btn svg {
  width: 18px; height: 18px;
  fill: var(--black); margin-left: 2px;
}
.film-card:hover .film-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Coming soon */
.film-card--soon .film-play-btn {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  width: auto; height: auto;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(245,245,240,0.65);
  white-space: nowrap;
}
.film-card--soon .film-play-btn svg { display: none; }
.film-card--soon { cursor: default; }

/* Year badge */
.film-year {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  padding: 2px 7px;
  border-radius: 20px;
  color: var(--gray-light);
  z-index: 1;
}

/* Award badge */
.film-impact-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  z-index: 1;
}

/* ─── Partners Section ───────────────────────────────────────── */
#partners {
  background: #0F0F0F;
  padding: 80px 0;
}

.partners-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

.partners-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: trackScroll 25s linear infinite;
  align-items: center;
}

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

.partner-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 160px;
  height: 56px;
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.partner-logo-wrap:hover {
  border-color: rgba(201,168,76,0.35);
  background: rgba(255,255,255,0.06);
  transform: translateY(-3px);
}

.partner-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0.75);
  transition: filter 0.3s;
}

.partner-logo-wrap:hover .partner-logo {
  filter: brightness(1);
}

/* Partner placeholder text */
.partner-text {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
  white-space: nowrap;
  transition: color 0.3s;
}

.partner-logo-wrap:hover .partner-text { color: var(--gold); }

/* ─── Book Section ───────────────────────────────────────────── */
#book {
  background: #080808;
  position: relative;
  overflow: hidden;
}

.book-bg-accent {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 65%);
  left: 50%;
  top: 30%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.book-bg-lines {
  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: 60px 60px;
  pointer-events: none;
}

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

/* CSS 3D Book */
.book-3d-scene {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 420px;
}

.book-3d {
  width: 260px;
  height: 360px;
  transform-style: preserve-3d;
  transform: rotateY(-20deg) rotateX(5deg);
  animation: bookFloat 6s ease-in-out infinite;
  transition: transform 0.5s var(--ease-out);
  position: relative;
}

.book-3d:hover {
  animation-play-state: paused;
  transform: rotateY(0deg) rotateX(0deg) scale(1.05);
}

.book-face {
  position: absolute;
  backface-visibility: hidden;
}

.book-front {
  width: 260px;
  height: 360px;
  transform: translateZ(20px);
  overflow: hidden;
  border-radius: 0 4px 4px 0;
  box-shadow: 10px 10px 40px rgba(0,0,0,0.5), 0 0 30px rgba(201,168,76,0.1);
}

.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1A1408 0%, #2C2010 40%, #1A1408 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.book-cover-placeholder::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201,168,76,0.3);
}

.book-cover-title {
  font-family: var(--font-ar);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
  text-align: center;
  line-height: 1.3;
  z-index: 1;
}

.book-cover-author {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.6);
  z-index: 1;
}

.book-cover-deco {
  width: 60px;
  height: 1px;
  background: var(--border-gold);
  z-index: 1;
}

.book-spine {
  width: 40px;
  height: 360px;
  transform: rotateY(-90deg) translateZ(20px);
  background: linear-gradient(to right, #1A1408, #2C2010, #1A1408);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

.spine-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.5);
}

.book-back {
  width: 260px;
  height: 360px;
  transform: rotateY(180deg) translateZ(20px);
  background: #1A1408;
  border-radius: 4px 0 0 4px;
}

/* Book shadow */
.book-shadow {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 20px;
  background: rgba(0,0,0,0.5);
  filter: blur(15px);
  border-radius: 50%;
}

/* Floating price tag on 3D book */
.book-float-price {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-20px);
  background: var(--gold);
  color: var(--black);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: 0 8px 24px rgba(201,168,76,0.4);
}
.float-price-val {
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 900;
  display: block;
  line-height: 1;
}
.float-price-sub {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

/* Book cover placeholder upgrade */
.book-cover-badge {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.5);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 3px 10px;
  border-radius: 20px;
  z-index: 1;
}
.book-cover-title2 {
  font-family: var(--font-ar);
  font-size: 0.95rem;
  color: rgba(201,168,76,0.7);
  text-align: center;
  z-index: 1;
}

/* Book content */
.book-format-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.book-title {
  font-family: var(--font-ar);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.book-title-line2 {
  color: var(--gold);
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 600;
}

.book-subtitle {
  font-size: 0.9rem;
  color: rgba(245,245,240,0.55);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.book-features {
  list-style: none;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.book-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(245,245,240,0.8);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.book-feature:last-child { border-bottom: none; }

.feature-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--border-gold);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.65rem;
  margin-top: 1px;
}

/* Purchase block */
.book-purchase {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.book-price-block { display: flex; flex-direction: column; gap: 4px; }

.book-price {
  font-family: var(--font-en);
  display: flex;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
}

.price-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 6px;
}

.price-num {
  font-size: 4rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.price-badge {
  background: var(--gold);
  color: var(--black);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 0.1em;
  align-self: flex-start;
  margin-top: 8px;
}

.book-price-note {
  font-size: 0.75rem;
  color: rgba(245,245,240,0.4);
  letter-spacing: 0.03em;
}

.btn-book-cta {
  padding: 16px 36px;
  font-size: 1rem;
}

/* Trust row */
.book-trust-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.book-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(245,245,240,0.45);
}
.book-trust-item svg { color: var(--gold); opacity: 0.7; flex-shrink: 0; }
.book-trust-sep { color: rgba(255,255,255,0.2); font-size: 0.9rem; }

/* ── Free Preview Section ── */
.book-preview-wrap {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(201,168,76,0.12);
}

.book-preview-header {
  text-align: center;
  margin-bottom: 48px;
}

.preview-label-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.preview-title {
  font-family: var(--font-ar);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--white);
  font-weight: 700;
}

/* ─── Book Preview Modal ──────────────────────────────── */
.book-preview-trigger {
  margin-top: 10px;
  width: 100%;
}

.book-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.book-preview-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.book-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
  cursor: pointer;
}

.book-preview-panel {
  position: relative;
  z-index: 1;
  width: min(880px, 94vw);
  height: min(90vh, 720px);
  background: #0c0c0c;
  border: 1px solid rgba(201,168,76,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(16px);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
}

.book-preview-modal.is-open .book-preview-panel {
  transform: scale(1) translateY(0);
}

.book-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(201,168,76,0.12);
  background: rgba(201,168,76,0.03);
  text-align: start;
  margin-bottom: 0;
}

.book-preview-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.book-preview-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
}

.book-preview-header-title {
  font-family: var(--font-ar);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(201,168,76,0.9);
}

.book-preview-close {
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 4px;
  transition: color 0.2s, border-color 0.2s;
  line-height: 1;
}
.book-preview-close:hover { color: #fff; border-color: rgba(255,255,255,0.3); }

.book-preview-body {
  flex: 1;
  overflow: hidden;
  background: #111;
}

.book-preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.book-preview-lock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(201,168,76,0.05);
  border-top: 1px solid rgba(201,168,76,0.14);
  gap: 12px;
  flex-wrap: wrap;
}

.book-preview-lock span {
  font-family: var(--font-ar);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 600px) {
  .book-preview-panel { height: 100dvh; width: 100vw; border: none; }
  .book-preview-lock { justify-content: center; }
}

.book-pages-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.book-page-card {
  background: #111;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 32px 28px 0;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  transition: border-color 0.3s;
}
.book-page-card:hover { border-color: rgba(201,168,76,0.25); }

.page-card-header { margin-bottom: 16px; }

.page-num-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}

.page-card-title {
  font-family: var(--font-ar);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.5;
}

.page-card-text {
  font-family: var(--font-ar);
  font-size: 0.85rem;
  color: rgba(245,245,240,0.6);
  line-height: 1.9;
  margin-bottom: 14px;
}

.page-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, #111 40%, transparent);
}

/* ── Bottom CTA bar ── */
.book-bottom-cta {
  margin-top: 60px;
  background: linear-gradient(135deg, #111 0%, #161208 100%);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-md);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.book-bottom-left { flex: 1; min-width: 220px; }

.book-bottom-title {
  font-family: var(--font-ar);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}

.book-bottom-note {
  font-size: 0.82rem;
  color: rgba(245,245,240,0.5);
  margin-bottom: 16px;
}

.book-bottom-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.book-bottom-bullets li {
  font-size: 0.8rem;
  color: rgba(245,245,240,0.5);
  padding-right: 14px;
  position: relative;
}
.book-bottom-bullets li::before {
  content: '•';
  color: var(--gold);
  position: absolute;
  right: 0;
}

.book-bottom-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.book-mini-cover {
  width: 60px;
  height: 84px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-15deg);
}
.book-mini-spine {
  position: absolute;
  width: 10px;
  height: 84px;
  background: linear-gradient(to right, #1A1408, #2C2010);
  transform: rotateY(-90deg) translateZ(5px);
  left: -5px;
}
.book-mini-front {
  width: 60px;
  height: 84px;
  background: linear-gradient(135deg, #1A1408, #2C2010);
  border-radius: 0 2px 2px 0;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.2);
}
.book-mini-front img { width: 100%; height: 100%; object-fit: cover; }

.book-bottom-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.bottom-price-val {
  font-family: var(--font-en);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

/* ─── Book Teaser (index.html compact card) ──────────────────── */
.book-teaser-card {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 40px;
  align-items: center;
  background: #111;
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius-md);
  padding: 32px 40px;
}
.book-teaser-title {
  font-family: var(--font-ar); font-size: 1.4rem; font-weight: 900;
  color: var(--white); margin: 8px 0 2px;
}
.book-teaser-sub { font-size: 1rem; color: var(--gold); margin-bottom: 8px; }
.book-teaser-action { display: flex; flex-direction: column; align-items: center; }
@media (max-width: 700px) {
  .book-teaser-card { grid-template-columns: 1fr; text-align: center; }
  .book-teaser-cover { display: none; }
}

/* ─── Blog Section ───────────────────────────────────────────── */
#blog {
  background: #0F0F0F;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: none;
  background: var(--gray-dark);
  display: flex;
  flex-direction: column;
}

.blog-card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
  filter: brightness(0.8);
}

.blog-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gray-dark) 0%, var(--black) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-card:hover .blog-card-img { transform: scale(1.05); }

.blog-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--gray-dark) 0%, transparent 60%);
}

.blog-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.blog-date {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}

.blog-readtime {
  font-size: 0.7rem;
  color: var(--gray-light);
}

.blog-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gray-mid);
}

.blog-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 12px;
  transition: color 0.3s;
}

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

.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--gray-light);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap 0.3s;
}

.blog-card:hover .blog-read-more { gap: 14px; }

.blog-read-more-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}

.blog-card:hover .blog-read-more-arrow { transform: translateX(4px); }
body.lang-ar .blog-card:hover .blog-read-more-arrow { transform: translateX(-4px); }

/* ─── Contact Section ────────────────────────────────────────── */
#contact {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}

body.lang-ar .contact-title {
  font-family: var(--font-ar);
}

.contact-subtitle {
  color: var(--gray-light);
  line-height: 1.8;
  margin-bottom: 48px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-glass);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-item-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-light);
}

.contact-item-value {
  font-size: 0.95rem;
  color: var(--white);
}

.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  transition: all 0.3s;
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.1);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.form-field {
  position: relative;
  padding-top: 24px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 8px;
  transition: border-color 0.3s;
}

.form-field:focus-within {
  border-color: var(--gold);
}

.form-label {
  position: absolute;
  top: 24px;
  left: 0;
  font-size: 0.85rem;
  color: var(--gray-light);
  transition: all 0.3s var(--ease-out);
  pointer-events: none;
}

body.lang-ar .form-label { left: auto; right: 0; }

.form-field.focused .form-label,
.form-field.filled .form-label {
  top: 4px;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.form-input,
.form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 0.95rem;
  padding: 8px 0 12px;
  resize: none;
}

.form-textarea {
  min-height: 120px;
  line-height: 1.6;
}

.form-submit {
  margin-top: 32px;
  align-self: flex-start;
}

/* ─── Footer ─────────────────────────────────────────────────── */
#footer {
  background: var(--black);
  border-top: 1px solid var(--border-glass);
  padding: 60px 0 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.footer-logo {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: 0.01em;
  color: var(--white);
  text-align: center;
  line-height: 1;
}

.footer-logo--ar {
  font-family: 'ArslanWessam', cursive;
  font-weight: normal;
  font-size: 1.3rem;
  letter-spacing: 0;
}

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

.footer-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-light);
  text-align: center;
  margin-top: -30px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: color 0.3s;
}

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

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

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--border-glass);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-rights {
  font-size: 0.7rem;
  color: var(--gray-mid);
}

.footer-made {
  font-size: 0.7rem;
  color: var(--gray-mid);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─── Scroll To Top ──────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 36px;
  left: 36px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10,10,10,0.85);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9000;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), border-color 0.3s;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
#back-to-top svg { width: 18px; height: 18px; }
#back-to-top:hover { border-color: var(--gold); background: rgba(201,168,76,0.12); }
#back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (max-width: 600px) { #back-to-top { bottom: 20px; left: 20px; width: 38px; height: 38px; } }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  #hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content,
  .hero-visual { padding: 0 40px; width: 100%; box-sizing: border-box; }
  .hero-visual { order: -1; }
  .hero-photo-wrap { width: 280px; height: 340px; margin: 0 auto; }
  .hero-greeting { justify-content: center; }
  .hero-tagline { margin: 0 auto 48px; }
  .hero-cta { justify-content: center; }

  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .film-card { flex: 0 0 220px; }
  .book-grid { grid-template-columns: 1fr; }
  .book-3d-scene { height: 360px; }
  .book-pages-row { grid-template-columns: 1fr; }
  .book-bottom-cta { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .book-bottom-right { width: 100%; justify-content: space-between; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --section-pad: 80px; }
  .film-card { flex: 0 0 185px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-photo-wrap { width: 220px; height: 270px; }
  .hero-content, .hero-visual { padding: 0 24px; }
  .book-3d-scene { height: 280px; }
  .pl-center { width: 200px; height: 200px; }
  .pl-num { font-size: 5rem; }
}

@media (max-width: 480px) {
  :root { --section-pad: 60px; }
  .section-header { margin-bottom: 48px; }

  /* Hero */
  .hero-photo-wrap { width: 180px; height: 220px; }
  #hero { padding-top: 80px; }

  /* Preloader — hide sidebars, shrink center on tiny phones */
  .pl-sidebar { display: none; }
  .pl-stage { gap: 0; padding: 20px 16px; }
  .pl-center { width: 160px; height: 160px; }
  .pl-num { font-size: 4rem; }

  /* Films */
  .film-card { flex: 0 0 150px; }

  /* Case studies 1-col */
  .cs-grid { grid-template-columns: 1fr; }
  .cs-item::after { display: none; }

  /* Book scene */
  .book-3d-scene { height: 220px; }

  /* Enter screen hint */
  .es-hint { font-size: 0.58rem; letter-spacing: 0.2em; }
  .es-tagline { font-size: 0.6rem; }
}

/* ─── BTS Lightbox ────────────────────────────────────────────── */
.film-frame img { cursor: zoom-in; }

.bts-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.bts-lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.bts-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.93);
  cursor: zoom-out;
}
.bts-lb-img {
  position: relative;
  z-index: 1;
  max-width: 88vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  transform: scale(0.94);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  user-select: none;
}
.bts-lightbox.open .bts-lb-img {
  transform: scale(1);
}
.bts-lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.bts-lb-close svg { width: 18px; height: 18px; }
.bts-lb-close:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.5);
}
.bts-lb-prev,
.bts-lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.bts-lb-prev svg,
.bts-lb-next svg { width: 22px; height: 22px; }
.bts-lb-prev { left: 20px; }
.bts-lb-next { right: 20px; }
.bts-lb-prev:hover,
.bts-lb-next:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.45);
}
.bts-lb-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
}
@media (max-width: 600px) {
  .bts-lb-prev { left: 8px; }
  .bts-lb-next { right: 8px; }
  .bts-lb-prev, .bts-lb-next { width: 38px; height: 38px; }
  .bts-lb-close { top: 12px; right: 12px; }
}

/* ─── Film Modal ──────────────────────────────────────────────── */
.film-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.film-modal.open {
  opacity: 1;
  pointer-events: all;
}
.film-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  cursor: pointer;
}
.film-modal-box {
  position: relative;
  z-index: 1;
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34,1.3,0.64,1);
}
.film-modal.open .film-modal-box {
  transform: translateY(0) scale(1);
}
.film-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.film-modal-close svg { width: 16px; height: 16px; }
.film-modal-close:hover { background: rgba(255,255,255,0.14); }

.film-modal-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
}
.film-modal-poster-wrap {
  position: relative;
  flex-shrink: 0;
}
.film-modal-poster {
  width: 200px;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  border-radius: 7px 0 0 7px;
}
.film-modal-year {
  position: absolute;
  top: 12px;
  left: 10px;
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(0,0,0,0.7);
  padding: 3px 8px;
  border-radius: 3px;
}
.film-modal-impact {
  position: absolute;
  bottom: 12px;
  left: 10px;
  font-size: 1.1rem;
  line-height: 1;
}
.film-modal-content {
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.film-modal-network {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}
.film-modal-title {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin: 0;
}
.film-modal-desc {
  font-size: 0.88rem;
  color: rgba(245,245,240,0.55);
  line-height: 1.7;
  margin: 0;
}
.film-modal-role-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  background: rgba(201,168,76,0.06);
  border-inline-start: 2px solid var(--gold);
  border-radius: 0 4px 4px 0;
}
.film-modal-role-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}
.film-modal-role {
  font-size: 0.9rem;
  color: rgba(245,245,240,0.85);
  line-height: 1.5;
}
.film-modal-award {
  font-size: 0.82rem;
  color: var(--gold);
  opacity: 0.85;
}
.film-modal-watch {
  margin-top: 4px;
  align-self: flex-start;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.film-modal-watch::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent currentColor;
}
.film-modal-soon {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,245,240,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 16px;
  border-radius: 4px;
  align-self: flex-start;
}
@media (max-width: 600px) {
  .film-modal-inner { grid-template-columns: 1fr; }
  .film-modal-poster { width: 100%; min-height: 200px; border-radius: 7px 7px 0 0; }
  .film-modal-content { padding: 20px; }
}
