@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Fira+Code:wght@400;500;600&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg:       #0b0a07;
  --bg2:      #0f0e0a;
  --bg3:      #141208;
  --border:   #2e2a18;
  --border2:  #3d3820;
  --yellow:   #f5c200;
  --yellow2:  #c49600;
  --red:      #c0392b;
  --red2:     #e74c3c;
  --green:    #4a7c59;
  --text:     #d4c89a;
  --text-muted: #7a7060;
  --mono: 'Fira Code', monospace;
  --sans: 'Inter', sans-serif;
  --stencil: 'Bebas Neue', 'Arial Black', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(245,194,0,0.03) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(192,57,43,0.03) 0%, transparent 50%);
}

/* Scanlines overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── WARNING STRIPES ──────────────────────────────── */
.warning-stripe {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow),
    var(--yellow) 10px,
    #1a1600 10px,
    #1a1600 20px
  );
  opacity: 0.7;
}

/* ── TERMINAL BOOT SCREEN ─────────────────────────── */
#terminal-overlay {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  transition: opacity 0.6s ease;
}

#terminal-box {
  width: min(720px, 94vw);
  background: #080806;
  border: 1px solid var(--yellow2);
  border-radius: 2px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px #1a1600,
    0 0 40px rgba(245,194,0,0.12),
    0 0 80px rgba(245,194,0,0.05);
}

.terminal-bar {
  background: var(--yellow);
  padding: 8px 14px;
  display: flex; align-items: center; gap: 10px;
}

.boot-label {
  font-family: var(--stencil);
  font-size: 14px;
  letter-spacing: 3px;
  color: #080806;
}

#terminal-output {
  font-family: var(--mono);
  font-size: 13px;
  padding: 20px 20px 0;
  min-height: 220px;
  line-height: 1.9;
  white-space: pre-wrap;
  color: var(--text);
}

.terminal-cursor-line {
  font-family: var(--mono);
  font-size: 13px;
  padding: 4px 20px 20px;
  color: var(--yellow);
}

.prompt { color: var(--yellow); }
.cursor { animation: blink 1s step-end infinite; color: var(--yellow); }

.terminal-skip {
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-muted);
  opacity: 0.5;
  padding: 0 20px 14px;
  animation: blink 2s ease-in-out infinite;
  cursor: pointer;
}
@keyframes blink { 50% { opacity: 0; } }

.t-cmd   { color: var(--yellow); }
.t-info  { color: var(--text); }
.t-muted { color: var(--text-muted); }
.t-hi    { color: #7ecfb0; }
.t-warn  { color: var(--red2); }

/* ── EASTER EGG ───────────────────────────────────── */
#easter-egg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
  z-index: 998;
  animation: fadeIn 0.3s ease;
  flex-direction: column;
}

#easter-egg.hidden { display: none; }

.ee-stripes {
  width: 600px;
  max-width: 92vw;
  height: 12px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow), var(--yellow) 10px,
    #1a1600 10px, #1a1600 20px
  );
}

#easter-content {
  width: 600px;
  max-width: 92vw;
  border-left: 1px solid var(--yellow2);
  border-right: 1px solid var(--yellow2);
}

.ee-inner {
  text-align: center;
  padding: 40px 48px;
  background: #0c0a04;
}

.ee-icon { font-size: 56px; margin-bottom: 12px; animation: bounce 0.6s infinite alternate; }
@keyframes bounce { to { transform: translateY(-10px); } }

#easter-content h2 {
  font-family: var(--stencil);
  color: var(--yellow);
  font-size: 32px;
  letter-spacing: 6px;
  margin-bottom: 10px;
}

.ee-title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--red2);
  margin-bottom: 20px;
}

.ee-body { color: var(--text); line-height: 1.7; margin-bottom: 8px; }
.ee-sub  { color: var(--text-muted); font-size: 13px; font-style: italic; margin-bottom: 28px; }

#close-easter {
  font-family: var(--stencil);
  background: transparent;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  padding: 10px 32px;
  cursor: pointer;
  font-size: 18px;
  letter-spacing: 4px;
  transition: all 0.2s;
}
#close-easter:hover { background: rgba(245,194,0,0.1); }

