:root {
  --bg-dark: #000000;
  --bg-card: rgba(255, 255, 255, 0.02);
  --accent-primary: #00aaff; /* Iridescent Cobalt */
  --accent-secondary: #00f2ff; /* Cyan/Teal */
  --text-main: #ffffff;
  --text-muted: #b0b0b0; /* Silver */
  --glass-border: rgba(0, 170, 255, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.01);
  --font-heading: 'Cinzel', serif;
  --font-ethereal: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  background-image: url('lux convergence page/lux_main.jpg');
  background-size: 70vmin;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Global symbol overlay on body (dim watermark) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('lux convergence page/lux_main.jpg');
  background-size: 70vmin;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: lighten;
}

/* ── Resonance Banner ── */
.resonance-banner {
  background: linear-gradient(135deg, rgba(0,5,20,0.95), rgba(0,20,50,0.9));
  border-bottom: 1px solid rgba(0,170,255,0.25);
  padding: 1.2rem 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.resonance-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('lux convergence page/lux_main.jpg') center/40vmin no-repeat;
  opacity: 0.04;
  mix-blend-mode: lighten;
  pointer-events: none;
}

.resonance-text {
  font-family: var(--font-heading);
  font-size: clamp(0.75rem, 2vw, 1.1rem);
  letter-spacing: clamp(4px, 1.5vw, 12px);
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), #fff, var(--accent-secondary), var(--accent-primary));
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 6s linear infinite;
  display: inline-block;
  text-shadow: none;
  position: relative;
  z-index: 1;
}

@keyframes shineText {
  0% { background-position: 0% center; }
  100% { background-position: 300% center; }
}

/* Breathing glow line beneath banner text */
.resonance-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
  animation: bannerGlow 4s ease-in-out infinite;
}

@keyframes bannerGlow {
  0%, 100% { opacity: 0.3; width: 40%; left: 30%; }
  50% { opacity: 1; width: 80%; left: 10%; }
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--accent-primary);
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-family: var(--font-ethereal);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-primary);
  text-decoration: none;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.5s ease;
}

.logo:hover {
  background-position: right center;
  filter: drop-shadow(0 0 8px var(--accent-secondary));
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  letter-spacing: 1.5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
  transition: width 0.4s ease;
  box-shadow: 0 0 10px var(--accent-secondary);
}

.nav-links a:hover {
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 12px rgba(0, 242, 255, 0.8), 0 0 25px rgba(0, 170, 255, 0.4);
  letter-spacing: 2.5px;
}

.nav-links a:hover::after {
  width: 100%;
}

.live-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-secondary) !important;
}

.live-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--accent-secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-secondary);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.7); }
  70% { transform: scale(1.5); opacity: 0.5; box-shadow: 0 0 0 10px rgba(0, 242, 255, 0); }
  100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(0, 242, 255, 0); }
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8)), url('assets/hero-bg-new.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 10%;
}

.hero h1 {
  font-family: var(--font-ethereal);
  font-size: clamp(2.2rem, 8vw, 6.35rem);
  font-weight: 500;
  letter-spacing: clamp(2px, 0.9vw, 12px);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: fadeInUp 1.2s ease-out;
}

.cta-button {
  padding: 1rem 2.5rem;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border: 1px solid var(--accent-primary);
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
}

.cta-button:hover {
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  -webkit-text-fill-color: #fff;
  color: #fff;
  border-color: transparent;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 170, 255, 0.4), 0 0 20px rgba(0, 242, 255, 0.3);
}

.cta-button.filled {
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  -webkit-text-fill-color: #fff;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(0, 170, 255, 0.28);
}

/* Sections General */
section {
  padding: 5rem 10%;
}

.section-title {
  text-align: center;
  font-size: clamp(1.65rem, 3.8vw, 2.5rem);
  margin-bottom: 3rem;
  font-family: var(--font-ethereal);
  font-weight: 500;
  letter-spacing: clamp(2px, 0.8vw, 12px);
  text-transform: uppercase;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Art Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.art-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s;
}

.art-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(46, 91, 255, 0.2);
  border-color: var(--accent-primary);
}

.art-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.art-info {
  padding: 1.5rem;
}

.art-info h3 {
  margin-bottom: 0.5rem;
}

