/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0b;
  --bg-2: #111114;
  --fg: #f4f4f5;
  --fg-dim: #9a9aa1;
  --fg-mute: #5a5a62;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.15);
  --accent: #ff2e88;
  --accent-2: #00e5ff;
  --accent-glow: rgba(255, 46, 136, 0.35);
  --max: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== CANVAS BACKGROUND ===== */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

/* ===== CUSTOM CURSOR ===== */
.cursor, .cursor-dot {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.6);
  transition: transform 0.18s var(--ease), width 0.2s, height 0.2s, border-color 0.2s;
}
.cursor.hover {
  width: 64px; height: 64px;
  border-color: var(--accent);
  background: var(--accent-glow);
}
.cursor-dot {
  width: 5px; height: 5px;
  background: var(--fg);
}

@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10,10,11,0.55);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 500; letter-spacing: -0.01em;
}
.logo-svg {
  width: 56px; height: 24px;
  overflow: visible;
  flex-shrink: 0;
  transition: transform 0.6s var(--ease);
}
.logo-svg path {
  stroke: var(--fg-dim);
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  animation: drawPath 1.6s var(--ease) 0.3s forwards;
  transition: stroke 0.3s;
}
.logo-svg circle {
  fill: var(--fg);
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: nodePop 0.5s var(--ease) forwards;
  transition: fill 0.3s, r 0.3s;
}
.logo-svg .n1 { animation-delay: 0.3s; }
.logo-svg .n2 { animation-delay: 0.9s; fill: var(--accent); }
.logo-svg .n3 { animation-delay: 1.4s; }
.logo-svg.spin { transform: rotate(360deg) scale(1.1); }
.logo:hover .logo-svg path { stroke: var(--accent); }
.logo:hover .logo-svg .n1, .logo:hover .logo-svg .n3 { fill: var(--accent); }
.logo:hover .logo-svg .n2 { r: 4.5; }
@keyframes drawPath { to { stroke-dashoffset: 0; } }
@keyframes nodePop {
  0% { opacity: 0; transform: scale(0); }
  60% { opacity: 1; transform: scale(1.4); }
  100% { opacity: 1; transform: scale(1); }
}
.logo-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--fg-mute);
  letter-spacing: 0;
  white-space: nowrap;
}
.logo-text strong { color: var(--fg); font-weight: 600; }
.nav-links {
  display: flex; gap: 30px;
}
.nav-links a {
  font-size: 14px;
  color: var(--fg-dim);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a::after {
  content: ''; position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  transition: all 0.25s var(--ease);
}
.nav-cta:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  transform: translateY(-1px);
}
@media (max-width: 700px) {
  .nav-links { display: none; }
}

/* ===== MAIN CONTAINER ===== */
main { position: relative; z-index: 1; }

section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 14vh, 160px) var(--pad);
  position: relative;
}

.section-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 60px;
}
.section-label span {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--accent);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 80px;
}
.hero-meta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-dim);
  width: fit-content;
  margin-bottom: 40px;
  background: rgba(255,255,255,0.02);
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.dot-live { background: #00e676; box-shadow: 0 0 10px #00e676; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(64px, 13vw, 200px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line span {
  display: inline-block;
  position: relative;
  animation: rise 1.2s var(--ease) both;
}
.hero-title .line:nth-child(2) span { animation-delay: 0.15s; }

@keyframes rise {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.hero-sub {
  font-size: clamp(18px, 2vw, 24px);
  max-width: 620px;
  margin-bottom: 50px;
  font-weight: 400;
  animation: fadeIn 1s ease 0.6s both;
}
.muted { color: var(--fg-dim); font-size: 0.9em; }

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

.hero-cta {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeIn 1s ease 0.8s both;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 40px var(--accent-glow);
}
.btn-primary svg { transition: transform 0.3s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--fg);
}
.btn-ghost:hover {
  border-color: var(--fg);
  background: rgba(255,255,255,0.04);
}

