:root {
  --bg: #0a0c0b;
  --card: #121614;
  --card-2: #171c19;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef2ef;
  --muted: #95a09a;
  --accent: #3ee07f;
  --accent-2: #2bc4c4;
  --accent-ink: #04140a;
  --warn: #f5b74a;
  --head: "Space Grotesk", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 760px) { .wrap { padding-left: 32px; padding-right: 32px; } }

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .55;
}
.glow {
  position: absolute; width: 760px; height: 760px; border-radius: 50%;
  left: var(--mx, 72%); top: var(--my, 18%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(62, 224, 127, .16), rgba(43, 196, 196, .06) 40%, transparent 70%);
  transition: left .8s var(--ease), top .8s var(--ease);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 20;
  width: calc(100% - 24px); max-width: 860px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 14px; border-radius: 999px;
  background: rgba(17, 21, 19, .72); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  animation: drop .8s var(--ease) both;
}
@keyframes drop { from { opacity: 0; transform: translate(-50%, -20px); } }
.logo { display: flex; align-items: center; gap: 10px; font: 700 18px var(--head); }
.logo svg { width: 28px; height: 28px; padding: 5px; border-radius: 9px; background: var(--accent); fill: none; stroke: var(--accent-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.nav nav { display: none; gap: 2px; }
.nav nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; transition: color .2s, background .2s; }
.nav nav a:hover, .nav nav a.on { color: var(--text); background: rgba(255,255,255,.07); }
@media (min-width: 760px) { .nav nav { display: flex; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid var(--line-2);
  font: 600 15px var(--sans); color: var(--text); background: rgba(255,255,255,.03);
  cursor: pointer; overflow: hidden; transition: transform .25s var(--ease), box-shadow .3s, background .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.3); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { box-shadow: 0 10px 40px -8px rgba(62,224,127,.6); border-color: var(--accent); }
.btn-accent::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transition: transform .7s var(--ease);
}
.btn-accent:hover::after { transform: translateX(120%); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-wide { width: 100%; }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

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

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: grid; align-items: center; gap: 48px;
  padding-top: 120px; padding-bottom: 72px;
}
@media (min-width: 1000px) { .hero { grid-template-columns: 1.1fr .9fr; gap: 56px; padding-top: 100px; } }
.hero-copy { min-width: 0; }

.badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(62,224,127,.06);
  font-size: 14px; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(62,224,127,.6); animation: ping 2s infinite; flex: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(62,224,127,0); } 100% { box-shadow: 0 0 0 0 rgba(62,224,127,0); } }

h1 { font: 700 clamp(40px, 7vw, 80px)/1.04 var(--head); letter-spacing: -.04em; margin: 0 0 24px; }
.rotator { display: block; height: 1.12em; overflow: hidden; }
.rot-word {
  display: inline-block; white-space: nowrap;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.rot-word.out { transform: translateY(-100%); opacity: 0; }
.rot-word.pre { transform: translateY(100%); opacity: 0; transition: none; }

.sub { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 52ch; margin: 0 0 32px; }
.sub strong { color: var(--text); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.mini-stats { list-style: none; margin: 44px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px 40px; }
.mini-stats li { display: grid; }
.mini-stats b { font: 700 30px var(--head); }
.mini-stats span { color: var(--muted); font-size: 14px; }

/* Runner */
.runner {
  min-width: 0; border-radius: var(--r); background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line-2); box-shadow: 0 40px 120px -40px rgba(62,224,127,.35);
  overflow: hidden; font-family: var(--mono);
}
.runner-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.runner-top .dots { display: flex; gap: 6px; }
.runner-top .dots i { width: 10px; height: 10px; border-radius: 50%; }
.runner-top .dots i:nth-child(1) { background: #ff5f57; } .runner-top .dots i:nth-child(2) { background: #febc2e; } .runner-top .dots i:nth-child(3) { background: #28c840; }
.file { font-size: 13px; color: var(--muted); }
.state { margin-left: auto; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(245,183,74,.12); color: var(--warn); transition: background .3s, color .3s; }
.state.done { background: rgba(62,224,127,.12); color: var(--accent); }
.runner-body { padding: 20px 20px 22px; font-size: 13.5px; }
.cmd { margin: 0 0 18px; color: var(--text); }
.cmd span { color: var(--accent); }
#run-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
#run-list li { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 12px; color: var(--muted); opacity: .35; transition: opacity .3s, color .3s; }
#run-list li.active, #run-list li.pass { opacity: 1; }
#run-list li.pass { color: var(--text); }
.ic { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #3a403c; position: relative; }
li.active .ic { border-color: var(--warn); border-top-color: transparent; animation: spin .7s linear infinite; }
li.pass .ic { border-color: var(--accent); background: var(--accent); animation: pop .35s var(--ease); }
li.pass .ic::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.2); } }
.ms { font-size: 12px; color: var(--muted); }
.progress { height: 6px; border-radius: 99px; background: rgba(255,255,255,.06); margin: 22px 0 16px; overflow: hidden; }
#run-bar { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .5s var(--ease); }
.result { margin: 0; color: var(--muted); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease); }
.result.show { opacity: 1; transform: none; }
.result b { color: var(--accent); }

