:root {
  --bg: #03070f;
  --bg2: #050a14;
  --ink: #f0f4f8;
  --ink-m: #94a3b8;
  --ice: #e0f2fe;
  --ice-bg: rgba(224,242,254,0.08);
  --blue: #3b82f6;
  --silver: #cbd5e1;
  --border: rgba(224,242,254,0.06);
  --border-h: rgba(224,242,254,0.12);
  --fd: 'Playfair Display', serif;
  --fm: 'JetBrains Mono', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  cursor: none;
  overflow-x: hidden;
}
a { cursor: none; }

/* Custom Cursor */
#cur, #cur-r {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}
#cur { width: 6px; height: 6px; background: var(--ice); }
#cur-r {
  width: 34px; height: 34px;
  border: 1px solid rgba(224,242,254,0.4);
  transition: width 0.2s, height 0.2s, border-color 0.2s;
}
a:hover ~ #cur-r {
  width: 44px; height: 44px;
  border-color: var(--ice);
  background: rgba(224,242,254,0.05);
}

/* Nav */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 1.75rem 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100;
  transition: background 0.3s, padding 0.3s, border-bottom 0.3s;
  border-bottom: 1px solid transparent;
}
nav.sc {
  background: rgba(3,7,15,0.85);
  backdrop-filter: blur(12px);
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: var(--fm); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.15em; color: var(--ink); text-decoration: none;
}
.logo em { font-style: normal; color: var(--blue); }
.nav-r { display: flex; align-items: center; gap: 2.5rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: var(--fm); font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-m); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ice); }
.nav-hire {
  font-family: var(--fm); font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--bg); background: var(--ice);
  padding: 0.6rem 1.2rem; border-radius: 2px; text-decoration: none;
  transition: opacity 0.2s;
}
.nav-hire:hover { opacity: 0.85; }

/* Sections */
section { padding: 8rem 2.5rem; position: relative; border-bottom: 1px solid var(--border); }
.sl {
  font-family: var(--fm); font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--silver); margin-bottom: 4rem;
}

/* Hero */
#hero {
  height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding: 0 2.5rem; border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('../images/bg.png');
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(3,7,15,0.85) 0%, rgba(3,7,15,0.6) 100%);
}
#bfly-canvas {
  position: absolute; inset: 0; z-index: 1; pointer-events: auto;
}
.hero-text { position: relative; z-index: 2; pointer-events: none; }
.hero-eyebrow {
  font-family: var(--fm); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--silver); margin-bottom: 1.5rem;
}
.hero-h1 { font-family: var(--fd); font-size: clamp(3.5rem, 9vw, 9rem); line-height: 0.85; font-weight: 400; }
.hero-h1 .d { color: var(--ink-m); font-size: 0.6em; font-family: var(--fm); letter-spacing: 0.05em; vertical-align: middle; }
.hero-h1 .b { color: var(--ice); }
.hero-h1 .p { color: var(--blue); font-style: italic; padding-left: 10vw; }
.hero-hint {
  position: absolute; right: 2.5rem; bottom: 2.5rem; z-index: 2;
  font-family: var(--fm); font-size: 0.65rem; letter-spacing: 0.1em; color: var(--silver); text-align: right;
}
.hero-hint p { margin-top: 0.4rem; opacity: 0.7; }
.hero-hint span { color: var(--blue); }
.scroll-line {
  position: absolute; left: 2.5rem; bottom: 0; width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--border-h), transparent); z-index: 2;
}

