/* ============================================
   KRUEGER PORTFOLIO — Dark/Red Command Center
   Inspired by SPUF design language
   ============================================ */

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

:root {
  /* Backgrounds */
  --bg-deep: #050507;
  --bg-surface: #0a0a0f;
  --bg-card: #0e0e14;
  --bg-header: #08080d;
  --bg-input: #06060a;

  /* Accent */
  --accent: #dc2626;
  --accent-glow: #ff3333;
  --accent-ember: #b91c1c;
  --accent-dim: #450a0a;
  --accent-border: #2a1515;

  /* Text */
  --text-primary: #d4d4d8;
  --text-dim: #52525b;
  --text-ghost: #3f3f50;

  /* Borders */
  --border: #1a1a28;
  --border-hover: #2a2a3a;

  /* Semantic */
  --green: #22c55e;
  --yellow: #eab308;
  --purple: #7c3aed;

  /* Nav */
  --nav-hover: #18181f;
  --nav-active: #1c1015;

  /* Timing */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: white;
}

a { color: inherit; text-decoration: none; }

/* --- Accent Line (top) --- */
.accent-line {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1000;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent-dim) 15%,
    var(--accent-ember) 35%,
    var(--accent-glow) 50%,
    var(--accent-ember) 65%,
    var(--accent-dim) 85%,
    transparent 100%
  );
  animation: accentPulse 2.5s ease-in-out infinite alternate;
}

@keyframes accentPulse {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 2px;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--text-primary);
  transition: opacity 0.3s;
}

.nav-logo:hover { opacity: 0.8; }

.logo-diamond {
  animation: diamondPulse 3s ease-in-out infinite alternate;
}

@keyframes diamondPulse {
  from { opacity: 0.6; filter: drop-shadow(0 0 4px var(--accent-glow)); }
  to   { opacity: 1;   filter: drop-shadow(0 0 12px var(--accent-glow)); }
}

.logo-text {
  animation: logoPulse 3s ease-in-out infinite alternate;
}

@keyframes logoPulse {
  from { opacity: 0.6; }
  to   { opacity: 0.95; }
}

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

.nav-link {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--text-dim);
  transition: all 0.25s var(--ease-out);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.25s var(--ease-out);
  transform: translateX(-50%);
  border-radius: 1px;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 16px;
}

.nav-link.active {
  color: var(--accent);
  background: var(--nav-active);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 1px;
  transition: all 0.3s var(--ease-out);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 720px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 32px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: statusPulse 2s ease-in-out infinite alternate;
}

@keyframes statusPulse {
  from { opacity: 1;   box-shadow: 0 0 8px var(--accent-glow); }
  to   { opacity: 0.3; box-shadow: 0 0 2px var(--accent); }
}

.hero-title {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-name {
  color: var(--accent);
  text-shadow: 0 0 30px rgba(220, 38, 38, 0.4);
}

.hero-sep {
  color: var(--text-ghost);
  margin: 0 12px;
  font-weight: 400;
}

.hero-role {
  color: var(--text-primary);
}

.hero-tagline {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-weight: 500;
}

.hero-desc {
  font-size: 14px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-ghost);
}

.meta-label {
  color: var(--accent);
  margin-right: 6px;
}

.meta-sep { color: var(--text-ghost); }

/* Hero background glow */
.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(220, 38, 38, 0.06) 0%, transparent 70%);
  animation: heroGlow 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGlow {
  from { opacity: 0.3; transform: translate(-50%, -50%) scale(0.9); }
  to   { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 51, 51, 0);
}

.btn-primary:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 28px rgba(255, 51, 51, 0.5);
  transform: scale(1.05);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--nav-active);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 10px;
}

.btn-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

/* --- Separators --- */
.separator {
  padding: 0 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.separator-line {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent-dim) 20%,
    var(--accent-ember) 40%,
    var(--accent-glow) 50%,
    var(--accent-ember) 60%,
    var(--accent-dim) 80%,
    transparent 100%
  );
  animation: sepPulse 2.5s ease-in-out infinite alternate;
}

@keyframes sepPulse {
  from { opacity: 0.25; }
  to   { opacity: 0.75; }
}

/* --- Sections --- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

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

.section-tag {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 11px;
  color: var(--text-ghost);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

/* --- Project Cards --- */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 32px;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: 0 0 0 0 rgba(255, 51, 51, 0);
  transition: box-shadow 0.35s var(--ease-out);
  pointer-events: none;
}

