/* ==========================================================================
   Homepage Styles â€” Elite Architectural
   ========================================================================== */

/* ---- Hero section ---- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 100vh;
  overflow: hidden;
}

/* Background video â€” fills the section, cropped to cover */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Deep architectural overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

/* Content layer â€” sits above video + overlay */
.hero__content {
  position: relative;
  z-index: 1;
  text-align: left;
  padding-inline: var(--container-padding);
  max-width: 780px;
  margin-inline: 0;
  padding-top: 180px; /* Elegant spacing below the 90px sticky header */
}

@media (max-width: 1023px) {
  .hero__content {
    padding-top: 130px; /* Elegant spacing below the 74px mobile/tablet sticky header */
  }
}

.hero__headline {
  font-family: var(--font-family-heading);
  color: var(--color-white);
  font-size: clamp(2.8rem, 6vw, 5.5rem); /* More balanced size */
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 15ch;
  text-align: left;
  margin-inline: 0;
}

.hero__subheadline {
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-base);
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin-top: var(--space-lg);
  max-width: 50ch;
  margin-inline: 0;
  text-align: left;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

/* ---- Responsive scaling ---- */

@media (min-width: 768px) {
  .hero__headline {
    font-size: clamp(2.3rem, 5.3vw, 4.4rem);
  }

  .hero__subheadline {
    font-size: var(--font-size-lg);
  }
}

@media (min-width: 1280px) {
  .hero__headline {
    font-size: clamp(2.3rem, 5.3vw, 4.4rem);
  }
}

/* ==========================================================================
   Stats Bar
   ========================================================================== */

.stats-bar {
  background-color: #030816;
  padding-block: 80px;
  position: relative;
  border-top: 1px solid rgba(8, 127, 255, 0.2);
}

.stats-bar__grid {
  display: grid;
  max-width: 1600px;
  margin-inline: auto;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  text-align: center;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.stats-bar__item {
  position: relative;
  padding: 24px;
  transition: transform 0.4s ease;
}

.stats-bar__item:hover {
  transform: translateY(-4px);
}

.stats-bar__number {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--font-family-heading);
  font-weight: 900;
  line-height: 1;
  color: #087fff;
  margin-bottom: 12px;
}

.stats-bar__label {
  font-size: 0.75rem;
  font-family: var(--font-family-heading);
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* Tablet+ : 4 columns */
@media (min-width: 768px) {
  .stats-bar__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats-bar__number {
    font-size: 3rem;
  }
}

/* ==========================================================================
   DNA Divider
   ========================================================================== */

.dna {
  background: linear-gradient(rgb(3, 8, 22) 0%, rgb(22, 36, 63) 50%, rgb(3, 8, 22) 100%) !important;
  padding-block: 70px; /* Sleeker divider spacing */
  position: relative;
  overflow: hidden;
  text-align: center;
}

.dna__content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.dna__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #087fff;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(8, 127, 255, 0.3);
  padding-bottom: 8px;
}

main .dna__body {
  color: #ffffff;
  margin-inline: auto;
  font-size: .5rem;
  font-style: italic;
  line-height: 1 !important;
  text-wrap: pretty !important;
}

.dna__body strong,
.dna strong {
  color: #087fff;
  font-weight: 900;
}

/* Win over global .text-section--ratio p */
.dna .dna__body {
  max-width: 1000px !important;
  line-height: 1.4 !important;
  font-size: clamp(2.5rem, 2vw, 3.0rem) !important;
}


/* ==========================================================================
   Elite Section Headers
   ========================================================================== */

.elite-header {
  margin-bottom: 48px;
  max-width: 800px;
}

.elite-kicker {
  display: block;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #087fff;
  margin-bottom: 16px;
}

