:root{
  --bg:#0a0e15;
  --bg2:#0d131d;
  --gold:#e8b84b;
  --gold-soft:#f4d78a;
  --cyan:#3ec9f0;
  --text:#f3f1ea;
  --muted:#9aa6b8;
  --line:rgba(232,184,75,0.18);
}

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

html{
  background:var(--bg);
  color:var(--text);
  font-family:'Heebo', Arial, sans-serif;
}

body{
  background:var(--bg);
  color:var(--text);
  font-family:'Heebo', Arial, sans-serif;
  overflow-x:hidden;
}

html.no-scroll, html.no-scroll body{
  overflow:hidden;
  height:100%;
}

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

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

/* ===================== רקע כללי - מרקם מעגלים עדין ===================== */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 15% 20%, rgba(62,201,240,0.07), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(232,184,75,0.06), transparent 40%);
}

/* ===================== מסך פתיחה ===================== */
#splash{
  position:fixed;
  inset:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--bg2);
  transition:opacity .8s ease, visibility .8s ease;
}
#splash.hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.splash-bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(62,201,240,0.10), transparent 55%),
    radial-gradient(ellipse at 50% 90%, rgba(232,184,75,0.08), transparent 60%);
  animation:pulseGlow 6s ease-in-out infinite;
}
@keyframes pulseGlow{
  0%,100%{opacity:.7;}
  50%{opacity:1;}
}

.splash-content{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:28px;
  animation:fadeUp 1.4s ease both;
  padding:20px;
}
@keyframes fadeUp{
  from{opacity:0; transform:translateY(24px);}
  to{opacity:1; transform:translateY(0);}
}

.splash-eyebrow{
  letter-spacing:.35em;
  font-size:13px;
  color:var(--cyan);
  text-transform:none;
  font-weight:500;
}

.splash-logo{
  width:min(74vw, 360px);
  filter:drop-shadow(0 0 40px rgba(232,184,75,0.18));
}

.btn-primary{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 34px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--gold), var(--gold-soft));
  color:#161005;
  font-weight:700;
  font-size:16px;
  transition:transform .25s ease, box-shadow .25s ease;
  box-shadow:0 8px 30px rgba(232,184,75,0.25);
}
.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 36px rgba(232,184,75,0.35);
}
/* החץ מוגדר כברירת מחדל פונה שמאלה - כיוון "קדימה" בממשק RTL */

/* ===================== לוגו קבוע בפינה ===================== */
#corner-logo{
  position:fixed;
  top:18px;
  right:30px; /* פינה ימנית-עליונה של המסך */
  z-index:500;
  opacity:0;
  transition:opacity .8s ease;
}
html.started #corner-logo{opacity:1;}
#corner-logo img{
  width:170px;
  filter:drop-shadow(0 4px 16px rgba(0,0,0,0.55));
}

/* ===================== כפתור השתקת מוזיקה ===================== */
#mute-btn{
  position:fixed;
  bottom:24px;
  left:24px;
  z-index:500;
  width:46px;
  height:46px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(10,14,21,0.55);
  border:1px solid rgba(243,241,234,0.18);
  backdrop-filter:blur(6px);
  color:var(--text);
  opacity:0;
  transition:opacity .8s ease, border-color .25s ease, color .25s ease;
}
html.started #mute-btn{opacity:1;}
#mute-btn:hover{
  border-color:var(--cyan);
  color:var(--cyan);
}

/* ===================== פס התקדמות ===================== */
#progress-bar{
  position:fixed;
  top:0; right:0; left:0;
  height:3px;
  z-index:600;
  background:rgba(255,255,255,0.05);
}
#progress-fill{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, var(--cyan), var(--gold));
}

