/* ═══════════════════════════════════════════════════════════════════════════
   معهد البيان — تجربة سينمائية
   Navy #0d1920 · Gold #c9a227 · Typography · Motion
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --navy: #0d1920;
  --navy-mid: #13242e;
  --navy-light: #1a3342;
  --navy-soft: #243d4d;
  --gold: #c9a227;
  --gold-bright: #e4b82e;
  --gold-soft: rgba(201, 162, 39, 0.25);
  --gold-subtle: rgba(201, 162, 39, 0.08);
  --white: #f8f6f2;
  --white-90: rgba(248, 246, 242, 0.9);
  --white-70: rgba(248, 246, 242, 0.7);
  --black: #05080a;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --font-display: 'Amiri', serif;
  --font-body: 'Noto Kufi Arabic', sans-serif;
  --font-mono: 'Readex Pro', sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.2);
  --shadow-gold: 0 0 40px rgba(201, 162, 39, 0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 112.5%; /* 18px base — قراءة أوضح */
}
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  background: var(--navy);
  color: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── Ritual curtain ─── */
.ritual-curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  transition: opacity 1.4s var(--ease-out-expo), visibility 1.4s;
}
.ritual-curtain.hidden { opacity: 0; visibility: hidden; }
.ritual-black {
  position: absolute;
  inset: 0;
  background: var(--black);
  animation: ritual-hold 1.5s var(--ease-out-expo) forwards;
}
.ritual-breath {
  position: absolute;
  inset: 0;
  background: var(--black);
  opacity: 0;
  animation: breath 0.8s var(--ease-out-expo) 1.5s forwards;
}
@keyframes ritual-hold { to { opacity: 1; } }
@keyframes breath {
  0% { opacity: 0; }
  50% { opacity: 0.4; }
  100% { opacity: 0; }
}

.main-content {
  opacity: 0;
  transition: opacity 1s var(--ease-out-expo) 2.2s;
}
.main-content.ritual-done { opacity: 1; }

/* ─── شريط تقدم التمرير ─── */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: rgba(201, 162, 39, 0.12);
  z-index: 101;
  pointer-events: none;
}
.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  border-radius: 0 0 2px 0;
  transition: width 0.12s ease-out;
}

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-lg);
  background: rgba(13, 25, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.1);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out-expo);
}
.nav.visible { transform: translateY(0); }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--white);
}
.nav-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-soft);
}
.nav-links {
  display: flex;
  gap: var(--space-lg);
}
.nav-links a {
  font-size: 1.05rem;
  color: var(--white-70);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: width 0.3s var(--ease-out-expo);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ─── Sections base ─── */
.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-3xl) var(--space-lg);
  position: relative;
}
.section-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  opacity: 0;
  transform: translate(24px, 12px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo), letter-spacing 0.6s var(--ease-out-expo);
}
.section.revealed .section-label {
  transform: translate(0, 0);
  letter-spacing: 0.2em;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out-expo) 0.1s, transform 0.8s var(--ease-out-expo) 0.1s;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.4rem;
  right: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
  transition: width 0.8s var(--ease-out-expo) 0.4s;
}
.section.revealed .section-title::after { width: 100%; }
.section-lead {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--white-70);
  max-width: 620px;
  margin: 0 auto var(--space-xl);
  line-height: 1.85;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease-out-expo) 0.2s, transform 0.8s var(--ease-out-expo) 0.2s;
}
.section-subtitle {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold-soft);
  margin: var(--space-lg) 0 var(--space-sm);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease-out-expo) 0.2s, transform 0.7s var(--ease-out-expo) 0.2s;
}
.section-close {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  margin-top: var(--space-lg);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease-out-expo) 0.3s, transform 0.7s var(--ease-out-expo) 0.3s;
}
.section-intro {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--white-70);
  max-width: 560px;
  margin: 0 auto var(--space-lg);
  line-height: 1.8;
}
.section-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, var(--navy-light) 0%, transparent 60%),
              var(--navy);
  pointer-events: none;
}
.section-bg-gold {
  background: radial-gradient(ellipse 100% 60% at 50% 20%, var(--gold-subtle) 0%, transparent 50%),
              linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 100%);
}

