/* ============================================================
   khanchevskii.com — styles
   Glassmorphism-led, obsidian + aurora. See DESIGN.md.
   ============================================================ */

:root {
  /* Neutrals */
  --bg: #08080f;
  --bg-2: #0d0d18;
  --surface: #13131f;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #ececf4;
  --text-dim: #a6a6c0;
  --text-faint: #6e6e88;

  /* Accents */
  --cyan: #38e8ff;
  --violet: #8b5cf6;
  --coral: #ff8a5b;
  --primary-ink: #04121a;

  --ok: #4ade80;

  /* Shadows */
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, .45), 0 24px 60px rgba(0, 0, 0, .5);
  --glow-cyan: 0 0 0 1px rgba(56, 232, 255, .25), 0 10px 40px rgba(56, 232, 255, .18);

  /* Easing */
  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --ease-in-out: cubic-bezier(.645, .045, .355, 1);

  --maxw: 1120px;
  --radius: 24px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
/* JS-driven smooth scroll takes over when Lenis is active */
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: auto;
}

h1, h2, h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

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

::selection { background: rgba(56, 232, 255, .25); color: #fff; }

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

/* ---------- Aurora background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 70% -10%, rgba(139, 92, 246, .10), transparent 60%),
    radial-gradient(900px 700px at 10% 110%, rgba(56, 232, 255, .08), transparent 60%),
    var(--bg);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  will-change: transform;
}
.blob-1 {
  width: 46vw; height: 46vw;
  top: -10vw; left: -6vw;
  background: radial-gradient(circle, rgba(56, 232, 255, .55), transparent 70%);
  animation: drift1 24s var(--ease-in-out) infinite alternate;
}
.blob-2 {
  width: 40vw; height: 40vw;
  top: 20vh; right: -10vw;
  background: radial-gradient(circle, rgba(139, 92, 246, .5), transparent 70%);
  animation: drift2 30s var(--ease-in-out) infinite alternate;
}
.blob-3 {
  width: 34vw; height: 34vw;
  bottom: -12vw; left: 30vw;
  background: radial-gradient(circle, rgba(255, 138, 91, .35), transparent 70%);
  animation: drift3 28s var(--ease-in-out) infinite alternate;
}
@keyframes drift1 { to { transform: translate3d(8vw, 6vh, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-10vw, 4vh, 0) scale(1.1); } }
@keyframes drift3 { to { transform: translate3d(6vw, -8vh, 0) scale(1.2); } }

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 40%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 40%, #000 30%, transparent 85%);
}
.grain {
  position: absolute;
  inset: -50%;
  opacity: .035;
  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.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 232, 255, .9), rgba(56, 232, 255, 0) 65%);
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-100px, -100px, 0);
  mix-blend-mode: screen;
  transition: width .2s var(--ease-out), height .2s var(--ease-out);
  display: none;
}
.cursor.is-active { display: block; }
.cursor.is-hover { width: 54px; height: 54px; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(56, 232, 255, .6);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: min(var(--maxw), calc(100% - 32px));
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 16px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-soft);
  transition: transform .4s var(--ease-out), background .3s ease;
}
.nav.is-hidden { transform: translateX(-50%) translateY(-140%); }
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  font-size: .85rem;
  color: var(--primary-ink);
  background: linear-gradient(135deg, var(--cyan), #7ff0ff);
  box-shadow: 0 4px 14px rgba(56, 232, 255, .35);
}
.nav__name { font-weight: 600; font-size: .95rem; letter-spacing: -0.01em; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: .92rem;
  color: var(--text-dim);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color .2s ease, background .2s ease;
}
.nav__links a:hover { color: var(--text); background: var(--glass-strong); }
.nav__cta {
  color: var(--primary-ink) !important;
  background: var(--cyan);
  font-weight: 600;
}
.nav__cta:hover { background: #5fefff !important; }
@media (max-width: 640px) {
  /* Keep every anchor reachable on mobile; just tighten the pill instead of hiding links */
  .nav { padding: 8px 8px 8px 12px; }
  .nav__name { display: none; }
  .nav__links { gap: 2px; }
  .nav__links a { padding: 8px; font-size: .82rem; }
  .nav__cta { padding: 8px 12px; }
}
@media (max-width: 360px) {
  .nav__links a { padding: 7px 6px; font-size: .78rem; }
}

