:root {
  --bg-obsidian: #0A0908;
  --bg-charcoal: #12100E;
  --bg-card: rgba(20, 17, 14, 0.88);
  --text-ivory: #F4EFE6;
  --text-parchment: #D8CFC2;
  --text-muted: #9E9486;
  --gold-primary: #D4AF37;
  --gold-antique: #C9A45C;
  --gold-border: rgba(201, 164, 92, 0.34);
  --gold-glow: rgba(212, 175, 55, 0.18);
  --font-display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ar: "Cairo", sans-serif;
  --scroll-y: 0px;
  --scroll-progress: 0;
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  background-color: var(--bg-obsidian);
  color: var(--text-ivory);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body {
  font-family: var(--font-ar);
}

.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: calc(var(--scroll-progress, 0) * 100%);
  background: linear-gradient(90deg, #C9A45C 0%, #FFE07D 50%, #D4AF37 100%);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.85);
  z-index: 999;
  pointer-events: none;
}

.ambient-fresco {
  position: fixed;
  inset: -12% -6%;
  z-index: 0;
  pointer-events: none;
  background-image: url("/assets/sistine-fresco-wide.webp");
  background-size: cover;
  background-position: center 22%;
  opacity: 0.18;
  filter: contrast(1.1) saturate(0.8);
  mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, black 20%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, black 20%, transparent 82%);
  will-change: transform;
  transform: translate3d(0, calc(var(--scroll-y, 0px) * -0.15), 0) scale(calc(1 + var(--scroll-progress, 0) * 0.1));
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(201, 164, 92, 0.14) 0%, rgba(18, 16, 14, 0.68) 48%, #0A0908 88%),
    linear-gradient(180deg, rgba(10, 9, 8, 0.65) 0%, rgba(10, 9, 8, 0.90) 65%, #0A0908 100%);
}

.sacred-geometry-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.32;
}

.geo-ring-1 {
  position: absolute;
  top: 8%;
  right: 6%;
  width: 480px;
  height: 480px;
  border: 1px dashed rgba(212, 175, 55, 0.38);
  border-radius: 50%;
  will-change: transform;
  transform: translate3d(0, calc(var(--scroll-y, 0px) * -0.24), 0) rotate(calc(var(--scroll-y, 0px) * 0.08deg));
}

.geo-ring-1::before {
  content: "";
  position: absolute;
  inset: 38px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 50%;
}

.geo-ring-2 {
  position: absolute;
  bottom: 6%;
  left: 4%;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(201, 164, 92, 0.25);
  border-radius: 50%;
  will-change: transform;
  transform: translate3d(0, calc(var(--scroll-y, 0px) * 0.18), 0) rotate(calc(var(--scroll-y, 0px) * -0.06deg));
}

.geo-crosshair {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 92vw;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.24) 50%, transparent 100%);
  transform: translate3d(-50%, calc(var(--scroll-y, 0px) * -0.12), 0);
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  margin: 0 -24px;
  background: rgba(10, 9, 8, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 164, 92, 0.22);
  gap: 16px;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text-ivory);
}

.brand-logo-img {
  height: 42px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.22));
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: rgba(201, 164, 92, 0.32);
}

.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-primary);
  font-weight: 600;
}

html[lang="ar"] .brand-title {
  font-family: var(--font-ar);
  letter-spacing: 0;
  font-size: 0.88rem;
}

.brand-sub {
  font-size: 0.71rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.scroll-cue-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.34);
  color: var(--gold-primary);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(18, 16, 14, 0.92);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.73rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
  letter-spacing: 0.06em;
}

.lang-btn.active {
  background: linear-gradient(135deg, #D4AF37 0%, #B38B2D 100%);
  color: #0A0908;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.top-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--gold-border);
  background: rgba(201, 164, 92, 0.1);
  color: var(--text-ivory);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.top-cta:hover {
  background: rgba(201, 164, 92, 0.24);
  border-color: var(--gold-primary);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-primary);
}

.main-stage {
  padding: 34px 0 28px;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 36px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  will-change: transform;
  transform: translate3d(0, calc(var(--scroll-y, 0px) * -0.06), 0);
}

.coming-soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.2) 0%, rgba(201, 164, 92, 0.06) 100%);
  border: 1px solid var(--gold-primary);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.16);
}

