:root {
  --bg: #07080d;
  --bg-2: #0c0e16;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #eceef5;
  --muted: #8d92a6;
  --dim: #5b6074;
  --mint: #7cf5d4;
  --violet: #8b9cff;
  --pink: #ff7ab6;
  --grad: linear-gradient(110deg, var(--mint) 0%, var(--violet) 55%, var(--pink) 100%);
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(124, 245, 212, 0.25); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.gradient-text {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

/* ---------- ambient layers ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 100;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
}
.cursor-glow {
  position: fixed; width: 520px; height: 520px; left: 0; top: 0; z-index: 0;
  pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 156, 255, 0.10), transparent 60%);
  transform: translate(-50%, -50%); transition: opacity 0.4s; opacity: 0;
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .footer { position: relative; z-index: 2; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; z-index: 50;
  width: min(1180px, 100% - 32px); transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 16px; border-radius: 999px;
  border: 1px solid transparent; transition: all 0.5s var(--ease);
}
.nav.scrolled {
  background: rgba(10, 11, 18, 0.7); border-color: var(--border);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.logo { display: flex; align-items: center; padding: 6px 4px; }
.logo img { display: block; transition: opacity 0.3s; }
.logo-wordmark { display: block; height: 22px; width: auto; overflow: visible; }
.logo-dot { animation: dotBlink 1.1s steps(1) infinite; }
@keyframes dotBlink { 50% { opacity: 0; } }
.logo-mark { display: none !important; width: 36px; height: 36px; }
.logo:hover img, .logo:hover .logo-wordmark { opacity: 0.85; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) {
  position: relative; padding: 8px 14px; font-size: 14px; color: var(--muted); border-radius: 999px;
  transition: color 0.3s, background 0.3s;
}
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.menu-btn { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; white-space: nowrap;
  font-weight: 500; font-size: 15px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-primary { background: var(--text); color: #07080d; }
.btn-primary:hover { box-shadow: 0 10px 40px -10px rgba(124, 245, 212, 0.6); }
.btn-primary svg { transition: transform 0.3s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { border-color: var(--border-2); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: var(--surface-2); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden; padding: 140px 0 100px;
}
#network { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 220px;
  background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none;
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.orb-1 { width: 520px; height: 520px; background: rgba(124, 245, 212, 0.16); top: -120px; right: -100px; animation: float 14s ease-in-out infinite; }
.orb-2 { width: 460px; height: 460px; background: rgba(139, 156, 255, 0.18); bottom: -160px; left: -120px; animation: float 18s ease-in-out infinite reverse; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
}
.hero-inner { position: relative; z-index: 2; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px;
  border: 1px solid var(--border-2); border-radius: 999px; background: var(--surface);
  font-size: 13px; color: var(--muted); backdrop-filter: blur(8px);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mint);
  animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping { to { transform: scale(3); opacity: 0; } }
.hero-title {
  margin: 28px 0 24px; font-family: var(--display); font-weight: 700;
  font-size: clamp(56px, 11vw, 148px); line-height: 0.92; letter-spacing: -0.045em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .word { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.loaded .hero-title .line:nth-child(2) .word { transition-delay: 0.12s; }
.loaded .hero-title .word { transform: none; }
.hero-role { font-size: clamp(18px, 2.3vw, 24px); color: var(--text); margin: 0 0 16px; font-weight: 500; }
.typed { color: var(--mint); }
.caret { color: var(--mint); animation: blink 1s steps(1) infinite; margin-left: 2px; font-weight: 400; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { max-width: 620px; color: var(--muted); font-size: 17px; margin: 0 0 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-hint { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 3; }
.mouse { display: block; width: 24px; height: 38px; border: 1.5px solid var(--border-2); border-radius: 14px; position: relative; }
.mouse span {
  position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; border-radius: 2px;
  background: var(--text); transform: translateX(-50%); animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- marquee ---------- */
.marquee {
  position: relative; z-index: 2; overflow: hidden; padding: 22px 0;
  border-block: 1px solid var(--border); background: var(--bg-2);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex; align-items: center; gap: 28px; padding-right: 28px;
  font-family: var(--display); font-size: 22px; font-weight: 500; color: var(--muted); white-space: nowrap;
}
.marquee-item::after { content: "✦"; font-size: 12px; color: var(--violet); }
.marquee-item { gap: 12px; transition: color 0.3s; }
.marquee-item::after { margin-left: 16px; }
.mq-logo, .mq-icon { flex: none; width: 24px; height: 24px; color: var(--c); transition: transform 0.4s var(--ease), filter 0.4s; }
.mq-logo {
  background: var(--c);
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat;
}
.mq-icon svg { width: 24px; height: 24px; }
.marquee-item:hover { color: var(--text); }
.marquee-item:hover .mq-logo, .marquee-item:hover .mq-icon { transform: scale(1.15); filter: drop-shadow(0 0 10px var(--c)); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(90px, 13vw, 160px) 0; position: relative; }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--mint); letter-spacing: 0.04em; margin: 0 0 18px; }
.section-title {
  font-family: var(--display); font-weight: 600; font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 56px; max-width: 760px;
}

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.about-grid .section-title { margin-bottom: 0; }
.about-copy p { font-size: 18px; color: var(--muted); margin: 0 0 20px; }
.about-copy strong { color: var(--text); font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.stat {
  padding: 24px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  display: flex; flex-wrap: wrap; align-items: baseline;
}
.stat-num, .stat-plus { font-family: var(--display); font-size: clamp(36px, 4.4vw, 52px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stat-plus { color: var(--mint); }
.stat-label { flex-basis: 100%; margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- skills explorer ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head .section-title { margin-bottom: 0; }
.skill-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.filter {
  white-space: nowrap; font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; transition: color 0.3s, background 0.3s;
}
.filter:hover { color: var(--text); }
.filter.active { background: var(--text); color: #07080d; }

.explorer {
  display: grid; grid-template-columns: minmax(280px, 0.85fr) 1.4fr;
  border: 1px solid var(--border); border-radius: 28px; background: var(--bg-2); overflow: hidden;
}
.explorer-side { border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.ex-cat { padding: 30px 26px 22px; border-bottom: 1px solid var(--border); animation: spIn 0.6s var(--ease) both; }
.ex-cat-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--dim); margin-bottom: 14px; }
.ex-cat-meta b { color: var(--mint); font-weight: 400; }
.ex-cat h3 { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 8px; line-height: 1.1; }
.ex-cat p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }
.ex-cat-dots { display: flex; gap: 6px; }
.ex-cat-dots span { height: 4px; flex: 1; border-radius: 4px; background: var(--border); transition: background 0.4s; }
.ex-cat-dots span.on { background: var(--grad); }
.explorer-list { list-style: none; margin: 0; padding: 10px; }
.ex-item { border-radius: 14px; transition: background 0.3s, opacity 0.4s; }
.ex-item.hidden { display: none; }
.ex-btn {
  position: relative; width: 100%; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 12px;
  padding: 14px 16px; background: none; border: 0; color: var(--muted); font: inherit; text-align: left; cursor: pointer;
  border-radius: 14px; overflow: hidden; transition: color 0.3s;
}
.ex-btn:hover { color: var(--text); }
.ex-num { font-family: var(--mono); font-size: 12px; color: var(--dim); transition: color 0.3s; }
.ex-name { font-family: var(--display); font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.ex-item.active { background: var(--surface-2); }
.ex-item.active .ex-btn { color: var(--text); }
.ex-item.active .ex-num { color: var(--mint); }
.ex-btn::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 3px;
  background: var(--grad); transform: scaleY(0); transition: transform 0.4s var(--ease);
}
.ex-item.active .ex-btn::before { transform: scaleY(1); }
.ex-progress { position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--border); opacity: 0; }
.ex-progress span { display: block; height: 100%; width: 0; background: var(--mint); border-radius: 2px; }
.ex-item.active .ex-progress { opacity: 1; }
.explorer.autoplay .ex-item.active .ex-progress span { animation: exfill var(--dur, 6s) linear forwards; }
@keyframes exfill { to { width: 100%; } }
.explorer.autoplay:hover .ex-item.active .ex-progress span { animation-play-state: paused; }
.ex-mobile { display: none; }

.explorer-panel { position: relative; padding: clamp(28px, 4vw, 52px); overflow: hidden; min-height: 560px; }
.explorer-panel::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 245, 212, 0.13), transparent 65%); pointer-events: none;
  animation: float 14s ease-in-out infinite;
}
.sp { position: relative; animation: spIn 0.6s var(--ease) both; }
@keyframes spIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
.sp-watermark {
  position: absolute; right: -6px; top: -36px; font-family: var(--display); font-weight: 700; font-size: 180px; line-height: 1;
  letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06); pointer-events: none; user-select: none;
}
.sp-top { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.sp-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #07080d;
  background: var(--grad); box-shadow: 0 16px 40px -14px rgba(124, 245, 212, 0.55);
}
.sp-group { font-family: var(--mono); font-size: 12px; color: var(--mint); }
.sp-count { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.sp h3 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; margin: 0 0 14px; }
.sp-summary { color: #c3c7d6; font-size: 16.5px; margin: 0 0 34px; max-width: 600px; }
.sp-cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; margin-bottom: 30px; }
.sp-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); margin: 0 0 14px; }
.sp-delivers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: d; }
.sp-delivers li {
  counter-increment: d; display: grid; grid-template-columns: 26px 1fr; gap: 8px; font-size: 14.5px; color: var(--muted);
  animation: spIn 0.6s var(--ease) both;
}
.sp-delivers li::before { content: counter(d, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--mint); padding-top: 3px; }
.sp-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-tools .chip { animation: spIn 0.5s var(--ease) both; }
.sp-applied { padding-top: 24px; border-top: 1px dashed var(--border-2); }
.applied-list { display: flex; flex-wrap: wrap; gap: 8px; }
.applied {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.35; padding: 8px 14px; border-radius: 18px; max-width: 100%;
  border: 1px solid var(--border-2); color: var(--text); background: var(--surface); transition: border-color 0.3s, background 0.3s;
}
.applied i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--violet)); }
a.applied:hover { border-color: var(--c, var(--mint)); background: var(--surface-2); }


