.hero-animated-grid {
  background-image:
    linear-gradient(to right, rgba(188, 160, 106, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(188, 160, 106, 0.05) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  animation: heroGridMove 20s linear infinite;
  pointer-events: none;
}

:root.light .hero-animated-grid {
  background-image:
    linear-gradient(to right, rgba(188, 160, 106, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(188, 160, 106, 0.08) 1px, transparent 1px);
}

@keyframes heroGridMove {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(4rem);
  }
}

/* Subtle Architectural Blueprint Grid */
.hero-blueprint-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(188, 160, 106, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(188, 160, 106, 0.06) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 8rem 8rem, 8rem 8rem, 1.6rem 1.6rem, 1.6rem 1.6rem;
  mask-image: radial-gradient(ellipse at 50% 40%, black 50%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 50%, transparent 85%);
  animation: blueprintPan 40s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes blueprintPan {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 8rem 8rem, 8rem 8rem, 1.6rem 1.6rem, 1.6rem 1.6rem;
  }
}

/* Holographic Data Streams */
.hero-data-streams {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
  opacity: 0.14;
}

.data-stream-line {
  position: absolute;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.7rem;
  font-weight: 900;
  color: #d4af37;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
  white-space: nowrap;
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
  animation: streamUpwards 12s linear infinite;
}

@keyframes streamUpwards {
  0% {
    transform: translateY(110vh);
    opacity: 0;
  }
  15% {
    opacity: 0.8;
  }
  85% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-20vh);
    opacity: 0;
  }
}

/* Sleek Metallic Logo & Horizontal Light Scan */
.aegis-metallic-logo-container {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
}

.aegis-metallic-logo {
  position: relative;
  display: inline-block;
  font-family: "Axmiq Richard Regular", "Axmiq_Richard_Regular", serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  -webkit-text-stroke: 1.2px rgba(255, 245, 214, 0.6);
  background: linear-gradient(135deg, #ffffff 0%, #fff5d6 25%, #d4af37 55%, #bca06a 80%, #fef08a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.65)) drop-shadow(0 4px 15px rgba(0, 0, 0, 0.9));
}

/* Horizontal Scanning Light Sweep */
.aegis-scan-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 4px;
}

.aegis-scan-glow::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -120%;
  width: 70%;
  height: 140%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 25%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(212, 175, 55, 0.9) 70%,
    transparent 100%
  );
  transform: skewX(-20deg);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 50px rgba(212, 175, 55, 0.6);
  animation: metallicLightScan 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  mix-blend-mode: overlay;
}

@keyframes metallicLightScan {
  0% {
    left: -120%;
  }
  45% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

/* Crisp Modern Typewriter & Responsive Dual-Color Morphing Tagline */
.hero-morph-tagline {
  font-weight: 900;
  display: inline-block;
  min-height: 2.8em;
  position: relative;
  letter-spacing: -0.01em;
}

/* Dark Mode Dual-Color Styling */
.hero-tagline-part1 {
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.25);
  font-weight: 900;
}

.hero-tagline-part2 {
  background: linear-gradient(135deg, #FFF0C2 0%, #D4AF37 50%, #F5D77F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
  font-weight: 900;
  margin-left: 0.15em;
}

.hero-type-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background-color: #d4af37;
  margin-left: 3px;
  vertical-align: sub;
  box-shadow: 0 0 10px #d4af37, 0 0 18px #fef08a;
  border-radius: 1.5px;
  animation: cursorBlink 0.75s ease-in-out infinite;
  white-space: nowrap;
}

/* Light Theme Mode Template Color & Dual-Color Adjustments */
:root.light .aegis-metallic-logo {
  background: linear-gradient(135deg, #4a3410 0%, #856124 35%, #bca06a 70%, #402c0b 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(188, 160, 106, 0.4);
  filter: drop-shadow(0 4px 15px rgba(188, 160, 106, 0.3));
}

:root.light .hero-tagline-part1 {
  color: #1C1917 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  -webkit-text-fill-color: #1C1917;
}

:root.light .hero-tagline-part2 {
  background: linear-gradient(135deg, #614619 0%, #856124 50%, #BCA06A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 6px rgba(188, 160, 106, 0.3));
}

:root.light .hero-type-cursor {
  background-color: #856124;
  box-shadow: 0 0 8px rgba(133, 97, 36, 0.6);
}

:root.light .data-stream-line {
  color: rgba(133, 97, 36, 0.35);
  text-shadow: none;
}

@keyframes cursorBlink {
  0%, 100% {
    opacity: 1;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.15;
    transform: scaleY(0.85);
  }
}

.hero-image-comparison:has(.hero-chaos-panel:hover) .hero-chaos-panel {
  width: 75% !important;
  z-index: 15;
}

.hero-image-comparison:has(.hero-chaos-panel:hover) .hero-clarity-panel {
  width: 25% !important;
}

.hero-image-comparison:has(.hero-chaos-panel:hover) .hero-split-pill {
  left: 75% !important;
}

.hero-image-comparison:has(.hero-clarity-panel:hover) .hero-clarity-panel {
  width: 75% !important;
  z-index: 15;
}

.hero-image-comparison:has(.hero-clarity-panel:hover) .hero-chaos-panel {
  width: 25% !important;
}

.hero-image-comparison:has(.hero-clarity-panel:hover) .hero-split-pill {
  left: 25% !important;
}

.hero-chaos-panel img,
.hero-clarity-panel img {
  transition:
    transform 0.7s ease-in-out,
    filter 0.7s ease-in-out;
}

.hero-chaos-panel:hover img,
.hero-clarity-panel:hover img {
  transform: scale(1.05);
  filter: grayscale(0%) sepia(0%) saturate(120%);
}

.hero-glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: heroBlobFloat 15s ease-in-out infinite alternate;
  pointer-events: none;
  mix-blend-mode: screen;
}

.blur-reveal-item {
  display: inline-block;
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.blur-reveal-item.blur-out {
  opacity: 0;
  filter: blur(20px) brightness(1.5);
  transform: scale(0.96);
}

.blur-reveal-item.blur-in-prep {
  opacity: 0;
  filter: blur(20px) brightness(1.5);
  transform: scale(1.04);
  transition: none;
}

.blur-reveal-item.blur-reveal {
  opacity: 1;
  filter: blur(0) brightness(1);
  transform: scale(1);
}

:root.light .hero-glow-blob {
  mix-blend-mode: multiply;
  opacity: 0.4;
}

@keyframes heroBlobFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(40px, -60px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.95);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

.half-moon-bg {
  width: 250vw;
  height: 250vw;
  border-style: solid;
  border-width: clamp(12px, 3vw, 24px);
}

.flow-content {
  max-width: clamp(280px, 90vw, 420px);
  padding-right: 0;
}

@media (min-width: 1024px) {
  .half-moon-bg {
    width: clamp(360px, 187vh, 10001px);
    height: clamp(360px, 151vh, 900px);
    border-width: clamp(16px, 2.4vw, 56px);
  }

  .flow-content {
    max-width: clamp(280px, 32vw, 400px);
    padding-right: clamp(10px, 4vw, 60px);
  }
}

.challenge-timeline {
  margin-top: 1rem;
}

.challenge-card {
  background: rgba(17, 13, 10, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(188, 160, 106, 0.1);
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

:root.light .challenge-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(188, 160, 106, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.challenge-card:hover {
  transform: translateX(12px);
  border-color: rgba(188, 160, 106, 0.4);
  background: rgba(188, 160, 106, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

:root.light .challenge-card:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 12px 40px rgba(188, 160, 106, 0.15);
}

.challenge-icon-mini {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(188, 160, 106, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bca06a;
  transition: all 0.5s ease;
}

.challenge-card:hover .challenge-icon-mini {
  background: #bca06a;
  color: #0a0807;
  transform: rotate(-5deg) scale(1.1);
}

.challenge-item:hover .challenge-dot {
  border-color: #bca06a;
  background: #bca06a;
  box-shadow: 0 0 15px #bca06a;
  transform: scale(1.2);
}

.challenge-dot {
  transition: all 0.3s ease;
}

.cta-heading {
  color: #ffffff;
}

.cta-secondary-btn {
  color: #ffffff;
}

.cta-grid-bg {
  background-image:
    linear-gradient(rgba(188, 160, 106, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188, 160, 106, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: ctaGridPulse 8s ease-in-out infinite;
}

@keyframes ctaGridPulse {
  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

.cta-orb {
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.cta-orb-a {
  animation: ctaOrbA 14s ease-in-out infinite alternate;
  background: radial-gradient(
    circle,
    rgba(188, 160, 106, 0.18) 0%,
    rgba(188, 160, 106, 0.04) 55%,
    transparent 75%
  );
}

.cta-orb-b {
  animation: ctaOrbB 18s ease-in-out infinite alternate;
  background: radial-gradient(
    circle,
    rgba(188, 160, 106, 0.12) 0%,
    rgba(80, 50, 10, 0.05) 55%,
    transparent 75%
  );
}

.cta-orb-c {
  animation: ctaOrbC 11s ease-in-out infinite alternate;
  background: radial-gradient(circle, rgba(188, 160, 106, 0.08) 0%, transparent 70%);
}

@keyframes ctaOrbA {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-40px, 30px) scale(1.12);
  }
}

@keyframes ctaOrbB {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(50px, -40px) scale(1.08);
  }
}

@keyframes ctaOrbC {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.cta-beam-ray {
  position: absolute;
  top: -30%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(188, 160, 106, 0.04) 48%,
    rgba(188, 160, 106, 0.09) 50%,
    rgba(188, 160, 106, 0.04) 52%,
    transparent 60%
  );
  animation: ctaBeamSweep 9s ease-in-out infinite;
}

@keyframes ctaBeamSweep {
  0% {
    transform: translateX(-10%);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translateX(230%);
    opacity: 0;
  }
}

.cta-geo-hex {
  animation: ctaGeoSpin 60s linear infinite;
  transform-origin: center;
}

.cta-geo-diamond {
  animation: ctaGeoSpin 80s linear infinite reverse;
  transform-origin: center;
}

.cta-spin-slow {
  animation: ctaGeoSpin 30s linear infinite;
}

@keyframes ctaGeoSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

:root.light .cta-heading {
  color: #110d0a;
}

:root.light .cta-secondary-btn {
  color: #9c804c;
}

:root.light .cta-grid-bg {
  background-image:
    linear-gradient(rgba(188, 160, 106, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188, 160, 106, 0.04) 1px, transparent 1px);
}

:root.light .cta-orb-a {
  background: radial-gradient(
    circle,
    rgba(188, 160, 106, 0.06) 0%,
    rgba(188, 160, 106, 0.01) 50%,
    transparent 75%
  );
}

:root.light .cta-orb-b {
  background: radial-gradient(circle, rgba(188, 160, 106, 0.04) 0%, transparent 75%);
}

:root.light .cta-orb-c {
  background: radial-gradient(circle, rgba(188, 160, 106, 0.03) 0%, transparent 70%);
}

:root.light .cta-beam-ray {
  opacity: 0;
  animation: none;
}

:root.light .cta-geo-hex,
:root.light .cta-geo-diamond {
  opacity: 0.04;
}

:root.light .cta-geo-ring {
  opacity: 0.05;
}

:root.light #contact .bg-gray-800 {
  background-color: rgba(188, 160, 106, 0.15);
}

:root.light #cta-particles {
  opacity: 0.15;
}

.footer-orb {
  animation: ftOrbPulse 14s ease-in-out infinite alternate;
}

.footer-orb-l {
  animation-duration: 19s;
  animation-delay: -5s;
}

.footer-orb-r {
  animation-duration: 22s;
  animation-delay: -11s;
}

@keyframes ftOrbPulse {
  0% {
    transform: scale(1) translateY(0px);
  }

  50% {
    transform: scale(1.08) translateY(-18px);
  }

  100% {
    transform: scale(0.95) translateY(10px);
  }
}

.footer-orb-main {
  animation-name: ftOrbMain;
}

@keyframes ftOrbMain {
  0% {
    transform: translateX(-50%) scale(1) translateY(0px);
  }

  50% {
    transform: translateX(-50%) scale(1.06) translateY(-20px);
  }

  100% {
    transform: translateX(-50%) scale(0.97) translateY(8px);
  }
}

.footer-shield {
  animation: ftShieldSpin 120s linear infinite;
  transform-origin: center;
}

:root.light .footer-shield {
  opacity: 0.045;
}

@keyframes ftShieldSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.footer-topline {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(188, 160, 106, 0.5) 25%,
    rgba(188, 160, 106, 0.85) 50%,
    rgba(188, 160, 106, 0.5) 75%,
    transparent 100%
  );
}

:root.light .footer-topline {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(156, 128, 76, 0.4) 25%,
    rgba(156, 128, 76, 0.7) 50%,
    rgba(156, 128, 76, 0.4) 75%,
    transparent 100%
  );
}

:root.light .footer-orb-main {
  background: radial-gradient(
    circle,
    rgba(188, 160, 106, 0.11) 0%,
    rgba(188, 160, 106, 0.03) 45%,
    transparent 70%
  ) !important;
}

:root.light .footer-orb-l,
:root.light .footer-orb-r {
  background: radial-gradient(circle, rgba(188, 160, 106, 0.06) 0%, transparent 70%) !important;
}

:root.light #footer-aurora {
  opacity: 0.2;
}

.footer-ember {
  position: absolute;
  border-radius: 50%;
  background: rgba(188, 160, 106, 0.7);
  box-shadow: 0 0 6px 2px rgba(188, 160, 106, 0.4);
  animation: ftEmberRise linear infinite;
  pointer-events: none;
}

:root.light .footer-ember {
  background: rgba(156, 128, 76, 0.5);
  box-shadow: 0 0 4px 1px rgba(156, 128, 76, 0.3);
}

@keyframes ftEmberRise {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  80% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-320px) translateX(var(--drift)) scale(0.3);
    opacity: 0;
  }
}

.process-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 0;
}

