*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #080c0c; --bg2: #0d1414; --card: #111a1a; --border: #1c2a2a;
  --text: #e2eded; --muted: #6b8a8a; --accent: #0d9488;
  --accent-soft: rgba(13,148,136,0.12); --accent-glow: rgba(13,148,136,0.28);
  --accent-hover: #0f766e; --hero-tint: rgba(13,148,136,0.2);
}
[data-theme="emerald"] {
  --bg: #051a0e; --bg2: #071f11; --card: #0c2918; --border: #144d2a;
  --text: #d4ede0; --muted: #5a8a6e; --accent: #10b981;
  --accent-soft: rgba(16,185,129,0.12); --accent-glow: rgba(16,185,129,0.28);
  --accent-hover: #059669; --hero-tint: rgba(16,185,129,0.2);
}
[data-theme="navy"] {
  --bg: #050810; --bg2: #080d1a; --card: #0d1530; --border: #1a2a55;
  --text: #cdd6f4; --muted: #5a6fa8; --accent: #3b82f6;
  --accent-soft: rgba(59,130,246,0.12); --accent-glow: rgba(59,130,246,0.28);
  --accent-hover: #2563eb; --hero-tint: rgba(59,130,246,0.2);
}
[data-theme="burgundy"] {
  --bg: #100508; --bg2: #160609; --card: #200a10; --border: #3d1220;
  --text: #f0d4da; --muted: #8a5060; --accent: #be123c;
  --accent-soft: rgba(190,18,60,0.12); --accent-glow: rgba(190,18,60,0.28);
  --accent-hover: #9f1239; --hero-tint: rgba(190,18,60,0.2);
}
[data-theme="white"] {
  --bg: #f8f8f8; --bg2: #f0f0f0; --card: #ffffff; --border: #ddd;
  --text: #111111; --muted: #777; --accent: #111111;
  --accent-soft: rgba(0,0,0,0.06); --accent-glow: rgba(0,0,0,0.15);
  --accent-hover: #333; --hero-tint: rgba(0,0,0,0.1);
}
[data-theme="red"] {
  --bg: #0d0000; --bg2: #120000; --card: #1a0000; --border: #3a0000;
  --text: #f5d0d0; --muted: #884444; --accent: #ef4444;
  --accent-soft: rgba(239,68,68,0.12); --accent-glow: rgba(239,68,68,0.28);
  --accent-hover: #dc2626; --hero-tint: rgba(239,68,68,0.2);
}
[data-theme="black"] {
  --bg: #000000; --bg2: #0a0a0a; --card: #111111; --border: #222222;
  --text: #e8e8e8; --muted: #666666; --accent: #e8e8e8;
  --accent-soft: rgba(232,232,232,0.08); --accent-glow: rgba(232,232,232,0.15);
  --accent-hover: #cccccc; --hero-tint: rgba(255,255,255,0.05);
}
[data-theme="purple"] {
  --bg: #09060f; --bg2: #0f0a18; --card: #160f24; --border: #2a1d45;
  --text: #e8d5f5; --muted: #7a5a9a; --accent: #a855f7;
  --accent-soft: rgba(168,85,247,0.12); --accent-glow: rgba(168,85,247,0.28);
  --accent-hover: #9333ea; --hero-tint: rgba(168,85,247,0.2);
}
[data-theme="orange"] {
  --bg: #0f0800; --bg2: #160c00; --card: #1f1100; --border: #3d2200;
  --text: #f5e2c8; --muted: #8a6030; --accent: #f97316;
  --accent-soft: rgba(249,115,22,0.12); --accent-glow: rgba(249,115,22,0.28);
  --accent-hover: #ea6c0a; --hero-tint: rgba(249,115,22,0.2);
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; transition: background 0.3s, color 0.3s;
}
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 40px; display: flex; justify-content: space-between; align-items: center;
  transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent;
}
nav.scrolled { background: rgba(0,0,0,0.85); backdrop-filter: blur(14px); border-color: var(--border); }
[data-theme="white"] nav.scrolled { background: rgba(248,248,248,0.92); }
.nav-logo { font-family: 'Space Mono', monospace; font-size: 15px; color: var(--text); text-decoration: none; letter-spacing: 0.04em; }
.nav-logo span { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.current { color: var(--text); }
.nav-links a.nav-game { color: var(--accent); border: 1px solid var(--accent); border-radius: 5px; padding: 5px 12px; transition: color 0.2s, background 0.2s; }
.nav-links a.nav-game:hover { background: var(--accent-soft); color: var(--text); }
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 36px; height: 36px; background: none; border: none; cursor: pointer;
  gap: 5px; padding: 4px; z-index: 110;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s, width 0.25s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 105;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  overflow-y: auto;
  padding: 80px 20px;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: 'Space Mono', monospace;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  padding: 14px 32px; width: 100%; max-width: 280px; text-align: center;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--card);
  transition: color 0.2s, border-color 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.current { color: var(--text); border-color: var(--accent); }
