:root {
  --bg: #0a0a0a;
  --bg-2: #0f0f0f;
  --bg-3: #141414;
  --fg: #f5f5f5;
  --fg-dim: #888;
  --fg-dimmer: #555;
  --border: #1f1f1f;
  --border-2: #2a2a2a;
  --green: #00ff88;
  --green-dim: #00cc6e;
  --amber: #ffb547;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); }
body {
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 1000;
  background: var(--green); color: #000; padding: 10px 16px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  text-decoration: none; border-radius: 6px;
}
.skip-link:focus { top: 16px; }

/* === SUBTLE CRT EFFECTS === */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9998;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,0.15) 3px);
  mix-blend-mode: multiply;
}
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(circle 120% at center,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0.005) 15%,
      rgba(0,0,0,0.02) 30%,
      rgba(0,0,0,0.05) 45%,
      rgba(0,0,0,0.09) 60%,
      rgba(0,0,0,0.14) 75%,
      rgba(0,0,0,0.20) 90%,
      rgba(0,0,0,0.28) 100%);
  animation: crt-flicker 6s infinite;
}
@keyframes crt-flicker { 0%, 96%, 100% { opacity: 1; } 97% { opacity: 0.92; } 98% { opacity: 1; } 99% { opacity: 0.96; } }

.mono { font-family: var(--font-mono); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === NAV === */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.85); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; max-width: 1400px; margin: 0 auto; gap: 16px; }
.brand { font-family: var(--font-mono); font-weight: 700; font-size: 18px; color: var(--fg); text-decoration: none; }
.brand:hover { color: var(--green); text-shadow: 0 0 8px rgba(0,255,136,0.5); }
.brand:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 2px; }
.brand::after { content: '_'; color: var(--green); animation: blink 1s infinite; text-shadow: 0 0 8px rgba(0,255,136,0.7); }
@keyframes blink { 50% { opacity: 0; } }
.nav-links { display: flex; gap: 28px; font-family: var(--font-mono); font-size: 13px; color: var(--fg-dim); }
.nav-links a { color: inherit; text-decoration: none; transition: color 0.15s, text-shadow 0.15s; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--green); text-shadow: 0 0 8px rgba(0,255,136,0.5); outline: none; }
.nav-cta { padding: 8px 16px; background: var(--green); color: #000; border-radius: 6px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-decoration: none; box-shadow: 0 0 16px rgba(0,255,136,0.3); }
.nav-cta:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

/* === MOBILE NAV === */
.nav-burger {
  display: none; background: none; border: 1px solid var(--border-2); cursor: pointer;
  padding: 8px 10px; border-radius: 6px; font-family: var(--font-mono); font-size: 12px;
  color: var(--green); transition: all 0.2s;
}
.nav-burger:hover, .nav-burger:focus-visible { border-color: var(--green); text-shadow: 0 0 6px rgba(0,255,136,0.5); outline: none; }
.nav-burger .lines { display: inline-flex; flex-direction: column; gap: 3px; vertical-align: middle; margin-right: 8px; }
.nav-burger .lines span { width: 16px; height: 2px; background: var(--green); box-shadow: 0 0 4px var(--green); display: block; }

.mobile-menu { display: none; }
.mobile-menu[open] { display: block; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,10,10,0.97); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 80px 24px 40px; overflow-y: auto;
  animation: menuBoot 0.4s cubic-bezier(.2,.8,.2,1);
}
@keyframes menuBoot {
  0% { transform: scaleY(0.02); filter: brightness(3); opacity: 0; }
  30% { transform: scaleY(0.05); filter: brightness(3); opacity: 1; }
  100% { transform: scaleY(1); filter: brightness(1); }
}
.mobile-menu::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,0.2) 3px);
}
.mobile-menu-close {
  position: absolute; top: 20px; right: 24px; z-index: 2;
  background: none; border: 1px solid var(--border-2); color: var(--green);
  font-family: var(--font-mono); font-size: 11px; padding: 6px 12px; border-radius: 4px; cursor: pointer;
}
.mobile-menu-close:hover, .mobile-menu-close:focus-visible { border-color: var(--green); text-shadow: 0 0 6px rgba(0,255,136,0.5); outline: none; }
.mobile-menu-prompt { font-family: var(--font-mono); color: var(--fg-dim); font-size: 12px; margin-bottom: 32px; position: relative; }
.mobile-menu-prompt::before { content: '$ '; color: var(--green); text-shadow: 0 0 6px rgba(0,255,136,0.5); }
.mobile-menu-list { list-style: none; margin: 0; padding: 0; position: relative; }
.mobile-menu-list li { border-bottom: 1px solid var(--border); }
.mobile-menu-list a {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 0; font-family: var(--font-mono); font-size: 24px; font-weight: 600;
  color: var(--fg); text-decoration: none; letter-spacing: -0.01em;
}
.mobile-menu-list a:hover, .mobile-menu-list a:focus-visible { color: var(--green); text-shadow: 0 0 8px rgba(0,255,136,0.4); outline: none; }
.mobile-menu-list .num { color: var(--fg-dimmer); font-size: 13px; min-width: 28px; }
.mobile-menu-list a:hover .num, .mobile-menu-list a:focus-visible .num { color: var(--green); text-shadow: 0 0 6px rgba(0,255,136,0.4); }
.mobile-menu-cta {
  display: block; margin-top: 32px; padding: 16px 24px; background: var(--green); color: #000;
  border-radius: 8px; font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  text-decoration: none; text-align: center; box-shadow: 0 0 24px rgba(0,255,136,0.35); position: relative;
}

