/* ===========================================================
   Igor Kopestenski — Portfolio
   Modern, sleek single-page design
   =========================================================== */

/* -----------------------------------------------------------
   1. Design Tokens
   ----------------------------------------------------------- */
:root {
  /* Dark theme (default) */
  --bg: #0a0b14;
  --bg-elev: #11131f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);

  --text: #e8eaf2;
  --text-muted: #9aa0b4;
  --text-faint: #6b7080;

  --accent: #7c5cff;
  --accent-2: #00d4ff;
  --accent-3: #ff6b9d;
  --accent-glow: rgba(124, 92, 255, 0.35);

  --success: #4ade80;

  --gradient-1: linear-gradient(135deg, #7c5cff 0%, #00d4ff 100%);
  --gradient-2: linear-gradient(135deg, #ff6b9d 0%, #7c5cff 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  --nav-h: 72px;
  --container: 1180px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f7f8fb;
  --bg-elev: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border: rgba(15, 20, 40, 0.08);
  --border-strong: rgba(15, 20, 40, 0.15);

  --text: #1a1d2e;
  --text-muted: #5a6075;
  --text-faint: #8a90a3;

  --accent: #5b3df5;
  --accent-glow: rgba(91, 61, 245, 0.25);

  --shadow-sm: 0 2px 8px rgba(15, 20, 40, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 20, 40, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 20, 40, 0.12);
}

/* -----------------------------------------------------------
   2. Base
   ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

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

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

.muted { color: var(--text-muted); }

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* -----------------------------------------------------------
   3. Animated Background
   ----------------------------------------------------------- */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: float 20s var(--ease) infinite;
  will-change: transform;
}

.orb-1 {
  width: 480px; height: 480px;
  background: var(--accent);
  top: -120px; left: -120px;
}

.orb-2 {
  width: 380px; height: 380px;
  background: var(--accent-2);
  top: 30%; right: -100px;
  animation-delay: -7s;
}

.orb-3 {
  width: 420px; height: 420px;
  background: var(--accent-3);
  bottom: -100px; left: 30%;
  animation-delay: -14s;
}

[data-theme="light"] .orb { opacity: 0.18; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, -40px) scale(1.08); }
  66%      { transform: translate(-40px, 50px) scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  html { scroll-behavior: auto; }
}

/* -----------------------------------------------------------
   4. Navigation
   ----------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--gradient-1);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.5px;
  box-shadow: 0 6px 20px var(--accent-glow);
}

.logo-text { font-size: 15px; }

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg-card);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle, .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.theme-toggle:hover, .menu-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.menu-toggle { display: none; flex-direction: column; gap: 4px; padding: 10px; }
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* -----------------------------------------------------------
   5. Buttons
   ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* -----------------------------------------------------------
   6. Hero
   ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.hero-text { min-width: 0; }

.hero-portrait {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  animation: fadeUp 0.9s 0.2s var(--ease) both;
}

.portrait-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 4px;
  background: var(--gradient-1);
  box-shadow:
    0 30px 60px -20px var(--accent-glow),
    0 0 0 1px var(--border);
  overflow: hidden;
  z-index: 2;
  transition: transform 0.5s var(--ease);
}

.portrait-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  opacity: 0.85;
  z-index: 0;
  animation: rotate 14s linear infinite;
}

.portrait-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--bg-elev);
  display: block;
}

.portrait-frame:hover { transform: translateY(-6px) scale(1.02); }

.portrait-initials {
  position: absolute;
  inset: 4px;
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-elev);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: clamp(72px, 12vw, 130px);
  font-weight: 700;
  letter-spacing: -2px;
}

.portrait-fallback .portrait-initials { display: flex; }

.portrait-glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 65%);
  z-index: 1;
  pointer-events: none;
  filter: blur(40px);
  animation: pulseGlow 6s ease-in-out infinite;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 0.8; transform: scale(1.08); }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 28px;
  animation: fadeUp 0.8s var(--ease) both;
}

.hero-tag .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0.05); }
}

.hero-title {
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 28px;
}

.hero-title .line {
  display: block;
  animation: fadeUp 0.8s var(--ease) both;
}

.hero-title .line:nth-child(2) { animation-delay: 0.1s; }

.hero-subtitle {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 600;
  margin: 0 0 24px;
  animation: fadeUp 0.8s 0.2s var(--ease) both;
}

.hero-subtitle .muted {
  font-weight: 500;
  font-size: 0.85em;
}

.hero-blurb {
  max-width: 720px;
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 36px;
  line-height: 1.7;
  animation: fadeUp 0.8s 0.3s var(--ease) both;
}

.hero-blurb strong {
  color: var(--text);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
  animation: fadeUp 0.8s 0.4s var(--ease) both;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  animation: fadeUp 0.8s 0.5s var(--ease) both;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

a.meta-item:hover { color: var(--text); }

.meta-item svg { color: var(--accent); flex-shrink: 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
  opacity: 0.5;
}

.scroll-indicator span {
  display: block;
  width: 4px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  margin: 6px auto 0;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(12px); opacity: 0.3; }
}

/* -----------------------------------------------------------
   7. Sections
   ----------------------------------------------------------- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-tight { padding: 60px 0; }

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

.section-number {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-title::after {
  content: '';
  display: inline-block;
  width: 80px;
  height: 1px;
  background: var(--border-strong);
  vertical-align: middle;
  margin-left: 20px;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------------------------------------
   8. About
   ----------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
}

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

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.highlight {
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease);
}

.highlight:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.highlight-num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  line-height: 1;
}

.highlight-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* -----------------------------------------------------------
   9. Skills
   ----------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.skill-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: -1;
}

.skill-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--gradient-1);
  color: #fff;
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px var(--accent-glow);
}

.skill-card h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
}

.tag-list li:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* -----------------------------------------------------------
   10. Timeline (Experience)
   ----------------------------------------------------------- */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 12px; bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--border) 100%);
}