/* ── NAV ──────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 48px;
  background: rgba(11,10,7,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border2);
  z-index: 100;
  border-bottom: 2px solid var(--yellow2);
}

.nav-logo {
  font-family: var(--stencil);
  font-size: 20px;
  color: var(--yellow);
  letter-spacing: 3px;
  display: flex; align-items: center; gap: 8px;
}

.nav-emblem { font-size: 18px; }

nav ul { list-style: none; display: flex; gap: 28px; }

nav ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--stencil);
  font-size: 15px;
  letter-spacing: 2px;
  transition: color 0.2s;
}

nav ul a:hover { color: var(--yellow); }

.nav-sub {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text-muted);
  opacity: 0.6;
  font-family: var(--mono);
}

.nav-status {
  font-family: var(--mono);
  font-size: 11px;
  color: #4a7c59;
  display: flex; align-items: center; gap: 6px;
  letter-spacing: 2px;
}

.status-dot {
  width: 8px; height: 8px;
  background: #4a7c59;
  border-radius: 50%;
  box-shadow: 0 0 6px #4a7c59;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── HERO ─────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg-text {
  position: absolute;
  font-family: var(--stencil);
  font-size: clamp(120px, 18vw, 260px);
  letter-spacing: 20px;
  color: rgba(245,194,0,0.025);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.top-stripe { margin-bottom: 0; }
.bottom-stripe { margin-top: 0; }

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 48px;
  width: 100%;
}

.hero-left { flex: 1; }

.hero-clearance {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--red2);
  margin-bottom: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-left h1 {
  font-family: var(--stencil);
  font-size: clamp(52px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: 4px;
  color: var(--text);
  margin-bottom: 4px;
}

.hero-surname { color: var(--yellow); }

.hero-divider {
  width: 80px; height: 3px;
  background: var(--yellow);
  margin: 20px 0;
}

.hero-title {
  font-family: var(--stencil);
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
}

.hero-sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero-tags {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-tags span {
  font-family: var(--stencil);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--yellow);
  border: 1px solid var(--border2);
  padding: 4px 12px;
  background: rgba(245,194,0,0.05);
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── DOSSIER CARD ─────────────────────────────────── */
.hero-right { flex-shrink: 0; }

.dossier-card {
  background: #0c0a04;
  border: 1px solid var(--yellow2);
  width: 340px;
  box-shadow: 0 0 30px rgba(245,194,0,0.08), inset 0 0 30px rgba(0,0,0,0.3);
}

.dossier-photo-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
  border-bottom: 1px solid var(--yellow2);
}

.dossier-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  filter: grayscale(20%) contrast(1.05);
  display: block;
}

.dossier-photo-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.6);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--yellow);
  text-align: center;
  padding: 4px;
  border-top: 1px solid var(--border2);
}

.dossier-header {
  background: var(--yellow);
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--stencil);
  font-size: 14px;
  letter-spacing: 2px;
  color: #080806;
}

.dossier-id { font-size: 12px; opacity: 0.7; }

.dossier-body { padding: 16px; }

.dossier-row {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-family: var(--mono);
}

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

.dr-label {
  color: var(--text-muted);
  flex-shrink: 0;
  width: 110px;
  font-size: 10px;
  letter-spacing: 1px;
  padding-top: 2px;
}

.dr-val { color: var(--text); }

.status-open {
  color: #4a7c59;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ── BUTTONS ──────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--yellow);
  color: #080806;
  padding: 11px 26px;
  text-decoration: none;
  font-family: var(--stencil);
  font-size: 16px;
  letter-spacing: 3px;
  transition: background 0.2s, transform 0.1s;
  border: none; cursor: pointer;
}

.btn-primary:hover { background: #d4a800; transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  color: var(--yellow);
  text-decoration: none;
  font-family: var(--stencil);
  font-size: 16px;
  letter-spacing: 3px;
  padding: 10px 26px;
  border: 1px solid var(--yellow2);
  transition: all 0.2s;
  background: transparent;
  cursor: pointer;
}

.btn-outline:hover { background: rgba(245,194,0,0.08); }

.btn-primary.big { font-size: 20px; padding: 16px 48px; }

/* ── SECTIONS ─────────────────────────────────────── */
section { padding: 100px 0; }
#about, #education, #contact { background: var(--bg2); }

.section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px;
}

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

.section-num {
  font-family: var(--stencil);
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--yellow);
  background: rgba(245,194,0,0.08);
  border: 1px solid var(--border2);
  padding: 4px 10px;
  flex-shrink: 0;
}

.section-header h2 {
  font-family: var(--stencil);
  font-size: 36px;
  letter-spacing: 6px;
  color: var(--text);
  flex-shrink: 0;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border2), transparent);
}

.section-header.centered { justify-content: center; }
.section-header.centered .section-line { display: none; }

