/* Lumora hero — all selectors scoped under #lumora-hero */
#lumora-hero {
  --lumora-dark: #182c41;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
  font-family: "Instrument Serif", serif;
  color: #fff;
  box-sizing: border-box;
}

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

/* Videos */
#lumora-hero .lumora-video-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#lumora-hero .lumora-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1000ms ease-in-out;
  pointer-events: none;
}

#lumora-hero .lumora-video.is-active {
  opacity: 1;
}

/* PNG overlay + train-bob */
#lumora-hero .lumora-png-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transform: scale(1.03) translateY(0);
  animation: lumora-train-bob 3s ease-in-out infinite;
}

@keyframes lumora-train-bob {
  0%,
  100% {
    transform: scale(1.03) translateY(0);
  }
  50% {
    transform: scale(1.03) translateY(-6px);
  }
}

/* Content shell */
#lumora-hero .lumora-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: 1.25rem 1.25rem 1.5rem;
}

@media (min-width: 640px) {
  #lumora-hero .lumora-content {
    padding: 1.5rem 2rem 1.75rem;
  }
}

@media (min-width: 768px) {
  #lumora-hero .lumora-content {
    padding: 1.75rem 2.5rem 2rem;
  }
}

/* Liquid glass */
#lumora-hero .lumora-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;
}

#lumora-hero .lumora-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: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* Nav */
#lumora-hero .lumora-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  color: #fff;
}

#lumora-hero .lumora-logo {
  margin: 0;
  color: #fff;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

@media (min-width: 640px) {
  #lumora-hero .lumora-logo {
    font-size: 1.5rem;
  }
}

#lumora-hero .lumora-nav-pill {
  display: none;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  border-radius: 9999px;
}

@media (min-width: 768px) {
  #lumora-hero .lumora-nav-pill {
    display: inline-flex;
  }
}

#lumora-hero .lumora-nav-link {
  font-family: system-ui, sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  transition: color 200ms ease;
  white-space: nowrap;
}

#lumora-hero .lumora-nav-link:hover {
  color: #fff;
}

#lumora-hero .lumora-btn-solid {
  font-family: system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111;
  background: #fff;
  border: none;
  border-radius: 9999px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease, opacity 200ms ease;
}

#lumora-hero .lumora-btn-solid:hover {
  transform: scale(1.02);
}

#lumora-hero .lumora-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.01);
}

@media (min-width: 768px) {
  #lumora-hero .lumora-menu-toggle {
    display: none;
  }
}

#lumora-hero .lumora-menu-icon-wrap {
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
}

#lumora-hero .lumora-menu-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 300ms ease, transform 300ms ease;
}

#lumora-hero .lumora-menu-icon--menu {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

#lumora-hero .lumora-menu-icon--close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.75);
}

#lumora-hero.lumora-menu-open .lumora-menu-icon--menu {
  opacity: 0;
  transform: rotate(90deg) scale(0.75);
}

#lumora-hero.lumora-menu-open .lumora-menu-icon--close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Mobile menu overlay */
#lumora-hero .lumora-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 500ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

#lumora-hero.lumora-menu-open .lumora-mobile-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#lumora-hero .lumora-mobile-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: min(100%, 28rem);
  text-align: center;
}

#lumora-hero .lumora-mobile-link {
  font-family: system-ui, sans-serif;
  font-size: 1.875rem;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 500ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

#lumora-hero.lumora-menu-open .lumora-mobile-link:nth-child(1) {
  transition-delay: 100ms;
}
#lumora-hero.lumora-menu-open .lumora-mobile-link:nth-child(2) {
  transition-delay: 150ms;
}
#lumora-hero.lumora-menu-open .lumora-mobile-link:nth-child(3) {
  transition-delay: 200ms;
}
#lumora-hero.lumora-menu-open .lumora-mobile-link:nth-child(4) {
  transition-delay: 250ms;
}
#lumora-hero.lumora-menu-open .lumora-mobile-cta {
  transition-delay: 300ms;
}

#lumora-hero.lumora-menu-open .lumora-mobile-link,
#lumora-hero.lumora-menu-open .lumora-mobile-cta {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#lumora-hero .lumora-mobile-cta {
  margin-top: 0.75rem;
  opacity: 0;
  transform: translateY(1rem) scale(0.95);
  transition: opacity 500ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero center */
#lumora-hero .lumora-hero-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 1rem 0 3.5rem;
  transform: translateY(-2.5rem);
}

@media (min-width: 768px) {
  #lumora-hero .lumora-hero-main {
    transform: translateY(-3.5rem);
  }
}

#lumora-hero .lumora-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.45rem 1rem;
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  color: #fff;
  transition: color 700ms ease;
}

@media (min-width: 640px) {
  #lumora-hero .lumora-badge {
    font-size: 0.875rem;
  }
}

#lumora-hero .lumora-heading {
  margin: 0;
  max-width: 56rem;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1.1;
  color: #fff;
  transition: color 700ms ease;
}

