/* STIM.buzz : Production Design System & Stylesheet
 * Standard: Modern Vanilla CSS with Custom Properties
 * Aesthetic: Obsidian Dark / Honey Gold / Precision Bioluminescence
 * Rule: Zero em dashes in generated content
 */

:root {
  --bg-base: #0a0a0b;
  --bg-surface: #121316;
  --bg-surface-elevated: #181a1f;
  --bg-surface-hover: #22262e;
  --bg-glass: rgba(18, 19, 22, 0.75);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-amber: rgba(232, 163, 23, 0.35);
  
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-amber: #f59e0b;
  
  --accent-amber: #e8a317;
  --accent-amber-bright: #fbbf24;
  --accent-amber-dark: #b45309;
  --accent-amber-glow: rgba(232, 163, 23, 0.15);
  
  --accent-emerald: #10b981;
  --accent-emerald-subtle: rgba(16, 185, 129, 0.12);
  --accent-rose: #f43f5e;
  --accent-rose-subtle: rgba(244, 63, 94, 0.12);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-serif: 'Crimson Text', Georgia, serif;
  
  --accent-teal: #64ffda;
  --accent-gold: #d4af37;
  --bg-obsidian: #0b0f0d;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.7);
  --shadow-amber: 0 0 24px rgba(232, 163, 23, 0.18);
  
  --container-max: 1200px;
  --container-narrow: 840px;
  --transition-smooth: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(232, 163, 23, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 100% 40%, rgba(16, 185, 129, 0.03) 0%, transparent 40%),
    linear-gradient(to bottom, #0a0a0b 0%, #0c0d10 100%);
}

/* Background Honeycomb Lattice */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='97' viewBox='0 0 56 97' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 0l28 16.165v32.33L28 64.66 0 48.495V16.165L28 0zm0 97l28-16.165V48.495L28 32.33 0 48.495v32.34L28 97z' fill='%23e8a317' fill-opacity='0.12' fill-rule='evenodd' stroke='%23ffffff' stroke-width='0.4' stroke-opacity='0.05'/%3E%3C/svg%3E");
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

a {
  color: var(--accent-amber);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--accent-amber-bright);
}

code, .code-text {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: var(--container-narrow);
}

section {
  padding: 5.5rem 0;
  position: relative;
}

@media (max-width: 768px) {
  section {
    padding: 3.5rem 0;
  }
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(232, 163, 23, 0.1);
  border: 1px solid var(--border-amber);
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

.section-tag.emerald {
  background: var(--accent-emerald-subtle);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.section-tag.rose {
  background: var(--accent-rose-subtle);
  border-color: rgba(244, 63, 94, 0.3);
  color: var(--accent-rose);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.95rem;
  }
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem 0;
  transition: var(--transition-smooth);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.brand-logo .logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-amber-dark));
  border-radius: var(--radius-sm);
  color: #000;
}

.brand-logo .brand-highlight {
  color: var(--accent-amber);
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  margin-left: 0.25rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link.highlight {
  color: var(--accent-amber);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface-elevated);
    border-bottom: 1px solid var(--border-medium);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
  }
  
  .main-nav.open {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.45rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-amber), #d97706);
  color: #050505;
  box-shadow: 0 2px 10px rgba(232, 163, 23, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-amber-bright), var(--accent-amber));
  color: #000;
  box-shadow: var(--shadow-amber);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

/* Hero Section */
.hero-section {
  padding: 6.5rem 0 4.5rem 0;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(232, 163, 23, 0.08);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
}

.hero-pill .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-amber);
  border-radius: 50%;
}

.hero-pill span {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--accent-amber);
  font-weight: 500;
}

.hero-headline {
  font-size: 3.8rem;
  line-height: 1.1;
  max-width: 980px;
  margin: 0 auto 1.75rem auto;
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.45rem;
  }
}

.hero-subheadline {
  font-size: 1.3rem;
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto 2.5rem auto;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .hero-subheadline {
    font-size: 1.1rem;
  }
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* Metrics Ribbon */
.metrics-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .metrics-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .metrics-ribbon {
    grid-template-columns: 1fr;
  }
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.metric-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-elevated);
  transform: translateY(-2px);
}

.metric-val {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-amber);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.metric-val.rose {
  color: var(--accent-rose);
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.metric-source {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Cards & Surface Components */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-elevated);
}

.card.highlighted {
  border-color: var(--border-amber);
  background: linear-gradient(180deg, rgba(232, 163, 23, 0.04) 0%, var(--bg-surface) 100%);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(232, 163, 23, 0.1);
  border: 1px solid var(--border-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-amber);
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.card-body {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* 5-Link Mechanism Chain Component */
.chain-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 920px;
  margin: 0 auto;
}

.chain-node {
  display: grid;
  grid-template-columns: 80px 1fr;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
}

@media (max-width: 640px) {
  .chain-node {
    grid-template-columns: 1fr;
  }
}

.chain-node:hover {
  border-color: var(--border-amber);
  background: var(--bg-surface-elevated);
}

.chain-index {
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border-right: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-amber);
}