/* ── ABOUT ────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

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

.inline-tag {
  font-family: var(--mono);
  font-size: 11px;
  background: rgba(245,194,0,0.08);
  border: 1px solid var(--border2);
  color: var(--yellow);
  padding: 2px 8px;
  border-radius: 0;
  letter-spacing: 1px;
}

.fun-fact-card {
  background: #080806;
  border: 1px solid var(--border2);
  padding: 20px;
  position: sticky;
  top: 90px;
}

.fact-header {
  font-family: var(--stencil);
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--yellow);
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

#fun-fact-text {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
  min-height: 72px;
  transition: opacity 0.3s ease;
}

#next-fact {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text-muted);
  font-family: var(--stencil);
  font-size: 13px;
  letter-spacing: 2px;
  padding: 7px 12px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}

#next-fact:hover { border-color: var(--yellow); color: var(--yellow); }

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

.stack-group {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 22px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.stack-group:hover {
  border-color: var(--yellow2);
  box-shadow: 0 0 20px rgba(245,194,0,0.06);
}

.stack-group h3 {
  font-family: var(--stencil);
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--yellow);
  margin-bottom: 14px;
}

.learning-group h3 { color: #7ecfb0; }

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

.tags span {
  background: rgba(245,194,0,0.05);
  border: 1px solid var(--border2);
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--mono);
  padding: 3px 9px;
}

.tags.game span {
  border-color: rgba(123,143,247,0.2);
  background: rgba(123,143,247,0.05);
  color: #9aa5d4;
}

.tags.learning span {
  border-color: rgba(126,207,176,0.2);
  background: rgba(126,207,176,0.05);
  color: #7ecfb0;
}

/* ── TIMELINE ─────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 24px; }

.timeline-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 24px 28px;
  position: relative;
  transition: border-color 0.2s;
}

.timeline-item:hover { border-color: var(--border2); }

.active-op {
  border-color: var(--yellow2);
  box-shadow: 0 0 24px rgba(245,194,0,0.07), inset 0 0 24px rgba(245,194,0,0.02);
}

.game-item { border-color: rgba(123,143,247,0.2); }
.break-item { opacity: 0.65; border-style: dashed; }

.tl-badge {
  position: absolute;
  top: -1px; right: 20px;
  background: var(--yellow);
  color: #080806;
  font-family: var(--stencil);
  font-size: 12px;
  letter-spacing: 3px;
  padding: 3px 10px;
}

.game-badge {
  background: #3d3d8c;
  color: #c8c8ff;
}

.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.tl-header h3 {
  font-family: var(--stencil);
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--text);
}

.tl-company {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--yellow);
  margin-top: 4px;
}

.tl-meta {
  text-align: right;
  flex-shrink: 0;
}

.tl-date {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.tl-loc {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.tl-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.tl-bullets li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.tl-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-size: 12px;
}

.tl-bullets strong { color: var(--text); }

.tl-link {
  color: var(--yellow);
  text-decoration: none;
  border-bottom: 1px solid var(--border2);
  transition: border-color 0.2s;
}
.tl-link:hover { border-color: var(--yellow); }

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

.tl-tags span {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 8px;
  border: 1px solid var(--border2);
  color: var(--text-muted);
  background: rgba(245,194,0,0.03);
  letter-spacing: 0.5px;
}

.tl-tags.game span {
  border-color: rgba(123,143,247,0.2);
  color: #9aa5d4;
}

/* ── EDUCATION ────────────────────────────────────── */
.edu-card {
  background: var(--bg3);
  border: 1px solid var(--border2);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.edu-icon { font-size: 40px; }

.edu-card h3 {
  font-family: var(--stencil);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 6px;
}

.edu-school {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--yellow);
}

/* ── CERTS ────────────────────────────────────────── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.cert-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

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

.cert-card.gold {
  border-color: var(--yellow2);
  box-shadow: 0 0 20px rgba(245,194,0,0.1);
}

.cert-ribbon {
  background: rgba(245,194,0,0.06);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  font-size: 28px;
  text-align: center;
}

.cert-card.gold .cert-ribbon {
  background: rgba(245,194,0,0.12);
  border-bottom-color: var(--yellow2);
}

.cert-body { padding: 16px 20px 20px; }

.cert-issuer {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--yellow);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.cert-body h3 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 6px;
}

.cert-score {
  font-family: var(--stencil);
  font-size: 22px;
  letter-spacing: 2px;
  color: #7ecfb0;
  margin-bottom: 4px;
}

.cert-date {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.cert-link {
  font-family: var(--stencil);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--yellow);
  text-decoration: none;
  border-bottom: 1px solid var(--border2);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.cert-link:hover { border-color: var(--yellow); }

/* ── FIELD OPS ────────────────────────────────────── */
.fieldops-sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: 1px;
}