/* Reveal: when .revealed is added by JS */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.section.revealed .reveal-item,
.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* كشف الصور بتكبير خفيف */
.reveal-item .legacy-frame img,
.reveal-item .tribute-frame img {
  transform: scale(1.05);
  transition: transform 1.2s var(--ease-out-expo);
}
.section.revealed .legacy-frame img,
.reveal-item.revealed .tribute-frame img,
.section.revealed .tribute-frame img {
  transform: scale(1);
}
.section.revealed .section-label { transition-delay: 0s; }
.section.revealed .section-title { transition-delay: 0.05s; }
.section.revealed .section-lead { transition-delay: 0.1s; }
.section.revealed .section-subtitle,
.section.revealed .section-close { transition-delay: 0.15s; }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
  padding: 0;
  justify-content: center;
  min-height: 100vh;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 2.8s var(--ease-in-out);
}
.hero-video-bw { filter: grayscale(1) contrast(1.05); }
.hero-video-color { filter: grayscale(0) contrast(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(13, 25, 32, 0.4) 0%,
    rgba(13, 25, 32, 0.6) 40%,
    rgba(13, 25, 32, 0.92) 100%);
  pointer-events: none;
}
.hero-grain {
  position: absolute;
  inset: 0;
  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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-lg);
  max-width: 720px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-lg);
  font-size: 1rem;
  color: var(--white-70);
  letter-spacing: 0.08em;
  animation: hero-badge-float 4s ease-in-out infinite;
}
@keyframes hero-badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero-badge img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-soft);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6.5vw, 4rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
  margin-bottom: var(--space-md);
}
.hero-title-sequential { margin-bottom: var(--space-xl); }
.hero-line {
  display: block;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  animation: hero-line-in 1.2s var(--ease-out-expo) forwards;
}
.hero-line .word { display: block; }
/* توقيت متتابع: كل سطر يظهر بعد فترة قراءة (~1.25 ثانية بين السطور) */
.hero-line-1 { animation-delay: 1.25s; }
.hero-line-2 { animation-delay: 2.5s; }
.hero-line-3 { animation-delay: 3.75s; }
.hero-line-4 { animation-delay: 5s; }
.hero-line-5 { animation-delay: 6.25s; }
.hero-line-6 { animation-delay: 7.5s; }
@keyframes hero-line-in {
  to { opacity: 1; transform: translateY(0); }
}
.hero-subtitle-line {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  font-style: italic;
  color: var(--white-90);
  line-height: 1.9;
  margin-top: 0.35em;
}
.hero-tagline-line {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-top: 0.6em;
}
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--white-70);
  letter-spacing: 0.1em;
  animation: fade-in 1s var(--ease-out-expo) 8.25s both;
}
.scroll-line {
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-soft), transparent);
  border-radius: 2px;
  animation: scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.6; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}
@keyframes fade-in { to { opacity: 1; } }