.chain-index .step-number {
  font-size: 1.6rem;
}

.chain-index .step-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.chain-content {
  padding: 1.5rem;
}

.chain-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chain-title {
  font-size: 1.15rem;
  color: var(--text-primary);
}

.chain-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: var(--accent-rose);
}

.chain-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
}

.chain-source {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.chain-arrow {
  text-align: center;
  color: var(--accent-amber);
  font-size: 1.25rem;
  opacity: 0.6;
}

/* Mechanism & Compound Matrix */
.matrix-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.matrix-table th {
  background: rgba(0, 0, 0, 0.4);
  padding: 1.1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-medium);
}

.matrix-table td {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
  vertical-align: top;
}

.matrix-table tr:last-child td {
  border-bottom: none;
}

.matrix-table tr:hover td {
  background: var(--bg-surface-elevated);
}

.compound-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-amber);
  font-size: 1.05rem;
}

.compound-class {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Proof & Trial Comparison Grid */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 860px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }
}

.proof-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.proof-card.established {
  border-top: 4px solid var(--accent-emerald);
}

.proof-card.in-progress {
  border-top: 4px solid var(--accent-amber);
}

.proof-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.proof-status-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.proof-card.established .proof-status-tag {
  background: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.proof-card.in-progress .proof-status-tag {
  background: rgba(232, 163, 23, 0.1);
  color: var(--accent-amber);
  border: 1px solid var(--border-amber);
}

.proof-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.proof-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.proof-item-bullet {
  color: var(--accent-amber);
  margin-top: 0.2rem;
}

.proof-item-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.proof-item-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Competitive Moat Matrix */
.comparison-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  margin-top: 2rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-medium);
  background: rgba(0, 0, 0, 0.35);
}

.comparison-table th.highlight-col {
  background: rgba(232, 163, 23, 0.08);
  color: var(--accent-amber);
  border-left: 1px solid var(--border-amber);
  border-right: 1px solid var(--border-amber);
}

.comparison-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
}

.comparison-table td.highlight-col {
  background: rgba(232, 163, 23, 0.04);
  border-left: 1px solid var(--border-amber);
  border-right: 1px solid var(--border-amber);
  font-weight: 600;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.check-icon {
  color: var(--accent-emerald);
  font-weight: bold;
}

.cross-icon {
  color: var(--text-muted);
}

/* Early Access Form */
.form-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  position: relative;
}

@media (max-width: 640px) {
  .form-box {
    padding: 2rem 1.5rem;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-label span.req {
  color: var(--accent-rose);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.15);
  background: var(--bg-surface-hover);
}

.form-help {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.form-status-msg {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1.25rem;
  font-size: 0.92rem;
}

.form-status-msg.success {
  display: block;
  background: var(--accent-emerald-subtle);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.form-status-msg.error {
  display: block;
  background: var(--accent-rose-subtle);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
}

/* Protocol / How It Works Steps */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-amber);
  margin-bottom: 0.75rem;
  font-weight: bold;
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Callout / Transparency Note */
.callout-box {
  background: var(--bg-surface-elevated);
  border-left: 3px solid var(--accent-amber);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
}

.callout-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-amber);
  margin-bottom: 0.4rem;
}

.callout-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Footer Component */
.site-footer {
  background: #060607;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

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

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-tagline {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-amber);
}

.footer-disclaimer-wrap {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Timeline Component */
.timeline-track {
  position: relative;
  max-width: 880px;
  margin: 2.5rem auto 0 auto;
  padding-left: 2rem;
  border-left: 2px solid var(--border-amber);
}

.timeline-event {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-event:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.6rem;
  top: 0.2rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 3px solid var(--accent-amber);
}

.timeline-dot.rose {
  border-color: var(--accent-rose);
}

.timeline-dot.emerald {
  border-color: var(--accent-emerald);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-amber);
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Interactive Thermoregulation Simulator */
.simulator-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 920px;
  margin: 3rem auto 0 auto;
  box-shadow: var(--shadow-md);
}

.sim-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.sim-btn {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sim-btn:hover {
  border-color: var(--accent-amber);
  color: var(--text-primary);
}

.sim-btn.active {
  background: rgba(232, 163, 23, 0.15);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.sim-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--bg-base);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-subtle);
}

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

.sim-meter-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sim-meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.sim-bar-bg {
  height: 12px;
  background: var(--bg-surface-hover);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.sim-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.6s ease;
}