.timeline-item {
  position: relative;
  padding: 0 0 48px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -32px; top: 8px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 16px var(--accent-glow);
}

.timeline-content {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease);
}

.timeline-content:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-date { color: var(--accent); }

.timeline-content h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

.timeline-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 12px; height: 1px;
  background: var(--accent);
}

.timeline-list strong { color: var(--text); font-weight: 600; }

/* -----------------------------------------------------------
   11. Positioning Card
   ----------------------------------------------------------- */
.positioning-card {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.positioning-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%;
  width: 50%; height: 200%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

.positioning-title {
  font-size: 22px;
  margin-bottom: 20px;
  position: relative;
}

.positioning-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.positioning-list li {
  padding-left: 28px;
  position: relative;
  color: var(--text-muted);
  line-height: 1.7;
}

.positioning-list li::before {
  content: '→';
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-weight: 700;
}

.positioning-list strong { color: var(--text); font-weight: 600; }

/* -----------------------------------------------------------
   12. Education / Publications
   ----------------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.subtitle {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 18px;
}

.subtitle-spaced { margin-top: 36px; }

.card {
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  transition: all 0.3s var(--ease);
}

.card-link {
  display: block;
  cursor: pointer;
}

.card-link:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-3px);
}

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

.card-header h4 {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
}

.card-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 2px;
}

.card-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

.card-doi {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  margin: 8px 0 0;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-talk { padding-bottom: 16px; }

.video-embed {
  position: relative;
  margin-top: 16px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* -----------------------------------------------------------
   13. Contact
   ----------------------------------------------------------- */
.contact-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: var(--gradient-1);
  opacity: 0.12;
  filter: blur(60px);
  pointer-events: none;
}

.contact-text h2 {
  font-size: clamp(24px, 3.4vw, 36px);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.contact-text p {
  color: var(--text-muted);
  margin: 0;
  font-size: 16px;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

/* -----------------------------------------------------------
   14. Footer
   ----------------------------------------------------------- */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-faint);
}

.back-to-top {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.back-to-top:hover { color: var(--accent); }

/* -----------------------------------------------------------
   15. Responsive
   ----------------------------------------------------------- */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 18px; }

  .menu-toggle { display: flex; }

  .about-grid,
  .two-col,
  .contact-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: left;
  }

  .hero-portrait {
    order: -1;
    max-width: 260px;
  }

  .contact-card { padding: 32px 24px; }

  .section { padding: 70px 0; }

  .section-title::after { display: none; }

  .timeline-content { padding: 22px; }
}

@media (max-width: 520px) {
  .logo-text { display: none; }

  .hero { padding-top: calc(var(--nav-h) + 32px); }

  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }

  .about-highlights { grid-template-columns: 1fr 1fr; }

  .positioning-card { padding: 28px 22px; }
}

/* Print friendly */
@media print {
  .nav, .footer, .scroll-indicator, .bg-gradient, .hero-cta, .contact-actions { display: none; }
  body { color: #000; background: #fff; }
  .section { padding: 20px 0; }
}