/* === HERO === */
.hero { padding: 120px 0 100px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -300px; right: -300px; width: 1000px; height: 1000px; background: radial-gradient(circle at 50% 50%, rgba(0,255,136,0.12) 0%, rgba(0,255,136,0.06) 25%, rgba(0,255,136,0.015) 55%, transparent 80%); pointer-events: none; }

.hero-status {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--amber); margin-bottom: 28px;
  display: inline-flex; align-items: baseline; gap: 4px;
  letter-spacing: 0.02em; text-shadow: 0 0 6px rgba(255,181,71,0.4);
}
.hero-status::before {
  content: '$';
  color: var(--green); font-weight: 700;
  text-shadow: 0 0 6px rgba(0,255,136,0.5);
  margin-right: 6px;
}
.hero-status-cursor {
  display: inline-block; width: 7px; height: 13px;
  background: var(--amber); margin-left: 4px;
  animation: blink 1s infinite;
  box-shadow: 0 0 6px rgba(255,181,71,0.6);
  transform: translateY(2px);
}

h1 { font-size: clamp(40px, 6vw, 84px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 32px; max-width: 900px; }
h1 .accent { color: var(--green); text-shadow: 0 0 12px rgba(0,255,136,0.4); }
.hero-sub { font-size: 20px; color: var(--fg-dim); max-width: 680px; margin-bottom: 40px; line-height: 1.5; }
.hero-sub strong { color: var(--fg); font-weight: 600; }
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-primary { padding: 14px 24px; background: var(--green); color: #000; border-radius: 8px; font-weight: 700; text-decoration: none; font-family: var(--font-mono); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 0 24px rgba(0,255,136,0.35); }
.btn-primary:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.btn-ghost { padding: 14px 24px; color: var(--fg); border: 1px solid var(--border-2); border-radius: 8px; text-decoration: none; font-family: var(--font-mono); font-size: 14px; transition: all 0.2s; }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--green); color: var(--green); text-shadow: 0 0 8px rgba(0,255,136,0.4); outline: none; }

/* === STATS === */
.stats-band {
  background: linear-gradient(180deg, transparent, rgba(0,255,136,0.04));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 60px 0; position: relative; overflow: hidden;
}
.stats-band::before { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, transparent, transparent 99px, rgba(0,255,136,0.04) 100px); pointer-events: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.stat-num { font-size: clamp(48px, 5vw, 72px); font-weight: 900; letter-spacing: -0.04em; color: var(--green); font-family: var(--font-mono); line-height: 1; text-shadow: 0 0 20px rgba(0,255,136,0.4), 0 0 4px rgba(0,255,136,0.6); }
.stat-label { color: var(--fg-dim); font-size: 14px; margin-top: 12px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; }

