/* hero.css: night studio hero. A 3D hand made of light (js/modules/hero-3d.js) floats over a deep violet sky,
   lit warm from the top left and cool from behind. The light site then slides over it with a rounded edge. */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 2rem;
  padding: 96px var(--gutter) calc(clamp(2rem, 6vh, 4rem) + 48px);
  color: #F3ECFF;
  background:
    radial-gradient(38% 46% at 36% 30%, rgba(255, 170, 150, .16) 0%, rgba(255, 170, 150, 0) 70%),
    radial-gradient(45% 55% at 72% 40%, rgba(120, 130, 255, .14) 0%, rgba(120, 130, 255, 0) 70%),
    radial-gradient(120% 90% at 50% 38%, #241338 0%, #120A1F 55%, #08050E 100%);
}
/* soft light beams from above */
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 80%; z-index: -1; pointer-events: none;
  background: conic-gradient(from 200deg at 30% 0%, transparent 0 8deg, rgba(255, 214, 196, .07) 12deg, transparent 22deg,
              rgba(190, 170, 255, .05) 30deg, transparent 40deg);
  filter: blur(18px);
}
.hero__stage { position: absolute; inset: 0; z-index: 0; }
.hero__stage canvas { display: block; width: 100%; height: 100%; }

/* copy: bottom right (RTL start) */
.hero__copy { position: relative; z-index: 2; grid-column: 1; max-width: 34rem; }
.hero h1 { font: 400 clamp(2.1rem, 1.3rem + 2.5vw, 3.7rem)/1.08 var(--font-display); color: #fff; text-shadow: 0 0 40px rgba(201, 168, 255, .45); }
.hero__eyebrow { display: block; margin-bottom: .9rem; font: 500 .8rem/1.2 var(--font-body); letter-spacing: .22em; color: #CDB8F5; text-shadow: none; }
.hero__sub { display: grid; gap: .6rem; margin-top: 1.1rem; font-size: 1.04rem; line-height: 1.65; color: #E3D9F7; }
.hero__line { display: block; }
/* the four tracks as a quiet dotted line, then the private-learning advantage */
.hero__tracks { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin-top: 1.2rem; font-size: .92rem; color: #F3ECFF; }
.hero__tracks li { position: relative; }
.hero__tracks li + li::before { content: "•"; position: absolute; inset-inline-start: -.62rem; color: #CEA2DB; }
.hero__perk { margin-top: .55rem; font-size: .92rem; color: #CDB8F5; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.hero .btn--solid {
  background: linear-gradient(100deg, #FFD3C2, #F1B8F0 55%, #B9B5FF); color: #2A1840;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset, 0 10px 40px -8px rgba(241, 184, 240, .55);
}
.hero .btn--ghost { border-color: rgba(233, 222, 255, .55); color: #F3ECFF; }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* layout: copy (right) and the story reel (left) share the lower part; the facts run as one quiet strip at the bottom */
.hero { grid-template-rows: 1fr auto; row-gap: clamp(1.6rem, 4vh, 2.6rem); }
.hero__copy { grid-row: 1; align-self: end; }
.hero__side { position: relative; z-index: 2; grid-column: 2; grid-row: 1; align-self: end; justify-self: end; }
.hero .reel-slot { margin: 0; }
.hero .reel-slot, .hero .reel-slot * { color: #EADFFF; }
.hero__facts {
  position: relative; z-index: 2; grid-column: 1 / -1; grid-row: 2;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(233, 222, 255, .18); padding-top: 1.2rem;
}
.hero__facts li { display: flex; align-items: baseline; gap: .7rem; padding-inline: 1.2rem; border-inline-start: 1px solid rgba(233, 222, 255, .14); }
.hero__facts li:first-child { padding-inline-start: 0; border: 0; }
.hero__facts b { font: 200 clamp(1.7rem, 1.2rem + 1.4vw, 2.5rem)/1 var(--font-body); color: #fff; }
.hero__facts li:last-child b { font: 400 clamp(1.3rem, 1rem + .9vw, 1.8rem)/1 var(--font-display); }
.hero__facts span { font-size: .9rem; color: #CDB8F5; }

/* the text arrives after the hand has formed; without motion or WebGL it is simply there */
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
html:not(.a11y-no-motion) .hero--3d .hero__copy,
html:not(.a11y-no-motion) .hero--3d .hero__side,
html:not(.a11y-no-motion) .hero--3d .hero__facts { animation: hero-in 1.2s 3.4s var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) { .hero--3d .hero__copy, .hero--3d .hero__side, .hero--3d .hero__facts { animation: none !important; } }

/* the light site slides over the night hero */
.hero + .section { position: relative; z-index: 1; margin-top: -48px; border-radius: 48px 48px 0 0; background: var(--bg); }

/* nav over the dark hero: light text and a white logo until the page scrolls */
.nav:not(.is-scrolled) .nav__links a { color: #EADFFF; }
.nav:not(.is-scrolled) .nav__logo img { filter: brightness(0) invert(1); }
.nav:not(.is-scrolled) .nav__toggle { background: rgba(255, 255, 255, .12); }
.nav:not(.is-scrolled) .nav__toggle span { background: #fff; }
.nav:not(.is-scrolled) .nav__ig { color: #fff; }
.nav:not(.is-scrolled) .nav__cta { background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 1px rgba(255, 255, 255, .3) inset; }

/* tablet and phone: hand on top, text below */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 54svh; gap: 1.6rem; }
  .hero { grid-template-rows: auto; }
  .hero__copy, .hero__side, .hero__facts { grid-column: 1; grid-row: auto; }
  .hero__side { justify-self: center; }
  .hero__facts { grid-template-columns: repeat(3, 1fr); row-gap: 1rem; }
  .hero__facts li { flex-direction: column; gap: .3rem; padding-inline: .8rem; }
  .hero__facts span { font-size: .82rem; line-height: 1.3; }
  .nav:not(.is-scrolled) .nav__links.is-open a { color: var(--plum); }
}

/* drag to spin: grab cursor on the hero background, a hint pill that leaves after the first spin */
.hero--3d { cursor: grab; touch-action: pan-y; }
.hero--3d.is-dragging { cursor: grabbing; }
.hero--3d.is-dragging * { user-select: none; }
.hero__copy a, .hero__side, .hero__side * { cursor: pointer; }
.hero__hint {
  position: absolute; white-space: nowrap; z-index: 3; left: 50%; top: clamp(5.5rem, 12vh, 7rem); translate: -50% 0;
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: var(--radius-pill);
  font-size: .82rem; letter-spacing: .06em; color: #F3ECFF; pointer-events: none;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(233, 222, 255, .25);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: hint-in 1s .6s var(--ease-out) both, hint-nudge 2.6s 2s ease-in-out infinite;
  transition: opacity .6s;
}
.hero__hint svg { width: 18px; height: 18px; }
.hero.has-spun .hero__hint { opacity: 0; }
@keyframes hint-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hint-nudge { 50% { transform: translateX(-6px); } }
@media (max-width: 1000px) { .hero__hint { top: auto; bottom: calc(100% - 50svh); } }

/* mute switch for the reveal sound (js/modules/hero-sound.js) */
.hero__sound {
  position: absolute; z-index: 3; inset-inline-start: var(--gutter); top: clamp(5.5rem, 12vh, 7rem);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  color: #F3ECFF; background: rgba(255, 255, 255, .08); border: 1px solid rgba(233, 222, 255, .25);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color .3s;
}
.hero__sound:hover { background: rgba(255, 255, 255, .16); }
.hero__sound svg { width: 20px; height: 20px; }
@media (max-width: 1000px) { .hero__sound { top: 5rem; } }
.hero__sound:not(.is-playing) { animation: sound-nudge 2.8s 4s ease-in-out 3; }  /* a soft invite to press it */
@keyframes sound-nudge { 50% { box-shadow: 0 0 0 6px rgba(241, 184, 240, .25); } }

/* 2026-11-09 upgrade: small phones keep the two-line headline on two lines, and the top line tighter */
@media (max-width: 420px) {
  .hero h1 { font-size: clamp(1.7rem, 8.4vw, 2.1rem); }
  .hero__eyebrow { letter-spacing: .1em; font-size: .74rem; }
}

/* 2026-11-09: phones/tablets: the 3D canvas covers only the area above the text (the copy starts at 54svh),
   so the hand and "חן" are framed there and never sink behind the longer text */
@media (max-width: 1000px) {
  .hero__stage { bottom: auto; height: 56svh; }
}