/* ---------- Layout helpers ---------- */
.section {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) 0;
}
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__lead { color: var(--text-dim); margin-top: 14px; font-size: 1.1rem; }
.label {
  font-family: "JetBrains Mono", monospace;
  font-size: .78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  min-height: 48px;
  border-radius: 14px;
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  transition: transform .18s var(--ease-out), background .2s ease,
              box-shadow .25s var(--ease-out), border-color .2s ease;
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  background: linear-gradient(135deg, var(--cyan), #76eeff);
  color: var(--primary-ink);
  box-shadow: 0 6px 20px rgba(56, 232, 255, .25);
}
.btn--primary:hover {
  box-shadow: 0 10px 34px rgba(56, 232, 255, .4);
  transform: translateY(-2px);
}
.btn--ghost {
  background: var(--glass);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: var(--glass-strong); border-color: var(--cyan); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: .82rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: fit-content;
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}
.hero__title {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .word { display: inline-block; will-change: transform; }
.hero__title .accent {
  background: linear-gradient(120deg, var(--cyan), var(--violet) 70%, var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  max-width: 560px;
  color: var(--text-dim);
  font-size: 1.2rem;
  margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

/* Status dot color (used in the About id-card) */
.c-ok { color: var(--ok); }

/* ---------- Homelab topology (hero centerpiece) ---------- */
.topology {
  width: min(640px, 100%);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  overflow: hidden;
}
.topology__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .02);
  font-family: "JetBrains Mono", monospace;
  font-size: .78rem;
}
.topology__title { display: inline-flex; align-items: center; gap: 9px; color: var(--text-dim); }
.topology__led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 10px var(--ok);
}
.topology__hint { color: var(--text-faint); font-size: .72rem; }

.topology__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
}
.topology__links {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}
.topology__links .link {
  fill: none;
  stroke: rgba(255, 255, 255, .16);
  stroke-width: 1.4;
}
.topology__links .link--active { stroke: rgba(56, 232, 255, .7); }
.topology__links .link--dashed { stroke-dasharray: 5 5; stroke: rgba(139, 92, 246, .5); }
.topology__links .link--lab { stroke: rgba(255, 138, 91, .4); }
.topology__links .packet {
  fill: var(--cyan);
  filter: drop-shadow(0 0 5px rgba(56, 232, 255, .9));
}
.topology__links .packet--violet { fill: var(--violet); filter: drop-shadow(0 0 5px rgba(139, 92, 246, .9)); }
.topology__links .packet--coral { fill: var(--coral); filter: drop-shadow(0 0 5px rgba(255, 138, 91, .9)); }

.node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(16, 18, 30, .82);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: .74rem;
  white-space: nowrap;
  cursor: pointer;
  z-index: 2;
  transition: transform .2s var(--ease-out), border-color .2s ease,
              box-shadow .25s var(--ease-out), background .2s ease;
}
.node:hover, .node:focus-visible {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  background: rgba(20, 24, 40, .92);
  z-index: 4;
}
.node.is-dim { opacity: .35; }
.node__ic { width: 16px; height: 16px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.node__label { font-weight: 500; letter-spacing: 0.01em; }
.node--core { background: rgba(16, 18, 30, .9); }
.node--core .node__ic { stroke: var(--text-dim); }
.node--fw .node__ic { stroke: var(--cyan); }
.node--lab .node__ic { stroke: var(--coral); }
.node--lab:hover, .node--lab:focus-visible { border-color: var(--coral); box-shadow: 0 0 0 1px rgba(255,138,91,.3), 0 10px 40px rgba(255,138,91,.18); }
.node--sm { font-size: .7rem; padding: 7px 10px; }
.node--hub { border-color: var(--border-strong); background: rgba(16, 18, 30, .9); }
.node--hub .node__ic { stroke: var(--cyan); }

/* Zone backdrops group the two sites */
.zone {
  position: absolute;
  z-index: 1;
  border: 1px dashed rgba(255, 255, 255, .09);
  border-radius: 18px;
  background: rgba(255, 255, 255, .014);
}
.zone__tag {
  position: absolute;
  top: 9px; left: 13px;
  font-family: "JetBrains Mono", monospace;
  font-size: .62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.topo-tip {
  position: absolute;
  z-index: 6;
  max-width: 220px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 12, 22, .96);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lift);
  font-size: .8rem;
  line-height: 1.45;
  color: var(--text-dim);
  pointer-events: none;
  transform: translate(-50%, -100%);
  transition: opacity .18s ease;
}
.topo-tip[hidden] { display: none; }

@media (max-width: 560px) {
  .topology__stage { aspect-ratio: 4 / 5; }
  /* Icon-only nodes on mobile so wide labels never collide; tap shows the role */
  .node { padding: 8px; gap: 0; }
  .node__ic { width: 15px; height: 15px; }
  .node__label { display: none; }
  .zone__tag { font-size: .58rem; }
}