/* === SECTION === */
section { padding: 120px 0; }
.section-label { font-family: var(--font-mono); font-size: 13px; color: var(--green); margin-bottom: 16px; text-shadow: 0 0 6px rgba(0,255,136,0.4); }
.section-label::before { content: '// '; color: var(--fg-dimmer); text-shadow: none; }
h2 { font-size: clamp(32px, 4vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 64px; max-width: 900px; }
h2 .accent { color: var(--green); text-shadow: 0 0 10px rgba(0,255,136,0.35); }

/* === SERVICES === */
#leistungen { border-top: 1px solid var(--border); }
.services { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.service { background: var(--bg); padding: 36px; transition: all 0.3s; position: relative; }
.service:hover { background: var(--bg-3); }
.service:hover .service-num { color: var(--green); text-shadow: 0 0 6px rgba(0,255,136,0.4); }
.service-feature { grid-row: span 2; background: linear-gradient(135deg, var(--bg) 0%, rgba(0,255,136,0.05) 100%); display: flex; flex-direction: column; justify-content: space-between; min-height: 420px; }
.service-feature::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--green); box-shadow: 0 0 12px rgba(0,255,136,0.5); }
.service-feature .badge { display: inline-block; padding: 3px 8px; background: rgba(0,255,136,0.12); border: 1px solid rgba(0,255,136,0.3); color: var(--green); font-family: var(--font-mono); font-size: 10px; border-radius: 3px; letter-spacing: 0.1em; margin-bottom: 16px; text-shadow: 0 0 4px rgba(0,255,136,0.4); }
.service-num { font-family: var(--font-mono); font-size: 12px; color: var(--fg-dimmer); margin-bottom: 20px; transition: all 0.2s; }
.service h3 { font-size: 22px; margin-bottom: 12px; font-weight: 700; }
.service-feature h3 { font-size: 32px; }
.service p { color: var(--fg-dim); font-size: 15px; line-height: 1.6; }
.service-feature p { font-size: 17px; }
.service-feature p strong { color: var(--fg); font-weight: 600; }
.service-arrow { margin-top: 32px; font-family: var(--font-mono); color: var(--green); font-size: 13px; text-shadow: 0 0 6px rgba(0,255,136,0.4); }
.service-arrow span { color: var(--fg-dimmer); text-shadow: none; }

/* === REFERENCES === */
#referenzen { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ref-feature {
  background: var(--bg); border: 1px solid var(--border-2); border-radius: 16px;
  padding: 48px; margin-bottom: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  position: relative; overflow: hidden;
}
.ref-feature::before { content: ''; position: absolute; top: -150px; right: -150px; width: 500px; height: 500px; background: radial-gradient(circle at 50% 50%, rgba(0,255,136,0.10) 0%, rgba(0,255,136,0.04) 30%, transparent 75%); }
.ref-feature > * { position: relative; }
.ref-feature .ref-client { font-family: var(--font-mono); font-size: 12px; color: var(--green); margin-bottom: 12px; letter-spacing: 0.1em; text-shadow: 0 0 6px rgba(0,255,136,0.4); }
.ref-feature h3 { font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px; }
.ref-feature p { color: var(--fg-dim); font-size: 16px; line-height: 1.6; margin-bottom: 24px; }
.ref-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; align-content: start; }
.ref-stat { padding: 20px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 10px; }
.ref-stat-num { color: var(--green); font-family: var(--font-mono); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; text-shadow: 0 0 8px rgba(0,255,136,0.4); }
.ref-stat-label { color: var(--fg-dim); font-size: 12px; font-family: var(--font-mono); margin-top: 4px; }

.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ref { background: var(--bg); border: 1px solid var(--border-2); border-radius: 12px; padding: 28px; transition: all 0.2s; }
.ref:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 0 30px rgba(0,255,136,0.1); }
.ref-client { font-family: var(--font-mono); font-size: 11px; color: var(--green); margin-bottom: 8px; letter-spacing: 0.1em; text-shadow: 0 0 6px rgba(0,255,136,0.4); }
.ref h3 { font-size: 20px; margin-bottom: 12px; font-weight: 700; line-height: 1.2; }
.ref p { color: var(--fg-dim); font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
.ref-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 4px 10px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 4px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); }