/* ---------- Ribbon ---------- */
.ribbon {
  border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ribbon:hover .track { animation-play-state: paused; }
.track ul { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0 7px; }
.track li {
  font: 600 17px var(--head); color: var(--muted); padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--line); white-space: nowrap; transition: color .2s, border-color .2s;
}
.track li::before { content: "✓"; color: var(--accent); margin-right: 10px; }
.track li:hover { color: var(--text); border-color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-top: 110px; padding-bottom: 110px; scroll-margin-top: 30px; }
@media (min-width: 760px) { .section { padding-top: 140px; padding-bottom: 140px; } }
.head { max-width: 780px; margin-bottom: 56px; }
.kicker { font: 600 15px var(--sans); color: var(--accent); margin: 0 0 14px; }
h2 { font: 700 clamp(32px, 4.8vw, 54px)/1.08 var(--head); letter-spacing: -.03em; margin: 0; }
.hl { color: var(--muted); }
h3 { font: 700 21px/1.25 var(--head); letter-spacing: -.01em; margin: 0 0 8px; }

/* ---------- Bento / Expertise ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(5, 1fr); }
  .bento .tile:nth-child(1), .bento .tile:nth-child(4), .bento .tile:nth-child(5) { grid-column: span 3; }
  .bento .tile:nth-child(2), .bento .tile:nth-child(3), .bento .tile:nth-child(6) { grid-column: span 2; }
}
.tile {
  position: relative; padding: 24px; border-radius: var(--r);
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line);
  overflow: hidden; transition: border-color .3s;
}
.tile::before, .svc::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(62,224,127,.12), transparent 45%);
}
.tile:hover::before, .svc:hover::before { opacity: 1; }
.tile:hover { border-color: rgba(62,224,127,.35); }
.tile p { color: var(--muted); margin: 0; }
.tile .tags { margin-top: 14px; font: 400 13px var(--mono); color: var(--accent); }

.art { height: 200px; margin-bottom: 24px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid var(--line); position: relative; overflow: hidden; display: grid; place-items: center; }
.sk { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); margin-bottom: 8px; }
.w40 { width: 40%; } .w60 { width: 60%; } .w80 { width: 80%; }

/* UI art */
.browser { width: 78%; max-width: 320px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line-2); position: relative; }
.b-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.b-bar i { width: 7px; height: 7px; border-radius: 50%; background: #3a403c; }
.b-bar span { flex: 1; height: 8px; margin-left: 8px; border-radius: 4px; background: rgba(255,255,255,.06); }
.b-body { padding: 16px 14px 18px; }
.b-btn { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; background: rgba(255,255,255,.1); font: 600 12px var(--sans); animation: btnok 4s infinite; }
.b-btn em { font-style: normal; }
.b-btn svg { width: 0; height: 14px; fill: none; stroke: var(--accent-ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; animation: chk 4s infinite; }
.cursor { position: absolute; width: 20px; height: 20px; fill: #fff; stroke: #000; stroke-width: 1; left: 85%; top: 20%; animation: cur 4s var(--ease) infinite; }
.ripple { position: absolute; left: 22%; top: 80%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: rip 4s infinite; }
@keyframes cur { 0%, 10% { left: 85%; top: 20%; } 38%, 100% { left: 21%; top: 76%; } }
@keyframes rip { 0%, 40% { opacity: 0; transform: scale(.5); } 43% { opacity: 1; } 62%, 100% { opacity: 0; transform: scale(4); } }
@keyframes btnok { 0%, 42% { background: rgba(255,255,255,.1); color: var(--text); } 46%, 92% { background: var(--accent); color: var(--accent-ink); } 100% { background: rgba(255,255,255,.1); } }
@keyframes chk { 0%, 44% { width: 0; } 50%, 92% { width: 14px; } 100% { width: 0; } }

/* API art */
.art-api { place-items: stretch; align-content: center; gap: 10px; padding: 0 18px; font: 400 13px var(--mono); }
.req { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); opacity: 0; animation: req 6s infinite; white-space: nowrap; }
.req:nth-child(2) { animation-delay: .5s; } .req:nth-child(3) { animation-delay: 1s; } .req:nth-child(4) { animation-delay: 1.5s; }
.m { font-size: 11px; padding: 2px 6px; border-radius: 4px; min-width: 40px; text-align: center; }
.get { background: rgba(62,224,127,.15); color: var(--accent); } .post { background: rgba(43,196,196,.15); color: var(--accent-2); }
.put { background: rgba(245,183,74,.15); color: var(--warn); } .del { background: rgba(255,107,107,.15); color: #ff8a8a; }
.st { margin-left: auto; color: var(--accent); }
@keyframes req { 0% { opacity: 0; transform: translateX(-14px); } 8%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }

/* Perf art */
.art-perf svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: calc(100% - 44px); }
.art-perf .line { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 5s var(--ease) infinite; }
.art-perf .area { fill: rgba(62,224,127,.1); opacity: 0; animation: fade 5s infinite; }
.metric { position: absolute; top: 14px; left: 14px; font: 400 12px var(--mono); color: var(--muted); padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.05); }
.metric b { color: var(--accent); font-weight: 500; }
.metric.r { left: auto; right: 14px; }
@keyframes draw { 0% { stroke-dashoffset: 400; opacity: 1; } 45%, 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes fade { 0%, 30% { opacity: 0; } 50%, 85% { opacity: 1; } 100% { opacity: 0; } }

/* Mobile art */
.phone { width: 100px; height: 176px; border-radius: 20px; border: 2px solid var(--line-2); background: var(--card-2); position: relative; overflow: hidden; margin-top: 40px; }
.notch { position: absolute; top: 7px; left: 50%; width: 30px; height: 6px; margin-left: -15px; border-radius: 4px; background: rgba(255,255,255,.12); z-index: 1; }
.screens { display: flex; width: 300%; height: 100%; animation: swipe 7.5s var(--ease) infinite; }
.scr { width: 33.333%; padding: 28px 12px 0; }
.pill { display: inline-block; margin-top: 10px; padding: 4px 8px; border-radius: 99px; font: 600 10px var(--sans); white-space: nowrap; }
.pill.ok { background: rgba(62,224,127,.15); color: var(--accent); }
@keyframes swipe { 0%, 26% { transform: translateX(0); } 33%, 59% { transform: translateX(-33.333%); } 66%, 92% { transform: translateX(-66.666%); } 100% { transform: translateX(0); } }

/* ---------- Services ---------- */
.services { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, 1fr); } }
.svc {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding: 28px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .3s;
}
.svc:hover { transform: translateY(-6px); border-color: rgba(62,224,127,.35); }
.svc-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(62,224,127,.1); border: 1px solid rgba(62,224,127,.22); margin-bottom: 22px; transition: transform .4s var(--ease); }
.svc-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc:hover .svc-ic { transform: rotate(-8deg) scale(1.08); }
.svc p { color: var(--muted); margin: 0 0 24px; }
.svc-go { margin-top: auto; background: none; border: 0; padding: 0; cursor: pointer; font: 600 15px var(--sans); color: var(--accent); display: inline-flex; gap: 8px; }
.svc-go span { transition: transform .3s var(--ease); }
.svc:hover .svc-go span { transform: translateX(5px); }
.svc-cta { background: linear-gradient(140deg, rgba(62,224,127,.16), rgba(43,196,196,.06) 60%, var(--card)); border-color: rgba(62,224,127,.3); }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; position: relative; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps::before { content: ""; position: absolute; top: 27px; left: 28px; width: calc((100% - 64px) * 2 / 3 + 64px); height: 2px; background: var(--line-2); }
  .steps::after { content: ""; position: absolute; top: 27px; left: 28px; height: 2px; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1.6s var(--ease) .3s; }
  .steps.in::after { width: calc((100% - 64px) * 2 / 3 + 64px); }
}
.steps li { position: relative; }
.steps .n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent); color: var(--accent); font: 700 20px var(--head); margin-bottom: 22px;
}
.steps p { color: var(--muted); margin: 0; max-width: 32ch; }

