/* ==========================================================================
   Jumping Curiosity — Modern Web Design System & Stylesheet
   Typography, Kinetic Motion, WebGL Canvas, Bento Grid, Chart.js & D3
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Design Tokens & Theme Variables
   -------------------------------------------------------------------------- */
:root {
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'DM Mono', monospace;
  --font-accent: 'Syne', sans-serif;

  /* Dark Theme Default */
  --bg: #080b0a;
  --bg-card: rgba(16, 24, 20, 0.85);
  --paper: #f6f4ee;
  --paper-muted: #b7beb5;
  --acid: #d8f35d;
  --acid-glow: rgba(216, 243, 93, 0.35);
  --coral: #ff715d;
  --coral-glow: rgba(255, 113, 93, 0.3);
  --cyan: #5cd8e8;
  --ink: #0c100e;
  --muted: #828e86;
  --line: rgba(246, 244, 238, 0.16);
  --spotlight-color: rgba(216, 243, 93, 0.15);
  --header-bg: rgba(8, 11, 10, 0.88);
}

[data-theme="light"] {
  --bg: #f6f4ee;
  --bg-card: rgba(255, 255, 255, 0.92);
  --paper: #111815;
  --paper-muted: #3a453f;
  --acid: #3a5400;
  --acid-glow: rgba(58, 84, 0, 0.2);
  --coral: #d64536;
  --coral-glow: rgba(214, 69, 54, 0.2);
  --cyan: #14616e;
  --ink: #f6f4ee;
  --muted: #556259;
  --line: rgba(17, 24, 21, 0.16);
  --spotlight-color: rgba(214, 69, 54, 0.1);
  --header-bg: rgba(246, 244, 238, 0.92);
}

/* --------------------------------------------------------------------------
   1. Base, Reset & Smooth Fluid Scroll System
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Top Scroll Progress Indicator Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--acid), var(--coral), var(--cyan));
  z-index: 120;
  box-shadow: 0 0 10px var(--acid-glow);
  transition: width 0.05s linear;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* Grain Noise Overlay */
.noise {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: 0.035;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Typed Header Animation System (Page Refresh / Site Open) */
.typed-cursor {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  color: var(--acid);
  margin-left: 2px;
  width: 0.4em;
  vertical-align: baseline;
  animation: typedCursorBlink 0.75s infinite step-end;
  text-shadow: 0 0 8px var(--acid-glow);
  transition: opacity 0.6s ease;
}

.typed-cursor.is-finished {
  animation: none;
  opacity: 0;
  display: none;
  pointer-events: none;
}

@keyframes typedCursorBlink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

/* --------------------------------------------------------------------------
   2. Typography System, Sticker Badges & Kinetic Animation Classes
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--coral);
  margin-bottom: 12px;
}

/* Sticker Badges & Visual Graphic Labels */
.sticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: rotate(-1.5deg);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticker-badge:hover {
  transform: rotate(1deg) scale(1.05);
}

.sticker-acid {
  background: var(--acid);
  color: #101314;
}

.sticker-coral {
  background: var(--coral);
  color: #ffffff;
}

.sticker-cyan {
  background: var(--cyan);
  color: #101314;
}

.sticker-dark {
  background: #101314;
  color: var(--acid);
  border: 1px solid var(--acid);
}

.hero-sticker-row, .community-sticker-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* Kinetic Title */
.kinetic-title {
  font-size: clamp(52px, 8.5vw, 120px);
  line-height: 0.88;
  margin-bottom: 24px;
}

.kinetic-highlight {
  color: var(--acid);
  font-style: normal;
  font-family: var(--font-accent);
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.kinetic-highlight:hover {
  transform: scale(1.05) rotate(-2deg);
}

/* Scroll-Driven Text Highlight Fill */
.scroll-fill-text {
  font-size: clamp(40px, 6vw, 86px);
  line-height: 0.92;
  color: rgba(246, 244, 238, 0.25);
  background: linear-gradient(90deg, var(--paper) 50%, rgba(246, 244, 238, 0.25) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.1s linear;
}

[data-theme="light"] .scroll-fill-text {
  color: rgba(12, 16, 14, 0.22);
  background: linear-gradient(90deg, var(--paper) 50%, rgba(12, 16, 14, 0.22) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hover Jitter Effect */
[data-hover-jitter] {
  display: inline-block;
  transition: transform 0.15s ease;
}

[data-hover-jitter]:hover {
  animation: jitterText 0.3s ease infinite;
}

@keyframes jitterText {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1px, 1px); }
  50% { transform: translate(1px, -1px); }
  75% { transform: translate(-1px, -1px); }
  100% { transform: translate(0, 0); }
}

/* Kinetic Infinite Scroll Marquee Ticker */
.marquee-band {
  width: 100%;
  overflow: hidden;
  background: var(--acid);
  color: #101314;
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  white-space: nowrap;
  user-select: none;
}

.marquee-reverse {
  background: #101314;
  color: var(--acid);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeLoop 28s linear infinite;
}

.marquee-reverse .marquee-track {
  animation: marqueeLoopReverse 28s linear infinite;
}

@keyframes marqueeLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeLoopReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* --------------------------------------------------------------------------
   3. Header Navigation & Branding
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--acid);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand:hover .brand-logo {
  transform: rotate(12deg) scale(1.08);
  box-shadow: 0 0 16px var(--acid-glow);
}

.brand span {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.08em;
}

.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--acid);
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper-muted);
  padding: 6px 12px;
  border-radius: 99px;
  transition: color 0.25s ease, background 0.25s ease;
}

