/* ============================================================================
   BESPOKE CV — design system + layout
   ========================================================================== */
:root {
  /* Light / neutral default: white · grey · blue + restrained red accent */
  --bg: #f5f6f8;
  --bg-2: #ffffff;
  --surface: rgba(15,23,42,0.03);
  --surface-2: rgba(15,23,42,0.05);
  --stroke: rgba(15,23,42,0.10);
  --stroke-strong: rgba(15,23,42,0.16);
  --text: #14181f;
  --muted: #515a6b;
  --faint: #8a93a6;
  --accent: #2563eb;          /* blue */
  --accent-2: #0ea5b7;        /* teal-blue */
  --accent-3: #e11d48;        /* red — key highlights */
  --accent-grad: linear-gradient(120deg, #2563eb 0%, #0ea5b7 100%);
  --key: #e11d48;             /* red used for key skills & achievements */
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1100px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 24px 60px -24px rgba(20,30,60,0.22);
  --ease: cubic-bezier(.22,.61,.36,1);
  --on-accent: #ffffff;
}

html[data-theme="dark"] {
  --bg: #0c0e15;
  --bg-2: #11141d;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.06);
  --stroke: rgba(255,255,255,0.10);
  --stroke-strong: rgba(255,255,255,0.18);
  --text: #f4f6fb;
  --muted: #9aa3b8;
  --faint: #6b7388;
  --accent: #4f8bff;
  --accent-2: #2bd4c4;
  --accent-3: #ff4d6d;
  --accent-grad: linear-gradient(120deg, #4f8bff 0%, #2bd4c4 100%);
  --shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  --on-accent: #ffffff;
}

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

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .6s var(--ease), color .6s var(--ease);
}

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

/* ---------- three.js background canvas ---------- */
#bg3d {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: -1; pointer-events: none; display: block;
}

/* ---------- Aurora background ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(124,92,255,0.18), transparent 60%),
    radial-gradient(900px 700px at 0% 100%, rgba(24,214,201,0.14), transparent 55%),
    var(--bg);
  transition: background .6s var(--ease);
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .30;
  mix-blend-mode: normal; animation: drift 18s var(--ease) infinite alternate;
}
.blob.b1 { width: 520px; height: 520px; background: var(--accent); top: -120px; left: -80px; opacity:.18; }
.blob.b2 { width: 460px; height: 460px; background: var(--accent-2); bottom: -120px; right: -60px; opacity:.16; animation-delay: -6s; }
.blob.b3 { width: 380px; height: 380px; background: var(--accent-3); top: 40%; left: 55%; opacity:.10; animation-delay: -11s; }
.grain {
  position: absolute; inset: 0; opacity: .04; mix-blend-mode: overlay;
  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.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(60px,-40px) scale(1.12); }
}

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent-grad); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  padding: 16px clamp(18px, 5vw, 48px);
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 66%, transparent);
  border-bottom: 1px solid var(--stroke);
}
.brand {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; overflow: hidden; background: var(--accent-grad);
  box-shadow: 0 8px 24px -8px var(--accent);
}
.brand-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent-grad); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.theme-toggle {
  height: 40px; padding: 0 12px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--stroke); background: var(--surface);
  display: inline-flex; align-items: center; gap: 8px; transition: .3s var(--ease);
}
.theme-toggle:hover { border-color: var(--stroke-strong); transform: translateY(-1px); }
.theme-toggle .dot {
  width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto;
  background: var(--accent-grad);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}
.theme-label { font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--muted); }

/* ---------- Layout ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 5vw, 48px); }
.section { padding: clamp(60px, 12vh, 120px) 0; }
.section-head { margin-bottom: 38px; }
.kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(28px, 5vw, 44px); font-weight: 800; letter-spacing: -1px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding: clamp(40px, 9vh, 90px) 0 clamp(30px, 6vh, 60px);
  min-height: auto;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--accent-2); padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--stroke); background: var(--surface); margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 25%, transparent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.hero-name {
  font-size: clamp(40px, 8vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -2px;
}
.hero-name .grad {
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title { font-size: clamp(18px, 2.4vw, 24px); color: var(--muted); margin-top: 14px; font-weight: 500; }
.hero-tagline { margin-top: 16px; max-width: 46ch; color: var(--faint); font-size: 16px; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 14px; cursor: pointer; transition: .3s var(--ease); border: 1px solid transparent;
}
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 14px 34px -12px var(--accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -12px var(--accent); }
.btn-ghost { border-color: var(--stroke-strong); background: var(--surface-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }
.hero-meta { list-style: none; display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta li { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--accent-2); }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 26px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--stroke); }
.hero-stats .st { display: flex; flex-direction: column; }
.hero-stats .st .v { font-size: 30px; font-weight: 800; letter-spacing: -1px;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .st .l { font-size: 12px; color: var(--faint); margin-top: 2px; max-width: 12ch; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 26px 0; border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: scroll-x 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track span { font-size: 15px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.marquee-track span::after { content: "✦"; margin-left: 44px; color: var(--accent); }
/* ---------- Hero stats (key highlights in red) ---------- */
.hero-stats .st.is-key .v { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--key); }
.hero-stats .st.is-key .l { color: var(--muted); }

