.container-max {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.bg-matrix {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 800px; /* Reduced dimensional footprint */
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 30%,
    transparent 60%
  );
  mask-image: linear-gradient(to bottom, black 0%, black 30%, transparent 60%);
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px; /* Space for fixed navbar */
  padding-bottom: 60px;
}

.mandala-art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  -webkit-mask-image: url("../images/mandala.png");
  mask-image: url("../images/mandala.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  color: transparent;
  mask-type: luminance;
}

.mandala-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(253, 48, 4, 0.38) 0%,
    rgba(212, 175, 55, 0.22) 35%,
    transparent 70%
  );
  filter: blur(2px);
  transition: transform 0.1s ease-out;
}

/* REALMS STICKY STACKING ENGINE */
.realms-sticky-stack {
  position: relative;
  background: #000;
}

.realm-slide {
  position: sticky;
  top: 80px; /* Docked exactly beneath the navbar */
  height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: none; /* Harsh shadow removed per USER requirement */
}

/* TRIPLE ALTERNATE BRAND SYSTEM */
.realm-black {
  background: #000 !important;
  color: #fff !important;
}

.realm-white {
  background: #fff !important;
  color: #000 !important;
}

.realm-signal {
  background: var(--color-signal) !important;
  color: #000 !important; /* High-contrast black on signal red */
}

/* Z-Index Progression for Stackability */
.realm-slide:nth-child(1) {
  z-index: 10;
}
.realm-slide:nth-child(2) {
  z-index: 20;
}
.realm-slide:nth-child(3) {
  z-index: 30;
}
.realm-slide:nth-child(4) {
  z-index: 40;
}
.realm-slide:nth-child(5) {
  z-index: 50;
}
.realm-slide:nth-child(6) {
  z-index: 60;
}

.text-hero-lg {
  font-family: var(--font-heading);
  font-size: clamp(48px, 8vw, 100px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.hero-content {
  position: relative;
  z-index: 1;
}

section {
  padding: var(--spacing-xl) 0;
  background: transparent; /* Reveal dot matrix background */
  position: relative;
}

.section-light {
  background: transparent;
}
.section-muted {
  background: rgba(238, 238, 238, 0.5);
  backdrop-filter: blur(5px);
}
.section-dark {
  background: var(--color-primary);
  color: var(--color-surface);
}

.left-aligned {
  text-align: left;
}

/* NAVBAR SYSTEM (Fixed Overlay) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 15100; /* Paramount Layer - Above Status Overlays */
  transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

nav.navbar.scrolled,
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85) !important;
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  padding: 12px 0 !important;
  box-shadow: 0 6px 20px rgba(253, 48, 4, 0.10), 0 2px 6px rgba(253, 48, 4, 0.05) !important;
  border-bottom: 1px solid rgba(253, 48, 4, 0.10) !important;
}

/* Subtle luminous brand glow when scrolling over dark sections */
nav.navbar.scrolled.over-dark,
.navbar.scrolled.over-dark {
  box-shadow: 0 8px 28px rgba(253, 48, 4, 0.24), 0 2px 8px rgba(253, 48, 4, 0.14) !important;
  border-bottom: 1px solid rgba(253, 48, 4, 0.20) !important;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 28px;
  color: #000 !important; /* Locked to black */
  letter-spacing: -0.02em;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-primary); /* Standard black text */
  background-color: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  padding-top: 60px;
  /* DISABLE TEXT SELECTION */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

input,
textarea,
[contenteditable="true"] {
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 400;
  text-decoration: none;
  color: #000 !important; /* Locked to black */
  margin: 0 var(--spacing-sm);
  text-transform: uppercase;
  font-size: 14px;
  position: relative;
  transition: all 0.2s ease;
  letter-spacing: 0.15em;
  display: inline-block;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-signal) !important;
}

/* Mobile Nav Drawer Open Overrides */
body.mobile-nav-open .logo,
body.mobile-nav-open #site-logo {
  color: #ffffff !important;
}

body.mobile-nav-open .mobile-nav-toggle .line,
body.mobile-nav-open .mobile-nav-toggle .hamburger-line {
  background: #ffffff !important;
}

#scroll-top {
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#scroll-top:hover {
  background: var(--color-signal) !important;
  color: #fff !important;
  border-color: var(--color-signal) !important;
}

#scroll-top.dark-context {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

#scroll-top.dark-context:hover {
  background: var(--color-signal) !important;
  border-color: var(--color-signal) !important;
}

/* Animated Hover Icon */
#scroll-top .scroll-icon {
  display: inline-block;
  opacity: 0;
  width: 0;
  margin-right: 0;
  transform: translateY(5px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  vertical-align: middle;
}

#scroll-top:hover .scroll-icon {
  opacity: 1;
  width: auto;
  margin-right: 8px;
  transform: translateY(0);
}

