/* ==========================================================================
   Architectural & Editorial White-Theme Portfolio Stylesheet
   Linear / Swiss Grid / Developer OS Aesthetic
   ========================================================================== */

:root {
  /* Architectural Light Palette */
  --bg-canvas: #FAFAFA;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F4F4F5;
  --bg-hover: #ECECEE;
  --bg-code: #0F172A;
  
  /* Borders & Gridlines */
  --border-line: #E4E4E7;
  --border-strong: #D4D4D8;
  --border-accent: #18181B;

  /* Typography Colors */
  --text-hero: #09090B;
  --text-body: #3F3F46;
  --text-muted: #71717A;
  --text-faint: #A1A1AA;
  --text-inverted: #FFFFFF;

  /* Accent Accents */
  --accent-primary: #18181B;        /* High-contrast Monochrome */
  --accent-blue: #2563EB;           /* Tech Cobalt */
  --accent-cyan: #06B6D4;           /* Cyan Highlight */
  --accent-emerald: #059669;        /* Live Status Beacon */
  --accent-violet: #7C3AED;        /* Accent Purple */

  /* Shadows & Depth */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-floating: 0 20px 40px -15px rgba(0, 0, 0, 0.08), 0 0 1px 1px rgba(0, 0, 0, 0.05);

  /* Layout */
  --max-width: 1280px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Fonts */
  --font-display: 'Syne', 'Space Grotesk', -apple-system, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Support */
[data-theme="dark"] {
  --bg-canvas: #09090B;
  --bg-surface: #121215;
  --bg-subtle: #18181B;
  --bg-hover: #27272A;
  --border-line: #27272A;
  --border-strong: #3F3F46;
  --border-accent: #FAFAFA;
  --text-hero: #FAFAFA;
  --text-body: #D4D4D8;
  --text-muted: #A1A1AA;
  --text-faint: #71717A;
  --text-inverted: #09090B;
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-floating: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-body);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Selection */
::selection {
  background: var(--text-hero);
  color: var(--bg-surface);
}

/* Custom Cursor Follower */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--accent-blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, opacity 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.cursor-hover .custom-cursor-ring {
  width: 54px;
  height: 54px;
  border-color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.05);
}

/* Architectural Grid Mesh & Blueprint Lines */
.blueprint-grid {
  position: fixed;
  inset: 0;
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] .blueprint-grid {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

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

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

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.blueprint-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.65rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-subtle);
}

/* Reading Progress Bar */
.scroll-progress-line {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--text-hero);
  z-index: 10000;
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   Navigation Dock
   ========================================================================== */
.nav-dock-wrap {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
}

.nav-dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-line);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-floating);
  transition: all var(--transition-smooth);
}

[data-theme="dark"] .nav-dock {
  background: rgba(18, 18, 21, 0.85);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-hero);
  font-size: 1rem;
  padding-left: 0.4rem;
}

.nav-brand-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-blue);
  border-radius: 50%;
}

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

.dock-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.dock-link:hover, .dock-link.active {
  color: var(--text-hero);
  background: var(--bg-hover);
}

.dock-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Sound Visualizer Equalizer Bar */
.equalizer-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-line);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.eq-bar {
  width: 2px;
  height: 12px;
  background: var(--text-muted);
  border-radius: 1px;
  transition: height 0.2s ease;
}

.equalizer-btn.playing .eq-bar:nth-child(1) { animation: eq1 0.6s infinite ease-in-out; }
.equalizer-btn.playing .eq-bar:nth-child(2) { animation: eq2 0.7s infinite ease-in-out 0.1s; }
.equalizer-btn.playing .eq-bar:nth-child(3) { animation: eq3 0.5s infinite ease-in-out 0.2s; }

@keyframes eq1 { 0%, 100% { height: 4px; } 50% { height: 14px; } }
@keyframes eq2 { 0%, 100% { height: 14px; } 50% { height: 6px; } }
@keyframes eq3 { 0%, 100% { height: 8px; } 50% { height: 16px; } }

/* Command Palette Trigger in Dock */
.dock-cmd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dock-cmd-btn:hover {
  background: var(--bg-hover);
  color: var(--text-hero);
  border-color: var(--border-strong);
}

.dock-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-line);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dock-btn-icon:hover {
  background: var(--bg-hover);
  color: var(--text-hero);
}

/* ==========================================================================
   Editorial Split Hero & Component Inspector Deck
   ========================================================================== */
.hero-split-section {
  padding: 140px 0 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-editorial-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-meta-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-title-editorial {
  font-size: 3.8rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-hero);
}

.hero-role-rotator {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.rotator-target {
  color: var(--accent-blue);
  border-bottom: 2px solid var(--accent-blue);
}

.hero-desc-editorial {
  font-size: 1.1rem;
  color: var(--text-body);
  max-width: 520px;
  line-height: 1.7;
}

.hero-action-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

/* Buttons */
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--text-hero);
  color: var(--bg-surface);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--text-hero);
}

.btn-solid:hover {
  background: rgba(9, 9, 11, 0.85);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-surface);
  color: var(--text-hero);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-line);
  box-shadow: var(--shadow-subtle);
}

.btn-ghost:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* Architectural Component Inspector Deck (Hero Right) */
.inspector-deck {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-line);
}

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