/* ---------- experience timeline ---------- */
.timeline-wrap { position: relative; }
.tl-line { position: absolute; left: 196px; top: 8px; bottom: 8px; width: 2px; background: var(--border); border-radius: 2px; }
.tl-line span { display: block; width: 100%; height: 100%; background: linear-gradient(var(--mint), var(--violet), var(--pink)); transform-origin: top; transform: scaleY(0); border-radius: 2px; }
.tl { display: grid; gap: 28px; }
.tl-item { display: grid; grid-template-columns: 180px 1fr; gap: 56px; position: relative; }
.tl-when { text-align: right; padding-top: 22px; padding-right: 14px; }
.tl-dates { font-family: var(--mono); font-size: 13px; color: var(--text); }
.tl-dur { font-size: 12.5px; color: var(--dim); margin-top: 4px; }
.tl-dot {
  position: absolute; left: 190px; top: 26px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border-2); transition: border-color 0.5s, background 0.5s, box-shadow 0.5s;
}
.tl-item.in .tl-dot { border-color: var(--mint); background: var(--mint); box-shadow: 0 0 0 6px rgba(124, 245, 212, 0.12); }
.tl-item.current .tl-dot::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; background: var(--mint); animation: ping 1.8s var(--ease) infinite;
}
.tl-card {
  position: relative; padding: 26px 28px; border-radius: 22px; border: 1px solid var(--border); background: var(--bg-2);
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.tl-card:hover { border-color: var(--border-2); transform: translateX(4px); }
.tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 4px; }
.tl-role { margin: 0; line-height: 1.25; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.now {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--mint);
  padding: 3px 9px; border-radius: 999px; background: rgba(124, 245, 212, 0.1); border: 1px solid rgba(124, 245, 212, 0.25);
}
.tl-company { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }
.tl-company b { color: var(--text); font-weight: 500; }
.tl-points { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 9px; }
.tl-points li { position: relative; padding-left: 20px; color: var(--muted); font-size: 14.5px; }
.tl-points li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 8px; height: 1.5px; background: var(--mint); }
.tl-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.tl-metric { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.tl-metric b { display: block; font-family: var(--display); font-size: 24px; letter-spacing: -0.03em; }
.tl-metric span { font-size: 12px; color: var(--muted); }
.tl-sub { margin-bottom: 18px; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-tags .chip { font-size: 11.5px; padding: 4px 10px; }

.about-loc { display: flex; align-items: center; gap: 8px; font-size: 14px !important; color: var(--muted); }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.service {
  position: relative; padding: 36px 32px 40px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.service::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease);
}
.service:hover::after { transform: scaleX(1); }
.service-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.service-num { font-family: var(--mono); font-size: 13px; color: var(--dim); }
.service-tag { font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--muted); }
.service h3 { font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.25; margin: 0 0 12px; letter-spacing: -0.02em; transition: transform 0.5s var(--ease); }
.service p { margin: 0; color: var(--muted); font-size: 15px; }
.service:hover h3 { transform: translateX(6px); }

