/* Cinematic homepage hero — bottom-anchored like Nexum reference */

.hero-nexum,
.hero-nexum * {
  box-sizing: border-box;
}

.hero-nexum .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hero-nexum {
  --hero-fg: #ffffff;
  --hero-fg-80: rgba(255, 255, 255, 0.8);
  --hero-fg-70: rgba(255, 255, 255, 0.7);
  --hero-fg-60: rgba(255, 255, 255, 0.6);
  --hero-card-bg: rgba(255, 255, 255, 0.1);
  --hero-card-border: rgba(255, 255, 255, 0.18);
  position: relative;
  isolation: isolate;
  z-index: 1;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background: #0a0a0a;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Light theme: keep readable dark text if user prefers light UI */
html[data-bs-theme="light"] .hero-nexum {
  --hero-fg: #010101;
  --hero-fg-80: rgba(1, 1, 1, 0.8);
  --hero-fg-70: rgba(1, 1, 1, 0.7);
  --hero-fg-60: rgba(1, 1, 1, 0.6);
  --hero-card-bg: rgba(255, 255, 255, 0.14);
  --hero-card-border: rgba(255, 255, 255, 0.28);
}

.hero-nexum__video {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center;
  pointer-events: none;
}

/* Full-bleed overlay layer — content locked to bottom */
.hero-nexum__inner {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  padding: 0;
  pointer-events: none;
}

.hero-nexum__inner a,
.hero-nexum__inner button,
.hero-nexum__inner input,
.hero-nexum__inner form {
  pointer-events: auto;
}

.hero-nexum__main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 1rem;
  width: 100%;
  padding: 0 1.25rem 1.5rem;
}

@media (min-width: 640px) {
  .hero-nexum__main {
    gap: 1.5rem;
    padding: 0 2rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-nexum__main {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 3rem 4rem;
  }
}

.hero-nexum__copy {
  flex: 1 1 auto;
  max-width: 36rem;
  width: 100%;
}

.hero-nexum__title {
  margin: 0 !important;
  max-width: 36rem;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: clamp(1.65rem, 4.2vw, 3.5rem) !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.025em !important;
  color: var(--hero-fg) !important;
}

/* Email CTA — white pill with embedded button (matches reference) */
.hero-nexum__cta,
.hero-nexum form.hero-nexum__cta {
  margin-top: 1.25rem !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between;
  width: fit-content;
  max-width: 100%;
  min-height: 0 !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 9999px !important;
  background: #ffffff !important;
  padding: 6px !important;
  gap: 0.25rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

@media (min-width: 640px) {
  .hero-nexum__cta,
  .hero-nexum form.hero-nexum__cta {
    margin-top: 1.75rem !important;
    padding: 6px !important;
  }
}

.hero-nexum__email,
.hero-nexum form.hero-nexum__cta input[type="email"].hero-nexum__email {
  flex: 1 1 auto !important;
  width: 11rem !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.4 !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0.7rem 1.1rem !important;
  margin: 0 !important;
  font-family: inherit !important;
  font-size: 0.9375rem !important;
  color: #111827 !important;
  appearance: none;
  -webkit-appearance: none;
}

.hero-nexum__email::placeholder,
.hero-nexum form.hero-nexum__cta input[type="email"].hero-nexum__email::placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
}

@media (min-width: 640px) {
  .hero-nexum__email,
  .hero-nexum form.hero-nexum__cta input[type="email"].hero-nexum__email {
    width: 15rem !important;
    flex: 0 1 15rem !important;
    padding: 0.7rem 1.25rem !important;
  }
}

.hero-nexum__btn,
.hero-nexum form.hero-nexum__cta button.hero-nexum__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  align-self: stretch;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  white-space: nowrap;
  border: 0 !important;
  border-radius: 9999px !important;
  padding: 0.7rem 1.35rem !important;
  margin: 0 !important;
  font-family: inherit !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  cursor: pointer;
  background: #101010 !important;
  background-image: linear-gradient(to bottom, #2b2b2b, #101010) !important;
  box-shadow: none !important;
  transition: opacity 0.2s ease;
}

.hero-nexum__btn:hover,
.hero-nexum__btn:focus-visible,
.hero-nexum form.hero-nexum__cta button.hero-nexum__btn:hover,
.hero-nexum form.hero-nexum__cta button.hero-nexum__btn:focus-visible {
  opacity: 0.9;
  color: #ffffff !important;
  background: #101010 !important;
  background-image: linear-gradient(to bottom, #2b2b2b, #101010) !important;
}

@media (min-width: 640px) {
  .hero-nexum__btn,
  .hero-nexum form.hero-nexum__cta button.hero-nexum__btn {
    padding: 0.7rem 1.5rem !important;
  }
}

/* Cards — stack on mobile so Stratify isn't clipped; row from sm+ */
.hero-nexum__cards {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.75rem;
  width: 100%;
  overflow: visible;
}

@media (min-width: 640px) {
  .hero-nexum__cards {
    flex-direction: row;
    gap: 1rem;
    overflow: visible;
  }
}

@media (min-width: 1024px) {
  .hero-nexum__cards {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    gap: 1.25rem;
  }
}

.hero-nexum__card {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border-radius: 1rem !important;
  background: var(--hero-card-bg) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--hero-card-border);
  padding: 1rem 1.1rem !important;
  box-shadow: none;
}

@media (min-width: 640px) {
  .hero-nexum__card {
    flex: 0 0 16rem;
    width: 16rem;
    min-width: 16rem;
    padding: 1.5rem !important;
  }
}

.hero-nexum__card--stats {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 8.5rem;
}

@media (min-width: 640px) {
  .hero-nexum__card--stats {
    min-height: 11rem;
  }
}

.hero-nexum__stat {
  margin: 0 !important;
  font-family: "Silkscreen", cursive !important;
  font-size: 1.75rem !important;
  font-weight: 400 !important;
  letter-spacing: -0.025em !important;
  color: var(--hero-fg) !important;
}

@media (min-width: 640px) {
  .hero-nexum__stat {
    font-size: 2.25rem !important;
  }
}

.hero-nexum__stat-body {
  margin: 0.75rem 0 0 !important;
  font-size: 0.8125rem !important;
  line-height: 1.55 !important;
  color: var(--hero-fg-70) !important;
}

@media (min-width: 640px) {
  .hero-nexum__stat-body {
    margin-top: 1rem !important;
    font-size: 0.875rem !important;
    line-height: 1.625 !important;
  }
}

.hero-nexum__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

@media (min-width: 640px) {
  .hero-nexum__brand {
    margin-bottom: 1rem;
  }
}

.hero-nexum__brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.25rem;
  background: #000;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

html[data-bs-theme="dark"] .hero-nexum__brand-mark,
html:not([data-bs-theme="light"]) .hero-nexum__brand-mark {
  background: #000;
  color: #fff;
}

html[data-bs-theme="dark"] .hero-nexum__brand-mark {
  background: #fff;
  color: #000;
}

.hero-nexum__brand-name {
  margin: 0 !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--hero-fg) !important;
}