@media (min-width: 1024px) {
  .process-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

.process-step {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.process-card {
  width: 100%;
  max-width: 400px;
  background: rgba(10, 8, 7, 0.8);
  border: 2px solid rgba(188, 160, 106, 0.2);
  border-radius: 2rem;
  padding: 2.5rem 1.5rem;
  position: relative;
  z-index: 2;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

:root.light .process-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(188, 160, 106, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.process-card:hover {
  border-color: rgba(188, 160, 106, 0.6);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(188, 160, 106, 0.15);
}

.process-icon-wrap {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(188, 160, 106, 0.1), rgba(188, 160, 106, 0.05));
  color: #bca06a;
  transition: all 0.5s ease;
}

.process-card:hover .process-icon-wrap {
  background: linear-gradient(135deg, rgba(188, 160, 106, 0.8), rgba(188, 160, 106, 1));
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.process-title {
  color: #f8f8f7;
  font-weight: 900;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

:root.light .process-title {
  color: #110d0a;
}

.process-subtitle {
  color: #bca06a;
  font-weight: 900;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.25rem;
  opacity: 0.8;
}

.process-desc {
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.6;
}

:root.light .process-desc {
  color: #4b5563;
}

@media (min-width: 1024px) {
  .process-connector {
    position: absolute;
    top: 50%;
    right: -25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(to right, rgba(188, 160, 106, 0.2), transparent);
    z-index: 1;
    display: block;
  }

  .process-step:last-child .process-connector {
    display: none;
  }

  .process-dot {
    position: absolute;
    top: -4px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #bca06a;
    box-shadow: 0 0 10px #bca06a;
    animation: flowDot 3s infinite linear;
  }
}

@keyframes flowDot {
  0% {
    left: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
    height: 100%;
    min-height: 500px;
  }
}

.pillar-card {
  position: relative;
  background: rgba(15, 12, 11, 0.6);
  border: 1px solid rgba(188, 160, 106, 0.2);
  border-radius: 2rem;
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 100%;
  justify-content: center;
}

:root.light .pillar-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(188, 160, 106, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pillar-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(188, 160, 106, 0.5);
  box-shadow: 0 25px 50px -12px rgba(188, 160, 106, 0.2);
  background: rgba(20, 17, 15, 0.8);
}

:root.light .pillar-card:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 25px 50px -12px rgba(188, 160, 106, 0.15);
}

.pillar-icon-outer {
  width: 80px;
  height: 80px;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(188, 160, 106, 0.15), rgba(188, 160, 106, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pillar-card:hover .pillar-icon-outer {
  background: linear-gradient(135deg, #bca06a, #d6a75f);
  transform: rotate(10deg) scale(1.1);
  color: white;
}

.pillar-icon-outer svg {
  width: 36px;
  height: 36px;
  stroke: #bca06a;
  stroke-width: 1.5;
  transition: all 0.6s ease;
}

.pillar-card:hover .pillar-icon-outer svg {
  stroke: white;
  transform: scale(1.1);
}

.pillar-title {
  color: #f3f4f6;
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

:root.light .pillar-title {
  color: #110d0a;
}

.pillar-subtitle {
  color: #bca06a;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.pillar-content {
  color: #9ca3af;
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 200px;
}

:root.light .pillar-content {
  color: #4b5563;
}

.pillar-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at top right, rgba(188, 160, 106, 0.1), transparent 70%);
  pointer-events: none;
}

.pillar-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(188, 160, 106, 0.2), transparent 70%);
  filter: blur(15px);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.pillar-card:hover .pillar-glow {
  opacity: 1;
}

.pillar-card[data-index="1"] .pillar-icon-outer svg {
  animation: none;
}
.pillar-card:hover[data-index="1"] .pillar-icon-outer svg {
  animation: gearSpin 4s linear infinite;
}

.pillar-card[data-index="3"] .pillar-icon-outer svg {
  animation: none;
}
.pillar-card:hover[data-index="3"] .pillar-icon-outer svg {
  animation: pulseBrain 2s ease-in-out infinite alternate;
}

@keyframes gearSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseBrain {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(188, 160, 106, 0));
  }
  100% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(188, 160, 106, 0.5));
  }
}

@keyframes glow-red {
  0%,
  100% {
    box-shadow:
      0 0 20px rgba(220, 38, 38, 0.2),
      0 0 40px rgba(220, 38, 38, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
  }
  50% {
    box-shadow:
      0 0 40px rgba(220, 38, 38, 0.4),
      0 0 70px rgba(220, 38, 38, 0.2);
    border-color: rgba(239, 68, 68, 0.8);
  }
}

.animate-glow-red {
  animation: glow-red 3s ease-in-out infinite;
}

@keyframes float-particle {
  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.6;
  }
}

.animate-float {
  animation: float-particle 6s ease-in-out infinite;
}

.animate-float-delay {
  animation: float-particle 8s ease-in-out infinite 2s;
}

.perspective-2000 {
  perspective: 2000px;
}

.challenge-banner {
  background: linear-gradient(to right, #bca06a, #8c6d3d);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(188, 160, 106, 0.3);
  transition: transform 0.3s ease;
}

.challenge-banner:hover {
  transform: translateX(10px);
}

.timeline-branch {
  position: absolute;
  border-color: #bca06a;
  border-style: solid;
  pointer-events: none;
}

.timeline-branch-h {
  height: 2px;
  border-width: 2px 0 0 0;
}

.timeline-branch-v {
  width: 2px;
  border-width: 0 0 0 2px;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: #bca06a;
  border-radius: 50%;
  box-shadow: 0 0 10px #bca06a;
}

.ribbon-portal {
  background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
  border: 15px solid #221a14;
  box-shadow:
    0 0 0 5px #bca06a,
    inset 0 0 50px rgba(0, 0, 0, 0.8);
}

.wood-plaque {
  background: linear-gradient(135deg, #1a1412 0%, #2f221c 100%);
  border: 2px solid #3d2b24;
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.5),
    0 10px 30px rgba(0, 0, 0, 0.4);
  border-radius: 12px;
}

.ribbon-shelf {
  position: absolute;
  width: 120%;
  height: 100px;
  background: linear-gradient(to bottom, #bca06a 0%, #8c6d3d 50%, #5a4220 100%);
  transform-style: preserve-3d;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.glass-platform {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.animate-float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}


@keyframes floatSlow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.features-visual-grid > div {
  position: relative;
}

.features-visual-grid > div::after {
  content: "";
  position: absolute;
  bottom: -4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 4rem;
  background: linear-gradient(to bottom, rgba(188, 160, 106, 0.2), transparent);
}

.features-visual-grid > div:last-child::after {
  display: none;
}

.feature-accent-line {
  height: 2px;
  width: 60px;
  background: linear-gradient(90deg, #bca06a, transparent);
  transition: width 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.revealed .feature-accent-line {
  width: 100%;
}

.perspective-1000 {
  perspective: 1000px;
}

.floating-shapes-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.floating-shape {
  position: absolute;
  background: radial-gradient(circle at 30% 30%, rgba(188, 160, 106, 0.15), rgba(188, 160, 106, 0.05));
  border: 1px solid rgba(188, 160, 106, 0.1);
  box-shadow: 0 0 20px rgba(188, 160, 106, 0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: floatShape linear infinite alternate;
}

:root.light .floating-shape {
  background: radial-gradient(circle at 30% 30%, rgba(188, 160, 106, 0.2), rgba(188, 160, 106, 0.08));
  border: 1px solid rgba(188, 160, 106, 0.2);
  box-shadow: 0 0 20px rgba(188, 160, 106, 0.08);
}

.floating-shape.circle {
  border-radius: 50%;
}

.floating-shape.square {
  border-radius: 10%;
  animation: floatShapeSquare linear infinite alternate;
}

@keyframes floatShape {
  0% { transform: translateY(0) translateX(0) scale(1); }
  50% { transform: translateY(-40px) translateX(30px) scale(1.05); }
  100% { transform: translateY(30px) translateX(-20px) scale(0.95); }
}

@keyframes floatShapeSquare {
  0% { transform: translateY(0) translateX(0) rotate(0deg); }
  50% { transform: translateY(-50px) translateX(40px) rotate(45deg); }
  100% { transform: translateY(40px) translateX(-30px) rotate(90deg); }
}

.fs-1 { width: 120px; height: 120px; top: 15%; left: 5%; animation-duration: 22s; animation-delay: -2s; }
.fs-2 { width: 180px; height: 180px; top: 40%; right: 10%; animation-duration: 28s; animation-delay: -5s; }
.fs-3 { width: 90px; height: 90px; bottom: 25%; left: 15%; animation-duration: 18s; animation-delay: -8s; }
.fs-4 { width: 140px; height: 140px; top: 25%; left: 60%; animation-duration: 25s; animation-delay: -12s; }
.fs-5 { width: 200px; height: 200px; bottom: 5%; right: 25%; animation-duration: 30s; animation-delay: -15s; }
.fs-6 { width: 100px; height: 100px; top: 70%; left: 8%; animation-duration: 20s; animation-delay: -4s; }

.animate-[spin_40s_linear_infinite_reverse] {
  animation: spinReverse 40s linear infinite;
}
@keyframes spinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.data-stream {
  position: absolute;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(188, 160, 106, 0.4), transparent);
  animation: dataStreamFall linear infinite;
}

@keyframes dataStreamFall {
  0% { transform: translateY(-300%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(150vh); opacity: 0; }
}

.floating-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #D6A75F;
  border-radius: 50%;
  box-shadow: 0 0 10px #D6A75F, 0 0 20px #D6A75F;
  animation: floatDotRise linear infinite;
}

@keyframes floatDotRise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  20% { opacity: 0.6; }
  80% { opacity: 0.6; }
  100% { transform: translateY(-400px) scale(0.5); opacity: 0; }
}

.fs-1 { width: 120px; height: 120px; top: 15%; left: 3%; animation-duration: 22s; animation-delay: -2s; opacity: 0.4; }
.fs-2 { width: 180px; height: 180px; top: 40%; right: 5%; animation-duration: 28s; animation-delay: -5s; opacity: 0.35; }
.fs-3 { width: 90px; height: 90px; bottom: 25%; left: 10%; animation-duration: 18s; animation-delay: -8s; opacity: 0.4; }
.fs-4 { width: 140px; height: 140px; top: 25%; left: 75%; animation-duration: 25s; animation-delay: -12s; opacity: 0.3; }
.fs-5 { width: 200px; height: 200px; bottom: 5%; right: 15%; animation-duration: 30s; animation-delay: -15s; opacity: 0.35; }
.fs-6 { width: 100px; height: 100px; top: 70%; left: 5%; animation-duration: 20s; animation-delay: -4s; opacity: 0.4; }

.fs-7 { width: 60px; height: 60px; top: 50%; left: 85%; animation-duration: 21s; animation-delay: -3s; opacity: 0.5; }
.fs-8 { width: 140px; height: 140px; top: 10%; right: 45%; animation-duration: 26s; animation-delay: -9s; border-radius: 50%; opacity: 0.25; }
.fs-9 { width: 90px; height: 90px; bottom: 35%; right: 5%; animation-duration: 17s; animation-delay: -11s; opacity: 0.4; }
.fs-10 { width: 110px; height: 110px; top: 85%; left: 20%; animation-duration: 23s; animation-delay: -6s; border-radius: 10%; opacity: 0.35; }
.fs-11 { width: 160px; height: 160px; bottom: 45%; left: 80%; animation-duration: 32s; animation-delay: -14s; opacity: 0.3; }
.fs-12 { width: 70px; height: 70px; top: 8%; left: 45%; animation-duration: 19s; animation-delay: -1s; opacity: 0.25; }

.ds-1 { left: 8%; height: 120px; animation-duration: 8s; animation-delay: 1s; opacity: 0.3; }
.ds-2 { left: 32%; height: 80px; animation-duration: 12s; animation-delay: 3s; opacity: 0.25; }
.ds-3 { left: 68%; height: 150px; animation-duration: 10s; animation-delay: 0s; opacity: 0.2; }
.ds-4 { left: 92%; height: 100px; animation-duration: 14s; animation-delay: 5s; opacity: 0.3; }
.ds-5 { left: 22%; height: 90px; animation-duration: 11s; animation-delay: 2s; opacity: 0.25; }
.ds-6 { left: 78%; height: 130px; animation-duration: 9s; animation-delay: 4s; opacity: 0.2; }

.fd-1 { left: 5%; top: 92%; animation-duration: 15s; animation-delay: 0s; }
.fd-2 { left: 15%; top: 88%; animation-duration: 12s; animation-delay: 2s; }
.fd-3 { left: 25%; top: 97%; animation-duration: 18s; animation-delay: 4s; }
.fd-4 { left: 45%; top: 82%; animation-duration: 14s; animation-delay: 1s; opacity: 0.4; }
.fd-5 { left: 75%; top: 92%; animation-duration: 16s; animation-delay: 5s; }
.fd-6 { left: 90%; top: 88%; animation-duration: 13s; animation-delay: 3s; }
.fd-7 { left: 35%; top: 78%; animation-duration: 20s; animation-delay: 2s; opacity: 0.4; }
.fd-8 { left: 55%; top: 97%; animation-duration: 11s; animation-delay: 6s; opacity: 0.4; }


@media (max-width: 1024px) {
  .section-fx-wrap svg.absolute {
    display: none; 
  }
  .floating-shape {
    opacity: 0.15; 
  }
}

.premium-phone-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  perspective: 2000px;
}

.premium-phone {
  position: relative;
  width: 100%;
  background: #000000;
  border: 10px solid #1f2937; 
  border-radius: 3.5rem;
  box-shadow: 
    0 30px 60px -12px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform: rotateY(-8deg) rotateX(4deg);
}

.premium-phone-wrapper:hover .premium-phone {
  transform: rotateY(0deg) rotateX(0deg) translateY(-20px) scale(1.03);
  box-shadow: 0 45px 90px -15px rgba(188, 160, 106, 0.4);
  border-color: #bca06a; 
}

.premium-phone .notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45%;
  height: 28px;
  background: #1a1a1a;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 20;
}

.premium-phone .screen-content {
  position: relative;
  width: 100%;
  height: 100%;
  padding-top: 0;
}

.premium-phone img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s ease;
}

.premium-phone-wrapper::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 10%;
  right: 10%;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, transparent 70%);
  filter: blur(10px);
  z-index: -1;
  transition: all 0.6s ease;
}