.main-nav a:hover, .main-nav a:focus-visible {
  color: var(--ink);
  background: var(--acid);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.randomizer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: all 0.25s ease;
}

.randomizer-btn:hover {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
  box-shadow: 0 0 14px var(--acid-glow);
}

/* Theme Toggle Button */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.theme-toggle:hover {
  transform: rotate(20deg);
  border-color: var(--acid);
  background: var(--line);
}

/* Mobile Menu Button & Drawer */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--bg);
  padding: 100px 30px 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer.is-active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-drawer nav a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   4. Floating Vertical Social Rail & Pixel Jumper Mascot
   -------------------------------------------------------------------------- */
.top-socials {
  position: fixed;
  top: 50vh;
  right: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px 16px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 20px 0 0 20px;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: -8px 12px 32px rgba(0, 0, 0, 0.25);
  transform: translateY(-50%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease;
}

/* Collapsed State */
.top-socials.is-collapsed {
  transform: translate(calc(100% - 32px), -50%);
}

.social-rail-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
  color: var(--paper-muted);
  cursor: pointer;
  padding: 2px 0 8px;
  width: 100%;
}

.rail-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

.rail-chevron {
  font-size: 14px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.top-socials.is-collapsed .rail-chevron {
  transform: rotate(180deg);
}

.social-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-link-item {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.social-link-item svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Brand-Specific Hover Styling */
.link-youtube:hover {
  background: #FF0000 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.4);
}

.link-x:hover {
  background: #000000 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .link-x:hover {
  background: #000000 !important;
  color: #ffffff !important;
}

.link-instagram:hover {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(253, 29, 29, 0.4);
}

.link-tiktok:hover {
  background: #000000 !important;
  color: #ffffff !important;
  box-shadow: -2px 2px 10px rgba(0, 242, 254, 0.6), 2px -2px 10px rgba(254, 44, 85, 0.6);
}

.link-substack:hover {
  background: #FF6719 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 103, 25, 0.4);
}

.link-pinterest:hover {
  background: #E60023 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(230, 0, 35, 0.4);
}

.link-reddit:hover {
  background: #FF4500 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 69, 0, 0.4);
}

.social-link-item:hover {
  transform: translateX(-4px) scale(1.08);
}

/* Tooltip on Hover */
.social-tooltip {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: var(--ink);
  color: var(--paper);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: 1px solid var(--line);
}

.social-link-item:hover .social-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Pixel Jumper Canvas Mascot */
.pixel-jumper {
  position: fixed;
  z-index: 91;
  top: 0;
  left: 0;
  width: 52px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.pixel-jumper canvas {
  width: 52px;
  height: 52px;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

/* --------------------------------------------------------------------------
   5. Hero Section & 3D WebGL Canvas
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 160px 8vw 100px;
  overflow: hidden;
}

#neuron-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-brand-lockup {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  font-family: var(--font-display);
  font-size: clamp(12px, 1.4vw, 16px);
  font-weight: 700;
  margin-bottom: 24px;
}

.lockup-coral {
  color: var(--coral);
}

.lockup-equals {
  color: var(--muted);
  font-weight: 400;
}

.lockup-devanagari {
  color: var(--acid);
  font-size: 1.1em;
}

.lockup-translation {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.hero-deck {
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--paper-muted);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-deck strong {
  color: var(--paper);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Magnetic Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--coral);
  color: #fff;
  border-radius: 99px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 24px var(--coral-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--coral-glow);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: 1px solid var(--line);
  color: var(--paper);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 13px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.btn-ghost:hover {
  border-color: var(--acid);
  background: var(--line);
}

/* --------------------------------------------------------------------------
   6. Bento Grid System & Mouse Spotlight Effect (Theme Aware)
   -------------------------------------------------------------------------- */
.bento-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

/* Dynamic Spotlight Hover Border */
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--acid),
    transparent 40%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-item {
  transition: transform 0.25s ease;
}

.bento-item:hover {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   7. Statement Section
   -------------------------------------------------------------------------- */
.statement {
  padding: 120px 8vw;
  background: var(--coral);
  color: #101314;
}

.statement .eyebrow {
  color: #101314;
}

.statement-bottom {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.statement-bottom p {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.6;
  color: rgba(16, 19, 20, 0.85);
}

.hand-note {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  transform: rotate(-1.5deg);
  text-transform: uppercase;
}

.hand-note em {
  color: #fff;
  font-style: normal;
}

.hand-note b {
  color: var(--acid);
  font-weight: 400;
  display: inline-block;
  animation: brainSpark 2.4s ease-in-out infinite;
}

@keyframes brainSpark {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.3) rotate(15deg); }
}

/* --------------------------------------------------------------------------
   8. Curiosity Atlas & Language Map
   -------------------------------------------------------------------------- */
.section {
  padding: 110px 8vw;
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}

.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.agenda-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.agenda-heading h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  margin-bottom: 16px;
}

.agenda-heading em {
  color: var(--coral);
  font-style: normal;
}

.agenda-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.agenda-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--coral);
  font-weight: 700;
}