/* ---------- projects ---------- */
.projects { display: flex; flex-direction: column; gap: 28px; }
.project {
  --accent: var(--mint);
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  border: 1px solid var(--border); border-radius: 28px; background: var(--bg-2); overflow: hidden;
  transition: border-color 0.5s, opacity 1s var(--ease), transform 1s var(--ease);
}
.project:hover { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.project:nth-child(even) .project-visual { order: 2; }
.project-visual {
  position: relative; min-height: 420px; display: grid; place-items: center; overflow: hidden; padding: 40px;
  background:
    radial-gradient(600px circle at 30% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    linear-gradient(160deg, #10121c, #090a10);
}
.project-visual::before {
  content: ""; position: absolute; inset: 0; opacity: 0.35;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, #000, transparent 75%);
}
.project-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; }
.project-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.project-index { color: var(--accent); }
.project-name { font-family: var(--display); font-size: clamp(32px, 4vw, 46px); font-weight: 700; letter-spacing: -0.04em; margin: 0 0 6px; line-height: 1.05; }
.project-industry { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.project-summary { color: #c3c7d6; margin: 0 0 24px; font-size: 15.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  font-family: var(--mono); font-size: 12px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}
.highlights { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.highlights li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--muted); }
.highlights li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.highlights li.extra { display: none; }
.project.expanded .highlights li.extra { display: list-item; animation: fadeUp 0.5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.project-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-btn {
  white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500;
  padding: 10px 18px; border-radius: 999px; background: var(--accent); color: #07080d;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.link-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px var(--accent); }
.toggle-btn {
  font: inherit; font-size: 14px; color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: 10px 6px; transition: color 0.3s;
}
.toggle-btn:hover { color: var(--text); }

/* project mock windows */
.mock {
  position: relative; z-index: 1; width: min(100%, 400px); border-radius: 16px; overflow: hidden;
  background: rgba(14, 16, 26, 0.85); border: 1px solid var(--border-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.02) inset;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.4s var(--ease);
  backdrop-filter: blur(10px);
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-2); }
.mock-bar span { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.mock-body { padding: 18px; }

/* gif grid */
.gif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gif-tile {
  aspect-ratio: 1; border-radius: 10px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 40%, #1a1c2a), #151726);
  background-size: 200% 200%; animation: gifShift 4s ease-in-out infinite;
}
.gif-tile:nth-child(2n) { animation-delay: -1s; background-image: linear-gradient(135deg, #2a2050, color-mix(in srgb, var(--accent) 30%, #151726)); }
.gif-tile:nth-child(3n) { animation-delay: -2s; }
.gif-tile::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-40%, -50%);
  border-left: 12px solid rgba(255,255,255,0.85); border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.gif-tile:nth-child(5) { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes gifShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.gif-cta { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.gif-cta b { white-space: nowrap; padding: 6px 12px; border-radius: 8px; background: var(--accent); color: #07080d; font-weight: 600; }

/* dashboard */
.dash-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.dash-kpi { padding: 10px; border-radius: 10px; background: var(--surface-2); }
.dash-kpi small { display: block; font-size: 10px; color: var(--dim); }
.dash-kpi b { font-family: var(--display); font-size: 18px; }
.dash-kpi b.up { color: var(--accent); }
.dash-chart { height: 110px; border-radius: 10px; background: var(--surface); padding: 8px; }
.dash-chart path.line { stroke: var(--accent); stroke-width: 2; fill: none; stroke-dasharray: 600; stroke-dashoffset: 600; }
.dash-chart path.area { fill: url(#kudoGrad); opacity: 0; transition: opacity 1s 1s; }
.in .dash-chart path.line { animation: draw 2.2s var(--ease) forwards; }
.in .dash-chart path.area { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sentiment { margin-top: 14px; display: grid; gap: 8px; }
.sent-row { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); }
.sent-bar { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.sent-bar span { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--accent); transition: width 1.6s var(--ease); }
.in .sent-bar span { width: var(--w); }

/* music */
.player { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; }
.cover {
  width: 84px; height: 84px; border-radius: 12px; position: relative; overflow: hidden;
  background: conic-gradient(from 0deg, var(--accent), #ff5e7e, #6c5cff, var(--accent));
  animation: spin 10s linear infinite;
}
.cover::after { content: ""; position: absolute; inset: 34%; border-radius: 50%; background: #0e101a; }
@keyframes spin { to { transform: rotate(360deg); } }
.track b { display: block; font-family: var(--display); font-size: 15px; }
.track small { color: var(--muted); font-size: 12px; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 44px; margin: 18px 0 12px; }
.eq span { flex: 1; border-radius: 2px; background: var(--accent); opacity: 0.85; animation: eq 1.1s ease-in-out infinite alternate; }
@keyframes eq { from { height: 12%; } to { height: 100%; } }
.timeline { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.timeline span { display: block; height: 100%; width: 40%; background: var(--accent); animation: play 12s linear infinite; }
@keyframes play { from { width: 0; } to { width: 100%; } }
.playlist { margin-top: 14px; display: grid; gap: 8px; }
.playlist div { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 8px 10px; border-radius: 8px; background: var(--surface); }

/* receipt */
.receipt-wrap { position: relative; z-index: 1; display: flex; gap: 18px; align-items: flex-end; }
.receipt {
  width: 220px; padding: 20px 18px 26px; background: #f4f5fa; color: #1a1c26; border-radius: 10px 10px 0 0;
  font-family: var(--mono); font-size: 11px; position: relative;
  box-shadow: 0 40px 60px -20px rgba(0,0,0,0.7);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.4s var(--ease);
}
.receipt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background: linear-gradient(-45deg, transparent 6px, #f4f5fa 0) 0 0 / 12px 10px, linear-gradient(45deg, transparent 6px, #f4f5fa 0) 0 0 / 12px 10px;
}
.receipt h4 { margin: 0 0 4px; font-family: var(--display); font-size: 16px; text-align: center; }
.receipt .r-sub { text-align: center; color: #6b6f80; margin-bottom: 14px; }
.receipt .r-line { display: flex; justify-content: space-between; padding: 4px 0; opacity: 0; transform: translateY(6px); transition: all 0.6s var(--ease); }
.in .receipt .r-line { opacity: 1; transform: none; }
.receipt .r-total { border-top: 1px dashed #b7bac8; margin-top: 8px; padding-top: 10px; font-weight: 600; }
.receipt .r-qr { margin: 14px auto 0; width: 54px; height: 54px; background:
  repeating-linear-gradient(90deg, #1a1c26 0 4px, transparent 4px 7px), repeating-linear-gradient(0deg, #1a1c26 0 4px, transparent 4px 7px);
  background-blend-mode: multiply; opacity: 0.85; border-radius: 4px; }
.phone-chip {
  padding: 12px 14px; border-radius: 14px; background: rgba(14, 16, 26, 0.9); border: 1px solid var(--border-2);
  font-size: 12px; color: var(--muted); margin-bottom: 40px; animation: float 6s ease-in-out infinite;
}
.phone-chip b { display: block; color: var(--accent); font-family: var(--display); font-size: 20px; }

/* ---------- contact ---------- */
.contact-card {
  position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 9vw, 110px) 24px;
  border: 1px solid var(--border); border-radius: 32px; background: var(--bg-2);
}
.contact-glow {
  position: absolute; width: 700px; height: 700px; left: 50%; top: 100%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139, 156, 255, 0.25), rgba(124, 245, 212, 0.08) 40%, transparent 65%);
  animation: breathe 8s ease-in-out infinite; pointer-events: none;
}
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.15); } }
.contact-title {
  position: relative; font-family: var(--display); font-weight: 700; letter-spacing: -0.045em;
  font-size: clamp(40px, 7vw, 88px); line-height: 1; margin: 0 0 22px;
}
.contact-sub { position: relative; color: var(--muted); font-size: 18px; margin: 0 auto 40px; max-width: 520px; }
.contact-actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.to-top:hover { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .project { grid-template-columns: 1fr; }
  .project:nth-child(even) .project-visual { order: 0; }
  .project-visual { min-height: 340px; }
}
@media (max-width: 900px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer-side { border-right: 0; }
  .ex-cat { padding: 24px 20px 18px; }
  .skill-filters { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; border-radius: 18px; scrollbar-width: none; }
  .skill-filters::-webkit-scrollbar { display: none; }
  .explorer-panel { display: none; }
  .ex-mobile { display: block; max-height: 0; overflow: hidden; transition: max-height 0.6s var(--ease); }
  .ex-item.active .ex-mobile { max-height: 1400px; }
  .ex-mobile .sp { padding: 4px 16px 22px; }
  .ex-mobile .sp-watermark, .ex-mobile .sp-top, .ex-mobile .sp h3 { display: none; }
  .sp-cols { grid-template-columns: 1fr; gap: 24px; }
  .tl-line { left: 6px; }
  .tl-item { grid-template-columns: 1fr; gap: 10px; padding-left: 36px; }
  .tl-when { text-align: left; padding: 0; display: flex; gap: 12px; align-items: baseline; }
  .tl-dur { margin-top: 0; }
  .tl-dot { left: 0; top: 4px; }
  .tl-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .menu-btn {
    display: grid; place-items: center; gap: 5px; width: 42px; height: 42px; border-radius: 50%;
    background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; padding: 0; align-content: center;
  }
  .menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--text); transition: transform 0.4s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch;
    padding: 12px; border-radius: 22px; background: rgba(10, 11, 18, 0.95); border: 1px solid var(--border);
    backdrop-filter: blur(16px); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: all 0.4s var(--ease);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a:not(.btn) { padding: 12px 16px; font-size: 16px; }
  .nav-links .btn { justify-content: center; margin-top: 6px; }
  .nav { background: rgba(10, 11, 18, 0.7); border-color: var(--border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .services { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 18px 14px; }
  .cursor-glow { display: none; }
  .receipt-wrap .phone-chip { display: none; }
}
@media (max-width: 460px) {
  .hero-role { min-height: 3.3em; }
  .tl-item { padding-left: 26px; }
  .tl-card { padding: 20px 18px; }
  .tl-metric { padding: 10px 12px; }
  .tl-metric b { font-size: 21px; }
  .stat { padding: 16px 12px; }
  .stat-label { font-size: 12px; line-height: 1.4; }
  .gif-cta { gap: 10px; }
  .service { padding: 28px 22px 32px; }
  .service-top { margin-bottom: 28px; }
  .hero-cta .btn, .contact-actions .btn { flex: 1 1 auto; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .project-actions .link-btn { flex: 1 1 auto; justify-content: center; }
  .btn { padding: 14px 20px; }
}

@media (max-width: 380px) {
  .logo-wordmark { height: 19px; }
}

@media (max-width: 299px) {
  .logo-wordmark { display: none !important; }
  .logo-mark { display: block !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal, .hero-title .word { opacity: 1; transform: none; }
}
