/* =========================================================
   המסכים (scenes)
   ========================================================= */

main { position: relative; z-index: 2; }

.scene {
  position: relative; z-index: 2; min-height: 100svh;
  padding: calc(var(--top-h) + clamp(6px, 2vh, 24px)) var(--pad-x) clamp(54px, 8vh, 90px);
  display: flex; flex-direction: column; justify-content: center; scroll-snap-align: start; overflow-x: clip;
}

/* אלמנטים שנכנסים בהדרגה כשהמסך הופך פעיל */
[data-in] {
  opacity: 0; filter: blur(8px);
  transform: translate3d(0, 34px, 0);
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease), filter 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 85ms + 120ms);
}
[data-in='left']  { transform: translate3d(-60px, 0, 0); }
[data-in='right'] { transform: translate3d(60px, 0, 0); }
[data-in='zoom']  { transform: scale(0.86); }
[data-in='clip']  { transform: none; filter: none; clip-path: inset(0 0 100% 0); transition-property: opacity, clip-path; transition-duration: 0.9s, 1.2s; }
.scene.is-active [data-in] { opacity: 1; filter: blur(0); transform: none; }
.scene.is-active [data-in='clip'] { clip-path: inset(0 0 0 0); }

/* ---------------------------------------------------------
   דף הבית — תמונה בימין, טקסט משמאלה, רקע מטושטש מהפורטרט
   --------------------------------------------------------- */
#home { padding: 0; display: block; overflow: hidden; }

/* שכבת רקע כללית: הפורטרט מוגדל, מטושטש וחם */
.home-bgphoto {
  position: absolute; inset: -6%; z-index: 0; background: url('../images/photo.jpg') 50% 30% / cover no-repeat;
  filter: blur(46px) brightness(0.42) saturate(1.6); opacity: 0.9; transform: scale(1.1);
}
.home-bgphoto::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 80% at 62% 50%, transparent 0%, rgba(19, 11, 7, 0.62) 100%); }

/* עותק ענק ומטושטש של הפנים — נראה מאחורי הטקסט, כמו בעיצוב */
.home-ghost {
  position: absolute; z-index: 0; top: -22vh; left: calc(46% - 36vw); width: 72vw; height: calc(72vw * 4 / 3);
  background: url('../images/photo.jpg') 50% 30% / cover no-repeat;
  filter: blur(18px) brightness(0.78) saturate(1.85) sepia(0.28); opacity: 0.9; will-change: transform;
  -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent 100%); mask-image: radial-gradient(closest-side, #000 52%, transparent 100%);
}

.home-grid {
  position: relative; z-index: 2; height: 100svh; min-height: 640px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 110px);
  padding: var(--top-h) var(--pad-x) 52px;
}

/* מסגרת התמונה */
.photo-stage { position: relative; display: grid; place-items: center; perspective: 1200px; justify-self: start; margin-inline-start: clamp(0px, 2.4vw, 50px); }
.photo-tilt { position: relative; transform-style: preserve-3d; transition: transform 0.25s ease-out; will-change: transform; }
.photo {
  position: relative; width: min(34vw, 60vh); aspect-ratio: 3 / 4; overflow: hidden;
  outline: 1px solid rgba(255, 255, 255, 0.85); outline-offset: 3px; background: #2a160c;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 130px rgba(255, 90, 31, 0.18);
}
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: saturate(1.28) contrast(1.08) brightness(1.02); transform: scale(1.05); transition: transform 1.4s var(--ease); }
.scene.is-active .photo img { transform: scale(1); }
.photo::after { content: ''; position: absolute; inset: 0; mix-blend-mode: soft-light; background: linear-gradient(170deg, rgba(255, 120, 40, 0.5), rgba(70, 26, 8, 0.5)); pointer-events: none; }
.photo-glint { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.18) 50%, transparent 62%); transform: translateX(120%); pointer-events: none; }
.scene.is-active .photo-glint { animation: glint 2.6s 1.1s var(--ease) 1 forwards; }
@keyframes glint { to { transform: translateX(-120%); } }

/* טקסט ראשי */
.home-text { position: relative; justify-self: start; max-width: 40rem; }
.h1 { font-weight: 200; font-size: clamp(3.4rem, 7.1vw, 7.6rem); line-height: 0.98; letter-spacing: -0.02em; }
.h1 span { display: block; }
.h1 .o { color: var(--orange); font-weight: 300; }
.home-lead { margin-top: clamp(16px, 3vh, 34px); max-width: 28rem; font-size: clamp(1rem, 1.3vw, 1.3rem); color: rgba(247, 240, 233, 0.92); }
.home-text .btn { margin-top: clamp(18px, 3.6vh, 40px); }

/* נקודת SCROLL הקופצת */
.scroll-cue { position: absolute; left: var(--pad-x); bottom: clamp(104px, 14vh, 150px); display: flex; flex-direction: column; align-items: center; gap: 12px; direction: ltr; }
.scroll-cue .line { width: 1px; height: 7vh; background: linear-gradient(transparent, var(--line-soft)); }
.scroll-cue .ring { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; position: relative; }
.scroll-cue .ring::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 16px var(--orange); animation: bob 2.2s var(--ease-io) infinite; }
.scroll-cue .ring::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--orange); opacity: 0; animation: ping 2.2s ease-out infinite; }
.scroll-cue small { font-size: 0.62rem; letter-spacing: 0.4em; color: var(--muted); }
@keyframes bob { 0%, 100% { transform: translateY(-5px); } 50% { transform: translateY(5px); } }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }

/* חלקיקי אור צפים (GSAP) */
.particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute; border-radius: 50%; background: var(--orange); will-change: transform, opacity;
  box-shadow: 0 0 14px 2px rgba(255, 110, 40, 0.65);
}

/* גודל טקסט מינימלי נוח לקריאה */
.scroll-cue small { font-size: 0.7rem; }


/* "שהופכים": מודגש וגדול מעט מהמילים שסביבו */
.h1 .o { font-weight: 800; font-size: 1.12em; line-height: 0.92; }