/* ---------- Stats ---------- */
.stats { width: min(var(--maxw), calc(100% - 40px)); margin: 0 auto; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  padding: 26px 22px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}
.stat__num {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #fff, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}
.stat__label { font-size: .85rem; color: var(--text-dim); line-height: 1.4; }
@media (max-width: 860px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Projects ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .3s var(--ease-out), border-color .3s ease, box-shadow .35s var(--ease-out);
}
.project__glow {
  position: absolute;
  top: -40%; right: -30%;
  width: 70%; height: 80%;
  background: radial-gradient(circle, rgba(56, 232, 255, .18), transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.project:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lift); }
.project:hover .project__glow { opacity: 1; }
.project__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.project__index {
  font-family: "JetBrains Mono", monospace;
  font-size: .8rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}
.project__status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
  color: var(--text-dim);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(56, 232, 255, .6);
  animation: pulse 2.2s var(--ease-out) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 232, 255, .5); }
  70% { box-shadow: 0 0 0 8px rgba(56, 232, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 232, 255, 0); }
}
.project h3 { font-size: 1.5rem; margin-bottom: 12px; }
.project__desc { color: var(--text-dim); font-size: .97rem; margin-bottom: 20px; }
.tags, .chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li, .chips li {
  font-family: "JetBrains Mono", monospace;
  font-size: .74rem;
  color: var(--text-dim);
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .02);
}
@media (max-width: 900px) { .projects { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.about__text h2 { margin-bottom: 22px; }
.about__text p { color: var(--text-dim); margin-bottom: 18px; max-width: 54ch; }
.chips { margin-top: 28px; }
.about__card {
  position: sticky;
  top: 100px;
}
.idcard {
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-lift);
}
.idcard__row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.idcard__row:last-child { border-bottom: 0; }
.idcard__k {
  font-family: "JetBrains Mono", monospace;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.idcard__v { font-size: .92rem; text-align: right; font-weight: 500; }
@media (max-width: 820px) {
  .about__grid { grid-template-columns: 1fr; gap: 36px; }
  .about__card { position: static; }
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; position: relative; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet), transparent);
  opacity: .5;
}
.tl { position: relative; padding: 0 0 44px 32px; }
.tl:last-child { padding-bottom: 0; }
.tl__node {
  position: absolute;
  left: -28px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(56, 232, 255, .12);
}
.tl--future .tl__node { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 246, .12); }
.tl__when {
  font-family: "JetBrains Mono", monospace;
  font-size: .78rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
}
.tl--future .tl__when { color: var(--violet); }
.tl__title { font-size: 1.3rem; margin: 6px 0 6px; }
.tl__meta { color: var(--text-dim); font-size: .95rem; max-width: 48ch; }

/* ---------- Contact ---------- */
.contact__card {
  text-align: center;
  padding: clamp(40px, 7vw, 80px) 28px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-lift);
  position: relative;
  overflow: hidden;
}
.contact__card::before {
  content: "";
  position: absolute;
  top: -60%; left: 50%; transform: translateX(-50%);
  width: 120%; height: 120%;
  background: radial-gradient(ellipse at center, rgba(56, 232, 255, .12), transparent 60%);
  pointer-events: none;
}
.contact__title { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 18px; position: relative; }
.contact__lead { color: var(--text-dim); max-width: 46ch; margin: 0 auto 36px; font-size: 1.1rem; position: relative; }
.contact__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- Footer ---------- */
.footer {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 56px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: .88rem;
  border-top: 1px solid var(--border);
}
.footer__note { font-family: "JetBrains Mono", monospace; }

/* ---------- Reveal (JS adds .is-in) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  will-change: transform, opacity;
}
[data-reveal].is-in { opacity: 1; transform: translateY(0); }

/* ---------- Tilt setup ---------- */
.tilt { transform-style: preserve-3d; }

/* ---------- Motion / pointer guards ---------- */
@media (hover: none), (pointer: coarse) {
  .cursor { display: none !important; }
}

/* ---------- Project repo link ---------- */
.project__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: .82rem;
  color: var(--cyan);
  transition: color .2s ease;
}
.project__link svg { width: 15px; height: 15px; transition: transform .2s var(--ease-out); }
.project__link:hover { color: #7ff0ff; }
.project__link:hover svg { transform: translate(2px, -2px); }

/* ---------- ID card link ---------- */
.idcard__link { color: var(--cyan); transition: color .2s ease; }
.idcard__link:hover { color: #7ff0ff; text-decoration: underline; }

/* ---------- Footer social icons ---------- */
.footer__social { display: inline-flex; gap: 8px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: var(--glass);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .18s var(--ease-out);
}
.footer__social a:hover {
  color: var(--text);
  border-color: var(--cyan);
  background: var(--glass-strong);
  transform: translateY(-2px);
}
.footer__social svg { width: 19px; height: 19px; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .blob { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .pulse { animation: none; }
}
