/* Cinematic intro: stages I (hero) through V. Lives in /public/ so it
   loads as a plain static asset, bypassing Vite's CSS pipeline (an earlier
   inline style block was being truncated at non-ASCII chars). */

/* Hero video background fills the section behind markers/title/scroll cue */
.intro-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Lift the bottom-anchored hero content up so the title sits in the
   lower-middle of the viewport instead of crowding the bottom edge */
.hero .hero-content {
  padding-bottom: clamp(110px, 16vh, 180px) !important;
}

.intro-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.intro-vignette-hero {
  background:
    radial-gradient(85% 60% at 50% 60%, transparent 0%, rgba(13,10,6,0.45) 100%),
    linear-gradient(180deg, rgba(13,10,6,0.50) 0%, transparent 30%, rgba(13,10,6,0.90) 100%);
}

/* (Foreground stacking is already handled by home.css's z-index values
   on .hero-ar/.hero-marker/.hero-content/.hero-scroll — do not override
   their `position` here or it breaks the original absolute layout.) */

/* Signature pour rail: scroll-snap was pulling the first card flush
   against the viewport's left edge (snap aligns to scroll-port start by
   default, ignoring padding). `scroll-padding-inline` insets the snap
   port so the first card respects the rail's left padding on first paint. */
.signature-rail {
  scroll-padding-inline: var(--pad-x);
}

.intro-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  filter: brightness(0.7) saturate(0.95);
}

.intro-vignette-deep {
  background:
    radial-gradient(85% 60% at 50% 50%, rgba(13,10,6,0.40) 0%, rgba(13,10,6,0.80) 100%),
    linear-gradient(180deg, rgba(13,10,6,0.65) 0%, rgba(13,10,6,0.20) 30%, rgba(13,10,6,0.25) 65%, rgba(13,10,6,0.95) 100%);
}

/* Stage container */
.intro {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  contain: paint;
}

/* Centered editorial copy on top of each stage */
.intro-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(1rem, 2.4vh, 1.6rem);
  text-align: center;
  padding: clamp(110px, 14vh, 150px) clamp(20px, 5vw, 64px) clamp(40px, 8vh, 100px);
  max-width: 1200px;
  margin-inline: auto;
}

.intro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass-light);
}
.intro-eyebrow .num {
  color: var(--brass);
  font-family: var(--display);
  font-style: italic;
  letter-spacing: 0;
}

.intro-headline {
  font-family: var(--display);
  font-size: clamp(48px, 9vw, 144px);
  line-height: 0.95;
  letter-spacing: -0.012em;
  font-weight: 400;
  color: var(--paper);
  max-width: 16ch;
  font-variation-settings: "SOFT" 50, "opsz" 144;
  margin: 0;
}
.intro-headline em {
  font-style: italic;
  color: var(--brass-light);
  font-variation-settings: "SOFT" 100, "opsz" 144, "WONK" 1;
}

.intro-body {
  max-width: 52ch;
  font-size: clamp(16px, 1.3vw, 21px);
  line-height: 1.55;
  color: var(--paper);
  opacity: 0.9;
  margin: 0;
}

.intro-arabic {
  font-family: var(--arabic);
  font-size: clamp(26px, 3.6vw, 48px);
  color: var(--brass-light);
  opacity: 0.55;
  direction: rtl;
  margin: 0;
}

/* Stage 5 pinned cross-fade between roasted and the cup */
.intro-pinned {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}
.pin-layer {
  position: absolute;
  inset: 0;
}
.pin-b {
  opacity: 0;
}

/* Mobile */
@media (max-width: 880px) {
  .intro-headline {
    font-size: clamp(36px, 11vw, 64px);
    max-width: 14ch;
  }
  .intro-body {
    font-size: 1rem;
    max-width: 32ch;
  }
  .intro-arabic { font-size: 1.4rem; }
  .intro-copy {
    padding: clamp(90px, 12vh, 110px) clamp(16px, 5vw, 24px) clamp(32px, 6vh, 70px);
    gap: 0.9rem;
  }
}
@media (max-width: 420px) {
  .intro-headline { font-size: clamp(32px, 12vw, 50px); }
}