.dark-context .nav-link:hover {
  color: var(--color-signal) !important;
}

.nav-link:not(.icon-link)::before,
.nav-link:not(.icon-link)::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-signal);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:not(.icon-link)::before {
  content: "[";
  left: -12px;
}

.nav-link:not(.icon-link)::after {
  content: "]";
  right: -12px;
}

.nav-link:hover {
  color: var(--color-signal);
}

.nav-link:not(.icon-link):hover::before {
  opacity: 1;
  left: -8px;
}

.nav-link:not(.icon-link):hover::after {
  opacity: 1;
  right: -8px;
}

/* LANDING PAGE ACTIVE (UNDERLINE + COLOR) */
.nav-link.active {
  color: var(--color-signal);
}

.nav-link.active:not(.icon-link)::before,
.nav-link.active:not(.icon-link)::after {
  display: none; /* Brackets animate into underline */
}

.nav-link.active:not(.icon-link)::after {
  display: block;
  content: "";
  position: absolute;
  width: 45%;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  background-color: var(--color-signal);
  bottom: 5px;
  top: auto;
  opacity: 1;
}

/* INTERNAL PAGE ACTIVE (DOT + NO COLOR) */
.nav-link.active-dot {
  color: var(--color-primary); /* Remove text color as requested */
}

.nav-link.active-dot:not(.icon-link)::before,
.nav-link.active-dot:not(.icon-link)::after {
  display: none;
}

.nav-link.active-dot:not(.icon-link)::after {
  display: block;
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: var(--color-signal);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  top: auto;
  opacity: 1;
  border-radius: 50%;
}

.nav-link.icon-link {
  color: var(--color-primary) !important;
}

.nav-link.icon-link:hover {
  color: var(--color-signal) !important;
}

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  text-decoration: none;
  color: var(--color-primary);
  position: relative;
  transition: color 0.3s ease;
}

.logo.active::after {
  content: "";
  position: absolute;
  width: 40px; /* Small, covering approx 4 letters */
  height: 2px;
  background-color: var(--color-signal);
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
}

.signature-strike {
  height: 100%;
  min-height: 400px;
  background: linear-gradient(
    90deg,
    #000000 50%,
    var(--color-primary-container) 50%
  );
}

.numbered-list-item {
  display: flex;
  align-items: baseline;
  padding: var(--spacing-md);
  background: var(--color-surface-low);
  margin-bottom: 2px;
  transition: all 0.3s ease;
}

.numbered-list-item:hover {
  background: var(--color-surface-container);
  padding-left: calc(var(--spacing-md) + 20px);
}

.is-join-page #nav-join-btn {
  background: transparent !important;
  color: var(--color-signal) !important;
  border: 1px solid var(--color-signal) !important;
  pointer-events: none;
  opacity: 1;
}

.border-top-tonal {
  border-top: 1px solid var(--color-surface-container-high);
}

/* BRANDING & MANIFESTO UTILITIES */
.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
}

.border-end-tonal {
  border-right: 1px solid var(--color-surface-container-high);
}

.py-xl {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

.italic {
  font-style: italic;
}

.transition-fade {
  transition: opacity 0.6s ease-in-out;
}

#logo-img {
  transition: filter 0.3s ease;
}

.scrolled #logo-img {
  filter: brightness(0); /* Black logo on white navbar */
}

.numbered-list-item:hover {
  background: var(--color-surface-container);
  padding-left: 20px;
}

.numbered-list-item:hover .item-number {
  color: var(--color-signal);
}

.item-number {
  font-family: var(--font-heading);
  font-size: 32px;
  margin-right: var(--spacing-md);
  color: var(--color-surface-container-high);
}

.item-title {
  font-family: var(--font-heading);
  font-size: 28px;
}

/* REACTOR DESIGN SYSTEM - BENTO GRID */
.reactor-section {
  padding-top: 160px;
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(253, 48, 4, 0.02) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 90%,
      rgba(253, 48, 4, 0.02) 0%,
      transparent 40%
    );
}

.tactical-grid {
  display: none; /* Moved to bit-perfect canvas engine in main.js */
}

.reactor-header {
  margin-bottom: 64px;
}

.status-dashboard {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-container-high);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.status-dashboard::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-primary);
}

.status-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 0.1em;
}

.status-value {
  font-family: var(--font-heading);
  font-size: 24px;
  text-transform: uppercase;
}

.reactor-grid {
  display: grid;
  grid-template-columns: repeat(8, 160px);
  grid-auto-rows: 140px;
  grid-auto-flow: dense;
  gap: 0;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  border: 1px solid var(--color-surface-container-high);
}

