:root {
  --bg: #fafaf9;
  --fg: #0c0c0c;
  --muted: #6b6b6b;
  --faint: #a3a3a3;
  --line: rgba(0,0,0,.09);
  --dots: rgba(0,0,0,.18);
  --card: rgba(0,0,0,.025);
  --btn-bg: #0c0c0c;
  --btn-fg: #fafaf9;
  --glow: rgba(255, 170, 60, .16);
  --green: #16a34a;
  --ease: cubic-bezier(.22,1,.36,1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #f2f2f2;
    --muted: #8a8a8a;
    --faint: #555;
    --line: rgba(255,255,255,.08);
    --dots: rgba(255,255,255,.16);
    --card: rgba(255,255,255,.025);
    --btn-bg: #f2f2f2;
    --btn-fg: #0a0a0a;
    --glow: rgba(255, 190, 110, .09);
    --green: #22c55e;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--fg); color: var(--bg); }

/* ambient glow that follows the cursor */
.glow {
  position: fixed; inset: -20vh -20vw auto; height: 70vh;
  pointer-events: none; z-index: 0;
  background: radial-gradient(40% 60% at var(--gx, 50%) 0%, var(--glow), transparent 70%);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: .75 } 50% { opacity: 1 } }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .035;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { position: relative; z-index: 2; max-width: 600px; margin: 0 auto; padding: 56px 20px 64px; }

/* reveal */
.r { opacity: 0; transform: translateY(14px); filter: blur(6px);
     transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.r.in { opacity: 1; transform: none; filter: none; }

/* nav */
nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 72px; }
.name { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; filter: grayscale(1);
          box-shadow: 0 0 0 1px var(--line); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 400; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); position: relative; flex: none; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green);
              animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7 } 80%,100% { transform: scale(3.2); opacity: 0 } }
.navlinks { display: flex; gap: 18px; font-size: 13px; color: var(--muted); }
.navlinks a { transition: color .2s; }
.navlinks a:hover { color: var(--fg); }
@media (max-width: 460px) {
  .status .label { display: none; }
  .navlinks { gap: 14px; }
}

/* hero */
h1 { font-size: clamp(22px, 4.6vw, 27px); font-weight: 500; line-height: 1.35;
     letter-spacing: -.022em; margin-bottom: 18px; text-wrap: balance; }
h1 .soft { color: var(--muted); }
.lead { color: var(--muted); max-width: 520px; margin-bottom: 30px; text-wrap: pretty; }

.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 14px; font-weight: 500; padding: 11px 18px; border-radius: 10px;
  transition: transform .35s var(--ease);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 6px 20px -8px rgba(0,0,0,.35);
}
.btn::before {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transition: transform .8s var(--ease);
}
@media (prefers-color-scheme: dark) {
  .btn::before { background: linear-gradient(100deg, transparent 30%, rgba(0,0,0,.12) 50%, transparent 70%); }
}
.btn:hover { transform: translateY(-1px); }
.btn:hover::before { transform: translateX(120%); }
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; font-size: 13px; color: var(--muted); }
.proof b { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }

section { margin-top: 96px; }
h2 { font-size: 19px; font-weight: 500; letter-spacing: -.015em; margin-bottom: 22px; }
.eyebrow { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .08em;
           text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }

/* work list */
.work { list-style: none; }
.item { display: block; border-radius: 12px; margin: 0 -12px; padding: 14px 12px 16px;
        transition: background .3s var(--ease); }