/* ---------- Skills (key bars in red) ---------- */
.skill.is-key .skill-top { color: var(--key); }
.skill.is-key .skill-top .pct { color: var(--key); }
.skill.is-key .skill-fill { background: linear-gradient(90deg, #e11d48, #f87171); box-shadow: 0 0 18px -4px var(--key); }

/* ---------- 3D Card (real business card, not credit) ---------- */
.card-stage { perspective: 1400px; display: grid; place-items: center; }
.card-tilt {
  width: min(420px, 90vw); aspect-ratio: 1.75 / 1; transform-style: preserve-3d;
  transition: transform .15s var(--ease); will-change: transform;
}
.card-flipper {
  position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transition: transform .8s var(--ease);
  border-radius: var(--radius-lg);
  box-shadow: 0 26px 60px -20px rgba(20,30,60,.40), 0 4px 14px -6px rgba(20,30,60,.25);
}
.card-tilt.flipped .card-flipper { transform: rotateY(180deg); }
.card-face {
  position: absolute; inset: 0; border-radius: var(--radius-lg); backface-visibility: hidden;
  padding: 26px 28px; display: flex; flex-direction: column; overflow: hidden;
  background:
    linear-gradient(145deg, #ffffff, #eef2f8);
  border: 1px solid rgba(15,23,42,0.10);
  color: var(--text);
}
/* subtle blue sheen only, no purple/gold */
.card-front {
  background-image:
    radial-gradient(120% 130% at 100% 0%, rgba(37,99,235,0.12), transparent 52%),
    radial-gradient(120% 130% at 0% 100%, rgba(14,165,183,0.12), transparent 52%),
    linear-gradient(160deg, #ffffff, #eef2f8);
}
.card-back {
  transform: rotateY(180deg);
  background-image:
    radial-gradient(120% 130% at 0% 0%, rgba(225,29,72,0.10), transparent 55%),
    linear-gradient(160deg, #ffffff, #f3f5f9);
}
/* Dark theme: card flips to a dark surface so it matches the page */
html[data-theme="dark"] .card-face {
  background: linear-gradient(160deg, #1a1f2b, #141822);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text);
}
html[data-theme="dark"] .card-front {
  background-image:
    radial-gradient(120% 130% at 100% 0%, rgba(79,139,255,0.18), transparent 52%),
    radial-gradient(120% 130% at 0% 100%, rgba(43,212,196,0.16), transparent 52%),
    linear-gradient(160deg, #1a1f2b, #141822);
}
html[data-theme="dark"] .card-back {
  background-image:
    radial-gradient(120% 130% at 0% 0%, rgba(255,77,109,0.14), transparent 55%),
    linear-gradient(160deg, #1a1f2b, #161b26);
}
.card-glare { display: none; } /* cursor sheen disabled — no blob under pointer */
.card-monogram {
  font-weight: 800; font-size: 24px; width: 50px; height: 50px; display: grid; place-items: center;
  border-radius: 14px; background: var(--accent-grad); color: #fff; box-shadow: 0 10px 28px -10px var(--accent);
}
/* FRONT: text on the left, large photo on the right (~70% card height) */
.card-front-inner {
  display: flex; flex-direction: row; align-items: center; gap: 16px;
  width: 100%; height: 100%;
}
.card-front-text {
  display: flex; flex-direction: column; justify-content: space-between;
  flex: 1 1 auto; min-width: 0; height: 100%; gap: 10px;
}
.card-logo { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.card-mid { display: flex; flex-direction: column; gap: 4px; }
.card-name { font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.card-role { font-size: 13px; color: var(--muted); font-weight: 600; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; }
.card-handle { font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: .4px; }
.card-flip-hint { font-size: 11px; color: var(--faint); }
.card-photo {
  flex: 0 0 auto; height: 70%; aspect-ratio: 1 / 1; width: auto; max-width: 70%;
  border-radius: 18px; object-fit: cover; display: block;
  border: 2px solid rgba(225,29,72,.6); /* restrained red ring */
  box-shadow: 0 10px 30px -10px rgba(20,30,60,.4); background: #e9edf3;
}
.card-back { transform: rotateY(180deg); }
/* Back: text on the left, QR on the right — both vertically centered, roomy. */
.card-back-inner {
  margin: auto; display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  gap: 14px; width: 100%;
}
.card-back-text {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0;
  flex: 1 1 auto;            /* take all remaining width so text never starves */
}
.card-back-kicker {
  font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--text); font-weight: 800; line-height: 1.2;
  white-space: nowrap;       /* keep on one line */
}
.card-legal { font-size: 10.5px; color: var(--muted); line-height: 1.25; white-space: nowrap; } /* one line, never wraps mid-phrase */
.card-back-link {
  font-size: 11px; color: var(--accent); text-decoration: none; font-weight: 700; letter-spacing: .3px;
  border: 1px solid var(--stroke); padding: 5px 12px; border-radius: 999px; transition: background .2s ease, color .2s ease;
  white-space: nowrap; /* "Full contact ↓" stays on one line */
}
.card-back-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.card-qr-btn {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit;
}
.card-qr-btn:active .card-qr { transform: scale(.97); }
.card-qr {
  width: 150px; height: 150px; flex: 0 0 auto; aspect-ratio: 1 / 1; border-radius: 14px;
  background: #fff; padding: 9px; display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 10px 30px -12px rgba(20,30,60,.45);
  outline: 1px solid rgba(225,29,72,.45); outline-offset: 3px; /* single restrained red keyline */
  transition: transform .12s ease;
}
.card-qr-hint { font-size: 10px; color: var(--muted); letter-spacing: .3px; }
.card-qr img, .card-qr canvas, .card-qr svg {
  width: 100% !important; height: 100% !important; max-width: 100%; max-height: 100%;
  object-fit: contain; display: block;
}

/* ---------- About ---------- */
.about-text { font-size: clamp(18px, 2.6vw, 26px); max-width: 30ch; line-height: 1.5; color: var(--text); font-weight: 500; }
.about-text { max-width: 60ch; }
.section-head + .about-text { margin-top: -10px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; position: relative; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: var(--accent-grad); box-shadow: 0 0 12px -2px var(--accent);
}
.tl-item { position: relative; padding: 0 0 38px 0; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -27px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.tl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.tl-role { font-size: 20px; font-weight: 700; }
.tl-company { color: var(--accent-2); font-weight: 600; }
.tl-period { font-size: 13px; color: var(--faint); white-space: nowrap; }
.tl-loc { font-size: 13px; color: var(--muted); }
.tl-points { margin-top: 12px; list-style: none; display: grid; gap: 8px; }
.tl-points li { padding-left: 20px; position: relative; color: var(--muted); font-size: 15px; }
.tl-points li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; }
.skill-bars { display: grid; gap: 20px; }
.skill { display: grid; gap: 8px; }
.skill-top { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; }
.skill-top .pct { color: var(--faint); }
.skill-track { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--stroke); }
.skill-fill {
  height: 100%; width: 0; border-radius: 999px; background: var(--accent-grad);
  box-shadow: 0 0 18px -4px var(--accent); transition: width 1.2s var(--ease);
}
.tools { border-left: 1px solid var(--stroke); padding-left: 32px; }
.tools-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--faint); }
.tool-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tool-tags span {
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--stroke); background: var(--surface); color: var(--text);
  transition: .3s var(--ease);
}
/* Career direction: a continuous horizontal marquee that ALWAYS scrolls,
   regardless of screen width. The track is duplicated (2x) in JS and slides
   -50% for a seamless loop. Hover to pause. */
#leadsAsp {
  overflow: hidden; margin-top: 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.asp-track {
  display: flex; gap: 10px; width: max-content;
  animation: asp-marquee 22s linear infinite;
}
#leadsAsp:hover .asp-track { animation-play-state: paused; }
.asp-track span { flex: 0 0 auto; white-space: nowrap; }
@keyframes asp-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .asp-track { animation: none; } #leadsAsp { overflow-x: auto; } }
.tool-tags span:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }

.lang-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 14px; margin-top: 38px; }
.lang-grid .lang {
  border: 1px solid var(--stroke); background: var(--surface); border-radius: 14px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; transition: .3s var(--ease);
}
.lang-grid .lang:hover { border-color: var(--accent); transform: translateY(-2px); }
.lang-grid .lang .ln { font-weight: 700; font-size: 16px; }
.lang-grid .lang .lv { font-size: 13px; color: var(--accent-2); font-weight: 600; }
.cert-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cert-grid .cert {
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--stroke); background: var(--surface); color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
}
.cert-grid .cert::before { content: "✓"; color: var(--accent-2); font-weight: 800; }

/* ---------- LEADS / Growth ---------- */
.leads-top { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin-bottom: 30px; }
.leads-rating { display: flex; flex-direction: column; gap: 10px; }
.leads-badge {
  font-weight: 800; font-size: 18px; padding: 12px 18px; border-radius: 14px; align-self: flex-start;
  background: var(--accent-grad); color: #fff; box-shadow: 0 14px 30px -14px var(--accent);
}
.leads-rec { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-2); }
.leads-quote { margin: 0; padding: 18px 22px; border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0;
  background: var(--surface); color: var(--muted); font-size: 15px; font-style: italic; }
.leads-dims { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; }
.leads-dim { border: 1px solid var(--stroke); background: var(--surface); border-radius: 16px; padding: 20px; transition: .3s var(--ease); }
.leads-dim:hover { border-color: var(--accent); transform: translateY(-3px); }
.leads-dim .dh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.leads-dim .dk { font-weight: 800; font-size: 20px; letter-spacing: 1px;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.leads-dim .dn { font-size: 13px; color: var(--faint); font-weight: 600; }
.leads-dim .row { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.leads-dim .row b { color: var(--text); }
.leads-dim.is-bite { border-left: 3px solid var(--accent-3); }
.leads-dim.is-bite .dk { background: none; color: var(--accent-3); -webkit-background-clip: border-box; background-clip: border-box; }
.leads-dev { margin-top: 30px; }
.leads-dev ul { list-style: none; display: grid; gap: 10px; margin-top: 12px; }
.leads-dev li { padding-left: 22px; position: relative; color: var(--muted); font-size: 15px; }
.leads-dev li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.cv-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  box-shadow: 0 14px 34px -10px var(--accent);
}
.cv-float:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -10px var(--accent); }
.contact-card {
  border: 1px solid var(--stroke); background: var(--surface); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 6px; transition: .3s var(--ease);
  position: relative; overflow: hidden;
}
.contact-card::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(200px 200px at var(--mx,50%) var(--my,50%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.contact-card:hover::after { opacity: 1; }
.contact-card .lbl { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--faint); }
.contact-card .val { font-size: 17px; font-weight: 700; }
.contact-card a.val:hover { color: var(--accent-2); }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw); margin: 40px auto 0; padding: 30px clamp(18px,5vw,48px);
  border-top: 1px solid var(--stroke); display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; color: var(--muted); font-size: 13px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-copy { order: 2; }
  .card-stage { order: 1; }
  .hero-cta, .hero-meta { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; text-align: center; justify-items: center; }
  .hero-stats .st .l { max-width: none; }
  .nav-links { display: none; }
  .skills-grid { grid-template-columns: 1fr; gap: 28px; }
  .tools { border-left: 0; padding-left: 0; border-top: 1px solid var(--stroke); padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
