/* ── RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

/* ── DESIGN TOKENS (Original Lime Portfolio Theme) ── */
:root {
  --bg:        #070707;
  --bg2:       #0e0e0e;
  --surface:   #141414;
  --surface2:  #1a1a1a;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);
  --text:      #F2EFE9;
  --muted:     #888888;
  --dim:       #444444;
  --accent:    #CAFF00;       /* electric lime — signature accent */
  --accent-dk: rgba(202,255,0,0.12);
  --red:       #FF4040;
  --ff-head:   'Archivo', sans-serif;
  --ff-body:   'Space Grotesk', sans-serif;
  --ff-mono:   'Space Mono', monospace;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease2:     cubic-bezier(0.4, 0, 0.2, 1);
  --pad:       clamp(20px, 5vw, 80px);
  --max:       1440px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none; /* Hide default cursor */
}

a, button { cursor: none; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { border: none; background: none; font-family: inherit; }

/* ── CUSTOM CURSOR ─────────────────────────────────── */
#cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  mix-blend-mode: difference;
}
#c-dot {
  width: 7px; height: 7px;
  background: #fff; border-radius: 50%;
  position: absolute;
  transform: translate(-50%,-50%);
  transition: width .15s, height .15s;
}
#c-ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%,-50%);
  transition: width .35s var(--ease), height .35s var(--ease),
              border-color .25s, opacity .25s;
}
#c-label {
  position: absolute; transform: translate(-50%,-50%);
  font-family: var(--ff-mono);
  font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
body.cur-link #c-dot { width: 0; height: 0; }
body.cur-link #c-ring { width: 50px; height: 50px; border-color: var(--accent); }
body.cur-view  #c-dot { width: 0; height: 0; }
body.cur-view  #c-ring { width: 56px; height: 56px; border-color: var(--accent); background: var(--accent); mix-blend-mode: normal; }
body.cur-view  #c-label { opacity: 1; color: var(--bg); }

/* ── SCROLL PROGRESS ───────────────────────────────── */
#prog {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--accent); z-index: 999;
  width: 0%; transition: width .08s linear;
}

/* ── LOADER ────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0;
  background: var(--bg); z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 32px;
  transition: opacity .7s var(--ease), visibility .7s;
}
#loader.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.ld-word {
  font-family: var(--ff-head);
  font-size: clamp(48px, 10vw, 130px);
  font-weight: 900; letter-spacing: -.04em;
  overflow: hidden; line-height: 1;
}
.ld-word span {
  display: inline-block;
  transform: translateY(110%);
  animation: slideUp .8s var(--ease) forwards;
}
.ld-bar {
  width: 200px; height: 1px;
  background: var(--border2);
  position: relative; overflow: hidden;
}
.ld-bar::after {
  content: '';
  position: absolute; top: 0; left: 0;
  height: 100%; width: 0;
  background: var(--accent);
  animation: ldbar 1s var(--ease2) forwards .2s;
}
@keyframes ldbar { to { width: 100%; } }

/* ── NAV ───────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
nav.solid {
  background: rgba(7,7,7,.88);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-color: var(--border);
}
.nav-logo {
  font-family: var(--ff-head);
  font-weight: 900; font-size: 20px;
  letter-spacing: -.04em;
}
.nav-logo em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--ff-body); font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--accent) !important;
  color: var(--bg) !important;
  padding: 9px 18px; border-radius: 100px;
  font-weight: 700 !important;
  font-family: var(--ff-body) !important;
  transition: transform .2s, box-shadow .2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(202,255,0,.35); }
.nav-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-menu-btn span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: .3s; }

/* ── HERO ──────────────────────────────────────────── */
#hero {
  min-height: 100svh; min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 140px var(--pad) 80px;
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 65% 35%, rgba(202,255,0,.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 15% 85%, rgba(80,0,200,.05) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 85% 75%, rgba(255,64,64,.03) 0%, transparent 55%);
}
.hero-noise {
  position: absolute; inset: 0; opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px;
}
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at center, black 20%, transparent 80%);
  opacity: .35;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 36px;
  opacity: 0; animation: fadeUp .7s var(--ease) .9s forwards;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: blink 2.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero-title {
  font-family: var(--ff-head);
  font-weight: 900;
  font-size: clamp(54px, 11vw, 150px);
  line-height: .88; letter-spacing: -.04em;
  margin-bottom: 52px;
}
.hero-line {
  overflow: hidden; display: block;
  padding-bottom: 0.22em;
  margin-bottom: -0.22em;
}
.hero-line-inner {
  display: block;
  transform: translateY(105%);
  animation: slideUp .95s var(--ease) forwards;
}
.hero-line:nth-child(1) .hero-line-inner { animation-delay: .35s; }
.hero-line:nth-child(2) .hero-line-inner { animation-delay: .52s; }
.hero-line:nth-child(3) .hero-line-inner { animation-delay: .68s; }
.hero-title .lt {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.45);
  font-style: italic;
  font-weight: 300;
}
.hero-title .dot {
  display: inline-block;
  width: 0.12em; height: 0.12em;
  background: var(--accent);
  vertical-align: baseline;
  margin-left: 0.04em;
}