.item:hover { background: var(--card); }
.row { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.row .t { font-size: 16px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.row .tag { font-size: 12px; color: var(--faint); white-space: nowrap; }
.row .lead-line { flex: 1; height: 1px; min-width: 20px; position: relative;
  background-image: linear-gradient(to right, var(--dots) 1px, transparent 1px); background-size: 5px 1px; }
.row .lead-line::after { content: ""; position: absolute; inset: 0; background: var(--fg); opacity: .35;
  transform-origin: left; transform: scaleX(0); transition: transform .7s var(--ease); }
.item:hover .lead-line::after { transform: scaleX(1); }
.row .arrow { width: 14px; height: 14px; color: var(--faint); flex: none;
              transition: transform .45s var(--ease), color .3s; }
.item:hover .arrow { color: var(--fg); transform: translate(2px, -2px); }
.desc { color: var(--muted); font-size: 14px; }
.desc b { color: var(--fg); font-weight: 500; }

/* testimonials */
.quotes { display: grid; gap: 10px; }
.quote { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--card);
         transition: transform .5s var(--ease), border-color .3s; }
.quote:hover { transform: translateY(-2px); border-color: var(--dots); }
.quote p { font-size: 15px; line-height: 1.55; letter-spacing: -.005em; margin-bottom: 14px; text-wrap: pretty; }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.who .ini { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
            font-size: 11px; font-weight: 500; color: var(--muted); border: 1px solid var(--line); }
.who b { font-weight: 500; display: block; line-height: 1.3; }
.who span { color: var(--muted); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.step { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--card);
        transition: transform .5s var(--ease), border-color .3s; }
.step:hover { transform: translateY(-3px); border-color: var(--dots); }
.step .n { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; color: var(--faint); }
.step h3 { font-size: 15px; font-weight: 500; margin: 8px 0 4px; letter-spacing: -.01em; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.5; }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* faq */
.faq { border-top: 1px solid var(--line); }
.q { border-bottom: 1px solid var(--line); }
.q button { width: 100%; background: none; border: 0; color: inherit; font: inherit; cursor: pointer;
            display: flex; justify-content: space-between; align-items: center; gap: 16px;
            padding: 15px 0; text-align: left; font-weight: 500; font-size: 15px; transition: opacity .2s; }
.q button:hover { opacity: .7; }
.q .chev { width: 14px; height: 14px; color: var(--faint); transition: transform .5s var(--ease); flex: none; }
.q.open .chev { transform: rotate(180deg); }
.q .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.q.open .a { grid-template-rows: 1fr; }
.q .a > p { overflow: hidden; color: var(--muted); font-size: 14px; }
.q.open .a > p { padding-bottom: 16px; }

/* final cta */
.cta { margin-top: 110px; padding: 34px 26px; border: 1px solid var(--line); border-radius: 18px;
       background: radial-gradient(120% 140% at 50% 0%, var(--glow), transparent 60%), var(--card); text-align: center; }
.cta .me { position: relative; width: 64px; height: 64px; margin: 0 auto 16px; }
.cta .me img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; filter: grayscale(1);
               box-shadow: 0 0 0 1px var(--line), 0 8px 24px -10px rgba(0,0,0,.4); }
.cta .me .dot { position: absolute; right: 3px; bottom: 3px; width: 11px; height: 11px;
                box-shadow: 0 0 0 2px var(--bg); }
.cta h2 { font-size: 22px; margin-bottom: 8px; }
.cta p { color: var(--muted); margin: 0 auto 22px; max-width: 380px; font-size: 14px; }

footer { margin-top: 64px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
         font-size: 13px; color: var(--faint); flex-wrap: wrap; }
footer .links { display: flex; gap: 18px; }
footer a { transition: color .2s; cursor: pointer; }
footer a:hover { color: var(--fg); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 10;
         background: var(--btn-bg); color: var(--btn-fg); font-size: 13px; padding: 8px 14px; border-radius: 999px;
         transition: opacity .35s var(--ease), transform .35s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- project pages ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); transition: color .2s; }
.back svg { transition: transform .35s var(--ease); }
.back:hover { color: var(--fg); }
.back:hover svg { transform: translateX(-3px); }
.p-head { margin-top: 48px; }
.p-head h1 { font-size: clamp(26px, 6vw, 34px); margin-bottom: 10px; }
.p-head .sub { color: var(--muted); font-size: 16px; text-wrap: pretty; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags span { font-size: 12px; color: var(--muted); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 32px; }
@media (min-width: 560px) { .stats.four { grid-template-columns: repeat(4, 1fr); } .stats.three { grid-template-columns: repeat(3, 1fr); } }
.stat { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--card); }
.stat b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); line-height: 1.35; display: block; margin-top: 2px; }
.plinks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 14px; }
.plinks a { border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: border-color .2s; }
.plinks a:hover { border-color: var(--fg); }
.prose { margin-top: 56px; }
.prose h2 { margin: 44px 0 12px; font-size: 18px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); margin-bottom: 12px; text-wrap: pretty; }
.prose p b { color: var(--fg); font-weight: 500; }
.prose ul { list-style: none; display: grid; gap: 8px; margin: 6px 0 12px; }
.prose li { color: var(--muted); display: flex; gap: 10px; }
.prose li::before { content: "→"; color: var(--faint); flex: none; }
.prose .quote { margin-top: 18px; }
.next { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 20px;
        border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.next a { color: var(--fg); display: inline-flex; gap: 6px; align-items: center; }
.next a svg { transition: transform .35s var(--ease); }
.next a:hover svg { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .r { opacity: 1; transform: none; filter: none; }
}
