/* ════════════════════════════════════════════════════════════════════════
   ERIC GOROKHOVSKY — MAKER PORTFOLIO v3
   Hand-written. Zero frameworks. The background is a custom WebGL particle
   engine (js/gl.js); everything that moves here animates transform/opacity
   only. prefers-reduced-motion collapses the site into a calm static mode.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #050608;
  --bg-soft: #0a0c10;
  --ink: #f2f4f6;
  --muted: #8a93a0;
  --line: rgba(138, 147, 160, 0.16);
  --ac: #62d9ff;                /* global accent — cases override locally */
  --ac-live: #7ae582;
  --ac-wind: #62d9ff;
  --ac-penny: #ffb454;
  --ac-lego: #f0625d;
  --ac-site: #b388ff;
  --ac-log: #e8c468;

  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', 'SF Mono', monospace;

  --ease: cubic-bezier(0.65, 0.05, 0, 1);       /* the "expensive" ease */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --pad-x: clamp(1.4rem, 6vw, 7rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-color: #2a3038 var(--bg); }
html.native-scroll { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 1.02rem; line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(98, 217, 255, 0.25); }
.mono {
  font-family: var(--f-mono); font-weight: 400;
  letter-spacing: 0.08em; font-size: 0.72rem; text-transform: uppercase;
}

/* custom cursor active only on fine pointers with JS alive */
html.fine, html.fine a, html.fine button { cursor: none; }

/* ── WEBGL CANVAS + GRAIN ─────────────────────────────────────────────── */
#gl {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%; display: block;
  background: radial-gradient(120% 90% at 50% 10%, #0a1018 0%, var(--bg) 60%);
}
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
}

