*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green-950: #022c22;
  --green-900: #053d2e;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --green-300: #6ee7b7;
  --green-100: #d1fae5;
  --green-50:  #ecfdf5;
  --white:     #ffffff;
  --page:      #fbfdfc;
  --ink:       #0b1f17;
  --text:      #3d4f47;
  --muted:     #6b7d75;
  --border:    #e3ede8;
  --shadow:    0 1px 2px rgba(5,61,46,.04), 0 8px 24px rgba(5,61,46,.06);
  --shadow-lg: 0 24px 56px rgba(5,61,46,.14);
  --radius:    18px;
  --head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--body);
  background: var(--page);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 48px); }

/* ── NAV ─────────────────────────────── */
nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
nav.scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: var(--border); box-shadow: 0 4px 20px rgba(5,61,46,.06);
}
nav:not(.scrolled) .logo, nav:not(.scrolled) .nav-links a:not(.nav-cta) { color: #fff; }
nav:not(.scrolled) .nav-links a:not(.nav-cta):hover { color: var(--green-300); }
nav:not(.scrolled) .menu-btn span { background: #fff; }
nav:not(.scrolled) .nav-cta { background: var(--green-500); color: var(--green-950) !important; }

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 101;
  background: linear-gradient(90deg, var(--green-300), var(--green-500), var(--green-700));
  transform-origin: 0 50%; transform: scaleX(0);
}
.nav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: var(--head); font-weight: 800; font-size: 1.3rem;
  text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: .55rem;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  color: #fff; display: grid; place-items: center; font-size: .95rem;
}
.logo b { color: var(--green-500); }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--text);
  transition: color .2s;
}
.nav-links a:hover { color: var(--green-700); }
.nav-cta {
  background: var(--green-700); color: #fff !important;
  padding: .55rem 1.2rem; border-radius: 999px; font-weight: 600 !important;
  transition: background .2s, transform .2s !important;
}
.nav-cta:hover { background: var(--green-800); transform: translateY(-1px); }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ── BUTTONS ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  font: 600 .95rem var(--body); text-decoration: none;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 8px 20px rgba(4,120,87,.25); }
.btn-primary:hover { background: var(--green-800); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(4,120,87,.32); }
.btn-outline { background: #fff; color: var(--green-800); border-color: var(--green-100); }
.btn-outline:hover { border-color: var(--green-600); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--green-800); }
.btn-white:hover { background: var(--green-50); transform: translateY(-2px); }

/* ── HERO ────────────────────────────── */
.hero {
  position: relative; padding: 150px 0 120px; overflow: hidden; isolation: isolate;
  background: var(--green-950); color: #fff; min-height: 100vh; display: flex; align-items: center;
}
.hero > .wrap { width: 100%; }
.aurora { position: absolute; inset: -10%; z-index: -3; filter: blur(80px); opacity: .7; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; animation: drift 20s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: -5%; top: -10%; background: #047857; }
.aurora i:nth-child(2) { width: 38vw; height: 38vw; right: -5%; top: 15%; background: #0d9488; animation-duration: 24s; animation-delay: -8s; }
.aurora i:nth-child(3) { width: 30vw; height: 30vw; left: 35%; bottom: -15%; background: #10b981; opacity: .55; animation-duration: 28s; animation-delay: -14s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(9vw, -7vh) scale(1.18); }
  100% { transform: translate(-7vw, 9vh) scale(.88); }
}
.floor {
  position: absolute; left: -50%; right: -50%; bottom: -5%; height: 50%; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(110,231,183,.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,231,183,.28) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(420px) rotateX(68deg); transform-origin: 50% 100%;
  animation: floor 3.5s linear infinite;
  mask-image: linear-gradient(transparent, #000 75%);
  -webkit-mask-image: linear-gradient(transparent, #000 75%);
}
@keyframes floor { to { background-position: 0 64px; } }
#net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; pointer-events: none;
  background: linear-gradient(transparent, var(--green-950));
}

.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 4rem; align-items: center; }
.hero-copy > * { opacity: 0; animation: rise .8s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-copy > *:nth-child(2) { animation-delay: .12s; }
.hero-copy > *:nth-child(3) { animation-delay: .24s; }
.hero-copy > *:nth-child(4) { animation-delay: .36s; }
.hero-copy > *:nth-child(5) { animation-delay: .48s; }
.hero-copy > *:nth-child(6) { animation-delay: .6s; }
.hero-copy > *:nth-child(7) { animation-delay: .72s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.status-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(16,185,129,.12); color: var(--green-300);
  border: 1px solid rgba(110,231,183,.3);
  padding: .4rem .95rem; border-radius: 999px;
  font-size: .82rem; font-weight: 600; margin-bottom: 1.4rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); position: relative; flex-shrink: 0; }
.dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: var(--green-500); opacity: .35; animation: ping 1.8s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2); opacity: 0; } }