.project-card:hover::before {
  box-shadow: 0 0 24px rgba(255, 51, 51, 0.1), inset 0 0 24px rgba(255, 51, 51, 0.02);
}

.project-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 36px;
  align-items: center;
}

.project-card:nth-child(odd) .card-inner {
  direction: rtl;
}

.project-card:nth-child(odd) .card-inner > * {
  direction: ltr;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card-index {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-ghost);
}

.card-status {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 3px 10px;
  border-radius: 100px;
}

.card-status.live {
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.card-status.built {
  background: rgba(220, 38, 38, 0.12);
  color: var(--accent);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.card-status.archived {
  background: rgba(82, 82, 91, 0.12);
  color: var(--text-dim);
  border: 1px solid rgba(82, 82, 91, 0.2);
}

/* Discarded project card */
.project-card.discarded {
  opacity: 0.55;
  border-style: dashed;
}

.project-card.discarded:hover {
  opacity: 0.7;
}

.project-card.discarded .card-title {
  text-decoration: line-through;
  text-decoration-color: var(--text-ghost);
}

.card-inner--single {
  grid-template-columns: 1fr;
}

.card-title {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 28px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-weight: 500;
}

.card-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.tag {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dim);
  transition: all 0.2s;
}

.project-card:hover .tag {
  border-color: var(--accent-border);
  color: var(--text-primary);
}

.card-actions {
  display: flex;
  gap: 8px;
}

/* Card images */
.card-images {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-stack {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4/3;
}

.card-img {
  position: absolute;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.img-back {
  width: 85%;
  height: 85%;
  top: 0;
  left: 0;
  opacity: 0.6;
}

.img-front {
  width: 85%;
  height: 85%;
  bottom: 0;
  right: 0;
  z-index: 1;
}

.project-card:hover .img-back {
  transform: translate(-4px, -4px);
  opacity: 0.8;
}

.project-card:hover .img-front {
  transform: translate(4px, 4px);
  box-shadow: 0 12px 40px rgba(220, 38, 38, 0.15);
}

/* SPUF mockup */
.spuf-preview {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spuf-mockup {
  width: 100%;
  max-width: 360px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  transition: all 0.4s var(--ease-out);
}

.project-card:hover .spuf-mockup {
  box-shadow: 0 12px 48px rgba(220, 38, 38, 0.12);
  border-color: var(--accent-border);
}

.spuf-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 10px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 2px;
}

.spuf-titlebar .spuf-dots {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.spuf-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-ghost);
}

.spuf-dots span:last-child {
  background: var(--accent);
}

.spuf-body {
  display: flex;
  height: 160px;
}

.spuf-sidebar {
  width: 48px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spuf-nav-item {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  transition: all 0.3s;
}

.spuf-nav-item.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.4);
}

.spuf-content {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}

.spuf-card {
  width: calc(50% - 4px);
  height: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.spuf-card.wide {
  width: 100%;
  height: 40px;
}

.spuf-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: var(--bg-header);
  border-top: 1px solid var(--border);
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 7px;
  letter-spacing: 3px;
  color: var(--text-ghost);
}

.spuf-health {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: statusPulse 2s ease-in-out infinite alternate;
}

.spuf-brand {
  color: var(--accent);
  animation: logoPulse 3s ease-in-out infinite alternate;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

/* --- iPhone Frame (SimDex) --- */
.simdex-preview {
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iphone-frame {
  width: 120px;
  height: 245px;
  background: #1a1a1a;
  border-radius: 20px;
  padding: 5px;
  position: relative;
  box-shadow:
    0 0 0 2px #2a2a2a,
    0 20px 60px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all 0.4s var(--ease-out);
}

.project-card:hover .iphone-frame {
  box-shadow:
    0 0 0 2px rgba(34, 197, 94, 0.2),
    0 24px 64px rgba(34, 197, 94, 0.1),
    inset 0 0 0 1px rgba(34, 197, 94, 0.08);
}

.iphone-notch {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 12px;
  background: #1a1a1a;
  border-radius: 0 0 8px 8px;
  z-index: 2;
}

.iphone-notch::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #0a0a0a;
  box-shadow: 0 0 0 1px #2a2a2a;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--bg-deep);
}

.iphone-content {
  width: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  animation: phoneScroll 20s ease-in-out infinite;
}

@keyframes phoneScroll {
  0%, 8%   { transform: translateY(0); }
  25%, 33% { transform: translateY(-25%); }
  50%, 58% { transform: translateY(-50%); }
  75%, 83% { transform: translateY(-30%); }
  100%     { transform: translateY(0); }
}

.iphone-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 2;
}

/* --- SwiftBill Mockup --- */
.swiftbill-preview {
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiftbill-mockup {
  width: 100%;
  max-width: 320px;
  background: #0a0a10;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  transition: all 0.4s var(--ease-out);
}

.project-card:hover .swiftbill-mockup {
  box-shadow: 0 12px 48px rgba(220, 38, 38, 0.1);
  border-color: var(--accent-border);
}

.swiftbill-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #111118;
  border-bottom: 1px solid var(--border);
}

.swiftbill-dots {
  display: flex;
  gap: 4px;
}

.swiftbill-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.swiftbill-dots span:nth-child(1) { background: #ef4444; }
.swiftbill-dots span:nth-child(2) { background: #eab308; }
.swiftbill-dots span:nth-child(3) { background: #22c55e; }

.swiftbill-url {
  flex: 1;
  text-align: center;
  font-family: 'Consolas', monospace;
  font-size: 7px;
  color: var(--text-ghost);
  background: #18181f;
  border-radius: 3px;
  padding: 2px 8px;
}

.swiftbill-body {
  display: flex;
  height: 140px;
  background: #0a0a10;
}

.swiftbill-sidebar-mock {
  width: 36px;
  background: #08080d;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-right: 1px solid var(--border);
}

.sb-logo {
  font-family: 'Consolas', monospace;
  font-size: 7px;
  font-weight: 900;
  color: var(--accent);
  background: var(--accent-dim);
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.sb-nav-item {
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: #1a1a28;
}

.sb-nav-item.active { background: var(--accent); }

.swiftbill-content-mock {
  flex: 1;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sb-stat-row {
  display: flex;
  gap: 4px;
}

.sb-stat {
  flex: 1;
  background: #0e0e14;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 5px;
  text-align: center;
}

.sb-stat-val {
  font-family: 'Consolas', monospace;
  font-size: 9px;
  font-weight: 900;
  color: var(--text-primary);
  display: block;
}

.sb-stat-lbl {
  font-family: 'Consolas', monospace;
  font-size: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-ghost);
  display: block;
  margin-top: 2px;
}

.sb-table {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  background: #0e0e14;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.sb-inv {
  font-family: 'Consolas', monospace;
  font-size: 7px;
  font-weight: 700;
  color: var(--text-dim);
}

.sb-badge {
  font-family: 'Consolas', monospace;
  font-size: 5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 1px 5px;
  border-radius: 3px;
}

.sb-badge.paid { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.sb-badge.sent { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.sb-badge.draft { background: rgba(113, 113, 122, 0.15); color: #71717a; }

/* --- Systems Grid --- */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.system-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: all 0.3s var(--ease-out);
}

.system-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 0 20px rgba(255, 51, 51, 0.08);
  transform: translateY(-2px);
}

.system-icon {
  margin-bottom: 14px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.system-card:hover .system-icon { opacity: 1; }

.system-title {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.system-value {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* --- Contact --- */
.contact-content {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.contact-statement {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.contact-btn {
  margin-bottom: 32px;
}

.contact-notes p {
  font-size: 12px;
  color: var(--text-ghost);
  margin-bottom: 6px;
}

/* --- Footer --- */
.footer {
  padding: 0 0 40px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
  animation: logoPulse 3s ease-in-out infinite alternate;
}

.footer-copy {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 10px;
  color: var(--text-ghost);
  letter-spacing: 1px;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5, 5, 7, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .card-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .project-card:nth-child(odd) .card-inner {
    direction: ltr;
  }

  .card-img-stack {
    max-width: 300px;
    margin: 0 auto;
  }

  .systems-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-name, .hero-role {
    display: block;
  }

  .hero-sep { display: none; }

  .hero-meta {
    flex-direction: column;
    gap: 8px;
  }

  .meta-sep { display: none; }
}

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

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

  .btn { width: 100%; }
}