/* ── PRELOADER — minimal counter, then the whole screen lifts away ────── */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: transparent;       /* the swarm is already alive behind it */
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.pre-core {
  position: absolute; left: 0; right: 0; bottom: 11%;
  text-align: center;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.preloader.lift .pre-core { opacity: 0; transform: translateY(-26px); }
.pre-tag { color: var(--muted); letter-spacing: 0.18em; }

/* PID intro captions — one under each block while it transforms */
.pid-tags {
  position: fixed; inset: 0; z-index: 99; pointer-events: none;
  opacity: 0; transition: opacity 0.7s var(--ease);
}
.pid-tags.in { opacity: 1; }
.pid-tags span {
  position: absolute; top: 62%; left: var(--x); transform: translateX(-50%);
  font-size: 0.62rem; letter-spacing: 0.16em; color: var(--muted);
  text-align: center; white-space: nowrap;
}
.pid-tags em {
  display: block; font-style: normal; font-size: 1.05rem; font-weight: 500;
  margin-bottom: 0.35rem;
}
.pt-p em { color: #ff6b4d; }
.pt-i em { color: #61f28c; }
.pt-d em { color: #8d94ff; }
@media (max-width: 880px) { .pid-tags { display: none; } }

/* content hidden until boot */
.loading #scroll-wrap, .loading .hud, .loading .menu { opacity: 0; }
#scroll-wrap, .hud { transition: opacity 0.8s var(--ease) 0.1s; }

/* ── HUD ──────────────────────────────────────────────────────────────── */
.hud { position: fixed; left: 0; right: 0; z-index: 50; pointer-events: none; }
.hud-top {
  top: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--pad-x);
}
.hud-top > * { pointer-events: auto; }
.logo { font-size: 0.95rem; font-weight: 500; color: var(--ink); }
.logo span { color: var(--ac); }
.nav-links { display: flex; gap: 2.4rem; }
.nav-links a {
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  color: var(--muted); transition: color 0.3s;
  position: relative; padding: 0.3rem 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ac); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.hud-bottom {
  bottom: 0; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; padding: 1.3rem var(--pad-x);
}
.hud-sec { color: var(--ink); }
.hud-sec span:last-child { color: var(--ac); }
.hud-coords { color: var(--muted); }
.hud-progress {
  position: relative; width: clamp(80px, 12vw, 180px); height: 1px;
  background: var(--line); margin-bottom: 0.45em;
}
.hud-progress span {
  position: absolute; inset: 0; background: var(--ac);
  transform: scaleX(0); transform-origin: left;
}
.hud-progress em {
  position: absolute; right: 0; bottom: 8px; font-style: normal; color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* burger / mobile menu */
.burger {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: 0; padding: 10px; z-index: 70;
}
.burger span { width: 26px; height: 1.5px; background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; gap: 1rem; padding: 0 var(--pad-x);
  background: rgba(5, 6, 8, 0.96);
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu a {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.2rem, 9vw, 4rem); letter-spacing: -0.03em; line-height: 1.1;
}

/* ── SECTIONS ─────────────────────────────────────────────────────────── */
#scroll-wrap { position: relative; z-index: 10; }
html.vscroll #content { position: fixed; top: 0; left: 0; width: 100%; will-change: transform; }
.s {
  position: relative; min-height: 100svh;
  padding: clamp(7rem, 16vh, 11rem) var(--pad-x);
  display: flex; flex-direction: column; justify-content: center;
}
.sec-label { color: var(--ac); margin-bottom: 1.6rem; }
.sec-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em;
  max-width: 18ch; margin-bottom: 1.8rem; text-wrap: balance;
}
.sec-lead { color: var(--muted); max-width: 44rem; margin-bottom: 3rem; }

/* split-text mechanics (chars injected by JS) */
.hn-line { display: block; overflow: hidden; }
.ch {
  display: inline-block; transform: translateY(115%) rotate(4deg);
  will-change: transform;
}
.in .ch { animation: chIn 0.9s var(--ease) forwards; animation-delay: calc(var(--i) * 28ms); }
@keyframes chIn { to { transform: none; } }
.w { display: inline-block; overflow: hidden; vertical-align: top; }
.w > i {
  font-style: normal; display: inline-block; transform: translateY(110%);
}
.in .w > i { animation: chIn 0.8s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms); }

[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ── HERO ─────────────────────────────────────────────────────────────── */
.s-hero { justify-content: flex-end; padding-bottom: clamp(5rem, 12vh, 8rem); }
.hero-kicker { color: var(--muted); margin-bottom: 2rem; }
.hero-name {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.7rem, 9.6vw, 10.2rem); line-height: 0.94; letter-spacing: -0.045em;
  margin: 0 0 2.4rem -0.04em; text-transform: uppercase;
}
.hn-line { white-space: nowrap; }
.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem;
}
.hero-sub { max-width: 34rem; color: var(--muted); font-size: 1.06rem; }
.hero-scroll {
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  color: var(--muted); flex-shrink: 0;
}
.scroll-line {
  width: 1px; height: 56px; background: var(--line);
  position: relative; overflow: hidden; display: block;
}
.scroll-line::after {
  content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: var(--ac); animation: scrollDrop 1.8s var(--ease) infinite;
}
@keyframes scrollDrop { to { top: 110%; } }

/* ── PROFILE ──────────────────────────────────────────────────────────── */
.profile-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.profile-copy p { color: var(--muted); margin-bottom: 1.2rem; max-width: 38rem; }
.profile-copy p strong, .profile-copy p:last-child { color: var(--ink); }
.dossier {
  border: 1px solid var(--line); background: rgba(10, 12, 16, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.dossier div {
  display: flex; justify-content: space-between; gap: 1.5rem;
  padding: 0.95rem 1.3rem; border-bottom: 1px solid var(--line);
}
.dossier div:last-child { border-bottom: 0; }
.dossier dt { color: var(--muted); }
.dossier dd { color: var(--ink); text-align: right; }
.dossier .ok { color: var(--ac-live); }

.skills-marquee {
  margin-top: clamp(3rem, 7vh, 5rem); border-block: 1px solid var(--line);
  padding: 1rem 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.skills-track {
  display: flex; gap: 3rem; width: max-content;
  animation: marquee 36s linear infinite;
}
.paused .skills-track { animation-play-state: paused; }
.skills-track span { color: var(--muted); white-space: nowrap; }
.skills-track span::after { content: '·'; color: var(--ac); margin-left: 3rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── SCHOOL PROJECTS ──────────────────────────────────────────────────── */
.proj-list { border-top: 1px solid var(--line); }
.proj {
  position: relative; display: grid;
  grid-template-columns: 3.5rem 1fr auto 2rem; align-items: center; gap: 1.5rem;
  padding: clamp(1.4rem, 3.5vh, 2.4rem) 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease);
}
.proj::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(98, 217, 255, 0.06), transparent 70%);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.5s var(--ease);
}
.proj:hover::before { transform: scaleY(1); }
.proj:hover { padding-left: 1.4rem; }
.proj-idx { color: var(--muted); }
.proj-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.5rem, 4.6vw, 3.4rem); letter-spacing: -0.025em; line-height: 1.05;
  transition: color 0.3s;
}
.proj:hover .proj-title { color: var(--ac); }
.proj-meta { color: var(--muted); text-align: right; display: grid; gap: 0.2rem; }
.proj-meta .live { color: var(--ac-live); font-style: normal; }
.proj-arrow {
  font-size: 1.3rem; color: var(--muted);
  transition: transform 0.4s var(--ease), color 0.3s;
}
.proj:hover .proj-arrow { transform: translate(4px, -4px); color: var(--ac); }

