:root {
  --bg-0: #070a08;
  --bg-1: #0c110d;
  --bg-2: #111814;
  --line: #1d2921;
  --line-bright: #2b3d30;
  --text: #e8f0e9;
  --muted: #93a596;
  --accent: #a8eb45;
  --accent-dim: rgba(168, 235, 69, 0.55);
  --accent-glow: rgba(168, 235, 69, 0.16);
  --cyan: #67e8f9;
  --violet: #c084fc;
  --red: #ff6b6b;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.2, 0.65, 0.3, 1);
}

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

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

body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }
.accent-text { color: var(--accent); font-weight: 600; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (hover: hover) and (pointer: fine) {
  body, a, button, input { cursor: none !important; }
}

.cursor-dot,
.cursor-ring {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring { display: block; }
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid var(--accent-dim);
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s, opacity 0.3s;
}
.cursor-ring.hovering {
  width: 62px; height: 62px;
  border-color: var(--accent);
  background: var(--accent-glow);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  z-index: 1500;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transform-origin: left;
  transform: scaleX(0);
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--bg-0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.pre-inner {
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
  min-width: min(420px, 80vw);
  min-height: 130px;
}
.pre-inner .ok { color: var(--accent); }
.pre-inner .cmd { color: var(--text); }

#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
#site-header.scrolled {
  background: rgba(7, 10, 8, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.logo:hover { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-size: 0.86rem;
}
.nav-links a {
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-links .nav-cta {
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 7px 16px;
  border-radius: 8px;
  transition: background 0.25s, box-shadow 0.25s;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 24px var(--accent-glow);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 1100;
}
.hamburger span {
  width: 26px; height: 2px;
  background: var(--accent);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.section { padding: 110px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 3.2rem;
}
.section-index {
  color: var(--accent);
  font-size: 0.95rem;
}
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  white-space: nowrap;
}
.head-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-bright), transparent);
  align-self: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 10px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn-lg { font-size: 1rem; padding: 16px 32px; }
.btn-sm { font-size: 0.82rem; padding: 10px 18px; }
.btn-primary {
  background: var(--accent);
  color: #0a1405;
  font-weight: 700;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--accent-glow), 0 2px 8px var(--accent-dim);
}
.btn-ghost {
  border: 1px solid var(--line-bright);
  color: var(--text);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 70% 20%, rgba(168, 235, 69, 0.05), transparent),
    linear-gradient(rgba(29, 41, 33, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 41, 33, 0.22) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
}
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-watermark {
  position: absolute;
  right: -4vw;
  bottom: -6vw;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(10rem, 34vw, 28rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(168, 235, 69, 0.07);
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.04em;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero-greet {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 1.2rem;
}
.hero-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.9rem, 8.5vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 0.9rem;
}
.hero-role {
  font-size: clamp(1rem, 2.6vw, 1.45rem);
  font-weight: 500;
  color: var(--muted);
  min-height: 2.2em;
  margin-bottom: 1.4rem;
}
.role-prefix { color: var(--accent); }
.caret {
  color: var(--accent);
  animation: blink 1.05s step-end infinite;
  font-style: normal;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-desc {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.06rem;
  margin-bottom: 1.6rem;
}
.hero-desc em { color: var(--text); font-style: normal; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--bg-1);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 2.2rem;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(168, 235, 69, 0.5); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.4rem;
}
.hero-socials {
  display: flex;
  gap: 1.1rem;
}
.hero-socials a {
  color: var(--muted);
  transition: color 0.25s, transform 0.25s;
  display: inline-flex;
}
.hero-socials svg { width: 21px; height: 21px; }
.hero-socials a:hover { color: var(--accent); transform: translateY(-4px); }

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 2;
}
.mouse {
  width: 22px; height: 34px;
  border: 1.5px solid var(--muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.wheel {
  width: 3px; height: 7px;
  background: var(--accent);
  border-radius: 2px;
  animation: wheel 1.6s ease infinite;
}
@keyframes wheel {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; }
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-1);
  padding: 16px 0;
}
.marquee-inner {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  white-space: nowrap;
}
.marquee:hover .marquee-inner { animation-play-state: paused; }
.marquee i { color: var(--accent); font-style: normal; margin: 0 14px; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}
.about-text p { margin-bottom: 1.2rem; color: var(--muted); }
.about-text strong { color: var(--text); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.stat {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.stat:hover {
  transform: translateY(-5px);
  border-color: var(--accent-dim);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), 0 0 24px var(--accent-glow);
}
.stat-value {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.stat p { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }

.timeline {
  position: relative;
  padding-left: 2.4rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(168, 235, 69, 0.08));
}
.tl-item { position: relative; margin-bottom: 2.6rem; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -2.4rem;
  top: 26px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--accent);
  animation: dotpulse 2.6s infinite;
}
@keyframes dotpulse {
  0% { box-shadow: 0 0 0 0 rgba(168, 235, 69, 0.4); }
  60% { box-shadow: 0 0 0 11px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.tl-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem 2rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.tl-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-glow);
}
.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.tl-head h3 {
  font-family: var(--font-head);
  font-size: 1.18rem;
  font-weight: 600;
}
.tl-date { color: var(--accent); font-size: 0.78rem; }
.tl-org { color: var(--muted); font-size: 0.84rem; margin: 0.3rem 0 1rem; }
.tl-card ul { margin-bottom: 1.2rem; }
.tl-card li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 0.55rem;
}
.tl-card li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.tl-card li strong { color: var(--text); font-weight: 600; }
.m { color: var(--accent); font-style: normal; font-weight: 600; font-family: var(--font-mono); font-size: 0.88em; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  background: rgba(103, 232, 249, 0.07);
  border: 1px solid rgba(103, 232, 249, 0.16);
  padding: 4px 12px;
  border-radius: 999px;
}