/* Intro grid */
#intro { display: grid; grid-template-columns: 1.2fr 1fr; border-bottom: 1px solid var(--border); }
.intro-l { padding: 8rem 2.5rem; border-right: 1px solid var(--border); }
.intro-r { padding: 8rem 2.5rem; background: var(--bg2); }
.intro-h { font-family: var(--fd); font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 0.92; margin-bottom: 3rem; font-weight: 400; }
.hi { color: var(--blue); font-style: italic; }
.intro-body p { font-size: 1.15rem; color: var(--ink-m); margin-bottom: 1.5rem; max-width: 540px; font-weight: 300; }
.intro-body strong { color: var(--ink); font-weight: 400; }
.avail {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--fm); font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase; border: 1px solid var(--border-h);
  padding: 0.5rem 1rem; border-radius: 50px; margin-top: 2rem;
}
.avail-dot { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; box-shadow: 0 0 8px var(--blue); }
.pillars { display: flex; flex-direction: column; gap: 3rem; }
.pillar { display: flex; gap: 1.5rem; }
.p-num { font-family: var(--fm); font-size: 0.7rem; color: var(--blue); padding-top: 0.2rem; }
.p-title { font-family: var(--fd); font-size: 1.5rem; margin-bottom: 0.5rem; letter-spacing: 0.02em; }
.p-desc { font-size: 0.9rem; color: var(--ink-m); line-height: 1.6; font-weight: 300; }