/* floating hover preview image */
.preview {
  position: fixed; z-index: 40; pointer-events: none;
  width: clamp(220px, 24vw, 360px); aspect-ratio: 4 / 3;
  overflow: hidden; opacity: 0; transform: scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  border: 1px solid var(--line);
}
.preview.show { opacity: 1; transform: scale(1); }
.preview img { width: 100%; height: 100%; object-fit: cover; }

/* field log */
.logs { margin-top: clamp(3.5rem, 8vh, 6rem); }
.logs-label { color: var(--muted); margin-bottom: 1.2rem; }
.logs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; }
.log {
  display: flex; align-items: baseline; gap: 1.2rem;
  padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-weight: 500; font-size: 1.02rem;
  transition: padding 0.4s var(--ease), color 0.3s;
}
.log span { color: var(--muted); flex-shrink: 0; }
.log i { margin-left: auto; font-style: normal; color: var(--muted); transition: color 0.3s, transform 0.4s var(--ease); }
.log:hover { padding-left: 0.9rem; color: var(--ac); }
.log:hover i { color: var(--ac); transform: rotate(90deg); }

/* ── PERSONAL ─────────────────────────────────────────────────────────── */
.vaults { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.vault {
  position: relative; border: 1px dashed rgba(138, 147, 160, 0.35);
  padding: 2rem 1.6rem 1.6rem; min-height: 230px;
  display: flex; flex-direction: column; gap: 0.9rem;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(138, 147, 160, 0.045) 14px 15px);
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.vault:hover { border-color: var(--ac); transform: translateY(-6px); }
.vault-id { color: var(--muted); }
.vault-scramble { font-size: 1.05rem; color: var(--ink); letter-spacing: 0.14em; min-height: 1.4em; }
.vault-note { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.vault-status { margin-top: auto; color: var(--muted); }
.vault-status .live { color: var(--ac-live); font-style: normal; }
.vault.locked { opacity: 0.62; }

/* ── CONTACT ──────────────────────────────────────────────────────────── */
.s-contact { justify-content: flex-end; padding-bottom: 6.5rem; }
.contact-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(3.4rem, 14vw, 13rem); line-height: 0.92; letter-spacing: -0.045em;
  margin: 0.6rem 0 1.8rem -0.04em;
}
.contact-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(3rem, 9vh, 6rem); }
.c-link {
  display: inline-block; padding: 1rem 1.7rem;
  border: 1px solid var(--line); color: var(--ink);
  transition: border-color 0.35s, background 0.35s, transform 0.45s var(--ease);
}
.c-link:hover { border-color: var(--ac); background: rgba(98, 217, 255, 0.07); transform: translateY(-3px); }
.footer {
  display: flex; justify-content: space-between; gap: 1rem 3rem; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 1.4rem;
}
.footer p { color: var(--muted); }