.reactor-card {
  background: #f9f9f9;
  outline: 1px solid var(--color-surface-container-high); /* Tactical outline instead of gap */
  padding: 20px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.reactor-card.dark {
  background: #000;
  color: #fff;
}

.reactor-card.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.card-node {
  display: none; /* Removed as requested */
}

.reactor-card.dark .card-node {
  color: #555;
}

.card-icon {
  font-size: 24px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 24px; /* Reduced to ensure single line */
  line-height: 1.1;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-directive {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800; /* Bolder for impact */
  color: var(--color-signal);
}

.card-metric {
  font-family: var(--font-heading);
  font-size: 48px;
  margin-top: auto;
}

.card-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 18px;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.reactor-card {
  border-bottom: 2px solid transparent !important; /* Base state for animation */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.reactor-card:hover {
  background: var(--color-surface);
  border-bottom-color: var(
    --color-signal
  ) !important; /* Signal orange-red accent */
  transform: translateY(-4px);
}

.reactor-card.dark:hover {
  background: #111;
}

.reactor-card:hover .card-icon {
  color: var(--color-signal); /* Signal color on hover */
}

.reactor-card:hover .card-arrow {
  opacity: 1;
  color: var(--color-signal); /* Adding signal color to arrow */
  transform: translate(2px, -2px);
}

.reactor-card.w-2 {
  grid-column: span 2;
}
.reactor-card.w-3 {
  grid-column: span 3;
}
.reactor-card.w-4 {
  grid-column: span 4;
}
.reactor-card.h-2 {
  grid-row: span 2;
}
.reactor-card.h-3 {
  grid-row: span 3;
}

.reactor-card.h-4 {
  grid-row: span 4;
}

/* Refined typography for varying card sizes */
.reactor-card {
  padding: 20px;
}

@media (max-width: 576px) {
  .reactor-grid {
    grid-template-columns: 1fr;
  }
  .reactor-card.featured {
    grid-column: span 1;
  }
}

.nav-link {
  color: #000 !important;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  position: relative;
}

.nav-link.active {
  text-decoration: none !important;
  border-bottom: none !important;
  position: relative;
}

/* INDUSTRIAL SCROLL-TOP LAUNCHER */
.btn-scroll-top,
#scroll-top {
  position: fixed;
  bottom: 50px !important;
  right: 50px;
  z-index: 20000 !important; /* Sovereign Layer - Above Footer */
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  background: #ffffff !important;
  border: 1px solid #000000 !important;
  color: #000000 !important;
  padding: 10px 16px;
  font-family: var(--font-mono) !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.btn-scroll-top:hover,
#scroll-top:hover {
  background: var(--color-signal) !important;
  border-color: var(--color-signal) !important;
  color: #ffffff !important;
}

.btn-scroll-top.visible,
#scroll-top.visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Dynamic Dark Context Switching */
.btn-scroll-top.dark-context,
#scroll-top.dark-context {
  background: #000000 !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}

.btn-scroll-top.dark-context:hover,
#scroll-top.dark-context:hover {
  background: var(--color-signal) !important;
  border-color: var(--color-signal) !important;
  color: #ffffff !important;
}


/* MOBILE NAV OVERLAY STYLES (Navbar-Relative) */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #000000;
  z-index: 15050;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s ease;
  background-image: radial-gradient(
    rgba(253, 48, 4, 0.08) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  opacity: 0;
  visibility: hidden;
}

body.has-banner .mobile-nav-overlay {
  top: 40px;
  height: calc(100vh - 40px);
}

.mobile-nav-overlay.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-header {
  position: absolute;
  top: 60px; /* Below standard nav */
  width: 100%;
}

.mobile-menu-inner {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.mobile-nav-link {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease;
  letter-spacing: 0.15em;
  font-weight: 400; /* Matched to original */
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--color-signal) !important;
  text-decoration: none !important;
}

.mobile-nav-link.active::before {
  content: "[ ";
  opacity: 0.8;
}

.mobile-nav-link.active::after {
  content: " ]";
  opacity: 0.8;
}

.mobile-nav-socials {
  position: absolute;
  bottom: 20px; /* Moved to bottom as requested */
  width: 100% !important;
  left: 0;
  display: block !important;
}

.mobile-nav-footer {
  position: absolute;
  bottom: 0px;
  width: 100%;
}

#scrollTop-include,
#scroll-top-include {
  background: none !important;
  border: none !important;
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 20000;
  pointer-events: none;
}

.scroll-icon {
  font-size: 16px;
  line-height: 1;
}

.fixed-location-tag {
  position: fixed;
  bottom: 18px;
  right: 50px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: #000000;
  opacity: 0.55;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 20000; /* Sovereign Layer - Above Footer */
  pointer-events: none;
  font-weight: 800;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.fixed-location-tag.dark-context,
.fixed-location-tag.dark-context #user-country {
  color: #ffffff !important;
  opacity: 0.95 !important;
}

