/* ==========================================================================
   OpenBlade ML Research Foundry — Design System
   Warm Editorial / "Coffee Shop" Aesthetic: Espresso, Oat, Crema, Velvet Slate
   ========================================================================== */

:root {
  /* Warm Coffee Roast & Parchment Palette */
  --bg-primary: #0c0a09;          /* Deep Espresso Bean */
  --bg-secondary: #14110e;        /* Dark Roast / French Roast */
  --bg-tertiary: #1c1814;         /* Roasted Mocha */
  --bg-card: rgba(28, 24, 20, 0.75);
  --bg-card-hover: rgba(36, 30, 25, 0.9);
  --bg-glass: rgba(14, 11, 9, 0.88);

  /* Subtle Warm Hairline Borders */
  --border-subtle: rgba(235, 215, 190, 0.08);
  --border-medium: rgba(235, 215, 190, 0.14);
  --border-active: rgba(224, 169, 109, 0.35);
  --border-highlight: rgba(224, 169, 109, 0.5);

  /* Warm Cream & Oat Typography */
  --text-primary: #fbf8f3;        /* Steamed Milk / Warm Ivory */
  --text-secondary: #c9baa8;      /* Warm Oat / Almond */
  --text-tertiary: #8f7e6d;       /* Roasted Coffee Dust */
  --text-muted: #66584a;

  /* Crema, Caramel & Sage Accents */
  --accent-caramel: #e0a96d;      /* Golden Crema / Warm Brass */
  --accent-caramel-glow: rgba(224, 169, 109, 0.16);
  --accent-warm-white: #fffdfa;
  --accent-matcha: #34d399;       /* Soft Sage / Matcha */
  --accent-matcha-glow: rgba(52, 211, 153, 0.14);
  --accent-amber: #f59e0b;
  --accent-slate-muted: #64748b;

  /* Typography Pairing: Plus Jakarta Sans + Newsreader Serif + JetBrains Mono */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Newsreader', 'Lora', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 6px 20px -2px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 16px 40px -6px rgba(0, 0, 0, 0.85);
  --shadow-warm-glow: 0 0 35px -5px rgba(224, 169, 109, 0.12);

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  background: 
    radial-gradient(circle at 50% 0%, rgba(45, 34, 25, 0.4) 0%, transparent 55%),
    radial-gradient(circle at 85% 25%, rgba(35, 26, 18, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 15% 65%, rgba(30, 22, 16, 0.2) 0%, transparent 40%),
    var(--bg-primary);
  background-attachment: fixed;
}

/* Subtle Warm Grid Overlay */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(235, 215, 190, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(235, 215, 190, 0.02) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 15%, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 15%, #000 50%, transparent 100%);
}

/* Selection */
::selection {
  background: rgba(224, 169, 109, 0.3);
  color: #fff;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.font-serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

code, kbd, samp, pre {
  font-family: var(--font-mono);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.container-paper {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Navigation Bar — Spacious, Clean & Minimalist */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.brand-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

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

.nav-release-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-caramel);
  box-shadow: 0 0 8px var(--accent-caramel);
  animation: pulse-crema 2.2s infinite;
}

@keyframes pulse-crema {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  font-family: var(--font-sans);
}

.btn-primary {
  background: #fbf8f3;
  color: #120e0b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(251, 248, 243, 0.15);
}

.btn-secondary {
  background: rgba(235, 215, 190, 0.05);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(235, 215, 190, 0.1);
  border-color: var(--border-active);
  transform: translateY(-1px);
}

.btn-accent {
  background: rgba(224, 169, 109, 0.12);
  border-color: rgba(224, 169, 109, 0.35);
  color: var(--accent-caramel);
}

.btn-accent:hover {
  background: rgba(224, 169, 109, 0.22);
  border-color: var(--accent-caramel);
  box-shadow: var(--shadow-warm-glow);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 3.5rem;
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.32rem 0.85rem;
  background: rgba(235, 215, 190, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-pill .pill-dot {
  width: 5px;
  height: 5px;
  background: var(--accent-caramel);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-caramel);
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #fbf8f3 0%, #e2d4c3 60%, #9e8e7c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 3.25rem;
  flex-wrap: wrap;
}

/* Key Telemetry Bar */
.telemetry-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 1rem;
}

.telemetry-item {
  background: var(--bg-card);
  padding: 1.25rem 1.15rem;
  text-align: left;
  backdrop-filter: blur(12px);
  transition: background var(--transition-fast);
}

.telemetry-item:hover {
  background: var(--bg-card-hover);
}

.telemetry-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 0.3rem;
}

.telemetry-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.telemetry-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* Section Headings */
.section {
  padding: 4.75rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 2.5rem;
}

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

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-caramel);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.section-title {
  font-size: 2.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.6;
}