.premium-phone-wrapper:hover::after {
  transform: scale(1.1);
  opacity: 0.6;
}

@media (max-width: 768px) {
  .premium-phone {
    transform: none !important;
    border-width: 8px;
    border-radius: 2.5rem;
  }
  .premium-phone-wrapper {
    max-width: 260px;
  }
  .premium-phone .notch {
    height: 20px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }
}

@media (max-width: 480px) {
  .premium-phone-wrapper {
    max-width: 220px;
  }
  .premium-phone {
    border-width: 6px;
  }
}

.problem-orbit-wrap::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(188, 160, 106, 0.1) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.problem-orbit-wrap:hover .problem-ring {
  animation-play-state: paused;
}


.problem-orbit-wrap {
  position: relative;
}
.problem-orbit-wrap::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(188, 160, 106, 0.1) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.problem-orbit-wrap:hover .problem-ring {
  animation-play-state: paused;
}

.problem-center {
  box-shadow: 0 0 60px rgba(188, 160, 106, 0.22);
}
.problem-center > * {
  position: relative;
  z-index: 1;
}
.problem-center-glow {
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(188, 160, 106, 0.35) 0%, transparent 70%);
  animation: problemPulse 2.4s ease-in-out infinite;
  z-index: 0;
}
@keyframes problemPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.94); }
  50%       { opacity: 1;   transform: scale(1.06); }
}