/* ── CASE STUDY LAYER ─────────────────────────────────────────────────── */
.case-layer {
  position: fixed; inset: 0; z-index: 80;
  visibility: hidden; pointer-events: none;
}
.case-layer.open { visibility: visible; pointer-events: auto; }
.case-layer::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(3, 4, 6, 0.85);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.case-layer.open::before { opacity: 1; transition-duration: 0.65s; }
.case-scroll {
  position: absolute; inset: 0; overflow-y: auto;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  opacity: 0; transform: translateY(3.5vh);
  transition: opacity 0.55s var(--ease), transform 0.75s var(--ease);
}
.case-layer.open .case-scroll { opacity: 1; transform: none; }
.case {
  display: none; position: relative;
  max-width: 880px; margin: 0 auto;
  padding: clamp(6rem, 14vh, 9rem) var(--pad-x) 7rem;
}
.case.active { display: block; }
.case-layer.open .case.active > * {
  opacity: 0; transform: translateY(36px);
  animation: caseIn 0.8s var(--ease-out) forwards;
}
.case-layer.open .case.active > *:nth-child(1) { animation-delay: 0.1s; }
.case-layer.open .case.active > *:nth-child(2) { animation-delay: 0.18s; }
.case-layer.open .case.active > *:nth-child(3) { animation-delay: 0.26s; }
@keyframes caseIn { to { opacity: 1; transform: none; } }

.case-close {
  position: fixed; top: 1.4rem; right: var(--pad-x); z-index: 5;
  background: rgba(5, 6, 8, 0.7); border: 1px solid var(--line); color: var(--ink);
  padding: 0.7rem 1.1rem; letter-spacing: 0.1em;
  transition: border-color 0.3s, color 0.3s;
  opacity: 0; transform: translateY(-12px);
}
.case-layer.open .case-close {
  opacity: 1; transform: none;
  transition: opacity 0.5s var(--ease) 0.3s, transform 0.5s var(--ease) 0.3s, border-color 0.3s, color 0.3s;
}
.case-close:hover { border-color: var(--ac); color: var(--ac); }

.case-head { margin-bottom: 2.2rem; }
.case-kicker { color: var(--ac); margin-bottom: 1.2rem; }
.case h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 4rem); line-height: 1.02; letter-spacing: -0.03em;
  margin-bottom: 1.6rem; text-wrap: balance;
}
.case-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border: 1px solid var(--line);
}
.case-meta div { padding: 0.9rem 1.1rem; border-right: 1px solid var(--line); }
.case-meta div:last-child { border-right: 0; }
.case-meta dt { color: var(--muted); margin-bottom: 0.15rem; }
.case-meta dd { color: var(--ink); font-size: 0.78rem; }

