/* ═══════════════════════════════════════════════════════
   БОРТНИЧЕНКО ВЯЧЕСЛАВ — SYSADMIN RESUME
   Design: Cyberpunk Terminal · JetBrains Mono + Syne
   Approach: Mobile-first, CSS custom properties
   ═══════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ──────────────────────────────────── */
:root {
  --bg:          #080c14;
  --bg-2:        #0d1220;
  --bg-3:        #111827;
  --surface:     #141c2e;
  --surface-2:   #1a2540;
  --border:      rgba(0, 255, 136, 0.15);
  --border-glow: rgba(0, 255, 136, 0.4);

  --accent:      #00ff88;
  --accent-dim:  #00cc6a;
  --accent-2:    #00d4ff;
  --accent-muted:rgba(0, 255, 136, 0.12);

  --text:        #e2e8f0;
  --text-muted:  #64748b;
  --text-dim:    #94a3b8;

  --font-mono:   'JetBrains Mono', 'Courier New', monospace;
  --font-display:'Syne', system-ui, sans-serif;

  --radius:      4px;
  --radius-lg:   8px;

  --shadow-glow: 0 0 20px rgba(0,255,136,0.15), 0 0 60px rgba(0,255,136,0.05);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --transition:  0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w:       1200px;
  --section-gap: 100px;
}

[data-theme="light"] {
  --bg:          #f0f4f8;
  --bg-2:        #e8edf5;
  --bg-3:        #dde4ef;
  --surface:     #ffffff;
  --surface-2:   #f5f8fd;
  --border:      rgba(0, 120, 200, 0.2);
  --border-glow: rgba(0, 120, 200, 0.5);
  --accent:      #0070f3;
  --accent-dim:  #0060d0;
  --accent-2:    #7c3aed;
  --accent-muted:rgba(0, 112, 243, 0.1);
  --text:        #0f172a;
  --text-muted:  #64748b;
  --text-dim:    #475569;
  --shadow-glow: 0 0 20px rgba(0,112,243,0.1), 0 0 60px rgba(0,112,243,0.04);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
}

/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-mono);
  background: var(--bg); color: var(--text);
  line-height: 1.7; overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }

/* ── LAYOUT ──────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }
.section { padding: 80px 0; }
@media (min-width: 1024px) { .section { padding: var(--section-gap) 0; } }

/* ── SECTION HEADER ──────────────────────────────────── */
.section-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 3.5rem; }
.section-num { font-family: var(--font-mono); font-size: .75rem; color: var(--accent); letter-spacing: .2em; flex-shrink: 0; }
.section-title { font-family: var(--font-display); font-size: clamp(1.6rem,4vw,2.5rem); font-weight: 800; color: var(--text); flex-shrink: 0; }
.section-line { flex: 1; height: 1px; background: linear-gradient(to right, var(--border-glow), transparent); }