/* Grid items inside Projects */
#projects .pg {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 4rem;
}
.pc {
  display: flex; flex-direction: column;
  background: var(--bg2); border: 1px solid var(--border); padding: 2rem;
  text-decoration: none; color: inherit; transition: border-color 0.3s, background 0.3s;
}
.pc:hover { border-color: var(--border-h); background: rgba(5,10,20,0.8); }
.pc.wide { grid-column: 1 / -1; flex-direction: row; gap: 3rem; align-items: center; }
.pc-wl { flex: 1; }
.pc-wr { flex: 0 0 320px; display: flex; flex-direction: column; gap: 1rem; }
.stat-box { border: 1px solid var(--border); padding: 1.5rem; text-align: center; background: var(--bg); }
.stat-n { font-family: var(--fd); font-size: 2.5rem; color: var(--ice); line-height: 1; margin-bottom: 0.4rem; }
.stat-l { font-family: var(--fm); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-m); }
.tags { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tag { font-family: var(--fm); font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.6rem; border: 1px solid var(--border); color: var(--silver); }
.tag.live { color: #10b981; border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.05); }
.tag.hi { color: var(--blue); border-color: rgba(59,130,246,0.3); }
.tag.bl { color: #c084fc; border-color: rgba(192,132,252,0.3); }
.pc-name { font-family: var(--fd); font-size: 2rem; margin-bottom: 0.75rem; letter-spacing: 0.02em; }
.pc-desc { font-size: 0.85rem; color: var(--ink-m); line-height: 1.6; font-weight: 300; margin-bottom: 2rem; flex-grow: 1; }
.pc-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 1rem; }
.pc-url { font-family: var(--fm); font-size: 0.65rem; color: var(--silver); transition: color 0.2s; }
.pc-arr { color: var(--border-h); transition: color 0.2s, transform 0.2s; font-family: var(--fm); }
.pc:hover .pc-url { color: var(--ice); }
.pc:hover .pc-arr { color: var(--blue); transform: translate(2px, -2px); }
#kinzaap-card {
  grid-column: span 2; position: relative; overflow: hidden;
  background-image: url(https://images.unsplash.com/photo-1559314809-0d155014e29e?auto=format&fit=crop&q=80&w=800);
  background-size: cover; background-position: center;
}
#kinzaap-card::after { content:""; position:absolute; inset:0; background: linear-gradient(135deg, rgba(3,7,15,0.9) 40%, rgba(3,7,15,0.6) 100%); }
#kinzaap-card .tags, #kinzaap-card .pc-name, #kinzaap-card .pc-desc, #kinzaap-card .pc-foot { position: relative; z-index: 2; }

/* Process */
#process .proc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.proc-h { font-family: var(--fd); font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 0.92; position: sticky; top: 6rem; }
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.75rem 0; border-bottom: 1px solid var(--border); align-items: start; }
.step:first-child { border-top: 1px solid var(--border); }
.s-num { font-family: var(--fm); font-size: 0.58rem; letter-spacing: 0.15em; color: var(--silver); padding-top: 0.1rem; }
.s-title { font-family: var(--fd); font-size: 1.45rem; letter-spacing: 0.02em; margin-bottom: 0.3rem; line-height: 1.1; }
.s-desc { font-size: 0.82rem; line-height: 1.7; color: var(--ink-m); font-weight: 300; }

/* Stack */
#stack { background: var(--bg2); }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.5rem; }
.chip {
  font-family: var(--fm); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--ink-m);
  border: 1px solid var(--border); padding: 0.4rem 0.85rem; border-radius: 2px; cursor: default;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip:hover { border-color: var(--ice); color: var(--ice); background: var(--ice-bg); }
.chip.h { color: var(--ink); border-color: var(--border-h); }
.chip.b { color: var(--blue); border-color: rgba(59,130,246,0.25); }
.chip.s { color: var(--silver); border-color: rgba(148,163,184,0.22); }

/* CTA */
#cta { text-align: center; padding: 8rem 2.5rem; border-top: 1px solid var(--border); }
.cta-pre { font-family: var(--fm); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--silver); margin-bottom: 1.5rem; }
.cta-h { font-family: var(--fd); font-size: clamp(4rem, 12vw, 11rem); line-height: 0.88; margin-bottom: 2rem; }
.cta-h em { font-style: normal; color: var(--ice); }
.cta-sub { font-size: 0.9rem; color: var(--ink-m); font-weight: 300; margin-bottom: 2rem; }
.cta-email {
  font-family: var(--fd); font-size: clamp(1.2rem, 3vw, 2rem); color: var(--ink); text-decoration: none;
  letter-spacing: 0.04em; border-bottom: 1px solid var(--border); padding-bottom: 0.2rem;
  transition: color 0.2s, border-color 0.2s; display: inline-block; margin-bottom: 2.5rem;
}
.cta-email:hover { color: var(--ice); border-color: var(--ice); }
.btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn-p {
  font-family: var(--fm); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bg); background: var(--ice); border: 1px solid var(--ice); padding: 0.75rem 1.75rem;
  border-radius: 4px; text-decoration: none; transition: opacity 0.2s;
}
.btn-p:hover { opacity: 0.85; }
.btn-s {
  font-family: var(--fm); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); background: transparent; border: 1px solid var(--border-h); padding: 0.75rem 1.75rem;
  border-radius: 4px; text-decoration: none; transition: border-color 0.2s, background 0.2s;
}
.btn-s:hover { border-color: var(--silver); background: rgba(200,216,240,0.03); }

/* Footer */
footer {
  border-top: 1px solid var(--border); padding: 1.75rem 2.5rem; display: flex;
  align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; position: relative; z-index: 10;
}
.f-left { font-family: var(--fm); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--ink-m); }
.f-right { display: flex; gap: 1.5rem; }
.f-right a { font-family: var(--fm); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-m); text-decoration: none; transition: color 0.2s; }
.f-right a:hover { color: var(--ice); }
.sh { font-family: var(--fd); font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 0.92; }

/* Responsive */
@media(max-width:900px){
  #intro { grid-template-columns: 1fr; }
  .intro-l { border-right: none; border-bottom: 1px solid var(--border); }
  #projects .pg { grid-template-columns: 1fr; }
  .pc.wide { flex-direction: column; gap: 1.5rem; }
  .pc-wr { flex: none; width: 100%; flex-direction: row; }
  .stat-box { flex: 1; }
  #process .proc-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .proc-h { position: static; }
  .nav-links { display: none; }
  #kinzaap-card { grid-column: auto; }
}
@media(max-width:600px){
  nav, footer { padding: 1.25rem 1.5rem; }
  section, .intro-l, .intro-r { padding: 3.5rem 1.5rem; }
  #cta { padding: 5rem 1.5rem; }
}