.case-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }
.case-links a {
  display: inline-block; padding: 0.55rem 0.95rem;
  font-size: 0.68rem; letter-spacing: 0.12em;
  color: var(--ac); border: 1px solid var(--line);
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.case-links a:hover { border-color: var(--ac); background: rgba(255, 255, 255, 0.04); }

.case-hero figcaption a, .case-wide figcaption a, .case-gallery figcaption a {
  color: var(--muted); border-bottom: 1px dotted var(--muted);
  transition: color 0.3s, border-color 0.3s;
}
.case-hero figcaption a:hover, .case-wide figcaption a:hover, .case-gallery figcaption a:hover {
  color: var(--ac); border-bottom-color: var(--ac);
}

.case-hero { border: 1px solid var(--line); margin-bottom: 2.4rem; }
.case-hero img { width: 100%; max-height: 56vh; object-fit: cover; }
.case-hero figcaption, .case-wide figcaption, .case-gallery figcaption {
  padding: 0.7rem 1rem; color: var(--muted); border-top: 1px solid var(--line);
}
.case-body h3 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.02em;
  margin: 2.6rem 0 1rem; color: var(--ink);
}
.case-body h3:first-child { margin-top: 0; }
.case-body p { color: var(--muted); margin-bottom: 1.2rem; max-width: 62ch; }
.case-body p strong { color: var(--ink); }
.case-body a {
  color: var(--ac); border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.case-body a:hover { border-bottom-color: var(--ac); }
.case-list {
  list-style: none; margin: 0 0 1.2rem; max-width: 62ch;
}
.case-list li {
  color: var(--muted); padding: 0.35rem 0 0.35rem 1.4rem; position: relative;
}
.case-list li::before {
  content: '—'; position: absolute; left: 0; color: var(--ac);
}
.case-refs { font-size: 0.72rem; }
.case-refs li::before { content: '·'; }
.case-refs em { font-style: italic; color: var(--ink-soft, var(--muted)); }

.case-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin: 2rem 0;
}
.case-stats div { background: var(--bg-soft); padding: 1.4rem 1.2rem; }
.case-stats em {
  display: block; font-style: normal; font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--ac, var(--ink)); line-height: 1.2;
}
.case .case-stats em { color: var(--ac); }
.case-stats small { color: var(--muted); font-size: 0.82rem; }
.case-gallery { display: grid; gap: 1rem; margin: 1.6rem 0 2rem; }
.case-gallery.g3 { grid-template-columns: repeat(3, 1fr); }
.case-gallery.g2 { grid-template-columns: repeat(2, 1fr); }
.case-gallery figure, .case-wide { border: 1px solid var(--line); }
.case-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case-wide { margin: 1.6rem 0 2rem; }
.case-wide img { width: 100%; }
.case-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.case-chips li {
  border: 1px solid var(--line); color: var(--muted);
  padding: 0.45rem 1rem; border-radius: 99px;
}
.case-note {
  border-left: 2px solid var(--ac); padding: 1rem 1.4rem;
  background: rgba(138, 147, 160, 0.07); color: var(--ink) !important;
}
.case-cite { font-size: 0.68rem; color: var(--muted); }

/* ── CURSOR ───────────────────────────────────────────────────────────── */
.cursor { position: fixed; inset: 0; z-index: 120; pointer-events: none; display: none; }
html.fine .cursor { display: block; }
.cursor-dot {
  position: absolute; top: 0; left: 0; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink); margin: -3px 0 0 -3px; will-change: transform;
}
.cursor-ring {
  position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(242, 244, 246, 0.4); margin: -22px 0 0 -22px;
  display: flex; align-items: center; justify-content: center;
  will-change: transform; transition: background 0.3s, border-color 0.3s;
}
.cursor-ring span { opacity: 0; font-size: 0.55rem; color: var(--bg); transition: opacity 0.2s; }
.cursor.is-link .cursor-ring { background: var(--ink); border-color: var(--ink); }
.cursor.is-link .cursor-ring span { opacity: 1; }
.cursor.is-link .cursor-dot { opacity: 0; }

/* ── RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .hud-coords { display: none; }
  .profile-grid { grid-template-columns: 1fr; }
  .logs-grid { grid-template-columns: 1fr; }
  .vaults { grid-template-columns: 1fr; }
  .proj { grid-template-columns: 2.2rem 1fr 1.4rem; }
  .proj-meta { display: none; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-scroll { flex-direction: row; }
  .scroll-line { width: 56px; height: 1px; }
  .scroll-line::after { animation: scrollSlide 1.8s var(--ease) infinite; top: 0; left: -40%; width: 40%; height: 100%; }
  .case-gallery.g3, .case-gallery.g2 { grid-template-columns: 1fr; }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-meta div { border-bottom: 1px solid var(--line); }
}
@keyframes scrollSlide { to { left: 110%; } }

/* ── REDUCED MOTION ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal], .ch, .w > i { opacity: 1 !important; transform: none !important; }
  #gl { display: none; }
}