.sim-status-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.sim-status-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Citation and Science Index Elements */
.citation-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.citation-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: var(--transition-smooth);
}

.citation-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-elevated);
}

.citation-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.citation-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-amber);
  margin-bottom: 0.35rem;
}

.citation-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Field Notes Blog System (/field-notes)
   ========================================================================== */

.field-notes-header {
  text-align: center;
  padding: 4.5rem 0 2rem 0;
}

.filter-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-tab:hover {
  color: var(--text-primary);
}

.filter-tab.active-filter {
  background: var(--accent-amber);
  color: #000;
  font-weight: 700;
}

.field-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0 4.5rem 0;
}

.field-note-card {
  background: #111513;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.field-note-card:hover {
  border-color: var(--accent-amber);
  transform: translateY(-4px);
  box-shadow: var(--shadow-amber), 0 14px 36px rgba(0, 0, 0, 0.6);
}

.field-note-card.featured {
  border-color: rgba(212, 175, 55, 0.4);
  background: linear-gradient(180deg, #141a16 0%, #0e1310 100%);
}

.field-note-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.field-note-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-note-readtime {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.field-note-title {
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.field-note-excerpt {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.field-note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
}

.field-note-date {
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.field-note-action {
  color: var(--accent-amber);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Article Template Styling */
.article-subnav {
  background: rgba(11, 15, 13, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
  position: sticky;
  top: 61px;
  z-index: 90;
}

.article-subnav-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.article-subnav a {
  color: var(--accent-teal);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.article-subnav a:hover {
  color: #a7f3d0;
}

.article-crumb {
  color: var(--text-muted);
}

.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem 1.5rem;
}

.article-hero {
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2.5rem;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.article-meta-bar span.accent {
  color: var(--accent-teal);
  font-weight: 600;
}

.article-body {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  line-height: 1.95;
  color: #e5e7eb;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
}

.article-body p {
  margin-bottom: 2.2rem;
  color: #d1d5db;
  font-size: 1.3rem;
  line-height: 1.95;
}

.drop-cap {
  float: left;
  font-family: var(--font-display);
  font-size: 4.6rem;
  line-height: 0.8;
  margin: 0.15rem 0.85rem 0 0;
  color: var(--accent-amber);
  font-weight: 700;
}

.article-section-header {
  margin-top: 4.5rem;
  margin-bottom: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2.5rem;
}

.article-section-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-teal);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}

.article-section-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: #ffffff;
  line-height: 1.28;
  font-weight: 700;
  margin: 0;
}

.article-pullquote {
  border-left: 4px solid var(--accent-gold);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.01) 100%);
  padding: 2rem 2.5rem;
  margin: 3.5rem 0;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.7;
  color: #fef08a;
  box-shadow: inset 0 0 24px rgba(212, 175, 55, 0.04);
}

.article-pullquote p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.data-box {
  background: #0d120f;
  border: 1px solid rgba(100, 255, 218, 0.28);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  margin: 3.5rem 0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 16px rgba(100, 255, 218, 0.08);
}

.data-box-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.data-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.data-stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.data-stat-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-amber);
  margin-bottom: 0.35rem;
}

.data-stat-lbl {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.author-bio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-top: 4rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 640px) {
  .author-bio-card {
    flex-direction: column;
    text-align: center;
  }
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-surface-elevated) 0%, rgba(232, 163, 23, 0.3) 100%);
  border: 2px solid var(--border-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-amber);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ==========================================================================
   Customer Hive Tracking (/my-hives)
   ========================================================================== */

.hives-dashboard-wrap {
  padding: 3.5rem 0 5rem 0;
}

.hives-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hives-stats-bar {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hives-stat-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.hives-stat-badge strong {
  color: var(--accent-amber);
}

.hive-entry-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 3rem;
}

.hive-timeline-view {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border-amber);
  margin-top: 2rem;
}

.hive-timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.hive-timeline-item:last-child {
  margin-bottom: 0;
}

.hive-timeline-dot {
  position: absolute;
  left: -2.55rem;
  top: 0.25rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 3px solid var(--accent-amber);
}

.hive-log-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: var(--transition-smooth);
}

.hive-log-card:hover {
  border-color: var(--border-medium);
}

.hive-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hive-badge-id {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-amber);
  background: var(--accent-amber-glow);
  border: 1px solid var(--border-amber);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.hive-pattern-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.hive-pattern-tag.solid { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.hive-pattern-tag.scattered { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.hive-pattern-tag.spotty { background: rgba(244, 63, 94, 0.15); color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.3); }
.hive-pattern-tag.absent { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.4); }

.photo-preview-thumbnail {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-medium);
  margin-top: 0.75rem;
}