@media (min-width: 640px) {
  #lumora-hero .lumora-heading {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  #lumora-hero .lumora-heading {
    font-size: 4.5rem;
  }
}

@media (min-width: 1024px) {
  #lumora-hero .lumora-heading {
    font-size: 5.5rem;
  }
}

#lumora-hero .lumora-subtext {
  margin: 0;
  max-width: 38rem;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.88);
  transition: color 700ms ease;
}

#lumora-hero .lumora-subtext p {
  margin: 0;
}

#lumora-hero .lumora-subtext p + p {
  margin-top: 0.85rem;
}

@media (min-width: 640px) {
  #lumora-hero .lumora-subtext {
    font-size: 1.05rem;
  }
}

/* Email pill */
#lumora-hero .lumora-email-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 320px;
  border-radius: 9999px;
  padding: 0.3rem 0.3rem 0.3rem 1rem;
  transition: box-shadow 700ms ease;
}

@media (min-width: 640px) {
  #lumora-hero .lumora-email-pill {
    max-width: 24rem;
  }
}

#lumora-hero .lumora-email-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-family: system-ui, sans-serif;
  font-size: 0.875rem;
  padding: 0.55rem 0.25rem;
  transition: color 700ms ease;
}

#lumora-hero .lumora-email-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
  transition: color 700ms ease;
}

#lumora-hero .lumora-email-pill .lumora-btn-solid {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.8rem;
  padding: 0.6rem 0.95rem;
}

/* Video switcher */
#lumora-hero .lumora-video-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0.35rem;
}

#lumora-hero .lumora-video-btn {
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  color: #fff;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.25rem 0.1rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 300ms ease, border-color 300ms ease, color 700ms ease;
}

#lumora-hero .lumora-video-btn:hover {
  opacity: 0.8;
}

#lumora-hero .lumora-video-btn.is-active {
  opacity: 1;
  border-bottom-color: currentColor;
}

/* Bottom topic cards */
#lumora-hero .lumora-topic-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  flex-shrink: 0;
  width: 100%;
  max-width: 78rem;
  margin: 0.5rem auto 0;
}

@media (min-width: 900px) {
  #lumora-hero .lumora-topic-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

@keyframes lumora-card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lumora-card-shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

#lumora-hero .lumora-topic-card.lumora-liquid-glass {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.06) 45%,
      rgba(255, 255, 255, 0.14) 100%
    );
  background-size: 200% 200%;
  background-blend-mode: normal;
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation:
    lumora-card-in 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards,
    lumora-card-shimmer 7s ease-in-out 900ms infinite;
}

#lumora-hero .lumora-topic-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.05rem 1.1rem;
  border-radius: 1rem;
  text-align: left;
  min-height: 9.5rem;
  opacity: 0;
  transition:
    transform 280ms ease,
    box-shadow 280ms ease,
    border-color 280ms ease,
    background 280ms ease;
}

#lumora-hero .lumora-topic-card:nth-child(1) {
  animation-delay: 0ms, 900ms;
}
#lumora-hero .lumora-topic-card:nth-child(2) {
  animation-delay: 110ms, 1200ms;
}
#lumora-hero .lumora-topic-card:nth-child(3) {
  animation-delay: 220ms, 1500ms;
}
#lumora-hero .lumora-topic-card:nth-child(4) {
  animation-delay: 330ms, 1800ms;
}
#lumora-hero .lumora-topic-card:nth-child(5) {
  animation-delay: 440ms, 2100ms;
}

@media (min-width: 900px) {
  #lumora-hero .lumora-topic-card {
    padding: 1.25rem 1.2rem;
    min-height: 11.5rem;
  }
}

#lumora-hero .lumora-topic-card:last-child {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  #lumora-hero .lumora-topic-card:last-child {
    grid-column: auto;
  }
}

#lumora-hero .lumora-topic-card:hover {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-7px) scale(1.025);
}

#lumora-hero .lumora-topic-title {
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.97);
}

@media (min-width: 640px) {
  #lumora-hero .lumora-topic-title {
    font-size: 0.98rem;
  }
}

#lumora-hero .lumora-topic-desc {
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

@media (min-width: 640px) {
  #lumora-hero .lumora-topic-desc {
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #lumora-hero .lumora-topic-card {
    opacity: 1;
    animation: none;
    transition: none;
  }

  #lumora-hero .lumora-topic-card:hover {
    transform: none;
  }
}

/* Dark mode (Deep Woods — video index 2) — content only; nav/stats stay white */
#lumora-hero.lumora-dark-mode .lumora-badge,
#lumora-hero.lumora-dark-mode .lumora-heading,
#lumora-hero.lumora-dark-mode .lumora-subtext,
#lumora-hero.lumora-dark-mode .lumora-email-input,
#lumora-hero.lumora-dark-mode .lumora-video-btn {
  color: var(--lumora-dark);
}

#lumora-hero.lumora-dark-mode .lumora-email-input::placeholder {
  color: rgba(24, 44, 65, 0.55);
}

#lumora-hero.lumora-dark-mode .lumora-badge {
  color: var(--lumora-dark);
}
