/* ═══════════════════════════════════════════════════════
   FULL-BLEED CINEMATIC HERO
   Photographic Levantine restaurant scene, Ken Burns motion,
   dark gradient + grain overlay, large centered headline,
   CTAs, scroll cue. Overrides legacy split #hero layout.
═══════════════════════════════════════════════════════ */

/* Override legacy split hero (in hero.css) */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  max-height: none;
  padding: 0;
  overflow: hidden;
  display: block;       /* override flex */
  background: #05080F;  /* solid before image loads */
}
#hero::before { display: none; }   /* kill old blue glow */

/* ── Photographic stage — full-bleed image with Ken Burns ── */
.hero-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-photo {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  object-position: center 55%;
  filter: saturate(1.05) contrast(1.05) brightness(0.78);
  transform-origin: 52% 48%;
  animation: heroKenBurns 32s ease-in-out infinite alternate;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-photo.loaded { opacity: 1; }

/* Cinematic video — full-bleed hero. The previous design hid the
   video at opacity 0 and faded it in via a .loaded class when the
   <img class="hero-photo"> below was already visible. The photo was
   removed (it was loading first and bleeding through the video), so
   the video now stays opaque at all times — the <video>'s own
   poster="..." attribute renders an instant first frame, and playback
   simply overtakes that frame once the MP4 buffers. No blank gap, no
   ghost overlay. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: saturate(1.05) contrast(1.05) brightness(0.78);
  z-index: 1;
  opacity: 1;
  pointer-events: none;
  background: #05080F;
}
.hero-video.loaded { opacity: 1; }

@keyframes heroKenBurns {
  0%   { transform: scale(1.08) translate(0, 0); }
  100% { transform: scale(1.18) translate(-1.5%, -1%); }
}

/* ── Color grade — uniform subtle warmth, no corner asymmetry ── */
.hero-grade {
  position: absolute; inset: 0;
  background: radial-gradient(140% 100% at 50% 50%,
    rgba(255, 170, 95, 0.10) 0%,
    rgba(15, 25, 45, 0.10) 100%);
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ── Cinematic overlay — JUST the bottom seam fade. Nothing else.
   The video plays edge-to-edge with zero darkening artifacts in any
   corner. Text legibility comes from text-shadow on the type itself. */
.hero-vignette {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    #05080F 0%,
    rgba(5, 8, 15, 0.92) 5%,
    rgba(5, 8, 15, 0.55) 18%,
    rgba(5, 8, 15, 0.18) 36%,
    transparent 55%);
  pointer-events: none;
}

/* ── Film grain ── */
.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.4' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.85  0 0 0 0 0.75  0 0 0 0.7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: heroGrainShift 1.4s steps(3) infinite;
}
@keyframes heroGrainShift {
  0%   { transform: translate(0,    0); }
  33%  { transform: translate(-2%,  1%); }
  66%  { transform: translate(1%,  -2%); }
  100% { transform: translate(0,    0); }
}

/* ── Subtle drifting bokeh sparkle (candle highlights) ── */
.hero-bokeh {
  position: absolute; inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.hero-bokeh i {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 210, 145, 0.55) 0%,
    rgba(255, 170, 90, 0.20) 40%,
    transparent 70%
  );
  filter: blur(var(--b, 8px));
  animation: heroBokehFloat var(--dur, 22s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
  opacity: var(--o, 0.8);
}
@keyframes heroBokehFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(18px, -14px) scale(1.08); }
}

/* ── Letterbox top only (bottom is handled by .hero-vignette fade) ── */
.hero-letterbox {
  position: absolute; left: 0; right: 0;
  height: 28px;
  pointer-events: none;
  z-index: 2;
}
.hero-letterbox.top    { top: 0;    background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 100%); }
.hero-letterbox.bottom { display: none; }

/* ═══════════════════════════════════════════════════════
   HERO CONTENT — headline, sub, CTAs (overlay)
═══════════════════════════════════════════════════════ */

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 96px clamp(24px, 6vw, 80px) 140px;
  pointer-events: none;
}
.hero-content > * { pointer-events: auto; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  color: rgba(255, 255, 255, 0.78);
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
  opacity: 0;
  transform: translateY(10px);
  animation: heroFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
.hero-eyebrow-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 7px rgba(16, 185, 129, 0.65);
  animation: heroEyeDot 2.4s ease infinite;
}
@keyframes heroEyeDot { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

.hero-headline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(34px, 4.6vw, 62px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.6px;
  color: #FFFFFF;
  max-width: 18ch;
  margin: 0;
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}
.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 400;
  max-width: 520px;
  margin-top: 22px;
  letter-spacing: -0.15px;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.75s forwards;
}

.hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1.05s forwards;
}
.hero-cta .btn-primary {
  padding: 16px 30px;
  background: #FFFFFF;
  color: #0A101E;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18), 0 10px 30px rgba(0,0,0,0.4);
}
.hero-cta .btn-primary:hover  { transform: translateY(-1px); background: #F4F6FB; }
.hero-cta .btn-primary:active { transform: translateY(0); }

.hero-cta .btn-demo {
  padding: 16px 26px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.2px;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.hero-cta .btn-demo:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

@keyframes heroFadeUp { to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════════════════════
   SCROLL CUE — bottom-center, subtle bounce
═══════════════════════════════════════════════════════ */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  opacity: 0;
  animation: heroFadeUp 1.2s ease 1.6s forwards, heroScrollBob 2.6s ease-in-out 2.5s infinite;
  pointer-events: none;
}
.hero-scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -36px;
  left: 0;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.95) 100%);
  animation: heroScrollDrop 2.4s ease-in-out infinite;
}
@keyframes heroScrollDrop {
  0%   { top: -36px; }
  100% { top: 36px;  }
}
@keyframes heroScrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(4px); }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #hero { height: 92vh; min-height: 560px; }
  .hero-content { padding: 92px 22px 120px; }
  .hero-headline { letter-spacing: -1.2px; }
  .hero-sub { font-size: 14px; margin-top: 18px; }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; margin: 28px auto 0; }
  .hero-cta .btn-primary,
  .hero-cta .btn-demo { justify-content: center; width: 100%; }
  .hero-letterbox { height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo,
  .hero-grain,
  .hero-bokeh i,
  .hero-scroll,
  .hero-scroll-line::after,
  .hero-eyebrow-dot { animation: none !important; }
  .hero-photo { transform: scale(1.1); opacity: 1; }
}