/* ═══════════════════════════════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════════════════════════════ */
.stats-bar {
  min-height: auto;
  padding: var(--space-xl) var(--space-lg);
  background: var(--navy-mid);
  border-top: 1px solid rgba(201, 162, 39, 0.12);
  border-bottom: 1px solid rgba(201, 162, 39, 0.08);
}
.stats-intro {
  font-size: 1.1rem;
  color: var(--white-70);
  margin-bottom: var(--space-md);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.stats-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-md) var(--space-xl);
  width: 100%;
  max-width: 900px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: transform 0.35s var(--ease-out-expo);
}
.stat.revealed .stat-num { animation: stat-pop 0.6s var(--ease-out-expo) forwards, stat-glow 1.2s var(--ease-out-expo) 0.4s forwards; }
@keyframes stat-pop {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes stat-glow {
  0% { filter: drop-shadow(0 0 0 rgba(201, 162, 39, 0)); }
  40% { filter: drop-shadow(0 0 12px rgba(201, 162, 39, 0.5)); }
  100% { filter: drop-shadow(0 0 0 rgba(201, 162, 39, 0)); }
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--gold);
}
.stat-label {
  font-size: 1rem;
  color: var(--white-70);
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gold-soft);
  border-radius: 1px;
}
@media (max-width: 600px) {
  .stat-divider { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-line { opacity: 1; transform: none; animation: none !important; }
  .hero-scroll-hint,
  .hero-badge,
  .ritual-black,
  .ritual-breath { animation: none !important; }
  .teachers-track { animation: none !important; }
  .scroll-line { animation: none !important; }
  .stat.revealed .stat-num { animation: none !important; }
  .section-title::after { transition: none !important; }
  .scroll-progress-bar { transition: none !important; }
  .champion-card::after,
  .value-card::after,
  .why-card::after,
  .system-card::after { display: none !important; }
  .section.revealed .timeline-point { animation: none !important; }
  .section-footer.revealed .footer-line { animation: none !important; }
  .reveal-item,
  .section-label,
  .section-title,
  .section-lead,
  .section-subtitle,
  .section-close { transition-duration: 0.2s !important; }
  .champion-card:hover .champion-img img,
  .teacher-card:hover,
  .value-card:hover,
  .system-card:hover { transition-duration: 0.2s !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LEGACY — 2020
   ═══════════════════════════════════════════════════════════════════════════ */
.legacy {
  background: var(--navy);
}
.legacy-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--navy);
  z-index: 5;
  transition: opacity 0.9s var(--ease-out-expo), visibility 0.9s;
}
.legacy-lock.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.legacy-lock-inner {
  text-align: center;
  padding: var(--space-lg);
}
.legacy-year {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}
.legacy-lock-p {
  font-size: 1.35rem;
  color: var(--navy-light);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.legacy-lock-highlight {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}
.legacy-lock-wait {
  font-size: 1.05rem;
  color: var(--navy-soft);
  margin-bottom: var(--space-sm);
}
.legacy-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border: 3px solid var(--gold);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.legacy-content {
  width: 100%;
  max-width: 1000px;
  transition: opacity 0.8s, filter 0.8s;
}
.legacy-content.scroll-locked {
  pointer-events: none;
  opacity: 0.4;
  filter: blur(4px);
}
.legacy-content.unlocked {
  opacity: 1;
  filter: blur(0);
}
.legacy-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  text-align: right;
}
@media (max-width: 768px) {
  .legacy-layout { grid-template-columns: 1fr; text-align: center; }
}
.legacy-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}
.legacy-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.55;
  margin-bottom: var(--space-sm);
}
.legacy-body {
  font-size: 1.25rem;
  color: var(--white-70);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}
.legacy-days {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
}
.legacy-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--gold-soft);
  box-shadow: var(--shadow-soft);
}
.legacy-frame img { width: 100%; }

/* ═══════════════════════════════════════════════════════════════════════════
   CHAMPIONS — نادي ٢٤٠
   ═══════════════════════════════════════════════════════════════════════════ */