.hi { font: 600 1.05rem var(--body); color: rgba(236,253,245,.8); margin-bottom: .5rem; }
.hero h1 {
  font-family: var(--head); font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.02;
  letter-spacing: -.04em; margin-bottom: 1.1rem;
}
.hero h1 .hl {
  background: linear-gradient(100deg, #6ee7b7, #34d399 30%, #ecfdf5 50%, #34d399 70%, #6ee7b7);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 5s linear infinite;
}
@keyframes shine { to { background-position: -250% 0; } }
.typed-line {
  font: 500 clamp(1rem, 1.6vw, 1.2rem) var(--mono); color: var(--green-300);
  margin-bottom: 1.4rem; min-height: 1.6em;
}
.typed-line .pre { color: rgba(236,253,245,.5); }
.caret { display: inline-block; width: .6ch; height: 1.1em; background: var(--green-300); vertical-align: -.15em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero .lead { font-size: 1.08rem; color: rgba(236,253,245,.74); max-width: 540px; margin-bottom: 2.2rem; }
.hero .lead strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero .btn-primary { background: var(--green-500); color: var(--green-950); animation: pulse 2.6s infinite; }
.hero .btn-primary:hover { background: var(--green-300); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.55); } 70%, 100% { box-shadow: 0 0 0 18px rgba(16,185,129,0); } }
.hero .btn-outline { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.25); }
.hero .btn-outline:hover { border-color: var(--green-300); color: var(--green-300); }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.8rem;
  margin-top: 2.8rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.12);
}
.stat-num { font-family: var(--head); font-size: 2.1rem; font-weight: 800; color: var(--green-300); line-height: 1; }
.stat-label { font-size: .82rem; color: rgba(236,253,245,.6); margin-top: .4rem; }