.pill-spark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
}

.pill-text {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-primary);
}

html[lang="ar"] .pill-text {
  font-family: var(--font-ar);
  letter-spacing: 0;
  font-size: 0.85rem;
}

.pill-divider {
  color: rgba(201, 164, 92, 0.45);
  font-size: 0.75rem;
}

.pill-sub {
  font-size: 0.73rem;
  color: var(--text-parchment);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[lang="ar"] .pill-sub {
  letter-spacing: 0;
  font-size: 0.8rem;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 3.5vw, 3.3rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--text-ivory);
  letter-spacing: -0.01em;
}

html[lang="ar"] .hero-headline {
  font-family: var(--font-ar);
  line-height: 1.28;
  font-weight: 700;
  font-size: clamp(1.95rem, 3.1vw, 2.75rem);
}

.hero-headline .gold-italic {
  font-style: italic;
  color: var(--gold-primary);
  font-weight: 500;
}

html[lang="ar"] .hero-headline .gold-italic {
  font-style: normal;
  color: var(--gold-primary);
}

.hero-lead {
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--text-parchment);
  max-width: 610px;
}

.creator-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(20, 17, 14, 0.82);
  border: 1px solid rgba(201, 164, 92, 0.28);
  border-left: 3px solid var(--gold-primary);
  border-radius: 10px;
  max-width: 590px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

html[dir="rtl"] .creator-badge {
  border-left: 1px solid rgba(201, 164, 92, 0.28);
  border-right: 3px solid var(--gold-primary);
}

.creator-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 1.5px solid var(--gold-primary);
  flex-shrink: 0;
}

.creator-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.creator-name {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-ivory);
  letter-spacing: 0.02em;
}

html[lang="ar"] .creator-name {
  font-family: var(--font-ar);
  font-size: 1rem;
}

.creator-role {
  font-size: 0.76rem;
  color: var(--gold-antique);
  letter-spacing: 0.03em;
}

.creator-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 2px;
}

html[lang="ar"] .creator-quote {
  font-family: var(--font-ar);
  font-style: normal;
}

.cta-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #D4AF37 0%, #B58E2E 100%);
  color: #0A0908;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.25);
  transition: all 0.2s ease;
}

html[lang="ar"] .btn-gold {
  font-family: var(--font-ar);
  letter-spacing: 0;
  font-size: 0.88rem;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.42);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 8px;
  background: rgba(18, 16, 14, 0.88);
  border: 1px solid var(--gold-border);
  color: var(--text-ivory);
  font-weight: 500;
  font-size: 0.84rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

html[lang="ar"] .btn-outline {
  font-family: var(--font-ar);
  font-size: 0.86rem;
}

.btn-outline:hover {
  border-color: var(--gold-primary);
  background: rgba(201, 164, 92, 0.15);
}

.showcase-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  perspective: 1100px;
}

.episode-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  display: grid;
  grid-template-columns: 210px 1fr;
  will-change: transform;
  transform-style: preserve-3d;
}

.episode-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 30%), rgba(212, 175, 55, 0.14), transparent 60%);
  opacity: 0.85;
}

.episode-card.featured {
  grid-template-columns: 1fr;
}

.ep-media {
  position: relative;
  overflow: hidden;
  background: #070605;
}

.episode-card.featured .ep-media {
  height: 215px;
}

.episode-card.secondary .ep-media {
  height: 100%;
  min-height: 152px;
}

.ep-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
  transform: scale(1.08) translate3d(0, var(--img-shift, 0px), 0);
}

.ep-overlay-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 2;
}

.badge-status {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(10, 9, 8, 0.88);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  backdrop-filter: blur(6px);
}

html[lang="ar"] .badge-status {
  letter-spacing: 0;
  font-size: 0.72rem;
}

.badge-duration {
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(10, 9, 8, 0.85);
  border: 1px solid rgba(244, 239, 230, 0.2);
  color: var(--text-ivory);
}

.ep-content {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.ep-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-antique);
  font-weight: 600;
}

html[lang="ar"] .ep-kicker {
  letter-spacing: 0;
  font-size: 0.76rem;
}

.ep-title {
  font-family: var(--font-serif);
  font-size: 1.26rem;
  font-weight: 700;
  color: var(--text-ivory);
  line-height: 1.2;
}