/* ===== NOW SCANNING STATUS BAR ===== */
.now-scanning {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0 0 36px;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  animation: fadeIn 1s ease 1s both;
}
.now-scanning::before {
  content: '';
  position: absolute; top: 0; left: -30%;
  width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,46,136,0.18), transparent);
  animation: scanSweep 3.5s linear infinite;
  pointer-events: none;
}
@keyframes scanSweep {
  to { left: 130%; }
}
.ns-label {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  font-size: 10px;
  flex-shrink: 0;
  position: relative;
}
.ns-label .dot { width: 6px; height: 6px; }
.ns-arrow { color: var(--fg-mute); flex-shrink: 0; }
.ns-topic {
  color: var(--fg);
  font-weight: 500;
  position: relative;
  white-space: nowrap;
  display: inline-block;
}
.ns-topic.swap {
  animation: topicSwap 0.5s var(--ease);
}
@keyframes topicSwap {
  0% { opacity: 1; transform: translateY(0); filter: blur(0); }
  40% { opacity: 0; transform: translateY(-8px); filter: blur(4px); }
  60% { opacity: 0; transform: translateY(8px); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@media (max-width: 600px) {
  .now-scanning { font-size: 11px; padding: 10px 14px; gap: 10px; flex-wrap: nowrap; overflow: hidden; }
}

/* ===== PROJECTS CONTEXT ===== */
.projects-context {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
  margin: -40px 0 50px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--line-strong);
}
.projects-context strong { font-weight: 600; }

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: var(--pad);
  display: flex; align-items: center; gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  animation: fadeIn 1s ease 1.2s both;
}
.scroll-line {
  width: 60px; height: 1px;
  background: var(--fg-mute);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scrollLine 2.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ===== STATS STRIP ===== */
.stats {
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
}
.stat {
  padding: 36px clamp(16px, 2.5vw, 32px);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, var(--fg) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 12px;
  color: var(--fg-dim);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.03em;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
}

/* ===== PROJECT META + AWARD ===== */
.proj-meta {
  display: inline-block;
  margin-left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  color: var(--fg-mute);
  letter-spacing: 0.05em;
  vertical-align: middle;
}
.project.awarded::after {
  content: '★';
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 18px;
  filter: drop-shadow(0 0 12px var(--accent-glow));
  animation: trophyShine 3s ease-in-out infinite;
}
@keyframes trophyShine {
  0%, 100% { opacity: 0.7; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}
@media (max-width: 800px) {
  .project.awarded::after { left: 0; top: -8px; transform: none; }
  @keyframes trophyShine {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
  }
}

/* ===== MANIFEST ===== */
.manifest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}
.manifest-text {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.manifest-text span {
  display: block;
}
.manifest-text .dim { color: var(--fg-dim); }
.manifest-note {
  font-size: 18px;
  max-width: 540px;
  color: var(--fg-dim);
  margin-left: auto;
}

/* ===== FIELDS ===== */
.fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.field {
  background: var(--bg);
  padding: 40px 32px;
  position: relative;
  transition: background 0.4s var(--ease);
  cursor: none;
}
.field::before {
  content: attr(data-num);
  position: absolute;
  top: 20px; right: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
}
.field:hover {
  background: var(--bg-2);
}
.field:hover .field-icon {
  color: var(--accent);
  transform: scale(1.1) rotate(-3deg);
}
.field-icon {
  width: 48px; height: 48px;
  margin-bottom: 28px;
  color: var(--fg);
  transition: all 0.4s var(--ease);
}
.field-icon svg { width: 100%; height: 100%; }
.field h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.field p {
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.6;
}

/* ===== FEATURED PROJECT (MIA) ===== */
.featured-project {
  position: relative;
  margin-bottom: 56px;
  padding: clamp(36px, 5vw, 64px);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 46, 136, 0.10) 0%, rgba(0, 229, 255, 0.04) 60%, transparent 100%),
    var(--bg-2);
  cursor: none;
  transition: all 0.5s var(--ease);
  isolation: isolate;
}
.featured-project::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 50%, var(--accent-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
.featured-project:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 80px var(--accent-glow);
}
.featured-project:hover::before { opacity: 1; }
.featured-project > * { position: relative; z-index: 1; }