.section-header.text-center .section-desc {
  margin: 0 auto;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.card-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.58;
  margin-bottom: 1rem;
}

/* The Compute Thesis Box */
.compute-banner {
  background: linear-gradient(135deg, rgba(28, 22, 17, 0.9) 0%, rgba(16, 13, 10, 0.95) 100%);
  border: 1px solid rgba(224, 169, 109, 0.2);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-warm-glow);
}

.compute-banner-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.compute-highlight {
  font-size: 1.02rem;
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: 1.15rem;
}

.compute-highlight strong {
  color: var(--accent-warm-white);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent-caramel);
  text-underline-offset: 4px;
}

.efficiency-metric-card {
  background: rgba(12, 10, 8, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.metric-comparison-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-subtle);
}

.metric-comparison-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.metric-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.metric-val-compare {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
}

.val-bad {
  color: #f87171;
}

.val-good {
  color: #34d399;
}

/* ==========================================================================
   Interactive Learning Curve Comparison Graph
   ========================================================================== */
.curve-chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(16px);
  margin-bottom: 2.5rem;
}

.curve-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.chart-legend-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.legend-line-katana {
  width: 20px;
  height: 3px;
  background: var(--accent-caramel);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--accent-caramel);
}

.legend-line-standard {
  width: 20px;
  height: 2px;
  background: var(--accent-slate-muted);
  border-radius: 2px;
  border-top: 2px dashed var(--accent-slate-muted);
}

.chart-svg-container {
  width: 100%;
  height: 320px;
  position: relative;
}

.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-axis-line {
  stroke: var(--border-subtle);
  stroke-width: 1;
}

.chart-grid-line {
  stroke: rgba(235, 215, 190, 0.04);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.chart-axis-label {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--text-tertiary);
}

.chart-path-katana {
  fill: none;
  stroke: var(--accent-caramel);
  stroke-width: 3;
  filter: drop-shadow(0 0 6px rgba(224, 169, 109, 0.4));
  stroke-linecap: round;
}

.chart-path-standard {
  fill: none;
  stroke: var(--accent-slate-muted);
  stroke-width: 2;
  stroke-dasharray: 5 4;
  opacity: 0.7;
}

.chart-point-katana {
  fill: var(--bg-primary);
  stroke: var(--accent-caramel);
  stroke-width: 2.5;
  r: 4.5;
  transition: r var(--transition-fast), fill var(--transition-fast);
  cursor: pointer;
}

.chart-point-katana:hover {
  r: 7;
  fill: var(--accent-caramel);
}

.chart-milestone-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--accent-caramel);
}

.chart-callout-box {
  background: rgba(14, 11, 9, 0.95);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.callout-stat-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.callout-stat-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

/* Architecture Spec Table */
.spec-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(12, 10, 8, 0.5);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.84rem;
}