/* ===================== חוויית פתיחה נעולה (תמונה 0 + וידאו 1-6) ===================== */
#experience{
  position:relative;
  height:100vh;
  width:100%;
  overflow:hidden;
  background:#000;
}
.exp-layer{
  position:absolute;
  inset:0;
  opacity:0;
  visibility:hidden;
  transition:opacity .35s ease;
}
.exp-layer.active{
  opacity:1;
  visibility:visible;
}
.hero-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(6,9,14,0.55) 0%, rgba(6,9,14,0.35) 40%, rgba(8,11,17,0.85) 100%);
}
.hero-content{
  position:relative;
  z-index:2;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:22px;
  padding:20px;
}
.hero-brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:26px;
}
.hero-logo{
  width:clamp(220px, 26vw, 380px);
  filter:drop-shadow(0 8px 40px rgba(232,184,75,0.25));
}
.hero-sub{
  width:clamp(220px, 26vw, 380px);
  font-size:clamp(15px, 1.9vw, 19px);
  color:var(--text);
  font-weight:700;
  line-height:1.4;
}

.btn-outline{
  margin-top:8px;
  padding:14px 32px;
  border-radius:999px;
  border:1.5px solid rgba(243,241,234,0.4);
  color:var(--text);
  font-weight:500;
  font-size:15px;
  backdrop-filter:blur(4px);
  background:rgba(255,255,255,0.03);
  transition:all .25s ease;
}
.btn-outline:hover{
  border-color:var(--cyan);
  color:var(--cyan);
  background:rgba(62,201,240,0.08);
}

.scroll-hint{
  position:absolute;
  bottom:38px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:12px;
  letter-spacing:.15em;
}
.mouse-icon{
  width:22px;
  height:36px;
  border:1.5px solid var(--muted);
  border-radius:12px;
  position:relative;
}
.wheel{
  position:absolute;
  top:6px;
  left:50%;
  transform:translateX(-50%);
  width:3px;
  height:7px;
  border-radius:2px;
  background:var(--cyan);
  animation:scrollWheel 1.6s ease-in-out infinite;
}
@keyframes scrollWheel{
  0%{opacity:1; top:6px;}
  70%{opacity:0; top:18px;}
  100%{opacity:0; top:6px;}
}

/* ===================== שכבת הוידאו (image sequence, נעולה במקום) ===================== */
#stage-canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
}
.stage-fade{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 50%, rgba(5,8,13,0.6) 72%, rgba(4,6,10,0.9) 100%);
  pointer-events:none;
}
.caption{
  position:absolute;
  bottom:8%;
  right:0;
  left:0;
  z-index:2;
  text-align:center;
  padding:0 24px;
  opacity:0;
  transform:translateY(18px);
  transition:opacity .35s ease, transform .35s ease;
}
.caption.visible{
  opacity:1;
  transform:translateY(0);
}
.caption h2{
  display:inline-block;
  font-size:clamp(26px, 4.4vw, 48px);
  font-weight:800;
  letter-spacing:.01em;
  line-height:1.25;
  color:var(--text);
  text-shadow:
    0 4px 30px rgba(0,0,0,0.85),
    0 0 50px rgba(232,184,75,0.5),
    0 0 110px rgba(232,184,75,0.22);
  max-width:900px;
}
.caption h2::after{
  content:"";
  display:block;
  width:64px;
  height:3px;
  margin:16px auto 0;
  background:linear-gradient(90deg, var(--cyan), var(--gold));
  border-radius:2px;
  box-shadow:0 0 14px rgba(232,184,75,0.65);
}

/* ===================== סיום ===================== */
#closing{
  position:relative;
  min-height:90vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:18px;
  padding:80px 24px;
  overflow:hidden;
}
.closing-glow{
  position:absolute;
  inset:0;
  background:radial-gradient(ellipse at 50% 50%, rgba(232,184,75,0.10), transparent 60%);
  pointer-events:none;
}
.closing-logo{
  position:relative;
  width:min(60vw, 220px);
  margin-bottom:8px;
  filter:drop-shadow(0 0 30px rgba(62,201,240,0.15));
}
.closing-title{
  position:relative;
  font-size:clamp(24px, 4vw, 42px);
  font-weight:700;
  max-width:720px;
}
.closing-sub{
  position:relative;
  color:var(--cyan);
  letter-spacing:.1em;
  font-size:14px;
}
.credit{
  position:relative;
  margin-top:36px;
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:13px;
}
.credit img{
  width:34px;
  border-radius:8px;
}

@media (max-width:640px){
  #corner-logo img{width:48px;}
}