/* === STACK === */
.terminal { background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(0,255,136,0.08); position: relative; }
.terminal::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,255,136,0.04) 3px);
}
.terminal-bar { background: var(--bg-2); padding: 12px 20px; border-bottom: 1px solid var(--border-2); display: flex; align-items: center; gap: 8px; position: relative; z-index: 3; }
.term-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--border-2); }
.term-dot.green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.term-title { margin-left: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim); }
.terminal-body { padding: 32px; font-family: var(--font-mono); font-size: 14px; line-height: 1.85; position: relative; z-index: 1; }
.term-line { color: var(--fg); }
.term-comment { color: var(--fg-dimmer); }
.term-key { color: var(--green); text-shadow: 0 0 4px rgba(0,255,136,0.4); }
.term-str { color: var(--amber); text-shadow: 0 0 4px rgba(255,181,71,0.3); }
.term-prompt { color: var(--green); text-shadow: 0 0 6px rgba(0,255,136,0.5); }
.term-prompt::before { content: '$ '; }
.term-cursor { display: inline-block; width: 8px; height: 16px; background: var(--green); vertical-align: middle; animation: blink 1s infinite; box-shadow: 0 0 6px var(--green); }

/* === PHILOSOPHY === */
#philosophie { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
#philosophie::before { content: ''; position: absolute; top: -300px; left: -300px; width: 900px; height: 900px; background: radial-gradient(circle at 50% 50%, rgba(0,255,136,0.08) 0%, rgba(0,255,136,0.04) 25%, rgba(0,255,136,0.01) 55%, transparent 80%); pointer-events: none; }
#philosophie > * { position: relative; }
.philo-tagline { font-family: var(--font-mono); margin-bottom: 32px; display: flex; flex-direction: column; gap: 6px; }
.philo-cmd { font-size: 13px; color: var(--fg-dim); }
.philo-cmd::before { content: '$ '; color: var(--green); text-shadow: 0 0 6px rgba(0,255,136,0.5); font-weight: 700; }
.philo-output { font-size: 15px; color: var(--amber); text-shadow: 0 0 6px rgba(255,181,71,0.4); }
.philo-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-top: 16px; }
.pillar { background: var(--bg); padding: 40px 32px; transition: background 0.2s; min-height: 280px; display: flex; flex-direction: column; }
.pillar:hover { background: var(--bg-3); }
.pillar-num { font-family: var(--font-mono); font-size: 56px; font-weight: 900; color: var(--green); line-height: 1; margin-bottom: 24px; letter-spacing: -0.04em; text-shadow: 0 0 16px rgba(0,255,136,0.3); }
.pillar h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.pillar p { color: var(--fg-dim); font-size: 15px; line-height: 1.6; flex: 1; }
.pillar p strong { color: var(--fg); font-weight: 600; }
.pillar-tag { margin-top: 20px; font-family: var(--font-mono); font-size: 11px; color: var(--green); text-shadow: 0 0 4px rgba(0,255,136,0.3); letter-spacing: 0.1em; }

/* === ABOUT === */
#ueber { border-top: 1px solid var(--border); }
.quote-block { padding: 60px 0 80px; border-bottom: 1px solid var(--border); margin-bottom: 60px; }
.quote { font-size: clamp(28px, 3.5vw, 48px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; max-width: 1100px; }
.quote .accent { color: var(--green); text-shadow: 0 0 10px rgba(0,255,136,0.35); }
.quote-mark { font-size: 80px; color: var(--green); line-height: 0.5; font-family: var(--font-mono); margin-bottom: 24px; text-shadow: 0 0 20px rgba(0,255,136,0.5); }

.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px; }
.about-text p { font-size: 17px; line-height: 1.7; color: var(--fg-dim); margin-bottom: 16px; }
.about-text p strong { color: var(--fg); font-weight: 600; }
.about-meta { font-family: var(--font-mono); font-size: 13px; color: var(--fg-dim); border-left: 2px solid var(--green); padding-left: 24px; box-shadow: -1px 0 12px rgba(0,255,136,0.15); }
.about-meta div { padding: 14px 0; border-bottom: 1px solid var(--border); }
.about-meta div:last-child { border: none; }
.about-meta .key { color: var(--green); display: block; margin-bottom: 4px; text-shadow: 0 0 6px rgba(0,255,136,0.3); }
.about-heading { margin-bottom: 48px; }