/* ---------- Contact ---------- */
.contact {
  display: grid; gap: 40px; padding: 24px; border-radius: 28px;
  background: radial-gradient(600px circle at 0% 0%, rgba(62,224,127,.12), transparent 60%), var(--card);
  border: 1px solid var(--line-2);
}
@media (min-width: 900px) { .contact { grid-template-columns: .9fr 1.1fr; gap: 56px; padding: 56px; } }
.contact-copy > p:not(.kicker) { color: var(--muted); margin: 18px 0 28px; }
.reach { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.reach a { display: inline-flex; align-items: center; gap: 12px; transition: color .2s; overflow-wrap: anywhere; }
.reach a span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.05); border: 1px solid var(--line); flex: none; transition: background .2s; }
.reach a span svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reach a:hover { color: var(--accent); }
.reach a:hover span { background: rgba(62,224,127,.15); }

.form { position: relative; display: grid; gap: 16px; }
.row { display: grid; gap: 16px; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }
.fld { display: grid; gap: 8px; }
.fld > span { font-size: 14px; color: var(--muted); }
.fld input, .fld select, .fld textarea {
  width: 100%; font: 400 16px/1.5 var(--sans); color: var(--text);
  background-color: rgba(0,0,0,.3); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.fld select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 17px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.fld select option { background: var(--card); }
.fld textarea { resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(62,224,127,.15); background-color: rgba(0,0,0,.4); }
.fld select.flash { animation: flash 1.4s; }
@keyframes flash { 0%, 50% { border-color: var(--accent); box-shadow: 0 0 0 6px rgba(62,224,127,.25); } }
.hp { position: absolute; left: -9999px; }

.sent {
  position: absolute; inset: -8px; display: grid; place-content: center; justify-items: center; text-align: center;
  border-radius: 16px; background: var(--card); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.sent p { color: var(--muted); margin: 0; }
.sent svg { width: 72px; height: 72px; margin-bottom: 16px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sent circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.sent path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.form.done .sent { opacity: 1; visibility: visible; }
.form.done .sent circle { animation: dash .7s var(--ease) forwards; }
.form.done .sent path { animation: dash .45s var(--ease) .6s forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.form.busy button[type=submit] { opacity: .6; pointer-events: none; }

/* ---------- Footer ---------- */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 32px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot p { margin: 0; }
.foot .mono { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Identity line + headline ---------- */
.me { display: flex; align-items: center; gap: clamp(18px, 3vw, 28px); margin-bottom: 30px; }
.avatar { width: clamp(118px, 14vw, 168px); aspect-ratio: 400 / 460; height: auto; flex: none; object-fit: cover; border-radius: 22px; border: 1px solid rgba(62,224,127,.45); box-shadow: 0 24px 60px -20px rgba(62,224,127,.45), 0 0 0 6px rgba(62,224,127,.07); transition: transform .4s var(--ease); }
.avatar:hover { transform: rotate(-2deg) scale(1.03); }
.me b { display: block; font: 700 clamp(26px, 3.2vw, 36px)/1.1 var(--head); letter-spacing: -.02em; margin-bottom: 12px; }
.role { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: linear-gradient(90deg, rgba(62,224,127,.16), rgba(43,196,196,.10)); border: 1px solid rgba(62,224,127,.3); font: 600 clamp(14px, 1.5vw, 17px)/1.3 var(--head); color: var(--text); }
.role svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Bug hunt ---------- */
.bug { position: absolute; z-index: 3; width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; animation: wiggle 2.4s ease-in-out infinite; }
.bug svg { width: 100%; height: 100%; display: block; }
.bug.squashed { animation: squash .5s var(--ease) forwards; pointer-events: none; }
@keyframes wiggle { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg) translateX(3px); } }
@keyframes squash { 0% { transform: scale(1.3); } 100% { transform: scale(0) rotate(90deg); opacity: 0; } }
.hunt { position: fixed; z-index: 25; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; background: rgba(18,22,20,.9); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.45); transition: transform .3s var(--ease), border-color .3s; }
.hunt svg { width: 20px; height: 20px; }
.hunt b { color: var(--warn); }
.hunt.bump { transform: scale(1.12); }
.hunt.win { border-color: var(--accent); }
.hunt.win b { color: var(--accent); }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 90px; transform: translate(-50%, 20px); width: min(420px, calc(100% - 32px)); padding: 24px; border-radius: 18px; text-align: center; background: var(--card); border: 1px solid var(--accent); box-shadow: 0 30px 80px rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast p { color: var(--muted); margin: 0 0 16px; }
.spark { position: fixed; z-index: 40; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .bug { animation: none; } }

/* ---------- Vacancy card ---------- */
.svc-job { grid-column: 1 / -1; background: linear-gradient(120deg, rgba(43,196,196,.12), rgba(62,224,127,.05) 55%, var(--card)); border-color: rgba(43,196,196,.3); }
.svc-job .svc-go.btn { margin-top: 0; padding: 13px 22px; border: 1px solid var(--line-2); color: var(--text); }
.svc-job .job-copy p { margin-bottom: 20px; }
@media (min-width: 760px) {
  .svc-job { flex-direction: row; align-items: center; gap: 24px; }
  .svc-job .svc-ic { margin-bottom: 0; }
  .svc-job .job-copy { flex: 1; }
  .svc-job .job-copy p { margin-bottom: 0; }
  .svc-job .svc-go.btn { flex: none; }
}

/* ---------- Friendlier form labels ---------- */
.fld > span { font: 600 15px var(--head); color: var(--text); display: flex; align-items: center; gap: 8px; }
.fld > span::before { content: "›"; font: 500 16px var(--mono); color: var(--accent); }
.fld input::placeholder, .fld textarea::placeholder { color: #5f6a64; }

/* ---------- Free badge ---------- */
.free { position: absolute; top: 24px; right: 24px; padding: 5px 12px; border-radius: 999px; font: 600 13px var(--sans); color: var(--accent-ink); background: var(--accent); box-shadow: 0 6px 24px -6px rgba(62,224,127,.6); }

/* ---------- CV download modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(5,7,6,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadein .25s ease; }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(440px, 100%); padding: 32px 28px 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 40px 100px rgba(0,0,0,.6); animation: rise .35s var(--ease); }
.modal-card form, .cv-ready { display: grid; gap: 14px; }
.modal-card h3 { font-size: 26px; margin: 0; }
.modal-sub { color: var(--muted); margin: -6px 0 6px; }
.fld small { color: var(--muted); font: 400 13px var(--sans); }
.modal-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.modal-x:hover { color: var(--text); }
@keyframes fadein { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-card form[hidden], .cv-ready[hidden] { display: none; }


/* ---------- AI automation art (n8n-style flow) ---------- */
.flow { display: flex; align-items: center; width: 90%; max-width: 440px; margin-top: 26px; }
.node { flex: none; display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line-2); font-size: 12px; animation: nodeon 3.6s infinite; }
.node b { font: 600 13px var(--head); }
.node span { color: var(--muted); white-space: nowrap; }
.node.ai { border-color: rgba(43,196,196,.5); }
.node.ai b { color: var(--accent-2); }
.n2 { animation-delay: 1.2s; } .n3 { animation-delay: 2.4s; }
.wire { position: relative; flex: 1; min-width: 18px; height: 2px; background: var(--line-2); }
.wire i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); opacity: 0; animation: travel 3.6s linear infinite; }
.wire + .node + .wire i { animation-delay: 1.2s; }
@keyframes travel { 0% { left: 0; opacity: 0; } 5% { opacity: 1; } 30% { left: calc(100% - 8px); opacity: 1; } 34%, 100% { opacity: 0; left: calc(100% - 8px); } }
@keyframes nodeon { 0%, 100% { box-shadow: none; } 8%, 24% { box-shadow: 0 0 0 3px rgba(62,224,127,.25); border-color: var(--accent); } 32% { box-shadow: none; } }
@media (max-width: 420px) { .node span { display: none; } }