.agenda-item h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.agenda-item p {
  font-size: 14px;
  color: var(--paper-muted);
  margin: 0;
}

.arrow {
  color: var(--coral);
  font-size: 20px;
  margin-left: auto;
}

.atlas-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.atlas-divider i {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.atlas-card {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.atlas-map-wrap {
  position: relative;
  min-height: 400px;
  border-radius: 16px;
  background: rgba(12, 16, 14, 0.4);
  border: 1px solid var(--line);
  overflow: hidden;
}

#atlas-map {
  width: 100%;
  height: 100%;
  min-height: 400px;
  cursor: grab;
}

#atlas-map:active {
  cursor: grabbing;
}

.atlas-country {
  fill: #22332c;
  stroke: var(--bg);
  stroke-width: 0.5;
  transition: fill 0.2s ease, transform 0.2s ease;
}

.atlas-country:hover, .atlas-country.is-selected {
  fill: var(--coral);
  stroke: #fff;
  stroke-width: 1;
}

.atlas-map-note {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.atlas-map-note button {
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--acid);
  background: transparent;
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
}

.autotour-btn {
  margin-left: 8px;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid var(--coral);
  background: rgba(255, 72, 0, 0.12);
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.autotour-btn:hover {
  background: var(--coral);
  color: var(--ink);
  box-shadow: 0 2px 12px var(--coral-glow);
}

.atlas-tooltip {
  position: absolute;
  display: none;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(12, 16, 14, 0.92);
  border: 1px solid var(--acid);
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 11px;
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  white-space: nowrap;
}

.atlas-detail h3 {
  font-size: clamp(28px, 3.2vw, 44px);
  margin: 10px 0;
}

.language-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-top: 18px;
}