/* === CONTACT === */
#kontakt { background: var(--bg-2); border-top: 1px solid var(--border); padding-bottom: 80px; }
.contact-prompt { font-family: var(--font-mono); margin-bottom: 32px; display: flex; flex-direction: column; gap: 6px; }
.contact-cmd { font-size: 13px; color: var(--fg-dim); }
.contact-cmd::before { content: '$ '; color: var(--green); text-shadow: 0 0 6px rgba(0,255,136,0.5); font-weight: 700; }
.contact-output { font-size: 16px; color: var(--green); text-shadow: 0 0 6px rgba(0,255,136,0.4); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.contact-link { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; text-decoration: none; padding: 40px; background: var(--bg); border: 1px solid var(--border-2); border-radius: 16px; transition: all 0.2s; min-height: 200px; position: relative; overflow: hidden; }
.contact-link::after { content: '→'; position: absolute; right: 32px; bottom: 32px; font-size: 24px; color: var(--fg-dimmer); transition: all 0.2s; }
.contact-link:hover, .contact-link:focus-visible { border-color: var(--green); box-shadow: 0 0 30px rgba(0,255,136,0.12); outline: none; }
.contact-link:hover::after, .contact-link:focus-visible::after { color: var(--green); transform: translateX(4px); text-shadow: 0 0 8px rgba(0,255,136,0.5); }
.contact-key { font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim); letter-spacing: 0.1em; text-transform: uppercase; }
.contact-val { font-size: clamp(22px, 2.4vw, 32px); color: var(--fg); font-weight: 700; letter-spacing: -0.02em; }
.contact-meta { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 32px 0; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 13px; color: var(--fg-dim); }
.contact-meta .key { color: var(--green); display: block; margin-bottom: 6px; text-shadow: 0 0 6px rgba(0,255,136,0.3); }

/* === FOOTER === */
footer { padding: 40px 0; color: var(--fg-dim); font-family: var(--font-mono); font-size: 13px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 24px; }
.footer-links button { background: none; border: none; color: var(--fg-dim); font: inherit; cursor: pointer; padding: 0; }
.footer-links button:hover, .footer-links button:focus-visible { color: var(--green); text-shadow: 0 0 6px rgba(0,255,136,0.4); outline: none; }

/* === MODAL === */
dialog.modal {
  background: transparent; border: none; padding: 0; margin: auto;
  max-width: 760px; width: calc(100% - 32px); max-height: 85vh;
  color: var(--fg); overflow: visible;
}
dialog.modal::backdrop {
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: backdropFlicker 4s infinite;
}
@keyframes backdropFlicker { 0%, 95%, 100% { opacity: 1; } 96% { opacity: 0.85; } 97% { opacity: 1; } 98% { opacity: 0.9; } }

.modal-frame {
  background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 80px rgba(0,255,136,0.15);
  position: relative;
  animation: modalBoot 0.6s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalBoot {
  0%   { transform: scaleY(0.02) scaleX(0.4); filter: brightness(3) blur(0); opacity: 0; }
  20%  { transform: scaleY(0.05) scaleX(1); filter: brightness(3) blur(1px); opacity: 1; }
  40%  { transform: scaleY(1) scaleX(1.01); filter: brightness(1.5); }
  60%  { transform: scaleY(1) scaleX(0.99); filter: brightness(0.7); }
  75%  { filter: brightness(1.2); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* Tracking line that occasionally rolls down */
.modal-frame::before {
  content: ''; position: absolute; left: 0; right: 0; height: 60px; z-index: 5;
  background: linear-gradient(180deg, transparent, rgba(0,255,136,0.12) 40%, rgba(0,255,136,0.18) 50%, rgba(0,255,136,0.12) 60%, transparent);
  pointer-events: none; opacity: 0;
  animation: tracking 9s ease-in 2s infinite;
}
@keyframes tracking {
  0%, 100% { top: -60px; opacity: 0; }
  5% { opacity: 1; }
  50% { top: 100%; opacity: 1; }
  55% { opacity: 0; }
}
.modal-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,255,136,0.05) 3px);
}
.modal-bar { background: var(--bg-2); padding: 12px 20px; border-bottom: 1px solid var(--border-2); display: flex; align-items: center; gap: 8px; position: relative; z-index: 6; }
.modal-bar .term-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--border-2); }
.modal-bar .term-dot.green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.modal-title { margin-left: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim); flex: 1; }
.modal-close { background: none; border: 1px solid var(--border-2); color: var(--fg-dim); padding: 4px 10px; border-radius: 4px; font-family: var(--font-mono); font-size: 11px; cursor: pointer; transition: all 0.2s; }
.modal-close:hover, .modal-close:focus-visible { border-color: var(--green); color: var(--green); text-shadow: 0 0 6px rgba(0,255,136,0.5); outline: none; }