.art-price {
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Psychic Offerings */
.psychic-section {
  background: linear-gradient(rgba(10, 10, 12, 0.9), rgba(10, 10, 12, 0.9)), url('assets/psychic-bg.png');
  background-size: cover;
  background-attachment: fixed;
}

.offerings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.offering-card {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: background 0.3s;
}

.offering-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.offering-icon {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

/* Blog Section */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-post {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  background: var(--glass-bg);
  padding: 1rem;
  border-radius: 15px;
  border: 1px solid var(--glass-border);
}

.blog-image {
  height: 200px;
  background: #222;
  border-radius: 10px;
}

/* Videos */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.video-container {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .nav-links { display: none; }
  .blog-post { grid-template-columns: 1fr; }
}

.particle {
  position: fixed;
  pointer-events: none;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-secondary);
  animation: floatUp 3s ease-out forwards;
  z-index: 2000;
  opacity: 0.6;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-80px) scale(0.5);
    opacity: 0;
  }
}

.nav-cta {
  padding: 0.6rem 1.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border: 1px solid var(--accent-primary);
  border-radius: 50px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  -webkit-text-fill-color: #fff;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.4);
  transform: translateY(-2px);
}

/* Live Stream Section & Embed */
.video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 30px rgba(0, 170, 255, 0.1);
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}



/* Easter Egg: Falling Feathers */
.feather {
  position: fixed;
  top: -100px;
  width: 150px; /* Much larger */
  height: 40px; 
  pointer-events: none;
  z-index: 9999;
  filter: drop-shadow(0 0 15px rgba(0, 242, 255, 1)) drop-shadow(0 0 30px rgba(0, 119, 255, 0.5)); /* Intense glow */
  opacity: 0;
}

.feather-sparkle {
  position: fixed;
  width: 5px; /* Larger sparkles */
  height: 5px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  box-shadow: 0 0 15px white, 0 0 30px var(--accent-primary);
  opacity: 0;
}


@keyframes featherFall {
  0% {
    transform: translate(0, 0) rotate(var(--initial-rotate)) scale(0.6);
    opacity: 0;
  }
  10% { opacity: 0.9; transform: translate(var(--sway-1), 10vh) rotate(var(--rotate-1)) scale(1); }
  30% { transform: translate(var(--sway-2), 30vh) rotate(var(--rotate-2)); }
  50% { transform: translate(var(--sway-1), 50vh) rotate(var(--rotate-1)); }
  70% { transform: translate(var(--sway-2), 70vh) rotate(var(--rotate-2)); }
  90% { opacity: 0.9; transform: translate(var(--sway-1), 90vh) rotate(var(--rotate-1)); }
  100% {
    transform: translate(var(--sway-2), 110vh) rotate(var(--rotate-2)) scale(0.8);
    opacity: 0;
  }
}

@keyframes sparkleFall {
  0% { transform: translate(0, 0) scale(0); opacity: 0; }
  50% { opacity: 1; transform: translate(10px, 50vh) scale(1.5); }
  100% { transform: translate(-10px, 110vh) scale(0); opacity: 0; }
}

.secret-trigger {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  opacity: 0.1;
  cursor: pointer;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 1000;
  filter: grayscale(1) brightness(2);
}

.secret-trigger:hover {
  opacity: 0.6;
  transform: scale(1.2);
  filter: none;
}

/* Maintenance Page */
.maintenance-hero {
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7)), url('assets/under-construction-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.maintenance-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(0, 170, 255, 0.3);
  padding: 4rem 3rem;
  border-radius: 30px;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 170, 255, 0.1);
  animation: fadeInUp 1.5s ease-out;
}

.maintenance-card .logo {
  font-size: 2rem;
  margin-bottom: 2rem;
  display: block;
}

.maintenance-card h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.maintenance-card p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--accent-secondary);
  text-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-icon {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
}

.social-icon:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
  transform: translateY(-3px);
}

/* Climate News Widget */
#climate-news {
  background: radial-gradient(circle at center, #002244 0%, #000000 100%);
  position: relative;
  overflow: hidden;
}

#climate-news::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/psychic-bg.png');
  background-size: cover;
  opacity: 0.15;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.news-widget {
  background: rgba(0, 10, 30, 0.4);
  border: 1px solid rgba(0, 170, 255, 0.3);
  border-radius: 30px;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  height: 600px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 0 40px rgba(0, 170, 255, 0.1), inset 0 0 20px rgba(0, 242, 255, 0.05);
  position: relative;
  z-index: 1;
}

.news-header {
  padding: 2rem;
  background: linear-gradient(to right, rgba(0, 170, 255, 0.1), transparent);
  border-bottom: 1px solid rgba(0, 170, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-content::-webkit-scrollbar {
  width: 8px;
}

.news-content::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2);
}