.language-search input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
}

.atlas-language-header {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.atlas-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 12px;
}

.atlas-languages span {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
}

.atlas-languages span b {
  color: var(--paper);
}

.atlas-language-word {
  color: var(--acid);
}

.atlas-language-phonetic {
  color: var(--coral);
  font-size: 10px;
}

.continent-explorer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.continent-controls {
  display: flex;
  gap: 12px;
}

.continent-search, .continent-select {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.continent-search input, .continent-select select {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--paper);
  font-family: inherit;
}

.continent-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.continent-stats div {
  padding: 16px;
  background: rgba(12, 16, 14, 0.4);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.continent-stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--acid);
}

.continent-stats span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}

.continent-table-wrap {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.continent-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 12px;
}

.continent-table th, .continent-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.continent-table th {
  background: rgba(12, 16, 14, 0.8);
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  position: sticky;
  top: 0;
}

.continent-table button {
  background: transparent;
  border: 0;
  color: var(--paper);
  font-weight: 700;
  cursor: pointer;
}

.continent-table button:hover {
  color: var(--acid);
}

/* --------------------------------------------------------------------------
   9. Curiosity Spark Matrix (Interactive Playground)
   -------------------------------------------------------------------------- */
.infographics-header {
  max-width: 600px;
  margin-bottom: 40px;
}

.infographics-header h2 {
  font-size: clamp(36px, 4.5vw, 64px);
}

.infographics-header h2 em {
  color: var(--acid);
  font-style: normal;
}

.spark-matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.spark-card-wide {
  grid-column: 1 / -1;
}

.spark-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--coral);
  letter-spacing: 0.14em;
  display: inline-block;
  margin-bottom: 8px;
}

/* 3D Flip Card & Generative Canvas Background */
.spark-flip-card {
  perspective: 1000px;
  min-height: 280px;
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.card-generative-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 24px;
  z-index: 1;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.spark-card-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.spark-flip-card.is-flipped .spark-card-inner {
  transform: rotateY(180deg);
}

.spark-card-front, .spark-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
}

.spark-card-back {
  transform: rotateY(180deg);
  background: var(--bg-card);
  border-radius: 16px;
}

.spark-card-front h3 {
  font-size: 24px;
  line-height: 1.3;
  color: var(--paper);
}

.spark-tap-prompt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--acid);
  display: flex;
  align-items: center;
  gap: 6px;
}

.spark-card-back p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--paper);
}

.spark-card-back strong {
  color: var(--acid);
}

.spark-back-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

/* Signal Gauge */
.signal-gauge-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}

.gauge-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gauge-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--paper);
}

.gauge-bar {
  height: 8px;
  background: var(--bg-card);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.gauge-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fill-acid { background: var(--acid); }
.fill-coral { background: var(--coral); }
.fill-cyan { background: var(--cyan); }

/* Topic Spark Generator */
.spark-topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px 0;
}

.topic-pill {
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.topic-pill:hover, .topic-pill.is-active {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
  font-weight: 700;
  box-shadow: 0 4px 16px var(--acid-glow);
}

.spark-answer-box {
  padding: 20px;
  background: rgba(12, 16, 14, 0.4);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spark-answer-box h4 {
  font-size: 20px;
  color: var(--acid);
}

.spark-answer-box p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
}

.spark-action-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  text-decoration: none;
}

.spark-action-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   9b. Gamified Spotlight & Mystery Box (221 Torch Reveal Effect)
   -------------------------------------------------------------------------- */
.mystery-header {
  max-width: 650px;
  margin-bottom: 36px;
}

.mystery-badge-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Actual Hanging Light Bulb Assembly (Inside Top Right of Mystery Card)
   -------------------------------------------------------------------------- */
.pure-css-bulb-checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  clip: rect(0, 0, 0, 0);
  margin: 0;
}

.hanging-bulb-assembly {
  position: absolute;
  top: 0;
  right: 42px;
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}

