/* =============================================================
   Saudi-Nordic — Immersive Concert Experience
   Single-screen · video loop · soundtrack toggle
   ============================================================= */

:root {
  --ink: #ffffff;
  --dim: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.4);
  --pad: clamp(1.4rem, 4.5vw, 4rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --f: "Montserrat", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;               /* non-scroll */
}
body {
  font-family: var(--f);
  color: var(--ink);
  background: #05070a;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(255,255,255,0.85); color: #05070a; }

/* ---------- Background video ---------- */
.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  object-fit: cover;
  z-index: 0;
  will-change: transform, opacity;
  pointer-events: none;              /* never intercept taps */
}
/* Hide the iOS/Safari native play-button overlay on the background video */
.bg::-webkit-media-controls,
.bg::-webkit-media-controls-panel,
.bg::-webkit-media-controls-play-button,
.bg::-webkit-media-controls-start-playback-button,
.bg::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
}
/* Poster overlay — hides video + native iOS play button until playback starts */
.poster {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: url("../assets/video/poster.jpg") center / cover no-repeat;
  background-position: center 40%;
  opacity: 1;
  transition: opacity 0.9s ease;
}
.poster.hide { opacity: 0; }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,7,10,0.30) 0%, transparent 22%, transparent 46%, rgba(5,7,10,0.78) 100%),
    linear-gradient(75deg, rgba(5,7,10,0.62) 0%, rgba(5,7,10,0.15) 42%, transparent 62%),
    radial-gradient(130% 90% at 50% 40%, transparent 55%, rgba(5,7,10,0.45) 100%);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.1rem, 2.6vw, 2rem) var(--pad);
  pointer-events: none;
}
.site-header .brand { pointer-events: auto; display: inline-flex; }
.brand__logo {
  height: clamp(2rem, 4.5vw, 3rem);
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 22px rgba(0,0,0,0.5));
}
/* Finnkino cluster */
.partners {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  text-align: right;
}
.partners__logo {
  height: clamp(2.4rem, 5vw, 3.4rem);
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 22px rgba(0,0,0,0.5));
}
.partners__marks {
  font-size: clamp(0.56rem, 1.1vw, 0.72rem);
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--dim);
  white-space: nowrap;
}

/* ---------- Stage ---------- */
.stage {
  position: relative;
  z-index: 3;
  height: 100%;
  height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: var(--pad);
}
.copy {
  max-width: min(1100px, 92vw);
}

/* ---------- Title ---------- */
.title {
  font-weight: 300;
  letter-spacing: -0.018em;
  line-height: 1.02;
  font-size: clamp(2.25rem, 6.4vw, 5.6rem);
  margin-bottom: clamp(0.9rem, 1.6vw, 1.4rem);
  text-shadow: 0 4px 40px rgba(0,0,0,0.45);
}
.title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.title .line__in { display: block; will-change: transform; }

/* ---------- Meta ---------- */
.meta {
  font-weight: 400;
  font-size: clamp(0.9rem, 1.5vw, 1.25rem);
  letter-spacing: 0.005em;
  color: var(--dim);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.meta sup { font-size: 0.62em; }

/* ---------- Buy ticket ---------- */
.ticket {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: clamp(1.5rem, 3vw, 2.3rem);
  padding: 0.95em 1.75em;
  background: #ffffff;
  color: #05070a;
  font-weight: 600;
  font-size: clamp(0.8rem, 1.15vw, 0.95rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: transform 0.5s var(--ease), gap 0.4s var(--ease), background 0.4s var(--ease);
  will-change: transform;
}
.ticket svg { width: 20px; height: 20px; flex: none; }
.ticket:hover { transform: translateY(-2px); gap: 0.9rem; background: rgba(255,255,255,0.9); }
.ticket:active { transform: translateY(0); }

/* ---------- Sound button ---------- */
.sound {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem);
  -webkit-tap-highlight-color: transparent;
}
.sound__ico {
  position: relative;
  width: 52px;
  height: 52px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: rgba(5,7,10,0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
}
.sound:hover .sound__ico { transform: scale(1.06); border-color: rgba(255,255,255,0.85); }
.sound__ico i {
  display: block;
  width: 2px;
  height: 9px;
  background: var(--ink);
  border-radius: 2px;
  transform-origin: center;
}
/* animated equalizer while playing */
.sound.is-playing .sound__ico i { animation: eq 1s ease-in-out infinite; }
.sound.is-playing .sound__ico i:nth-child(2) { animation-delay: 0.22s; }
.sound.is-playing .sound__ico i:nth-child(3) { animation-delay: 0.44s; }
.sound.is-playing .sound__ico i:nth-child(4) { animation-delay: 0.13s; }
@keyframes eq {
  0%, 100% { height: 7px; }
  50%      { height: 20px; }
}

.sound__label {
  position: relative;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.4s var(--ease);
}
.sound:hover .sound__label { color: var(--ink); }
.sound__label-on { display: none; }
.sound.is-playing .sound__label-off { display: none; }
.sound.is-playing .sound__label-on { display: inline; color: var(--ink); }

/* ---------- Intro states ---------- */
/* video stays visible; the poster overlay handles the intro cover + hides the native play button */

/* no-JS / reduced-motion fallback keeps everything visible */
.no-gsap .title .line__in { transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  .bg { opacity: 1; transition: none; }
  .sound.is-playing .sound__ico i { animation: none; height: 12px; }
  * { animation-duration: 0.001ms !important; }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .title { font-size: clamp(2.1rem, 9vw, 3.4rem); }
  .sound__ico { width: 46px; height: 46px; }
  /* raise the whole copy block ~10% higher on phones */
  .stage { padding-bottom: calc(var(--pad) + 10dvh); }
  .partners__logo { height: 2.2rem; }
  .partners__marks { font-size: 0.56rem; letter-spacing: 0.06em; }
  .brand__logo { height: 1.9rem; }
}