@media (max-width: 768px) {
  .btn-scroll-top {
    bottom: 30px !important; /* Moved back to bottom */
    right: 20px;
    padding: 8px 12px;
    font-size: 10px;
  }
  .fixed-location-tag {
    bottom: 10px;
    right: 22px;
    font-size: 6px;
  }
  .footer-badges-row {
    padding-bottom: 20px; /* Reduced since buttons moved down */
  }
}

/* INDUSTRIAL BOOT/COOKIE CONSOLE */
.cookie-notification {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 650px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 3px solid var(--color-signal);
  padding: 35px 40px;
  z-index: 10001;
  display: none;
  color: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 992px) {
  .cookie-notification {
    left: 40px;
    bottom: 40px;
  }
}

.cookie-header {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.15em;
  margin-bottom: 15px;
  color: #fff;
}

.cookie-text {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 25px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-cookie-action {
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  min-width: 140px;
  flex: 1;
}

.btn-cookie-primary {
  background: var(--color-signal);
  color: #fff;
}

.btn-cookie-primary:hover {
  background: #fff;
  color: #000;
}

.btn-cookie-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-cookie-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-cookie-silent {
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
}

.btn-cookie-silent:hover {
  color: var(--color-signal);
}

@media (max-width: 576px) {
  .btn-cookie-action {
    width: 100%;
    flex: none;
  }
}

/* UI CLEANLINESS - EXCLUDING CORE NAVIGATION */
.navbar-nav .nav-link.active,
.footer-nav .nav-link.active,
.logo.active {
  background-image: linear-gradient(
    var(--color-signal),
    var(--color-signal)
  ) !important;
  background-size: 45px 2px !important; /* Unified 45px width */
  background-repeat: no-repeat !important;
  background-position: center bottom 4px !important;
  text-decoration: none !important;
  border-bottom: none !important;
  position: relative;
}

/* Ensure no trailing pseudo-elements interfere */
.navbar-nav .nav-link.active::after,
.logo.active::after,
.logo::after {
  display: none !important;
  content: none !important;
}

/* UI CLEANLINESS - EXCLUDING CORE NAVIGATION */
#console-toggle.active::after,
#console-toggle::after,
#scrollTop.active::after,
#scrollTop::after {
  background: none !important;
  display: none !important;
}

.footer-logo-custom {
  position: relative;
  display: inline-block;
}

.footer-logo-custom::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 45px; /* Shorter centered visual segment */
  height: 2px;
  background: var(--color-signal);
}

footer.footer-main {
  padding-top: var(--spacing-lg);
  background:
    radial-gradient(
      ellipse 90% 250px at 50% 100%,
      rgba(253, 48, 4, 0.28) 0%,
      transparent 100%
    ),
    #000;
  color: #fff;
  position: relative;
  overflow: visible; /* Ensure nothing is cut at the edge */
}

/* FOOTER BRAND & TYPOGRAPHY */
.footer-brand-link {
  font-size: 36px !important;
  color: #fff !important;
  margin-bottom: 24px;
  display: block;
}

.footer-scale-title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(20px, 4vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 1000px;
  margin-bottom: 20px;
}

.footer-address-label {
  color: #fff !important;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.footer-address-info {
  color: rgba(255, 255, 255, 0.6) !important;
  line-height: 1.6;
  font-size: 13px;
  margin-bottom: 0;
}

.footer-section-heading {
  font-family: var(--font-body) !important;
  font-weight: 800;
  color: var(--color-signal);
  margin-bottom: 32px;
  text-transform: capitalize; /* Removed all-caps */
}

/* 3:1:1 Grid Implementation */
.footer-grid-311 {
  display: flex;
  flex-wrap: wrap;
}

@media (min-width: 992px) {
  .footer-grid-311 {
    display: grid !important;
    grid-template-columns: 3.5fr 1fr 1fr !important; /* Slightly more room for title */
    gap: 80px !important; /* Massive spread Gap */
  }

  /* KILL BOOTSTRAP SQUEEZE */
  .footer-grid-311 > div {
    width: auto !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
  }
}

.footer-nav-col {
  padding-left: 0;
}

.footer-bg-quote {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: clamp(24px, 5vw, 60px); /* Smaller more refined scale */
  color: #fff;
  opacity: 0.05; /* Barely visible ghost text */
  text-align: center;
  pointer-events: none;
  z-index: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.4;
  width: 100%;
}

.footer-main .container-max {
  position: relative;
  z-index: 5;
}

.border-dark-accent {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

.footer-bottom-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 auto;
}

.footer-bottom-standalone {
  background: var(--color-surface); /* Pure white background */
  border-top: 1px solid var(--color-surface-container-high);
  position: relative;
  z-index: 10;
}