.dot-circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #EF4444; }
.dot-amber { background: #F59E0B; }
.dot-green { background: #10B981; }

.inspector-tabs {
  display: flex;
  gap: 0.35rem;
}

.inspector-tab-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.inspector-tab-btn:hover {
  color: var(--text-hero);
}

.inspector-tab-btn.active {
  background: var(--bg-surface);
  border-color: var(--border-line);
  color: var(--text-hero);
  box-shadow: var(--shadow-subtle);
}

.inspector-body {
  padding: 1.75rem;
  min-height: 340px;
  position: relative;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

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

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

/* Pane 1: UI Preview */
.mock-ui-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.mock-ui-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.pulse-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

.pulse-circle {
  width: 6px;
  height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  animation: pulse-ring 1.6s infinite;
}

/* Pane 2: Live Latency Benchmark Monitor */
.benchmark-monitor {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benchmark-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-canvas);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xs);
}

.benchmark-bar-track {
  width: 140px;
  height: 6px;
  background: var(--border-line);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.benchmark-bar-fill {
  height: 100%;
  background: var(--accent-blue);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* Pane 3: Code Snippet Diff */
.code-preview-block {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-hero);
  background: var(--bg-canvas);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-line);
  overflow-x: auto;
}

.token-keyword { color: #7C3AED; font-weight: 700; }
.token-fn { color: #2563EB; font-weight: 600; }
.token-str { color: #059669; }
.token-comment { color: var(--text-faint); font-style: italic; }

/* ==========================================================================
   Embedded Interactive CLI Terminal Section
   ========================================================================== */
.terminal-wrapper {
  background: #09090B;
  color: #FAFAFA;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid #27272A;
  font-family: var(--font-mono);
  max-width: 960px;
  margin: 0 auto;
}

.terminal-header {
  background: #18181B;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #27272A;
  font-size: 0.75rem;
  color: #A1A1AA;
}

.terminal-screen {
  padding: 1.5rem;
  height: 320px;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.6;
}

.term-line {
  margin-bottom: 0.5rem;
}

.term-prompt {
  color: #38BDF8;
  margin-right: 0.5rem;
}

.term-cmd-text {
  color: #FAFAFA;
  font-weight: 600;
}

.term-output {
  color: #D4D4D8;
  margin: 0.35rem 0 0.8rem 1.2rem;
  white-space: pre-wrap;
}

.term-input-row {
  display: flex;
  align-items: center;
}

.term-input {
  background: transparent;
  border: none;
  outline: none;
  color: #FAFAFA;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  flex: 1;
}

/* ==========================================================================
   Section Layout & Hairline Borders
   ========================================================================== */
.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-line);
  position: relative;
}

.section-editorial-header {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
  align-items: flex-start;
}

.section-index-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title-large {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.section-subtext {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Project Vault (Sticky Split Showcase)
   ========================================================================== */
.vault-split-grid {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 3.5rem;
  position: relative;
}

.vault-sticky-aside {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.vault-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

.vault-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.vault-nav-item:hover, .vault-nav-item.active {
  background: var(--text-hero);
  color: var(--bg-surface);
  border-color: var(--text-hero);
  transform: translateX(4px);
}

.vault-nav-item .mono-tag {
  color: inherit;
  opacity: 0.7;
}

/* Vault Cards Stack */
.vault-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.vault-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
}

.vault-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-floating);
}

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

.vault-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
}

.vault-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: var(--bg-canvas);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
}

.v-metric h4 {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-blue);
}

.v-metric span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   Git Commit Career Changelog
   ========================================================================== */
.git-tree-container {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  padding-left: 2.5rem;
}

.git-trunk-line {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 11px;
  width: 2px;
  background: var(--border-line);
}

.git-commit-node {
  position: relative;
  margin-bottom: 2.75rem;
}

.git-commit-dot {
  position: absolute;
  left: -2.5rem;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--text-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

.git-commit-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-fast);
}

.git-commit-box:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

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

.git-hash {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-canvas);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-line);
}

/* ==========================================================================
   Interactive Cost Estimator (Architectural Matrix)
   ========================================================================== */
.architect-estimator-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.estimator-matrix-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
}

.matrix-group-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-hero);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.matrix-option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.matrix-pill {
  padding: 0.5rem 1rem;
  background: var(--bg-canvas);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xs);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.matrix-pill:hover {
  background: var(--bg-hover);
  color: var(--text-hero);
}

.matrix-pill.active {
  background: var(--text-hero);
  color: var(--bg-surface);
  border-color: var(--text-hero);
}

.est-summary-blueprint {
  background: var(--bg-canvas);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.est-big-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-hero);
  line-height: 1.1;
  margin: 0.5rem 0 1.25rem;
}

/* ==========================================================================
   Contact & Booking Blueprint
   ========================================================================== */
.contact-blueprint-grid {
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
  gap: 3.5rem;
}

.contact-card-editorial {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.form-field-arch {
  margin-bottom: 1.25rem;
}

.form-field-arch label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--text-hero);
}

.form-input-arch, .form-textarea-arch, .form-select-arch {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-canvas);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 0.925rem;
  color: var(--text-hero);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input-arch:focus, .form-textarea-arch:focus, .form-select-arch:focus {
  border-color: var(--text-hero);
  background: var(--bg-surface);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.editorial-footer {
  padding: 60px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-line);
}

.footer-inner-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Modals & Command Palette */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-box-arch {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-floating);
  overflow: hidden;
  position: relative;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--text-hero);
  color: var(--bg-surface);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-card);
  transform: translateY(15px);
  opacity: 0;
  transition: all var(--transition-fast);
  pointer-events: auto;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-editorial-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .section-editorial-header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .vault-split-grid {
    grid-template-columns: 1fr;
  }
  .vault-sticky-aside {
    position: static;
  }
  .estimator-matrix-grid {
    grid-template-columns: 1fr;
  }
  .contact-blueprint-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title-editorial {
    font-size: 2.75rem;
  }
  .dock-links {
    display: none;
  }
}