.mobile-menu a.mobile-game { color: var(--accent); border-color: var(--accent); }
.theme-toggle { position: relative; }
.theme-btn {
  background: var(--card); border: 1px solid var(--border); border-radius: 6px;
  padding: 7px 12px; color: var(--muted); font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: 0.06em; cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  transition: border-color 0.2s, color 0.2s; white-space: nowrap;
}
.theme-btn:hover { border-color: var(--accent); color: var(--text); }
.theme-btn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.theme-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; min-width: 160px; box-shadow: 0 16px 40px rgba(0,0,0,0.4); z-index: 300;
}
.theme-dropdown.open { display: block; }
.theme-option {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer;
  font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted);
  letter-spacing: 0.05em; transition: background 0.15s, color 0.15s;
  border: none; background: none; width: 100%; text-align: left;
}
.theme-option:hover { background: var(--bg2); color: var(--text); }
.theme-option.active { color: var(--text); }
.theme-swatch { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
#hero {
  position: relative; height: 100vh; min-height: 500px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('intro-bg.jpg'); background-size: cover;
  background-position: center; background-attachment: fixed;
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, var(--hero-tint) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.75) 100%);
  transition: background 0.4s;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 30%, rgba(0,0,0,0.5) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 0 20px; }
.hero-prompt {
  font-family: 'Space Mono', monospace; font-size: 13px; color: var(--accent);
  margin-bottom: 20px; display: flex; align-items: center; justify-content: center;
  gap: 8px; letter-spacing: 0.08em;
}
.cursor {
  display: inline-block; width: 8px; height: 15px;
  background: var(--accent); animation: blink 1.1s step-end infinite; vertical-align: middle;
}
@keyframes blink { 50% { opacity: 0; } }
h1.brand-heading {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(52px, 10vw, 110px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: #fff; margin-bottom: 20px;
}
h1.brand-heading span { color: var(--accent); }
.intro-text {
  font-size: clamp(15px, 2vw, 19px); color: rgba(255,255,255,0.5);
  max-width: 520px; margin: 0 auto 40px; font-weight: 300; line-height: 1.7;
}
.intro-text strong { color: rgba(255,255,255,0.85); font-weight: 500; }
.btn-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.55);
  text-decoration: none; font-size: 20px; transition: border-color 0.2s, color 0.2s;
  animation: bounce 2s ease-in-out infinite; margin-top: 8px;
}
.btn-circle:hover { border-color: var(--accent); color: var(--accent); }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

.page-header { padding: 160px 40px 60px; text-align: center; }
.page-header .eyebrow { justify-content: center; display: flex; }
.page-header h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(36px, 6vw, 56px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 14px; }
.page-header p { color: var(--muted); max-width: 540px; margin: 0 auto; font-size: 15px; }
.page-header .rule { margin: 24px auto 0; }