.inline-link {
  color: var(--yellow);
  text-decoration: none;
  border-bottom: 1px solid var(--border2);
}

.inline-link:hover { border-color: var(--yellow); }


.contrib-wrap {
  border: 1px solid var(--border2);
  background: var(--bg3);
  margin-bottom: 28px;
  overflow: hidden;
}

.contrib-header {
  background: rgba(245,194,0,0.06);
  border-bottom: 1px solid var(--border2);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  font-family: var(--stencil);
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--yellow);
}

.contrib-year { color: var(--text-muted); font-size: 12px; }

.contrib-chart {
  padding: 16px;
  overflow-x: auto;
}

.contrib-chart img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(1.2) brightness(0.9);
  border-radius: 2px;
}

.contrib-err {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  padding: 16px;
}

/* Activity feed */
.activity-wrap {
  border: 1px solid var(--border2);
  background: var(--bg3);
  margin-bottom: 28px;
  overflow: hidden;
}

.activity-feed {
  display: flex;
  flex-direction: column;
}

.activity-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  flex-wrap: wrap;
  transition: background 0.15s;
}

.activity-row:last-child { border-bottom: none; }
.activity-row:hover { background: rgba(245,194,0,0.03); }

.act-icon {
  color: var(--yellow);
  font-size: 13px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.act-label { color: var(--text-muted); flex-shrink: 0; }

.act-repo {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 600;
  flex-shrink: 0;
}

.act-repo:hover { text-decoration: underline; }

.act-detail {
  color: var(--text-muted);
  font-size: 11px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.act-branch {
  color: #7ecfb0;
}

.act-when {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 10px;
  flex-shrink: 0;
  opacity: 0.7;
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.repo-loading, .repo-error {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
  grid-column: 1/-1;
  padding: 20px 0;
  animation: blink 1s step-end infinite;
}

.repo-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 18px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, transform 0.15s;
}

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

.repo-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.repo-icon { font-size: 16px; }

.repo-name {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--yellow);
  font-weight: 600;
  word-break: break-all;
}

.repo-fork-badge {
  font-family: var(--stencil);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  border: 1px solid var(--border2);
  padding: 1px 6px;
}

.repo-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.repo-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.repo-lang { display: flex; align-items: center; gap: 5px; }

.lang-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.repo-date { margin-left: auto; }

.view-all-btn { display: inline-block; }

/* ── CONTACT ──────────────────────────────────────── */
.contact-inner { padding: 0 40px; max-width: 900px; margin: 0 auto; }

.contact-content {
  text-align: center;
  padding: 60px 40px;
}

.contact-stripe { opacity: 0.5; }

.contact-sub {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.8;
  font-size: 15px;
}

.contact-sub strong { color: var(--text); }

.contact-channels {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  padding: 16px 22px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  min-width: 210px;
}

.channel-card:hover {
  border-color: var(--yellow2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,194,0,0.08);
}

.channel-card.preferred {
  border-color: var(--yellow2);
  box-shadow: 0 0 16px rgba(245,194,0,0.1);
}

.channel-icon { font-size: 26px; flex-shrink: 0; }

.channel-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--yellow);
  margin-bottom: 2px;
}

.channel-card.preferred .channel-label { color: var(--yellow); }

.channel-name {
  font-family: var(--stencil);
  font-size: 17px;
  letter-spacing: 2px;
  color: var(--text);
}

.channel-handle {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── FOOTER ───────────────────────────────────────── */
footer {
  border-top: 2px solid var(--yellow2);
  padding: 24px 48px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  max-width: 960px;
  margin: 0 auto;
}

.footer-hint { opacity: 0.4; font-size: 10px; }

/* ── STRATAGEM GAME ───────────────────────────────── */
#strat-trigger {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 500;
  background: var(--bg3);
  border: 1px solid var(--yellow2);
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  box-shadow: 0 0 20px rgba(245,194,0,0.1);
}
#strat-trigger:hover {
  background: rgba(245,194,0,0.08);
  box-shadow: 0 0 30px rgba(245,194,0,0.2);
  transform: translateY(-2px);
}
.strat-trigger-icon { font-size: 22px; }
.strat-trigger-label {
  font-family: var(--stencil);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--yellow);
  text-align: center;
  line-height: 1.3;
}

