/* ======================================================================
   CINEMATIC VIDEO HERO — index.html only. Scoped under .cinematic-hero /
   .glass-nav so it never touches the shared nav/.hero rules in styles.css
   used by the other pages.
   ====================================================================== */

.cinematic-hero {
  --hero-bg: hsl(201 100% 13%);
  --hero-fg: hsl(0 0% 100%);
  --hero-muted: hsl(240 4% 66%);
  --font-display: 'Instrument Serif', serif;
  --font-body: 'Inter', sans-serif;

  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--hero-bg);
  color: var(--hero-fg);
  font-family: var(--font-body);
}

.cinematic-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* ---------- liquid glass effect ---------- */

.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- nav ---------- */

.glass-nav {
  position: relative;
  z-index: 20;
}

.glass-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

.glass-nav__logo {
  font-family: var(--font-display);
  font-size: 1.875rem;
  letter-spacing: -0.02em;
  color: var(--hero-fg);
  text-decoration: none;
}

.glass-nav__logo span {
  color: var(--hero-muted);
}

.glass-nav__links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.glass-nav__links a {
  font-size: 0.875rem;
  color: var(--hero-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.glass-nav__links a:hover,
.glass-nav__links a.active {
  color: var(--hero-fg);
}

.glass-nav__cta {
  border-radius: 999px;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  color: var(--hero-fg);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.glass-nav__cta:hover {
  transform: scale(1.03);
}

.glass-nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.glass-nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.glass-nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--hero-fg);
  transition: transform 0.25s, opacity 0.25s;
}

.glass-nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.glass-nav__toggle.open span:nth-child(2) { opacity: 0; }
.glass-nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 768px) {
  .glass-nav__links {
    display: flex;
  }
  .glass-nav__toggle {
    display: none;
  }
}

@media (max-width: 767px) {
  .glass-nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    background: hsl(201 100% 8%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .glass-nav__links.open {
    display: flex;
  }
}

/* ---------- hero content ---------- */

.cinematic-hero__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8rem 1.5rem 10rem;
}

.cinematic-hero__content h1 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-size: clamp(2.75rem, 9vw, 6rem);
  max-width: 64rem;
  margin: 0;
}

.cinematic-hero__content h1 em {
  font-style: normal;
  color: var(--hero-muted);
}

.cinematic-hero__subtext {
  color: var(--hero-muted);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  max-width: 42rem;
  margin: 2rem auto 0;
  line-height: 1.7;
}

/* ---------- entrance animations ---------- */

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-rise {
  animation: fade-rise 0.8s ease-out both;
}

.animate-fade-rise-delay {
  animation: fade-rise 0.8s ease-out 0.2s both;
}
