/* =========================================================
   VONLOVI · language intro
   ========================================================= */

:root {
  --intro-ivory: #f4f0ec;
  --intro-ink: #ffffff;
  --intro-muted: rgba(255, 255, 255, 0.4);
  --intro-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  /* Match the film’s velvet black so side fields don’t read as a different plate */
  --intro-void: #0a0908;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body.page--intro {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--intro-serif);
  color: var(--intro-ink);
  background: var(--intro-void);
  overflow: hidden;
}

.intro {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(24px, 6vw, 48px);
  background: var(--intro-void);
  overflow: hidden;
}

/* Full-bleed field: same black as the film, shared grain over everything */
.intro__field {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
  background: var(--intro-void);
}

.intro__texture {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: transparent;
}

/* One grain layer over film + field so the plates match */
.intro__texture::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  mix-blend-mode: soft-light;
  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='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* Full-bleed film — cover the viewport edge to edge */
.intro__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  background: var(--intro-void);
}

.intro__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(10, 9, 8, 0.28) 0%,
    transparent 24%,
    transparent 72%,
    rgba(10, 9, 8, 0.4) 100%
  );
}

.intro__stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 5vh, 44px);
  text-align: center;
}

.intro__logo {
  width: clamp(96px, 14vw, 156px);
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(10px);
  animation: intro-logo 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

@media (max-width: 560px) {
  .intro__logo {
    width: 88px;
  }
}

.intro__langs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

body.is-film-live .intro__langs {
  pointer-events: auto;
  animation: intro-langs 0.8s ease 0.12s forwards;
}

.intro__lang {
  appearance: none;
  border: 0;
  background: none;
  padding: 6px 2px;
  margin: 0;
  font-family: var(--intro-serif);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--intro-ink);
  cursor: pointer;
  transition: opacity 220ms ease;
}

.intro__lang:hover,
.intro__lang:focus-visible {
  opacity: 0.4;
  outline: none;
}

.intro__sep {
  width: 1px;
  height: 11px;
  background: var(--intro-muted);
  opacity: 0;
}

body.is-film-live .intro__sep {
  animation: intro-langs 0.8s ease 0.12s forwards;
}

@keyframes intro-logo {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes intro-langs {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 320;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 22px;
  padding: 14px clamp(24px, 6vw, 48px) max(14px, env(safe-area-inset-bottom));
  background: rgba(10, 9, 8, 0.72);
  color: #f7f3ef;
  font-family: var(--intro-serif);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.14em;
  pointer-events: auto;
}

.site-cookie p {
  margin: 0;
  flex: 1 1 180px;
}

.site-cookie__ok,
.site-cookie__more {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .intro__logo,
  .intro__langs,
  .intro__sep {
    animation: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .intro__video {
    display: none;
  }
}