.fp-orb {
  position: absolute;
  right: -140px;
  top: 50%;
  transform: translateY(-50%);
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent) 0%, transparent 65%);
  opacity: 0.35;
  filter: blur(50px);
  animation: orbFloat 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 0 !important;
}
.fp-orb-2 {
  right: auto; left: -120px;
  top: 80%;
  width: 240px; height: 240px;
  background: radial-gradient(circle at 50% 50%, var(--accent-2) 0%, transparent 65%);
  opacity: 0.18;
  animation-duration: 9s;
  animation-direction: reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-58%) scale(1.12); }
}

.fp-meta {
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.fp-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  padding: 7px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  box-shadow: 0 0 24px var(--accent-glow);
}
.fp-pulse {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fp-title {
  font-size: clamp(40px, 6.5vw, 88px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 20px;
}
.fp-tagline {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 400;
  margin-bottom: 22px;
  letter-spacing: -0.015em;
  display: flex; gap: 16px; flex-wrap: wrap;
}
.fp-tagline span {
  position: relative;
  display: inline-block;
  animation: taglineRise 0.8s var(--ease) backwards;
}
.fp-tagline span:nth-child(1) { animation-delay: 0.1s; color: var(--fg); }
.fp-tagline span:nth-child(2) { animation-delay: 0.25s; color: var(--accent); }
.fp-tagline span:nth-child(3) {
  animation-delay: 0.4s;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes taglineRise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fp-desc {
  font-size: 16px;
  color: var(--fg-dim);
  max-width: 640px;
  margin-bottom: 30px;
  line-height: 1.65;
}
.fp-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.fp-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--fg);
  letter-spacing: 0.05em;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
}
@media (max-width: 700px) {
  .fp-orb { width: 220px; height: 220px; right: -100px; }
  .fp-orb-2 { width: 160px; height: 160px; left: -80px; }
}

/* ===== PROJECTS ===== */
.projects-list {
  border-top: 1px solid var(--line);
}
.project {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 0.4s var(--ease);
  cursor: none;
}
.project::before {
  content: '';
  position: absolute;
  inset: 0 -20px;
  background: linear-gradient(90deg, transparent, rgba(255, 46, 136, 0.04), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
  border-radius: var(--radius);
}
.project:hover::before { opacity: 1; }
.project:hover { padding-left: 12px; }
.project:hover .project-arrow { color: var(--accent); transform: translateX(8px) rotate(-15deg); }
.project:hover h3 { color: var(--accent); }
.project-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
}
.project-main h3 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  transition: color 0.3s var(--ease);
}
.project-main p {
  font-size: 15px;
  color: var(--fg-dim);
  max-width: 540px;
}
.project-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.project-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}
.project-arrow {
  color: var(--fg-dim);
  transition: all 0.4s var(--ease);
}

@media (max-width: 800px) {
  .project {
    grid-template-columns: 50px 1fr auto;
    gap: 16px;
    padding: 28px 0;
  }
  .project-tags { display: none; }
  .project-main p { font-size: 14px; }
}