/* hero visual: profile + terminal */
.hero-visual { position: relative; padding: 0 0 70px 40px; opacity: 0; animation: rise 1s .3s cubic-bezier(.2,.8,.2,1) forwards; }
.profile {
  position: relative; border-radius: 28px; padding: 3px; max-width: 400px; margin-left: auto;
  transition: transform .2s ease-out;
}
.profile::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  background: conic-gradient(from var(--ang, 0deg), #10b981, transparent 30%, #6ee7b7 50%, transparent 80%, #10b981);
  animation: spin 4s linear infinite;
}
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }
.profile-inner {
  position: relative; z-index: 1; background: rgba(2,44,34,.94); border-radius: 25px; padding: 1.2rem;
}
.profile-photo {
  position: relative; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, var(--green-100), var(--green-50));
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo .initials {
  position: absolute; inset: 0; display: none; place-items: center;
  font: 800 4rem var(--head); color: var(--green-700);
}
.profile-photo.noimg img { display: none; }
.profile-photo.noimg .initials { display: grid; }
.profile-meta { padding: 1rem .3rem .2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.profile-name { font: 700 1.15rem var(--head); }
.profile-role { font-size: .82rem; color: var(--green-300); font-weight: 600; }
.profile-loc { font-size: .8rem; color: rgba(236,253,245,.6); white-space: nowrap; }

.term {
  position: absolute; left: 0; bottom: 0; width: min(360px, 88%); z-index: 3;
  background: rgba(1,20,15,.95); border: 1px solid rgba(110,231,183,.25); border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 40px rgba(16,185,129,.15);
  overflow: hidden; font: 500 .74rem/1.65 var(--mono);
}
.term-bar { display: flex; align-items: center; gap: 6px; padding: .55rem .8rem; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(110,231,183,.12); }
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; }
.term-bar i:nth-child(2) { background: #f59e0b; }
.term-bar i:nth-child(3) { background: #10b981; }
.term-bar span { margin-left: .5rem; color: rgba(236,253,245,.5); font-size: .7rem; }
.term pre { margin: 0; padding: .8rem 1rem; height: 178px; overflow: hidden; color: rgba(236,253,245,.85); white-space: pre-wrap; font: inherit; }
.term .c-p { color: var(--green-300); }
.term .c-ok { color: #34d399; }
.term .c-dim { color: rgba(236,253,245,.45); }
.term .c-y { color: #fcd34d; }

.float-tag {
  position: absolute; z-index: 4; background: rgba(2,44,34,.88); border: 1px solid rgba(110,231,183,.3);
  color: #fff; border-radius: 14px; padding: .6rem .9rem; box-shadow: 0 16px 36px rgba(0,0,0,.3);
  font-size: .8rem; font-weight: 600; display: flex; align-items: center; gap: .55rem;
  animation: float 5s ease-in-out infinite;
}
.float-tag .ic { width: 28px; height: 28px; border-radius: 8px; background: rgba(16,185,129,.18); display: grid; place-items: center; }
.float-tag small { display: block; font-weight: 500; color: rgba(236,253,245,.6); font-size: .7rem; }
.ft-1 { top: 30px; left: 10px; }
.ft-2 { top: 42%; right: -24px; animation-delay: -2.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(236,253,245,.35); border-radius: 14px;
}
.scroll-hint::after {
  content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--green-300); animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
/* ── TECH MARQUEE ────────────────────── */
.marquee { background: var(--green-900); color: var(--green-100); overflow: hidden; padding: 1.1rem 0; }
.marquee-track { display: flex; width: max-content; animation: scroll 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font: 500 .9rem var(--mono); white-space: nowrap; display: flex; align-items: center; gap: 3rem; padding-right: 3rem; opacity: .9; }
.marquee span::after { content: '✦'; color: var(--green-500); }
/* left → right; the track holds two identical halves so the loop is seamless */
@keyframes scroll { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ── SECTIONS ────────────────────────── */
section { padding: 100px 0; }
.alt { background: var(--green-50); }
.sec-head { max-width: 640px; margin-bottom: 3.2rem; }
.eyebrow {
  font: 700 .74rem var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: .8rem; display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--green-500); border-radius: 2px; }
.sec-title {
  font-family: var(--head); font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.12; letter-spacing: -.025em; margin-bottom: .9rem;
}
.sec-sub { color: var(--text); font-size: 1.02rem; }

/* ── PRODUCTION EXPERIENCE ───────────── */
.prod {
  background: linear-gradient(160deg, var(--green-900), var(--green-950));
  color: #fff; position: relative; overflow: hidden;
}
.prod::after {
  content: ''; position: absolute; width: 520px; height: 520px; right: -180px; top: -200px;
  background: radial-gradient(circle, rgba(16,185,129,.25), transparent 65%); pointer-events: none;
}
.prod .eyebrow { color: var(--green-300); }
.prod .sec-sub { color: rgba(236,253,245,.72); }
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; position: relative; z-index: 1; }
.prod-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(110,231,183,.14);
  border-radius: var(--radius); padding: 1.6rem;
  transition: background .25s, border-color .25s, transform .25s;
}
.prod-card:hover { background: rgba(255,255,255,.07); border-color: rgba(110,231,183,.4); transform: translateY(-4px); }
.prod-icon {
  width: 46px; height: 46px; border-radius: 12px; background: #fff;
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.prod-icon img { width: 24px; height: 24px; }
.prod-card h3 { font: 700 1.08rem var(--head); margin-bottom: .45rem; }
.prod-card p { font-size: .9rem; color: rgba(236,253,245,.7); }
.prod-card { position: relative; }
.prod::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(110,231,183,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,231,183,.07) 1px, transparent 1px);
  background-size: 48px 48px; animation: gridmove 12s linear infinite;
}
@keyframes gridmove { to { background-position: 48px 48px; } }

/* request-flow diagram */
.flow-wrap { position: relative; z-index: 1; margin-bottom: 2.6rem; }
.flow-cap { font: 500 .78rem var(--mono); color: rgba(236,253,245,.55); margin-bottom: 1rem; }
.flow-cap b { color: var(--green-300); font-weight: 500; }
.flow {
  display: flex; align-items: center; gap: 0;
  background: rgba(0,0,0,.18); border: 1px solid rgba(110,231,183,.14);
  border-radius: 20px; padding: 1.6rem 1.4rem;
}
.node {
  flex-shrink: 0; text-align: center; padding: .85rem .9rem; min-width: 104px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(110,231,183,.25); border-radius: 14px;
  font: 600 .8rem var(--body); color: #fff;
  animation: glow 3.6s ease-in-out infinite;
}
.node b { display: block; font-size: 1.35rem; margin-bottom: .3rem; }
.node small { display: block; font: 500 .66rem var(--mono); color: rgba(236,253,245,.5); margin-top: .15rem; }
.node.hot { border-color: var(--green-500); background: rgba(16,185,129,.16); }
.node:nth-child(3) { animation-delay: .6s; } .node:nth-child(5) { animation-delay: 1.2s; }
.node:nth-child(7) { animation-delay: 1.8s; } .node:nth-child(9) { animation-delay: 2.4s; } .node:nth-child(11) { animation-delay: 3s; }
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 rgba(16,185,129,0); }
  15% { box-shadow: 0 0 26px rgba(16,185,129,.55); border-color: var(--green-300); }
  35% { box-shadow: 0 0 0 rgba(16,185,129,0); }
}
.pipe { flex: 1; min-width: 18px; height: 2px; position: relative; background: repeating-linear-gradient(90deg, rgba(110,231,183,.35) 0 6px, transparent 6px 12px); }
.pipe::after {
  content: ''; position: absolute; top: 50%; left: 0; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%;
  background: var(--green-300); box-shadow: 0 0 12px var(--green-300), 0 0 24px var(--green-500);
  animation: packet 1.8s linear infinite;
}
.pipe:nth-child(4)::after { animation-delay: .3s; } .pipe:nth-child(6)::after { animation-delay: .6s; }
.pipe:nth-child(8)::after { animation-delay: .9s; } .pipe:nth-child(10)::after { animation-delay: 1.2s; }
@keyframes packet { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 9px); opacity: 0; } }