.connector-line {
  transition: stroke-dashoffset 1s ease-out;
}
.reveal.active .connector-line {
  stroke-dashoffset: 0;
}

:root.light .problem-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(197, 172, 125, 0.45);
  box-shadow: 0 4px 20px rgba(197, 172, 125, 0.1);
}
:root.light .problem-card:hover {
  border-color: rgba(197, 172, 125, 0.85);
  box-shadow: 0 10px 30px rgba(197, 172, 125, 0.2);
}
:root.light .problem-node > div {
  background: rgba(255, 255, 255, 0.92);
}

.problem-panel-bg {
  background:
    radial-gradient(circle at 28% 18%, rgba(70, 52, 32, 0.9) 0%, rgba(20, 15, 11, 0.98) 55%, rgba(8, 6, 5, 1) 100%);
  box-shadow:
    inset 0 0 90px rgba(0, 0, 0, 0.55),
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(188, 160, 106, 0.15);
}

.problem-center-fixed {
  background: #0a0807;
  border: 2px solid #bca06a;
  box-shadow: 0 0 60px rgba(188, 160, 106, 0.3);
}
.problem-center-fixed > * {
  position: relative;
  z-index: 1;
}

.problem-node-card {
  background: rgba(10, 8, 7, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}

.problem-node-icon {
  background: rgba(188, 160, 106, 0.18);
  color: #d4a853;
}
.problem-node-card:hover .problem-node-icon {
  background: #d4a853;
  color: #0a0807;
}

.problem-text-light { color: #13171f; }
.problem-text-muted { color: #9ca3af; }
.problem-text-gold   { color: #e8c97a; }

.problem-ring {
  animation: problemRingSpin 24s linear infinite;
  transform-origin: center;
}
.problem-orbit-wrap:hover .problem-ring {
  animation-play-state: paused;
}
@keyframes problemRingSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


.aegis-orbit-outer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}


.aegis-orbit-ring-outer {
  animation: aegisSpinClockwise 36s linear infinite;
  transform-origin: 200px 200px;
  will-change: transform;
}

.aegis-orbit-ring-middle {
  animation: aegisSpinCounterClockwise 28s linear infinite;
  transform-origin: 200px 200px;
  will-change: transform;
}

.aegis-orbit-ring-inner {
  animation: aegisSpinClockwise 20s linear infinite;
  transform-origin: 200px 200px;
  will-change: transform;
}

.aegis-orbit-panel:hover .aegis-orbit-ring-outer,
.aegis-orbit-panel:hover .aegis-orbit-ring-middle,
.aegis-orbit-panel:hover .aegis-orbit-ring-inner {
  animation-play-state: paused;
}

.aegis-flow-line {
  stroke-dasharray: 8 6;
  animation: aegisFlowOffset 3s linear infinite;
  transition: stroke 0.3s ease, stroke-width 0.3s ease, filter 0.3s ease;
}

@keyframes aegisFlowOffset {
  from { stroke-dashoffset: 60; }
  to { stroke-dashoffset: 0; }
}

.aegis-flow-line.active-flow {
  stroke: #e2ab5b !important;
  stroke-width: 2.5px !important;
  filter: drop-shadow(0 0 6px rgba(226, 171, 91, 0.7));
}

@keyframes aegisSpinClockwise {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes aegisSpinCounterClockwise {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/* Pulsing warning icon */
.warning-pulse {
  animation: aegisWarningPulse 2.5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes aegisWarningPulse {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.7));
  }
}

/* Node label styling */
.aegis-tech-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: #F5F5F5;
  opacity: 0.85;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: block;
}
:root.light .aegis-tech-tag {
  color: #F5F5F5;
  opacity: 0.85;
}


.aegis-orbit-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 1.5rem;
  padding: 1.5rem 1rem;
  background-image: 
    linear-gradient(rgba(188, 160, 106, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188, 160, 106, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 50% 35%, #30291F 0%, #24211D 60%, #171615 100%);
  background-size: 20px 20px, 20px 20px, 100% 100%;
  border: 1px solid rgba(188, 160, 106, 0.25);
  box-shadow:
    inset 0 0 90px rgba(0, 0, 0, 0.8),
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(188, 160, 106, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.aegis-orbit-panel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50px;
  bottom: 220px;
  width: 2px;
  border-left: 2px dashed rgba(188, 160, 106, 0.3);
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

:root.light .aegis-orbit-panel {
  background-image: 
    linear-gradient(rgba(156, 128, 76, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 128, 76, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 50% 35%, #2a231b 0%, #1e1b18 60%, #121110 100%);
  background-size: 20px 20px, 20px 20px, 100% 100%;
  border-color: rgba(188, 160, 106, 0.22);
  box-shadow:
    inset 0 0 90px rgba(0, 0, 0, 0.85),
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(188, 160, 106, 0.12);
}
:root.light .aegis-orbit-panel::before {
  border-left-color: rgba(156, 128, 76, 0.3);
}

.aegis-orbit-ring,
.aegis-orbit-lines {
  position: absolute;
  top: 0; left: 0; right: 0;
  bottom: 64px;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.aegis-orbit-center {
  order: 3;
  position: relative;
  margin: 1rem auto;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 12px;
  border-radius: 9999px;
  width: 130px;
  height: 130px;
  background: #0a0807;
  border: 2.5px solid #bca06a;
  box-shadow: 0 0 25px rgba(188, 160, 106, 0.25), inset 0 0 15px rgba(188, 160, 106, 0.15);
  transform: none;
  top: auto;
  left: auto;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  animation: centerBreathingMobile 6s ease-in-out infinite;
}

.aegis-orbit-center > * {
  position: relative;
  z-index: 2;
}

.aegis-orbit-center-icon {
  width: 24px;
  height: 24px;
  color: #ef4444;
  margin-bottom: 4px;
}

.aegis-orbit-center-label {
  display: block;
  color: #f3f4f6;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 900;
  margin-top: 1px;
}

.aegis-orbit-center-title {
  color: #bca06a;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.75rem;
  line-height: 1.2;
  margin-top: 2px;
}

.aegis-orbit-node {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
}

.aegis-orbit-node--top { order: 1; }
.aegis-orbit-node--left { order: 2; }
.aegis-orbit-node--right { order: 4; }
.aegis-orbit-node--bottom { order: 5; }

.aegis-orbit-node .problem-node-card {
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: linear-gradient(135deg, rgba(28, 22, 17, 0.94) 0%, rgba(14, 11, 8, 0.98) 100%);
  border: 1px solid rgba(245, 228, 188, 0.18);
  border-left: 3px solid #bca06a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

:root.light .aegis-orbit-node .problem-node-card {
  background: linear-gradient(135deg, rgba(24, 20, 16, 0.95) 0%, rgba(12, 10, 8, 0.98) 100%);
  border: 1px solid rgba(188, 160, 106, 0.2);
  border-left: 3px solid #bca06a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.aegis-orbit-node .problem-node-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: #bca06a;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), 0 0 15px rgba(188, 160, 106, 0.25);
}

:root.light .aegis-orbit-node .problem-node-card:hover {
  background: linear-gradient(135deg, rgba(32, 26, 20, 0.96) 0%, rgba(16, 13, 10, 0.99) 100%);
  border-color: #bca06a;
  box-shadow: 0 8px 25px rgba(188, 160, 106, 0.3);
}

.aegis-orbit-node-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: rgba(245, 228, 188, 0.12);
  color: #bca06a;
}
.aegis-orbit-node-icon svg {
  width: 16px;
  height: 16px;
}
.aegis-orbit-node .problem-node-card:hover .aegis-orbit-node-icon {
  transform: scale(1.1);
  background: #E2AB5B ;
  color: #0a0807;
}

.aegis-orbit-node-title {
  color: #d4a865 !important;              
  font-weight: 900;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
  transition: color 0.3s ease;
}
:root.light .aegis-orbit-node-title {
  color:#d4a865 !important;
}

.aegis-orbit-node-desc {
  display: block; 
  color: rgba(255, 255, 255, 0.801);           
  font-size: 0.82rem;
  line-height: 1.55;
  font-weight: 500;
  margin-top: 0.45rem;
}
:root.light .aegis-orbit-node-desc {
  color: rgba(255, 255, 255, 0.68);
}

.aegis-orbit-bottom-accent {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 88px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ef4444, #d4a853, #ef4444, transparent);
  opacity: 0.7;
  z-index: 15;
}

.aegis-orbit-bottom-stats {
  order: 6;
  position: relative;
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding-top: 1rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(188, 160, 106, 0.15);
  background: transparent;
  z-index: 15;
}

.aegis-orbit-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 228, 188, 0.15);
  border-radius: 0.85rem;
  padding: 0.9rem 0.5rem;
  flex: none;
  min-width: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
:root.light .aegis-orbit-stat {
  background: rgba(188, 160, 106, 0.06);
  border-color: rgba(188, 160, 106, 0.2);
}

.aegis-orbit-stat:hover {
  background: rgba(188, 160, 106, 0.08) !important;
}

.aegis-orbit-stat svg {
  width: 22px;
  height: 22px;
  color: #d4a853;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.aegis-orbit-stat:hover svg {
  transform: translateY(-4px);
  filter: drop-shadow(0 0 6px rgba(212, 168, 83, 0.6));
}

.aegis-orbit-stat span {
  color: #e5e7eb;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.2;
  transition: color 0.3s ease;
}
:root.light .aegis-orbit-stat span {
  color: #e5e7eb;
}

.aegis-orbit-stat:hover span {
  color: #ffffff !important;
}

.aegis-orbit-stat::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #bca06a;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.aegis-orbit-stat:hover::after {
  transform: scaleX(1);
}

/* Breakpoint 1: Small mobile (320px - 374px) */
@media (max-width: 374px) {
  .aegis-orbit-panel {
    padding: 1.25rem 0.5rem;
    gap: 1rem;
  }
  .aegis-orbit-panel::before {
    top: 50px;
    bottom: 240px;
  }
  .aegis-orbit-center {
    width: 114px;
    height: 114px;
    margin: 0.8rem auto;
  }
  .aegis-orbit-center-icon {
    width: 20px;
    height: 20px;
  }
  .aegis-orbit-center-label {
    font-size: 0.55rem;
  }
  .aegis-orbit-center-title {
    font-size: 0.65rem;
  }
  .aegis-orbit-node .problem-node-card {
    padding: 0.8rem 0.9rem;
  }
  .aegis-orbit-node-title {
    font-size: 0.8rem;
  }
  .aegis-orbit-node-desc {
    font-size: 0.75rem;
  }
  .aegis-orbit-stat {
    padding: 0.75rem 0.4rem;
  }
  .aegis-orbit-stat span {
    font-size: 0.65rem;
  }
}

/* Breakpoint 2: Standard mobile (375px - 479px) */
@media (min-width: 375px) and (max-width: 479px) {
  .aegis-orbit-center {
    width: 124px;
    height: 124px;
  }
  .aegis-orbit-center-title {
    font-size: 0.7rem;
  }
}

/* Breakpoint 3: Large mobile (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
  .aegis-orbit-panel {
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }
  .aegis-orbit-panel::before {
    top: 60px;
    bottom: 180px;
  }
  .aegis-orbit-center {
    width: 140px;
    height: 140px;
  }
  .aegis-orbit-node .problem-node-card {
    padding: 1.2rem 1.5rem;
  }
  .aegis-orbit-node-title {
    font-size: 0.92rem;
  }
  .aegis-orbit-node-desc {
    font-size: 0.85rem;
  }
}

/* ─── Tablet & up (768px+): Switch to absolute-positioned orbit layout ─── */
@media (min-width: 768px) {
  .aegis-orbit-panel {
    display: block;
    width: 480px;
    height: 620px;
    border-radius: 3rem;
    padding-bottom: 80px;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    background-image: 
      linear-gradient(rgba(188, 160, 106, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(188, 160, 106, 0.03) 1px, transparent 1px),
      radial-gradient(circle at 50% 35%, #30291F 0%, #24211D 60%, #171615 100%);
    background-size: 20px 20px, 20px 20px, 100% 100%;
  }
  
  :root.light .aegis-orbit-panel {
    background-image: 
      linear-gradient(rgba(156, 128, 76, 0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(156, 128, 76, 0.025) 1px, transparent 1px),
      radial-gradient(circle at 50% 35%, #2a231b 0%, #1e1b18 60%, #121110 100%);
    background-size: 20px 20px, 20px 20px, 100% 100%;
    border-color: rgba(188, 160, 106, 0.22);
    box-shadow:
      inset 0 0 90px rgba(0, 0, 0, 0.85),
      0 30px 80px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(188, 160, 106, 0.12);
  }

  .aegis-orbit-panel::before {
    display: none;
  }

  .aegis-orbit-ring,
  .aegis-orbit-lines {
    bottom: 80px;
  }

  .aegis-orbit-center {
    position: absolute;
    top: calc(50% - 40px);
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 124px;
    height: 124px;
    z-index: 30;
    animation: centerBreathing 6s ease-in-out infinite;
  }
  
  .aegis-orbit-center-icon {
    width: 20px;
    height: 20px;
  }
  .aegis-orbit-center-label {
    font-size: 0.58rem;
  }
  .aegis-orbit-center-title {
    font-size: 0.7rem;
  }

  .aegis-orbit-node {
    position: absolute;
    width: 160px;
    z-index: 20;
  }
  
  .aegis-orbit-node--top {
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
  }
  .aegis-orbit-node--right {
    top: 44%;
    right: 4px;
    transform: translateY(-50%);
  }
  .aegis-orbit-node--bottom {
    bottom: 108px;
    left: 50%;
    transform: translateX(-50%);
  }
  .aegis-orbit-node--left {
    top: 44%;
    left: 4px;
    transform: translateY(-50%);
  }

  .aegis-orbit-node .problem-node-card {
    padding: 0.75rem 0.85rem;
    border-radius: 1rem;
  }
  .aegis-orbit-node-icon {
    width: 30px;
    height: 30px;
    border-radius: 0.5rem;
  }
  .aegis-orbit-node-icon svg {
    width: 15px;
    height: 15px;
  }
  .aegis-orbit-node-title {
    font-size: 0.72rem;
  }
  .aegis-orbit-node-desc {
    display: block;
    font-size: 0.68rem;
    margin-top: 0.3rem;
  }

  .aegis-orbit-bottom-accent {
    bottom: 78px;
  }

  .aegis-orbit-bottom-stats {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 0 6px;
    margin-top: 0;
    border-top: none;
    border-bottom-left-radius: 3rem;
    border-bottom-right-radius: 3rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
  }
  :root.light .aegis-orbit-bottom-stats {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
  }

  .aegis-orbit-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.5rem 0;
    border-right: 1px solid rgba(245, 228, 188, 0.12);
  }
  :root.light .aegis-orbit-stat {
    background: transparent;
    border: none;
    border-right: 1px solid rgba(188, 160, 106, 0.12);
  }
  .aegis-orbit-stat:last-child {
    border-right: none;
  }
  :root.light .aegis-orbit-stat:last-child {
    border-right: none;
  }
  .aegis-orbit-stat svg {
    width: 18px;
    height: 18px;
  }
  .aegis-orbit-stat span {
    font-size: 0.62rem;
  }
}

/* ─── Mini-laptop compact (1024px – 1151px) ─── */
@media (min-width: 1024px) and (max-width: 1151px) {
  /* Tighten the section column gap to recover horizontal space */
  .problems-grid {
    gap: 1.5rem;
  }

  .aegis-orbit-panel {
    width: 520px;
    height: 634px;
    padding-bottom: 82px;
  }

  .aegis-orbit-ring,
  .aegis-orbit-lines {
    bottom: 82px;
  }

  .aegis-orbit-center {
    top: calc(50% - 41px);
    width: 132px;
    height: 132px;
  }
  .aegis-orbit-center-icon { width: 22px; height: 22px; }
  .aegis-orbit-center-label { font-size: 0.62rem; }
  .aegis-orbit-center-title { font-size: 0.75rem; }

  .aegis-orbit-node {
    width: 172px;
  }
  .aegis-orbit-node--left  { left: 4px;  top: 44%; }
  .aegis-orbit-node--right { right: 4px; top: 44%; }
  .aegis-orbit-node--top    { top: 16px; }
  .aegis-orbit-node--bottom { bottom: 112px; }

  .aegis-orbit-node .problem-node-card { padding: 0.8rem 0.9rem; }
  .aegis-orbit-node-icon { width: 32px; height: 32px; }
  .aegis-orbit-node-icon svg { width: 16px; height: 16px; }
  .aegis-orbit-node-title { font-size: 0.76rem; }
  .aegis-orbit-node-desc  { font-size: 0.7rem; margin-top: 0.32rem; }

  .aegis-orbit-bottom-stats { height: 82px; }
  .aegis-orbit-stat svg     { width: 20px; height: 20px; }
  .aegis-orbit-stat span    { font-size: 0.65rem; }
}

/* ─── Medium laptop (1152px – 1279px) ─── */
@media (min-width: 1152px) and (max-width: 1279px) {
  .problems-grid {
    gap: 2rem;
  }

  .aegis-orbit-panel {
    width: 560px;
    height: 654px;
    padding-bottom: 84px;
  }

  .aegis-orbit-ring,
  .aegis-orbit-lines {
    bottom: 84px;
  }

  .aegis-orbit-center {
    top: calc(50% - 42px);
    width: 138px;
    height: 138px;
  }
  .aegis-orbit-center-icon { width: 23px; height: 23px; }
  .aegis-orbit-center-label { font-size: 0.64rem; }
  .aegis-orbit-center-title { font-size: 0.78rem; }

  .aegis-orbit-node {
    width: 182px;
  }
  .aegis-orbit-node--left  { left: 6px;  top: 44%; }
  .aegis-orbit-node--right { right: 6px; top: 44%; }
  .aegis-orbit-node--top    { top: 16px; }
  .aegis-orbit-node--bottom { bottom: 116px; }

  .aegis-orbit-node .problem-node-card { padding: 0.82rem 0.95rem; }
  .aegis-orbit-node-icon { width: 33px; height: 33px; }
  .aegis-orbit-node-icon svg { width: 16px; height: 16px; }
  .aegis-orbit-node-title { font-size: 0.78rem; }
  .aegis-orbit-node-desc  { font-size: 0.72rem; margin-top: 0.33rem; }

  .aegis-orbit-bottom-stats { height: 84px; }
  .aegis-orbit-stat svg     { width: 21px; height: 21px; }
  .aegis-orbit-stat span    { font-size: 0.67rem; }
}

/* ─── Full desktop (1280px+) ─── */
@media (min-width: 1280px) {
  .aegis-orbit-panel {
    width: 600px;
    height: 654px;
    padding-bottom: 84px;
  }

  .aegis-orbit-ring,
  .aegis-orbit-lines {
    bottom: 84px;
  }

  .aegis-orbit-center {
    top: calc(50% - 42px);
    width: 140px;
    height: 140px;
  }
  .aegis-orbit-center-icon { width: 24px; height: 24px; }
  .aegis-orbit-center-label { font-size: 0.65rem; }
  .aegis-orbit-center-title { font-size: 0.8rem; }

  .aegis-orbit-node {
    width: 192px;
  }
  .aegis-orbit-node--left  { left: 8px;  top: 44%; }
  .aegis-orbit-node--right { right: 8px; top: 44%; }
  .aegis-orbit-node--top    { top: 16px; }
  .aegis-orbit-node--bottom { bottom: 120px; }

  .aegis-orbit-node .problem-node-card { padding: 0.85rem 1rem; }
  .aegis-orbit-node-icon { width: 34px; height: 34px; }
  .aegis-orbit-node-icon svg { width: 17px; height: 17px; }
  .aegis-orbit-node-title { font-size: 0.8rem; }
  .aegis-orbit-node-desc  { font-size: 0.74rem; margin-top: 0.35rem; }

  .aegis-orbit-bottom-stats { height: 84px; }
  .aegis-orbit-stat svg     { width: 22px; height: 22px; }
  .aegis-orbit-stat span    { font-size: 0.7rem; }
}

/* Center reactive swell class */
.aegis-orbit-center.center-active {
  border-color: #ffffff;
  box-shadow: 0 0 45px rgba(188, 160, 106, 0.6), inset 0 0 25px rgba(188, 160, 106, 0.35);
  transform: scale(1.05) !important;
}
@media (min-width: 768px) {
  .aegis-orbit-center.center-active {
    transform: translate(-50%, -50%) scale(1.05) !important;
  }
}

/* Slow connector flows and particle offsets */
.aegis-flow-line {
  stroke-dasharray: 8 6;
  animation: aegisFlowOffset 8s linear infinite;
  stroke-opacity: 0.22;
  transition: stroke 0.3s ease, stroke-width 0.3s ease, filter 0.3s ease, stroke-opacity 0.3s ease;
}

/* Center breathing keyframe loops */
@keyframes centerBreathingMobile {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 25px rgba(188, 160, 106, 0.25), inset 0 0 15px rgba(188, 160, 106, 0.15);
  }
  50% {
    transform: scale(1.025);
    box-shadow: 0 0 35px rgba(188, 160, 106, 0.45), inset 0 0 20px rgba(188, 160, 106, 0.25);
  }
}
@keyframes centerBreathing {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 25px rgba(188, 160, 106, 0.25), inset 0 0 15px rgba(188, 160, 106, 0.15);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.025);
    box-shadow: 0 0 35px rgba(188, 160, 106, 0.45), inset 0 0 20px rgba(188, 160, 106, 0.25);
  }
}

/* Sequential scroll reveals */
.aegis-orbit-outer .aegis-orbit-center {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 200ms;
}
.aegis-orbit-outer.active .aegis-orbit-center {
  opacity: 1;
  transform: scale(1);
}

@media (min-width: 768px) {
  .aegis-orbit-outer .aegis-orbit-center {
    transform: translate(-50%, -50%) scale(0.9);
  }
  .aegis-orbit-outer.active .aegis-orbit-center {
    transform: translate(-50%, -50%) scale(1);
  }
}

.aegis-orbit-outer .aegis-orbit-node {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.aegis-orbit-outer.active .aegis-orbit-node {
  opacity: 1;
}

@media (min-width: 768px) {
  .aegis-orbit-node--top {
    transform: translate(-50%, -25px);
    transition-delay: 450ms;
  }
  .aegis-orbit-outer.active .aegis-orbit-node--top {
    transform: translate(-50%, 0);
  }

  .aegis-orbit-node--left {
    transform: translate(-25px, -50%);
    transition-delay: 600ms;
  }
  .aegis-orbit-outer.active .aegis-orbit-node--left {
    transform: translate(0, -50%);
  }

  .aegis-orbit-node--right {
    transform: translate(25px, -50%);
    transition-delay: 750ms;
  }
  .aegis-orbit-outer.active .aegis-orbit-node--right {
    transform: translate(0, -50%);
  }

  .aegis-orbit-node--bottom {
    transform: translate(-50%, 25px);
    transition-delay: 900ms;
  }
  .aegis-orbit-outer.active .aegis-orbit-node--bottom {
    transform: translate(-50%, 0);
  }
}

@media (max-width: 767px) {
  .aegis-orbit-node {
    transform: translateY(25px);
  }
  .aegis-orbit-node--top { transition-delay: 350ms; }
  .aegis-orbit-node--left { transition-delay: 450ms; }
  .aegis-orbit-node--right { transition-delay: 550ms; }
  .aegis-orbit-node--bottom { transition-delay: 650ms; }
  
  .aegis-orbit-outer.active .aegis-orbit-node {
    transform: translateY(0);
  }
}

.aegis-orbit-outer .aegis-orbit-lines {
  opacity: 0;
  transition: opacity 1.2s ease;
  transition-delay: 500ms;
}
.aegis-orbit-outer.active .aegis-orbit-lines {
  opacity: 0.85;
}

.aegis-orbit-outer .aegis-orbit-bottom-stats {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.8s ease;
  transition-delay: 1050ms;
}
.aegis-orbit-outer.active .aegis-orbit-bottom-stats {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility prefers-reduced-motion triggers */
@media (prefers-reduced-motion: reduce) {
  .aegis-orbit-ring-outer,
  .aegis-orbit-ring-middle,
  .aegis-orbit-ring-inner,
  .warning-pulse,
  .aegis-flow-line,
  .aegis-orbit-center {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
  .aegis-orbit-outer .aegis-orbit-center,
  .aegis-orbit-outer .aegis-orbit-node,
  .aegis-orbit-outer .aegis-orbit-lines,
  .aegis-orbit-outer .aegis-orbit-bottom-stats {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


.role-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.role-track-viewport {
  overflow: hidden;
  flex: 1;
  padding: 3rem 0;
  max-width: 1296px; /* Shows exactly 4 cards at a time (4 * 324px) */
  margin: 0 auto;
}

.role-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

#role {
  position: relative;
  overflow: hidden;
}

:root.light #role {
  background-color: #ffffff !important;
}

:root.light #role > div > div > p.text-gray-300 {
  color: #4b5563 !important; /* Ensure description text is readable on white bg */
}

html:not(.light) #role {
  background-color: #000000 !important;
}

#role .mouse-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(188, 160, 106, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s;
  opacity: 0;
}

#role:hover .mouse-glow {
  opacity: 1;
}

.role-card {
  flex: 0 0 auto;
  width: 300px;
  height: 340px;
  margin: 0 12px;
  background: #000000; /* Pure black for dark theme cards so they blend into background */
  border: 1px solid rgba(255, 255, 255, 0.03); /* Very faint border */
  border-radius: 2rem;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  backdrop-filter: blur(10px);
  transform: scale(0.82);
  opacity: 1; /* Fully visible side cards */
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

:root.light .role-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(188, 160, 106, 0.25);
}

/* Hover Backdrop Tint Transition, Edge Glow & Elevation Lift */
.role-card:hover {
  background: rgba(188, 160, 106, 0.12) !important;
  border-color: rgba(188, 160, 106, 0.65) !important;
  box-shadow: 0 20px 40px -10px rgba(188, 160, 106, 0.3), 0 0 25px rgba(188, 160, 106, 0.18) !important;
}

:root.light .role-card:hover {
  background: rgba(188, 160, 106, 0.15) !important;
  border-color: rgba(188, 160, 106, 0.75) !important;
  box-shadow: 0 20px 40px -10px rgba(188, 160, 106, 0.25) !important;
}

.role-card.role-active {
  transform: scale(1);
  opacity: 1;
  border-color: rgba(188, 160, 106, 0.6);
  box-shadow: 0 25px 50px -12px rgba(188, 160, 106, 0.3), 0 0 30px rgba(188, 160, 106, 0.2);
}

.role-card.role-active:hover {
  transform: scale(1.04) translateY(-6px);
  box-shadow: 0 32px 64px -10px rgba(188, 160, 106, 0.4), 0 0 40px rgba(188, 160, 106, 0.25) !important;
}

.role-card.role-neighbor {
  opacity: 1;
  transform: scale(0.9);
}

/* Icon Badge Inner Glow, Pop & Micro-Rotation */
.role-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 1.25rem;
  background: rgba(188, 160, 106, 0.14);
  border: 1px solid rgba(188, 160, 106, 0.35);
  color: #d9bc85;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: inset 0 0 12px rgba(188, 160, 106, 0.15), 0 0 15px rgba(188, 160, 106, 0.1);
}

.role-icon svg {
  width: 46px;
  height: 46px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
  filter: drop-shadow(0 0 6px rgba(188, 160, 106, 0.5));
}

.role-card.role-active .role-icon {
  background: #bca06a;
  color: #0a0807;
  border-color: #bca06a;
  transform: scale(1.1);
  box-shadow: 0 0 24px 4px rgba(188, 160, 106, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.2);
}

.role-card:hover .role-icon {
  background: #bca06a;
  color: #0a0807;
  border-color: #d6a75f;
  transform: scale(1.14) rotate(6deg);
  box-shadow: 0 0 28px 6px rgba(188, 160, 106, 0.5);
}

.role-card:hover .role-icon svg {
  transform: scale(1.15) rotate(4deg);
  filter: drop-shadow(0 0 10px rgba(188, 160, 106, 0.9));
}

/* Dynamic Ripple Effect */
.role-card .hp-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(188, 160, 106, 0.45) 0%, transparent 80%);
  pointer-events: none;
  transform: scale(0);
  animation: hpRippleAnim 0.6s ease-out forwards;
}

@keyframes hpRippleAnim {
  to {
    transform: scale(2.8);
    opacity: 0;
  }
}

.role-title {
  color: #f3f4f6;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

:root.light .role-title { color: #110d0a; }

.role-desc {
  color: #9ca3af;
  font-size: 0.85rem;
  line-height: 1.6;
}

:root.light .role-desc { color: #4b5563; }

.role-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(188, 160, 106, 0.12);
  border: 1px solid rgba(188, 160, 106, 0.35);
  color: #bca06a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 5;
}

.role-nav:hover {
  background: #bca06a;
  color: #0a0807;
  transform: scale(1.08);
}

.role-nav svg { width: 18px; height: 18px; }

.role-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.role-dot {
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(188, 160, 106, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}

.role-dot.role-dot-active {
  width: 32px;
  background: #bca06a;
}

@media (max-width: 768px) {
  .role-card { width: 200px; padding: 1.75rem 1.25rem; }
  .role-nav { width: 36px; height: 36px; }
}

@media (min-width: 1280px) {
  .role-carousel { gap: 1rem; }

  .role-track-viewport {
    padding: 3.5rem 0;
    max-width: 1328px; /* Shows exactly 4 cards at a time (4 * 332px) */
    margin: 0 auto;
  }

  .role-card {
    width: 300px;
    height: 380px;
    margin: 0 16px;
    border-radius: 2rem;
    padding: 2.5rem 1.5rem;
  }

  .role-card.role-active {
    transform: scale(1.04);
    box-shadow: 0 30px 60px -12px rgba(188, 160, 106, 0.25);
  }

  .role-card.role-neighbor { transform: scale(0.92); }

.role-icon { width: 96px; height: 96px; }
  .role-icon svg { width: 60px; height: 60px; }

  .role-title { font-size: 1.25rem; margin-bottom: 1rem; }

  .role-desc { font-size: 1rem; line-height: 1.7; }

  .role-nav { width: 56px; height: 56px; }
  .role-nav svg { width: 24px; height: 24px; }

  .role-dots { gap: 0.6rem; margin-top: 2rem; }
  .role-dot { width: 20px; height: 5px; }
  .role-dot.role-dot-active { width: 40px; }
}

@media (max-width: 640px) {
  .role-carousel {
    position: relative;
    padding: 0 3rem; 
    gap: 0;
    box-sizing: border-box;
  }

  .role-track-viewport {
    padding: 2rem 0;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  .role-track {
    align-items: stretch;
  }

  .role-card {
    flex: 0 0 auto;
    width: 220px;          
    min-height: 280px;      
    margin: 0 8px;
    padding: 1.25rem 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .role-desc {
    overflow-wrap: break-word;
  }

  .role-card.role-neighbor {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
  }

  .role-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    z-index: 20;
  }

  .role-nav-prev { left: 0; }
  .role-nav-next { right: 0; }

  .role-nav svg { width: 16px; height: 16px; }
}

@media (max-width: 360px) {
  .role-carousel { padding: 0 2.5rem; }
  .role-card { width: 190px; min-height: 270px; padding: 1.5rem 1rem; }
  .role-nav { width: 32px; height: 32px; }
  .role-nav svg { width: 14px; height: 14px; }
}

.cta-reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.cta-reveal-item.cta-in-view {
  opacity: 1;
  transform: translateY(0);
}

.cta-heading-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.cta-heading-line.cta-in-view {
  opacity: 1;
  transform: translateY(0);
}

.cta-badge-live {
  animation: ctaBadgeBreathe 3.2s ease-in-out infinite;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-badge-live:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 18px rgba(188, 160, 106, 0.18);
}

@keyframes ctaBadgeBreathe {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(188, 160, 106, 0.12);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(188, 160, 106, 0);
  }
}

.cta-stat-value {
  transition: color 0.3s ease;
}

.cta-stat.cta-counting .cta-stat-value {
  color: #d6a75f;
}

@media (prefers-reduced-motion: reduce) {
  .cta-reveal-item,
  .cta-heading-line {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .cta-badge-live {
    animation: none !important;
  }

  .cta-badge-live:hover {
    transform: none !important;
  }
}

.cta-aegis-line {
  color: #e8b978;
}

:root.light .cta-aegis-line {
  color: #7A6A4D;
}

/* Responsive Split-Slider Panel Styling */
.hero-image-comparison {
  touch-action: pan-y;
}

@media (hover: hover) {
  .hero-image-comparison:hover .hero-chaos-panel {
    width: 35%;
  }
  .hero-image-comparison:hover .hero-clarity-panel {
    width: 65%;
  }
}

/* Mobile & Tablet Fine-tuning */
@media (max-width: 640px) {
  .hero-split-pill {
    top: 50% !important;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.animate-float {
  animation: float 4s ease-in-out infinite;
}
.animate-float-delayed {
  animation: float 4s ease-in-out infinite;
  animation-delay: -2s;
}

/* ========================================= */
/* Project Track Record Section Styles       */
/* ========================================= */

html.dark .leaflet-popup-content-wrapper,
.leaflet-popup-content-wrapper {
  background: rgba(10, 8, 7, 0.98) !important;
  border: 1.5px solid rgba(201, 162, 104, 0.7) !important;
  border-radius: 1rem !important;
  color: #f3f4f6 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75), 0 0 20px rgba(201, 162, 104, 0.2) !important;
  padding: 6px !important;
  backdrop-filter: blur(8px);
}
html.light .leaflet-popup-content-wrapper {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1.5px solid rgba(201, 162, 104, 0.5) !important;
  color: #111827 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15), 0 0 20px rgba(201, 162, 104, 0.1) !important;
}

html.dark .leaflet-popup-tip,
.leaflet-popup-tip {
  background: rgba(10, 8, 7, 0.98) !important;
  border: 1px solid rgba(201, 162, 104, 0.7) !important;
}
html.light .leaflet-popup-tip {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(201, 162, 104, 0.5) !important;
}

.leaflet-container {
  font-family: inherit !important;
  background: #09090b !important;
}

.aegis-map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
}

.aegis-map-pin-dot {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #d4af37 0%, #bca06a 100%);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 12px rgba(212, 175, 55, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0807;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.aegis-map-pin-dot:hover,
.aegis-pin-active {
  transform: scale(1.3) translateY(-3px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.8), 0 0 20px rgba(212, 175, 55, 0.6);
  border-color: #fef08a;
}

html.dark .aegis-map-label,
.aegis-map-label {
  background: rgba(10, 8, 7, 0.92) !important;
  border: 1.5px solid #c9a268 !important;
  border-radius: 8px !important;
  color: #fff0c2 !important;
  font-family: inherit !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  padding: 4px 10px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.8), 0 0 12px rgba(201, 162, 104, 0.3) !important;
  white-space: nowrap !important;
  letter-spacing: 0.02em !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  backdrop-filter: blur(6px);
}
html.light .aegis-map-label {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1.5px solid rgba(201, 162, 104, 0.5) !important;
  color: #111827 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1), 0 0 12px rgba(201, 162, 104, 0.1) !important;
}

html.dark .aegis-map-label::before,
.aegis-map-label::before {
  border-top-color: #c9a268 !important;
}
html.light .aegis-map-label::before {
  border-top-color: rgba(201, 162, 104, 0.5) !important;
}

.aegis-map-label-active {
  background: #c9a268 !important;
  color: #0a0807 !important;
  border-color: #ffffff !important;
  box-shadow: 0 6px 22px rgba(201, 162, 104, 0.8) !important;
  transform: scale(1.08) translateY(-2px) !important;
}

@keyframes aegisDashFlow {
  from {
    stroke-dashoffset: 40;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.aegis-dash-line {
  animation: aegisDashFlow 2.5s linear infinite;
}

@media (max-width: 768px) {
  .aegis-map-label {
    font-size: 10px !important;
    padding: 3px 7px !important;
    border-radius: 6px !important;
  }
  .aegis-custom-pin-dot {
    width: 28px;
    height: 28px;
  }
}

/* Enlarged map close button */
html.light #enlarged-map-close-btn {
  background-color: #1f2937 !important;
  color: #ffffff !important;
}
html.dark #enlarged-map-close-btn, #enlarged-map-close-btn {
  background-color: #ffffff !important;
  color: #111827 !important;
}



/* Hero specific scale down */
.hero-zoom-90 {
  zoom: 0.9;
}


/* AEGIS Hero Subtitle Animation */
              @keyframes aegisLetterGlow {
                0%, 100% { color: currentColor; text-shadow: none; transform: scale(1) translateY(0); }
                4% { color: #FCE092; text-shadow: 0 0 20px rgba(217,177,100,1); transform: scale(1.15) translateY(-2px); }
                8%, 75% { color: #D9B164; text-shadow: 0 0 10px rgba(217,177,100,0.6); transform: scale(1) translateY(0); }
                85%, 95% { color: currentColor; text-shadow: none; transform: scale(1) translateY(0); }
              }

              @keyframes aegisWordExpand {
                0%, 100% { max-width: 0; opacity: 0; transform: translateX(-10px); padding-left: 0; }
                8%, 75% { max-width: 400px; opacity: 1; transform: translateX(0); padding-left: 2px; }
                85%, 95% { max-width: 0; opacity: 0; transform: translateX(10px); padding-left: 0; }
              }
  
              .aegis-anim-container {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                align-items: center;
                gap: 4px;
                font-weight: 800;
                text-transform: uppercase;
                letter-spacing: 0.08em;
                color: #e5e7eb; /* Default gray-200 */
              }
              html.light .aegis-anim-container {
                color: #1f2937; /* Darker gray-800 for light mode */
              }
              
              /* Desktop specific: single line */
              @media (min-width: 1024px) {
                .aegis-anim-container {
                  justify-content: flex-start;
                  flex-wrap: wrap;
                  gap: 8px;
                }
              }

              .aegis-anim-word {
                display: inline-flex;
                align-items: baseline;
                white-space: nowrap;
                margin: 0 2px;
              }
              .aegis-anim-letter { display: inline-block; transition: all 0.3s ease; font-size: 1.15em; font-weight: 700 !important;  }
              .aegis-anim-rest {
                display: inline-block;
                overflow: hidden;
                white-space: nowrap;
                max-width: 0;
                opacity: 0;
                font-weight: 700;
                font-size: 0.9em;
                vertical-align: baseline;
              }

              /* ANIMATION TRIGGERS */
              /* Tied to the .active class from scroll-reveal which fires AFTER preloader */
              .reveal.active .aegis-delay-1 { animation: aegisLetterGlow 14s ease 0.0s infinite; }
              .reveal.active .aegis-delay-2 { animation: aegisLetterGlow 14s ease 0.4s infinite; }
              .reveal.active .aegis-delay-3 { animation: aegisLetterGlow 14s ease 0.8s infinite; }
              .reveal.active .aegis-delay-4 { animation: aegisLetterGlow 14s ease 1.2s infinite; }
              .reveal.active .aegis-delay-5 { animation: aegisLetterGlow 14s ease 1.6s infinite; }
              
              .reveal.active .aegis-anim-rest { animation: aegisWordExpand 14s cubic-bezier(0.2, 0.8, 0.2, 1) 2.5s infinite; }
              .reveal.active

/* ==========================================================================
   Hero Primary Light Theme Overrides (Matches About Us Light Theme)
   ========================================================================== */
:root.light #hero-primary {
  background-color: #fdfcf9 !important;
}
:root.light #hero-primary-bg {
  filter: brightness(1.2) contrast(1.1) saturate(0.9) opacity(0.5) !important;
  mix-blend-mode: normal !important;
}
:root.light .hero-primary-top-grad {
  background: linear-gradient(to bottom, #fdfcf9, rgba(253, 252, 249, 0.7), transparent) !important;
}
:root.light .hero-primary-bot-grad {
  background: linear-gradient(to top, #fdfcf9, rgba(253, 252, 249, 0.9), transparent) !important;
}
:root.light .hero-primary-blur {
  background-color: rgba(253, 252, 249, 0.15) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
}
:root.light .hero-primary-radial {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, rgba(253, 252, 249, 0.75) 100%) !important;
}

/* Typography and Boxes */
:root.light .hero-primary-badge {
  background-color: rgba(255, 255, 255, 0.8) !important;
  color: #D9B164 !important;
  box-shadow: 0 4px 15px rgba(217, 177, 100, 0.1) !important;
}
:root.light .hero-primary-title {
  color: #D9B164 !important;
  background-image: none !important;
}
:root.light .hero-primary-title sup {
  color: #D9B164 !important;
}
:root.light .hero-primary-subtitle {
  color: #1a1a1a !important;
  text-shadow: none !important;
}
:root.light .hero-primary-subtitle .aegis-anim-letter {
  color: #D9B154 !important; font-weight: 900 !important; }
:root.light .hero-primary-subtitle .aegis-anim-rest {
  color: #111827 !important; /* Very dark navy/black as per reference image */
  font-weight: 700 !important;
}
:root.light .hero-primary-box {
  background-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}
:root.light .hero-primary-box:hover {
  background-color: white !important;
  border-color: rgba(217, 177, 100, 0.8) !important;
  box-shadow: 0 8px 30px rgba(217, 177, 100, 0.15) !important;
}
:root.light .hero-primary-box span:first-of-type {
  color: #111827 !important; /* Make text black for clear visibility */
  font-weight: 800 !important;
}
:root.light .hero-primary-box:hover span:first-of-type,
:root.light .hero-primary-box.auto-highlight span:first-of-type {
  color: #D9B164 !important; /* Turn gold on hover/highlight */
}
:root.light .hero-primary-box span:last-of-type {
  background-color: rgba(217, 177, 100, 0.4) !important;
}
:root.light .hero-primary-box:hover span:last-of-type,
:root.light .hero-primary-box.auto-highlight span:last-of-type {
  background-color: #D9B164 !important;
}
:root.light .hero-primary-scroll-text {
  color: #666666 !important;
}
:root.light .hero-primary-scroll-btn {
  background-color: rgba(255, 255, 255, 0.5) !important;
}
:root.light .hero-primary-scroll-btn:hover {
  background-color: white !important;
}

/* ==========================================================================
   Hero Section 2 Light Theme Overrides (Matches Hero 1)
   ========================================================================== */
:root.light #hero {
  background-color: #fdfcf9 !important;
}
:root.light #hero #hero-parallax-bg {
  filter: brightness(1.2) contrast(1.1) saturate(0.9) opacity(0.5) !important;
  mix-blend-mode: normal !important;
}
:root.light .hero2-top-grad {
  background: linear-gradient(to bottom, #fdfcf9, rgba(253, 252, 249, 0.7), transparent) !important;
}
:root.light .hero2-bot-grad {
  background: linear-gradient(to top, #fdfcf9, rgba(253, 252, 249, 0.9), transparent) !important;
}
:root.light .hero2-left-grad {
  background: linear-gradient(to right, #fdfcf9, rgba(253, 252, 249, 0.6), transparent) !important;
}
:root.light .hero2-right-grad {
  background: linear-gradient(to left, #fdfcf9, rgba(253, 252, 249, 0.6), transparent) !important;
}
:root.light .hero2-blur-layer {
  background-color: rgba(253, 252, 249, 0.15) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
}

/* ==========================================================================
   HUD Box Auto-Highlight Sequence Classes
   ========================================================================== */
.hero-primary-box.auto-highlight {
  background-color: rgba(217, 177, 100, 0.1) !important;
  border-color: rgba(217, 177, 100, 0.6) !important;
  box-shadow: 0 8px 30px rgba(217, 177, 100, 0.15) !important;
  transform: translateY(-8px) scale(1.03) !important;
}
.hero-primary-box.auto-highlight svg {
  transform: scale(1.1) !important;
}
.hero-primary-box.auto-highlight span:first-of-type {
  color: #D9B164 !important;
}

/* Light mode overrides */
:root.light .hero-primary-box.auto-highlight {
  background-color: white !important;
  border-color: rgba(217, 177, 100, 0.8) !important;
  box-shadow: 0 8px 30px rgba(217, 177, 100, 0.15) !important;
}

/* Pause floating animation on hover or auto-highlight */
.reveal:has(.hero-primary-box:hover) > div,
.reveal:has(.hero-primary-box.auto-highlight) > div {
  animation-play-state: paused !important;
}
.hero-primary-box.auto-highlight span.w-6 {
  background-color: #D9B164 !important;
}