/* ── NAVIGATION ──────────────────────────────────────── */
.nav-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8,12,20,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}
[data-theme="light"] .nav-header { background: rgba(240,244,248,.85); }
.nav-container {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem;
  height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
@media (min-width: 768px) { .nav-container { padding: 0 2rem; } }
.nav-logo { font-family: var(--font-mono); font-size: .85rem; color: var(--text); font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.logo-bracket { color: var(--accent); }
.logo-cursor { color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100% { opacity:1 } 50% { opacity:0 } }
.nav-links { display: none; gap: 0; }
@media (min-width: 768px) { .nav-links { display: flex; align-items: center; } }
.nav-link {
  font-family: var(--font-mono); font-size: .8rem; color: var(--text-muted);
  padding: .4rem .85rem; letter-spacing: .05em; border-radius: var(--radius);
  transition: color var(--transition), background var(--transition); position: relative;
}
.nav-link::before { content: './'; color: var(--accent); opacity: 0; transition: opacity var(--transition); }
.nav-link:hover, .nav-link--active { color: var(--accent); background: var(--accent-muted); }
.nav-link:hover::before, .nav-link--active::before { opacity: 1; }
.nav-controls { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.theme-toggle {
  display: flex; align-items: center; gap: .4rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
  font-family: var(--font-mono); font-size: .72rem; padding: .35rem .75rem; border-radius: 999px;
  cursor: pointer; letter-spacing: .1em;
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 10px rgba(0,255,136,.2); }
.theme-icon { font-size: 1rem; }
.theme-label { display: none; }
@media (min-width: 480px) { .theme-label { display: inline; } }
.burger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .4rem; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s, background var(--transition); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 768px) { .burger { display: none; } }
.mobile-menu { display: none; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 1rem 1.25rem; }
.mobile-menu.open { display: block; }
.mob-link { display: block; font-family: var(--font-mono); font-size: .9rem; color: var(--text-muted); padding: .6rem 0; border-bottom: 1px solid var(--border); transition: color var(--transition); }
.mob-link:hover { color: var(--accent); }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }

/* ── HERO ────────────────────────────────────────────── */
.hero-section { min-height: 100vh; display: flex; align-items: center; padding-top: 60px; position: relative; overflow: hidden; }
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px,transparent 1px), linear-gradient(90deg,var(--border) 1px,transparent 1px);
  background-size: 50px 50px; opacity: .5; transition: opacity var(--transition);
}
[data-theme="light"] .hero-bg-grid { opacity: .3; }
.hero-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom,transparent 0,transparent 2px,rgba(0,255,136,.015) 2px,rgba(0,255,136,.015) 4px);
  pointer-events: none;
}
[data-theme="light"] .hero-scanlines { display: none; }
.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 3rem;
  padding-top: 2rem; padding-bottom: 2rem;
}
@media (min-width: 1024px) { .hero-inner { flex-direction: row; align-items: center; gap: 4rem; } }

/* Terminal */
.hero-terminal {
  width: 100%; max-width: 520px;
  background: var(--bg-3); border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-glow),var(--shadow-card);
  font-family: var(--font-mono); font-size: .85rem;
  order: 2; flex-shrink: 0;
  animation: fadeSlideUp .8s ease both .2s;
}
@media (min-width: 1024px) { .hero-terminal { order: 0; width: 480px; } }
.terminal-bar {
  display: flex; align-items: center; gap: 6px; padding: .6rem 1rem;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.t-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.t-dot--red    { background: #ff5f57; }
.t-dot--yellow { background: #febc2e; }
.t-dot--green  { background: #28c840; }
.t-title { flex: 1; text-align: center; font-size: .72rem; color: var(--text-muted); }
.terminal-body { padding: 1.25rem 1.25rem 1.5rem; line-height: 1.95; min-height: 200px; }

/* Terminal line types — set by JS */
.t-line        { display: block; }
.t-line-cmd    { color: var(--text); }
.t-line-output { color: var(--text-dim); padding-left: 0; }
.t-prompt      { color: var(--accent); }
.t-ok          { color: var(--accent); font-weight: 600; }
.t-cursor      { color: var(--accent); animation: blink 1s step-end infinite; display: inline; }

/* Hero content */
.hero-content { flex: 1; animation: fadeSlideUp .8s ease both; }
.hero-label { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); letter-spacing: .2em; margin-bottom: .75rem; }
.hero-name { font-family: var(--font-display); font-size: clamp(2.5rem,8vw,5rem); font-weight: 800; line-height: 1.05; color: var(--text); margin-bottom: .5rem; }
.hero-name em { font-style: normal; color: var(--accent); }
.hero-role { font-family: var(--font-mono); font-size: clamp(.9rem,2vw,1.1rem); color: var(--text-dim); letter-spacing: .1em; margin-bottom: 1.25rem; }
.hero-desc { color: var(--text-muted); font-size: .92rem; max-width: 480px; margin-bottom: 2rem; line-height: 1.8; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid var(--border); }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-plus { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--accent); vertical-align: super; }
.stat-label { font-size: .72rem; color: var(--text-muted); letter-spacing: .1em; margin-top: .25rem; }
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
  color: var(--text-muted); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite; z-index: 1;
}
.scroll-arrow { font-size: 1.1rem; color: var(--accent); }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0) } 50% { transform: translateX(-50%) translateY(6px) } }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .08em;
  padding: .75rem 1.75rem; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #080c14; border-color: var(--accent); font-weight: 700; }
.btn--primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); color: #080c14; box-shadow: 0 0 20px rgba(0,255,136,.4); }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--border-glow); }
.btn--ghost:hover { background: var(--accent-muted); border-color: var(--accent); }

