/* ==========================================================================
   KYRO by Dipankar Das — PORTFOLIO
   Design System: Noir & Crimson Op-Art (Red, Black, White)
   Inspired by Film Noir, Geometric Brutalism & Op-Art Hypnotic Vortex
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette - Noir & Crimson Obsidian */
  --bg-dark: #050505;
  --bg-surface: #0a0a0a;
  --bg-card: rgba(14, 14, 14, 0.78);
  --bg-card-hover: rgba(22, 22, 22, 0.90);

  /* Red Accent System */
  --accent-red: #ef4444;
  --accent-red-hover: #dc2626;
  --accent-red-glow: rgba(239, 68, 68, 0.22);
  --accent-red-dim: rgba(239, 68, 68, 0.10);
  --accent-red-border: rgba(239, 68, 68, 0.35);

  /* High Contrast Monochrome Base */
  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.22);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-blur: 16px;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Text Colors */
  --text-main: #f5f5f5;
  --text-muted: #a3a3a3;
  --text-dim: #737373;
  --text-bright: #ffffff;

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

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

html {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

::selection {
  background: var(--accent-red);
  color: #000;
}

/* Atmospheric Ambient Canvas */
#aurora-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.ambient-canvas-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   NAVIGATION DOCK
   ========================================================================== */
.dock-container {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.nav-dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 18px;
  background: #000;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9999px;
  transition: border-color var(--transition-smooth);
}

.nav-dock:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-bright);
}

.brand-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--accent-red);
  color: #000;
  font-weight: 800;
  font-size: 11px;
  border-radius: 4px;
  letter-spacing: -0.02em;
}

.brand-monogram { position: relative; overflow: hidden; isolation: isolate; }
.brand-monogram-fallback { position: relative; z-index: 1; }
.brand-profile-image { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: inherit; display: block; }

.brand-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 9999px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-item:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
  color: var(--text-bright);
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-weight: 600;
}

.dock-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  padding-left: 8px;
  border-left: 1px solid var(--border-subtle);
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-red);
  animation: pulseDot 2s ease-in-out infinite;
}

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

/* ==========================================================================
   BUTTONS & COMMON UI ELEMENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--accent-red);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--accent-red-glow);
}

.btn-primary:hover {
  background: #ff3333;
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.45);
  transform: translateY(-2px);
  color: #000;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-bright);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text-bright);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

.btn-icon {
  display: inline-block;
  vertical-align: middle;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px;
  transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(239, 68, 68, 0.08);
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: min(100vh, 100svh);
  padding: 110px max(24px, calc((100vw - 1360px) / 2)) 42px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-dark);
}

.hero-section::before,
.hero-section::after { display: none; }

.hero-bg-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grid-line { background: rgba(255,255,255,.018); }
.line-1 { left: 17%; top: 0; width: 1px; height: 100%; }
.line-2 { left: 50%; top: 0; width: 1px; height: 100%; background: rgba(255,255,255,.026); }
.line-3 { right: 17%; top: 0; width: 1px; height: 100%; }

.grid-crosshair,
.grid-coord,
.hero-giant-bg { display: none; }

/* One full-width standalone SVG wordmark row. */
.hero-wordmark-svg {
  grid-row: 1;
  position: relative;
  z-index: 1;
  width: 100%;
  line-height: 0;
  margin: 0 auto;
}

.hero-wordmark-svg svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-wordmark-svg text {
  font-family: 'Bebas Neue', Impact, sans-serif;
  fill: rgba(201, 58, 58, .22);
  stroke: #c93a3a;
  stroke-width: 1.5;
  paint-order: stroke;
}

/* Desktop hero grid with equal side tracks around a fixed 380px portrait. */
.hero-stage-grid {
  grid-row: 2;
  position: relative;
  z-index: 2;
  width: min(1360px, 100%);
  margin: -3.6vw auto 0;
  min-height: min(560px, calc(100svh - 180px));
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 380px) minmax(300px, 1fr);
  grid-template-areas: 'left photo right';
  grid-template-rows: minmax(0, 1fr);
  column-gap: clamp(24px, 3vw, 56px);
  row-gap: 0;
  align-items: end;
}

.hero-flank {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 8px;
}

.left-flank { grid-area: left; }
.right-flank { grid-area: right; align-self: stretch; padding-right: 0; }