.footer-divider {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 991px) {
  .footer-divider {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
    margin-bottom: 3rem;
  }
}

.nav-link-simple {
  color: #fff !important;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.6;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  /* Balanced wrapping with safety gap */
  display: inline-block;
  width: fit-content;
  position: relative;
  padding: 6px 0;
  margin: 0 15px; /* Added external horizontal gap for brackets */
}

/* Precision Matching Navbar Bracket Hover */
.nav-link-simple::before,
.nav-link-simple::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-signal);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-simple::before {
  content: "[";
  left: -15px;
}
.nav-link-simple::after {
  content: "]";
  right: -15px;
}

.nav-link-simple:hover {
  opacity: 1;
  color: var(--color-signal) !important;
}

.nav-link-simple:hover::before {
  opacity: 1;
  left: -10px;
}
.nav-link-simple:hover::after {
  opacity: 1;
  right: -10px;
}

.nav-link-simple.active {
  opacity: 1;
  color: var(--color-signal) !important;
}

.nav-link-simple.active::before,
.nav-link-simple.active::after {
  opacity: 1;
}

.nav-link-simple.active::before {
  left: -10px;
}

.nav-link-simple.active::after {
  right: -10px;
}

.badge-node {
  background: #ffffff;
  color: #000000 !important;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  padding: 4px 14px;
  display: inline-block;
  font-weight: 800;
  border-radius: 2px;
  text-transform: uppercase;
  /* Hover effect for a premium technical look */
  transition: all 0.3s ease;
}

.badge-node:hover {
  background: var(--color-signal);
  color: #ffffff !important;
}

.btn-signal-animated {
  background: var(--color-signal) !important;
  color: #fff !important;
  border: none;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 18px 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
}

