/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0a0a0a;
  color: #ededed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: #d4ff00; color: #0a0a0a; }

a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }

:root {
  --bg: #0a0a0a;
  --bg-soft: #111;
  --surface: #141414;
  --line: rgba(255,255,255,0.08);
  --text: #ededed;
  --muted: #8a8a8a;
  --dim: #555;
  --accent: #d4ff00;
  --accent-soft: rgba(212,255,0,0.12);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
}

/* Hide default cursor on desktop */
@media (hover: hover) {
  *, *::before, *::after { cursor: none !important; }
}

/* Custom cursor */
.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.15s ease;
  will-change: transform;
}
.cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9998;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(212,255,0,0.5);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, transform 0.08s linear;
  will-change: transform;
}
.cursor-hover .cursor-ring {
  width: 56px; height: 56px;
  border-color: var(--accent);
  background: rgba(212,255,0,0.06);
}
.cursor-hover .cursor-dot { transform: translate(-50%, -50%) scale(0); }

/* Page flash transition */
.page-flash {
  position: fixed; inset: 0;
  background: #000;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
}
.page-flash.active {
  animation: flashAnim 0.4s ease forwards;
}
@keyframes flashAnim {
  0%   { opacity: 0; }
  30%  { opacity: 0.18; }
  100% { opacity: 0; }
}

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 150;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
  padding: var(--pad);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-inner {
  max-width: 640px; width: 100%;
  background: #141414;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-overlay.open .modal-inner { transform: none; }
.modal-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.modal-tags span {
  font-family: var(--mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 10px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--muted);
}
.modal-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 500; letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.modal-desc {
  font-size: 16px; line-height: 1.7;
  color: #c8c8c8; margin-bottom: 28px;
}
.modal-details {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 36px; line-height: 1.7;
}
.modal-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 28px;
  background: var(--accent); color: #0a0a0a;
  border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.modal-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212,255,0,0.3);
}
.modal-close {
  position: absolute; top: 28px; right: 28px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  font-size: 16px; color: var(--muted);
  transition: all 0.2s ease;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--text); }
@media (max-width: 600px) { .modal-inner { padding: 28px 24px; } }

/* Now playing badge */
.nav-right { display: flex; align-items: center; gap: 16px; }
.now-playing {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  max-width: 200px;
}
.np-bar {
  width: 3px; border-radius: 2px;
  background: var(--accent);
  animation: npBounce 0.8s ease-in-out infinite alternate;
}
.np-bar:nth-child(1) { height: 8px; }
.np-bar:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.np-bar:nth-child(3) { height: 6px; animation-delay: 0.3s; }
@keyframes npBounce {
  from { transform: scaleY(0.3); }
  to   { transform: scaleY(1); }
}
.np-track {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 130px;
}

/* Intro */
.intro {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  animation: introOut 1.4s cubic-bezier(0.76, 0, 0.24, 1) 1.0s forwards;
}
.intro-mark {
  display: flex; align-items: center; gap: 14px;
  font-size: 28px; font-weight: 500; letter-spacing: -0.02em;
  opacity: 0;
  animation: introIn 0.8s ease forwards;
}
.intro-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes introIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes introOut {
  to { opacity: 0; visibility: hidden; transform: translateY(-30px); }
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--accent);
  z-index: 60;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px var(--accent);
}

/* Background grain & cursor glow */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: screen;
}
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,255,0,0.10) 0%, rgba(212,255,0,0) 60%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.4s ease;
  opacity: 0;
}
@media (hover:hover) { body:hover .cursor-glow { opacity: 1; } }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  z-index: 50;
  background: rgba(10,10,10,0.6);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.01em; font-size: 16px;
}
.logo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.logo-sub { color: var(--muted); font-weight: 400; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a { position: relative; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255,255,255,0.02);
  transition: all 0.25s ease;
}
.nav-cta:hover { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
.nav-cta .arrow { transition: transform 0.25s ease; }
.nav-cta:hover .arrow { transform: translateX(3px); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* Hero */
main { position: relative; z-index: 2; }
.hero {
  min-height: 100vh;
  padding: 140px var(--pad) 80px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px; color: var(--muted);
  width: fit-content; margin-bottom: 36px;
  background: rgba(255,255,255,0.02);
}
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); position: relative; }
.pulse::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: 50%; background: var(--accent);
  opacity: 0.4; animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero-title {
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin-bottom: 40px;
}
.hero-title em {
  font-family: var(--serif);
  font-style: italic; font-weight: 400;
  color: var(--accent); letter-spacing: -0.02em;
}
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-line.is-in > span { transform: translateY(0); }
.reveal-line:nth-child(2) > span { transition-delay: 0.12s; }
.reveal-line:nth-child(3) > span { transition-delay: 0.24s; }

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 560px;
  color: #c8c8c8;
  margin-bottom: 64px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 720px;
}
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-label {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--dim);
}
.meta-value { font-size: 14px; color: var(--text); }
@media (max-width: 600px) { .hero-meta { grid-template-columns: 1fr; gap: 16px; } }

