/* ==========================================================================
   Rogue Science - Main Stylesheet
   Preserving all styles from old_style.css with enhancements for the
   interactive splash wordmark component.
   ========================================================================== */

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

html, body {
  height: 100%;
  min-height: 100vh;
  background-color: #ffffff;
  color: #000000;
  overflow-x: hidden;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Accessibility Utility for Screen Readers & SEO */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border-width: 0 !important;
}

/* Header & Navigation Specs */
.site-header {
  height: 80px;
  width: 100%;
  border-bottom: 1px solid #000000;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  background-color: #ffffff;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-right {
  display: flex;
  align-items: center;
}

.nav-link {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #000000;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover {
  opacity: 0.7;
}

.nav-link.active {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-link:focus-visible, .privacy-link:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 4px;
}

.icon {
  display: inline-block;
  vertical-align: middle;
}

/* Desktop Two-Column Layout */
.layout-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  gap: 60px;
  height: calc(100vh - 80px - 61px);
  min-height: calc(100vh - 80px - 61px);
}

.left-column {
  flex: 1;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

/* Splash Wordmark Container - Occupies full left column */
.wordmark-container {
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
  position: relative;
  background-color: transparent; /* Set to #050505 (and particleColor: '#00ffcc') for dark neon terminal look */
  overflow: hidden;
}

#wordmarkCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Fallback / original wordmark styling */
.wordmark {
  font-family: 'Hanalei', cursive;
  font-size: 100px;
  line-height: 100px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 40px;
}

.subtitle {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 24px;
  line-height: 32px;
  font-weight: 400;
}

/* Right Column (Scrollable Text) */
.right-column {
  flex: 1;
  overflow-y: auto;
  padding-right: 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  line-height: 24px;
}

.content-heading, .right-column h1 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  margin-bottom: 24px;
}

.right-column h2, .right-column h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 16px;
}

.right-column p {
  margin-bottom: 20px;
}

.right-column ul, .right-column ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.right-column li {
  margin-bottom: 12px;
}

.right-column a {
  color: #000000;
  text-decoration: underline;
}

/* Sticky Full-Width Footer */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #000000;
  padding: 20px 0;
  z-index: 1000;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  line-height: 20px;
}

.privacy-link {
  color: #000000;
  text-decoration: underline;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .site-header {
    height: 80px;
    padding: 0;
  }

  .nav-container {
    flex-direction: row;
    align-items: center;
    padding: 0 24px;
  }

  .main-nav {
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 0;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .newsletter-text {
    display: none;
  }

  .layout-container {
    flex-direction: column;
    height: auto;
    min-height: 0;
    gap: 20px;
    padding: 20px 24px 80px 24px;
  }

  .left-column {
    flex: none;
    height: auto;
    max-width: 100%;
    min-height: auto;
  }

  .wordmark-container {
    flex: none;
    height: 160px;
    min-height: 140px;
    max-height: 25vh;
    margin-bottom: 8px;
  }

  .wordmark {
    font-size: 72px;
    line-height: 72px;
    margin-bottom: 16px;
  }

  .right-column {
    flex: none;
    overflow-y: visible;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .wordmark-container {
    height: 130px;
    min-height: 120px;
  }

  .wordmark {
    font-size: 54px;
    line-height: 54px;
  }
}

/* --------------------------------------------------------------------------
   Splash Simulation Controls (Surreptitious Bottom-Left Trigger & Panel)
   -------------------------------------------------------------------------- */
.splash-ctrl-btn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 25;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.3;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.splash-ctrl-btn:hover, .splash-ctrl-btn.active {
  opacity: 1;
  background: #0f172a;
  border-color: #0f172a;
  color: #00ffcc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.splash-ctrl-panel {
  position: absolute;
  bottom: 42px;
  left: 10px;
  z-index: 30;
  width: 320px;
  max-width: calc(100% - 20px);
  max-height: min(85vh, 580px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 14px;
  color: #e2e8f0;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.splash-ctrl-panel::-webkit-scrollbar {
  width: 6px;
}
.splash-ctrl-panel::-webkit-scrollbar-track {
  background: rgba(31, 41, 55, 0.5);
  border-radius: 4px;
}
.splash-ctrl-panel::-webkit-scrollbar-thumb {
  background: rgba(75, 85, 99, 0.8);
  border-radius: 4px;
}
.splash-ctrl-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 114, 128, 1);
}

.splash-ctrl-panel.open {
  display: flex;
}

.splash-ctrl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  font-size: 12px;
  color: #f8fafc;
}

.splash-ctrl-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s ease;
}

.splash-ctrl-close:hover {
  color: #ffffff;
}

.splash-ctrl-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #38bdf8;
  margin-top: 6px;
  margin-bottom: -4px;
}

.splash-ctrl-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.splash-ctrl-row.inline {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.5);
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.splash-ctrl-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 500;
}

.splash-ctrl-desc {
  font-size: 10px;
  color: #64748b;
  margin-top: 1px;
  line-height: 1.25;
}

.splash-ctrl-desc span {
  color: #38bdf8;
  font-weight: 600;
}

.splash-ctrl-val {
  font-family: 'IBM Plex Mono', monospace;
  color: #00ffcc;
  font-size: 11px;
}

.splash-ctrl-select, .splash-ctrl-input {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #f8fafc;
  padding: 5px 8px;
  font-size: 11px;
  font-family: inherit;
  outline: none;
}

.splash-ctrl-select:focus, .splash-ctrl-input:focus {
  border-color: #00ffcc;
}

.splash-ctrl-slider {
  width: 100%;
  accent-color: #00ffcc;
  cursor: pointer;
  height: 4px;
  margin-top: 3px;
}

.splash-ctrl-btn-action {
  background: rgba(0, 255, 204, 0.12);
  border: 1px solid rgba(0, 255, 204, 0.3);
  color: #00ffcc;
  padding: 6px 10px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.splash-ctrl-btn-action:hover {
  background: rgba(0, 255, 204, 0.25);
}

.splash-ctrl-btn-action.active {
  background: rgba(0, 255, 204, 0.4);
  border-color: #00ffcc;
  box-shadow: 0 0 8px rgba(0, 255, 204, 0.4);
  color: #ffffff;
}

/* Discrete Physics Engine Buffering Indicator */
.splash-buffering-overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 204, 0.35);
  border-radius: 20px;
  color: #00ffcc;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 25;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.splash-buffering-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.splash-buffering-spinner {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(0, 255, 204, 0.2);
  border-top-color: #00ffcc;
  border-radius: 50%;
  animation: splash-spin 0.75s linear infinite;
}

@keyframes splash-spin {
  to { transform: rotate(360deg); }
}