.bulb-hanging-wire {
  width: 2px;
  height: 42px;
  background: linear-gradient(180deg, var(--line), #444);
  transform-origin: top center;
  animation: gentleWireSwing 3.2s ease-in-out infinite alternate;
}

.bulb-fixture-wrapper {
  position: relative;
  top: -2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transform-origin: top center;
  animation: gentleBulbSwing 3.2s ease-in-out infinite alternate;
  transition: transform 0.3s ease;
}

.bulb-fixture-wrapper:hover {
  transform: scale(1.08) rotate(3deg);
}

/* Metallic Socket Cap & Screw Threads */
.bulb-socket-cap {
  width: 22px;
  height: 14px;
  background: linear-gradient(90deg, #333 0%, #666 50%, #222 100%);
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.bulb-screw-base {
  width: 18px;
  height: 10px;
  background: linear-gradient(90deg, #8a7335, #d4af37 50%, #614f22);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  border-radius: 0 0 2px 2px;
}

.bulb-screw-base span {
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.4);
}

/* Glass Bulb Dome with Filament */
.actual-glass-bulb {
  position: relative;
  width: 52px;
  height: 64px;
  margin-top: -1px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.04) 60%, rgba(12, 16, 14, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50% 50% 42% 42% / 45% 45% 55% 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.15), 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
}

.bulb-filament-svg {
  width: 28px;
  height: 28px;
}

.filament-wire {
  fill: none;
  stroke: #776644;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.4s ease, filter 0.4s ease;
}

.filament-node {
  fill: #aa9955;
  transition: fill 0.4s ease;
}

/* Light Rays & Glow Halo */
.bulb-glow-halo {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--acid) 0%, rgba(216, 243, 93, 0.4) 40%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.bulb-light-rays {
  position: absolute;
  inset: -25px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bulb-light-rays span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 12px;
  background: var(--acid);
  border-radius: 99px;
  box-shadow: 0 0 6px var(--acid);
}

.bulb-light-rays span:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateY(-36px); }
.bulb-light-rays span:nth-child(2) { transform: translate(-50%, -50%) rotate(60deg) translateY(-36px); }
.bulb-light-rays span:nth-child(3) { transform: translate(-50%, -50%) rotate(120deg) translateY(-36px); }
.bulb-light-rays span:nth-child(4) { transform: translate(-50%, -50%) rotate(180deg) translateY(-36px); }
.bulb-light-rays span:nth-child(5) { transform: translate(-50%, -50%) rotate(240deg) translateY(-36px); }
.bulb-light-rays span:nth-child(6) { transform: translate(-50%, -50%) rotate(300deg) translateY(-36px); }

/* Pull String Cord & Bead Handle */
.bulb-pull-string {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2px;
}

.string-line {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), var(--acid));
}

.string-bead {
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--bg-card);
  border: 1px solid var(--acid);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.bead-text {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  color: var(--acid);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   STATE WHEN LIGHT BULB IS TURNED ON (PURE CSS + NO SCROLL JUMP)
   -------------------------------------------------------------------------- */
#pure-css-bulb-toggle:checked ~ .hanging-bulb-assembly .actual-glass-bulb {
  background: radial-gradient(circle at 40% 40%, #ffffff 0%, var(--acid) 55%, #b8d430 100%);
  border-color: #ffffff;
  box-shadow: 0 0 25px var(--acid), 0 0 60px var(--acid-glow), inset 0 0 12px #ffffff;
}

#pure-css-bulb-toggle:checked ~ .hanging-bulb-assembly .filament-wire {
  stroke: #ffffff;
  filter: drop-shadow(0 0 6px #ffffff);
}

#pure-css-bulb-toggle:checked ~ .hanging-bulb-assembly .filament-node {
  fill: #ffffff;
}

#pure-css-bulb-toggle:checked ~ .hanging-bulb-assembly .bulb-glow-halo,
#pure-css-bulb-toggle:checked ~ .hanging-bulb-assembly .bulb-light-rays {
  opacity: 1;
}