.news-content::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 10px;
}

.news-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 15px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease-out;
}

.news-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-secondary);
  transform: translateX(10px);
}

.news-item h4 {
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.news-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--accent-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.news-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-family: var(--font-ethereal);
  font-style: italic;
  color: var(--text-muted);
}

/* Intro Splash Screen */
#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: opacity 1.5s ease, visibility 1.5s;
}

.intro-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.logo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.intro-logo {
  width: 130vh;
  max-width: 90vw;
  height: auto;
  opacity: 0;
  animation: logoFadeIn 6s ease-in-out forwards;
  z-index: 10;
  mix-blend-mode: lighten; /* Ensures the black background of the JPG disappears */
}

.warp-wave {
  position: absolute;
  top: calc(60% + 10px);
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 500px; /* Fixed size, scaling handles the expansion */
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(0, 170, 255, 0.45);
  box-shadow: 
    0 0 30px rgba(0, 170, 255, 0.5),
    inset 0 0 30px rgba(0, 170, 255, 0.5);
  opacity: 0;
  animation: wavePropagate 12s cubic-bezier(0.2, 0, 0.4, 1) forwards;
  z-index: 11;
  will-change: transform, opacity; /* Hardware acceleration */
  pointer-events: none;
}

.wave-1 { animation-delay: 1s; }
.wave-2 { animation-delay: 3s; }
.wave-3 { animation-delay: 5s; }

@keyframes logoFadeIn {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes wavePropagate {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  15% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(8); /* Large scale for expansion */
  }
}

/* Planetary Signal Dashboard */
#planetary-signals {
  padding: 8rem 5%;
  background: radial-gradient(circle at center, #001122 0%, #000 100%);
  position: relative;
  overflow: hidden;
}

.god-ray {
  position: absolute;
  top: -50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg at 50% 50%, 
    transparent 0deg, 
    rgba(0, 170, 255, 0.05) 10deg, 
    transparent 20deg, 
    rgba(0, 242, 255, 0.05) 40deg, 
    transparent 60deg);
  animation: rayRotate 60s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes rayRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.signals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.signal-terminal {
  background: rgba(0, 20, 40, 0.4);
  border: 1px solid rgba(0, 170, 255, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  position: relative;
  transition: all 0.5s ease;
  overflow: hidden;
}

.signal-terminal:hover {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
  transform: translateY(-5px);
}

.signal-terminal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
  animation: scanline 3s linear infinite;
}

@keyframes scanline {
  0% { top: -10%; }
  100% { top: 110%; }
}

.signal-title {
  font-family: var(--font-heading);
  color: var(--accent-secondary);
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.metric-value {
  font-family: 'Courier New', Courier, monospace;
  color: var(--accent-primary);
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 170, 255, 0.5);
}

.signal-status {
  margin-top: 2rem;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--accent-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 10px var(--accent-secondary);
  animation: pulse 2s infinite;
}

.chart-container {
  width: 100%;
  height: 150px;
  margin-top: 1.5rem;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.chart-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: hue-rotate(180deg) brightness(0.8);
}

.ethereal-visual {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, rgba(0, 170, 255, 0.1) 0%, transparent 70%);
}

.visual-wave {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--accent-secondary);
  border-radius: 50%;
  animation: waveExpand 6s linear infinite;
  opacity: 0;
}

@keyframes waveExpand {
  0% { width: 0; height: 0; opacity: 0; }
  20% { opacity: 0.5; }
  100% { width: 400px; height: 400px; opacity: 0; }
}

.coherence-pulse {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(5px);
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.5); opacity: 0.8; }
}

.coherence-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(0, 242, 255, 0.4) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.2;
}

/* Site-wide viewport resilience for Android Chrome and narrow mobile screens. */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

img,
picture,
video,
canvas,
svg,
iframe {
  max-width: 100%;
}

main,
header,
section,
nav,
footer,
div,
article,
form {
  min-width: 0;
}

