/* ==========================================================================
   HERO — LOCKED (brief §01)
   This file is a 1:1 reproduction of the approved v2 hero. Every value below
   was extracted from the v2 Tailwind build's computed output.
   Changes are permitted ONLY for responsive / a11y / performance / bug fixes.
   DO NOT re-style, re-space, or re-colour anything here.
   ========================================================================== */

.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #091620; /* hsl(207 57% 8%) */
  min-height: 100vh;
  min-height: max(100svh, 75vw);
}

/* --- Background video ---------------------------------------------------- */

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #091620;
}

.video-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

/* --- Fixed navigation ---------------------------------------------------- */

.hero-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding: 0.75rem 0.75rem 0;
}

@media (min-width: 640px) {
  .hero-header {
    padding: 1rem 1.25rem 0;
  }
}

.hero-nav {
  margin-inline: auto;
  display: flex;
  max-width: 80rem;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-radius: 9999px;
  padding: 0.625rem 1rem;
}

@media (min-width: 640px) {
  .hero-nav {
    padding-inline: 1.25rem;
  }
}

.hero-nav__logo img {
  height: 2.25rem;
  width: auto;
  object-fit: contain;
}

@media (min-width: 640px) {
  .hero-nav__logo img {
    height: 2.75rem;
  }
}

.hero-nav__links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.hero-nav__links a {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #9da6af; /* hsl(210 10% 65%) */
  transition: color 0.3s;
}

.hero-nav__links a:hover {
  color: #f0ede5;
}

.hero-nav__cta {
  display: none;
  height: auto;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 9999px;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #f0ede5;
  background: transparent;
  transition:
    transform 0.3s,
    background-color 0.15s;
}

.hero-nav__cta:hover {
  transform: scale(1.03);
  background-color: #ffffff08;
}

.hero-nav__toggle {
  display: grid;
  height: 2.5rem;
  width: 2.5rem;
  place-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background-color 0.15s;
}

.hero-nav__toggle:hover {
  background-color: #ffffff1a;
}

.hero-nav__toggle svg {
  height: 1.25rem;
  width: 1.25rem;
}

@media (min-width: 1024px) {
  .hero-nav__links,
  .hero-nav__cta {
    display: inline-flex;
  }
  .hero-nav__links {
    display: flex;
  }
  .hero-nav__toggle {
    display: none;
  }
}

/* --- Mobile menu --------------------------------------------------------- */

.hero-mobile-menu {
  margin-inline: auto;
  margin-top: 0.5rem;
  max-width: 80rem;
  overflow: hidden;
  border-radius: 1.75rem;
  transition: all 0.3s;
  pointer-events: none;
  transform: translateY(-0.5rem);
  opacity: 0;
}

.hero-mobile-menu.is-open {
  pointer-events: auto;
  transform: translateY(0);
  opacity: 1;
}

@media (min-width: 1024px) {
  .hero-mobile-menu {
    display: none;
  }
}

.hero-mobile-menu__inner {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
}

.hero-mobile-menu__inner a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 0.875rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s;
}

.hero-mobile-menu__inner a:hover {
  color: #fff;
}

.hero-mobile-menu__inner a:last-of-type {
  border-bottom: 0;
}

.hero-mobile-menu__cta {
  margin-top: 1rem;
  height: auto;
  border-radius: 9999px;
  background: transparent;
  padding-block: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
}

.hero-mobile-menu__cta:hover {
  background-color: #ffffff0a;
}

/* --- Hero content -------------------------------------------------------- */

.hero-main {
  position: relative;
  z-index: 10;
  margin-inline: auto;
  display: flex;
  width: 100%;
  max-width: 80rem;
  flex: 1 1 0%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-inline: 1.25rem;
  padding-bottom: 5rem;
  padding-top: clamp(6.25rem, 14vh, 8.5rem);
  text-align: center;
}

@media (min-width: 640px) {
  .hero-main {
    padding-inline: 2rem;
  }
}

.hero-kicker {
  display: none;
  margin-bottom: 1rem;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.1);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-kicker svg {
  height: 0.875rem;
  width: 0.875rem;
}

@media (min-width: 640px) {
  .hero-kicker {
    display: inline-flex;
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  text-wrap: balance;
  max-width: 72rem;
  font-size: 2rem;
  line-height: 1.18;
  letter-spacing: 0;
  color: #f0ede5;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.25rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.8rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.35rem;
    line-height: 1.16;
  }
}

.hero-title br {
  display: none;
}

@media (min-width: 640px) {
  .hero-title br {
    display: block;
  }
}

.hero-description {
  margin-top: 1rem;
  max-width: 48rem;
  font-size: 0.875rem;
  line-height: 1.75rem;
  color: rgba(255, 255, 255, 0.72);
}

@media (min-width: 640px) {
  .hero-description {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.125rem;
    line-height: 2rem;
  }
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

.hero-actions__primary {
  display: inline-flex;
  height: auto;
  min-width: 11rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 9999px;
  background: transparent;
  padding: 0.875rem 2.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #f0ede5;
  transition:
    transform 0.3s,
    background-color 0.15s;
}

.hero-actions__primary:hover {
  transform: scale(1.03);
  background-color: #ffffff08;
}

@media (min-width: 640px) {
  .hero-actions__primary {
    font-size: 1rem;
  }
}

.hero-actions__secondary {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s;
}

.hero-actions__secondary:hover {
  color: #fff;
}

.hero-actions__secondary svg {
  height: 1rem;
  width: 1rem;
  transition: transform 0.15s;
}

.hero-actions__secondary:hover svg {
  transform: translateX(-0.25rem);
}

@media (min-width: 640px) {
  .hero-actions__secondary {
    display: inline-flex;
    font-size: 1rem;
  }
}

/* --- Scroll cue ---------------------------------------------------------- */

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  z-index: 10;
  display: none;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.15s;
}

.hero-scroll:hover {
  color: #fff;
}

.hero-scroll span {
  height: 2rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
}

@media (min-width: 640px) {
  .hero-scroll {
    display: flex;
  }
}

/* --- Entrance animation -------------------------------------------------- */

@keyframes fade-rise {
  0% {
    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;
}

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

/* --- Short-viewport safeguard (from v2, unchanged) ----------------------- */

@media (min-width: 640px) and (max-height: 720px) {
  .hero-kicker {
    display: none !important;
  }
  .hero-title {
    font-size: 2.9rem !important;
    line-height: 1.16 !important;
  }
  .hero-description {
    margin-top: 0.5rem;
    max-width: 48rem;
    font-size: 0.875rem !important;
    line-height: 1.5rem !important;
  }
  .hero-actions {
    margin-top: 0.75rem;
  }
}