/* cursor spotlight on cards */
.spot:hover { background-image: radial-gradient(360px circle at var(--x, 50%) var(--y, 50%), rgba(16,185,129,.12), transparent 45%); }
.prod-card.spot:hover { background-image: radial-gradient(320px circle at var(--x, 50%) var(--y, 50%), rgba(110,231,183,.16), transparent 50%); }

/* ── SKILLS ──────────────────────────── */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.skill {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 1.3rem 1.4rem; display: grid; grid-template-columns: 40px 1fr; gap: .25rem 1rem; align-items: center;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.skill:hover { border-color: var(--green-300); box-shadow: var(--shadow); transform: translateY(-3px); }
.skill-ic {
  grid-row: span 2; width: 40px; height: 40px; border-radius: 10px;
  background: var(--green-50); display: grid; place-items: center;
}
.skill-ic img { width: 22px; height: 22px; }
.skill-name { font-weight: 600; font-size: .95rem; }
.skill-desc { font-size: .8rem; color: var(--muted); }
.bar { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: var(--green-50); margin-top: .85rem; overflow: hidden; }
.bar i {
  display: block; height: 100%; border-radius: 99px; width: 0;
  background: linear-gradient(90deg, var(--green-500), var(--green-700));
  transition: width 1.1s cubic-bezier(.2,.8,.2,1);
}

/* ── EXPERIENCE ──────────────────────── */
.timeline { position: relative; max-width: 860px; }
.timeline::before {
  content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--green-500), var(--green-100));
}
.tl-item { position: relative; padding-left: 3.2rem; margin-bottom: 1.4rem; }
.tl-item::before {
  content: ''; position: absolute; left: 4px; top: 26px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--green-600);
}
.tl-item.current::before { background: var(--green-600); box-shadow: 0 0 0 6px rgba(16,185,129,.18); }
.tl-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.7rem; transition: box-shadow .25s, border-color .25s;
}
.tl-card:hover { box-shadow: var(--shadow); border-color: var(--green-100); }
.tl-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.tl-role { font: 700 1.15rem var(--head); }
.tl-company { color: var(--green-700); font-weight: 600; font-size: .92rem; }
.tl-badge {
  font: 700 .68rem var(--mono); letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px; background: var(--green-50); color: var(--green-800);
  border: 1px solid var(--green-100); white-space: nowrap;
}
.tl-item.current .tl-badge { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.tl-desc { color: var(--text); font-size: .93rem; }
.tl-desc ul { margin: .5rem 0 0 1.1rem; }
.tl-desc li { margin-bottom: .25rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.tag {
  font: 500 .72rem var(--mono); padding: .28rem .7rem; border-radius: 999px;
  background: var(--page); border: 1px solid var(--border); color: var(--text);
}

/* ── PROJECTS ────────────────────────── */
.sub-head { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.4rem; font: 700 1.15rem var(--head); }
.sub-head::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.sub-head + .projects-grid { margin-bottom: 3.5rem; }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.4rem; }
.project {
  background: #fff; border: 1px solid var(--border); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--green-100); }
.thumb { position: relative; height: 200px; overflow: hidden; background: var(--green-50); }
a.thumb { display: block; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.project:hover .thumb img { transform: scale(1.05); }
.thumb .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(2,44,34,.35); opacity: 0; transition: opacity .3s;
}
.thumb:hover .play { opacity: 1; }
.play b {
  width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--green-700);
  display: grid; place-items: center; font-size: 1.1rem; padding-left: 3px;
}

/* illustrated thumbs for new projects */
.art {
  height: 200px; position: relative; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--green-800), var(--green-950));
}
.art::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(110,231,183,.22) 1px, transparent 1px);
  background-size: 18px 18px;
}
.art-icon {
  position: relative; width: 78px; height: 78px; border-radius: 22px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(110,231,183,.35);
  display: grid; place-items: center; font-size: 2.2rem;
  box-shadow: 0 0 60px rgba(16,185,129,.35);
}
.art.light { background: linear-gradient(140deg, var(--green-50), var(--green-100)); }
.art.light::before { background-image: radial-gradient(rgba(4,120,87,.18) 1px, transparent 1px); }
.art.light .art-icon { background: #fff; border-color: var(--green-100); box-shadow: 0 12px 40px rgba(4,120,87,.18); }

.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font: 700 .68rem var(--mono); letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem .75rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .4rem;
}
.b-done { background: var(--green-500); color: var(--green-950); }
.b-wip { background: #fcd34d; color: #422006; }
.gear { display: inline-block; animation: rot 3s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.art-icon.scan { overflow: hidden; }
.art-icon.scan::after {
  content: ''; position: absolute; left: 0; right: 0; height: 30%;
  background: linear-gradient(transparent, rgba(110,231,183,.55), transparent);
  animation: scan 2.2s ease-in-out infinite;
}
@keyframes scan { 0% { top: -30%; } 100% { top: 100%; } }
.art-icon { animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-3deg); } }
.project:hover .art-icon { animation-duration: 1.4s; }
.b-soon { background: #fff; color: var(--green-800); }
.b-soon .dot { width: 6px; height: 6px; }
.b-demo { background: #fff; color: var(--green-800); }

.p-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.p-title { font: 700 1.2rem var(--head); margin-bottom: .5rem; }
.p-desc { color: var(--text); font-size: .9rem; margin-bottom: 1rem; flex: 1; }
.p-points { list-style: none; margin-bottom: 1rem; }
.p-points li { font-size: .86rem; color: var(--text); padding-left: 1.3rem; position: relative; margin-bottom: .3rem; }
.p-points li::before { content: '✓'; position: absolute; left: 0; color: var(--green-600); font-weight: 700; }
.project .tags { margin-top: 0; }

.project.feature { border-color: var(--green-100); }

/* ── ABOUT ───────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.4rem; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem;
}
.card h3 { font: 700 1.15rem var(--head); margin-bottom: 1rem; }
.card p { color: var(--text); font-size: .95rem; }
.card p + p { margin-top: .9rem; }
.stack-col { display: grid; gap: 1.4rem; }
.kv { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.kv:last-child { border-bottom: 0; padding-bottom: 0; }
.kv span:first-child { font-weight: 600; }
.kv span:last-child { color: var(--muted); text-align: right; }

/* ── CONTACT ─────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 1.6rem; align-items: start; }
.contact-info { display: grid; gap: 1rem; }
.c-item {
  display: flex; align-items: center; gap: 1rem; background: #fff;
  border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1.2rem;
  transition: border-color .2s, box-shadow .2s;
}
.c-item:hover { border-color: var(--green-300); box-shadow: var(--shadow); }
.c-ic {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  background: var(--green-700); color: #fff; display: grid; place-items: center;
}
.c-ic svg { width: 20px; height: 20px; }
.c-label { font: 700 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.c-value { font-weight: 600; font-size: .95rem; word-break: break-word; }
.c-value a { text-decoration: none; }
.c-value a:hover { color: var(--green-700); }
.c-main { flex: 1; min-width: 0; }
.copy-btn {
  background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-800);
  font: 600 .75rem var(--body); padding: .4rem .75rem; border-radius: 999px; cursor: pointer;
  transition: background .2s;
}
.copy-btn:hover { background: var(--green-100); }

.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
  padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow-lg);
}
.form-card h3 { font: 800 1.45rem var(--head); margin-bottom: .3rem; }
.form-card > p { color: var(--muted); font-size: .92rem; margin-bottom: 1.6rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 .95rem var(--body); color: var(--ink);
  padding: .8rem 1rem; border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--page); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-600); background: #fff;
  box-shadow: 0 0 0 4px rgba(16,185,129,.15);
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label {
  font-size: .82rem; font-weight: 500; padding: .45rem .9rem; border-radius: 999px;
  border: 1.5px solid var(--border); cursor: pointer; transition: all .2s; color: var(--text);
}
.chips input:checked + label { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.chips input:focus-visible + label { box-shadow: 0 0 0 4px rgba(16,185,129,.25); }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .4rem; }
.form-foot small { color: var(--muted); font-size: .8rem; }
.btn[disabled] { opacity: .7; cursor: wait; transform: none; }
.form-msg { display: none; margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 12px; font-size: .9rem; }
.form-msg.ok { display: block; background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-100); }
.form-msg.err { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-msg a { font-weight: 600; }

/* ── CTA ─────────────────────────────── */
.cta {
  background: linear-gradient(130deg, var(--green-700), var(--green-900));
  border-radius: 28px; padding: clamp(2rem, 5vw, 3.6rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  color: #fff; position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
}
.cta > * { position: relative; }
.cta h2 { font: 800 clamp(1.5rem, 3vw, 2.3rem) var(--head); letter-spacing: -.02em; margin-bottom: .4rem; }
.cta p { color: rgba(236,253,245,.8); }
.cta-wrap { padding: 0 0 100px; }

/* ── FOOTER ──────────────────────────── */
footer { background: var(--green-950); color: rgba(236,253,245,.6); padding: 2.2rem 0; font-size: .86rem; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.foot a { color: var(--green-300); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-links { display: flex; gap: 1.4rem; }

/* ── REVEAL ──────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── BLOG (cards, shared) ────────────── */
.sec-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.sec-row .sec-head { margin-bottom: 0; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.post-card {
  background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  animation: card-in .7s cubic-bezier(.2,.8,.2,1) backwards;
}
@keyframes card-in { from { transform: translateY(22px); } }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--green-100); }
.post-cover {
  aspect-ratio: 16 / 9; position: relative; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--green-800), var(--green-950));
}
.post-cover::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(110,231,183,.22) 1px, transparent 1px); background-size: 18px 18px;
}
.post-cover img { position: relative; width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.post-card:hover .post-cover img { transform: scale(1.05); }
.post-cover .ph { position: relative; font: 800 3rem var(--head); color: var(--green-300); text-shadow: 0 0 40px rgba(16,185,129,.6); }
.post-body { padding: 1.3rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.post-meta { font: 500 .74rem var(--mono); color: var(--muted); }
.post-title { font: 700 1.15rem/1.3 var(--head); }
.post-sum { color: var(--text); font-size: .9rem; flex: 1; }
.post-card .tags { margin-top: .2rem; }
.post-more { color: var(--green-700); font-weight: 600; font-size: .88rem; margin-top: .3rem; }
.post-card:hover .post-more { color: var(--green-800); }
.blog-empty {
  grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--muted);
  border: 1.5px dashed var(--border); border-radius: 20px; background: #fff;
}

/* ── BLOG PAGE ───────────────────────── */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--green-950); color: #fff; padding: 150px 0 90px;
}
.page-hero .floor { height: 70%; }
.page-hero .wrap { position: relative; }
.crumb { display: inline-flex; gap: .4rem; color: var(--green-300); text-decoration: none; font: 600 .85rem var(--body); margin-bottom: 1.2rem; }
.crumb:hover { color: #fff; }
.page-hero h1 {
  font: 800 clamp(2.2rem, 5vw, 3.8rem)/1.08 var(--head); letter-spacing: -.035em; margin-bottom: 1rem; max-width: 900px;
  animation: rise .8s cubic-bezier(.2,.8,.2,1) both;
}
.page-hero .sub { color: rgba(236,253,245,.74); max-width: 620px; font-size: 1.06rem; animation: rise .8s .1s cubic-bezier(.2,.8,.2,1) both; }
.page-hero .meta { margin-top: 1.2rem; font: 500 .82rem var(--mono); color: rgba(236,253,245,.6); display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center; }
.page-hero .tag { background: rgba(16,185,129,.12); border-color: rgba(110,231,183,.3); color: var(--green-300); }

.blog-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search input {
  width: 100%; font: 400 .95rem var(--body); padding: .75rem 1rem .75rem 2.6rem;
  border: 1.5px solid var(--border); border-radius: 999px; background: #fff; color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(16,185,129,.15); }
.search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.tag-filter { display: flex; flex-wrap: wrap; gap: .45rem; }
.tag-filter button {
  font: 500 .82rem var(--body); padding: .45rem .95rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--border); background: #fff; color: var(--text); transition: all .2s;
}
.tag-filter button:hover { border-color: var(--green-300); }
.tag-filter button.on { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.article { max-width: 760px; margin: 0 auto; }
.article-cover { border-radius: 22px; overflow: hidden; margin: -140px 0 2.4rem; position: relative; z-index: 2; box-shadow: var(--shadow-lg); background: #fff; }
.article-cover img { width: 100%; max-height: 440px; object-fit: cover; }
.prose { font-size: 1.07rem; line-height: 1.8; color: var(--text); }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font: 700 1.6rem/1.25 var(--head); color: var(--ink); margin-top: 2.4rem; letter-spacing: -.02em; }
.prose h3 { font: 700 1.25rem/1.3 var(--head); color: var(--ink); margin-top: 2rem; }
.prose strong { color: var(--ink); }
.prose a { color: var(--green-700); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .35rem; }
.prose li::marker { color: var(--green-600); }
.prose blockquote {
  border-left: 4px solid var(--green-500); background: var(--green-50);
  padding: 1rem 1.3rem; border-radius: 0 14px 14px 0; color: var(--green-900); font-style: italic;
}
.prose code { font: 500 .88em var(--mono); background: var(--green-50); color: var(--green-800); padding: .12em .42em; border-radius: 6px; }
.prose pre { background: var(--green-950); color: #d1fae5; padding: 1.1rem 1.3rem; border-radius: 14px; overflow-x: auto; font-size: .9rem; line-height: 1.65; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose img { border-radius: 14px; height: auto; }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 2.4rem 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: .6rem .8rem; text-align: left; }
.prose th { background: var(--green-50); color: var(--ink); }
.share {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 3rem; padding: 1.3rem 1.5rem; border-radius: 18px; background: var(--green-50); border: 1px solid var(--green-100);
}
.share b { font: 700 1rem var(--head); }
.share-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-btns .btn { padding: .55rem 1.1rem; font-size: .85rem; }
.more-posts { margin-top: 4.5rem; }
.more-posts h2 { font: 800 1.6rem var(--head); margin-bottom: 1.4rem; letter-spacing: -.02em; }

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; padding-left: 0; }
  .profile { margin: 0 auto; }
  .ft-2 { right: -6px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .flow { flex-wrap: wrap; justify-content: center; gap: .8rem; }
  .flow .pipe { display: none; }
  .node { flex: 1 1 28%; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: .5rem 16px 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .8rem 0; }
  .nav-cta { text-align: center; margin-top: .4rem; }
  section { padding: 72px 0; }
  .hero { padding: 110px 0 90px; min-height: 0; }
  .hero-visual { padding-bottom: 0; }
  .term { position: relative; width: 100%; margin-top: 1rem; }
  .term pre { height: 205px; }
  .scroll-hint { display: none; }
  .node { flex: 1 1 40%; min-width: 0; }
  .hero-stats { gap: 1.6rem; }
  .stat-num { font-size: 1.7rem; }
  .prod-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .float-tag { display: none; }
}

.page-hero.has-cover { padding-bottom: 190px; }
@media (max-width: 760px) {
  .page-hero { padding: 110px 0 64px; }
  .page-hero.has-cover { padding-bottom: 150px; }
  .article-cover { margin-top: -110px; }
  .search { max-width: none; }
}