#pure-css-bulb-toggle:checked ~ .hanging-bulb-assembly .string-bead {
  background: var(--acid);
  border-color: var(--acid);
  box-shadow: 0 0 14px var(--acid-glow);
}

#pure-css-bulb-toggle:checked ~ .hanging-bulb-assembly .bead-text {
  color: var(--ink);
}

#pure-css-bulb-toggle:checked ~ .spotlight-mask-layer {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#pure-css-bulb-toggle:checked ~ .spotlight-hidden-content {
  opacity: 1 !important;
  visibility: visible !important;
}

.spotlight-reveal-card:has(#pure-css-bulb-toggle:checked) {
  border-color: var(--acid);
  box-shadow: 0 0 40px rgba(216, 243, 93, 0.35);
}

@keyframes gentleWireSwing {
  0% { transform: rotate(3deg); }
  100% { transform: rotate(-3deg); }
}

@keyframes gentleBulbSwing {
  0% { transform: rotate(2.5deg) translate(-1px, 0); }
  100% { transform: rotate(-2.5deg) translate(1px, 0); }
}

.spotlight-reveal-card {
  position: relative;
  min-height: 380px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  user-select: none;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* When Light Bulb is ON, illuminate full card and deactivate mask overlay */
.spotlight-reveal-card.is-bulb-on {
  border-color: var(--acid);
  box-shadow: 0 0 40px rgba(216, 243, 93, 0.3);
}

.spotlight-reveal-card.is-bulb-on .spotlight-mask-layer {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.spotlight-mask-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #090c0a;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  pointer-events: none;
  mask-image: radial-gradient(circle 140px at var(--torch-x, 50%) var(--torch-y, 50%), transparent 0%, rgba(0,0,0,0.96) 100%);
  -webkit-mask-image: radial-gradient(circle 140px at var(--torch-x, 50%) var(--torch-y, 50%), transparent 0%, rgba(0,0,0,0.96) 100%);
  transition: mask-image 0.05s ease;
}

.spotlight-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--acid);
  letter-spacing: 0.12em;
  text-align: center;
  background: rgba(216, 243, 93, 0.1);
  padding: 10px 16px;
  border-radius: 99px;
  border: 1px solid var(--acid);
  align-self: center;
}

.spotlight-encrypted-pattern {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.35;
  line-height: 1.8;
  word-break: break-all;
  overflow: hidden;
  max-height: 120px;
}

.spotlight-hidden-content {
  position: relative;
  z-index: 5;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.revealed-header h3 {
  font-size: clamp(24px, 3.2vw, 36px);
  color: var(--acid);
  margin: 10px 0 6px 0;
}

.revealed-header p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--paper);
  max-width: 680px;
}

.mystery-quest-box {
  background: rgba(12, 16, 14, 0.4);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quest-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--coral);
  letter-spacing: 0.14em;
}

.mystery-quest-box h4 {
  font-size: 20px;
  color: var(--paper);
}

.quest-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .quest-options {
    grid-template-columns: 1fr;
  }
}

.btn-quest {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--paper);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-quest span {
  font-size: 14px;
  font-weight: 700;
}

.btn-quest small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.quest-yes:hover {
  background: rgba(46, 204, 113, 0.15);
  border-color: #2ecc71;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.2);
}

.quest-no:hover {
  background: rgba(255, 72, 0, 0.15);
  border-color: var(--coral);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--coral-glow);
}

.quest-secret:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.2);
}

.quest-feedback {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--acid);
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(216, 243, 93, 0.08);
  border: 1px solid rgba(216, 243, 93, 0.2);
  display: none;
}

.quest-feedback.is-visible {
  display: block;
}

/* --------------------------------------------------------------------------
   10. Principles & Ethics
   -------------------------------------------------------------------------- */