.content-section { padding: 100px 40px; transition: background 0.3s; }
.content-section.alt { background: var(--bg2); }
.content-section.tight { padding-top: 20px; }
.wrap { max-width: 960px; margin: 0 auto; }
.eyebrow { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--accent); letter-spacing: 0.04em; margin-bottom: 10px; transition: color 0.3s; }
h2.section-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; line-height: 1.15; }
.rule { width: 40px; height: 2px; background: var(--accent); margin-bottom: 48px; transition: background 0.3s; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-body p { color: var(--muted); margin-bottom: 18px; font-size: 15px; line-height: 1.85; }
.about-body p strong { color: var(--text); }
.lb-label { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.learning-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.l-tag { font-size: 12px; padding: 5px 12px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--border); font-family: 'Space Mono', monospace; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.nums { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.num-cell { background: var(--card); border: 1px solid var(--border); padding: 28px 22px; transition: background 0.3s, border-color 0.3s; }
.num-cell:nth-child(1) { border-radius: 8px 0 0 0; }
.num-cell:nth-child(2) { border-radius: 0 8px 0 0; }
.num-cell:nth-child(3) { border-radius: 0 0 0 8px; }
.num-cell:nth-child(4) { border-radius: 0 0 8px 0; }
.num-val { font-family: 'Space Grotesk', sans-serif; font-size: 38px; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 6px; }
.num-val span { color: var(--accent); font-size: 26px; }
.num-desc { font-size: 12px; color: var(--muted); line-height: 1.4; }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.skill-cat { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 22px 20px; transition: border-color 0.2s, background 0.3s; }
.skill-cat:hover { border-color: var(--accent); }
.cat-title { font-family: 'Space Mono', monospace; font-size: 10px; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.skill-list { display: flex; flex-direction: column; gap: 7px; }
.skill-item { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.skill-item::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); flex-shrink: 0; opacity: 0.6; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.project-media { width: 100%; max-width: 760px; margin: 0 auto; border-radius: 8px; overflow: hidden; background: var(--bg2); border: 1px solid var(--border); }
.project-media img, .project-media video { width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; }
.project-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 26px 24px; transition: border-color 0.2s, transform 0.2s;
  display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit;
}
.project-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.project-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.project-name { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.project-status { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px; white-space: nowrap; flex-shrink: 0; }
.project-status.active { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--border); }
.project-status.archived { background: var(--bg2); color: var(--muted); border: 1px solid var(--border); }
.project-desc { font-size: 13.5px; color: var(--muted); line-height: 1.65; flex-grow: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.project-tags span { font-family: 'Space Mono', monospace; font-size: 10px; color: var(--muted); background: var(--bg2); border: 1px solid var(--border); padding: 3px 8px; border-radius: 4px; }
.project-link-row { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--accent); letter-spacing: 0.04em; margin-top: 6px; display: flex; align-items: center; gap: 6px; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; max-width: 760px; margin: 0 auto; }
.gallery-item { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--card); transition: border-color 0.2s, transform 0.2s; text-decoration: none; color: inherit; }
.gallery-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.gallery-item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.gallery-caption { padding: 14px 16px; }
.gallery-caption .g-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.gallery-caption .g-desc { color: var(--muted); font-size: 12.5px; line-height: 1.5; }

.player-wrap {
  position: relative; width: 100%; max-width: 760px; margin: 0 auto; border-radius: 12px; overflow: hidden;
  background: #000; border: 1px solid var(--border);
  aspect-ratio: 16/9;
}
.player-wrap video {
  width: 100%; height: 100%; display: block; object-fit: contain; background: #000;
}
.player-overlay-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.25); cursor: pointer; transition: opacity 0.2s; opacity: 1;
}
.player-overlay-play.hidden { opacity: 0; pointer-events: none; }
.player-overlay-play .big-play {
  width: 76px; height: 76px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px var(--accent-glow); transition: transform 0.15s;
}
.player-overlay-play:hover .big-play { transform: scale(1.06); }
.player-overlay-play svg { width: 28px; height: 28px; margin-left: 4px; fill: #fff; }

.player-controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  opacity: 1; transition: opacity 0.25s; z-index: 5;
}
.player-wrap.controls-hidden .player-controls { opacity: 0; pointer-events: none; }
.player-wrap.controls-hidden { cursor: none; }

.player-progress {
  position: relative; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.25);
  cursor: pointer;
}
.player-progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%; border-radius: 3px;
  background: var(--accent);
}
.player-progress-buffer {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%; border-radius: 3px;
  background: rgba(255,255,255,0.18);
}
.player-progress-handle {
  position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent); transform: translate(-50%, -50%); left: 0%;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.15);
}

