/* ==========================================================================
   OpenGrid Studio — Modern Analog Design System
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-darkest: #07090d;
  --bg-main: #0c0f17;
  --bg-surface: #131823;
  --bg-surface-elevated: #1a2232;
  --bg-glass: rgba(19, 24, 35, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-prominent: rgba(255, 255, 255, 0.16);

  /* Brand Accents */
  --accent-cyan: #38bdf8;
  --accent-cyan-hover: #0ea5e9;
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.25);
  --accent-indigo: #6366f1;

  /* Typography */
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;

  /* Layout */
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.15);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-darkest);
  color: var(--text-main);
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  background: radial-gradient(circle at 50% 0%, #151d2f 0%, var(--bg-darkest) 75%);
  overflow-x: hidden;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-cyan);
  color: #000;
  padding: var(--space-xs) var(--space-md);
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

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

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #0f172a, #1e1b4b, #0f172a);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  padding: 0.4rem 0;
}
.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge.pulse {
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.4);
}
.badge-accent {
  background: var(--accent-amber-glow);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.badge-mit {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.4);
}
.announcement-link {
  color: var(--accent-cyan);
  font-weight: 600;
  text-decoration: none;
}
.announcement-link:hover {
  text-decoration: underline;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 20, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
  gap: var(--space-md);
}
.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo {
  height: 34px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
}
.main-nav .nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.25rem 0.35rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  display: block;
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}
.mobile-nav-actions {
  display: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.artist-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-amber);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.artist-pill-link:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}
.artist-pill-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 6px var(--accent-amber);
}
.artist-pill-text {
  font-family: var(--font-mono);
  letter-spacing: 0.2px;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-prominent);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-icon:hover {
  color: #fff;
  background: #232c3f;
  border-color: rgba(255, 255, 255, 0.4);
}
.header-cta {
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
}
.btn-sm {
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
}
.btn-lg {
  font-size: 1.05rem;
  padding: 0.85rem 1.6rem;
}
.btn-primary {
  background: var(--accent-cyan);
  color: #06111e;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}
.btn-primary:hover {
  background: var(--accent-cyan-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
}
.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border-color: var(--border-prominent);
}
.btn-secondary:hover {
  background: #232c3f;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-prominent);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-main);
}
.btn-glass {
  background: rgba(12, 15, 23, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-glass:hover {
  background: rgba(12, 15, 23, 1);
  border-color: var(--accent-cyan);
}
.btn-block {
  width: 100%;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  width: 38px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}
.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-prominent);
}
.hamburger-bar {
  width: 18px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Sections Common */
.section {
  padding-block: clamp(3rem, 7vw, var(--space-2xl));
}
.section-header {
  margin-bottom: var(--space-xl);
}
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-xs);
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}
.section-description {
  max-width: 680px;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Hero Section */
.hero-section {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, var(--space-2xl));
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}
.hero-title {
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -1px;
  padding-bottom: 0.15em;
  padding-right: 0.1em;
  margin-bottom: var(--space-md);
  background: linear-gradient(180deg, #ffffff 30%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.65;
}
.hero-lead strong {
  color: var(--text-main);
}
.hero-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
}
.feature-tag {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #cbd5e1;
  font-size: 0.95rem;
}
.feature-tag svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}
.hero-cta-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border-subtle);
}

/* Hero Media Window Mockup */
.hero-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-prominent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  transition: transform 0.3s ease;
}
.hero-window:hover {
  transform: translateY(-3px);
}
.window-header {
  display: flex;
  align-items: center;
  padding: 0.65rem 1rem;
  background: #111622;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.78rem;
}
.window-dots {
  display: flex;
  gap: 6px;
  margin-right: 1rem;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }
.window-title {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  flex-grow: 1;
}
.window-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.window-figure {
  margin: 0;
  position: relative;
  background: #080a0f;
}
.window-image {
  width: 100%;
  height: auto;
  aspect-ratio: 2360 / 1760;
  display: block;
  cursor: pointer;
}
.window-caption {
  font-size: 0.75rem;
  color: var(--text-subtle);
  text-align: center;
  padding: 0.4rem;
  background: #0f131c;
  border-top: 1px solid var(--border-subtle);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}
.filter-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-tab:hover {
  color: var(--text-main);
  border-color: var(--border-prominent);
}
.filter-tab.active {
  background: var(--accent-cyan);
  color: #06111e;
  border-color: var(--accent-cyan);
}