.hero-scroll {
  position: absolute;
  bottom: 40px; left: var(--pad);
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted);
}
.scroll-line {
  width: 60px; height: 1px;
  background: var(--line);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: ''; position: absolute;
  left: -100%; top: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(0); }
  100% { transform: translateX(200%); }
}

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* Section base */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: 120px var(--pad); position: relative;
}
.section-head { margin-bottom: 64px; display: flex; flex-direction: column; gap: 18px; }
.eyebrow {
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
}
.section-head h2 {
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.0; letter-spacing: -0.03em;
  font-weight: 500; max-width: 900px;
}
.section-head h2 em, .contact-title em {
  font-family: var(--serif); font-style: italic;
  font-weight: 400; color: var(--accent);
}

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 820px) { .work-grid { grid-template-columns: 1fr; } }

.work-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-soft);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
  transform-style: preserve-3d;
  will-change: transform;
}
.work-card:hover {
  border-color: rgba(212,255,0,0.35);
  background: #161613;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.work-card:hover .arrow { transform: translate(4px, -2px); }
.work-grid { perspective: 1200px; }

.work-visual {
  aspect-ratio: 16/10;
  background: radial-gradient(circle at 30% 20%, #1c1c1c, #0d0d0d 70%);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.work-visual::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(212,255,0,0.05) 60%, transparent 80%);
  transition: background 0.4s ease;
}
.work-card:hover .work-visual::before {
  background: linear-gradient(135deg, transparent 30%, rgba(212,255,0,0.12) 55%, transparent 80%);
}
.work-glyph {
  position: relative;
  width: 70%;
  padding: 22px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  display: flex; flex-direction: column; gap: 10px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:hover .work-glyph { transform: translateY(-4px) rotate(-1deg); }

/* Cursor spotlight on cards */
.work-card { position: relative; }
.work-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(212,255,0,0.10), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
.work-card:hover::after { opacity: 1; }
.work-card > * { position: relative; z-index: 2; }

.glyph-line { height: 8px; border-radius: 3px; background: rgba(255,255,255,0.08); }
.glyph-line.short { width: 60%; }
.glyph-pill {
  align-self: flex-end;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 10px; font-weight: 500;
}

.pixs-bar { display: flex; gap: 4px; }
.pixs-bar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.pixs-bar span:nth-child(1) { background: #ff5f57; }
.pixs-bar span:nth-child(2) { background: #febc2e; }
.pixs-bar span:nth-child(3) { background: #28c840; }
.pixs-note { color: #ddd; }
.pixs-cursor { width: 6px; height: 12px; background: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.arcks-link { color: var(--accent); font-size: 10px; }
.arcks-preview { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; border-top: 1px dashed var(--line); }
.arcks-line { height: 6px; border-radius: 2px; background: rgba(255,255,255,0.1); }
.arcks-line.short { width: 50%; }

.task-row { display: flex; align-items: center; gap: 8px; }
.task-row .dot { width: 10px; height: 10px; border: 1px solid var(--line); border-radius: 3px; }
.task-row.done .dot { background: var(--accent); border-color: var(--accent); }
.task-row.done { color: var(--dim); text-decoration: line-through; text-decoration-color: var(--dim); }
.task-row .dot.ok { background: #2ecc71; border-color: #2ecc71; }

/* AllKitty featured card */
.work-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.work-card.featured .work-visual {
  border-bottom: none;
  border-right: 1px solid var(--line);
  aspect-ratio: auto;
  min-height: 320px;
}
.work-card.featured .work-glyph { width: 78%; gap: 8px; }
@media (max-width: 820px) {
  .work-card.featured { grid-template-columns: 1fr; }
  .work-card.featured .work-visual { border-right: none; border-bottom: 1px solid var(--line); aspect-ratio: 16/10; min-height: auto; }
}

.kitty-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.kitty-row.sm { font-size: 10.5px; }
.kitty-tag {
  padding: 3px 8px; border-radius: 4px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 10px; letter-spacing: 0.1em;
}
.kitty-status { color: #2ecc71; font-size: 10px; }
.kitty-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.06); overflow: hidden; margin: 4px 0 8px; }
.kitty-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #b3e600); animation: kittyPulse 2.4s ease-in-out infinite; }
@keyframes kittyPulse { 50% { opacity: 0.55; } }
.kitty-row .ok { color: var(--accent); }
.kitty-row .run { color: #ffb84d; }
.kitty-row .dim { color: var(--dim); }
.paw { font-size: 0.7em; vertical-align: middle; }

/* Wide (More) card — full-width single row */
.work-card.wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 2.5fr;
}
.work-card.wide .work-visual {
  border-bottom: none;
  border-right: 1px solid var(--line);
  aspect-ratio: auto;
  min-height: 180px;
}
@media (max-width: 820px) {
  .work-card.wide { grid-template-columns: 1fr; }
  .work-card.wide .work-visual { border-right: none; border-bottom: 1px solid var(--line); aspect-ratio: 16/10; min-height: auto; }
}

/* More card */
.more-glyph { align-items: center; text-align: center; }
.more-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.more-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}

.work-meta { padding: 28px; }
.work-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.work-tags span {
  font-family: var(--mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 10px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--muted);
}
.work-meta h3 { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 10px; }
.work-meta p { color: var(--muted); font-size: 15px; margin-bottom: 22px; max-width: 480px; }
.work-link {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--accent); display: inline-flex; align-items: center; gap: 8px;
}
.arrow { display: inline-block; transition: transform 0.3s ease; }

/* Marquee */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 28px 0;
  background: rgba(255,255,255,0.01);
  margin-top: 40px;
}
.marquee-track {
  display: inline-flex; gap: 48px; align-items: center;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 5vw, 56px);
  color: var(--text);
  animation: marquee 32s linear infinite;
}
.marquee-track .m-dot {
  color: var(--accent);
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.6em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Magnetic CTA */
[data-magnetic] {
  display: inline-flex;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-text p { font-size: 18px; line-height: 1.65; color: #c8c8c8; margin-bottom: 20px; max-width: 560px; }

.about-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px 24px;
  background: var(--surface);
}
.card-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px; gap: 16px;
}
.card-row.last { border-bottom: none; }
.card-row > span {
  color: var(--muted); font-family: var(--mono);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em;
}
.card-row b { font-weight: 500; color: var(--text); }
.card-row a:hover b { color: var(--accent); }

/* Stack */
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 820px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stack-grid { grid-template-columns: 1fr; } }

.stack-col { border-top: 1px solid var(--line); padding-top: 24px; }
.stack-col h4 {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin-bottom: 18px; font-weight: 500;
}
.stack-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.stack-col li {
  font-size: 16px; color: var(--text);
  position: relative; padding-left: 14px;
}
.stack-col li::before {
  content: ''; position: absolute;
  left: 0; top: 9px;
  width: 4px; height: 4px;
  border-radius: 50%; background: var(--dim);
  transition: background 0.2s ease;
}
.stack-col li:hover::before { background: var(--accent); }

/* Contact */
.contact { text-align: center; padding-bottom: 60px; }
.contact .section-head { align-items: center; }
.contact-title { text-align: center; }
.contact-mail {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(28px, 5vw, 56px);
  letter-spacing: -0.01em;
  margin: 32px 0 28px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.contact-mail:hover { color: var(--accent); border-color: var(--accent); }
.contact-mail .arrow { font-style: normal; }
.contact-links {
  display: inline-flex; gap: 14px;
  font-size: 14px; color: var(--muted);
  flex-wrap: wrap; justify-content: center;
}
.contact-links a:hover { color: var(--accent); }
.contact-links span { color: var(--dim); }

/* Footer */
.footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: 40px var(--pad);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--dim); letter-spacing: 0.04em;
}
@media (max-width: 600px) { .footer { flex-direction: column; gap: 12px; } }

/* Music Dock */
.music-dock {
  position: fixed; bottom: 24px; left: 24px; z-index: 60;
  font-family: var(--mono);
}
.music-toggle {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--accent);
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.music-toggle:hover { background: var(--accent); color: var(--bg); transform: scale(1.05); }
.music-toggle.playing .music-icon { animation: spin 4s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.music-panel {
  position: absolute;
  bottom: 60px; left: 0;
  width: 280px;
  background: rgba(20,20,20,0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.music-dock.open .music-panel { opacity: 1; pointer-events: auto; transform: translateY(0); }
.music-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; color: var(--muted);
  margin-bottom: 12px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.music-now {
  color: var(--text); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 180px;
}
.music-list {
  display: flex; flex-direction: column;
  max-height: 160px; overflow-y: auto; margin-bottom: 12px;
}
.music-list::-webkit-scrollbar { width: 4px; }
.music-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.music-track {
  padding: 8px 10px; font-size: 11.5px; color: var(--muted);
  border-radius: 6px; cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.music-track:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.music-track.active { background: var(--accent-soft); color: var(--accent); }
.music-controls {
  display: flex; justify-content: space-around;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.music-controls button {
  width: 36px; height: 36px; border-radius: 8px;
  font-size: 14px; color: var(--muted);
  transition: all 0.2s ease;
}
.music-controls button:hover { background: rgba(255,255,255,0.05); color: var(--accent); }