/* ── ABOUT ───────────────────────────────────────────── */
.about-section { background: var(--bg-2); }
.about-grid { display: flex; flex-direction: column; gap: 2.5rem; }
@media (min-width: 768px) { .about-grid { flex-direction: row; align-items: flex-start; gap: 4rem; } }
.about-photo-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; flex-shrink: 0; }

/* ── FLIP CARD ───────────────────────────────────────── */
.flip-card {
  width: 190px; height: 190px;
  perspective: 800px;
  cursor: pointer;
  outline: none;
}
.flip-inner {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.4,0,.2,1);
  border-radius: 50%;
}
/* Flip on hover OR when .flipped class is toggled by JS */
.flip-card:hover .flip-inner,
.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}
.flip-front, .flip-back {
  position: absolute; inset: 0;
  border-radius: 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
/* Front */
.flip-front {
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-glow);
  display: flex; align-items: center; justify-content: center;
}
.photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.photo-placeholder svg { width: 90%; height: 90%; }
.photo-ring {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 1px dashed var(--border-glow);
  animation: spin 20s linear infinite;
  pointer-events: none;
}
@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }

/* Back */
.flip-back {
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-glow);
  transform: rotateY(180deg);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: .75rem 1rem;
  gap: .25rem;
}
.fb-line { font-family: var(--font-mono); font-size: .7rem; line-height: 1.6; }
.fb-prompt { color: var(--accent); margin-bottom: .2rem; }
.fb-key { color: var(--accent); display: inline-block; width: 3.5rem; }
.fb-val { color: var(--text-dim); }
.fb-status {
  margin-top: .3rem; color: var(--accent);
  display: flex; align-items: center; gap: .4rem;
}
.badge-dot-sm {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite; flex-shrink: 0;
}

.about-badge {
  display: flex; align-items: center; gap: .5rem;
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: 999px; padding: .3rem 1rem;
  font-size: .75rem; color: var(--accent); letter-spacing: .05em;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 0 rgba(0,255,136,.5) } 50% { box-shadow: 0 0 0 6px rgba(0,255,136,0) } }

.about-text p { color: var(--text-dim); margin-bottom: 1rem; font-size: .9rem; line-height: 1.85; }
.about-text strong { color: var(--accent); font-weight: 600; }
.about-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.5rem;
  margin: 1.5rem 0; padding: 1.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.about-facts li { display: flex; flex-direction: column; gap: .15rem; }
.fact-key { font-size: .7rem; color: var(--accent); letter-spacing: .15em; }
.fact-val { font-size: .82rem; color: var(--text-dim); }
.about-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.social-link {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem;
  color: var(--text-muted); padding: .4rem .8rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all var(--transition);
}
.social-link:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-muted); }

/* ── SKILLS ──────────────────────────────────────────── */
.skills-section { background: var(--bg); }
.skills-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (min-width: 768px)  { .skills-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .skills-grid { grid-template-columns: repeat(3,1fr); } }
.skill-category {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; transition: border-color var(--transition), box-shadow var(--transition);
}
.skill-category:hover { border-color: var(--border-glow); box-shadow: var(--shadow-glow); }
.skill-cat-title { font-family: var(--font-display); font-size: .95rem; font-weight: 600; color: var(--text); margin-bottom: 1.25rem; display: flex; align-items: center; gap: .5rem; }
.skill-list { display: flex; flex-direction: column; gap: 1rem; }
.skill-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .4rem; }
.skill-name { font-size: .78rem; color: var(--text-dim); }
.skill-pct  { font-size: .72rem; color: var(--accent); font-weight: 600; }
.skill-bar  { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.skill-fill { height: 100%; width: 0; background: linear-gradient(90deg,var(--accent-dim),var(--accent)); border-radius: 2px; transition: width 1s cubic-bezier(.4,0,.2,1); box-shadow: 0 0 6px rgba(0,255,136,.5); }
.tech-tags { display: flex; flex-wrap: wrap; gap: .6rem; }
.tag { font-family: var(--font-mono); font-size: .72rem; color: var(--accent-2); background: rgba(0,212,255,.08); border: 1px solid rgba(0,212,255,.25); border-radius: var(--radius); padding: .3rem .75rem; letter-spacing: .05em; transition: all var(--transition); cursor: default; }
.tag:hover { background: rgba(0,212,255,.15); border-color: var(--accent-2); }

/* ── EXPERIENCE ──────────────────────────────────────── */
.exp-section { background: var(--bg-2); }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom,var(--accent),transparent); }
.timeline-item { position: relative; padding-bottom: 3rem; }
.timeline-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -2rem; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 10px rgba(0,255,136,.4); }
.tl-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; transition: border-color var(--transition), box-shadow var(--transition); }
.tl-content:hover { border-color: var(--border-glow); box-shadow: var(--shadow-glow); }
.tl-header { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .35rem; }
@media (min-width: 600px) { .tl-header { flex-direction: row; align-items: baseline; justify-content: space-between; } }
.tl-role { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--text); }
.tl-date { font-family: var(--font-mono); font-size: .75rem; color: var(--accent); letter-spacing: .08em; flex-shrink: 0; }
.tl-company { font-size: .8rem; color: var(--text-muted); margin-bottom: .5rem; }
.tl-note { font-family: var(--font-mono); font-size: .72rem; color: var(--accent-2); margin-bottom: 1rem; }
.tl-achievements { display: flex; flex-direction: column; gap: .5rem; }
.tl-achievements li { font-size: .82rem; color: var(--text-dim); padding-left: 1rem; position: relative; line-height: 1.6; }
.tl-achievements li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }
.tl-achievements strong { color: var(--text); }