/* Plugins Grid */
.plugins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: var(--space-lg);
}
.plugin-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.plugin-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: var(--shadow-md), 0 0 20px rgba(56, 189, 248, 0.08);
}
.card-media {
  position: relative;
  background: #080a0f;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}
.card-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.plugin-card:hover .card-img {
  transform: scale(1.02);
}
.card-media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.card-media:hover .card-media-overlay {
  opacity: 1;
}
.card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}
.card-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.card-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: var(--space-md);
  line-height: 1.55;
  flex-grow: 1;
}
.spec-list {
  list-style: none;
  font-size: 0.82rem;
  color: #cbd5e1;
  background: var(--bg-darkest);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.card-download-row {
  margin-bottom: var(--space-xs);
  margin-top: auto;
}
.btn-download {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-sm);
}
.card-footer {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: 0.25rem;
}
.tag-status {
  font-size: 0.8rem;
  color: var(--accent-amber);
  font-weight: 600;
  padding-left: var(--space-xs);
}

/* Framework Card */
.framework-card {
  height: 100%;
}
.code-block-preview {
  background: #080a0f;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  margin-bottom: var(--space-lg);
  overflow-x: auto;
}
.code-block-preview pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #38bdf8;
  line-height: 1.45;
}

/* Mixing Philosophy Section */
.philosophy-section {
  background: radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.05) 0%, transparent 50%),
              linear-gradient(180deg, var(--bg-darkest) 0%, #0d121c 50%, var(--bg-darkest) 100%);
  border-block: 1px solid var(--border-subtle);
}
.philosophy-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
.philosophy-console-card {
  background: linear-gradient(145deg, #131926 0%, #0c1017 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(245, 158, 11, 0.08);
  position: relative;
  overflow: hidden;
}
.philosophy-console-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #38bdf8);
}
.console-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}
.console-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}
.console-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}
.console-heading {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  padding-top: 0.05em;
  padding-bottom: 0.2em;
  padding-right: 0.1em;
  margin-bottom: var(--space-sm);
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.console-lead {
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}
.console-telemetry {
  background: #080b11;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  container-type: inline-size;
}
.telemetry-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: 0.55rem;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.telemetry-row:first-child {
  padding-top: 0.15rem;
}
.telemetry-row:last-child {
  border-bottom: none;
  padding-bottom: 0.15rem;
}
.tel-label {
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.tel-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(245, 158, 11, 0.25);
  margin-inline: 0.65rem;
  min-width: 0.85rem;
  position: relative;
  top: -3px;
}
.tel-val {
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.84rem;
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;
}

/* Tall View / Mobile / Narrow Container Reflow */
@container (max-width: 440px) {
  .telemetry-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding-block: 0.55rem;
  }
  .tel-dots {
    display: none;
  }
  .tel-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
  }
  .tel-val {
    font-size: 0.88rem;
    text-align: left;
    white-space: normal;
  }
}

@media (max-width: 580px) {
  .telemetry-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding-block: 0.55rem;
  }
  .tel-dots {
    display: none;
  }
  .tel-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
  }
  .tel-val {
    font-size: 0.88rem;
    text-align: left;
    white-space: normal;
  }
}
.console-badge-note {
  font-style: italic;
  font-size: 0.9rem;
  color: #94a3b8;
  border-left: 2px solid var(--accent-amber);
  padding-left: 0.75rem;
}

/* Axioms Stack */
.philosophy-axioms {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  justify-content: center;
}
.axiom-item {
  display: flex;
  gap: var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all 0.25s ease;
}
.axiom-item:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.axiom-number {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-cyan);
  opacity: 0.85;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 0.15rem;
}
.axiom-content h3 {
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.axiom-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.artist-quote-box cite {
  display: block;
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-top: 0.5rem;
  font-style: normal;
}
.trade-notice a {
  color: var(--accent-cyan);
  text-decoration: none;
}
.trade-notice a:hover {
  text-decoration: underline;
}
.artist-nav-btn {
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--accent-cyan);
}
.artist-nav-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-cyan);
}

/* Artist Section: Mista Min */
.artist-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-prominent);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
}
.artist-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.artist-avatar-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.avatar-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-prominent);
  background: #000;
}
.artist-avatar-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.artist-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.artist-name {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.2rem;
}
.artist-subtitle {
  font-family: var(--font-mono);
  color: var(--accent-amber);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}