html[lang="ar"] .ep-title {
  font-family: var(--font-ar);
  font-size: 1.06rem;
  line-height: 1.35;
}

.ep-desc {
  font-size: 0.81rem;
  line-height: 1.52;
  color: var(--text-parchment);
}

.ep-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.ep-tag {
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(201, 164, 92, 0.12);
  border: 1px solid rgba(201, 164, 92, 0.26);
  color: var(--text-parchment);
}

.parallax-vault-section {
  padding: 42px 0 36px;
  border-top: 1px solid rgba(201, 164, 92, 0.22);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.vault-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.vault-kicker {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

html[lang="ar"] .vault-kicker {
  font-family: var(--font-ar);
  letter-spacing: 0;
  font-size: 0.84rem;
}

.vault-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  font-weight: 600;
  color: var(--text-ivory);
}

html[lang="ar"] .vault-title {
  font-family: var(--font-ar);
  font-size: clamp(1.5rem, 2.3vw, 2rem);
}

.vault-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.55;
}

.parallax-stages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  perspective: 1200px;
}

.motion-stage-card {
  position: relative;
  background: rgba(16, 14, 12, 0.92);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.stage-viewport {
  position: relative;
  height: 330px;
  background: #050504;
  overflow: hidden;
  border-bottom: 1px solid rgba(201, 164, 92, 0.22);
}

.scan-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #D4AF37 25%, #FFF3B0 50%, #D4AF37 75%, transparent 100%);
  box-shadow: 0 0 18px 3px rgba(212, 175, 55, 0.65);
  z-index: 6;
  pointer-events: none;
  top: calc(var(--stage-progress, 0.5) * 100%);
}

.stage1-bg-fresco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
  will-change: transform;
  transform: scale(calc(1.02 + var(--stage1-prog, 0.5) * 0.08)) translate3d(calc(var(--stage1-prog, 0.5) * -14px), 0, 0);
}

.stage1-floating-head {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.85));
  will-change: transform;
  transform: translate3d(calc((1 - var(--stage1-prog, 0.5)) * -64px), calc((1 - var(--stage1-prog, 0.5)) * 24px), 0) scale(calc(0.92 + var(--stage1-prog, 0.5) * 0.1));
}

.stage1-floating-piece {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.55));
  will-change: transform;
  transform: translate3d(calc((1 - var(--stage1-prog, 0.5)) * 75px), calc((1 - var(--stage1-prog, 0.5)) * -32px), 0) rotate(calc((1 - var(--stage1-prog, 0.5)) * -12deg)) scale(calc(0.94 + var(--stage1-prog, 0.5) * 0.08));
}

.stage2-base-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform, filter;
  filter: brightness(calc(0.85 + (1 - var(--stage2-prog, 0.5)) * 0.25));
  transform: scale(1.14) translate3d(calc((0.5 - var(--stage2-prog, 0.5)) * 42px), calc((0.5 - var(--stage2-prog, 0.5)) * -18px), 0);
}

.stage2-reveal-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 3;
  will-change: clip-path, transform;
  clip-path: inset(0 calc((1 - var(--stage2-prog, 0.5)) * 100%) 0 0);
  transform: scale(1.14) translate3d(calc((var(--stage2-prog, 0.5) - 0.5) * 48px), calc((var(--stage2-prog, 0.5) - 0.5) * 20px), 0);
}

.stage2-wipe-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(212,175,55,0.2) 0%, #FFE07D 50%, rgba(212,175,55,0.2) 100%);
  box-shadow: 0 0 18px 3px rgba(212, 175, 55, 0.85);
  z-index: 5;
  left: calc(var(--stage2-prog, 0.5) * 100%);
  transform: translateX(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage2-wipe-knob {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 9, 8, 0.92);
  border: 1.5px solid var(--gold-primary);
  color: var(--gold-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.65);
}

