/* ============ Tokens ============ */
:root {
  color-scheme: dark;
  --bg: #000;
  --bg-2: #0b0b0d;
  --surface: #141416;
  --surface-2: #1c1c1f;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --accent: #8b7bff;
  --accent-2: #4cc9f0;
  --radius: 22px;
  --radius-lg: 32px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);       /* critically damped feel */
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, 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: 400 1.0625rem/1.55 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ============ Type ============ */
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-2);
}
.h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  line-height: 1.04; letter-spacing: -0.035em; font-weight: 700;
}
.lead {
  margin: 20px 0 0; max-width: 38rem;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--text-2); letter-spacing: -0.005em;
}
.kicker {
  margin: 0 0 12px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent);
}
.muted { color: var(--text-2); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--text); color: #000;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  transition: transform 160ms var(--ease), background 200ms ease;
}
.btn:hover { background: #fff; }
.btn:active { transform: scale(0.96); transition-duration: 80ms; }
.btn--ghost { background: rgba(255,255,255,0.1); color: var(--text); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--ghost:hover { background: rgba(255,255,255,0.18); }
.btn--small { height: 34px; padding: 0 16px; font-size: 0.875rem; }
.btn--light { background: #fff; color: #000; }

/* ============ Nav ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, border-color 300ms ease;
}
.nav.is-scrolled {
  background: rgba(10, 10, 12, 0.66);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto;
  padding: 12px var(--gutter); display: flex; align-items: center; gap: 24px;
}
.nav__logo { font-weight: 700; letter-spacing: -0.02em; margin-right: auto; }
.nav__links { display: flex; gap: 28px; font-size: 0.875rem; color: var(--text-2); }
.nav__links a { transition: color 160ms ease; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 100px; overflow: clip;
}
.hero__glow { position: absolute; inset: 0; pointer-events: none; filter: blur(80px); opacity: 0.55; }
.hero__glow span { position: absolute; border-radius: 50%; }
.hero__glow span:nth-child(1) { width: 46vw; height: 46vw; left: -8vw; top: 6vh; background: #4b3bd6; animation: drift1 26s var(--ease-soft) infinite alternate; }
.hero__glow span:nth-child(2) { width: 36vw; height: 36vw; right: 4vw; top: 30vh; background: #1f7fb8; animation: drift2 32s var(--ease-soft) infinite alternate; }
.hero__glow span:nth-child(3) { width: 26vw; height: 26vw; left: 38vw; bottom: -8vh; background: #8a3fd1; animation: drift1 38s var(--ease-soft) infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(8vw, 6vh) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-6vw, -8vh) scale(0.9); } }
.hero::after { /* fade bottom into page */
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(to bottom, transparent, #000); pointer-events: none;
}
.hero__content { position: relative; z-index: 2; }
.hero__title {
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 7rem);
  line-height: 0.98; letter-spacing: -0.045em; font-weight: 700;
  max-width: 12ch;
}
.hero__name { display: block; font-size: 0.8125rem; line-height: 1.5; letter-spacing: 0.04em; margin: 0 0 18px; max-width: none; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .muted { font-size: 0.36em; letter-spacing: -0.02em; line-height: 1.2; font-weight: 600; margin-top: 0.7em; max-width: 24ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* floating browser windows */
.hero__stack { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.win {
  position: absolute; border-radius: 14px; overflow: hidden;
  background: #1a1a1d; border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(0,0,0,0.4);
  transition: opacity 1200ms var(--ease), translate 1400ms var(--ease);
}
.js .win { opacity: 0; translate: 0 60px; }
.is-loaded .win { opacity: 1; translate: 0 0; }
.win img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.win--1 { width: min(40vw, 560px); right: -4vw; top: 16vh; transition-delay: .35s; rotate: -2deg; }
.win--2 { width: min(28vw, 400px); right: 22vw; top: 58vh; transition-delay: .5s; rotate: 3deg; }
.win--3 { width: min(24vw, 340px); right: 2vw; top: 66vh; transition-delay: .65s; rotate: -4deg; }
.win__bar, .browser__bar {
  display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
  background: #222226; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.win__bar i, .browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3f; }
.win__bar span, .browser__bar span {
  margin-left: 10px; font-size: 0.7rem; color: var(--text-3); font-family: var(--mono);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero__cue {
  position: absolute; z-index: 3; left: 50%; bottom: 24px; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.4);
}
.hero__cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff;
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* ============ Reveal ============ */
.js .reveal {
  opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity 900ms var(--ease), transform 1000ms var(--ease), filter 900ms var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.reveal-up { display: inline-block; }
.js .reveal-up {
  transform: translateY(105%);
  transition: transform 1100ms var(--ease); transition-delay: calc(var(--d, 0s) + 0.15s);
}
.is-loaded .reveal-up { transform: none; }

/* ============ Manifesto ============ */
.manifesto { padding-block: clamp(96px, 18vh, 200px) clamp(72px, 12vh, 140px); }
.manifesto__text {
  margin: 0; max-width: 980px;
  font-size: clamp(1.7rem, 4.2vw, 3.3rem); line-height: 1.16; letter-spacing: -0.03em; font-weight: 650;
}
.manifesto__text .w { color: #3a3a3d; transition: color 300ms ease; }
.manifesto__text .w.on { color: var(--text); }

/* ============ Stats ============ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: clamp(64px, 10vh, 120px); }
.stat { background: var(--surface); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.stat__num {
  font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1;
  background: linear-gradient(120deg, #fff 20%, #c4bcff 60%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__label { color: var(--text-2); font-size: 0.95rem; line-height: 1.4; max-width: 26ch; }

/* ============ Marquee ============ */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px;
  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; gap: 56px; width: max-content; animation: marquee 44s linear infinite;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; color: var(--text-3);
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.section { padding-block: clamp(88px, 14vh, 160px); }
.section--alt { background: var(--bg-2); }
.section__head { margin-bottom: clamp(36px, 6vh, 64px); }
.hide-sm { display: inline; }

/* ============ Filters ============ */
.filters {
  position: relative; display: inline-flex; gap: 2px; padding: 4px;
  background: var(--surface); border-radius: 999px; margin-bottom: 40px;
}
.filter {
  position: relative; z-index: 1; height: 36px; padding: 0 18px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; color: var(--text-2);
  transition: color 200ms ease, transform 120ms var(--ease);
}
.filter.is-active { color: #000; }
.filter:active { transform: scale(0.96); }
.filters__pill {
  position: absolute; z-index: 0; top: 4px; left: 0; height: 36px; border-radius: 999px; background: var(--text);
  transition: transform 450ms var(--ease-soft), width 450ms var(--ease-soft);
}

/* ============ Projects ============ */
.projects { display: grid; gap: clamp(56px, 9vh, 110px); }
.project {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
}
.project.is-hidden { display: none; }
.project--flip .project__visual { order: 2; }
.project__body h3 { margin: 0 0 14px; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.035em; line-height: 1.08; }
.project__body h3 a:hover .arrow { transform: translate(3px, -3px); color: var(--text); }
.project__body > p { margin: 0; color: var(--text-2); line-height: 1.6; }
.project--feature { grid-template-columns: 1fr 1.1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 56px); }

.browser {
  display: block; border-radius: 16px; overflow: hidden; background: #1a1a1d;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.9);
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform 700ms var(--ease), box-shadow 500ms ease;
}
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 1200ms var(--ease); }
a.browser:hover img { transform: scale(1.03); }
a.browser:active { transform: perspective(1400px) scale(0.985); transition-duration: 120ms; }

.project__visual--code {
  border-radius: 16px; background: #0d0d10; border: 1px solid rgba(255,255,255,0.1);
  padding: clamp(20px, 3vw, 36px); overflow-x: auto;
}
.project__visual--code pre { margin: 0; font: 0.95rem/1.9 var(--mono); color: #d2d2d7; }
.project__visual--code .c { color: var(--text-3); }
.project__visual--code .g { color: #5ee08a; }
.project__visual--code .m { color: var(--accent); }

.facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.facts li { position: relative; padding-left: 20px; color: #c7c7cc; font-size: 0.95rem; line-height: 1.5; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.facts strong { color: var(--text); font-weight: 600; }
.tags { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 0.8rem; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.arrow { display: inline-block; transition: transform 300ms var(--ease), color 300ms ease; color: var(--text-2); font-weight: 500; }

/* orbit diagram */
.orbit { position: relative; aspect-ratio: 1; width: 100%; max-width: 400px; margin-inline: auto; }
.orbit::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed rgba(255,255,255,0.14); }
.orbit__core {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 92px; height: 92px; border-radius: 28px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 20px 60px -10px rgba(139,123,255,0.6);
}
.orbit__node {
  --a: calc(var(--i) * 60deg - 90deg);
  position: absolute; left: 50%; top: 50%; transform-origin: 0 0;
  transform: rotate(var(--a)) translateX(min(34vw, 150px)) rotate(calc(var(--a) * -1)) translate(-50%, -50%);
  padding: 7px 12px; border-radius: 999px; white-space: nowrap; font-size: 0.8rem; font-weight: 600;
  background: rgba(40,40,44,0.85); border: 1px solid var(--line);
  opacity: 0; scale: 0.6;
  transition: opacity 600ms var(--ease), scale 700ms var(--ease);
  transition-delay: calc(0.3s + var(--i) * 0.08s);
}
.project.is-in .orbit__node { opacity: 1; scale: 1; }

/* ============ Freelance grid ============ */
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 48px) 24px; margin-top: clamp(56px, 9vh, 110px); }
.pgrid:has(> .pcard:not(.is-hidden)) { display: grid; }
.pcard.is-hidden { display: none; }
.pcard--wide { grid-column: span 2; }
.pcard--wide .browser img { aspect-ratio: 21 / 9; }
.pcard__meta { padding: 20px 4px 0; }
.pcard__meta h3 { margin: 0 0 6px; font-size: 1.4rem; letter-spacing: -0.025em; }
.pcard__meta h3 a:hover .arrow { transform: translate(3px, -3px); color: var(--text); }
.pcard__meta p:not(.kicker) { margin: 0; color: var(--text-2); }
.pcard__meta .kicker { margin-bottom: 8px; }

/* ============ Tools ============ */
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.tool {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(20px, 2.6vw, 28px); display: flex; flex-direction: column;
  transition: border-color 300ms ease;
}
.tool:hover { border-color: rgba(255,255,255,0.2); }
.tool h3 { margin: 0 0 10px; font-size: 1.4rem; letter-spacing: -0.03em; line-height: 1.15; }
.tool > p:not(.kicker), .tool--wide p:not(.kicker) { margin: 0; color: var(--text-2); }
.tool .tags { margin-top: auto; padding-top: 20px; }
.tool--wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.tool__visual {
  border-radius: 18px; background: #0d0d10; border: 1px solid rgba(255,255,255,0.08);
  aspect-ratio: 16 / 9; margin-bottom: 22px; overflow: hidden; position: relative;
}
.tool--wide .tool__visual { margin-bottom: 0; }
.tool__visual--img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tool__visual--code { display: flex; align-items: center; padding: 24px; aspect-ratio: auto; min-height: 160px; }
.tool__visual--code pre { margin: 0; font: 0.9rem/1.9 var(--mono); color: #d2d2d7; white-space: pre-wrap; }
.tool__visual--code .c { color: var(--text-3); }
.tool__visual--code .g { color: #5ee08a; }
.tool__visual--code .m { color: var(--accent); }

.project--tool { margin-top: clamp(56px, 9vh, 110px); }
.tools-grid { margin-top: clamp(56px, 9vh, 110px); }
.tool__visual--light { background: #fff; }
.tool__visual--light img { object-fit: contain; object-position: center; }

/* language switch */
.lang {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--text-2);
  height: 34px; min-width: 40px; padding: 0 10px; border-radius: 999px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); transition: color 160ms ease, border-color 160ms ease, transform 120ms var(--ease);
}
.lang:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }
.lang:active { transform: scale(0.95); }

/* AI pipeline diagram */
.pipeline { display: grid; gap: 10px; padding: clamp(8px, 2vw, 20px); }
.pipe {
  position: relative; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: 14px; background: #1b1b20; border: 1px solid var(--line);
  opacity: 0; transform: translateX(-16px);
  transition: opacity 600ms var(--ease), transform 700ms var(--ease);
  transition-delay: calc(0.15s + var(--i, 0) * 0.12s);
}
.project.is-in .pipe { opacity: 1; transform: none; }
.pipe b { font-size: 1rem; letter-spacing: -0.01em; }
.pipe small { color: var(--text-2); font-size: 0.85rem; }
.pipe:not(.pipe--out)::after {
  content: ""; position: absolute; left: 26px; bottom: -11px; width: 2px; height: 10px;
  background: linear-gradient(var(--accent), var(--accent-2));
}
.pipe--in, .pipe--out { gap: 8px; }
.pipe--in span, .pipe--out span { font-size: 0.8rem; padding: 4px 10px; border-radius: 999px; background: #26262d; color: #d2d2d7; }
.pipe--out { background: linear-gradient(135deg, rgba(139,123,255,0.25), rgba(76,201,240,0.18)); border-color: rgba(139,123,255,0.4); }
.pipe--out span:first-child { background: #fff; color: #000; font-weight: 600; }

/* PDF + video overlay mock */
.tool__visual--pdf { display: grid; place-items: center; background: #0d0d10; }
.pdf { position: relative; width: 62%; aspect-ratio: 16 / 10; background: #f4f4f6; border-radius: 6px; padding: 8%; display: grid; align-content: start; gap: 6%; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.7); }
.pdf__title { height: 12%; width: 55%; background: #1f1f28; border-radius: 3px; }
.pdf__line { height: 5%; width: 80%; background: #c9c9d1; border-radius: 3px; }
.pdf__line.short { width: 50%; }
.pdf__video {
  position: absolute; right: 7%; bottom: 10%; width: 42%; aspect-ratio: 16 / 9; border-radius: 4px;
  display: grid; place-items: center; color: #fff; font-size: 0.9rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  outline: 2px dashed rgba(139,123,255,0.9); outline-offset: 4px;
}

/* about facts */
.facts-inline { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 32px; }
.facts-inline li { display: grid; gap: 2px; font-weight: 600; }
.facts-inline span { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); }
@media (max-width: 480px) { .facts-inline { grid-template-columns: 1fr 1fr; } }

/* Stripe products mock */
.tool__visual--stripe { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 20px 24px; aspect-ratio: auto; min-height: 200px; }
.prod { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 10px; background: #18181d; border: 1px solid var(--line); font-size: 0.85rem; color: #d2d2d7; }
.prod.on { border-color: #635bff; box-shadow: 0 0 0 1px #635bff inset; }
.prod__price { width: 54px; height: 8px; border-radius: 4px; background: #2c2c34; }
.prod.on .prod__price { background: #635bff; }
.pay { margin-top: 6px; align-self: stretch; text-align: center; padding: 10px; border-radius: 10px; background: #635bff; color: #fff; font-weight: 600; font-size: 0.85rem; }

/* slack bot mock */
.tool__visual--slack { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 20px; }
.tool__visual--slack .msg { display: flex; gap: 10px; align-items: flex-start; }
.tool__visual--slack .av { flex: none; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.tool__visual--slack .msg p { margin: 0; font-size: 0.8rem; color: #d2d2d7; line-height: 1.4; background: #1a1a1f; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.tool__visual--slack .row { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 38px; }
.tool__visual--slack .row span { font: 0.68rem var(--mono); color: var(--text-2); background: #16161a; border: 1px solid var(--line); border-radius: 6px; padding: 4px 7px; }
.tool__visual--slack .ok { padding-left: 38px; font-size: 0.75rem; color: #5ee08a; }

/* blog generator mock */
.tool__visual--blog { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 22px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 0.72rem; padding: 5px 10px; border-radius: 999px; background: #1f1f24; color: var(--text-2); border: 1px solid var(--line); }
.chip.on { background: var(--accent); color: #fff; border-color: transparent; }
.lines { display: grid; gap: 8px; }
.lines span { height: 8px; border-radius: 4px; background: #26262c; transform-origin: left; transform: scaleX(0); transition: transform 900ms var(--ease); }
.tool.is-in .lines span { transform: scaleX(1); }
.tool.is-in .lines span:nth-child(2) { transition-delay: .12s; }
.tool.is-in .lines span:nth-child(3) { transition-delay: .24s; }
.tool.is-in .lines span:nth-child(4) { transition-delay: .36s; }

/* dynamic hero mock */
.tool__visual--hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 14px; align-items: center; padding: 20px; }
.src { display: grid; gap: 8px; }
.src span { font: 0.7rem var(--mono); color: var(--text-2); background: #1a1a1f; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 300ms ease, border-color 300ms ease; }
.heroes { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #1a1a1f; }
.heroes .h { position: absolute; inset: 0; opacity: 0; transition: opacity 500ms ease; }
.heroes .h::before { content: ""; position: absolute; left: 10%; top: 22%; width: 50%; height: 12%; border-radius: 4px; background: rgba(255,255,255,0.9); }
.heroes .h::after { content: ""; position: absolute; left: 10%; top: 42%; width: 34%; height: 8%; border-radius: 999px; background: rgba(0,0,0,0.5); }
.heroes .h1 { background: linear-gradient(135deg, #ff9a3d, #ff5e7e); }
.heroes .h2 { background: linear-gradient(135deg, #2bb673, #1a6b8f); }
.heroes .h3 { background: linear-gradient(135deg, #6a5cff, #2a1f7a); }
.tool__visual--hero[data-step="0"] .h1, .tool__visual--hero[data-step="1"] .h2, .tool__visual--hero[data-step="2"] .h3 { opacity: 1; }
.tool__visual--hero[data-step="0"] .src span:nth-child(1),
.tool__visual--hero[data-step="1"] .src span:nth-child(2),
.tool__visual--hero[data-step="2"] .src span:nth-child(3) { color: var(--text); border-color: var(--accent); }

/* ============ SEO ============ */
.seo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.seo__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px); }
.seo__badge {
  display: inline-block; font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  background: linear-gradient(120deg, #fff 10%, #c4bcff 55%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 18px;
}
.seo__card h3 { margin: 0 0 8px; font-size: 1.1rem; letter-spacing: -0.02em; }
.seo__card p { margin: 0; color: var(--text-2); }
.seo__sites { margin: 28px 0 0; color: var(--text-2); }

/* ============ Experience ============ */
.xp { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.xp__card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px); border: 1px solid var(--line); }
.xp__top { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.xp__logos { display: flex; gap: 8px; flex-wrap: wrap; }
.xp__logo {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 14px; border-radius: 14px; background: #fff; color: #000; font-weight: 800;
}
.xp__logo img { height: 22px; width: auto; }
.xp__logo--mono { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; width: 48px; padding: 0; }
.xp__top h3 { margin: 0; font-size: 1.5rem; letter-spacing: -0.03em; }
.xp__role { margin: 2px 0 0; color: var(--text-2); font-size: 0.95rem; }
.xp__intro { margin: 0 0 20px; color: var(--text-2); }
.xp__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.xp__list li { position: relative; padding-left: 22px; color: #d2d2d7; line-height: 1.5; }
.xp__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.xp__list strong { color: var(--text); font-weight: 600; }

/* ============ Stack bento ============ */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column;
  transition: border-color 300ms ease, transform 500ms var(--ease);
}
.tile:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-3px); }
.tile h3 { margin: 0; font-size: 1.3rem; letter-spacing: -0.025em; line-height: 1.2; }
.tile .tags { margin-top: auto; padding-top: 22px; }

/* ============ About ============ */
.about { display: grid; grid-template-columns: 0.8fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about__photo { margin: 0; position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(160deg, #2a2a2e, #111); }
.about__photo picture { display: contents; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about__fallback { display: none; position: absolute; inset: 0; place-items: center; font-size: 5rem; font-weight: 800; letter-spacing: -0.05em; color: #333; }
.about__photo.is-missing img { display: none; }
.about__photo.is-missing .about__fallback { display: grid; }

/* ============ Contact ============ */
.contact {
  padding-block: clamp(110px, 20vh, 220px); text-align: center;
  background:
    radial-gradient(60% 60% at 50% 100%, rgba(139,123,255,0.28), transparent 70%),
    radial-gradient(40% 40% at 70% 90%, rgba(76,201,240,0.16), transparent 70%);
}
.contact .lead { margin-inline: auto; }
.contact .hero__actions { justify-content: center; }
.contact__title { margin: 0; font-size: clamp(2.6rem, 9vw, 7rem); line-height: 1; letter-spacing: -0.05em; font-weight: 700; }

.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 28px; color: var(--text-3); font-size: 0.875rem; border-top: 1px solid var(--line);
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .win--2 { display: none; }
  .win--1 { width: 44vw; right: -10vw; top: 22vh; opacity: .55; }
  .is-loaded .win--1 { opacity: .55; }
  .win--3 { width: 30vw; right: -4vw; top: 60vh; }
}
@media (max-width: 980px) {
  .project, .project--feature { grid-template-columns: 1fr; }
  .project--flip .project__visual { order: 0; }
  .xp { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .seo { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .hero { align-items: flex-end; padding-bottom: 96px; }
  .hero__stack { opacity: 0.35; }
  .win--1 { width: 80vw; right: -30vw; top: 12vh; }
  .win--3 { display: none; }
  .stats { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .pgrid, .tools-grid { grid-template-columns: 1fr; }
  .pcard--wide, .tool--wide { grid-column: auto; }
  .pcard--wide .browser img { aspect-ratio: 16 / 10; }
  .tool--wide { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; }
  .hide-sm { display: none; }
}
@media (max-width: 480px) {
  .hero__title .muted { font-size: 0.46em; }
  .filters { display: flex; width: 100%; }
  .filter { flex: 1; padding: 0 8px; font-size: 0.85rem; }
  .stat { padding: 22px; }
  .orbit__node { font-size: 0.7rem; padding: 6px 9px; }
  .project__visual--code pre { font-size: 0.8rem; }
}

/* ============ Accessibility ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; filter: none; transition: opacity 300ms ease; }
  .js .reveal-up { transform: none; transition: none; }
  .marquee__track, .hero__cue span, .hero__glow span { animation: none; }
  .js .win { translate: none; transition: opacity 300ms ease; }
  .hero__stack .win { transform: none !important; }
  .browser { transform: none !important; }
  .orbit__node { transition: opacity 300ms ease; scale: 1; }
  .lines span { transform: none; transition: none; }
  .pipe { transform: none; transition: opacity 300ms ease; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled { background: #0a0a0c; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .btn--ghost { background: #2a2a2e; backdrop-filter: none; }
}

/* ============ CTA STRIP ============ */
.cta-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 72px; padding: 28px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.cta-strip p { margin: 0; font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.cta-strip .btn { flex: none; }
@media (max-width: 768px) { .cta-strip { flex-direction: column; align-items: flex-start; padding: 24px; } }

/* ============ FAQ ============ */
.section--faq .section__head { text-align: center; max-width: 880px; margin-inline: auto; }
.section--faq .section__head > * { margin-inline: auto; }
.faq { display: grid; gap: 16px; max-width: 880px; margin-inline: auto; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 0 clamp(20px, 3vw, 36px); transition: border-color 300ms ease, background-color 300ms ease; }
.faq__item:hover { border-color: rgba(255,255,255,0.14); }
.faq__item[open] { border-color: rgba(255,255,255,0.18); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(22px, 2.6vw, 30px) 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-size: 1.4rem; line-height: 1; color: var(--text-2); transition: transform 300ms var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary h3 { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.35; letter-spacing: -0.015em; font-weight: 600; }
.faq__item p { margin: 0; padding: 0 0 clamp(24px, 2.6vw, 30px); color: var(--text-2); font-size: 1.0625rem; line-height: 1.7; max-width: 68ch; }
.faq__item a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.3); }