.artist-bio-text {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.artist-quote-box {
  background: rgba(56, 189, 248, 0.05);
  border-left: 3px solid var(--accent-cyan);
  padding: var(--space-md);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: var(--space-lg);
}
.artist-quote-box p {
  font-style: italic;
  color: #e2e8f0;
  font-size: 0.95rem;
}
.music-badges {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}
.music-badge {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

/* Open-Source Comparison Matrix */
.manifesto-section {
  background: linear-gradient(180deg, var(--bg-darkest) 0%, #0d121c 50%, var(--bg-darkest) 100%);
  border-block: 1px solid var(--border-subtle);
}
.comparison-matrix {
  background: var(--bg-surface);
  border: 1px solid var(--border-prominent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.matrix-header {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1.8fr;
  background: #0f1422;
  border-bottom: 2px solid var(--border-prominent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.matrix-col-feature {
  padding: 1.1rem 1.4rem;
  color: var(--text-muted);
}
.matrix-col-legacy {
  padding: 1.1rem 1.4rem;
  color: #f87171;
  border-left: 1px solid var(--border-subtle);
  background: rgba(239, 68, 68, 0.04);
}
.matrix-col-opengrid {
  padding: 1.1rem 1.4rem;
  color: var(--accent-cyan);
  border-left: 1px solid var(--border-subtle);
  background: rgba(56, 189, 248, 0.08);
}
.matrix-row {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1.8fr;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s ease;
}
.matrix-row:last-child {
  border-bottom: none;
}
.matrix-row:hover {
  background: rgba(255, 255, 255, 0.02);
}
.matrix-cell-feature {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.matrix-cell-feature strong {
  font-size: 0.98rem;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}
.matrix-cell-feature span {
  font-size: 0.8rem;
  color: var(--text-subtle);
}
.matrix-cell-legacy {
  padding: 1.25rem 1.4rem;
  border-left: 1px solid var(--border-subtle);
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(239, 68, 68, 0.02);
}
.cross-icon {
  color: #ef4444;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.matrix-cell-opengrid {
  padding: 1.25rem 1.4rem;
  border-left: 1px solid var(--border-subtle);
  color: #e2e8f0;
  font-size: 0.92rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(56, 189, 248, 0.04);
}
.matrix-cell-opengrid strong {
  color: #fff;
}
.check-icon {
  color: #34d399;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Toolkit / CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #111827 0%, #1e1b4b 100%);
  border: 1px solid var(--border-prominent);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.cta-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.cta-content p {
  color: #cbd5e1;
  max-width: 600px;
  margin-bottom: var(--space-md);
}
.code-terminal {
  background: #090c12;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  max-width: 650px;
  overflow: hidden;
}
.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.85rem;
  background: #0d121c;
  border-bottom: 1px solid var(--border-subtle);
}
.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-subtle);
}
.copy-btn {
  background: transparent;
  border: 1px solid var(--border-prominent);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
}
.copy-btn:hover {
  color: var(--text-main);
  border-color: var(--accent-cyan);
}
.code-terminal pre {
  padding: var(--space-md);
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #38bdf8;
  overflow-x: auto;
}
.cta-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Modal / Lightbox */
.preview-modal {
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
}
.preview-modal::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}
.modal-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-prominent);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.25rem;
  background: #111622;
  border-bottom: 1px solid var(--border-subtle);
}
.modal-heading {
  font-size: 1.1rem;
  font-weight: 700;
}
.modal-close {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover {
  color: #fff;
}
.modal-body {
  padding: var(--space-md);
  background: #06080d;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* Site Footer */
.site-footer {
  background: #05070a;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: var(--space-2xl);
}
.footer-logo {
  max-width: 170px;
  height: auto;
  margin-bottom: var(--space-md);
}
.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  max-width: 360px;
}
.trade-notice {
  font-size: 0.82rem;
  color: var(--text-subtle);
}
.footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-md);
  color: var(--text-main);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--accent-cyan);
}
.footer-disclaimer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: var(--space-lg);
}
.disclaimer-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-subtle);
  margin-bottom: 0.45rem;
  font-weight: 600;
}
.disclaimer-block p {
  font-size: 0.78rem;
  line-height: 1.6;
  color: #64748b;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

@media (max-width: 768px) {
  .footer-disclaimer {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding-block: var(--space-lg);
  }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .artist-grid {
    grid-template-columns: 1fr;
  }
  .avatar-frame {
    max-width: 240px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Mobile Nav Drawer */
  .main-nav {
    position: fixed;
    top: 4.25rem;
    left: 0;
    right: 0;
    background: rgba(10, 13, 20, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-prominent);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    z-index: 99;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav .nav-list {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    gap: 0.4rem;
    width: 100%;
  }
  .nav-link {
    font-size: 1.05rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
  }
  .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
  }
  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-subtle);
    width: 100%;
  }
  .mobile-toggle {
    display: flex;
  }
  .artist-pill-link {
    display: none;
  }
}

@media (max-width: 900px) {
  .philosophy-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .matrix-header {
    display: none;
  }
  .matrix-row {
    grid-template-columns: 1fr;
    padding: 1.25rem 1rem;
    gap: 0.65rem;
  }
  .matrix-cell-feature,
  .matrix-cell-legacy,
  .matrix-cell-opengrid {
    padding: 0.4rem 0;
    border-left: none;
  }
  .matrix-cell-legacy {
    border-top: 1px dashed var(--border-subtle);
    padding-top: 0.75rem;
  }
  .matrix-cell-opengrid {
    background: transparent;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .header-actions .github-btn {
    display: none;
  }
}