.stage-badge-row {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.stage-pill {
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(10, 9, 8, 0.88);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html[lang="ar"] .stage-pill {
  letter-spacing: 0;
  font-size: 0.74rem;
}

.stage-meter {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(10, 9, 8, 0.85);
  border: 1px solid rgba(244, 239, 230, 0.22);
  color: var(--text-ivory);
  font-size: 0.7rem;
  font-family: monospace;
}

.stage-body {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-title {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--text-ivory);
}

html[lang="ar"] .stage-title {
  font-family: var(--font-ar);
  font-size: 1.12rem;
}

.stage-desc {
  font-size: 0.83rem;
  line-height: 1.56;
  color: var(--text-parchment);
}

.stage-scrubber {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid rgba(201, 164, 92, 0.16);
  font-size: 0.73rem;
  color: var(--gold-antique);
}

.stage-range {
  flex: 1;
  accent-color: var(--gold-primary);
  cursor: pointer;
  height: 4px;
}

.parallax-stills-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 8px;
  align-items: stretch;
}

.still-parallax-card {
  position: relative;
  background: rgba(18, 16, 14, 0.92);
  border: 1px solid rgba(201, 164, 92, 0.32);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.still-img-wrap {
  height: 215px;
  overflow: hidden;
  position: relative;
  background: #070605;
  border-bottom: 1px solid rgba(201, 164, 92, 0.2);
}

.still-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  will-change: transform;
  transform: scale(var(--still-scale, 1.06)) translate3d(var(--still-x, 0px), var(--still-y, 0px), 0);
  transition: transform 0.12s ease-out;
}

.still-caption {
  padding: 12px 15px;
}

.still-caption h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--gold-primary);
  margin-bottom: 3px;
}

html[lang="ar"] .still-caption h4 {
  font-family: var(--font-ar);
  font-size: 0.96rem;
}

.still-caption p {
  font-size: 0.77rem;
  color: var(--text-parchment);
  line-height: 1.45;
}

.footer-bar {
  margin-top: 18px;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(201, 164, 92, 0.24);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.contact-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-parchment);
  text-decoration: none;
  font-weight: 500;
}

.contact-item strong {
  color: var(--gold-primary);
  font-weight: 600;
}

.copyright-note {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.cartouche-mini {
  height: 22px;
  width: auto;
  opacity: 0.9;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 5, 4, 0.92);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  max-width: 900px;
  width: 100%;
  background: #12100E;
  border: 1px solid var(--gold-primary);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(201, 164, 92, 0.2);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-primary);
}

.modal-close {
  background: transparent;
  border: 1px solid rgba(201, 164, 92, 0.35);
  color: var(--text-ivory);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.8rem;
}

.modal-video {
  width: 100%;
  display: block;
  max-height: 70vh;
  background: #000;
}

@media (max-width: 980px) {
  .main-stage, .parallax-stages-grid, .parallax-stills-ribbon {
    grid-template-columns: 1fr;
  }
  .episode-card.secondary {
    grid-template-columns: 160px 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 0 18px;
  }
  .top-bar {
    flex-wrap: wrap;
    padding: 14px 18px;
    margin: 0 -18px;
  }
  .brand-meta, .brand-divider, .top-cta, .scroll-cue-pill {
    display: none;
  }
  .brand-logo-img {
    height: 36px;
  }
  .hero-headline {
    font-size: 2rem;
  }
  .episode-card.secondary {
    grid-template-columns: 1fr;
  }
  .episode-card.secondary .ep-media {
    height: 175px;
  }
  .footer-bar, .contact-items {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
.mystery-spotlight-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    circle 145px at calc(32% + var(--stage1-prog, 0.5) * 38%) calc(48% - var(--stage1-prog, 0.5) * 12%),
    rgba(255, 236, 179, 0.22) 0%,
    rgba(212, 175, 55, 0.12) 42%,
    rgba(8, 7, 6, 0.72) 85%
  );
  will-change: background;
}

.golden-compass-overlay {
  position: absolute;
  top: 50%;
  left: calc(34% + var(--stage1-prog, 0.5) * 34%);
  width: 156px;
  height: 156px;
  margin-top: -78px;
  margin-left: -78px;
  border: 1.5px dashed rgba(212, 175, 55, 0.75);
  border-radius: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 32px rgba(212, 175, 55, 0.35), inset 0 0 24px rgba(212, 175, 55, 0.2);
  pointer-events: none;
  will-change: transform, left;
  transform: rotate(calc(var(--stage1-prog, 0.5) * 140deg)) scale(calc(0.92 + var(--stage1-prog, 0.5) * 0.16));
}