.section-champions { position: relative; }
.champions-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.champion-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 2px solid var(--gold-soft);
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s var(--ease-out-expo), border-color 0.35s;
}
.champion-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, transparent 35%, rgba(255,255,255,0.08) 50%, transparent 65%, transparent 100%);
  background-size: 200% 100%;
  opacity: 0;
  pointer-events: none;
  border-radius: inherit;
}
.champion-card:hover::after {
  opacity: 1;
  animation: card-shine 0.7s var(--ease-out-expo) forwards;
}
@keyframes card-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.champion-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3), var(--shadow-gold);
  border-color: var(--gold-soft);
}
.champion-card.champion-featured {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.champion-img {
  position: absolute;
  inset: 0;
}
.champion-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo), filter 0.5s;
}
.champion-card:hover .champion-img img {
  transform: scale(1.08);
  filter: brightness(0.5) grayscale(0.3);
}
.champion-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(13, 25, 32, 0.95) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
  text-align: right;
}
.champion-card:hover .champion-info { opacity: 1; }
.champion-name {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.champion-year {
  font-size: 1rem;
  color: var(--white-90);
  margin-bottom: 0.3rem;
}
.champion-quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--white-70);
}
@media (max-width: 768px) {
  .champions-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
  .champion-card.champion-featured {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 3/4;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROMO
   ═══════════════════════════════════════════════════════════════════════════ */
.section-promo { background: var(--navy-mid); }
.promo-wrap { margin: var(--space-lg) 0; }
.promo-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/9;
  max-width: 920px;
  margin: 0 auto;
  border: 3px solid var(--gold);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(201, 162, 39, 0.2);
  transition: box-shadow 0.5s var(--ease-out-expo);
}
.promo-frame:hover {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 0 3px var(--gold), 0 0 32px rgba(201, 162, 39, 0.25);
}
.promo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}
.promo-video.paused { opacity: 0.85; }
.promo-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(to top, rgba(13, 25, 32, 0.9), transparent);
  font-size: 0.95rem;
  color: var(--white-70);
  text-align: center;
  pointer-events: none;
}
.timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-xl);
}
.timeline-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  min-width: 90px;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-sm);
  color: var(--white-70);
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.3s var(--ease-out-expo), box-shadow 0.35s;
}
.timeline-point:hover {
  background: var(--gold-subtle);
  color: var(--gold);
  border-color: var(--gold-soft);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 6px 24px rgba(201, 162, 39, 0.2);
}
.section.revealed .timeline-point {
  animation: timeline-in 0.6s var(--ease-out-expo) backwards;
}
.section.revealed .timeline-point:nth-child(1) { animation-delay: 0.1s; }
.section.revealed .timeline-point:nth-child(2) { animation-delay: 0.2s; }
.section.revealed .timeline-point:nth-child(3) { animation-delay: 0.3s; }
.section.revealed .timeline-point:nth-child(4) { animation-delay: 0.4s; }
@keyframes timeline-in {
  0% { opacity: 0; transform: translateY(12px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.timeline-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.timeline-word { font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   TEACHERS — عرض أفقي متحرك تلقائياً
   ═══════════════════════════════════════════════════════════════════════════ */
.section-teachers { position: relative; overflow: hidden; }
.teachers-track-wrap {
  width: 100%;
  margin-top: var(--space-xl);
  overflow: hidden;
  mask-image: linear-gradient(to left, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to left, transparent, black 6%, black 94%, transparent);
}
.teachers-track {
  display: flex;
  gap: var(--space-xl);
  width: max-content;
  padding: var(--space-lg) 0;
  animation: teachers-scroll 60s linear infinite;
}
.teachers-track:hover { animation-play-state: paused; }
@keyframes teachers-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}
.teacher-card {
  flex-shrink: 0;
  position: relative;
  width: 280px;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(201, 162, 39, 0.2);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s, border-color 0.3s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.teacher-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35), var(--shadow-gold);
  border-color: var(--gold-soft);
}
.teacher-img {
  position: absolute;
  inset: 0;
}
.teacher-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.teacher-role {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(to top, rgba(13, 25, 32, 0.96), transparent);
  font-size: 1.1rem;
  text-align: center;
  color: var(--gold);
}
@media (max-width: 768px) {
  .teacher-card { width: 220px; height: 280px; }
  .teachers-track { animation-duration: 50s; gap: var(--space-lg); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   نظامنا التعليمي
   ═══════════════════════════════════════════════════════════════════════════ */
.section-system { position: relative; }
.section-system .section-inner { max-width: 1000px; }
.system-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  text-align: right;
}
@media (max-width: 768px) {
  .system-grid { grid-template-columns: 1fr; }
}
.system-card {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-soft);
  background: rgba(13, 25, 32, 0.6);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s, border-color 0.35s;
}
.system-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--gold), var(--gold-bright));
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  transition: height 0.4s var(--ease-out-expo);
}
.system-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), var(--shadow-gold);
  border-color: var(--gold-soft);
}
.system-card:hover::before { height: 100%; }
.system-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  border: 2px solid var(--gold-soft);
  border-radius: 50%;
  margin-bottom: var(--space-sm);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s;
}
.system-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, transparent 35%, rgba(255,255,255,0.05) 50%, transparent 65%, transparent 100%);
  background-size: 200% 100%;
  opacity: 0;
  pointer-events: none;
  border-radius: inherit;
}
.system-card:hover::after {
  opacity: 1;
  animation: card-shine 0.7s var(--ease-out-expo) forwards;
}
.system-card:hover .system-card-icon {
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(201, 162, 39, 0.35);
}
.system-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}
.system-card-text {
  font-size: 1.05rem;
  color: var(--white-70);
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════════════════
   VALUES
   ═══════════════════════════════════════════════════════════════════════════ */
.section-values { background: var(--navy-mid); }
.values-inner { max-width: 800px; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  text-align: center;
}
@media (max-width: 700px) {
  .values-grid { grid-template-columns: 1fr; }
}
.value-card {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-soft);
  background: rgba(201, 162, 39, 0.03);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s, border-color 0.3s;
  overflow: hidden;
}
.value-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, transparent 35%, rgba(255,255,255,0.06) 50%, transparent 65%, transparent 100%);
  background-size: 200% 100%;
  opacity: 0;
  pointer-events: none;
  border-radius: inherit;
}
.value-card:hover::after {
  opacity: 1;
  animation: card-shine 0.7s var(--ease-out-expo) forwards;
}
.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.22), var(--shadow-gold);
  border-color: var(--gold-soft);
}
.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 50%;
}
.value-card h3 {
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: var(--space-xs);
}
.value-card p {
  font-size: 1.1rem;
  color: var(--white-70);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TRIBUTE
   ═══════════════════════════════════════════════════════════════════════════ */
.section-tribute {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 50%, rgba(201, 162, 39, 0.06) 100%);
}
.tribute-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 80%, var(--gold-subtle) 0%, transparent 50%);
  pointer-events: none;
}
.tribute-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  align-items: center;
  max-width: 900px;
  text-align: right;
}
@media (max-width: 700px) {
  .tribute-inner { grid-template-columns: 1fr; text-align: center; }
}
.tribute-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--gold-soft);
  box-shadow: var(--shadow-soft);
}
.tribute-frame img { width: 100%; }
.tribute-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
  margin-top: var(--space-sm);
}
.tribute-quote {
  margin: 0;
  padding: var(--space-lg);
}
.tribute-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  line-height: 2;
  color: var(--white-90);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.section-footer {
  min-height: 70vh;
  background: var(--white);
  color: var(--navy);
  padding: var(--space-2xl) var(--space-md);
}
.footer-signature {
  text-align: center;
  margin-bottom: var(--space-md);
}
.footer-line {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.55;
  color: var(--navy);
  letter-spacing: 0.02em;
  transition: letter-spacing 0.8s var(--ease-out-expo), opacity 0.8s var(--ease-out-expo);
}
.section-footer.revealed .footer-line:first-of-type {
  animation: footer-line-in 1s var(--ease-out-expo) 0.1s backwards;
}
.section-footer.revealed .footer-line:last-of-type {
  animation: footer-line-in 1s var(--ease-out-expo) 0.35s backwards;
}
@keyframes footer-line-in {
  0% { opacity: 0; letter-spacing: 0.15em; transform: translateY(8px); }
  100% { opacity: 1; letter-spacing: 0.02em; transform: translateY(0); }
}
.footer-date {
  font-size: 1.1rem;
  color: var(--navy-soft);
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: var(--space-xl);
}
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  color: var(--navy-soft);
  text-align: center;
  line-height: 1.6;
}
.footer-contact {
  margin-top: var(--space-sm);
  font-size: 1.1rem;
}
.footer-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.footer-link:hover { opacity: 0.8; }

/* ═══════════════════════════════════════════════════════════════════════════
   لماذا معهد البيان؟
   ═══════════════════════════════════════════════════════════════════════════ */
.section-why { position: relative; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 640px) {
  .why-grid { grid-template-columns: 1fr; }
}
.why-card {
  text-align: right;
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-soft);
  background: rgba(201, 162, 39, 0.03);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s, border-color 0.3s;
}
.why-card {
  position: relative;
  overflow: hidden;
}
.why-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, transparent 35%, rgba(255,255,255,0.06) 50%, transparent 65%, transparent 100%);
  background-size: 200% 100%;
  opacity: 0;
  pointer-events: none;
  border-radius: inherit;
}
.why-card:hover::after {
  opacity: 1;
  animation: card-shine 0.7s var(--ease-out-expo) forwards;
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), var(--shadow-gold);
  border-color: var(--gold-soft);
}
.why-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  border: 2px solid var(--gold-soft);
  border-radius: 50%;
  margin-bottom: var(--space-sm);
}
.why-card h3 {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.why-card p {
  font-size: 1.1rem;
  color: var(--white-70);
  line-height: 1.75;
}