.hero-foot {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 32px;
  opacity: 0; animation: fadeUp .8s var(--ease) 1.05s forwards;
}
.hero-desc {
  max-width: 480px; font-size: 15px;
  color: var(--muted); line-height: 1.75;
}
.hero-actions { display: flex; align-items: center; gap: 16px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--bg);
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; padding: 14px 24px;
  border-radius: 100px;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 0 24px rgba(202,255,0,.3); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--border2);
  color: var(--muted);
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 14px 24px; border-radius: 100px;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

/* ── MARQUEE ───────────────────────────────────────── */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2); padding: 14px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex; gap: 0;
  animation: marqueeRun 28s linear infinite;
  white-space: nowrap;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.m-item {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 0 28px;
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); flex-shrink: 0;
}
.m-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex-shrink:0; }
@keyframes marqueeRun { to { transform: translateX(-50%); } }

/* ── SECTION SHARED ────────────────────────────────── */
section { padding: 110px var(--pad); position: relative; }
.s-head {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 72px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.s-num {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.s-title {
  font-family: var(--ff-head); font-weight: 900;
  font-size: clamp(34px, 5vw, 68px);
  letter-spacing: -.035em; line-height: 1;
}
.s-link {
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 8px;
  transition: color .2s;
}
.s-link:hover { color: var(--accent); }

/* ── WORK GRID ── */
#work { background: var(--bg2); }
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.work-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.wc-preview {
  aspect-ratio: 16 / 8.5;
  width: 100%;
  background: #000;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wc-img, .wc-video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .5s var(--ease), opacity .3s var(--ease);
  opacity: 0.85;
}
.work-card:hover .wc-img, .work-card:hover .wc-video {
  transform: scale(1.04);
  opacity: 1;
}
.wc-preview-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(7, 7, 7, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 12px;
  border-radius: 100px;
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 3;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.wc-preview-counter {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
  z-index: 3;
}

.wc-details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.wc-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.wc-cat {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.wc-year {
  font-family: var(--ff-mono); font-size: 10px;
  color: var(--dim);
}
.wc-title {
  font-family: var(--ff-head); font-weight: 700;
  font-size: 20px; letter-spacing: -.02em;
  margin-bottom: 8px;
  color: #fff;
}
.wc-desc {
  font-size: 13.5px; color: var(--muted);
  line-height: 1.6; margin-bottom: 20px;
}
.wc-actions {
  display: flex; gap: 10px;
  margin-top: auto;
}
.wc-actions .btn-primary, .wc-actions .btn-ghost {
  padding: 8px 18px;
  font-size: 10.5px;
  border-radius: 100px; /* Keep pill shape buttons */
}

/* ── PROJECTS LIBRARY ───────────────────────────────── */
#library { background: var(--bg); }
.lib-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lib-card {
  position: relative; overflow: hidden;
  border-radius: 8px; display: block;
  aspect-ratio: 3 / 4;
  transition: transform .4s var(--ease);
  border: 1px solid var(--border);
}
.lib-card:hover { transform: translateY(-4px); }
.lib-bg {
  position: absolute; inset: 0;
  transition: transform .7s var(--ease);
}
.lib-card:hover .lib-bg { transform: scale(1.04); }
.lib-bg-1 { background: linear-gradient(160deg, #0a0014 0%, #1e0040 50%, #3d0080 100%); }
.lib-bg-2 { background: linear-gradient(160deg, #00120a 0%, #003320 50%, #005c38 100%); }
.lib-bg-3 { background: linear-gradient(160deg, #120800 0%, #381a00 50%, #6b3200 100%); }
.lib-art {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none;
}
.lib-art::before, .lib-art::after {
  content: ''; position: absolute; border-radius: 50%;
}
.lib-bg-1 .lib-art::before {
  width: 400px; height: 400px; top: -100px; right: -100px;
  background: radial-gradient(circle, rgba(140,60,255,.3) 0%, transparent 65%);
}
.lib-bg-1 .lib-art::after {
  width: 200px; height: 200px; bottom: 80px; left: -50px;
  background: radial-gradient(circle, rgba(202,255,0,.15) 0%, transparent 70%);
}
.lib-bg-2 .lib-art::before {
  width: 350px; height: 350px; bottom: -80px; right: -80px;
  background: radial-gradient(circle, rgba(0,220,100,.25) 0%, transparent 65%);
}
.lib-bg-2 .lib-art::after {
  width: 160px; height: 160px; top: 60px; left: 40px;
  background: radial-gradient(circle, rgba(202,255,0,.12) 0%, transparent 70%);
}
.lib-bg-3 .lib-art::before {
  width: 450px; height: 450px; top: -150px; left: -120px;
  background: radial-gradient(circle, rgba(255,120,30,.3) 0%, transparent 65%);
}
.lib-bg-3 .lib-art::after {
  width: 180px; height: 180px; bottom: 60px; right: 40px;
  background: radial-gradient(circle, rgba(202,255,0,.1) 0%, transparent 70%);
}
.lib-stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg, transparent, transparent 40px,
    rgba(255,255,255,.015) 40px, rgba(255,255,255,.015) 41px
  );
}
.lib-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 45%, transparent 100%);
}
.lib-content {
  position: absolute; inset: 0; padding: 32px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.lib-num {
  font-family: var(--ff-head); font-weight: 900;
  font-size: clamp(60px, 10vw, 120px);
  letter-spacing: -.06em; line-height: 1;
  color: rgba(255,255,255,.07);
  position: absolute; top: 20px; right: 28px;
}
.lib-cat {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.lib-title {
  font-family: var(--ff-head); font-weight: 900;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -.04em; color: #fff;
  margin-bottom: 12px; line-height: 1.05;
}
.lib-desc {
  font-size: 13px; color: rgba(255,255,255,.5);
  line-height: 1.6; margin-bottom: 28px;
  max-width: 240px;
}
.lib-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  color: #fff; border: 1px solid rgba(255,255,255,.25);
  padding: 10px 18px; border-radius: 100px;
  width: fit-content;
  transition: border-color .2s, background .2s, color .2s;
}
.lib-card:hover .lib-cta {
  background: var(--accent); border-color: var(--accent); color: var(--bg);
}

/* ── SERVICES ──────────────────────────────────────── */
#services { background: var(--bg2); }
.svc-list { list-style: none; }
.svc-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transition: background .2s;
}
.svc-item:first-child { border-top: 1px solid var(--border); }
.svc-item:hover { background: rgba(202,255,0,.03); }
.svc-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  transition: padding .3s var(--ease);
}
.svc-item:hover .svc-inner { padding: 30px 0 30px 20px; }
.svc-left { display: flex; align-items: center; gap: 20px; }
.svc-n {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: .1em; color: var(--dim); width: 24px;
}
.svc-name {
  font-family: var(--ff-head); font-weight: 700;
  font-size: clamp(20px, 3vw, 42px);
  letter-spacing: -.03em; color: var(--text);
  transition: color .2s;
}
.svc-item:hover .svc-name { color: var(--accent); }
.svc-tag {
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: .08em; color: var(--muted);
  text-align: right; max-width: 260px;
  line-height: 1.5;
}
.svc-arr {
  color: var(--dim); font-size: 20px;
  transition: transform .3s var(--ease), color .2s;
}
.svc-item:hover .svc-arr { transform: translateX(8px) rotate(-45deg); color: var(--accent); }

/* ── ABOUT ─────────────────────────────────────────── */
#about { background: var(--bg2); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.about-quote {
  font-family: var(--ff-head); font-weight: 900;
  font-size: clamp(26px, 3.5vw, 52px);
  letter-spacing: -.04em; line-height: 1.08;
  position: sticky; top: 140px;
}
.about-quote .hl { color: var(--accent); }
.about-quote .hl2 { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--border2); }

.about-right { display: flex; flex-direction: column; gap: 40px; }
.about-img {
  width: 100%; aspect-ratio: 4/3;
  background: var(--surface); border-radius: 6px;
  overflow: hidden; position: relative;
}
.about-img-ph {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #141414 0%, #1e1e1e 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
/* CSS art placeholder — abstract graphic */
.about-img-art {
  position: relative; width: 100%; height: 100%;
}
.art-circle {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
}
.art-circle:nth-child(1) { width: 220px; height: 220px; top: -60px; right: -60px; background: radial-gradient(circle, rgba(100,0,200,.2) 0%, transparent 60%); }
.art-circle:nth-child(2) { width: 140px; height: 140px; top: 40px; right: 30px; border-color: rgba(202,255,0,.15); }
.art-circle:nth-child(3) { width: 80px; height: 80px; top: 80px; right: 70px; background: rgba(202,255,0,.08); }
.art-line { position: absolute; background: rgba(255,255,255,.06); }
.art-line:nth-child(4) { width: 1px; height: 100%; top: 0; left: 30%; }
.art-line:nth-child(5) { width: 1px; height: 100%; top: 0; left: 60%; }
.art-line:nth-child(6) { width: 100%; height: 1px; top: 40%; left: 0; }
.art-label {
  position: absolute; bottom: 24px; left: 24px;
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--dim);
}
.art-accent {
  position: absolute; bottom: 60px; left: 24px;
  font-family: var(--ff-head); font-size: 42px;
  font-weight: 900; letter-spacing: -.04em;
  color: rgba(255,255,255,.06);
}

.about-bio {
  font-size: 15px; color: var(--muted); line-height: 1.85;
}
.about-bio strong { color: var(--text); font-weight: 500; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat {
  padding: 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px;
}
.stat-n {
  font-family: var(--ff-head); font-weight: 900;
  font-size: 38px; letter-spacing: -.05em; line-height: 1;
  margin-bottom: 6px;
}
.stat-n .sfx { color: var(--accent); }
.stat-l {
  font-family: var(--ff-mono); font-size: 9px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim);
}

/* Tools */
.tools-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-tag {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 100px;
  transition: border-color .2s, color .2s;
}
.tool-tag:hover { border-color: var(--accent); color: var(--accent); }

/* ── PROCESS ───────────────────────────────────────── */
#process { background: var(--bg); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); }
.proc-item {
  background: var(--bg); padding: 40px 28px;
  transition: background .2s;
}
.proc-item:hover { background: var(--bg2); }
.proc-n {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: .2em; color: var(--accent);
  margin-bottom: 20px;
}
.proc-title {
  font-family: var(--ff-head); font-weight: 700;
  font-size: 22px; letter-spacing: -.025em;
  margin-bottom: 12px;
}
.proc-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }
.proc-arrow {
  margin-top: 24px;
  color: var(--dim); font-size: 22px;
  display: inline-block;
  transition: transform .3s var(--ease), color .2s;
}
.proc-item:hover .proc-arrow { transform: translateX(6px); color: var(--accent); }

/* ── CONTACT ───────────────────────────────────────── */
#contact { background: var(--bg2); }
.contact-label {
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.contact-email {
  display: block;
  font-family: var(--ff-head); font-weight: 900;
  font-size: clamp(28px, 6vw, 88px);
  letter-spacing: -.04em; line-height: 1;
  color: var(--text); margin: 40px 0 52px;
  position: relative; width: fit-content;
  transition: color .25s;
}
.contact-email::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--accent);
  transition: width .5s var(--ease);
}
.contact-email:hover { color: var(--accent); }
.contact-email:hover::after { width: 100%; }

.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social {
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 10px 18px; border-radius: 100px;
  transition: color .2s, border-color .2s, background .2s;
}
.social:hover { color: var(--bg); border-color: var(--accent); background: var(--accent); }

.contact-rule { width: 100%; height: 1px; background: var(--border); margin: 56px 0; }
.contact-bot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.contact-loc { display: flex; align-items: center; gap: 10px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.loc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: locPulse 2.5s ease-in-out infinite; }
@keyframes locPulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.6);opacity:.4} }
.contact-avail { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

/* ── FOOTER ────────────────────────────────────────── */
footer {
  padding: 32px var(--pad);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.foot-copy { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .08em; color: var(--dim); }
.foot-r { display: flex; align-items: center; gap: 24px; }
.foot-link { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .08em; color: var(--dim); transition: color .2s; }
.foot-link:hover { color: var(--accent); }

/* ── REVEAL ANIMATIONS ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.vis { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: .08s; }
.rd2 { transition-delay: .16s; }
.rd3 { transition-delay: .24s; }
.rd4 { transition-delay: .32s; }

/* ── KEYFRAMES ─────────────────────────────────────── */
@keyframes slideUp { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ── MOBILE NAV ────────────────────────────────────── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg); padding: var(--pad);
  display: flex; flex-direction: column; justify-content: center;
  transform: translateX(100%); transition: transform .5s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mm-links { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mm-links a {
  font-family: var(--ff-head); font-weight: 900;
  font-size: clamp(36px, 10vw, 60px);
  letter-spacing: -.04em;
  color: var(--muted); display: block; padding: 8px 0;
  transition: color .2s;
}
.mm-links a:hover { color: var(--text); }
.mm-close { position: absolute; top: 24px; right: var(--pad); }
.mm-close svg { color: var(--muted); }
.mm-foot {
  position: absolute; bottom: var(--pad); left: var(--pad);
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: .1em; color: var(--dim);
}

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1024px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .lib-grid  { grid-template-columns: 1fr 1fr; }
  .lib-card:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-quote { position: static; }
  .process-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --pad: 20px; }
  section { padding: 80px var(--pad); }
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  .work-grid { grid-template-columns: 1fr; }
  .lib-grid  { grid-template-columns: 1fr; }
  .lib-card  { aspect-ratio: 4 / 3; }
  .lib-card:last-child { grid-column: 1; aspect-ratio: 4 / 3; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 24px; }
  .s-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .contact-bot { flex-direction: column; align-items: flex-start; }
  .svc-tag { display: none; }
  footer { flex-direction: column; align-items: flex-start; }
  #cursor { display: none !important; }
  body { cursor: default !important; }
  a, button { cursor: pointer !important; }
}

/* ── STRETCHED LINK ── */
.stretched-link::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}
.wc-actions a.btn-primary, .p-links a.btn-primary {
  position: relative;
  z-index: 2;
}