.golden-compass-overlay::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(244, 239, 230, 0.35);
  border-radius: 50%;
}

.mystery-glyph {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.9);
  transform: rotate(calc(var(--stage1-prog, 0.5) * -140deg));
}

.modal-body-content {
  display: flex;
  flex-direction: column;
}

.modal-cta-bar {
  padding: 16px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #14110E;
  border-top: 1px solid rgba(201, 164, 92, 0.22);
}

.modal-cta-bar p {
  font-size: 0.84rem;
  color: var(--text-parchment);
  max-width: 560px;
  line-height: 1.5;
}


/* === CLEAN ALIGNMENT & HOVER MORPH EFFECT OVERRIDES (v5) === */
.hero-copy,
.episode-card,
.motion-stage-card,
.still-parallax-card {
  transform: none !important;
}

.episode-card:hover,
.motion-stage-card:hover,
.still-parallax-card:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.85), 0 0 28px rgba(212, 175, 55, 0.22);
}

.episode-card .ep-img {
  transform: scale(1.02);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), filter 0.65s ease;
}

.episode-card:hover .ep-img {
  transform: scale(1.09);
  filter: contrast(1.06) brightness(1.06);
}

/* Stage 1 Hover Effect */
#stageCard1 .stage1-bg-fresco {
  transform: scale(1.02);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), filter 0.75s ease;
}

#stageCard1:hover .stage1-bg-fresco {
  transform: scale(1.1);
  filter: brightness(1.12) contrast(1.06);
}

#stageCard1 .golden-compass-overlay {
  left: 50% !important;
  top: 52% !important;
  transform: rotate(0deg) scale(0.95) !important;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease, border-color 0.6s ease;
}

#stageCard1:hover .golden-compass-overlay {
  transform: rotate(90deg) scale(1.08) !important;
  border-color: #FFE07D;
  box-shadow: 0 0 42px rgba(212, 175, 55, 0.6), inset 0 0 28px rgba(212, 175, 55, 0.32);
}

#stageCard1 .mystery-glyph {
  transform: rotate(0deg) !important;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), text-shadow 0.6s ease;
}

#stageCard1:hover .mystery-glyph {
  transform: rotate(-90deg) scale(1.1) !important;
  text-shadow: 0 0 26px rgba(255, 224, 125, 1);
}

/* Stage 2 Hover Image Morph Effect (Image 1 -> Image 2 on Hover) */
.hover-morph-card {
  cursor: pointer;
}

.hover-morph-card .morph-img-first {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  opacity: 1;
  transform: scale(1.01);
  filter: brightness(0.96);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.65s ease;
}

.hover-morph-card .morph-img-second {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 2;
  opacity: 0;
  transform: scale(1.12) rotate(-1.5deg);
  filter: brightness(1.15) contrast(1.08) drop-shadow(0 12px 30px rgba(0,0,0,0.8));
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.65s ease;
}

.hover-morph-card .morph-gold-flare {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 224, 125, 0.32) 48%,
    rgba(212, 175, 55, 0.45) 52%,
    transparent 80%
  );
  transform: translateX(-120%);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.hover-morph-card:hover .morph-img-first,
.hover-morph-card.is-flipped .morph-img-first {
  opacity: 0;
  transform: scale(1.09);
  filter: blur(4px) brightness(0.6);
}

.hover-morph-card:hover .morph-img-second,
.hover-morph-card.is-flipped .morph-img-second {
  opacity: 1;
  transform: scale(1.02) rotate(0deg);
  filter: brightness(1.04) contrast(1.04);
}

.hover-morph-card:hover .morph-gold-flare,
.hover-morph-card.is-flipped .morph-gold-flare {
  transform: translateX(120%);
}

.hover-morph-card:hover .stage-meter,
#stageCard1:hover .stage-meter {
  background: linear-gradient(135deg, #D4AF37 0%, #B38B2D 100%);
  color: #0A0908;
  border-color: #FFE07D;
  font-weight: 700;
}

/* 3 Bottom Cards — Equal Height, Straight Row, Clean Framing */
.parallax-stills-ribbon {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

.still-parallax-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  margin: 0 !important;
}