.hero-nexum__quote {
  margin: 0 !important;
  font-size: 0.8125rem !important;
  line-height: 1.55 !important;
  color: var(--hero-fg-80) !important;
}

@media (min-width: 640px) {
  .hero-nexum__quote {
    font-size: 0.875rem !important;
    line-height: 1.625 !important;
  }
}

.hero-nexum__person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

@media (min-width: 640px) {
  .hero-nexum__person {
    margin-top: 1.25rem;
  }
}

.hero-nexum__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.hero-nexum__person-name {
  margin: 0 !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--hero-fg) !important;
}

.hero-nexum__person-role {
  margin: 0 !important;
  font-size: 0.75rem !important;
  color: var(--hero-fg-60) !important;
}

/* Keep Loob header above hero video */
body.home-cinematic-hero .header-7 {
  display: block;
}

body.home-cinematic-hero .header-7 .header-transparent {
  z-index: 20;
}

body.home-cinematic-hero .header-7 .loob-logo path:first-child {
  fill: #fff;
}

body.home-cinematic-hero .header-7 .loob-wordmark,
body.home-cinematic-hero .header-7 .menu-light a,
body.home-cinematic-hero .header-7 .at-header-search-btn {
  color: #fff !important;
}

body.home-cinematic-hero .header-7 .at-hamburger__bar {
  background: #fff;
}

body.home-cinematic-hero .header-7 .at-header-search-btn svg path {
  stroke: #fff;
}

body.home-cinematic-hero .header-7 .at-menu-bar {
  color: #fff;
}

html[data-bs-theme="light"] body.home-cinematic-hero .header-7 .loob-logo path:first-child {
  fill: #010101;
}

html[data-bs-theme="light"] body.home-cinematic-hero .header-7 .loob-wordmark,
html[data-bs-theme="light"] body.home-cinematic-hero .header-7 .menu-light a,
html[data-bs-theme="light"] body.home-cinematic-hero .header-7 .at-header-search-btn {
  color: #010101 !important;
}

html[data-bs-theme="light"] body.home-cinematic-hero .header-7 .at-hamburger__bar {
  background: #010101;
}

html[data-bs-theme="light"] body.home-cinematic-hero .header-7 .at-header-search-btn svg path {
  stroke: #010101;
}

html[data-bs-theme="light"] body.home-cinematic-hero .header-7 .at-menu-bar {
  color: #010101;
}

body.home-cinematic-hero main > *:not(.hero-nexum) {
  position: relative;
  z-index: 2;
}