.hero-script {
  font: 600 clamp(32px, 3.4vw, 44px)/1 'Caveat', cursive;
  color: #fff;
  margin: 0 0 14px;
}

.hero-name {
  display: inline-block;
  width: fit-content;
  color: #fff;
  font: 400 clamp(56px, 6.4vw, 92px)/1 'Bebas Neue', sans-serif;
  margin: 0 0 22px;
  padding: .06em .16em;
  background: var(--accent-red);
}

.accent-red-dot { color: #fff; margin-left: .05em; }

.hero-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font: 700 13px/1.3 var(--font-mono);
  letter-spacing: .04em;
  margin: 0 0 28px;
}

.pill-dot { color: var(--accent-red); font-size: 13px; }

.hero-desc {
  max-width: 42ch;
  margin: 26px 0 30px;
  color: #c4c4cb;
  font-size: 16px;
  line-height: 1.65;
}

.hero-desc strong { color: #fff; font-weight: 700; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }

.btn-crimson,
.btn-glass {
  padding: 15px 20px;
  font: 700 13px/1 var(--font-mono);
  letter-spacing: .08em;
  border-radius: 0;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,.16);
}

.hero-stat-box {
  min-height: 62px;
  padding: 12px;
}

.hero-stat-box:nth-child(n+2) {
  border-left: 1px solid rgba(255,255,255,.12);
}

.stat-val {
  color: #fff;
  font: 700 20px/1.1 var(--font-mono);
  letter-spacing: -.02em;
}

.hero-stat-box:nth-child(1) .stat-val { color: var(--accent-red); }
.stat-lbl { color: #a8a8b0; font: 500 13px/1.3 var(--font-mono); letter-spacing: .05em; }

/* Center portrait: exact centered track, deliberate panel frame, bottom fade. */
.hero-center-col {
  grid-area: photo;
  align-self: end;
  min-width: 0;
  display: grid;
  place-items: end center;
}

.hero-cutout-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: visible;
  background: linear-gradient(154deg, #050505 0%, #111111 58%, #050505 100%);
  opacity: 1;
}

.hero-cutout-wrap::before,
.hero-cutout-wrap::after { display: none; }

.hero-portrait-panel {
  position: absolute;
  inset: 18% 6% 0;
  z-index: 1;
  background: var(--accent-red);
  transform: translate(14px, -14px);
}

.hero-portrait-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.35);
  transform: translate(-14px, 14px);
}

.hero-cutout-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: bottom center;
  filter: brightness(1.12) contrast(1.05);
  -webkit-mask-image: linear-gradient(to bottom, black 78%, transparent 99%);
  mask-image: linear-gradient(to bottom, black 78%, transparent 99%);
}

.cutout-status-badge {
  position: absolute;
  left: -8px;
  bottom: 14px;
  z-index: 5;
  padding: 7px 12px;
  background: #000;
  border: 1px solid var(--accent-red);
  color: #fff;
  font: 700 13px/1.2 var(--font-mono);
  letter-spacing: .05em;
}

.status-pulse-red { color: var(--accent-red); animation: pulseDot 2s ease-in-out infinite; }

/* HUD cards use readable body/label sizes. */
.right-flank .hud-stack {
  display: grid;
  gap: 12px;
}

.hud-card {
  padding: 20px 24px;
  background: #0f0f10;
  border: 1px solid rgba(255,255,255,.1);
}

.hud-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #fff;
}

.hud-idx {
  color: #fff;
  font: 700 13px/1 var(--font-mono);
}

.hud-tag {
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.18);
  color: #c4c4cb;
  font: 700 13px/1 var(--font-mono);
  letter-spacing: .06em;
}

.hud-card-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.15;
  margin-bottom: 6px;
}

.hud-card-desc {
  color: #c4c4cb;
  font-size: 15px;
  line-height: 1.55;
}

.hud-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.hud-tech-tags .tech-tag {
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  color: #c4c4cb;
  padding: 5px 12px;
  font: 500 13px/1 var(--font-mono);
  border-radius: 4px;
}

/* Responsive: stack hero tracks under 1000px. */
@media (max-width: 1000px) {
  .hero-stage-grid {
    grid-template-columns: 1fr;
    grid-template-areas: 'photo' 'left' 'right';
    gap: 28px;
    min-height: 0;
    margin-top: 0;
  }

  .hero-section { padding-top: 34px; }

  .hero-wordmark-svg { margin-bottom: 0; }

  .hero-center-col {
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
  }

  .grid-coord { display: none; }
  .brand-label { display: none; }
}