.proj-featured {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.4rem;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.6rem;
  margin-bottom: 1.6rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.proj-featured:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45), 0 0 40px var(--accent-glow);
}
.pf-badge {
  display: inline-block;
  color: var(--violet);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.9rem;
}
.pf-content h3 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}
.pf-content p {
  color: var(--muted);
  font-size: 0.97rem;
  margin-bottom: 1.3rem;
}
.pf-links { margin-top: 1.4rem; }
.code-panel {
  align-self: center;
  background: #050807;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.75;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}
.code-bar span {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.code-bar span:nth-child(1) { background: #ff5f57; }
.code-bar span:nth-child(2) { background: #febc2e; }
.code-bar span:nth-child(3) { background: #28c840; }
.code-bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
}
.code-panel pre {
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
}
.tk-kw { color: var(--accent); }
.tk-fn { color: var(--cyan); }
.tk-str { color: var(--violet); }
.tk-num { color: #ffb86c; }

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.4rem;
}
.proj-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.proj-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-glow);
}
.pc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pc-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-glow);
  border-radius: 12px;
}
.pc-icon svg { width: 23px; height: 23px; }
.pc-arrow {
  color: var(--muted);
  transition: color 0.25s, transform 0.25s;
}
.pc-arrow svg { width: 19px; height: 19px; }
.pc-arrow:hover { color: var(--accent); transform: translate(3px, -3px); }
.proj-card h3 {
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 600;
}
.proj-card p {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.skill-block {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.7rem;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.skill-block:hover {
  border-color: var(--accent-dim);
  transform: translateY(-5px);
}
.skill-block h3 {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chips li {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
  border: 1px solid var(--line-bright);
  padding: 6px 13px;
  border-radius: 999px;
  transition: color 0.25s, border-color 0.25s, transform 0.25s, background 0.25s;
}
.chips li:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.ach-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.ach-card:hover {
  border-color: var(--violet);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.4);
}
.ach-icon {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  color: var(--violet);
  background: rgba(192, 132, 252, 0.09);
  border-radius: 12px;
  margin-bottom: 1.1rem;
}
.ach-icon svg { width: 23px; height: 23px; }
.ach-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.ach-card p { color: var(--muted); font-size: 0.89rem; }

.term-sub {
  color: var(--muted);
  margin-bottom: 1.4rem;
  font-size: 0.95rem;
}
.term-sub code {
  color: var(--accent);
  background: var(--accent-glow);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85em;
}
.term-window {
  background: #050807;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.term-window:focus-within {
  border-color: var(--accent-dim);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 40px var(--accent-glow);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}
.tb-dot { width: 12px; height: 12px; border-radius: 50%; }
.tb-red { background: #ff5f57; }
.tb-yellow { background: #febc2e; }
.tb-green { background: #28c840; }
.term-bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.74rem;
  color: var(--muted);
}
.term-body {
  height: 340px;
  overflow-y: auto;
  padding: 1.1rem 1.3rem;
  font-size: 0.83rem;
  line-height: 1.85;
}
.term-body .t-cmd { color: var(--text); word-break: break-word; }
.term-body .t-out { color: var(--muted); white-space: pre-wrap; word-break: break-word; }
.term-body .t-ok { color: var(--accent); }
.term-body .t-err { color: var(--red); }
.term-body .t-cyan { color: var(--cyan); }
.term-body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.term-input-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 1.3rem;
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
}
.t-prompt { color: var(--accent); font-weight: 700; white-space: nowrap; }
#term-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: inherit;
  caret-color: var(--accent);
}
#term-input::placeholder { color: var(--line-bright); }

.contact-inner {
  text-align: center;
  max-width: 760px;
}
.contact-kicker { color: var(--accent); margin-bottom: 1.1rem; }
.contact-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
  background: linear-gradient(100deg, var(--text) 30%, var(--accent) 75%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact-sub { color: var(--muted); margin-bottom: 2.4rem; }
.contact-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
}
.contact-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}
.contact-meta a { transition: color 0.25s; }
.contact-meta a:hover { color: var(--accent); }

footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-hint { opacity: 0.45; font-size: 0.75rem; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

#matrix-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  pointer-events: none;
  transition: opacity 0.6s;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .proj-featured { grid-template-columns: 1fr; }
  .code-panel { order: -1; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 78vw);
    background: rgba(7, 10, 8, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid var(--line);
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    font-size: 1.05rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .hamburger { display: flex; }
}

@media (max-width: 700px) {
  .section { padding: 84px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .stat { padding: 1.2rem 1rem; }
  .tl-card { padding: 1.4rem 1.2rem; }
  .proj-featured { padding: 1.6rem; }
  .timeline { padding-left: 1.9rem; }
  .tl-dot { left: -1.9rem; }
  .scroll-hint { display: none; }
  .footer-hint { display: none; }
  .contact-actions { flex-direction: column; align-items: center; }
  .term-body { height: 300px; }
}