.player-row { display: flex; align-items: center; gap: 14px; }
.player-btn {
  background: none; border: none; color: #fff; cursor: pointer; padding: 4px;
  display: flex; align-items: center; justify-content: center; opacity: 0.9;
  transition: opacity 0.15s;
}
.player-btn:hover { opacity: 1; }
.player-btn svg { width: 19px; height: 19px; fill: #fff; }
.player-time {
  font-family: 'Space Mono', monospace; font-size: 11.5px; color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em; white-space: nowrap;
}
.player-spacer { flex-grow: 1; }
.player-vol-wrap { display: flex; align-items: center; gap: 6px; }
.player-vol-slider {
  width: 64px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.25);
  position: relative; cursor: pointer;
}
.player-vol-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 2px; background: #fff;
}
.player-speed-btn {
  font-family: 'Space Mono', monospace; font-size: 11px; color: #fff; background: rgba(255,255,255,0.12);
  border: none; border-radius: 4px; padding: 4px 8px; cursor: pointer; opacity: 0.9;
}
.player-speed-btn:hover { opacity: 1; }
.player-wrap.is-fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; border: none; }

.evermist-hero { padding: 150px 40px 50px; }
.evermist-hero .wrap { max-width: 900px; }
.evermist-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.evermist-meta span {
  font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted);
  background: var(--card); border: 1px solid var(--border); padding: 5px 11px; border-radius: 5px;
}
.evermist-body p { color: var(--muted); font-size: 15px; line-height: 1.85; margin-top: 18px; max-width: 720px; }
.evermist-body strong { color: var(--text); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 12px; }
.feature-cell { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 18px; }
.feature-cell .f-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.feature-cell .f-desc { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.back-link {
  font-family: 'Space Mono', monospace; font-size: 12px; color: var(--muted);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }

.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.social-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px; display: flex; align-items: center; gap: 16px;
  text-decoration: none; color: inherit; transition: border-color 0.2s, transform 0.2s;
}
.social-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.social-icon { width: 42px; height: 42px; border-radius: 8px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.social-icon svg { width: 20px; height: 20px; }
.social-name { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 600; }
.social-handle { font-family: 'Space Mono', monospace; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.blog-list { display: flex; flex-direction: column; gap: 2px; }
.blog-row {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 24px; background: var(--card); border: 1px solid var(--border);
  text-decoration: none; color: inherit; transition: border-color 0.2s, background 0.2s;
}
.blog-row:first-child { border-radius: 8px 8px 0 0; }
.blog-row:last-child { border-radius: 0 0 8px 8px; }
.blog-row:not(:last-child) { border-bottom: none; }
.blog-row:hover { border-color: var(--accent); }
.blog-row-title { font-family: 'Space Grotesk', sans-serif; font-size: 15.5px; font-weight: 600; }
.blog-row-desc { font-size: 13px; color: var(--muted); margin-top: 4px; }
.blog-row-date { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted); white-space: nowrap; }
.blog-empty { color: var(--muted); font-size: 14px; }

footer {
  border-top: 1px solid var(--border); padding: 22px 40px;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg); transition: background 0.3s, border-color 0.3s;
}
footer p { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--border); letter-spacing: 0.06em; }
footer a { color: var(--muted); text-decoration: none; font-size: 12px; font-family: 'Space Mono', monospace; }
footer a:hover { color: var(--text); }
.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 40px; width: 100%; max-width: 420px; position: relative; animation: modalIn 0.2s ease;
  max-height: 86vh; overflow-y: auto;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.modal-close { position: absolute; top: 16px; right: 20px; background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; transition: color 0.2s; }
.modal-close:hover { color: var(--text); }
.modal-title { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 20px; }
.modal h3 { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; margin-bottom: 28px; letter-spacing: -0.02em; }
.contact-row { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--border); margin-bottom: 10px; transition: border-color 0.2s; text-decoration: none; }
.contact-row:hover { border-color: var(--accent); }
.contact-row-icon { width: 36px; height: 36px; border-radius: 6px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-row-icon svg { width: 18px; height: 18px; }
.contact-row-label { font-family: 'Space Mono', monospace; font-size: 10px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px; }
.contact-row-value { font-size: 14px; color: var(--text); font-weight: 500; }
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .content-section { padding: 72px 20px; }
  .page-header { padding: 130px 20px 50px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  footer { padding: 20px; flex-direction: column; gap: 8px; text-align: center; }
  .modal { margin: 20px; padding: 28px; }
}
@media (max-width: 480px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  .btn-circle { animation: none; }
}