@media (max-width: 480px) {
  .hero-section { padding: 34px 20px 28px; }

  .hero-wordmark-svg { width: 100%; }

  .hero-role-pill {
    width: 100%;
    justify-content: center;
  }

  .hero-actions { flex-direction: column; }

  .btn-crimson,
  .btn-glass { width: 100%; }

  .hero-stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .hero-stat-box { padding: 10px 6px; }
  .stat-val { font-size: 15px; }
  .stat-lbl { font-size: 13px; }

  .cutout-status-badge { max-width: calc(100% - 16px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-build,
  .reveal-item {
    transition: none;
    transform: none;
  }
}

/* ==========================================================================
   COMMON SECTION HEADERS
   ========================================================================== */
.section {
  padding: 100px 24px;
  position: relative;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 48px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-red);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-bright);
  margin-bottom: 10px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 640px;
}

/* ==========================================================================
   FLAGSHIP SHOWCASE
   ========================================================================== */
.flagship-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.highlighted-card {
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.75) 0%, rgba(10, 10, 10, 0.90) 100%);
  position: relative;
}

.card-glow-red {
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--accent-red-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.45;
}

.flagship-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.flagship-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.12);
  color: var(--accent-red);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(239, 68, 68, 0.30);
}

.flagship-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.flagship-title {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.flagship-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 820px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.flagship-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.metric-pill {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.metric-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-red);
}

.metric-desc {
  font-size: 11px;
  color: var(--text-dim);
}

/* 7-Layer Architecture Interactive Explorer */
.layer-explorer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.explorer-header {
  margin-bottom: 16px;
}

.explorer-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.explorer-sub {
  font-size: 12px;
  color: var(--text-dim);
}

.layer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.layer-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.layer-tab:hover {
  background: rgba(255, 255, 255, 0.10);
  color: var(--text-bright);
  border-color: rgba(255, 255, 255, 0.25);
}

.layer-tab.active {
  background: var(--accent-red);
  color: #000;
  font-weight: 700;
  border-color: var(--accent-red);
  box-shadow: 0 2px 10px var(--accent-red-glow);
}

.layer-inspector-pane {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 20px;
  min-height: 140px;
}

.layer-inspect-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.layer-inspect-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.layer-inspect-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.tech-tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
}

/* Secondary Flagship Grid */
.flagship-subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.subgrid-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.subgrid-top {
  margin-bottom: 20px;
}

.subgrid-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.subgrid-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.subgrid-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spec-item::before {
  content: '▪';
  color: var(--accent-red);
}

.subgrid-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   BENTO GRID PROJECTS
   ========================================================================== */
.bento-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  color: var(--text-bright);
  border-color: rgba(255, 255, 255, 0.25);
}

.filter-btn.active {
  background: var(--accent-red);
  color: #000;
  font-weight: 700;
  border-color: var(--accent-red);
  box-shadow: 0 2px 10px var(--accent-red-glow);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.bento-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card.hidden {
  display: none !important;
}

.bento-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.category-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  background: rgba(239, 68, 68, 0.12);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.30);
}

.bento-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.bento-link {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.bento-link:hover {
  color: var(--accent-red);
}

.bento-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.bento-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.bento-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ==========================================================================
   TECHNICAL STACK SECTION
   ========================================================================== */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.stack-group-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-bright);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.tech-pill:hover {
  border-color: var(--accent-red);
  color: #fff;
}

/* ==========================================================================
   ABOUT & PHILOSOPHY
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.about-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-text strong {
  color: var(--text-bright);
}

.quote-box {
  border-left: 3px solid var(--accent-red);
  padding-left: 18px;
  font-style: italic;
  color: var(--text-bright);
  margin-top: 24px;
}

.principles-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.principle-item {
  display: flex;
  gap: 12px;
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-red);
  min-width: 24px;
}

.principle-title {
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 2px;
}

.principle-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-card {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.contact-glow-red {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-red-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.4;
}

.contact-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.contact-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
}

.email-action-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 8px 10px 8px 18px;
  border-radius: 8px;
  margin-bottom: 32px;
}

.email-address {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-bright);
}

.social-links-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.social-pill:hover {
  background: rgba(255, 255, 255, 0.10);
  color: var(--text-bright);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #000;
  color: #fff;
  border: 1px solid var(--accent-red);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.35);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  background: var(--accent-red);
  color: #000;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
/* Section divider — coordinate label | rule | index label.
   Base rule was missing, so the bar collapsed into one run-together string. */