.still-img-wrap {
  height: 225px !important;
  overflow: hidden !important;
  position: relative !important;
  background: #070605 !important;
}

.still-img-wrap img.ribbon-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 14% !important;
  transform: scale(1.01) !important;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease !important;
}

.still-parallax-card:hover .still-img-wrap img.ribbon-img {
  transform: scale(1.08) !important;
  filter: brightness(1.08) contrast(1.04) !important;
}

.still-caption {
  padding: 16px 18px !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

@media (max-width: 980px) {
  .parallax-stills-ribbon {
    grid-template-columns: 1fr !important;
  }
}


/* === FIXED HEADER AT TOP OF VIEWPORT (v7) === */
.top-bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 14px max(32px, calc((100vw - 1276px) / 2)) !important;
  z-index: 200 !important;
  background: rgba(10, 9, 8, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(201, 164, 92, 0.28) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65) !important;
}

.page-shell {
  padding-top: 82px !important;
}

@media (max-width: 640px) {
  .top-bar {
    padding: 12px 18px !important;
  }
  .page-shell {
    padding-top: 72px !important;
  }
}


/* === UNIFORM HERO COLUMNS & EQUAL EPISODE CARDS (v8) === */
.main-stage {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 28px !important;
  align-items: stretch !important;
  padding: 28px 0 32px !important;
}

.hero-copy {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
  background: rgba(18, 16, 14, 0.86) !important;
  border: 1px solid var(--gold-border) !important;
  border-radius: 16px !important;
  padding: 28px 30px !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7) !important;
  gap: 16px !important;
}

.hero-headline {
  font-size: clamp(1.95rem, 2.65vw, 2.55rem) !important;
  line-height: 1.16 !important;
  margin: 0 !important;
}

html[lang="ar"] .hero-headline {
  font-size: clamp(1.75rem, 2.35vw, 2.25rem) !important;
  line-height: 1.32 !important;
}

.hero-lead {
  max-width: 100% !important;
  font-size: 0.94rem !important;
  line-height: 1.62 !important;
  margin: 0 !important;
}

.creator-badge {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
}

.cta-cluster {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin-top: 2px !important;
}

.cta-cluster .btn-gold,
.cta-cluster .btn-outline {
  width: 100% !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 13px 16px !important;
}

.showcase-column {
  display: grid !important;
  grid-template-rows: 1fr 1fr !important;
  gap: 20px !important;
  height: 100% !important;
}

.episode-card,
.episode-card.uniform-card,
.episode-card.featured,
.episode-card.secondary {
  display: grid !important;
  grid-template-columns: 225px 1fr !important;
  height: 100% !important;
  min-height: 235px !important;
  border-radius: 16px !important;
  align-items: stretch !important;
}

.episode-card .ep-media {
  height: 100% !important;
  min-height: 100% !important;
  width: 225px !important;
}

.episode-card .ep-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.episode-card .ep-overlay-badges {
  top: 10px !important;
  left: 10px !important;
  right: 10px !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  bottom: 10px !important;
}

.episode-card .ep-content {
  padding: 18px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
  gap: 8px !important;
}

.episode-card .ep-title {
  font-size: 1.16rem !important;
  line-height: 1.24 !important;
}

.episode-card .ep-desc {
  font-size: 0.81rem !important;
  line-height: 1.5 !important;
}

@media (max-width: 1080px) {
  .main-stage {
    grid-template-columns: 1fr !important;
  }
  .showcase-column {
    grid-template-rows: auto !important;
  }
}

@media (max-width: 680px) {
  .episode-card,
  .episode-card.uniform-card {
    grid-template-columns: 1fr !important;
  }
  .episode-card .ep-media {
    width: 100% !important;
    height: 190px !important;
  }
  .cta-cluster {
    grid-template-columns: 1fr !important;
  }
}


/* === ARABIC LINE-HEIGHT & BREATHING ROOM + CLEAN EP1 ARTWORK CROP (v9) === */
html[lang="ar"] .hero-headline {
  line-height: 1.58 !important;
  letter-spacing: 0 !important;
}

html[lang="ar"] .hero-lead {
  line-height: 1.85 !important;
}

html[lang="ar"] .ep-title,
html[lang="ar"] .stage-title,
html[lang="ar"] .vault-title,
html[lang="ar"] .still-caption h4 {
  line-height: 1.52 !important;
}

