:root {
  --bg: #050807;
  --bg-2: #0a0f0d;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.065);
  --line: rgba(255, 255, 255, 0.09);
  --text: #ecebf5;
  --muted: #9a98b0;
  --dim: #5f5d75;
  --violet: #34d399;
  --cyan: #2dd4bf;
  --amber: #fbbf24;
  --green: #4ade80;
  --red: #f87171;
  --grad: linear-gradient(90deg, var(--violet), var(--violet));
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Geist", system-ui, sans-serif; line-height: 1.6;
  overflow-x: hidden; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: var(--violet); color: #fff; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; }
.dim { color: var(--dim); }
.grad { color: var(--violet); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ================= Loader & page transitions ================= */
.loader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, rgba(52,211,153,.12), transparent 55%), var(--bg);
  clip-path: circle(150% at 50% 50%);
  transition: clip-path 1s cubic-bezier(.76,0,.24,1);
  animation: loaderFailsafe .01s 9s forwards;
}
@keyframes loaderFailsafe { to { visibility: hidden; } }
.loader::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0) 0 0 / 26px 26px; mask-image: radial-gradient(circle at 50% 45%, #000 10%, transparent 65%); -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 10%, transparent 65%); }
.loader::after { content: ""; position: absolute; left: 0; right: 0; height: 120px; top: -120px; background: linear-gradient(transparent, rgba(45,212,191,.08), transparent); animation: loaderScan 2.6s linear infinite; }
@keyframes loaderScan { to { top: 100%; } }
.loader.done { clip-path: circle(0% at 50% 45%); }
.loader.done .ld__core { transform: scale(.6); opacity: 0; }
.loader.quick .ld__meta, .loader.quick .ld__corner { opacity: 0; }

.ld__core { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; transition: transform .8s var(--ease), opacity .6s; }
.ld__svg { width: min(260px, 62vw); height: auto; overflow: visible; }
.ld__track { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 2; }
.ld__prog { fill: none; stroke: url(#ldg); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 691; stroke-dashoffset: 691; transform: rotate(-90deg); transform-origin: 120px 120px; filter: drop-shadow(0 0 6px rgba(52,211,153,.7)); }
.ld__spin { fill: none; stroke: rgba(45,212,191,.35); stroke-width: 1; stroke-dasharray: 2 10; transform-origin: 120px 120px; animation: spin 14s linear infinite; }
.ld__spin--r { stroke: rgba(52,211,153,.25); stroke-dasharray: 30 14; animation-duration: 9s; animation-direction: reverse; }
.ld__edge { stroke: rgba(52,211,153,.5); stroke-width: 1; stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset .7s var(--ease); }
.ld__edge.on { stroke-dashoffset: 0; }
.ld__node { fill: var(--bg); stroke: rgba(255,255,255,.2); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; transform: scale(.4); transition: transform .5s cubic-bezier(.34,1.56,.64,1), fill .3s, stroke .3s; }
.ld__node.on { transform: scale(1); fill: #34d399; stroke: #2dd4bf; filter: drop-shadow(0 0 5px rgba(52,211,153,.9)); }
.ld__packet { fill: #fff; filter: drop-shadow(0 0 6px #2dd4bf); }
.ld__mono { font: 700 46px "Geist", sans-serif; letter-spacing: -2px; fill: transparent; stroke: #34d399; stroke-width: 1.2; stroke-dasharray: 260; stroke-dashoffset: 260; animation: ldDraw 1.6s var(--ease) .15s forwards; }
.loader.quick .ld__mono { animation-duration: .6s; animation-delay: 0s; }
@keyframes ldDraw { 70% { fill: transparent; } to { stroke-dashoffset: 0; fill: url(#ldg); } }

.ld__meta { display: flex; flex-direction: column; align-items: center; gap: 8px; transition: opacity .3s; }
.ld__count { font-size: 46px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ld__count small { font-size: 18px; color: var(--cyan); margin-left: 2px; }
.ld__status { font-size: 12px; color: var(--muted); height: 1.4em; overflow: hidden; }
.ld__status span { display: block; animation: ldStatus .35s var(--ease); }
@keyframes ldStatus { from { transform: translateY(100%); opacity: 0; } }
.ld__status .ok { color: var(--green); }
.ld__bar { width: 180px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.ld__bar span { display: block; height: 100%; width: 0; background: var(--grad); }
.ld__corner { position: absolute; z-index: 1; font-size: 11px; color: var(--dim); letter-spacing: .08em; transition: opacity .3s; }
.ld__corner b { color: var(--muted); font-weight: 500; }
.ld__corner--tl { top: 24px; left: 24px; } .ld__corner--tr { top: 24px; right: 24px; text-align: right; }
.ld__corner--bl { bottom: 24px; left: 24px; } .ld__corner--br { bottom: 24px; right: 24px; text-align: right; }
@media (max-width: 640px) { .ld__corner--tr, .ld__corner--bl { display: none; } .ld__count { font-size: 38px; } }

.wipe { position: fixed; inset: 0; z-index: 900; pointer-events: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.wipe i { background: var(--bg-2); border-right: 1px solid var(--line); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.wipe i:nth-child(2) { transition-delay: .04s; } .wipe i:nth-child(3) { transition-delay: .08s; }
.wipe i:nth-child(4) { transition-delay: .12s; } .wipe i:nth-child(5) { transition-delay: .16s; }
.wipe__label { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(40px, 10vw, 120px); font-weight: 700; letter-spacing: -0.05em; opacity: 0; transition: opacity .3s; }
.wipe.cover i { transform: scaleY(1); }
.wipe.cover .wipe__label { opacity: 1; transition-delay: .3s; }
.wipe.reveal-out i { transform: scaleY(0); transform-origin: top; }
.wipe.start i { transform: scaleY(1); transition: none; }
.wipe.start .wipe__label { opacity: 1; transition: none; }

/* ================= Chrome ================= */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); z-index: 200; }
.noise { position: fixed; inset: 0; pointer-events: none; z-index: 150; opacity: 0.025;
  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"); }
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 950; border-radius: 50%; }
.cursor { width: 6px; height: 6px; background: #fff; mix-blend-mode: difference; }
.cursor-ring { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.5); display: grid; place-items: center;
  transition: width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s; }
.cursor-ring span { font: 600 11px "Geist Mono", monospace; color: var(--bg); opacity: 0; transition: opacity .2s; text-transform: lowercase; }
.cursor-ring.hover { width: 60px; height: 60px; background: rgba(255,255,255,.1); border-color: transparent; }
.cursor-ring.label { width: 78px; height: 78px; background: var(--cyan); border-color: transparent; }
.cursor-ring.label span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring { display: none; } }

/* ================= Nav ================= */
.nav { position: fixed; top: 0; left: 0; right: 0; height: 60px;
  display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter);
  background: rgba(5, 8, 7, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); z-index: 100; transition: transform .4s var(--ease); }
.nav.hide { transform: translateY(-100%); }
.nav__logo { font-weight: 600; font-size: 16px; margin-right: auto; letter-spacing: -0.02em; white-space: nowrap; transition: color .2s; }
.nav__logo:hover { color: var(--violet); }
.nav__links { display: flex; gap: 2px; }
.nav__links a { position: relative; padding: 6px 12px; font-size: 14px; color: var(--muted); border-radius: 6px; transition: color .25s, background .25s; }
.nav__links a:hover { color: var(--text); background: var(--surface-2); }
.nav__links a.active { color: var(--text); }
.nav__links a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 1px; background: var(--violet); }
.nav__k { display: flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 6px; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.nav__k:hover { color: var(--text); border-color: var(--cyan); }
.nav__burger { display: none; width: 38px; height: 38px; border-radius: 8px; background: transparent; border: 1px solid var(--line); position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__burger span:first-child { top: 16px; } .nav__burger span:last-child { top: 23px; }
.nav.open .nav__burger span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav.open .nav__burger span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* ================= Command palette ================= */
.palette { position: fixed; inset: 0; z-index: 800; display: grid; place-items: start center; padding: 14vh 16px 16px; background: rgba(4,4,8,.6); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.palette.open { opacity: 1; pointer-events: auto; }
.palette__box { width: min(560px, 100%); border-radius: 12px; border: 1px solid var(--line); background: #0a120f; box-shadow: 0 40px 100px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(52,211,153,.15); overflow: hidden; transform: translateY(-14px) scale(.98); transition: transform .35s var(--ease); }
.palette.open .palette__box { transform: none; }
.palette__input { width: 100%; padding: 20px 22px; background: none; border: 0; border-bottom: 1px solid var(--line); font-size: 17px; outline: none; }
.palette__list { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow: auto; }
.palette__list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; cursor: pointer; color: var(--muted); }
.palette__list li b { color: var(--text); font-weight: 500; }
.palette__list li small { margin-left: auto; font-family: "Geist Mono", monospace; font-size: 11px; color: var(--dim); }
.palette__list li.sel { background: var(--surface-2); }
.palette__list li.sel b { color: var(--cyan); }
.palette__foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 11px; color: var(--dim); }

/* ================= Shared bits ================= */
.section { padding: clamp(90px, 13vw, 150px) var(--gutter); max-width: 1240px; margin: 0 auto; }
.section--tight { padding-top: 40px; }
.section__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 46px; }
.section__num { color: var(--cyan); font-size: 14px; }
.section__title { margin: 0; font-size: clamp(38px, 6.5vw, 84px); line-height: .95; letter-spacing: -0.045em; font-weight: 700; }
.section__sub { color: var(--muted); max-width: 680px; margin: -18px 0 40px; font-size: 17px; }
.section__sub b { color: var(--text); }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }

.btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 8px; font-weight: 600; overflow: hidden; isolation: isolate; }
.btn span { position: relative; z-index: 1; }
.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary::after { content: ""; position: absolute; inset: 0; background: var(--violet); transform: translateY(101%); transition: transform .5s var(--ease); z-index: 0; }
.btn--primary:hover::after { transform: none; }
.btn--ghost { border: 1px solid var(--line); background: var(--surface); }
.btn--ghost:hover { border-color: var(--cyan); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn:disabled { opacity: .45; pointer-events: none; }

.pill { font-family: "Geist Mono", monospace; font-size: 11.5px; padding: 3px 8px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(74,222,128,0); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes drift { to { transform: translate(-80px, 60px) scale(1.15); } }

.split { display: block; overflow: hidden; padding-bottom: .06em; }
.split .ch, .grad-split .ch { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease), color .3s; }
.split.in .ch, .grad-split.in .ch { transform: none; }
.split--outline { color: transparent; -webkit-text-stroke: 1.5px rgba(236,235,245,.85); }
.split--outline .ch:hover { color: var(--cyan); -webkit-text-stroke-color: var(--cyan); }

/* page hero (inner pages) */
.phero { position: relative; padding: 170px var(--gutter) 40px; max-width: 1240px; margin: 0 auto; overflow-x: clip; }
.phero__glow { position: absolute; width: 560px; height: 560px; border-radius: 50%; background: var(--violet); filter: blur(120px); opacity: .08; top: -220px; right: -140px; z-index: -1; animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
.phero__kicker { color: var(--cyan); font-size: 13px; }
.phero__title { margin: 14px 0 18px; font-size: clamp(54px, 12vw, 170px); line-height: .88; letter-spacing: -0.055em; font-weight: 700; }
.phero__lede { max-width: 640px; color: var(--muted); font-size: clamp(17px, 1.8vw, 21px); margin: 0; }
.phero__lede b { color: var(--text); font-weight: 500; }

/* next page footer link */
.next { display: block; margin: 40px auto 0; max-width: 1240px; padding: 70px var(--gutter); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.next small { color: var(--dim); font-size: 13px; }
.next strong { display: flex; align-items: center; gap: .3em; font-size: clamp(48px, 11vw, 150px); line-height: 1; letter-spacing: -0.055em; transition: transform .6s var(--ease), color .4s; }
.next strong i { font-style: normal; transition: transform .6s var(--ease); display: inline-block; }
.next:hover strong { transform: translateX(16px); color: var(--cyan); }
.next:hover strong i { transform: rotate(-45deg); }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px var(--gutter); border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.footer a:hover { color: var(--cyan); }

/* ================= HOME ================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px var(--gutter) 80px; overflow: hidden; isolation: isolate; }
#neural { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(110px); z-index: -2; opacity: .16; }
.hero__glow--a { width: 520px; height: 520px; background: var(--violet); top: -160px; right: -120px; animation: drift 14s ease-in-out infinite alternate; }
.hero__glow--b { width: 420px; height: 420px; background: #065f46; bottom: -180px; left: -100px; animation: drift 18s ease-in-out infinite alternate-reverse; }
.hero__content { max-width: 1100px; width: 100%; margin: 0 auto; }
.hero__name { margin: 22px 0 10px; font-size: clamp(56px, 13vw, 190px); line-height: .88; letter-spacing: -0.055em; font-weight: 700; }
.hero__role { font-size: clamp(16px, 2.4vw, 24px); margin: 18px 0 8px; }
.typed { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.caret { animation: blink 1s steps(1) infinite; color: var(--cyan); }
.hero__lede { max-width: 560px; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); }
.hero__lede em { color: var(--text); font-style: normal; border-bottom: 1px dashed var(--cyan); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__chips { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.chip-float { position: absolute; left: var(--x); top: var(--y); padding: 8px 14px; border-radius: 14px; font-size: 13px; background: rgba(10,20,16,.7); border: 1px solid var(--line); backdrop-filter: blur(8px); animation: float 6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes float { 50% { transform: translateY(-18px) rotate(-2deg); } }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; color: var(--dim); letter-spacing: .2em; text-transform: uppercase; }
.scroll-hint__line { width: 1px; height: 46px; background: linear-gradient(var(--cyan), transparent); animation: scrollline 2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollline { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

.marquee { padding: 34px 0; border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); transform: rotate(-1.5deg) scale(1.03); }
.marquee__row { display: flex; overflow: hidden; }
.marquee__row + .marquee__row { margin-top: 10px; }
.marquee__track { display: flex; flex-shrink: 0; gap: 28px; padding-right: 28px; animation: marquee 32s linear infinite; font-size: clamp(22px, 4vw, 44px); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.marquee__row--rev .marquee__track { animation-direction: reverse; color: transparent; -webkit-text-stroke: 1px var(--dim); }
.marquee__track span:nth-child(even) { color: var(--violet); -webkit-text-stroke: 0; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* horizontal pinned work */
.hwork { position: relative; height: 340vh; }
.hwork__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hwork__head { padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 34px; }
.hwork__count { font-size: 14px; color: var(--muted); }
.hwork__count b { color: var(--cyan); font-size: 28px; }
.hwork__track { display: flex; gap: 26px; padding: 0 var(--gutter); will-change: transform; }
.wcard { flex: none; width: min(560px, 78vw); height: min(440px, 58vh); position: relative; border-radius: 10px; padding: 30px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg-2); isolation: isolate; transition: border-color .4s; }
.wcard:hover { border-color: rgba(45,212,191,.5); }
.wcard__bg { position: absolute; inset: 0; z-index: -1; opacity: .9; transition: transform 1s var(--ease); }
.wcard:hover .wcard__bg { transform: scale(1.06); }
.wcard__n { font-size: 13px; color: var(--muted); }
.wcard h3 { margin: auto 0 10px; font-size: clamp(28px, 3.6vw, 46px); line-height: 1; letter-spacing: -0.035em; }
.wcard p { margin: 0 0 18px; color: var(--muted); max-width: 420px; }
.wcard__arrow { position: absolute; top: 26px; right: 26px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); font-size: 20px; transition: transform .5s var(--ease); }
.wcard:hover .wcard__arrow { transform: rotate(-45deg) scale(1.08); }
.wcard--end { background: var(--grad); color: var(--bg); justify-content: center; align-items: flex-start; }
.wcard--end h3 { margin: 0 0 10px; }
.wcard--end p { color: rgba(7,7,13,.75); }
.wcard--end .wcard__arrow { background: var(--bg); color: var(--text); }

/* background art for work cards */
.art-grid { background: radial-gradient(circle at 80% 20%, rgba(52,211,153,.45), transparent 50%), radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0) 0 0 / 20px 20px; }
.art-wave { background: radial-gradient(circle at 20% 90%, rgba(45,212,191,.4), transparent 55%), repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 14px); }
.art-rings { background: repeating-radial-gradient(circle at 85% 15%, rgba(251,191,36,.18) 0 1px, transparent 1px 26px), radial-gradient(circle at 85% 15%, rgba(251,191,36,.25), transparent 50%); }
.art-mesh { background: conic-gradient(from 200deg at 75% 30%, rgba(52,211,153,.35), rgba(45,212,191,.25), transparent 50%); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 30px 26px; background: var(--bg); }
.stat__num { font-size: clamp(44px, 6vw, 72px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.stat__plus { font-size: 22px; color: var(--cyan); margin-left: 4px; }
.stat p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* big index menu */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index a { position: relative; display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 20px; padding: 26px 8px; border-bottom: 1px solid var(--line); overflow: hidden; }
.index a::before { content: ""; position: absolute; inset: 0; background: var(--grad); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: -1; }
.index a:hover::before { transform: scaleY(1); }
.index a { isolation: isolate; transition: color .3s, padding .5s var(--ease); }
.index a:hover { color: var(--bg); padding-left: 24px; }
.index__n { font-size: 13px; color: var(--dim); transition: color .3s; }
.index a:hover .index__n { color: var(--bg); }
.index__t { font-size: clamp(34px, 6vw, 72px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.index__d { color: var(--muted); font-size: 14px; text-align: right; max-width: 260px; transition: color .3s; }
.index a:hover .index__d { color: rgba(7,7,13,.75); }

/* ================= ABOUT ================= */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.terminal { border: 1px solid var(--line); border-radius: var(--radius); background: #08100d; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(52,211,153,.35); }
.terminal__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.terminal__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.terminal__bar i:nth-child(2) { background: #febc2e; } .terminal__bar i:nth-child(3) { background: #28c840; }
.terminal__bar span { margin-left: 10px; font-size: 12px; color: var(--dim); }
.terminal__body { margin: 0; padding: 20px; font-size: 13px; line-height: 1.75; min-height: 340px; white-space: pre-wrap; word-break: break-word; color: var(--muted); }
.terminal__body .p { color: var(--green); } .terminal__body .k { color: var(--violet); }
.terminal__body .s { color: var(--amber); } .terminal__body .c { color: var(--cyan); }
.cur { display: inline-block; width: 8px; height: 1.1em; background: var(--cyan); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
.prose p { color: var(--muted); font-size: 17px; margin: 0 0 18px; }
.prose p.big { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; color: var(--text); }
.prose strong { color: var(--text); }

.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.principle { position: relative; padding: 26px 22px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: border-color .3s, transform .4s var(--ease); }
.principle:hover { border-color: rgba(45,212,191,.5); transform: translateY(-6px); }
.principle__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(52,211,153,.15); color: var(--violet); font-size: 22px; margin-bottom: 40px; }
.principle h4 { margin: 0 0 6px; font-size: 18px; }
.principle p { margin: 0; font-size: 14px; color: var(--muted); }
.principle__big { position: absolute; right: -6px; bottom: -28px; font-size: 120px; font-weight: 700; color: rgba(255,255,255,.03); line-height: 1; }

.skills__wrap { display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: center; }
.orbit { position: relative; aspect-ratio: 1; width: 100%; max-width: 420px; margin: 0 auto; }
.orbit__core { position: absolute; inset: 0; margin: auto; width: 90px; height: 90px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--grad); color: var(--bg); box-shadow: 0 0 60px rgba(52,211,153,.6); animation: corepulse 3s ease-in-out infinite; }
@keyframes corepulse { 50% { box-shadow: 0 0 90px rgba(45,212,191,.6); transform: scale(1.05); } }
.orbit__ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px dashed var(--line); }
.orbit__ring--1 { width: 46%; height: 46%; } .orbit__ring--2 { width: 72%; height: 72%; } .orbit__ring--3 { width: 98%; height: 98%; }
.orbit__ring span { position: absolute; top: 50%; left: 50%; font-family: "Geist Mono", monospace; font-size: 11px; white-space: nowrap; padding: 4px 9px; border-radius: 999px; background: #0c1612; border: 1px solid var(--line); transform: translate(-50%, -50%); will-change: transform; }
.orbit__ring--2 span { color: var(--cyan); } .orbit__ring--3 span { color: var(--violet); }
.skillgroups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sg { padding: 22px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.sg h4 { margin: 0 0 12px; font-size: 16px; }
.sg__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sg__chips span { font-size: 13px; padding: 5px 11px; border-radius: 10px; background: var(--surface-2); color: var(--muted); transition: all .25s var(--ease); }
.sg__chips span:hover { background: var(--violet); color: #fff; transform: translateY(-3px) rotate(-2deg); }

.edu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.edu__card { padding: 24px; border-radius: 10px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(52,211,153,.08), transparent 60%); }
.edu__card span { font-size: 12px; color: var(--cyan); }
.edu__card h4 { margin: 8px 0 4px; font-size: 18px; }
.edu__card p { margin: 0; color: var(--muted); font-size: 14px; }

.now { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.now__item { padding: 22px; border-radius: 10px; border: 1px dashed rgba(45,212,191,.35); }
.now__item span { font-size: 11px; color: var(--green); }
.now__item h4 { margin: 6px 0 4px; }
.now__item p { margin: 0; color: var(--muted); font-size: 14px; }

/* ================= WORK ================= */
.timeline { position: relative; padding-left: 48px; }
.timeline__line { position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline__line span { display: block; width: 100%; height: 0; background: var(--grad); box-shadow: 0 0 14px var(--cyan); }
.job { position: relative; padding: 32px; margin-bottom: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .4s, background .4s; }
.job:hover { border-color: rgba(52,211,153,.45); background: var(--surface-2); }
.job__dot { position: absolute; left: -44px; top: 38px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--dim); transition: border-color .4s, box-shadow .4s; }
.job.lit .job__dot { border-color: var(--cyan); box-shadow: 0 0 0 5px rgba(45,212,191,.15), 0 0 18px var(--cyan); }
.job__top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.job__meta { font-size: 13px; color: var(--muted); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tag { padding: 3px 10px; border-radius: 999px; font-size: 11px; }
.tag--live { background: rgba(74,222,128,.12); color: var(--green); }
.job h3 { margin: 10px 0 2px; font-size: clamp(24px, 3.4vw, 36px); letter-spacing: -0.025em; line-height: 1.1; }
.job__co { margin: 0 0 18px; color: var(--cyan); font-size: 15px; }
.job__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.job__list li { position: relative; padding-left: 20px; color: var(--muted); font-size: 15px; }
.job__list li::before { content: "▹"; position: absolute; left: 0; color: var(--violet); }
.job__list b { color: var(--text); font-weight: 600; }
.job .pills { margin-top: 20px; }
.job__year { font-size: clamp(60px, 9vw, 110px); font-weight: 700; letter-spacing: -0.06em; line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--line); }

.sysmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0 6px; }
.sys { position: relative; padding: 18px; border-radius: 10px; background: #08100d; border: 1px solid var(--line); cursor: default; transition: transform .35s var(--ease), border-color .3s; overflow: hidden; }
.sys::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.sys:hover { transform: translateY(-4px); border-color: rgba(52,211,153,.4); }
.sys:hover::after { transform: scaleX(1); }
.sys i { font-style: normal; font-size: 22px; }
.sys h5 { margin: 10px 0 4px; font-size: 15px; }
.sys p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ================= PROJECTS ================= */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { padding: 8px 14px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; transition: all .3s; }
.filter:hover { color: var(--text); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.filter sup { font-size: 11px; margin-left: 3px; opacity: .6; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 18px; }
.card { --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; text-align: left; cursor: pointer; transition: border-color .3s, transform .6s var(--ease), opacity 1s var(--ease); min-height: 240px; }
.card--xl { grid-column: span 2; grid-row: span 2; }
.card--tall { grid-row: span 2; }
.card--wide { grid-column: span 2; }
.card.is-hidden { display: none; }
.card__glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(52,211,153,.2), transparent 45%); }
.card:hover .card__glow { opacity: 1; }
.card:hover { border-color: rgba(52,211,153,.45); }
.card__kicker { font-size: 11.5px; color: var(--cyan); text-transform: uppercase; letter-spacing: .12em; display: flex; justify-content: space-between; }
.card__kicker em { font-style: normal; color: var(--dim); }
.card h3 { margin: 10px 0 10px; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.15; letter-spacing: -0.02em; }
.card--xl h3 { font-size: clamp(26px, 3.4vw, 42px); }
.card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.card .pills { margin-top: auto; }
.card__open { position: absolute; right: 22px; bottom: 22px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: all .4s var(--ease); }
.card:hover .card__open { background: var(--cyan); color: var(--bg); border-color: var(--cyan); transform: rotate(-45deg); }
.card .pills { padding-right: 48px; }

.viz-rank { display: grid; gap: 12px; margin: 10px 0 26px; }
.viz-rank div { display: grid; grid-template-columns: 110px 1fr 34px; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.viz-rank i { height: 10px; border-radius: 999px; background: var(--surface-2); position: relative; overflow: hidden; }
.viz-rank i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--grad); border-radius: inherit; transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .3s; }
.card.in .viz-rank i::after { transform: scaleX(1); }
.viz-rank b { color: var(--text); font-family: "Geist Mono", monospace; }
.chat { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 22px; }
.bubble { max-width: 80%; padding: 9px 14px; border-radius: 10px; font-size: 14px; }
.bubble--in { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; direction: rtl; }
.bubble--out { align-self: flex-end; background: linear-gradient(110deg, #065f46, #0f766e); border-bottom-right-radius: 4px; }
.bubble.typing { direction: ltr; display: flex; gap: 4px; padding: 13px 14px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; } .bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { transform: translateY(-5px); opacity: 1; } 0%, 60%, 100% { opacity: .4; } }
.testbadge { display: inline-block; align-self: flex-start; font-size: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(74,222,128,.12); color: var(--green); margin-bottom: 18px; }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 700; pointer-events: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(4,4,8,.6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .4s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(640px, 100%); background: #09110e; border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .6s var(--ease); overflow-y: auto; padding: 34px clamp(20px, 4vw, 44px) 60px; }
.drawer.open { pointer-events: auto; }
.drawer.open .drawer__scrim { opacity: 1; }
.drawer.open .drawer__panel { transform: none; }
.drawer__close { position: sticky; top: 0; float: right; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #09110e; font-size: 18px; z-index: 2; transition: transform .4s var(--ease); }
.drawer__close:hover { transform: rotate(90deg); border-color: var(--cyan); }
.drawer__kicker { color: var(--cyan); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.drawer h2 { font-size: clamp(30px, 5vw, 48px); line-height: 1; letter-spacing: -0.04em; margin: 14px 0 16px; }
.drawer__summary { color: var(--muted); font-size: 17px; }
.drawer h4 { margin: 32px 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); font-family: "Geist Mono", monospace; }
.drawer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.drawer li { position: relative; padding-left: 20px; color: var(--muted); }
.drawer li::before { content: "▹"; position: absolute; left: 0; color: var(--violet); }
.flow { display: flex; flex-direction: column; gap: 0; }
.flow__step { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); opacity: 0; transform: translateX(20px); }
.drawer.open .flow__step { animation: stepIn .5s var(--ease) forwards; animation-delay: calc(.35s + var(--i) * .09s); }
@keyframes stepIn { to { opacity: 1; transform: none; } }
.flow__step b { font-family: "Geist Mono", monospace; font-size: 11px; color: var(--cyan); width: 22px; }
.flow__step.gate { border-color: rgba(251,191,36,.5); background: rgba(251,191,36,.06); }
.flow__step.gate b { color: var(--amber); }
.flow__arrow { width: 2px; height: 14px; margin-left: 27px; background: linear-gradient(var(--violet), var(--cyan)); }

/* ================= LAB ================= */
.labnav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.demo { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); overflow: hidden; }
.demo__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.demo__head h3 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.demo__head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.demo__body { padding: 26px; }

.pipeline { position: relative; padding: 46px 10px; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0) 0 0 / 22px 22px, #070d0b; overflow: hidden; }
.pipeline__wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.wire-dash { animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.pipeline__nodes { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(8,14,12,.9); transition: transform .4s var(--ease), border-color .3s, box-shadow .3s, opacity .3s; }
.node__icon { font-size: 30px; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); }
.node__name { font-weight: 700; font-size: 17px; }
.node__sub { font-size: 11px; color: var(--muted); text-align: center; }
.node .gate-tag { position: absolute; top: -11px; right: -6px; font-size: 10px; padding: 3px 8px; border-radius: 999px; background: var(--amber); color: #1a1205; font-weight: 700; }
.node.run { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 20px 50px -10px rgba(45,212,191,.4); transform: translateY(-6px); }
.node.run .node__icon { animation: bob 1s ease-in-out infinite; }
.node.done { border-color: rgba(74,222,128,.5); }
.node.done .node__icon::after { content: "✓"; position: absolute; font-size: 12px; margin: -40px 0 0 44px; background: var(--green); color: var(--bg); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.node.wait { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), 0 0 40px -6px rgba(251,191,36,.5); }
@keyframes bob { 50% { transform: translateY(-5px) scale(1.06); } }
.pipeline.idle .packet { opacity: 0; }

.console { margin-top: 18px; display: grid; grid-template-columns: 1fr 280px; gap: 18px; }
.log { height: 240px; overflow-y: auto; padding: 16px 18px; border-radius: 10px; background: #040806; border: 1px solid var(--line); font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.log div { animation: logIn .3s var(--ease); }
@keyframes logIn { from { opacity: 0; transform: translateX(-6px); } }
.log .t { color: var(--dim); } .log .a { color: var(--cyan); } .log .ok { color: var(--green); } .log .w { color: var(--amber); } .log .e { color: var(--red); }
.approve { padding: 18px; border-radius: 10px; border: 1px dashed var(--line); display: flex; flex-direction: column; gap: 12px; justify-content: center; text-align: center; transition: border-color .3s, background .3s; }
.approve.on { border-color: var(--amber); background: rgba(251,191,36,.05); }
.approve p { margin: 0; font-size: 14px; color: var(--muted); }
.approve__draft { font-size: 13px; color: var(--text); padding: 10px; border-radius: 10px; background: var(--surface); min-height: 44px; }
.approve__btns { display: flex; gap: 8px; justify-content: center; }
.approve__btns button { flex: 1; padding: 10px; border-radius: 12px; font-weight: 600; font-size: 14px; }
.ok-btn { background: var(--green); color: var(--bg); }
.no-btn { border: 1px solid var(--line); }

/* dedup demo */
.dedup { display: grid; grid-template-columns: 300px 1fr; gap: 22px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.field label { display: block; font-size: 12px; color: var(--dim); margin-bottom: 6px; font-family: "Geist Mono", monospace; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #040806; outline: none; transition: border-color .3s; }
.field input:focus, .field textarea:focus { border-color: var(--cyan); }
.form__hint { font-size: 12px; color: var(--dim); }
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stage { position: relative; padding: 16px 12px; text-align: center; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; transition: all .35s var(--ease); }
.stage i { display: block; font-style: normal; font-size: 22px; margin-bottom: 4px; }
.stage.go { border-color: var(--cyan); background: rgba(45,212,191,.08); transform: translateY(-4px); }
.stage.pass { border-color: rgba(74,222,128,.5); background: rgba(74,222,128,.07); }
.stage.block { border-color: var(--red); background: rgba(248,113,113,.1); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.verdict { margin: 14px 0; padding: 12px 16px; border-radius: 12px; font-size: 13.5px; background: var(--surface); color: var(--muted); min-height: 46px; }
.verdict.good { color: var(--green); } .verdict.bad { color: var(--red); }
.crm { width: 100%; border-collapse: collapse; font-size: 13px; }
.crm th { text-align: left; font-weight: 500; color: var(--dim); font-family: "Geist Mono", monospace; font-size: 11px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.crm td { padding: 10px; border-bottom: 1px solid var(--line); color: var(--muted); }
.crm tr.new td { animation: rowIn 1.2s var(--ease); }
@keyframes rowIn { from { background: rgba(45,212,191,.2); } }
.crm__wrap { overflow-x: auto; }

/* RAG demo */
.rag__ask { display: flex; gap: 10px; }
.rag__ask input { flex: 1; min-width: 0; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line); background: #040806; outline: none; }
.rag__ask input:focus { border-color: var(--cyan); }
.rag__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.rag__chips button { font-size: 13px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); transition: all .25s; }
.rag__chips button:hover { border-color: var(--violet); color: var(--text); }
.rag__out { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rag__col h5 { margin: 0 0 10px; font-family: "Geist Mono", monospace; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; }
.chunk { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 8px; font-size: 13px; color: var(--muted); animation: logIn .4s var(--ease) both; }
.chunk__top { display: flex; justify-content: space-between; gap: 10px; font-family: "Geist Mono", monospace; font-size: 11px; margin-bottom: 6px; }
.chunk__src { color: var(--cyan); }
.chunk__bar { height: 3px; border-radius: 99px; background: var(--surface-2); margin-top: 8px; overflow: hidden; }
.chunk__bar span { display: block; height: 100%; background: var(--grad); }
.answer { padding: 18px; border-radius: 14px; background: linear-gradient(160deg, rgba(52,211,153,.1), transparent 70%); border: 1px solid rgba(52,211,153,.3); min-height: 140px; font-size: 15px; line-height: 1.7; }
.answer sup { color: var(--cyan); font-family: "Geist Mono", monospace; }
.answer .placeholder { color: var(--dim); }

/* ================= CONTACT ================= */
.contact__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.compose { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); padding: 28px; }
.compose .field { margin-bottom: 16px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); transition: all .25s; }
.topics button.is-active { background: var(--cyan); color: var(--bg); border-color: var(--cyan); }
.compose textarea { min-height: 140px; resize: vertical; }
.side { display: grid; gap: 14px; }
.side__card { padding: 22px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.side__card h4 { margin: 0 0 4px; font-size: 13px; color: var(--dim); font-family: "Geist Mono", monospace; font-weight: 400; }
.side__card p { margin: 0; font-size: 18px; }
.side__card a.big { display: flex; justify-content: space-between; font-size: 20px; padding: 6px 0; border-bottom: 1px solid var(--line); transition: color .3s, padding .4s var(--ease); }
.side__card a.big:last-child { border: 0; }
.side__card a.big:hover { color: var(--cyan); padding-left: 8px; }
.email { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; text-align: left; }
.email__text { font-size: clamp(15px, 2vw, 20px); font-weight: 600; word-break: break-all; }
.email__hint { font-size: 11px; color: var(--cyan); }
.globe { position: relative; width: 120px; height: 120px; border-radius: 50%; margin: 6px 0 4px; background: radial-gradient(circle at 35% 30%, rgba(45,212,191,.35), transparent 60%), repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 15px), #08120e; border: 1px solid var(--line); overflow: hidden; animation: globe 12s linear infinite; background-size: 100% 100%, 60px 100%, 100% 100%; }
@keyframes globe { to { background-position: 0 0, 60px 0, 0 0; } }
.globe::after { content: ""; position: absolute; left: 66%; top: 46%; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 2s infinite; }

/* ================= Responsive ================= */
@media (max-width: 1024px) {
  .about__grid, .skills__wrap, .contact__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .principles, .sysmap { grid-template-columns: repeat(2, 1fr); }
  .orbit { max-width: 380px; }
  .console, .dedup { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  
  .nav__links { position: fixed; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; background: rgba(5,8,7,.98); border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; transition: all .35s var(--ease); }
  .nav.open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 14px 16px; font-size: 18px; }
  .nav__burger { display: block; }
  .hero__chips { display: none; }
  .edu, .now { grid-template-columns: 1fr; }
  .rag__out { grid-template-columns: 1fr; }
  /* horizontal work: native swipe on small screens */
  .hwork { height: auto; }
  .hwork__sticky { position: static; height: auto; padding: 90px 0 40px; }
  .hwork__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; transform: none !important; scrollbar-width: none; }
  .hwork__track::-webkit-scrollbar { display: none; }
  .wcard { scroll-snap-align: center; height: 400px; }
  .index__d { display: none; }
  .index a { grid-template-columns: 40px 1fr; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .card--xl, .card--wide { grid-column: auto; }
  .card--xl, .card--tall { grid-row: auto; }
  .skillgroups, .principles, .sysmap { grid-template-columns: 1fr; }
  .principle__icon { margin-bottom: 20px; }
  .stat { padding: 22px 18px; }
  .timeline { padding-left: 30px; }
  .timeline__line { left: 5px; }
  .job { padding: 24px 20px; }
  .job__dot { left: -32px; }
  .job__year { display: none; }
  .viz-rank div { grid-template-columns: 86px 1fr 28px; }
  .terminal__body { font-size: 12px; min-height: 300px; }
  .orbit { max-width: min(300px, 76vw); }
  .orbit__ring span { font-size: 11px; padding: 3px 7px; }
  .orbit__core { width: 70px; height: 70px; }
  .nav__k kbd { display: none; }
  .pipeline__nodes { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .demo__body, .demo__head { padding: 18px; }
  .phero { padding-top: 140px; }
}


/* ================= Added sections ================= */
.hero__hint { margin-top: 26px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.grad-split { display: block; overflow: hidden; padding-bottom: .06em; }
.grad-split .ch { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; margin-top: 30px; }
.job__intro { color: var(--muted); max-width: 760px; margin: 0 0 8px; }
.now__title { margin: 54px 0 16px; font-size: 14px; color: var(--cyan); font-weight: 400; }
.side__card--loc { display: flex; align-items: center; gap: 20px; }

/* AI in action */
.action { display: grid; grid-template-columns: 300px 1fr; gap: 18px; }
.action__tabs { display: flex; flex-direction: column; gap: 8px; }
.atab { position: relative; text-align: left; padding: 16px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: border-color .3s, background .3s; }
.atab small { display: block; font-family: "Geist Mono", monospace; font-size: 11px; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }
.atab b { font-weight: 600; font-size: 15px; }
.atab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.atab.is-active { border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.06); }
.atab.is-active::after { animation: tabbar var(--tabdur, 8s) linear forwards; }
.atab.is-active small { color: var(--violet); }
@keyframes tabbar { to { transform: scaleX(1); } }
.action__stage { position: relative; padding: 26px; border-radius: 14px; border: 1px solid var(--line); background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0) 0 0 / 22px 22px, var(--bg-2); min-height: 440px; display: flex; flex-direction: column; overflow: hidden; }
.action__stage::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--violet); filter: blur(110px); opacity: .13; right: -120px; top: -140px; pointer-events: none; }
.action__prompt { position: relative; padding: 14px 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; min-height: 50px; }
.action__prompt span:first-child { color: var(--violet); }
.action__steps { position: relative; list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.action__steps li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: 14px; color: var(--muted); opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease), border-color .3s, color .3s; }
.action__steps li.show { opacity: 1; transform: none; }
.action__steps li.live { border-color: rgba(45,212,191,.5); color: var(--text); }
.action__steps li.ok { color: var(--text); }
.action__steps li i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; border: 1px solid var(--line); }
.action__steps li.live i { border-color: var(--cyan); border-top-color: transparent; animation: spin .8s linear infinite; }
.action__steps li.ok i { background: var(--violet); border-color: var(--violet); color: var(--bg); }
.action__steps li em { font-style: normal; font-family: "Geist Mono", monospace; font-size: 11px; color: var(--dim); }
.action__steps li.gate { border-style: dashed; }
.action__steps li.gate.ok i { background: var(--amber); border-color: var(--amber); }
@keyframes spin { to { transform: rotate(360deg); } }
.action__foot { position: relative; display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: 11px; letter-spacing: .12em; }

/* process */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process__line { position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line); }
.process__line span { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 12px var(--violet); transition: width 2.2s var(--ease); }
.process.in .process__line span { width: 100%; }
.pstep { position: relative; padding-top: 70px; }
.pstep__n { position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); font-size: 13px; color: var(--violet); transition: background .4s, color .4s; }
.pstep:hover .pstep__n { background: var(--violet); color: var(--bg); }
.pstep h4 { margin: 0 0 8px; font-size: 24px; letter-spacing: -0.02em; }
.pstep p { margin: 0; color: var(--muted); font-size: 15px; }

/* CTA */
.cta__box { position: relative; overflow: hidden; text-align: center; padding: clamp(60px, 9vw, 110px) 24px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); isolation: isolate; }
.cta__orb { position: absolute; left: 50%; top: 100%; width: 900px; height: 600px; transform: translate(-50%, -45%); border-radius: 50%; background: radial-gradient(closest-side, rgba(52,211,153,.45), rgba(45,212,191,.15) 60%, transparent); z-index: -1; animation: orb 6s ease-in-out infinite alternate; }
@keyframes orb { to { transform: translate(-50%, -55%) scale(1.1); } }
.cta__box h2 { margin: 0 0 12px; font-size: clamp(38px, 7vw, 88px); line-height: .95; letter-spacing: -0.05em; }
.cta__box p { margin: 0 0 30px; color: var(--muted); font-size: 18px; }

/* generated cover art */
.cover svg { width: 100%; height: 100%; display: block; }
.card__cover { height: 210px; margin: -28px -28px 22px; border-bottom: 1px solid var(--line); overflow: hidden; background: #070d0b; flex: none; }
.card__cover.cover--sm { height: 140px; }
.card--xl .card__cover { height: 300px; }
.card__cover svg { transition: transform 1.2s var(--ease); }
.card:hover .card__cover svg { transform: scale(1.06); }
.wcard__bg.cover { opacity: .8; }
.wcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 15%, rgba(5,8,7,.94) 72%); pointer-events: none; }
.wcard--end::after { display: none; }
.cover .pulse-dot { animation: dotpulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes dotpulse { 50% { transform: scale(1.6); opacity: .5; } }
.cover .flowline { stroke-dasharray: 4 6; animation: dash 1.4s linear infinite; }
.cover .scanbar { animation: scan 3s ease-in-out infinite alternate; }
@keyframes scan { to { transform: translateY(150px); } }
.cover .grow { transform-box: fill-box; transform-origin: bottom; animation: grow 2.4s var(--ease) infinite alternate; }
@keyframes grow { from { transform: scaleY(.35); } }

@media (max-width: 1024px) {
  .action { grid-template-columns: 1fr; }
  .action__tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .action__tabs::-webkit-scrollbar { display: none; }
  .atab { flex: none; width: 210px; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process__line { display: none; }
}
@media (max-width: 640px) {
  .process { grid-template-columns: 1fr; }
  .action__stage { padding: 18px; min-height: 400px; }
  .action__steps li { grid-template-columns: 24px 1fr; }
  .action__steps li em { display: none; }
  .side__card--loc { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
.wcard__n { padding-right: 64px; }
@media (max-width: 640px) { .hero__glow { opacity: .3; } }
.wipe__label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.wipe__ring { width: 56px; height: 56px; animation: spin 1s linear infinite; }
.wipe__ring circle { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 3; }
.wipe__ring .wipe__arc { stroke: #34d399; stroke-linecap: round; stroke-dasharray: 50 200; }

/* ================= Status, roadmap, automation library ================= */
.status-chip { position: absolute; top: 18px; right: 18px; z-index: 2; font-size: 11px; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; backdrop-filter: blur(6px); }
.status-chip--inline { position: static; margin-left: 8px; vertical-align: middle; text-transform: none; letter-spacing: 0; }
.st--ok { background: rgba(74,222,128,.12); color: var(--green); border: 1px solid rgba(74,222,128,.25); }
.st--wip { background: rgba(251,191,36,.12); color: var(--amber); border: 1px solid rgba(251,191,36,.3); }
.st--plan { background: rgba(255,255,255,.04); color: var(--muted); border: 1px dashed rgba(255,255,255,.25); }
.card__cover + .card__kicker, .card .card__kicker { padding-right: 110px; }
.card--planned { border-style: dashed; border-color: rgba(255,255,255,.14); background: repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 10px, transparent 10px 20px), var(--surface); }
.card--planned h3 { color: #cfd6d2; }
.card--planned:hover { border-color: rgba(45,212,191,.5); border-style: dashed; }
.filter--next { border-style: dashed; }

.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.board__col { padding: 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.board__col h4 { display: flex; align-items: center; gap: 8px; margin: 2px 4px 6px; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.board__col h4 span { margin-left: auto; color: var(--dim); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--now { background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: pulse 2s infinite; }
.dot--next { background: var(--cyan); }
.dot--later { background: var(--dim); }
.ticket { text-align: left; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; }
.ticket:hover { transform: translateY(-3px) rotate(-.6deg); border-color: rgba(52,211,153,.45); box-shadow: 0 14px 30px -14px rgba(52,211,153,.4); }
.ticket small { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.ticket b { font-weight: 600; }
.ticket span { font-size: 13px; color: var(--muted); }

.autobar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.autobar__search { width: 100%; max-width: 520px; padding: 14px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); outline: none; transition: border-color .3s, box-shadow .3s; }
.autobar__search:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(45,212,191,.1); }
.autobar__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.autobar__chips button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); transition: all .25s; }
.autobar__chips button sup { font-size: 11px; opacity: .6; }
.autobar__chips button.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.autogrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.auto { position: relative; padding: 20px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .3s, background .3s; }
.auto.in { opacity: 1; transform: none; }
.auto[hidden] { display: none; }
.auto:hover { border-color: rgba(52,211,153,.4); background: var(--surface-2); }
.auto__top { display: flex; justify-content: space-between; align-items: center; }
.auto__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(52,211,153,.1); font-size: 19px; transition: transform .4s var(--ease); }
.auto:hover .auto__icon { transform: rotate(-8deg) scale(1.1); }
.auto__n { font-size: 11px; color: var(--dim); }
.auto h5 { margin: 14px 0 4px; font-size: 16px; letter-spacing: -0.01em; }
.auto p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.auto__wire { position: relative; height: 1px; background: var(--line); margin: 16px 0 12px; overflow: hidden; }
.auto__wire i { position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: var(--grad); opacity: 0; }
.auto:hover .auto__wire i { opacity: 1; animation: wire 1.2s linear infinite; }
@keyframes wire { to { left: 100%; } }
.auto__tools { font-size: 11px; color: var(--cyan); }
.auto__cat { position: absolute; right: -40px; bottom: 14px; transform: rotate(-90deg); transform-origin: right bottom; font-size: 9px; color: var(--dim); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; opacity: 0; }
.autoempty { color: var(--dim); text-align: center; padding: 30px; }

.drawer__why { margin-top: 20px; padding: 16px 18px; border-radius: 14px; border-left: 3px solid var(--violet); background: rgba(52,211,153,.06); color: var(--text); font-size: 15px; }
.drawer__why b { display: block; font-size: 11px; color: var(--violet); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 4px; font-weight: 500; }
.guards li::before { content: "🛡"; font-size: 12px; top: 2px; }
.milestones { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: ms; }
.milestones li { counter-increment: ms; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; }
.milestones li::before { content: none; }
.milestones li i { flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--dim); }
.flow--planned .flow__step { border-style: dashed; background: transparent; }

@media (max-width: 1024px) { .autogrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .board { grid-template-columns: 1fr; } .board__col { min-height: 0; } }
@media (max-width: 560px) { .autogrid { grid-template-columns: 1fr; } }
.marquee__row--auto .marquee__track { font-size: clamp(14px, 1.8vw, 20px); font-weight: 400; color: var(--muted); animation-duration: 40s; -webkit-text-stroke: 0; }
.marquee__row--auto .marquee__track span:nth-child(even) { color: var(--cyan); }
.nextband { display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: center; padding: 28px; border-radius: 14px; border: 1px dashed rgba(52,211,153,.35); background: repeating-linear-gradient(135deg, rgba(52,211,153,.03) 0 12px, transparent 12px 24px), var(--bg-2); }
.nextband__head p { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.nextband__head h3 { margin: 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.04em; line-height: 1; }
.nextband__list { display: flex; flex-wrap: wrap; gap: 10px; }
.nb { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: transform .35s var(--ease), border-color .3s; }
.nb small { font-size: 11px; color: var(--dim); background: none; border: 0; }
.nb b { font-weight: 600; font-size: 15px; }
.nb:hover { transform: translateY(-3px); border-color: rgba(45,212,191,.5); }
.nb--all { justify-content: center; background: var(--text); color: var(--bg); border-color: var(--text); }
@media (max-width: 860px) { .nextband { grid-template-columns: 1fr; } }
.card .card__kicker { flex-wrap: wrap; justify-content: flex-start; gap: 2px 10px; }
.card .card__kicker em::before { content: "· "; }

/* ================= Human pass ================= */
.serif { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.section__title .serif, .phero__title .serif, .hero__name .serif { color: var(--violet); }
.phero__title sup, .section__title sup { font-family: "Geist Mono", monospace; font-size: .18em; font-weight: 400; color: var(--dim); vertical-align: top; margin-left: .3em; letter-spacing: 0; position: relative; top: .5em; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: var(--muted); margin: 0; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero__intro { font-size: clamp(19px, 2.2vw, 26px); line-height: 1.4; max-width: 720px; color: var(--text); margin: 18px 0 0; letter-spacing: -0.01em; }
.hero__intro em { font-style: normal; color: var(--muted); }
.ul { text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: 4px; transition: text-decoration-color .2s, color .2s; }
.ul:hover { color: var(--violet); text-decoration-color: var(--violet); }

/* numbered list (principles) */
.rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rules li { display: grid; grid-template-columns: 70px 260px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rules span { font-family: "Geist Mono", monospace; font-size: 12px; color: var(--dim); }
.rules h4 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.rules p { margin: 0; color: var(--muted); }

/* definition list (work) */
.dl { display: grid; grid-template-columns: 220px 1fr; margin: 22px 0 8px; border-top: 1px solid var(--line); }
.dl dt, .dl dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.dl dt { font-weight: 500; font-size: 15px; }
.dl dd { color: var(--muted); font-size: 14.5px; }

/* code sample */
.code { margin: 26px 0 6px; border: 1px solid var(--line); border-radius: 10px; background: #070b09; overflow: hidden; }
.code__bar { display: flex; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--dim); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-size: 12.5px; line-height: 1.7; color: #c9d1cd; }
.code .c { color: #5b6b64; } .code .k { color: #7dd3c0; } .code .s { color: #e6c07b; } .code .f { color: #8fb4ff; } .code .n { color: #f0a07a; }

/* automation table */
.atable { width: 100%; border-collapse: collapse; font-size: 14px; }
.atable th { text-align: left; font-family: "Geist Mono", monospace; font-weight: 400; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; padding: 10px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 60px; background: var(--bg); }
.atable td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.atable td:first-child { font-family: "Geist Mono", monospace; font-size: 12px; color: var(--dim); width: 44px; }
.atable td b { color: var(--text); font-weight: 500; }
.atable td.tools { font-family: "Geist Mono", monospace; font-size: 12px; color: var(--cyan); white-space: nowrap; }
.atable td.area { font-size: 12.5px; white-space: nowrap; }
.atable tr { transition: background .2s; }
.atable tbody tr:hover { background: var(--surface); }
.atable tr[hidden] { display: none; }
.atable__wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.atable__wrap .atable th { top: 0; }

.colophon { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 40px var(--gutter); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); max-width: 1240px; margin: 0 auto; }
.colophon h5 { margin: 0 0 8px; font-family: "Geist Mono", monospace; font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.colophon p { margin: 0; line-height: 1.6; }
.colophon a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dim); }
.colophon a:hover { color: var(--violet); }

@media (max-width: 860px) {
  .rules li { grid-template-columns: 40px 1fr; }
  .rules p { grid-column: 2; }
  .dl { grid-template-columns: 1fr; }
  .dl dt { border-bottom: 0; padding-bottom: 2px; }
  .dl dd { padding-top: 0; }
  .colophon { grid-template-columns: 1fr; }
  .atable .area, .atable th.area { display: none; }
}
.node__icon.mono { font-size: 15px; color: var(--muted); }
.node.run .node__icon.mono, .node.done .node__icon.mono { color: var(--violet); }
.stage i.mono { font-size: 12px; color: var(--dim); margin-bottom: 6px; }
.flow__step em { font-style: normal; font-size: 11px; color: var(--amber); margin-left: 8px; text-transform: uppercase; letter-spacing: .08em; }
.section__title, .phero__title, .hero__name, .cta__box h2, .next strong, .index__t { font-weight: 600; }
.phero__title { letter-spacing: -0.045em; }
.cta__box { text-align: left; }
.cta__box p { max-width: 560px; }
.edu__card { background: transparent; }
.drawer__why { border-left-width: 2px; }
.loader .ld__mono { letter-spacing: -1px; }

/* ================= Contact (no form) ================= */
.contact__grid--solo { grid-template-columns: 1fr; }
.contact__grid--solo .side { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .contact__grid--solo .side { grid-template-columns: 1fr; } }

/* ================= Site assistant ================= */
.bot-fab { position: fixed; right: 20px; bottom: 20px; z-index: 600; display: flex; align-items: center; gap: 10px; padding: 11px 14px 11px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px -10px rgba(0,0,0,.7); transition: transform .3s var(--ease), opacity .3s; }
.bot-fab:hover { transform: translateY(-2px); }
.bot-fab kbd { font-size: 10px; padding: 2px 5px; border-radius: 4px; background: var(--bg); color: var(--violet); }
.bot-fab__dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; }
.bot-fab.is-open { opacity: 0; pointer-events: none; transform: translateY(8px); }

.bot { position: fixed; right: 20px; bottom: 20px; z-index: 610; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 100px)); display: flex; flex-direction: column; background: #0a0f0d; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.85); overflow: hidden; opacity: 0; transform: translateY(12px) scale(.98); transform-origin: bottom right; transition: opacity .25s, transform .3s var(--ease); }
.bot.open { opacity: 1; transform: none; }
.bot[hidden] { display: none; }
.bot__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line); }
.bot__head b { display: block; font-weight: 500; font-size: 15px; }
.bot__head small { font-size: 11px; color: var(--dim); }
.bot__actions { display: flex; gap: 4px; }
.bot__icon { width: 30px; height: 30px; border-radius: 6px; color: var(--muted); font-size: 14px; }
.bot__icon:hover { background: var(--surface-2); color: var(--text); }
.bot__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 10px; font-size: 14px; line-height: 1.55; word-wrap: break-word; animation: logIn .25s var(--ease); }
.msg--assistant { align-self: flex-start; background: var(--surface-2); color: var(--text); border-bottom-left-radius: 3px; }
.msg--user { align-self: flex-end; background: var(--violet); color: #03130b; border-bottom-right-radius: 3px; }
.msg a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.msg--typing { display: flex; gap: 4px; padding: 14px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; } .msg--typing i:nth-child(3) { animation-delay: .3s; }
.bot__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.bot__chips[hidden] { display: none; }
.bot__chips button { font-size: 12.5px; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); text-align: left; }
.bot__chips button:hover { border-color: var(--violet); color: var(--text); }
.bot__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.bot__form input { flex: 1; min-width: 0; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); outline: none; font-size: 14px; }
.bot__form input:focus { border-color: var(--violet); }
.bot__form button { width: 42px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 16px; }
.bot__note { margin: 0; padding: 0 12px 10px; font-size: 11px; color: var(--dim); }
@media (max-width: 520px) {
  .bot { right: 12px; left: 12px; bottom: 12px; width: auto; height: min(70vh, 560px); }
  .bot-fab { right: 12px; bottom: 12px; }
}
/* hero name: full name, one line where it fits */
.hero__name { font-size: clamp(46px, 10.4vw, 150px); line-height: .95; letter-spacing: -0.05em; }
.hero__name .split { display: inline-block; vertical-align: top; margin-right: .22em; }
.hero__name .split:last-child { margin-right: 0; }
.milestones li.done { border-style: solid; color: var(--text); }
.milestones li.done i { background: var(--violet); border-color: var(--violet); position: relative; }
.milestones li.done i::after { content: ""; position: absolute; left: 5px; top: 1px; width: 4px; height: 9px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.drawer__org { margin: -6px 0 14px; font-size: 12px; color: var(--violet); }
.filter--org { border-color: rgba(52,211,153,.35); }
.roleprojects { margin: 22px 0 4px; }
.roleprojects h5 { margin: 0 0 10px; font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.roleprojects__list { display: flex; flex-wrap: wrap; gap: 6px; }
.rolelink { font-size: 13px; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); transition: color .2s, border-color .2s; }
.rolelink::after { content: " ↗"; color: var(--dim); }
.rolelink:hover { color: var(--text); border-color: var(--violet); }

/* ================= Responsive pass ================= */
/* media is never wider than its box; long words/URLs wrap instead of pushing the page */
img, svg, video, canvas { max-width: 100%; }
p, li, dd, td, h1, h2, h3, h4, .msg { overflow-wrap: break-word; }
.wcard, .card, .job, .side__card, .demo { min-width: 0; }

/* tablets and below */
@media (max-width: 1024px) {
  .hero__content { padding-top: 20px; }
  .bento { gap: 14px; }
}

/* phones */
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section--tight { padding-top: 24px; }
  .section__head { gap: 12px; margin-bottom: 26px; }
  .section__sub { margin: -10px 0 26px; font-size: 16px; }
  .phero { padding: 112px var(--gutter) 20px; }
  .phero__lede { font-size: 16px; }
  .next { padding: 48px var(--gutter); }

  /* hero */
  .hero { min-height: 100svh; padding: 96px var(--gutter) 72px; }
  .hero__meta { gap: 4px 14px; font-size: 12px; }
  .hero__intro { font-size: 18px; }
  .hero__ctas { gap: 10px; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .scroll-hint { display: none; }

  /* stats: smaller numbers, tighter cells */
  .stat__num { font-size: 40px; }
  .stat p { font-size: 13px; }

  /* replays */
  .action__tabs { scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .atab { width: 190px; scroll-snap-align: start; }
  .action__stage { min-height: 0; }
  .action__prompt { font-size: 13px; }

  /* selected work: keep text readable over the artwork */
  .hwork__head { flex-wrap: wrap; align-items: baseline; }
  .wcard { width: 84vw; height: auto; min-height: 380px; padding: 22px; }
  .wcard::after { background: linear-gradient(180deg, rgba(5,8,7,.15) 0%, rgba(5,8,7,.9) 45%, rgba(5,8,7,.97) 100%); }
  .wcard__arrow { width: 44px; height: 44px; top: 18px; right: 18px; }

  /* how I work: number beside the title instead of above it */
  .process { gap: 26px; }
  .pstep { padding-top: 0; padding-left: 60px; min-height: 46px; }
  .pstep h4 { font-size: 20px; }

  /* recently shipped: two columns of chips */
  .nextband { padding: 20px; gap: 18px; }
  .nextband__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .nb { padding: 10px 12px; }
  .nb b { font-size: 14px; }
  .nb--all { grid-column: 1 / -1; }

  /* site index */
  .index a { padding: 18px 4px; gap: 12px; }
  .index__t { font-size: 34px; }

  /* projects */
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 22px; padding: 2px var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .card { padding: 22px; min-height: 0; }
  .card__cover { margin: -22px -22px 18px; }
  .card--xl .card__cover { height: 200px; }
  .card .card__kicker { padding-right: 96px; }
  .status-chip { top: 14px; right: 14px; }
  .drawer__panel { padding: 22px 18px 48px; }
  .drawer h2 { font-size: 30px; }

  /* automation table becomes stacked rows */
  .atable__wrap { border: 0; overflow: visible; }
  .atable thead { display: none; }
  .atable, .atable tbody { display: block; }
  .atable tr { display: grid; grid-template-columns: 32px 1fr; gap: 2px 10px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .atable tr[hidden] { display: none; }
  .atable td { display: block; padding: 0; border: 0; }
  .atable td:first-child { grid-row: span 2; padding-top: 2px; }
  .atable td.tools { white-space: normal; font-size: 11.5px; }

  /* work */
  .job h3 { font-size: 24px; }
  .code pre { font-size: 11.5px; padding: 14px; }
  .roleprojects__list { gap: 6px; }

  /* about */
  .rules li { padding: 18px 0; gap: 4px 14px; }
  .rules h4 { font-size: 17px; }
  .terminal__body { padding: 16px; }

  /* footer */
  .footer { flex-direction: column; gap: 6px; padding-bottom: 88px; } /* room for the chat button */
  .colophon { padding: 32px var(--gutter); gap: 18px; }
}

/* small phones (iPhone SE, older Androids) */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .hero__name { font-size: 50px; }
  .phero__title { font-size: 46px; }
  .section__title { font-size: 34px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px 14px; }
  .stat__num { font-size: 34px; }
  .nextband__list { grid-template-columns: 1fr; }
  .wcard { width: 88vw; }
  .bot-fab span:not(.bot-fab__dot) { display: none; } /* just the dot + AI badge */
  .bot-fab { padding: 12px; }
}

/* touch devices: 16px inputs stop iOS from zooming the page on focus */
@media (hover: none) and (pointer: coarse) {
  .bot__form input, .autobar__search, .palette__input { font-size: 16px; }
}

/* short landscape phones */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: 90px; padding-bottom: 48px; }
  .hwork { height: auto; }
  .hwork__sticky { position: static; height: auto; padding: 60px 0 30px; }
  .hwork__track { overflow-x: auto; transform: none !important; scroll-snap-type: x mandatory; }
  .wcard { height: 320px; scroll-snap-align: center; }
  .bot { height: calc(100vh - 24px); }
  .loader .ld__svg { width: 150px; }
}

/* ================= Mobile fixes v2 ================= */
/* The tilted tech strip is clipped by a straight wrapper, so it can never make the page wider than the screen
   (iOS Safari doesn't reliably honour overflow-x on html/body). */
.marquee-clip { overflow: hidden; padding: 26px 0; }
.phero { overflow: hidden; }

/* nav: extra mobile-only items are hidden on desktop */
.nav__links > a small, .nav__home, .nav__extra { display: none; }

/* full-screen mobile menu */
@media (max-width: 920px) {
  .nav__burger { width: 44px; height: 44px; flex: none; }
  .nav__burger span { left: 13px; right: 13px; }
  .nav__burger span:first-child { top: 18px; } .nav__burger span:last-child { top: 25px; }
  .nav.open .nav__burger span:first-child, .nav.open .nav__burger span:last-child { top: 21.5px; }
  .nav.open { background: var(--bg); }

  .nav__links {
    /* .nav has backdrop-filter, which makes it the containing block for this fixed panel, so size it explicitly */
    position: fixed; top: 60px; left: 0; right: 0; bottom: auto;
    height: calc(100vh - 60px); height: calc(100dvh - 60px);
    display: flex; flex-direction: column; gap: 0;
    padding: 8px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    background: var(--bg); border: 0; border-radius: 0;
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: none; pointer-events: none;
    transition: opacity .25s ease, visibility 0s linear .25s;
  }
  .nav.open .nav__links { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .25s ease; }

  .nav__links > a, .nav__home {
    display: flex; align-items: baseline; gap: 14px;
    padding: 18px 2px; border-radius: 0; background: none;
    border-bottom: 1px solid var(--line);
    font-size: clamp(28px, 8.5vw, 40px); font-weight: 600; letter-spacing: -0.03em; color: var(--text);
    opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .45s var(--ease);
  }
  .nav__links > a:hover { background: none; }
  @media (hover: hover) { .nav__links > a:hover { color: var(--violet); } }
  .nav__links > a small { display: inline; font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--dim); min-width: 22px; }
  .nav__links > a.active { color: var(--violet); }
  .nav__links > a.active::after { display: none; }
  .nav.open .nav__links > a { opacity: 1; transform: none; }
  .nav.open .nav__links > a:nth-child(2) { transition-delay: .04s; }
  .nav.open .nav__links > a:nth-child(3) { transition-delay: .08s; }
  .nav.open .nav__links > a:nth-child(4) { transition-delay: .12s; }
  .nav.open .nav__links > a:nth-child(5) { transition-delay: .16s; }

  .nav__extra { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 32px; font-size: 13px; color: var(--muted); }
  .nav__extra a { padding: 0; font-size: 13px; color: var(--muted); border: 0; text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: 3px; }
  .nav__extra a:hover { color: var(--violet); background: none; }

  /* page can't scroll behind the open menu */
  html.menu-open, html.menu-open body { overflow: hidden; }
  html.menu-open .bot-fab { opacity: 0; pointer-events: none; }
}

/* phones: no keyboard, so the Ctrl+K button just takes space */
@media (max-width: 640px) {
  .nav__k { display: none; }
  .nav { gap: 8px; }
}

/* closed project panel sits off-screen to the right; keep it from widening the page on iOS */
.drawer { overflow: hidden; }

/* ================= Mobile fixes v3 (from screen recording) ================= */
/* 1. no sideways rubber-band bounce on trackpads / touch */
html, body { overscroll-behavior-x: none; }

/* stronger outline so "Acharya" reads as outlined, not solid */
.split--outline { -webkit-text-stroke-width: 2px; }

@media (max-width: 920px) {
  /* 2. hero hugs its content instead of filling the screen (no empty band) */
  .hero { min-height: 0; padding-top: 104px; padding-bottom: 48px; align-items: flex-start; }
  .scroll-hint { display: none; }

  /* 3. name stacks on two lines on narrow screens: Aryan solid / Acharya outlined */
  .hero__name { font-size: clamp(54px, 15.5vw, 120px); line-height: .92; margin: 18px 0 8px; }
  .hero__name .split { display: block; margin-right: 0; }

  /* 4. tech strip: straight and compact */
  .marquee-clip { padding: 0; }
  .marquee { transform: none; padding: 18px 0; }
  .marquee__track { font-size: clamp(20px, 5.4vw, 30px); gap: 18px; padding-right: 18px; }
  .marquee__row--auto .marquee__track { font-size: 13px; }
  .marquee__row + .marquee__row { margin-top: 8px; }
}

/* seamless tech strip: JS sets each track's duration; keep the two copies in lockstep */
.marquee__row { width: 100%; }
.marquee__track { will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