.elite-title {
  font-family: var(--font-family-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #0f172a;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.elite-header__divider {
  width: 80px;
  height: 4px;
  background: #087fff;
  border-radius: 2px;
}

/* ==========================================================================
   Architectural Blueprint Features
   ========================================================================== */

.architectural-features {
  position: relative;
  margin-top: 40px;
  padding: 0; /* Clear container padding so background flows cleanly */
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  overflow: visible;
}

@media (max-width: 768px) {
  .architectural-features {
    padding: 0;
  }
}

/* The Graph Paper Background */
.architectural-features::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(8, 127, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 127, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
  pointer-events: none;
}

.architectural-grid {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 1600px;
  margin-inline: auto;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .architectural-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .architectural-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.arch-card {
  background: rgba(255, 255, 255, 0.03); /* Glass base matching tech-node */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.arch-card:hover {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(8, 127, 255, 0.5);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.arch-card__metric {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #087fff;
  font-family: var(--font-family-heading);
  margin-bottom: 24px;
}

.arch-card__icon {
  width: 48px;
  height: 48px;
  color: #ffffff;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
  transition: transform 0.6s ease;
}

.arch-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.arch-card:hover .arch-card__icon {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 15px rgba(8, 127, 255, 0.5));
  color: #087fff;
}

.arch-card__title {
  font-family: var(--font-family-heading);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
}

.arch-card__body {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.arch-card:hover .arch-card__body {
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Elite Technical Matrix
   ========================================================================== */

.arch-capability-matrix {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 100px 0;
  width: 100%;
  background-image: url("../../assets/images/Mahomes.png");
  background-size: cover;
  background-position: center 15%;
  background-attachment: scroll;
  overflow: hidden;
}

.arch-capability-matrix::after {
  content: "";
  position: absolute;
  inset: 0;
  display: block !important;
  background: linear-gradient(
    to bottom,
    rgba(3, 8, 22, 1) 0%,
    rgba(8, 127, 255, 0.4) 40%,
    rgba(8, 127, 255, 0.4) 60%,
    rgba(3, 8, 22, 1) 100%
  ) !important;
  z-index: 10 !important;
  pointer-events: none;
}

.arch-capability-matrix .elite-title {
  color: #ffffff !important;
}

.arch-capability-matrix .elite-kicker {
  color: #ffffff !important;
  opacity: 1 !important;
}

.arch-capability-matrix .elite-header__divider {
  background: #ffffff !important;
}

.arch-capability-matrix .elite-header {
  position: relative;
  z-index: 100 !important;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--container-padding);
  margin-bottom: 80px;
  text-align: left;
}

.arch-capability-header .elite-kicker {
  color: #087fff;
}

.elite-technical-matrix {
  position: relative;
  z-index: 20 !important;
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: var(--container-padding);
  display: grid;
  max-width: 1600px;
  margin-inline: auto;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .elite-technical-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .elite-technical-matrix {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tech-node {
  position: relative;
  padding: 48px;
  background: rgba(255, 255, 255, 0.03); /* Glass base */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tech-node:hover {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(8, 127, 255, 0.5);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.tech-node__icon {
  width: 48px;
  height: 48px;
  color: #ffffff;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
  transition: transform 0.6s ease;
}

.tech-node:hover .tech-node__icon {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 15px rgba(8, 127, 255, 0.5));
  color: #087fff;
}

.tech-node__index {
  font-family: var(--font-family-heading);
  font-size: 11px;
  font-weight: 700;
  color: #087fff;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  opacity: 0.6;
}

.tech-node__label {
  font-family: var(--font-family-heading);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.1;
}

.tech-node__sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  max-width: 32ch;
}

.tech-node:hover .tech-node__sub {
  color: rgba(255, 255, 255, 0.9);
}

:root[data-theme="dark"] .arch-capability-matrix {
  background-color: #030816;
}

:root[data-theme="dark"] .tech-node {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .tech-node__label {
  color: #ffffff;
}

:root[data-theme="dark"] .tech-node__sub {
  color: rgba(255, 255, 255, 0.5);
}

:root[data-theme="dark"] .tech-node:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(8, 127, 255, 0.5);
}

/* ==========================================================================
   Dual CTA Split
   ========================================================================== */

/* ==========================================================================
   Elite Split CTA (Unified Background)
   ========================================================================== */

.elite-split-cta {
  position: relative;
  min-height: 700px;
  background-image: url("../../assets/images/swimmer-bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Parallax effect */
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.elite-split-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 50%, rgba(15, 23, 42, 0.95) 100%);
  z-index: 1;
}

.elite-split-cta__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  display: grid;
  max-width: 1600px;
  margin-inline: auto;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .elite-split-cta__container {
    grid-template-columns: 1fr 1fr;
  }
}

.elite-split-cta__side {
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
  transition: background 0.4s ease;
  height: 100%; /* Ensure full height for button push */
}

@media (min-width: 1024px) {
  .elite-split-cta__side {
    padding: 120px 80px;
  }
  
  .elite-split-cta__side--publishers {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.elite-split-cta__side:hover {
  background: rgba(8, 127, 255, 0.05);
}

.elite-split-cta__kicker {
  display: block;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #087fff;
  margin-bottom: 20px;
}

.elite-split-cta__headline {
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 32px;
  text-transform: uppercase;
}

.elite-split-cta__body {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 48px;
  max-width: 480px;
  flex-grow: 1; /* Pushes button to bottom */
}

.elite-split-cta .btn {
  align-self: flex-start;
  margin-top: auto; /* Absolute leveling of buttons */
}

.elite-swimmer {
  display: none; /* Decommissioning swimmer for split-cta */
}

/* Legacy Image Panels - Keep hidden */
.image-panel {
  display: none;
}

/* ==========================================================================
   Features Grid
   ========================================================================== */

.features {
  position: relative;
  z-index: 1;
  background-image: url("../../assets/images/sports-bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  padding-block: 120px; /* Elegant full padding for cinematic presence */
  overflow: hidden;
}

.features::after {
  content: "";
  position: absolute;
  inset: 0;
  display: block !important;
  background: linear-gradient(
    to bottom,
    rgba(3, 8, 22, 1) 0%,
    rgba(8, 127, 255, 0.4) 40%,
    rgba(8, 127, 255, 0.4) 60%,
    rgba(3, 8, 22, 1) 100%
  ) !important;
  z-index: 2 !important;
  pointer-events: none;
}

.features .container {
  position: relative;
  z-index: 10 !important;
}

.features .elite-title {
  color: #ffffff !important;
}

.features .elite-kicker {
  color: #ffffff !important;
  opacity: 1 !important;
}

.features .elite-header__divider {
  background: #ffffff !important;
}

.features__header {
  text-align: left;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--container-padding);
  margin-bottom: 80px;
  display: grid;
  max-width: 1600px;
  margin-inline: auto;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .features__header {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
  }
}

.features__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #087fff;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  margin-bottom: 16px;
}

.features__headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #0f172a;
}

.features__grid {
  display: grid;
  max-width: 1600px;
  margin-inline: auto;
  grid-template-columns: repeat(1, 1fr);
  gap: 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.features__card {
  background-color: transparent;
  border-radius: 0;
  padding: 60px 40px;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  border-right: 1px solid rgba(0,0,0,0.08);
  box-shadow: none;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.features__card:hover {
  background: rgba(8, 127, 255, 0.015);
}

.features__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 32px;
  margin-inline: 0;
  color: #087fff;
  filter: drop-shadow(0 0 10px rgba(8, 127, 255, 0.2));
}

.features__title {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 16px;
  text-align: left;
}

.features__desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #64748b;
  max-width: 320px;
}

@media (min-width: 768px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features__headline {
    font-size: var(--font-size-3xl);
  }
}

/* Desktop: 3 columns */
@media (min-width: 1280px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Partner Logos
   ========================================================================== */

.partners {
  background-color: #ffffff;
  padding-block: 100px;
}

.partners__heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  text-align: center;
  color: #94a3b8;
  margin-bottom: 60px;
}

.partners__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.partners__logo {
  max-width: 180px;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.4);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.partners__logo:hover {
  filter: grayscale(0) opacity(1);
  transform: translateY(-4px);
}

/* ==========================================================================
   Story So Far
   ========================================================================== */

.story {
  background-color: #f8fafc;
  padding-block: 100px; /* Reduced from 160px for elegant visual pacing */
}

.story__grid {
  display: grid;
  max-width: 1600px;
  margin-inline: auto;
  grid-template-columns: 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.story__label {
  font-size: 11px;
  font-weight: 700;
  color: #087fff;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  margin-bottom: 24px;
  display: block;
}

.story__headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #0f172a;
  margin-bottom: 32px;
}

.story__body {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #64748b;
  max-width: 520px;
  margin-bottom: 40px;
}

.story__cta {
  display: inline-block;
}

.story__image {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.1);
}

.story__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Tablet+: two columns */
@media (min-width: 768px) {
  .story__grid {
    grid-template-columns: 1fr 1fr;
  }

  .story__headline {
    font-size: 2.5rem;
  }
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */

.cta-banner {
  background-color: var(--color-dark);
  padding-block: 80px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

:root[data-theme="dark"] .dna,
:root[data-theme="dark"] .partners,
:root[data-theme="dark"] .story {
  background-color: var(--color-surface) !important;
}

:root[data-theme="dark"] .features {
  background-image: url("../../assets/images/sports-bg.png") !important;
  background-color: transparent !important;
}

:root[data-theme="dark"] .dna__body,
:root[data-theme="dark"] .features__headline,
:root[data-theme="dark"] .features__title,
:root[data-theme="dark"] .partners__heading,
:root[data-theme="dark"] .story__headline {
  color: var(--color-text);
}

:root[data-theme="dark"] .features__desc,
:root[data-theme="dark"] .story__body {
  color: var(--color-text-light);
}

:root[data-theme="dark"] .features__card {
  background-color: var(--color-surface-muted);
}

:root[data-theme="dark"] .partners__divider {
  border-top-color: var(--color-border);
}

.cta-banner {
  background-color: #060d1c;
  padding-block: 90px; /* Sleeker bottom action spacing */
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(8, 127, 255, 0.1);
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(8, 127, 255, 0.15) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.cta-banner__headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.cta-banner__subheadline {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 600px;
  margin-inline: auto;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .cta-banner__headline {
    font-size: 2.5rem;
  }
}

/* ==========================================================================
   Home Header Overrides
   ========================================================================== */

.home-page .header.header--over-hero {
  background-color: transparent;
  border-bottom: none;
}

.home-page .header.header--over-hero .header__nav-link {
  color: var(--color-white);
}

.home-page .header.header--over-hero .header__toggle-bar {
  background-color: var(--color-white);
}

.home-page .header.header--over-hero .header__nav-link:hover,
.home-page .header.header--over-hero .header__nav-link.is-active,
.home-page .header.header--over-hero .header__nav-link[aria-current="page"] {
  color: var(--color-white);
}

.home-page .header.header--over-hero .header__nav-link::after {
  background-color: var(--color-white);
}

.home-page .header.header--over-hero .header__theme-toggle {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.75);
  background: transparent;
}

.home-page .header.header--over-hero .header__theme-toggle:hover {
  border-color: var(--color-white);
  background: transparent;
}

@media (max-width: 1023px) {
  .home-page .header.header--over-hero .header__nav {
    background-color: transparent;
  }
}



@media (max-width: 768px) {
  /* 1. Make the container fill the screen width smoothly */
  section.dna,
  .dna,
  [class*="dna"] {
    padding-inline: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: max-content !important;
    max-height: none !important;
  }

  /* 2. Scale down the massive fonts to look compact and premium like the other pages */
  .dna .dna__body,
  main .dna__body,
  .dna__body {
    font-size: 1.15rem !important;
    line-height: 1.6 !important;
    letter-spacing: normal !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: block !important;
    word-break: break-word !important;
    text-align: center !important;
  }

  /* 3. Apply the premium smooth dark gradient background from the publishers page */
  section.dna,
  .dna {
    background: linear-gradient(to bottom, #030816 0%, #16243f 50%, #030816 100%) !important;
    background-image: linear-gradient(to bottom, #030816 0%, #16243f 50%, #030816 100%) !important;
    padding-block: 60px 80px !important;
  }
}

@media (max-width: 768px) {
  /* Force the container structure to drop aspect-ratio/height freezes and expand vertically */
  section.dna,
  .dna,
  .text-section--ratio,
  [class*="dna"] {
    aspect-ratio: unset !important;
    height: auto !important;
    min-height: fit-content !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding-block: 80px 100px !important; /* Adds generous breathing room at top and bottom */
  }

  /* Ensure the inner wrapper element allows vertical growth */
  .dna__content,
  .dna_content,
  [class*="content"] {
    height: auto !important;
    max-height: none !important;
    display: block !important;
  }
}

@media (max-width: 1024px) {
  section.dna,
  .dna,
  .text-section--ratio,
  [class*="dna"] {
    aspect-ratio: unset !important;
    height: auto !important;
    min-height: fit-content !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding-block: 80px 100px !important;
    padding-inline: 40px !important;
  }

  .dna__content,
  .dna_content,
  [class*="content"] {
    height: auto !important;
    max-height: none !important;
    display: block !important;
  }
}

@media (max-width: 1024px) {
  section.dna,
  .dna {
    background: linear-gradient(to bottom, #030816 0%, #16243f 50%, #030816 100%) !important;
    background-image: linear-gradient(to bottom, #030816 0%, #16243f 50%, #030816 100%) !important;
  }
}

section,
main > section,
[class*="dna"] {
  border-top: none !important;
  border-bottom: none !important;
  outline: none !important;
}

section + section {
  margin-top: -1px !important;
}

/* ==========================================================================
   MOBILE HERO SYNC UP: MATCHES PUBLISHERS DISPLAY DIMENSIONS
   ========================================================================== */
@media (max-width: 768px) {
  section.hero {
    min-height: auto !important;
    height: auto !important;
    display: block !important; /* Clears flexbox distortions */
    padding-top: 190px !important; /* Matches line 1061 of publishers.css exactly */
    padding-bottom: 90px !important; /* Gives the background image an identical structural aspect ratio */
  }

  .hero__content {
    padding-top: 0 !important; /* Removes legacy vertical offsets pushing content downward */
    text-align: left !important; /* Matches structural left alignment on mobile fields */
    margin-inline: 0 !important;
    max-width: 100% !important;
  }

  .hero__headline {
    text-align: left !important;
  }

  .hero__subheadline {
    text-align: left !important;
    margin-top: var(--space-lg) !important;
  }

  .hero__actions {
    justify-content: flex-start !important; /* Ensures CTA actions stay neatly anchored below the text copy */
  }
}