.section-divider-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle) 15%, var(--border-subtle) 85%, transparent);
}

@media (max-width: 1040px) {
  .hero-section {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .hero-stage-grid {
    grid-template-columns: 1fr;
    grid-template-areas: 'photo' 'left' 'right';
    gap: 24px;
    min-height: 0;
    margin-top: 0;
  }

  .hero-wordmark-svg { margin-bottom: 0; }

  .hero-center-col {
    grid-area: photo;
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
  }

  .left-flank { grid-area: left; }
  .right-flank { grid-area: right; }

  .hero-script { font-size: 30px; }
  .hero-name { font-size: clamp(38px, 4.2vw, 52px); }
  .hero-desc { max-width: 56ch; }
  .hero-role-pill { font-size: 13px; }
  .btn-crimson, .btn-glass { padding: 14px 18px; font-size: 13px; }
  .hero-stats-row { margin-top: 26px; }
  .stat-val { font-size: 18px; }
  .stat-lbl { font-size: 13px; }
  .hero-cutout-wrap { width: min(100%, 380px); }
  .hud-card { padding: 18px 20px; }
  .hud-card-title { font-size: 18px; }
  .hud-card-desc { font-size: 15px; }
  .grid-coord { display: none; }
}

@media (max-width: 768px) {
  .dock-container {
    top: 12px;
    padding: 0 10px;
  }

  .nav-dock {
    gap: 10px;
    padding: 6px 12px;
  }

  .nav-links { display: none; }

  .hero-section { padding: 34px 18px 28px; }

  .hero-section::before,
  .hero-section::after,
  .grid-line.line-1,
  .grid-line.line-3,
  .grid-crosshair { display: none; }

  .hero-stage-grid { gap: 22px; }
  .left-flank,
  .right-flank { align-self: auto; }
  .hero-desc { max-width: 620px; }
  .hero-actions { width: 100%; }
  .hero-stats-row { width: 100%; margin-top: 24px; }
  .hero-cutout-wrap { width: min(100%, 390px); }
  .cutout-status-badge { left: 4%; bottom: 7%; }
  .hud-stack { gap: 10px; }
  .hud-card-title { font-size: 18px; }
  .hud-card-desc { font-size: 15px; }

  .section-divider-bar {
    padding-left: 18px;
    padding-right: 18px;
    font-size: 13px;
  }

  .section { padding: 60px 16px; }
  .flagship-subgrid,
  .bento-grid { grid-template-columns: 1fr; }

  .email-action-box {
    flex-direction: column;
    padding: 16px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-section { padding: 34px 15px 22px; }
  .hero-script { font-size: 27px; }
  .hero-name { font-size: 40px; }
  .hero-role-pill { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
  .btn-crimson, .btn-glass { width: 100%; }
  .hero-cutout-wrap { width: min(100%, 330px); }
  .cutout-status-badge {
    max-width: calc(100% - 16px);
    font-size: 13px;
  }
  .grid-coord { display: none; }
  .section-divider-bar { grid-template-columns: 1fr auto; }
  .divider-line { display: none; }
  .brand-label { display: none; }
}

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

/* ==========================================================================
   SWARM BUILD ANIMATION (swarm.js)
   ========================================================================== */
.sw-hidden { visibility: hidden !important; }
.sw-untyped { opacity: 0; }
/* while the swarm is working, neutralise the site's own scroll-reveal so the two never fight */
html.sw-active .reveal-item,
html.sw-active .hero-build { opacity: 1 !important; transform: none !important; transition: none !important; }

.sw-layer { position: fixed; inset: 0; z-index: 9990; pointer-events: none; overflow: hidden; }
.sw-layer > * { position: absolute; left: 0; top: 0; }
html:not(.sw-active) .sw-layer { display: none; }

.sw-ruler { background: rgba(8, 8, 8, 0.94); z-index: 1; }
.sw-ruler-t { width: 100% !important; height: 14px; border-bottom: 1px solid #2c2c2c;
  background-image: repeating-linear-gradient(90deg, #555 0 1px, transparent 1px 10px); }
.sw-ruler-l { height: 100% !important; width: 14px; border-right: 1px solid #2c2c2c;
  background-image: repeating-linear-gradient(0deg, #555 0 1px, transparent 1px 10px); }

.sw-sel { display: none; border: 1px solid; box-sizing: border-box; will-change: transform, width, height; transition: opacity 0.25s; }
.sw-sel.fill { background: rgba(255, 255, 255, 0.07); }
.sw-sel.dash { border-style: dashed; background: transparent; }
.sw-sel.select { border-width: 1.5px; background: transparent; }
.sw-sel.fill::before, .sw-sel.fill::after { content: ''; position: absolute; width: 6px; height: 6px; background: #fff; border: 1px solid #111; }
.sw-sel.fill::before { left: -4px; top: -4px; }
.sw-sel.fill::after { right: -4px; bottom: -4px; }
.sw-caret { display: none; width: 2px; animation: swBlink 0.9s steps(1) infinite; }
@keyframes swBlink { 50% { opacity: 0; } }
.sw-rb { display: none; height: 1px; transform-origin: 0 0; opacity: 0.85; }
.sw-anchor { display: none; width: 6px; height: 6px; border: 1.5px solid; background: #fff; box-sizing: border-box; }
.sw-guide { width: 1px; background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.6); transition: opacity 0.4s; }
.sw-measure { display: none; background: #ef4444; color: #ef4444; font: 700 10px/20px var(--font-mono); white-space: nowrap; z-index: 2; }
.sw-measure.h { padding-top: 0; text-align: center; }
.sw-measure.v { padding-left: 6px; }

.sw-agent { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; will-change: transform, opacity;
  opacity: 0; transform-origin: 2px 2px; transition: opacity .28s ease; }
.glass-cursor { display: block; width: 16px; height: 20px; overflow: visible; transition: transform .22s ease; filter: none !important; }
.sw-agent.drag .glass-cursor, .sw-agent.dup .glass-cursor { filter: none !important; }

.sw-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 10001; display: none; align-items: center; gap: 6px;
  padding: 6px 8px; background: rgba(0, 0, 0, 0.88); border: 1px solid var(--accent-red-border); border-radius: 9999px;
  backdrop-filter: blur(10px); max-width: calc(100vw - 20px); flex-wrap: nowrap; }
.sw-prog { font: 500 11px var(--font-mono); color: var(--text-muted); padding: 0 10px; white-space: nowrap; }
.sw-b { cursor: pointer; font: 600 11px var(--font-mono); letter-spacing: 0.03em; color: var(--text-main); background: rgba(255, 255, 255, 0.07);
  border: 1px solid transparent; border-radius: 9999px; padding: 7px 12px; white-space: nowrap; transition: all var(--transition-fast); }
.sw-b:hover { background: rgba(255, 255, 255, 0.16); }
.sw-b.on { background: rgba(239, 68, 68, 0.2); border-color: var(--accent-red-border); color: #fff; }
.sw-b.sw-primary { background: var(--accent-red); color: #000; }
.sw-b.sw-primary:hover { background: #ff5555; }
.sw-pill { position: fixed; right: 18px; bottom: 18px; z-index: 10001; display: none; background: #000; border: 1px solid var(--accent-red-border); padding: 10px 16px; }
.sw-pill:hover { background: var(--accent-red); color: #000; }
.sw-hint { position: fixed; left: 50%; bottom: 74px; z-index: 10001; transform: translate(-50%, 12px); font: 600 12px var(--font-mono);
  color: #fff; background: rgba(0, 0, 0, 0.85); border: 1px solid var(--accent-red-border); border-radius: 9999px; padding: 8px 16px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; }
.sw-hint.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 720px) { .sw-prog { display: none; } .sw-b { padding: 7px 9px; } }


/* ==========================================================================\n   KYRO OPENING SCREEN — local Milker face + entrance-only interactions\n   ========================================================================== */
@font-face {
  font-family: 'Milker';
  src: url('fonts/Milker.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

#kyro-intro {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 20000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #ff0000;
  color: #000000;
  transform: translate3d(0, 0, 0);
  transition: transform 880ms cubic-bezier(.76, 0, .24, 1);
  will-change: transform;
  pointer-events: auto;
}
.kyro-intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 100vw;
  padding-inline: clamp(12px, 3vw, 40px);
  box-sizing: border-box;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 460ms ease, transform 620ms cubic-bezier(.2, .7, .2, 1);
}
#kyro-intro.is-visible .kyro-intro-inner { opacity: 1; transform: translate3d(0, 0, 0); }
#kyro-intro.is-leaving { transform: translate3d(0, -100%, 0); pointer-events: none; }
.kyro-intro-title {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  margin-inline: auto;
  font-family: 'Milker', 'Bebas Neue', sans-serif;
  font-size: clamp(9rem, 19vw, 17rem);
  font-weight: 400;
  font-style: normal;
  font-stretch: normal;
  font-synthesis: none;
  letter-spacing: -0.06em;
  line-height: .92;
  white-space: nowrap;
  text-align: center;
  color: #000000;
  perspective: 900px;
  transform-style: preserve-3d;
  user-select: none;
}
.kyro-letter {
  position: relative;
  z-index: 1;
  display: inline-block;
  flex: 0 0 auto;
  transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg);
  transform-origin: 50% 55%;
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}
/* Full-entrance morph reveal: the circular mask follows the pointer over the
   entire red opening screen while the alternate word stays aligned to KYRO. */
.kyro-intro-morph-layer {
  --morph-x: 50%;
  --morph-y: 50%;
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  overflow: hidden;
  color: #000000;
  background: #ffffff;
  pointer-events: none;
  clip-path: circle(0px at var(--morph-x) var(--morph-y));
  -webkit-clip-path: circle(0px at var(--morph-x) var(--morph-y));
  transition: clip-path 500ms cubic-bezier(.33, 1, .68, 1),
              -webkit-clip-path 500ms cubic-bezier(.33, 1, .68, 1);
  will-change: clip-path;
}
.kyro-intro-morph-layer.is-morphing {
  clip-path: circle(clamp(72px, 7.5vw, 92px) at var(--morph-x) var(--morph-y));
  -webkit-clip-path: circle(clamp(72px, 7.5vw, 92px) at var(--morph-x) var(--morph-y));
}
.kyro-intro-morph-word {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  left: 0;
  top: 0;
  color: #000000;
  font-family: 'Milker', 'Bebas Neue', sans-serif;
  font-size: clamp(9rem, 19vw, 17rem);
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  font-synthesis: none;
  letter-spacing: -0.06em;
  line-height: .92;
  white-space: nowrap;
  text-align: center;
  user-select: none;
}
.kyro-intro-byline {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: clamp(.78rem, 1.5vw, .96rem);
  font-weight: 400;
  letter-spacing: .12em;
  color: #000000;
}

/* Entrance-only circular pointer. The wrapper tracks the pointer; its ring scales independently. */
.kyro-intro-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20002;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform, opacity;
}
.kyro-intro-cursor.is-active { opacity: 1; }
.kyro-intro-cursor-ring {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(245,245,245,.94);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  mix-blend-mode: exclusion;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
  transition: transform 190ms cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.kyro-intro-cursor.is-hovering .kyro-intro-cursor-ring {
  transform: translate(-50%, -50%) scale(1.42);
}
@media (min-width: 481px) and (max-width: 1024px) {
  .kyro-intro-title, .kyro-intro-morph-word { font-size: clamp(6rem, 15vw, 9rem); }
}
@media (max-width: 480px) {
  .kyro-intro-title {
    font-size: clamp(4rem, 17vw, 6rem);
    letter-spacing: -0.06em;
    padding-inline: 4px;
  }
  .kyro-intro-morph-word {
    font-size: clamp(4rem, 17vw, 6rem);
    letter-spacing: -0.06em;
  }
}
@media (hover: hover) and (pointer: fine) {
  html.kyro-intro-active.is-pointer-ready #kyro-intro,
  html.kyro-intro-active.is-pointer-ready #kyro-intro * { cursor: none !important; }
}
@media (hover: none), (pointer: coarse) {
  .kyro-intro-cursor { display: none !important; }
  .kyro-intro-morph-layer { display: none !important; }
  .kyro-letter { will-change: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .kyro-intro-morph-layer { display: none !important; transition-duration: 1ms; }
  #kyro-intro { transition-duration: 1ms; }
  .kyro-intro-inner { transition-duration: 1ms; }
  .kyro-intro-cursor { display: none !important; }
  .kyro-letter { transform: none !important; will-change: auto; }
}

/* Small numerical identifiers sit below each pointer; cursors remain unlabeled otherwise. */
.sw-agent-number {
  position: absolute;
  top: 20px;
  left: 1px;
  display: block;
  min-width: 16px;
  color: rgba(214, 220, 226, .88);
  font: 600 8px/1 var(--font-mono);
  letter-spacing: .02em;
  text-align: left;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* Global KYRO morphing cursor — website only (the entrance uses its own EXPLORE reveal in intro.js). */
.kyro-global-morph-cursor {
  position: fixed;
  inset: 0;
  z-index: 20005;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 140ms ease, visibility 140ms ease;
}
.kyro-global-morph-cursor.is-visible { opacity: 1; visibility: visible; }
.kyro-global-morph-cursor.is-intro-mode { opacity: 0 !important; visibility: hidden !important; }
.kyro-global-morph-circle {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: none;
  transform: translate3d(-50%, -50%, 0);
  /* size, radius and position are animated in JS so the red shape and the black text mask stay in sync */
  transition: background-color 220ms ease;
  will-change: left, top, width, height, border-radius;
}
/* Text redrawn in black inside the red shape */
.kyro-global-morph-text,
.kyro-global-morph-text * {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  background: transparent !important;
  background-image: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  mix-blend-mode: normal !important;
  pointer-events: none !important;
  user-select: none !important;
}
.kyro-global-morph-text { z-index: 2 !important; }
.kyro-global-morph-text::before,
.kyro-global-morph-text::after,
.kyro-global-morph-text *::before,
.kyro-global-morph-text *::after { content: none !important; display: none !important; }
html.kyro-morph-cursor-enabled,
html.kyro-morph-cursor-enabled body,
html.kyro-morph-cursor-enabled body * { cursor: none !important; }
html.kyro-morph-cursor-enabled body input,
html.kyro-morph-cursor-enabled body textarea,
html.kyro-morph-cursor-enabled body select,
html.kyro-morph-cursor-enabled body [contenteditable="true"] { cursor: text !important; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .kyro-global-morph-cursor { display: none !important; }
  html.kyro-morph-cursor-enabled,
  html.kyro-morph-cursor-enabled body,
  html.kyro-morph-cursor-enabled body * { cursor: auto !important; }
}

/* ==========================================================================
   SITE FIXES — rules that were missing for markup already in index.html
   ========================================================================== */
/* Links no longer fall back to browser blue/purple + underline */
a { color: inherit; text-decoration: none; }
.about-extra a { color: var(--accent-red); text-decoration: underline; text-underline-offset: 3px; }
.about-extra a:hover { color: #ff6b6b; }
a.tech-tag { text-decoration: none; transition: border-color var(--transition-fast), color var(--transition-fast); }
a.tech-tag:hover { border-color: var(--accent-red); color: var(--text-bright); }

/* Dock: right-hand cluster + DISPATCH call-to-action */
.dock-right { display: flex; align-items: center; gap: 12px; }
.dock-cta {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: var(--accent-red);
  color: #000;
  font: 700 11px/1 var(--font-mono);
  letter-spacing: .08em;
  white-space: nowrap;
  border-radius: 9999px;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.dock-cta:hover { background: #ff5a5a; transform: translateY(-1px); }
.status-text { white-space: nowrap; }

/* Hero buttons */
.btn-crimson {
  background: var(--accent-red);
  color: #000;
  border: 1px solid var(--accent-red);
  box-shadow: 0 4px 20px var(--accent-red-glow);
}
.btn-crimson:hover { background: #ff5a5a; border-color: #ff5a5a; transform: translateY(-2px); }
.btn-arrow { flex: none; }
.copy-btn svg { flex: none; }

/* Hero stat boxes: value and label were running together on one line */
.stat-val, .stat-lbl { display: block; }
.stat-lbl { margin-top: 4px; }

/* About column wrappers + spacing between the quote and the details */
.about-container { width: 100%; }
.about-text-col, .about-principles-col { min-width: 0; }
.about-extra { margin-top: 24px; line-height: 1.9; }

/* Featured card wrappers */
.flagship-card { position: relative; overflow: hidden; }
.flagship-body { display: flex; flex-direction: column; gap: 28px; }
.flagship-main-info { min-width: 0; }
.contact-content { position: relative; z-index: 1; }
.divider-coord, .divider-index { white-space: nowrap; }
.toast-text { line-height: 1.3; }

/* Divider bar spans the same width as the sections so its labels line up with the content */
.section-divider-bar { max-width: none; }