#strat-panel {
  position: fixed;
  bottom: 110px;
  right: 32px;
  z-index: 500;
  width: 340px;
  animation: fadeIn 0.2s ease;
}
.strat-panel-inner {
  background: #0a0806;
  border: 1px solid var(--yellow2);
  box-shadow: 0 0 40px rgba(245,194,0,0.12);
}
.strat-header {
  background: var(--yellow);
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--stencil);
  font-size: 13px;
  letter-spacing: 2px;
  color: #080806;
}
#strat-close {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  color: #080806;
  font-weight: bold;
  padding: 0 4px;
}
#strat-game-area {
  padding: 20px;
  text-align: center;
}
#strat-score-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 2px;
}
#strat-score-row strong { color: var(--yellow); }

#strat-timer-bar-wrap {
  width: 100%;
  height: 4px;
  background: var(--border);
  margin-bottom: 14px;
  border-radius: 2px;
  overflow: hidden;
}
#strat-timer-bar {
  height: 100%;
  width: 100%;
  background: var(--yellow);
  transition: background 0.3s;
}

#strat-img-wrap {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
#strat-img {
  height: 52px;
  width: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 4px rgba(245,194,0,0.4));
}
.strat-emoji {
  font-size: 40px;
  animation: bounce 0.8s infinite alternate;
}
#strat-name {
  font-family: var(--stencil);
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--text);
  margin-bottom: 16px;
  min-height: 28px;
}
#strat-sequence {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.strat-key {
  font-family: var(--stencil);
  font-size: 20px;
  color: var(--text-muted);
  width: 32px; height: 32px;
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.strat-key.active  { color: var(--yellow); border-color: var(--yellow); }
.strat-key.correct { color: var(--green);  border-color: var(--green); background: rgba(74,124,89,0.15); }
.strat-key.wrong   { color: var(--red2);   border-color: var(--red2);  background: rgba(192,57,43,0.15); animation: shake 0.3s ease; }

#strat-input-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.strat-slot {
  font-family: var(--stencil);
  font-size: 18px;
  color: var(--text-muted);
  width: 28px; height: 28px;
  border-bottom: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.1s;
}
.strat-slot.filled { color: var(--yellow); border-color: var(--yellow); }

#strat-feedback {
  font-family: var(--stencil);
  font-size: 14px;
  letter-spacing: 2px;
  min-height: 22px;
  margin-bottom: 10px;
}
.strat-fb-success { color: var(--green); }
.strat-fb-fail    { color: var(--red2); white-space: pre-line; }
.strat-fb-hard    { color: #f5a000; }

#strat-sequence.shake { animation: shake 0.2s ease; }

#strat-start-btn {
  font-family: var(--stencil);
  font-size: 16px;
  letter-spacing: 3px;
  background: var(--yellow);
  color: #080806;
  border: none;
  padding: 10px 28px;
  cursor: pointer;
  transition: background 0.2s;
}
#strat-start-btn:hover { background: #d4a800; }

.strat-hint {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 10px;
  opacity: 0.5;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@media (max-width: 860px) {
  #strat-trigger { bottom: 20px; right: 16px; padding: 10px 12px; }
  #strat-panel { right: 16px; width: calc(100vw - 32px); bottom: 100px; }
}

/* ── UTILS ────────────────────────────────────────── */
.hidden { display: none !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 860px) {
  nav {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  nav ul {
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    order: 3;
    border-top: 1px solid var(--border);
    padding-top: 8px;
  }
  nav ul::-webkit-scrollbar { display: none; }
  nav ul li { flex-shrink: 0; }
  nav ul a { font-size: 11px; padding: 4px 10px; display: block; }
  .nav-sub { display: none; }
  .nav-status { display: none; }

  .hero-inner {
    flex-direction: column;
    padding: 60px 24px 40px;
    text-align: center;
  }

  .hero-divider { margin: 16px auto; }
  .hero-tags { justify-content: center; }
  .hero-buttons { justify-content: center; }
  .dossier-card { width: 100%; }

  .section-inner { padding: 0 24px; }
  .contact-inner { padding: 0 24px; }

  .about-grid { grid-template-columns: 1fr; }
  .fun-fact-card { position: static; }

  .tl-header { flex-direction: column; }
  .tl-meta { text-align: left; }

  .contact-channels { flex-direction: column; align-items: stretch; }
  .channel-card { min-width: unset; width: 100%; }

  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}