.modal-body { padding: 32px; max-height: calc(85vh - 50px); overflow-y: auto; position: relative; z-index: 3; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: var(--fg-dim); }
.modal-body::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
.modal-body h3 { color: var(--green); font-size: 16px; margin: 24px 0 8px; text-shadow: 0 0 6px rgba(0,255,136,0.3); font-family: var(--font-mono); }
.modal-body h3:first-child { margin-top: 0; }
.modal-body h3::before { content: '## '; color: var(--fg-dimmer); text-shadow: none; }
.modal-body p { margin-bottom: 12px; }
.modal-body strong { color: var(--fg); }
.modal-body a { color: var(--green); text-decoration: none; }
.modal-body a:hover, .modal-body a:focus-visible { text-shadow: 0 0 6px rgba(0,255,136,0.5); outline: none; }
.modal-body .kv { display: grid; grid-template-columns: 160px 1fr; gap: 4px 16px; margin: 12px 0; }
.modal-body .kv .k { color: var(--green); text-shadow: 0 0 4px rgba(0,255,136,0.3); }
.modal-body .kv .v { color: var(--fg); }
.modal-body hr { border: none; border-top: 1px dashed var(--border-2); margin: 24px 0; }
.modal-body .term-prompt-static { color: var(--green); margin-top: 24px; }
.modal-body .term-prompt-static::before { content: '$ '; }

@media (max-width: 900px) {
  section { padding: 72px 0; }
  .hero { padding: 72px 0 56px; }
  .stats-band { padding: 48px 0; }
  h2 { margin-bottom: 40px; }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: inline-flex; align-items: center; }

  .stats { grid-template-columns: 1fr; gap: 32px; }
  .services { grid-template-columns: 1fr; }
  .service { padding: 28px; }
  .service-feature { grid-row: auto; min-height: auto; padding: 32px 28px; }
  .service-feature h3 { font-size: 26px; }

  .refs { grid-template-columns: 1fr; }
  .ref-feature { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
  .ref-feature h3 { font-size: 26px; }
  .ref-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ref-stat { padding: 16px; }

  .philo-pillars { grid-template-columns: 1fr; }
  .pillar { padding: 32px 24px; min-height: auto; }
  .pillar-num { font-size: 48px; margin-bottom: 16px; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact-link { padding: 28px; min-height: 140px; }
  .contact-link::after { right: 24px; bottom: 24px; }
  .contact-meta { grid-template-columns: 1fr; gap: 16px; padding-top: 28px; margin-top: 32px; }
  .quote-block { padding: 32px 0 56px; }
  .quote-mark { font-size: 56px; margin-bottom: 16px; }

  .terminal-body { padding: 24px 20px; font-size: 12px; overflow-x: auto; }
  .terminal-body .term-line, .terminal-body .term-comment, .terminal-body .term-prompt { white-space: nowrap; }

  .modal-body { padding: 24px; font-size: 12px; }
  .modal-body .kv { grid-template-columns: 1fr; gap: 0; margin: 8px 0 12px; }
  .modal-body .kv .k { margin-top: 8px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 40px; }
  .stats-band { padding: 32px 0; }
  h1 { font-size: 38px; }
  h2 { font-size: 30px; margin-bottom: 32px; }
  .hero-sub { font-size: 17px; }
  .nav-inner { padding: 12px 20px; }
  .brand { font-size: 16px; }

  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; text-align: center; }

  .stat-num { font-size: 44px; }
  .ref-stats { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }

  .mobile-menu-list a { font-size: 20px; padding: 16px 0; }
}