.principles {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.principle-art {
  position: relative;
  min-height: 320px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: radial-gradient(circle, var(--acid-glow), transparent 60%);
  display: grid;
  place-items: center;
}

.data-ring {
  position: absolute;
  inset: 20px;
  border: 1px dashed var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.data-ring span {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--acid);
  letter-spacing: 0.14em;
  background: var(--bg);
  padding: 2px 6px;
}

.data-ring span:nth-child(1) { top: -6px; }
.data-ring span:nth-child(2) { right: -6px; }
.data-ring span:nth-child(3) { bottom: -6px; }
.data-ring span:nth-child(4) { left: -6px; }

.big-number {
  font-family: var(--font-display);
  font-size: 110px;
  font-weight: 800;
  line-height: 1;
  color: var(--paper);
}

.radar-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 12px var(--coral);
}

.dot-one { top: 30%; right: 28%; }
.dot-two { bottom: 25%; left: 30%; }

.principle-copy h2 {
  font-size: clamp(36px, 4.5vw, 64px);
}

.principle-copy em {
  color: var(--acid);
  font-style: normal;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.principle-grid div {
  padding: 16px;
  border-top: 2px solid var(--coral);
}

.principle-grid b {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--coral);
  margin-bottom: 4px;
}

.principle-grid span {
  font-size: 13px;
  color: var(--paper-muted);
}

/* --------------------------------------------------------------------------
   11. Section 04: Community & Questions (High-Impact Expressive Typography)
   -------------------------------------------------------------------------- */
.community-section {
  background: var(--acid);
  color: #101314;
}

[data-theme="light"] .community-section {
  background: #d4f056;
  color: #0c100e;
}

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

.community-header {
  margin-bottom: 30px;
}

.community-section .eyebrow {
  color: #101314;
}

.join-title {
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: #101314;
  margin-bottom: 20px;
}

.type-outline {
  color: transparent;
  -webkit-text-stroke: 2px #101314;
  font-style: normal;
  display: inline-block;
  transition: transform 0.3s ease;
}

.type-outline:hover {
  transform: skewX(-6deg) scale(1.04);
}

.type-gradient {
  font-style: normal;
  color: #101314;
  background: linear-gradient(135deg, #101314 0%, var(--coral) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Topic Cycler Badge */
.topic-cycler-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #101314;
  color: var(--paper);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-top: 10px;
}

.cycler-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 8px var(--coral);
  animation: pulseDot 1.2s infinite alternate;
}

@keyframes pulseDot {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.cycler-prefix {
  color: #828e86;
}

#topic-cycler-text {
  color: #d8f35d;
}

.community-section .comment-prompt {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 800;
  line-height: 0.95;
  margin: 30px 0 14px;
}

.community-section .highlight-text {
  color: var(--coral);
  font-style: normal;
}

.community-section .question-invite {
  font-size: clamp(16px, 1.8vw, 19px);
  color: rgba(16, 19, 20, 0.88);
  max-width: 680px;
  line-height: 1.6;
}

/* Typographic Prompt Cards Grid (Theme-Aware) */
.prompt-cards-header {
  margin-top: 48px;
  margin-bottom: 20px;
}

.prompt-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #101314;
  text-transform: uppercase;
}

.prompt-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.prompt-card {
  position: relative;
  background: var(--bg-card);
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.prompt-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.prompt-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 0.1em;
}

.prompt-card h3 {
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.25;
  margin: 10px 0 8px;
  color: var(--paper);
}

.prompt-card p {
  font-size: 13px;
  color: var(--paper-muted);
  margin: 0;
  line-height: 1.5;
}

.prompt-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 20px;
  color: var(--coral);
  transition: transform 0.25s ease;
}

.prompt-card:hover .prompt-arrow {
  transform: translate(3px, -3px);
}

.youtube-callout {
  margin: 36px 0 24px;
}

.youtube-callout span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(16, 19, 20, 0.7);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(16, 19, 20, 0.3);
  border-radius: 99px;
  color: #101314;
  font-family: var(--font-mono);
  font-size: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.social-icon:hover {
  background: #101314;
  color: var(--acid);
}

.social-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   12. FAQ Section (AEO Direct Answers)
   -------------------------------------------------------------------------- */
.faq h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  margin-bottom: 30px;
}

.faq h2 em {
  color: var(--acid);
  font-style: normal;
}