html[lang="ar"] .ep-desc,
html[lang="ar"] .stage-desc,
html[lang="ar"] .still-caption p,
html[lang="ar"] .vault-subtitle {
  line-height: 1.78 !important;
}

html[lang="ar"] .creator-role,
html[lang="ar"] .creator-quote {
  line-height: 1.65 !important;
}

#ep1HeroImg {
  object-position: 82% center !important;
}


/* === LOCK HEADER DIRECTION & DIMENSIONS ACROSS ALL LANGUAGES (v10) === */
.top-bar,
html[lang="ar"] .top-bar,
html[dir="rtl"] .top-bar {
  direction: ltr !important;
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  box-sizing: border-box !important;
}

.top-bar .brand-cluster,
.top-bar .nav-actions,
.top-bar .lang-switcher {
  direction: ltr !important;
}

html[lang="ar"] .top-bar .brand-title {
  font-family: var(--font-display) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.18em !important;
}

.top-bar .scroll-cue-pill,
.top-bar .top-cta {
  height: 36px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}


/* === WIDER CINEMATIC CONTAINER & RICHER AMBIENT SIDES (v12) === */
.page-shell {
  max-width: 1660px !important;
  width: 94vw !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.top-bar,
html[lang="ar"] .top-bar,
html[dir="rtl"] .top-bar {
  padding-left: max(3vw, calc((100vw - 1660px) / 2 + 16px)) !important;
  padding-right: max(3vw, calc((100vw - 1660px) / 2 + 16px)) !important;
}

.ambient-fresco {
  inset: -8% -4% !important;
  opacity: 0.32 !important;
  filter: contrast(1.08) saturate(0.88) !important;
  mask-image: radial-gradient(ellipse 120% 90% at 50% 42%, black 45%, rgba(0,0,0,0.45) 78%, transparent 100%) !important;
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 42%, black 45%, rgba(0,0,0,0.45) 78%, transparent 100%) !important;
}

.ambient-canvas {
  background:
    radial-gradient(ellipse 110% 80% at 50% 24%, rgba(201, 164, 92, 0.18) 0%, rgba(18, 16, 14, 0.52) 60%, rgba(10, 9, 8, 0.82) 100%),
    linear-gradient(180deg, rgba(10, 9, 8, 0.45) 0%, rgba(10, 9, 8, 0.76) 65%, rgba(10, 9, 8, 0.92) 100%) !important;
}

.main-stage {
  grid-template-columns: 1.05fr 1fr !important;
  gap: 28px !important;
}

.episode-card,
.episode-card.primary,
.episode-card.secondary,
.episode-card.uniform-card {
  grid-template-columns: 235px 1fr !important;
}

@media (max-width: 1180px) {
  .main-stage {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 680px) {
  .episode-card,
  .episode-card.primary,
  .episode-card.secondary,
  .episode-card.uniform-card {
    grid-template-columns: 1fr !important;
  }
}


/* === FULL-BLEED RENAISSANCE GALLERY AMBIENCE & WIDER SHELL (v13) === */
.page-shell {
  max-width: 1800px !important;
  width: 95vw !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.top-bar,
html[lang="ar"] .top-bar,
html[dir="rtl"] .top-bar {
  padding-left: max(2.5vw, calc((100vw - 1800px) / 2 + 12px)) !important;
  padding-right: max(2.5vw, calc((100vw - 1800px) / 2 + 12px)) !important;
}

.ambient-fresco {
  inset: -6% -2% !important;
  opacity: 0.34 !important;
  filter: contrast(1.08) saturate(0.92) !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

.ambient-canvas {
  background:
    radial-gradient(ellipse 130% 95% at 50% 30%, rgba(212, 175, 55, 0.16) 0%, rgba(24, 19, 14, 0.54) 65%, rgba(16, 13, 10, 0.72) 100%),
    linear-gradient(90deg, rgba(201, 164, 92, 0.08) 0%, transparent 12%, transparent 88%, rgba(201, 164, 92, 0.08) 100%),
    linear-gradient(180deg, rgba(14, 12, 10, 0.42) 0%, rgba(14, 12, 10, 0.68) 65%, rgba(12, 10, 8, 0.84) 100%) !important;
}