.spec-table th {
  background: rgba(235, 215, 190, 0.04);
  padding: 0.7rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.spec-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

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

.spec-table tr:hover td {
  background: rgba(235, 215, 190, 0.025);
  color: var(--text-primary);
}

.spec-table td.mono-bold {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}

/* Parameter Budget Progress Bar */
.budget-bar-wrap {
  margin-top: 1.25rem;
}

.budget-bar-stack {
  height: 12px;
  display: flex;
  border-radius: 9999px;
  overflow: hidden;
  background: rgba(235, 215, 190, 0.06);
  margin-bottom: 0.85rem;
}

.budget-bar-segment {
  height: 100%;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.seg-mlp { background: #e0a96d; width: 60.5%; }
.seg-attn { background: #c4b5a2; width: 30.2%; }
.seg-emb { background: #34d399; width: 9.0%; }
.seg-spec { background: #f59e0b; width: 0.3%; }

.budget-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.76rem;
  font-family: var(--font-mono);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
}

.legend-color {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

/* Feature List */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.feature-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.feature-icon-box {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: var(--radius-sm);
  background: rgba(224, 169, 109, 0.08);
  border: 1px solid rgba(224, 169, 109, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-caramel);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.feature-body h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.feature-body p {
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Code & Log Display */
.code-block {
  background: #080706;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-top: 0.85rem;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(235, 215, 190, 0.03);
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-content {
  padding: 0.85rem;
  overflow-x: auto;
  color: #e5dacd;
  line-height: 1.55;
}

.code-content .token-kw { color: #f87171; }
.code-content .token-fn { color: #e0a96d; }
.code-content .token-str { color: #34d399; }
.code-content .token-num { color: #fbbf24; }
.code-content .token-comm { color: #8a7b6b; font-style: italic; }

/* Interactive Checkpoint Explorer */
.checkpoint-explorer {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  margin-top: 1.75rem;
}

.checkpoint-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.ckpt-tab-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(235, 215, 190, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.ckpt-tab-btn:hover {
  background: rgba(235, 215, 190, 0.07);
  color: var(--text-primary);
}

.ckpt-tab-btn.active {
  background: rgba(224, 169, 109, 0.14);
  border-color: var(--accent-caramel);
  color: #fff;
  font-weight: 600;
}

.checkpoint-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.ckpt-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.ckpt-stat-box {
  background: rgba(12, 10, 8, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem 0.95rem;
}

.ckpt-stat-box .stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.ckpt-stat-box .stat-value {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.15rem;
}

.ckpt-output-box {
  background: #080706;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  min-height: 190px;
  display: flex;
  flex-direction: column;
}

.output-label {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.output-text {
  color: #e5dacd;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1;
}

.output-reading {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--accent-caramel);
  font-family: var(--font-sans);
}

/* Qualitative Probe Filter Tabs */
.probe-filter-bar {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.probe-pill-btn {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.32rem 0.75rem;
  border-radius: 9999px;
  background: rgba(235, 215, 190, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.probe-pill-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.probe-pill-btn.active {
  background: rgba(224, 169, 109, 0.12);
  border-color: var(--accent-caramel);
  color: #fff;
  font-weight: 600;
}

/* Probes Table */
.probe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.probe-card {
  background: rgba(20, 17, 14, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  transition: all var(--transition-fast);
}

.probe-card:hover {
  border-color: var(--border-medium);
  background: rgba(26, 22, 18, 0.8);
}

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

.probe-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(224, 169, 109, 0.08);
  border: 1px solid rgba(224, 169, 109, 0.2);
  color: var(--accent-caramel);
}

.probe-prompt {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.82rem;
}

.probe-continuation {
  background: #080706;
  border: 1px solid rgba(235, 215, 190, 0.04);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #dcd0c2;
  margin-bottom: 0.6rem;
  line-height: 1.45;
}

.probe-analysis {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Headline DOM Artifact Highlight */
.headline-artifact-box {
  background: linear-gradient(180deg, rgba(30, 24, 19, 0.75) 0%, rgba(16, 13, 10, 0.9) 100%);
  border: 1px solid rgba(224, 169, 109, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  margin-top: 1.65rem;
  box-shadow: var(--shadow-md);
}

/* Corpus Distribution Grid */
.corpus-dist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: center;
}

.corpus-source-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.84rem;
}

.corpus-source-row:last-child {
  border-bottom: none;
}

.source-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.source-bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.source-stats {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
}

/* Roadmap Ladder Grid */
.roadmap-ladder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-bottom: 2.5rem;
}

.ladder-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.45rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.ladder-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
}

.ladder-card.active-model {
  border-color: rgba(224, 169, 109, 0.4);
  background: linear-gradient(180deg, rgba(34, 27, 21, 0.85) 0%, rgba(20, 16, 13, 0.95) 100%);
}

.ladder-card.active-model::before {
  content: "ACTIVE · RELEASING SEPT 15";
  position: absolute;
  top: -10px;
  left: 1.15rem;
  background: var(--accent-caramel);
  color: #120e0b;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.ladder-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.ladder-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.ladder-params {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-caramel);
}

.ladder-badge-future {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(235, 215, 190, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.ladder-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex: 1;
}

.ladder-specs-mini {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

/* Timeline Milestones */
.timeline-track {
  position: relative;
  padding-left: 1.65rem;
}

.timeline-track::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-subtle);
}

.timeline-step {
  position: relative;
  margin-bottom: 1.35rem;
}

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

.timeline-marker {
  position: absolute;
  left: -1.65rem;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--text-tertiary);
}

.timeline-step.completed .timeline-marker {
  border-color: var(--accent-matcha);
  background: var(--accent-matcha);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}

.timeline-step.in-progress .timeline-marker {
  border-color: var(--accent-caramel);
  background: var(--bg-primary);
  box-shadow: 0 0 8px rgba(224, 169, 109, 0.4);
}

.timeline-step-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.timeline-step-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.status-done {
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.status-active {
  background: rgba(224, 169, 109, 0.1);
  color: var(--accent-caramel);
  border: 1px solid rgba(224, 169, 109, 0.25);
}

.status-queued {
  background: rgba(235, 215, 190, 0.05);
  color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
}

/* Compute Partnership Box */
.fund-box {
  background: linear-gradient(180deg, rgba(26, 21, 17, 0.85) 0%, rgba(14, 11, 9, 0.95) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.thank-you-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.8rem;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 9999px;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: #34d399;
  margin-bottom: 1.15rem;
}

.compute-alloc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin: 1.75rem 0;
}

.compute-alloc-card {
  background: rgba(10, 8, 6, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all var(--transition-fast);
}

.compute-alloc-card:hover {
  border-color: var(--border-medium);
  background: rgba(14, 11, 9, 0.7);
}

.compute-alloc-card h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.compute-alloc-card p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Ecosystem: Native Mac App */
.ecosystem-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(28, 22, 17, 0.8) 0%, rgba(14, 11, 9, 0.9) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.25rem;
}

.mac-app-mockup {
  background: #090807;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mac-window-header {
  background: rgba(235, 215, 190, 0.04);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mac-window-controls {
  display: flex;
  gap: 6px;
}

.mac-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.mac-dot.close { background: #ff5f56; }
.mac-dot.min { background: #ffbd2e; }
.mac-dot.max { background: #27c93f; }

.mac-app-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.mac-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(224, 169, 109, 0.1);
  color: var(--accent-caramel);
  border: 1px solid rgba(224, 169, 109, 0.25);
}

.mac-app-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
}

.mac-app-stat-row:last-child {
  border-bottom: none;
}

/* ==========================================================================
   Dedicated Research Paper / Report Sub-Page Styling
   ========================================================================== */
.paper-article {
  padding: 3.5rem 0 6rem;
}

.paper-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2.5rem;
  margin-bottom: 3rem;
}

.paper-meta {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.paper-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.paper-section {
  margin-bottom: 3.5rem;
}

.paper-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.paper-section-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-caramel);
}

.paper-p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.paper-callout {
  background: rgba(224, 169, 109, 0.06);
  border-left: 3px solid var(--accent-caramel);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.paper-table-wrap {
  margin: 1.5rem 0;
}

/* Copy Button with Feedback */
.copy-btn {
  background: rgba(235, 215, 190, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.copy-btn:hover {
  background: rgba(235, 215, 190, 0.1);
  color: #fff;
}

.copy-btn.copied {
  background: rgba(52, 211, 153, 0.15);
  border-color: var(--accent-matcha);
  color: #34d399;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 3.5rem 0 2rem;
  margin-top: 4.5rem;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.25rem;
  margin-bottom: 2.75rem;
}

.footer-brand h3 {
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
}

.footer-brand p {
  font-size: 0.8rem;
  line-height: 1.55;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

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

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.5rem; }
  .telemetry-bar { grid-template-columns: repeat(2, 1fr); }
  .col-8, .col-6, .col-4 { grid-column: span 12; }
  .compute-banner-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .corpus-dist-grid { grid-template-columns: 1fr; }
  .roadmap-ladder-grid { grid-template-columns: 1fr; }
  .compute-alloc-grid { grid-template-columns: 1fr; }
  .ecosystem-card { grid-template-columns: 1fr; }
  .chart-callout-box { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-title { font-size: 2.1rem; }
  .hero-subtitle { font-size: 0.98rem; }
  .section { padding: 3.25rem 0; }
  .checkpoint-panel { grid-template-columns: 1fr; }
  .probe-grid { grid-template-columns: 1fr; }
  .telemetry-bar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}


/* ==========================================================================
   Modern Minimalistic Animations, Parallax & Text Manipulation Engine
   ========================================================================== */

:root {
  --reader-scale: 1;
  --reader-font: var(--font-sans);
}

/* Hairline Scroll Progress Bar (Inside Sticky Navbar) */
.scroll-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-caramel), #34d399);
  box-shadow: 0 0 10px rgba(224, 169, 109, 0.45);
  transition: width 0.08s ease-out;
  z-index: 101;
  pointer-events: none;
}

/* Navbar Scrolled Glassmorphic Elevation */
.navbar.scrolled {
  background: rgba(12, 10, 9, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-medium);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.75);
}

/* Modern Minimalist Viewport Scroll Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.96) translateY(16px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-scale.is-revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Automated Stagger Cascades */
.stagger-1 { transition-delay: 0.06s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.18s; }
.stagger-4 { transition-delay: 0.24s; }
.stagger-5 { transition-delay: 0.30s; }
.stagger-6 { transition-delay: 0.36s; }

/* Subtle Interactive Mouse Spotlight on Cards */
.card-spotlight {
  position: relative;
  overflow: hidden;
}

.card-spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(224, 169, 109, 0.09), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

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

/* Kinetic Morphing Hero Text Cycler */
/* Centered, Responsive Hero Kinetic Badge */
.hero-kinetic-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 auto 1.5rem auto;
  padding: 0.42rem 1.15rem;
  background: rgba(28, 24, 20, 0.85);
  border: 1px solid var(--border-active);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.6), 0 0 25px -4px rgba(224, 169, 109, 0.2);
  max-width: 92%;
}

.kinetic-badge-label {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.kinetic-badge-sep {
  color: var(--accent-caramel);
  opacity: 0.6;
}

.kinetic-text-cycler {
  position: relative;
  display: inline-block;
  height: 1.4em;
  width: 310px;
  max-width: 58vw;
  overflow: hidden;
  vertical-align: middle;
}

.kinetic-item {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, 120%);
  opacity: 0;
  white-space: nowrap;
  color: var(--accent-caramel);
  font-weight: 600;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.kinetic-item.active {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.kinetic-item.exit {
  opacity: 0;
  transform: translate(-50%, -150%);
}

@media (max-width: 600px) {
  .hero-kinetic-badge {
    font-size: 0.74rem;
    padding: 0.35rem 0.85rem;
    gap: 0.45rem;
  }
  .kinetic-text-cycler {
    width: 220px;
  }
}

/* Floating Minimalist Reader Toolbar (Research Reports) */
.reader-dock {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  background: rgba(22, 18, 14, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: 9999px;
  padding: 0.35rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 99;
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.75), 0 0 20px -3px rgba(224, 169, 109, 0.15);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.reader-dock-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.55rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  user-select: none;
}

.reader-dock-btn:hover {
  background: rgba(235, 215, 190, 0.09);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.reader-dock-btn.active {
  background: rgba(224, 169, 109, 0.18);
  color: var(--accent-caramel);
  border-color: rgba(224, 169, 109, 0.4);
}

.reader-dock-divider {
  width: 1px;
  height: 16px;
  background: var(--border-medium);
  margin: 0 0.15rem;
}

.reader-dock-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  padding: 0 0.4rem;
  min-width: 42px;
  text-align: center;
}

/* Scalable Research Typography */
.paper-article {
  font-size: calc(1rem * var(--reader-scale, 1));
}

.paper-p {
  font-size: calc(1rem * var(--reader-scale, 1));
}

.paper-article.font-serif-mode .paper-p {
  font-family: var(--font-serif);
  font-size: calc(1.08rem * var(--reader-scale, 1));
  line-height: 1.85;
}

/* Floating Animation Utility for Ambient Glow/Badges */
@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.animate-float {
  animation: float-gentle 4.5s ease-in-out infinite;
}

/* Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-scale,
  .kinetic-text-item,
  .animate-float,
  .scroll-progress-bar {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}



/* ==========================================================================
   Enhanced Component-Level Animation System
   ========================================================================== */

/* Granular Reveal Up */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-up.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger utilities for cards and list items */
.card, .ladder-card, .telemetry-item, .spec-table tr {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.card:hover, .ladder-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.8), 0 0 25px -4px rgba(224, 169, 109, 0.15);
}

/* Tab Switcher for Katana Register Showcase */
.katana-tabs-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  scrollbar-width: none;
}
.katana-tabs-nav::-webkit-scrollbar { display: none; }

.katana-tab-btn {
  background: rgba(28, 24, 20, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.katana-tab-btn:hover {
  background: rgba(235, 215, 190, 0.08);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.katana-tab-btn.active {
  background: rgba(224, 169, 109, 0.16);
  color: var(--accent-caramel);
  border-color: var(--accent-caramel);
}

.katana-tab-pane {
  display: none;
  animation: fadeIn 0.35s ease;
}

.katana-tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Quick CLI Command Box */
.cli-box {
  background: #080706;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-primary);
  margin: 1.25rem 0;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.cli-box code {
  color: #34d399;
  word-break: break-all;
}

/* Interactive SVG Path Animation */
.chart-path-katana {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawLine 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}