/* ---------- Resource management art ---------- */
.people { display: flex; gap: 10px; width: 92%; max-width: 440px; justify-content: center; }
.person { flex: 1; min-width: 0; display: grid; justify-items: center; gap: 3px; padding: 14px 8px 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line-2); text-align: center; animation: rise2 6s var(--ease) infinite; opacity: 0; }
.person i { width: 30px; height: 30px; border-radius: 50%; margin-bottom: 4px; background: radial-gradient(circle at 50% 38%, #3a463f 34%, transparent 36%), radial-gradient(ellipse at 50% 112%, #3a463f 48%, transparent 50%), rgba(255,255,255,.04); border: 1px solid var(--line-2); }
.person b { font: 600 12px var(--head); white-space: nowrap; }
.person span { color: var(--muted); font-size: 11px; }
.person em { margin-top: 6px; font: 600 10px var(--sans); font-style: normal; padding: 3px 8px; border-radius: 99px; background: rgba(62,224,127,.15); color: var(--accent); opacity: 0; animation: ready 6s infinite; }
.p2, .p2 em { animation-delay: .4s; } .p3, .p3 em { animation-delay: .8s; }
@keyframes rise2 { 0% { opacity: 0; transform: translateY(14px); } 10%, 85% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes ready { 0%, 22% { opacity: 0; transform: scale(.6); } 30%, 85% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }

/* ---------- Runner controls + failure state ---------- */
.run-ctrl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.run-ctrl button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--text); font: 500 12.5px var(--mono); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.run-ctrl button:hover { border-color: var(--accent); background: rgba(62,224,127,.08); transform: translateY(-1px); }
.run-ctrl button.warn:hover { border-color: var(--warn); background: rgba(245,183,74,.08); }
.run-ctrl button:disabled { opacity: .4; pointer-events: none; }
.run-ctrl svg { width: 14px; height: 14px; fill: var(--accent); }
.run-ctrl .warn svg { width: 16px; height: 16px; }
#run-list li.fail { opacity: 1; color: #ff8a8a; }
li.fail .ic { border-color: #ff6b6b; background: #ff6b6b; animation: shake .4s; }
li.fail .ic::before, li.fail .ic::after { content: ""; position: absolute; left: 6.5px; top: 2.5px; width: 2px; height: 9px; background: var(--bg); transform: rotate(45deg); }
li.fail .ic::after { transform: rotate(-45deg); border: 0; }
.fail-msg { grid-column: 2 / -1; font-size: 12px; color: #ff8a8a; opacity: .85; }
.state.bad { background: rgba(255,107,107,.14); color: #ff8a8a; }
.result b.bad { color: #ff8a8a; }
.runner.shake { animation: shake .45s; }
@keyframes shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }

/* ---------- Tool tips under the ribbon ---------- */
.track li { cursor: help; outline: none; }
.track li:focus-visible, .track li.on { color: var(--text); border-color: var(--accent); background: rgba(62,224,127,.08); }
.tool-tip { margin: 16px auto 0; padding: 0 16px; max-width: 640px; text-align: center; color: var(--muted); font-size: 15px; min-height: 1.6em; transition: opacity .25s; }
.tool-tip b { color: var(--accent); font-weight: 600; }

/* ---------- Coverage meter in nav ---------- */
.coverage { display: none; align-items: center; gap: 8px; font: 500 12px var(--mono); color: var(--muted); }
.coverage i { width: 54px; height: 5px; border-radius: 9px; background: rgba(255,255,255,.08); overflow: hidden; }
.coverage b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.coverage em { font-style: normal; min-width: 8.5em; }
.coverage.full em { color: var(--accent); }
@media (min-width: 420px) { .coverage { display: inline-flex; } }
@media (min-width: 760px) and (max-width: 980px) { .coverage { display: none; } }

/* ---------- Tilt ---------- */
.tilt { transform-style: preserve-3d; will-change: transform; }