.faq-list {
  max-width: 800px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq summary {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 24px;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin-top: 14px;
  font-size: 15px;
  color: var(--paper-muted);
  max-width: 680px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  display: flex;
  justify-space-between;
  align-items: center;
  padding: 30px 8vw;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--acid);
}

/* --------------------------------------------------------------------------
   14. Responsive Breakpoints (Mobile, Tab, Desktop)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .site-header {
    padding: 14px 24px;
  }

  .agenda-layout, .atlas-card, .principles {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .infographics-grid, .prompt-cards-grid {
    grid-template-columns: 1fr;
  }

  .statement-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 10px 14px;
  }

  .header-tools {
    gap: 6px;
  }

  .ads-toggle-btn, .randomizer-btn {
    padding: 5px 8px;
    font-size: 11px;
  }

  .brand span small {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    margin-left: 4px;
    flex-shrink: 0;
  }

@media (max-width: 480px) {
  .site-header {
    padding: 8px 10px;
  }

  .brand span b, .brand span small {
    display: none;
  }

  .header-tools {
    gap: 4px;
  }

  .randomizer-btn span {
    display: none;
  }

  .randomizer-btn {
    padding: 5px 8px;
  }

  .ads-toggle-btn {
    padding: 4px 6px;
    font-size: 10px;
  }
}

  .top-socials {
    top: auto;
    bottom: 20px;
    transform: none;
    border-radius: 20px;
    border-right: 1px solid var(--line);
    padding: 8px 12px;
    flex-direction: row;
  }

  .top-socials.is-collapsed {
    transform: translateY(calc(100% - 24px));
  }

  .social-rail-toggle {
    flex-direction: row;
    padding: 0 6px;
    width: auto;
  }

  .rail-label {
    writing-mode: horizontal-tb;
  }

  .social-links-list {
    flex-direction: row;
  }

  .pixel-jumper {
    display: none;
  }

  .section {
    padding: 70px 6vw;
  }

  .hero {
    padding: 120px 6vw 60px;
  }

  .hero-copy {
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .hero-brand-lockup {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    align-items: stretch;
    margin: 0 auto;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .kinetic-title {
    font-size: clamp(40px, 11vw, 64px);
    text-align: center;
  }

  .statement-bottom p {
    font-size: 16px;
  }

  .continent-stats {
    grid-template-columns: 1fr;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Google AdSense Preview & Activation System
   ========================================================================== */
.adsense-slot-wrapper {
  display: block; /* Visible by default so AdSense crawler verifies account instantly */
  width: 100%;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

body.hide-ads .adsense-slot-wrapper,
body:not(.show-ads-preview) .adsense-slot-wrapper {
  display: none !important;
}

.adsense-inner-box {
  position: relative;
  background: rgba(16, 24, 20, 0.9);
  border: 1px dashed var(--acid);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6), inset 0 0 10px var(--acid-glow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.adsense-badge {
  display: inline-block;
  font-family: var(--font-mono), monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--paper-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.adsense-placeholder-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  background: rgba(8, 11, 10, 0.85);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--acid);
  font-family: var(--font-mono), monospace;
}

.adsense-placeholder-banner span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.adsense-placeholder-banner small {
  font-size: 11px;
  color: var(--cyan);
  opacity: 0.85;
}

/* Hide placeholder banner when live Google AdSense ad renders inside ins element */
.adsbygoogle[data-ad-status="filled"] ~ .adsense-placeholder-banner,
.adsbygoogle:not(:empty) ~ .adsense-placeholder-banner,
ins.adsbygoogle iframe ~ .adsense-placeholder-banner {
  display: none !important;
}

/* Ads Toggle Button Styling in Header */
.ads-toggle-btn {
  background: rgba(255, 113, 93, 0.12);
  border: 1px solid var(--coral);
  color: var(--coral);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ads-toggle-btn:hover {
  background: var(--coral);
  color: #080b0a;
  box-shadow: 0 0 14px var(--coral-glow);
}

body.show-ads-preview .ads-toggle-btn {
  background: var(--acid);
  border-color: var(--acid);
  color: #080b0a;
  box-shadow: 0 0 14px var(--acid-glow);
}

