:root {
  /* Dynamic Palette: Cyber Lime Bento (Strictly No Blue) */
  --bg-canvas: #1e2530; /* Slate Base */
  --bg-surface: #293340; /* Elevated Surface */
  --bg-surface-hover: #334050; /* Interactive */
  --accent-primary: #a3e635; /* Cyber Lime */
  --text-primary: #ffffff; /* High contrast text */
  --text-muted: #b0b8c4; /* Read-able secondary */
  
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.35);
  --glow-accent: 0 0 24px -4px var(--accent-primary);
  --glass-backdrop: blur(12px) saturate(160%);
  --corner-radius: 4px;
}

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

body, html {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  overflow-wrap: anywhere;
  hyphens: auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: all 0.3s var(--ease-kinetic);
}

a:hover, a:focus {
  color: var(--text-primary);
  text-shadow: 0 0 8px var(--accent-primary);
}

/* Base Layout Wrappers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

main {
  flex: 1;
}

.section-padding {
  padding: 4rem 0;
}

.prose {
  max-width: 72ch;
  margin: 0 auto;
}

.prose p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.prose h2 {
  margin-top: 2rem;
}

.text-center { text-align: center; }

/* Header & Nav */
.site-header {
  position: relative;
  width: 100%;
  padding: 1.5rem 0;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid rgba(163, 230, 53, 0.2);
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

.desktop-nav {
  display: flex;
  gap: 2rem;
}

.desktop-nav a {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.desktop-nav a:hover {
  color: var(--accent-primary);
}

/* Mobile Nav */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.mobile-nav-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 1px solid rgba(163, 230, 53, 0.2);
  padding: 1rem 0;
  z-index: 99;
}

.mobile-nav-overlay.active {
  display: flex;
  flex-direction: column;
}

.mobile-nav-overlay a {
  padding: 1rem 2rem;
  color: var(--text-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--accent-primary);
  border-radius: 0; /* Square ends */
  background: transparent;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--ease-kinetic);
  text-decoration: none;
}

.btn:hover, .btn:focus {
  background: var(--accent-primary);
  color: var(--bg-canvas);
  box-shadow: var(--glow-accent);
  transform: translateY(-2px);
}

.btn-solid {
  background: var(--accent-primary);
  color: var(--bg-canvas);
}
.btn-solid:hover {
  background: transparent;
  color: var(--text-primary);
}

/* Forms & Inputs */
input, textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-canvas);
  border: 1px solid rgba(163, 230, 53, 0.3);
  border-radius: var(--corner-radius);
  color: var(--text-primary);
  font-family: inherit;
  margin-bottom: 1rem;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: var(--glow-accent);
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-images {
  position: relative;
  width: 100%;
  height: 450px;
}

.hero-img {
  position: absolute;
  border-radius: var(--corner-radius);
  border: 2px solid var(--accent-primary);
  object-fit: cover;
  box-shadow: var(--shadow-elevation);
  transition: transform 0.5s var(--ease-kinetic);
}
.hero-img:hover {
  transform: scale(1.05) translateY(-10px);
  z-index: 10;
}

.hero-img-1 { top: 0; left: 0; width: 60%; height: 65%; z-index: 1; }
.hero-img-2 { bottom: 0; right: 5%; width: 55%; height: 60%; z-index: 2; }
.hero-img-3 { top: 15%; right: 0; width: 45%; height: 45%; z-index: 3; }

/* Bento Grid */
.bento-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.bento-card {
  background: var(--bg-surface);
  border-radius: var(--corner-radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-kinetic);
  border: 1px solid rgba(255,255,255,0.05);
}

.bento-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
  border-color: rgba(163, 230, 53, 0.4);
}

.bento-wide { grid-column: 1 / -1; }
.bento-tall { grid-row: span 2; }

@media (min-width: 769px) {
  .bento-container { grid-template-columns: repeat(3, 1fr); }
  .span-2-cols { grid-column: span 2; }
}

.bento-card h3 {
  font-size: 1.5rem;
  color: var(--accent-primary);
}
.bento-card p {
  color: var(--text-muted);
}
.bento-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--corner-radius);
  margin-top: 1.5rem;
}

/* Blur Cards (Story Arcs) */
.glass-section {
  background: linear-gradient(145deg, rgba(30, 37, 48, 0.9), rgba(41, 51, 64, 0.8));
  padding: 4rem 2rem;
  margin: 4rem 0;
  border-top: 1px solid var(--accent-primary);
  border-bottom: 1px solid var(--accent-primary);
}

.glass-card {
  background: rgba(41, 51, 64, 0.4);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid rgba(163, 230, 53, 0.2);
  border-radius: var(--corner-radius);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s var(--ease-kinetic);
}

.glass-card:hover {
  background: rgba(41, 51, 64, 0.6);
  border-color: var(--accent-primary);
}

/* Solid Blocks */
.solid-block {
  background: var(--accent-primary);
  color: var(--bg-canvas);
  padding: 4rem 0;
  margin: 4rem 0;
}
.solid-block h2, .solid-block h3, .solid-block p {
  color: var(--bg-canvas);
}

/* Tool / Outliner UI */
.tool-panel {
  background: var(--bg-surface);
  border: 1px solid var(--accent-primary);
  border-radius: var(--corner-radius);
  padding: 2rem;
  margin: 3rem 0;
}

.tool-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  padding: 4rem 0 2rem 0;
  margin-top: auto;
  border-top: 4px solid var(--accent-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}

.footer-col h4 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: var(--text-muted);
}
.footer-col ul li a:hover {
  color: var(--accent-primary);
}

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
  align-items: center;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a { color: var(--text-muted); }
.footer-nav a:hover { color: var(--accent-primary); }

.mobile-nav-ref {
  font-size: 0.8rem;
  color: var(--accent-primary);
  margin-top: 1rem;
  opacity: 0.7;
}

/* Scroll Reveals */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease-kinetic);
}
.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
th {
  color: var(--accent-primary);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* Media Queries */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 0;
    gap: 2rem;
  }
  .hero-images {
    height: 300px;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-content h1 { font-size: 2.5rem; }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-legal {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

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