@media (max-width: 768px) {
  body,
  header,
  main,
  section,
  nav,
  footer {
    max-width: 100%;
  }

  nav {
    padding: 0.8rem max(1rem, env(safe-area-inset-right)) 0.8rem max(1rem, env(safe-area-inset-left));
  }

  nav .logo {
    max-width: 100%;
    font-size: clamp(0.82rem, 4vw, 1.1rem);
    letter-spacing: clamp(1.5px, 0.7vw, 3px);
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .hero {
    height: auto;
    min-height: 100svh;
    padding-inline: clamp(1rem, 6vw, 2rem);
    overflow: hidden;
    background-attachment: scroll !important;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 3.5rem) !important;
    letter-spacing: clamp(1px, 0.8vw, 4px) !important;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .hero p {
    max-width: 100%;
    white-space: normal !important;
    letter-spacing: clamp(1px, 1vw, 3px) !important;
    overflow-wrap: anywhere;
  }

  section {
    padding-inline: clamp(1rem, 6vw, 2rem);
  }

  .section-title {
    max-width: 100%;
    font-size: clamp(1.55rem, 7vw, 2.25rem);
    letter-spacing: clamp(1.5px, 1vw, 4px);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .gallery-grid,
  .offerings-grid,
  .video-grid,
  .signals-grid,
  .chapter-grid,
  .art-preview-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .storybook-panel,
  .signal-terminal,
  .maintenance-card,
  .news-header,
  .news-content {
    padding-inline: clamp(1rem, 5vw, 1.5rem) !important;
  }

  .news-header,
  .metric-row,
  .news-meta,
  .social-links {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .cta-button,
  .nav-cta,
  button,
  input,
  textarea,
  select {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  nav:not(.pollinator-nav):not(.pollinator-submit-nav) {
    flex-direction: column;
    justify-content: center !important;
    gap: 0.55rem !important;
  }

  nav > .cta-button {
    padding: 0.55rem 0.9rem !important;
    font-size: 0.66rem !important;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 10vw, 2.75rem) !important;
  }

  .hero p,
  .resonance-text {
    font-size: clamp(0.68rem, 3.2vw, 0.9rem) !important;
    letter-spacing: clamp(1px, 1vw, 3px) !important;
    white-space: normal;
  }

  .cta-button {
    padding-inline: 1.25rem;
    white-space: normal;
    text-align: center;
  }

  .signal-terminal,
  .news-item {
    padding: 1.25rem;
  }

  footer {
    padding-inline: 1rem !important;
  }
}

/* Lux Applications — a scalable home for the expanding app constellation */
#lux-apps {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(6rem, 10vw, 9rem) 5%;
  background:
    linear-gradient(180deg, #000 0%, #020812 48%, #001122 100%);
  border-top: 1px solid rgba(0, 170, 255, 0.12);
}

.apps-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 26% 44%, rgba(159, 255, 215, .11), transparent 30%),
    radial-gradient(circle at 74% 44%, rgba(160, 130, 220, .13), transparent 31%),
    linear-gradient(90deg, transparent, rgba(0, 242, 255, .035), transparent);
}

.apps-atmosphere::before {
  content: '';
  position: absolute;
  inset: 7% 5%;
  opacity: .22;
  background-image: radial-gradient(rgba(167, 230, 255, .55) .8px, transparent .8px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.apps-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.apps-heading {
  max-width: 760px;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.apps-kicker {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1rem;
  color: rgba(174, 234, 255, .72);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.apps-kicker::before,
.apps-kicker::after {
  content: '';
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-secondary));
}

.apps-kicker::after { transform: rotate(180deg); }

.apps-heading .section-title {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  letter-spacing: clamp(.22rem, 1.1vw, .8rem);
}

.apps-heading p {
  color: var(--text-muted);
  font-size: clamp(.82rem, 1.5vw, 1rem);
  letter-spacing: .2em;
  line-height: 1.8;
  text-transform: uppercase;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.app-card {
  --app-accent: 0, 242, 255;
  position: relative;
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(150px, .78fr) minmax(210px, 1.22fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.6rem);
  padding: clamp(1.5rem, 3.5vw, 3rem);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(var(--app-accent), .24);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.038), rgba(255,255,255,.008)),
    rgba(0, 12, 24, .72);
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 30px 90px rgba(0,0,0,.34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform .45s cubic-bezier(.2,.75,.2,1), border-color .45s ease, box-shadow .45s ease;
}

.app-card-worlds { --app-accent: 200, 166, 255; }
.app-card-synergy { --app-accent: 159, 255, 215; }

.app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 18%, rgba(255,255,255,.065) 48%, transparent 72%);
  translate: -110% 0;
  transition: translate .8s ease;
}

.app-card::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(var(--app-accent), .09);
  border-radius: 21px;
  pointer-events: none;
}