/* ===== TICKER ===== */
.ticker {
  max-width: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.ticker-track {
  display: flex; gap: 40px;
  align-items: center;
  padding: 30px 0;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.ticker-track span:not(.dot-sep) {
  background: linear-gradient(135deg, var(--fg) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ticker-track .dot-sep {
  color: var(--fg-mute);
  font-size: 0.6em;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== CONTACT ===== */
.contact-title {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 1100px;
  margin-bottom: 28px;
}
.contact-sub {
  font-size: 20px;
  color: var(--fg-dim);
  margin-bottom: 60px;
}
.contact-links {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.contact-link {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease);
  cursor: none;
}
.contact-link:hover { padding-left: 12px; }
.contact-link:hover .cl-value { color: var(--accent); }
.contact-link:hover svg { color: var(--accent); transform: translateX(6px) rotate(-15deg); }
.cl-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.cl-value {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
}
.contact-link svg { color: var(--fg-dim); transition: all 0.4s var(--ease); }

@media (max-width: 600px) {
  .contact-link {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .cl-label {
    grid-column: 1 / -1;
    font-size: 11px;
  }
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--line);
  padding: 30px var(--pad);
  position: relative;
  z-index: 1;
}
.foot-row {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.05em;
}
.foot-mid { color: var(--fg-dim); }
.status { display: flex; align-items: center; gap: 8px; color: var(--fg-dim); }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== GIMMICKS ===== */

/* click ripple */
.ripple {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  mix-blend-mode: screen;
  animation: rippleOut 0.9s var(--ease) forwards;
}
@keyframes rippleOut {
  from { width: 0; height: 0; opacity: 1; transform: translate(-50%, -50%); }
  to { width: 600px; height: 600px; opacity: 0; transform: translate(-50%, -50%); }
}

/* toast */
.toast {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(150%);
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
  z-index: 10000;
  box-shadow: 0 10px 50px var(--accent-glow);
  transition: transform 0.5s var(--ease);
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* confetti */
.confetti {
  position: fixed;
  width: 8px; height: 8px;
  pointer-events: none;
  z-index: 9997;
  border-radius: 2px;
}

/* glitch */
.glitch-on {
  animation: glitch 0.4s steps(2);
}
@keyframes glitch {
  0% { transform: translate(0,0); text-shadow: none; }
  20% { transform: translate(-3px,1px); text-shadow: 2px 0 var(--accent), -2px 0 var(--accent-2); }
  40% { transform: translate(2px,-1px); text-shadow: -2px 0 var(--accent-2), 2px 0 var(--accent); }
  60% { transform: translate(-1px,2px); text-shadow: 2px 0 var(--accent), -2px 0 var(--accent-2); }
  80% { transform: translate(1px,-2px); text-shadow: none; }
  100% { transform: translate(0,0); text-shadow: none; }
}

/* shake */
.shake { animation: shake 0.5s; }
@keyframes shake {
  0%, 100% { transform: translate(0,0); }
  10% { transform: translate(-6px,2px) rotate(-0.5deg); }
  20% { transform: translate(6px,-3px) rotate(0.5deg); }
  30% { transform: translate(-5px,3px); }
  40% { transform: translate(4px,-2px); }
  50% { transform: translate(-3px,2px); }
  60% { transform: translate(3px,-1px); }
  70% { transform: translate(-2px,1px); }
  80% { transform: translate(1px,-1px); }
  90% { transform: translate(-1px,0); }
}

/* tilt setup */
.field { transform-style: preserve-3d; transition: transform 0.3s var(--ease), background 0.4s var(--ease); }

/* command palette */
.palette {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 18vh;
  background: rgba(10,10,11,0.7);
  backdrop-filter: blur(8px);
}
.palette.open { display: flex; animation: fadeIn 0.25s ease; }
.palette-box {
  width: min(560px, 92vw);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px var(--accent-glow);
}
.palette-input {
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  outline: none;
}
.palette-input::placeholder { color: var(--fg-mute); }
.palette-list { max-height: 50vh; overflow-y: auto; }
.palette-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  font-size: 14px;
  color: var(--fg-dim);
  cursor: pointer;
  transition: all 0.15s;
  border-left: 2px solid transparent;
}
.palette-item:hover, .palette-item.active {
  background: rgba(255,46,136,0.08);
  color: var(--fg);
  border-left-color: var(--accent);
}
.palette-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--fg-mute);
}

/* logo spin on click */
.logo-mark { transition: transform 0.6s var(--ease); }
.logo-mark.spin { transform: rotate(720deg) scale(1.15); }

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

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