.btn-signal-animated span {
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-signal-animated i.transition-arrow {
  display: none !important; /* Standardized to CSS arrow */
}

.btn-signal-animated::after {
  content: "→";
  position: absolute;
  right: 20px;
  opacity: 0;
  transform: translateX(-15px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 400;
  z-index: 2;
}

.btn-signal-animated:hover {
  background: var(--color-signal) !important; /* Match hover color */
  letter-spacing: 0.15em;
  padding-right: 50px;
}

.btn-signal-animated:hover span {
  transform: translateX(-10px);
}

.btn-signal-animated:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.footer-submit-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.footer-copyright-text {
  color: #fff !important;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-size: 11px;
  margin-bottom: 0;
  opacity: 0.8;
}

.social-links-minimal a {
  font-size: 22px;
  transition: all 0.3s ease;
  color: #fff !important;
}

.gap-5 {
  gap: 48px !important; /* Premium spread */
}

.hq-footer-input {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff !important;
  padding: 18px 24px;
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
  width: 100%;
}

.hq-footer-input:focus {
  border-color: var(--color-signal);
  background: rgba(255, 255, 255, 0.05) !important;
}

.social-links-minimal a {
  font-size: 22px;
  transition: all 0.3s ease;
  color: #fff !important;
}

.social-links-minimal a:hover {
  color: var(--color-signal) !important;
  transform: translateY(-5px);
}

.gap-5 {
  gap: 48px !important; /* Increased for premium feel */
}


/* ═══════════════════════════════════════════
   CLIENTS // THE NETWORK MARQUEE
   ═══════════════════════════════════════════ */
.section-clients {
  background: var(--color-surface);
  position: relative;
  z-index: 5;
}

.marquee-wrapper {
  mask-image: linear-gradient(
    to right,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
  overflow: hidden;
  padding: 20px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
  gap: 80px;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.client-item {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  color: #000;
  opacity: 0.4;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: default;
  letter-spacing: -0.01em;
}

.client-item span {
  position: relative;
  text-transform: none; /* Keeping natural capitalization */
}

.client-item img {
  max-height: 38px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.client-item:hover img {
  filter: grayscale(0%);
}

.client-item:hover {
  opacity: 1;
  color: var(--color-signal);
  transform: scale(1.1);
  letter-spacing: 0.05em;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* MISSION INSIGHT ZONE // DUAL-ZONE TACTICAL GRID */
.section-insight {
  position: relative;
  z-index: 10;
  overflow: hidden;
  /* Stabilize section height to prevent jumps during card expansion */
  min-height: clamp(800px, 100vh, 1200px);
}

.badge-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  color: #000;
  background: transparent;
  transition: all 0.3s ease;
}

.section-dark .badge-tag {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.insight-stats .text-hero-sm {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
  font-weight: 800;
}

.border-top-tonal {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.section-dark .border-top-tonal {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.insight-card-asset {
  position: relative;
  border-radius: 0; /* Sharp industrial corners */
  overflow: hidden;
  aspect-ratio: var(--aspect, 4/5);
  background: var(--color-surface-container);
  box-shadow: none;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.insight-card-asset:hover {
  aspect-ratio: var(--hover-aspect, 4/6) !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.insight-card-asset .asset-placeholder {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.insight-card-asset:hover .asset-placeholder {
  transform: scale(1.05);
}

.asset-placeholder,
.asset-image {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.05);
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.insight-card-asset:hover .asset-image {
  transform: scale(1.05);
}

.section-dark .asset-placeholder,
.section-dark .asset-image {
  background: rgba(255, 255, 255, 0.05);
}

/* REBALANCING TRANSITIONS */
.insight-content h2 {
  max-width: 90%;
  line-height: 1.1;
}

/* SYNCHRONIZED HEIGHT SYSTEM // PERSISTENT STATE LOGIC */
/* 1. Base State (Collapsed by default) */
.insight-grid-sync .insight-card-asset {
  aspect-ratio: var(--aspect-min);
  opacity: 1; /* Removed fade per user request */
  transform: translateY(0);
  box-shadow: 0 10px 30px rgba(253, 48, 4, 0.05); /* Subtle primary tint shadow */
  z-index: 1;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer;
}

/* 2. Persistent Active State (Expanded) */
.insight-grid-sync .insight-card-asset.is-active {
  aspect-ratio: var(--aspect-max) !important;
  box-shadow: 0 30px 60px rgba(253, 48, 4, 0.15) !important; /* Enhanced primary shadow */
  transform: translateY(-8px) !important;
  z-index: 2 !important;
  opacity: 1 !important;
}

/* 3. Consistency Polish (Ensure smooth handoff) */
.insight-grid-sync .insight-card-asset .asset-placeholder,
.insight-grid-sync .insight-card-asset .asset-image {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-insight .insight-content span.text-signal {
  font-size: 10px; /* Highly-concentrated technical anchor */
  letter-spacing: 0.15em;
}

.insight-content h2.text-section-title {
  font-size: 3rem !important; /* Impactful moonshot scale */
  max-width: 90%;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.insight-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 15px !important; /* Industrial spacing for mission verticals */
}

/* KINETIC ANIMATION SYSTEM // SLIDE-STREAM */
.animate-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.animate-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.animate-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Delay Sequential Elements */
.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}

/* ARCHIVE CARDS - 360 LOOP SYSTEM */
.archive-card {
  position: relative;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 15px;
  background: var(--color-surface);
  border: 1px solid transparent;
  cursor: pointer;
}

/* Card Lift and Shadow remains */
.archive-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

/* ARCHIVE CARDS - 360 LOOP SYSTEM (SPAN-BASED) */
.archive-card {
  position: relative;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid transparent;
  cursor: pointer;
}

.archive-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

/* Border Lines Base Styling */
.archive-card [class^="line-"] {
  position: absolute;
  background: var(--color-signal);
  z-index: 10;
  transition: all 0.2s ease;
}

/* ARCHIVE CARDS - TRAVELING BORDER SYSTEM */
.archive-card [class^="line-"] {
  position: absolute;
  background: var(--color-signal);
  z-index: 10;
  /* CRITICAL: Transition ONLY the transform, not the origin */
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Side 1: Top (Start at Left-Top corner) */
.archive-card .line-t {
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
}
.archive-card:hover .line-t {
  transform: scaleX(1);
  transform-origin: left;
}
.archive-card:not(:hover) .line-t {
  transform: scaleX(0);
  transform-origin: right;
}

/* Side 2: Right (Follow at Top-Right corner) */
.archive-card .line-r {
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top;
}
.archive-card:hover .line-r {
  transform: scaleY(1);
  transform-origin: top;
  transition-delay: 0.15s;
}
.archive-card:not(:hover) .line-r {
  transform: scaleY(0);
  transform-origin: bottom;
  transition-delay: 0.15s;
}

/* Side 3: Bottom (Origin Right then Left) */
.archive-card .line-b {
  bottom: 0;
  right: 0;
  width: 100%;
  height: 1px;
  transform-origin: right;
}
.archive-card:not(:hover) .line-b {
  /* Expands on exit same time top shrinks */
  animation: travel-h 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes travel-h {
  0% {
    transform: scaleX(0);
    transform-origin: right;
  }
  50% {
    transform: scaleX(1);
    transform-origin: right;
  }
  51% {
    transform: scaleX(1);
    transform-origin: left;
  }
  100% {
    transform: scaleX(0);
    transform-origin: left;
  }
}

/* Side 4: Left (Origin Bottom then Top) */
.archive-card .line-l {
  bottom: 0;
  left: 0;
  width: 1px;
  height: 100%;
  transform-origin: bottom;
}
.archive-card:not(:hover) .line-l {
  /* Expands on exit after bottom starts */
  animation: travel-v 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
@keyframes travel-v {
  0% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
  50% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  51% {
    transform: scaleY(1);
    transform-origin: top;
  }
  100% {
    transform: scaleY(0);
    transform-origin: top;
  }
}

.archive-card:hover .line-b,
.archive-card:hover .line-l {
  animation: none;
  transform: scale(0);
}

/* Scanline Overlay Effect */
.archive-card .img-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
    linear-gradient(
      90deg,
      rgba(255, 0, 0, 0.02),
      rgba(0, 255, 0, 0.01),
      rgba(0, 0, 255, 0.02)
    );
  background-size:
    100% 2px,
    3px 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.archive-card:hover .img-wrapper::before {
  opacity: 0.15;
}

/* Technical Detail Footer */
.archive-card::after {
  content: "DET://ARCH0" attr(data-id);
  position: absolute;
  bottom: 0;
  right: 0;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--color-signal);
  padding: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.archive-card:hover::after {
  opacity: 0.4;
  transform: translateY(0);
}

.archive-card .text-signal {
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.archive-card:hover .text-signal {
  letter-spacing: 0.1em;
  color: var(--color-primary);
}

.archive-card .text-signal::after {
  content: "→";
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.archive-card:hover .text-signal::after {
  opacity: 1;
  transform: translateX(0);
}

.archive-card .img-wrapper {
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
}

.archive-card .img-block {
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.archive-card:hover .img-block {
  transform: scale(1.1) rotate(0.5deg);
}

/* Premium Tag Reveal */
.archive-card .tag-reveal {
  position: absolute;
  top: 20px;
  right: 0 !important; /* Force right-pinning */
  left: auto !important;
  width: fit-content;
  background: var(--color-signal);
  color: #fff !important;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  opacity: 1;
  transform: translateX(calc(100% - 10px)); /* ONLY 10px PEEK */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0;
  z-index: 10;
  pointer-events: none;
  white-space: nowrap;
}

.archive-card:hover .tag-reveal {
  transform: translateX(0) !important;
}

/* Technical Detail Footer */
.archive-card::after {
  content: "DET://ARCH0" + attr(data-id, "X");
  position: absolute;
  bottom: 0;
  right: 0;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--color-signal);
  padding: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.archive-card:hover::after {
  opacity: 0.4;
  transform: translateY(0);
}

.archive-card .text-signal {
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.archive-card:hover .text-signal {
  letter-spacing: 0.1em;
  color: var(--color-primary);
}

.archive-card .text-signal::after {
  content: "→";
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.archive-card:hover .text-signal::after {
  opacity: 1;
  transform: translateX(0);
}

/* ═══════════════════════════════════════════
   REACTOR GRID // 3D FLIP ARCHITECTURE
   ═══════════════════════════════════════════ */
.reactor-grid {
  display: grid;
  perspective: 2000px;
}

.reactor-item {
  position: relative;
  background: transparent;
  cursor: pointer;
  z-index: 1;
}

.reactor-item:hover {
  z-index: 50;
}

.reactor-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.reactor-item:hover:not(.no-react) .reactor-card-inner,
.reactor-item.is-flipped:not(.no-react) .reactor-card-inner {
  transform: rotateY(180deg);
}

/* Disclosure Signal (Back-face border) */
.reactor-back {
  transition: border-bottom-width 0.2s ease;
}

.reactor-item:hover .reactor-back,
.reactor-item.is-flipped .reactor-back {
  border-bottom: 2px solid var(--node-accent) !important;
}

.reactor-item.no-react {
  cursor: default !important;
}

.reactor-front,
.reactor-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 0; /* Sharp Edges */
  border: 1px solid rgba(255, 255, 255, 0.4); /* High-contrast industrial seam */
}

.reactor-front {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  padding: 25px !important;
  background: #f8f8f8;
  color: #fff;
  z-index: 2;
}

.reactor-item.is-light .reactor-front .text-caption,
.reactor-item.is-light .reactor-front i {
  color: #000 !important; /* Technical Black contrast on Light Overlays */
  text-shadow: none !important;
}

.reactor-front .text-caption {
  font-family: var(--font-body) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: 1px;
  text-shadow: none !important;
  text-align: left;
  line-height: 1;
  text-transform: none !important;
}

.reactor-front i {
  position: relative !important;
  color: #fff !important;
  font-size: 1.25rem !important; /* Refined technical scale */
  margin-bottom: 8px !important;
  opacity: 0.9;
  text-shadow: none !important; /* Removed shadow per USER request */
}

.section-dark .reactor-front {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.reactor-back {
  background: #eee;
  color: var(--color-primary);
  transform: rotateY(180deg);
  z-index: 1;
  border: none !important; /* Stripped back for seamless ghost-flip */
  font-family: var(--font-body) !important;
}

.reactor-back .text-signal {
  color: var(--color-signal) !important;
  font-weight: 800;
}

.reactor-back div {
  font-family: var(--font-body) !important;
}

.reactor-grid {
  width: 100% !important;
  margin: 0 auto;
}

.reactor-grid {
  gap: 0 !important;
}
.reactor-item {
  margin: 0 !important;
}

/* 
 * ═══════════════════════════════════════════
 * GLOBAL RESPONSIVENESS TIERS (6 STAGES)
 * ═══════════════════════════════════════════
 */

/* 1. XS: MOBILE (Up to 480px) */
@media (max-width: 480px) {
  .container-max {
    padding: 0 25px; /* Increased padding */
  }
  section {
    padding: 80px 0;
  }
  .hero-section {
    padding-top: 40px !important;
    min-height: auto;
  }
  .navbar {
    padding: 10px 0;
  }
  .logo {
    font-size: 20px;
  }
  #nav-join-btn {
    font-size: 9px;
    padding: 8px 12px;
  }
  .nav-links {
    display: flex;
    gap: 15px;
  }
  .nav-link {
    font-size: clamp(9px, 2vw, 11px);
    margin: 0;
    padding: 5px;
    letter-spacing: 0.1em;
  }
  .badge-node {
    font-size: 8px !important;
  }
  .footer-badges-row {
    padding-bottom: 80px;
  }
}

/* MOBILE TOGGLE BUTTON (Global logic for all touch tiers) */
.mobile-nav-toggle {
  background: transparent;
  border: none;
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 16000; /* Ensure it stays above overlay (15050) */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.mobile-nav-toggle .line,
.mobile-nav-toggle .hamburger-line {
  width: 100%;
  height: 2.5px;
  background: #000;
  transition: all 0.3s ease;
  position: absolute;
  left: 0;
}
.mobile-nav-toggle .line:first-child,
.mobile-nav-toggle .hamburger-line:first-child {
  transform: translateY(-6px);
}
.mobile-nav-toggle .line:last-child,
.mobile-nav-toggle .hamburger-line:last-child {
  transform: translateY(6px);
}

.mobile-nav-toggle.open .line:first-child,
.mobile-nav-toggle.open .hamburger-line:first-child {
  transform: rotate(45deg) translateY(0);
}
.mobile-nav-toggle.open .line:last-child,
.mobile-nav-toggle.open .hamburger-line:last-child {
  transform: rotate(-45deg) translateY(0);
}
.mobile-nav-toggle.open .line,
.mobile-nav-toggle.open .hamburger-line {
  background: #ffffff !important;
}

/* 2. S: TABLET PORTRAIT (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .container-max {
    max-width: 100%;
    padding: 0 40px; /* Increased padding for tablets */
  }
  section {
    padding: 100px 0;
  }
}

/* 3. M: LARGE TABLET / SMALL LAPTOP (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container-max {
    max-width: 100%; /* Ensure fluid scaling on large tablets */
    padding: 0 50px;
  }
}

/* 4. L & 5. XL: STANDARD & HD LAPTOPS (1025px - 1920px) */
@media (min-width: 1025px) and (max-width: 1920px) {
  .container-max {
    max-width: 1200px; /* Restricted as previously good */
  }
}

/* 6. ULTRA: 4K / ULTRA-WIDE (1921px and up) */
@media (min-width: 1921px) {
  .container-max {
    max-width: 1800px;
  }
  /* Scale spacing tokens for massive canvases */
  :root {
    --spacing-xl: 200px;
    --spacing-lg: 100px;
  }
  section {
    padding: var(--spacing-xl) 0;
  }
}

/* Global Smooth Scaling Helpers */
img {
  max-width: 100%;
  height: auto;
}

.overflow-hidden-x {
  overflow-x: hidden;
}

/* TACTICAL MISSION MODAL STYLES (Light Theme) */
.tu-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.tu-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.tu-modal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  max-width: 440px;
  width: 90%;
  padding: 36px 32px;
  text-align: center;
  position: relative;
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tu-modal-overlay.active .tu-modal-card {
  transform: scale(1);
}

.tu-modal-icon {
  font-size: 42px;
  margin-bottom: 16px;
  color: var(--color-signal, #f35928);
  line-height: 1;
}

.tu-modal-icon.error {
  color: #ef4444;
}

.tu-modal-icon.success {
  color: #10b981;
}

.tu-modal-title {
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: var(--font-heading, sans-serif);
}

.tu-modal-message {
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 28px;
  font-family: var(--font-body, sans-serif);
  word-break: break-word;
}

.tu-modal-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 2px;
  padding: 14px 36px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.tu-modal-btn:hover {
  background: var(--color-signal, #f35928);
  color: #ffffff;
  transform: translateY(-2px);
}