/* ── EDUCATION ───────────────────────────────────────── */
.edu-section { background: var(--bg); }
.certs-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 600px)  { .certs-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .certs-grid { grid-template-columns: repeat(4,1fr); } }
.certs-grid--2 { grid-template-columns: 1fr !important; }
@media (min-width: 600px)  { .certs-grid--2 { grid-template-columns: repeat(2,1fr) !important; } }
.cert-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
.cert-card:hover { border-color: var(--border-glow); box-shadow: var(--shadow-glow); transform: translateY(-3px); }
.cert-icon { font-size: 2rem; flex-shrink: 0; }
.cert-name { font-family: var(--font-display); font-size: .9rem; font-weight: 600; color: var(--text); margin-bottom: .25rem; line-height: 1.3; }
.cert-org   { font-size: .75rem; color: var(--text-muted); margin-bottom: .35rem; }
.cert-extra { font-size: .75rem; color: var(--text-dim); margin-bottom: .6rem; line-height: 1.4; }
.cert-tag   { display: inline-block; font-family: var(--font-mono); font-size: .65rem; color: var(--accent); background: var(--accent-muted); border: 1px solid rgba(0,255,136,.3); border-radius: var(--radius); padding: .15rem .5rem; letter-spacing: .08em; }

/* ── CONTACT (solo — no form) ────────────────────────── */
.contact-section { background: var(--bg-2); }
.contact-solo { max-width: 100%; }
.contact-intro { color: var(--text-dim); font-size: .9rem; line-height: 1.8; margin-bottom: 2rem; }
.contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .75rem; margin-bottom: 1.5rem; }
.contact-list--big .contact-item { padding: 1rem 1.25rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  color: var(--text-dim); padding: .75rem 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.contact-item:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-muted); }
.ci-icon { font-size: 1.2rem; color: var(--accent); flex-shrink: 0; width: 1.75rem; text-align: center; }
.ci-label { display: block; font-size: .7rem; color: var(--text-muted); letter-spacing: .1em; margin-bottom: .1rem; }
.ci-value { display: block; font-size: .88rem; color: var(--text); }
.contact-location {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .82rem; color: var(--text-muted); line-height: 1.6;
  padding: 1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 2rem 0; }
.footer-inner { display: flex; flex-direction: column; gap: .5rem; align-items: center; text-align: center; }
@media (min-width: 600px) { .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-copy { font-size: .78rem; color: var(--text-muted); }
.footer-code { color: var(--accent); }
.back-top { font-family: var(--font-mono); font-size: .75rem; color: var(--text-muted); letter-spacing: .1em; transition: color var(--transition); }
.back-top:hover { color: var(--accent); }

/* ── ANIMATIONS ──────────────────────────────────────── */
@keyframes fadeSlideUp { from { opacity:0; transform:translateY(30px) } to { opacity:1; transform:none } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── REDUCED MOTION ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}