.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-9px);
  border-color: rgba(var(--app-accent), .7);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 32px 90px rgba(0,0,0,.5), 0 0 48px rgba(var(--app-accent), .13);
  outline: none;
}

.app-card:hover::before,
.app-card:focus-visible::before { translate: 110% 0; }

.app-card-glow {
  position: absolute;
  width: 330px;
  aspect-ratio: 1;
  left: -80px;
  top: 50%;
  translate: 0 -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--app-accent), .16), transparent 66%);
  filter: blur(5px);
  pointer-events: none;
}

.app-visual {
  position: relative;
  z-index: 1;
  width: min(100%, 210px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--app-accent), .12), transparent 67%);
  transition: transform .6s cubic-bezier(.2,.75,.2,1), filter .6s ease;
}

.app-card:hover .app-visual,
.app-card:focus-visible .app-visual {
  transform: scale(1.055) rotate(2deg);
  filter: brightness(1.14);
}

.app-visual::before,
.app-visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(var(--app-accent), .22);
}

.app-visual::before { inset: 6%; }
.app-visual::after { inset: 18%; border-style: dashed; opacity: .55; }

.app-visual-synergy svg {
  width: 86%;
  height: 86%;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(159,255,215,.52));
  animation: app-sigil-breathe 5.5s ease-in-out infinite;
}

.app-visual-synergy .synergy-orbit { stroke: rgba(246,213,138,.78); stroke-width: .75; }
.app-visual-synergy .synergy-petals { stroke: #f6d58a; stroke-width: .65; }
.app-visual-synergy .synergy-lattice { stroke: rgba(200,166,255,.7); stroke-width: .48; }
.app-visual-synergy .synergy-core { fill: rgba(0,12,24,.9); stroke: #9fffd7; stroke-width: .9; }
.app-visual-synergy .synergy-star { fill: #9fffd7; stroke: none; filter: drop-shadow(0 0 3px #9fffd7); }

.app-visual-worlds img {
  position: relative;
  z-index: 1;
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: brightness(1.2) contrast(1.08) drop-shadow(0 0 10px rgba(240,207,138,.72)) drop-shadow(0 0 22px rgba(168,139,200,.5));
}

.app-card-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.app-meta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.15rem;
  color: rgba(var(--app-accent), .9);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.app-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(var(--app-accent));
  box-shadow: 0 0 10px rgba(var(--app-accent), .95);
}

.app-card strong {
  font: 500 clamp(1.65rem, 3vw, 2.65rem)/1.05 var(--font-ethereal);
  letter-spacing: .08em;
  color: #fff;
}

.app-description {
  max-width: 31rem;
  margin: 1.25rem 0 2rem;
  color: rgba(225, 229, 238, .7);
  font-size: .92rem;
  line-height: 1.8;
}

.app-launch {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: rgb(var(--app-accent));
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.app-launch span {
  font-size: 1rem;
  transition: transform .3s ease;
}

.app-card:hover .app-launch span,
.app-card:focus-visible .app-launch span { transform: translate(4px, -4px); }

.apps-growing {
  margin-top: 2.25rem;
  text-align: center;
  color: rgba(176, 207, 222, .55);
  font-size: .65rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.apps-growing span { color: var(--accent-secondary); margin-right: .6rem; }

@keyframes app-sigil-breathe {
  0%, 100% { opacity: .72; transform: scale(.98); }
  50% { opacity: 1; transform: scale(1.025); }
}

@media (max-width: 980px) {
  .apps-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 330px; grid-template-columns: minmax(140px, .62fr) minmax(240px, 1.38fr); }
}

@media (max-width: 620px) {
  #lux-apps { padding: 5rem 1rem; }
  .apps-heading { margin-bottom: 2.5rem; }
  .apps-heading .section-title { letter-spacing: .22rem; }
  .apps-heading p { padding: 0 .5rem; font-size: .72rem; letter-spacing: .13em; }
  .app-card {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.4rem 1.4rem 1.8rem;
    border-radius: 24px;
    text-align: center;
  }
  .app-card::after { inset: 9px; border-radius: 17px; }
  .app-visual { width: 150px; }
  .app-card-copy { align-items: center; }
  .app-description { margin: .9rem 0 1.3rem; font-size: .84rem; }
  .apps-growing { line-height: 1.8; }
}

@media (prefers-reduced-motion: reduce) {
  .app-visual-sacred svg { animation: none; }
  .app-card, .app-card::before, .app-visual, .app-launch span { transition: none; }
}
