:root {
    --bg: #0d0f0e;
    --surface: #151816;
    --raised: #1d211e;
    --hover: #272c28;
    --line: rgba(255, 255, 255, .06);
    --text: #f3f6f3;
    --mute: #969f98;
    --dim: #5c655e;
    --acc: #22c55e;
    --acc-hi: #7ee9a8;
    --acc-rgb: 34, 197, 94;
    --grad: linear-gradient(135deg, #16a34a, #4ade80);
    --mono: 'Geist Mono', ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body { background: var(--bg); color: var(--text); font: 400 1rem/1.6 'Geist', 'Segoe UI', system-ui, sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: rgba(var(--acc-rgb), .35); }
::-webkit-scrollbar { width: .5rem; }
::-webkit-scrollbar-thumb { background: var(--raised); border-radius: 1rem; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.75rem; }
.section { padding-top: 7.5rem; }
.page { padding-top: 9.5rem; min-height: 70vh; }
.center { text-align: center; justify-content: center; }
.mute { color: var(--mute); }
.row { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.between { justify-content: space-between; }
main { min-height: 100vh; }
.footer { display: none; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.03em; line-height: 1.12; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }

.sk { background: linear-gradient(90deg, #161916 25%, #202420 37%, #161916 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: .7rem; }
.fade { animation: fade .35s ease both; }
.reveal { opacity: 0; transform: translateY(.8rem); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

.btn { height: 2.6rem; padding: 0 1.5rem; border-radius: 2rem; background: var(--grad); color: #04170b; font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap; transition: filter .15s ease, background-color .15s ease; }
.btn:hover { filter: brightness(1.1); }
.btn.dark { background: var(--hover); color: var(--text); }
.btn.dark:hover { filter: none; background: #30362f; }
.go { height: 3rem; padding: 0 .4rem 0 1.2rem; border-radius: 2rem; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; font-size: .95rem; display: inline-flex; align-items: center; gap: .9rem; white-space: nowrap; transition: background-color .15s ease; }
.go i { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--grad); color: #04170b; display: grid; place-items: center; font-size: 1rem; }
.go:hover { background: var(--hover); }
.go.plain i { background: var(--hover); color: var(--text); }
.pill { display: inline-flex; align-items: center; gap: .6rem; padding: .3rem .9rem .3rem .35rem; border-radius: 2rem; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); color: var(--mute); font-size: .82rem; }
.pill i { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: rgba(var(--acc-rgb), .18); color: var(--acc); display: grid; place-items: center; font-size: .8rem; }
.pill em { display: inline-flex; align-items: center; gap: .35rem; padding: .1rem .6rem .1rem .15rem; border-radius: 2rem; background: var(--text); color: #0d0f0e; font: 600 .76rem 'Geist', sans-serif; }
.pill em img { width: 1.2rem; height: 1.2rem; border-radius: 50%; }
.chip { display: inline-block; padding: .2rem .7rem; border-radius: 2rem; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: var(--mute); font-size: .74rem; font-weight: 500; }
.num { color: var(--dim); font: 400 .78rem var(--mono); }
.tile { width: 2.3rem; height: 2.3rem; flex: none; border-radius: .6rem; background: var(--hover); display: grid; place-items: center; color: var(--acc); }
.tile img { width: 1.35rem; height: 1.35rem; object-fit: contain; }
.tile img[src*="mysql"] { filter: brightness(2.2) saturate(.8); }
.live { display: inline-flex; align-items: center; gap: .45rem; color: var(--acc-hi); font-size: .78rem; }
.live i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--acc); animation: pulse 2s ease-out infinite; }

.header { position: fixed; top: 1.2rem; left: 0; right: 0; z-index: 50; padding: 0 1.75rem; pointer-events: none; }
.nav { transition: max-width .45s ease, background-color .2s ease, box-shadow .2s ease;
    pointer-events: auto; position: relative; max-width: 1124px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: .5rem; border-radius: 1.1rem; background: rgba(29, 33, 30, .82); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line); }
.scrolled .nav { max-width: 40rem; background: rgba(29, 33, 30, .94); box-shadow: inset 0 0 0 1px var(--line), 0 1rem 2.5rem rgba(0, 0, 0, .5); }
.scrolled .nav-links a { padding: .4rem .75rem; }
.scrolled .brand b { display: none; }
.nav-links { display: flex; gap: .2rem; }
.nav-links a { padding: .4rem 1.1rem; border-radius: 2rem; color: var(--mute); font-size: .88rem; transition: color .15s ease, background-color .15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-links a.on { background: var(--hover); color: var(--text); }
.brand { display: flex; align-items: center; gap: .55rem; font-size: 1.15rem; letter-spacing: -.03em; }
.brand img { width: 1.7rem; height: 1.7rem; border-radius: .5rem; object-fit: cover; }
.brand b { font-weight: 600; }
.nav .btn { justify-self: end; }
.menu-btn { display: none; width: 2.6rem; height: 2.6rem; border-radius: .8rem; background: var(--hover); place-items: center; font-size: 1.1rem; }

.hero { padding-top: 10.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin: 1.6rem 0 1.2rem; }
.hero > p { color: var(--mute); max-width: 35rem; }
.counts { display: flex; justify-content: center; gap: 3.5rem; flex-wrap: wrap; margin: 2.5rem 0 3rem; }
.counts div { display: grid; grid-template-columns: auto auto; column-gap: .7rem; align-items: center; justify-content: center; }
.counts i { width: 2rem; height: 2rem; border-radius: 50%; background: rgba(var(--acc-rgb), .16); color: var(--acc); display: grid; place-items: center; font-size: 1rem; }
.counts b { font-size: 2.5rem; font-weight: 500; letter-spacing: -.04em; line-height: 1.1; }
.counts span { grid-column: 1 / -1; color: var(--mute); font-size: .82rem; margin-top: .2rem; }
.term { width: min(45rem, 100%); padding: .5rem .5rem 0; border-radius: 1.3rem 1.3rem 0 0; background: #121513; box-shadow: inset 0 0 0 1px var(--line), 0 0 0 .5rem rgba(255, 255, 255, .02); -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.term pre { padding: 1.6rem 1.2rem 2.5rem; border-radius: .9rem .9rem 0 0; background: #171a18; font: 400 .88rem/2 var(--mono); text-align: left; overflow: hidden; }
.term pre div { display: flex; min-height: 1.76rem; }
.term pre b { width: 3rem; flex: none; color: #3d453f; font-weight: 400; user-select: none; }
.term code { font: inherit; color: #c3cbc5; white-space: pre; }
.term k { color: #c792ea; }
.term g { color: var(--acc-hi); }
.term y { color: #f2cc60; }
.term d { color: var(--dim); }

.chosen { padding: 3.5rem 0 0; border-top: 1px solid var(--line); text-align: center; scroll-margin-top: 6rem; }
.chosen p { color: var(--mute); font-size: 1.1rem; margin-bottom: 2rem; }
.strip { display: flex; justify-content: center; align-items: center; gap: 4.5rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.strip img { height: calc(4.2rem * var(--s, 1)); width: auto; flex: none; filter: grayscale(1) brightness(1.4) contrast(.9); opacity: .6; transition: filter .25s ease, opacity .25s ease; }
.strip img:hover { filter: none; opacity: 1; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.split h2 { margin: 1.3rem 0 1rem; }
.split > div > p { color: var(--mute); font-size: .95rem; max-width: 27rem; margin-bottom: 1.6rem; }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; height: 34rem; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); }
.lane > div { display: flex; flex-direction: column; gap: 1.1rem; padding-bottom: 1.1rem; animation: lane-up 38s linear infinite; will-change: transform; }
.lane.down > div { animation-name: lane-down; }
.skills:hover .lane > div { animation-play-state: paused; }
.skill { padding: 1.3rem; border-radius: 1.1rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .15s ease; }
.skill:hover { background: var(--raised); }
.skill b { display: block; font-weight: 500; font-size: 1.05rem; margin: 1.1rem 0 .9rem; }
.skills-wrap { position: relative; }
.skills .skill { cursor: none; }
.cursor { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .12s ease; }
.cursor.on { opacity: 1; }
.cursor svg { position: absolute; left: -.2rem; top: -.2rem; width: 1.3rem; height: 1.3rem; fill: var(--acc); stroke: #04170b; stroke-width: 1.2; }
.cursor em { display: block; margin: 1.1rem 0 0 1rem; padding: .35rem .8rem; border-radius: 2rem; background: var(--hover); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 .8rem 2rem rgba(0, 0, 0, .45); font-style: normal; font-size: .78rem; font-weight: 500; white-space: nowrap; }

.title { text-align: center; max-width: 36rem; margin: 0 auto 2.8rem; }
.title h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
.title p { color: var(--mute); font-size: .95rem; margin-top: .8rem; }
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.learn { display: flex; gap: 1.1rem; padding: 1.4rem; border-radius: 1.1rem; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), .22); }
.learn > div { flex: 1; }
.learn b { font-weight: 500; font-size: 1.15rem; }
.learn p { color: var(--mute); font-size: .92rem; margin-top: .4rem; }

.panel { padding: 1.1rem; border-radius: 1.4rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.works { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.1rem; }
.work { display: block; text-align: center; padding-bottom: .6rem; }
.work.wide { grid-column: 1 / -1; }
.work-art { position: relative; height: 17rem; border-radius: 1rem; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse 75% 85% at 50% 115%, color-mix(in srgb, var(--c) 38%, transparent), transparent 70%), #0e100f; box-shadow: inset 0 0 0 1px var(--line); }
.work-art img { max-height: calc(11rem * var(--s, 1)); max-width: 62%; object-fit: contain; filter: drop-shadow(0 1rem 1.6rem rgba(0, 0, 0, .55)); transition: transform .4s ease; }
.work:hover .work-art img { transform: scale(1.04); }
.work-art.shot { height: 24rem; padding: 2.2rem 2.2rem 0; place-items: end center; }
.work-art.shot img { max-height: none; max-width: none; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: .8rem .8rem 0 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); filter: none; }
.work-art .num { position: absolute; top: .9rem; left: .9rem; padding: .25rem .5rem; border-radius: .4rem; background: var(--hover); color: #cfd6d0; }
.visit { position: absolute; top: .9rem; right: .9rem; display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: .4rem; background: var(--hover); color: #cfd6d0; font: 400 .78rem var(--mono); }
.work-cap { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: 1.1rem; font-size: .88rem; color: var(--mute); }
.work-cap b { color: var(--text); font-weight: 500; }
.work-cap i { font-style: normal; color: var(--acc); }
.work > p { color: var(--dim); font-size: .86rem; max-width: 30rem; margin: .3rem auto 0; }
.behind { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-top: 2.5rem; }
.behind h3 { font-size: 1.4rem; margin-bottom: .7rem; }
.behind p { color: var(--mute); font-size: .92rem; max-width: 33rem; }

.posts { display: flex; flex-direction: column; gap: .8rem; max-width: 56rem; margin: 0 auto; }
.post { display: grid; grid-template-columns: 2rem 1fr auto; gap: 1.2rem; align-items: center; padding: 1.3rem 1.5rem; border-radius: 1rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: opacity .5s ease, transform .5s ease, background-color .15s ease; }
.post:hover { background: var(--raised); }
.post h3 { font-size: 1.08rem; }
.post p { color: var(--mute); font-size: .88rem; margin-top: .25rem; }
.post-meta { display: flex; align-items: center; gap: .9rem; color: var(--dim); font-size: .82rem; white-space: nowrap; }
.post-meta svg { font-size: 1.1rem; transition: color .15s ease; }
.post:hover .post-meta svg { color: var(--acc); }

.faq { display: grid; grid-template-columns: 1fr 1.45fr; gap: 4rem; align-items: start; }
.faq h2 { margin: 1.3rem 0 1.6rem; max-width: 18rem; }
.faq-card { display: grid; grid-template-columns: 1fr; gap: .6rem; max-width: 20rem; padding: 1.3rem; border-radius: 1.1rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.faq-card img { width: 2.6rem; height: 2.6rem; border-radius: .7rem; transform: rotate(-6deg); }
.faq-card p { color: var(--mute); font-size: .86rem; margin: .5rem 0 .6rem; }
.qas { display: flex; flex-direction: column; gap: .8rem; }
.qa { border-radius: 1rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: opacity .5s ease, transform .5s ease, background-color .15s ease; }
.qa:hover { background: #181b19; }
.qa button { width: 100%; display: flex; align-items: center; gap: 1.4rem; padding: 1.25rem 1.5rem; text-align: left; }
.qa b { flex: 1; font-weight: 500; }
.qa svg { font-size: 1.2rem; transition: transform .25s ease, color .15s ease; }
.qa.open svg { transform: rotate(45deg); color: var(--acc); }
.ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.qa.open .ans { grid-template-rows: 1fr; }
.ans div { overflow: hidden; }
.ans p { padding: 0 1.5rem 1.3rem 4.2rem; color: var(--mute); font-size: .92rem; }

.closing { padding: 4rem 2.5rem 1.8rem; border-radius: 1.4rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: center; display: flex; flex-direction: column; align-items: center; }
.closing h2 { font-size: clamp(2rem, 3.8vw, 3rem); margin: 1.5rem 0 1.8rem; }
.closing > p { color: var(--mute); font-size: .9rem; max-width: 26rem; margin-top: 1.8rem; }
.closing-foot { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3.5rem; font-size: .84rem; color: var(--mute); }
.closing-foot .row { gap: 1.8rem; }
.closing-foot a, .closing-foot button { color: var(--text); font-weight: 500; transition: color .15s ease; }
.closing-foot a:hover, .closing-foot button:hover { color: var(--acc-hi); }
.wordmark { margin-top: 2rem; height: clamp(4.5rem, 12vw, 10.5rem); overflow: hidden; text-align: center; font-size: clamp(7rem, 21vw, 19rem); font-weight: 700; line-height: .8; letter-spacing: -.05em; text-transform: uppercase; color: rgba(255, 255, 255, .035); user-select: none; white-space: nowrap; }

.article { max-width: 46rem; padding-bottom: 2rem; }
.backlink { display: inline-flex; align-items: center; gap: .5rem; color: var(--mute); transition: color .15s ease; }
.backlink:hover { color: var(--acc-hi); }
.article h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 1.5rem 0 1.2rem; }
.byline { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; color: var(--mute); font-size: .88rem; padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.byline img { width: 1.9rem; height: 1.9rem; border-radius: .5rem; }
.byline b { color: var(--text); font-weight: 500; margin-left: -.3rem; }
.byline span { display: inline-flex; align-items: center; gap: .35rem; }
.prose { font-size: 1.05rem; line-height: 1.8; color: #c3cbc5; }
.prose p { margin-bottom: 1.3rem; }
.prose h2 { color: var(--text); font-size: 1.4rem; margin: 2.2rem 0 .9rem; }
.prose ul { list-style: none; margin-bottom: 1.3rem; padding: 1rem 1.2rem; border-radius: 1rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.prose li { position: relative; padding: .25rem 0 .25rem 1.4rem; }
.prose li::before { content: ''; position: absolute; left: .2rem; top: 1rem; width: .4rem; height: .4rem; border-radius: 50%; background: var(--acc); }
.next { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center; margin-top: 3rem; padding: 1.3rem 1.5rem; border-radius: 1rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: opacity .5s ease, transform .5s ease, background-color .15s ease; }
.next:hover { background: var(--raised); }
.next small { color: var(--acc); font-size: .78rem; }
.next b { font-weight: 500; font-size: 1.1rem; grid-column: 1; }
.next svg { grid-row: 1 / 3; grid-column: 2; font-size: 1.3rem; color: var(--mute); }
.lost { font: 500 clamp(6rem, 16vw, 11rem)/1 'Geist', sans-serif; letter-spacing: -.06em; color: var(--acc); }

.notes { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: .5rem; pointer-events: none; }
.note { padding: .65rem 1.2rem; border-radius: 2rem; background: var(--grad); color: #04170b; font-weight: 600; animation: fade .25s ease both; }

@keyframes lane-up { to { transform: translateY(-50%); } }
@keyframes lane-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--acc-rgb), .6); } 100% { box-shadow: 0 0 0 .5rem rgba(var(--acc-rgb), 0); } }

@media (max-width: 900px) {
    .split, .faq { grid-template-columns: 1fr; gap: 2.5rem; }
    .works, .learn-grid { grid-template-columns: 1fr; }
    .strip { gap: 2.5rem; }
    .strip img { height: 3rem; }
    .post { grid-template-columns: 1fr; gap: .6rem; }
    .post > .num { display: none; }
    .nav { grid-template-columns: auto 1fr auto; gap: .8rem; }
    .menu-btn { display: grid; }
    .nav-links { position: absolute; top: calc(100% + .5rem); left: 0; right: 0; flex-direction: column; padding: .5rem; border-radius: 1rem; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); display: none; }
    .nav-links.open { display: flex; }
    .counts { gap: 2rem; }
    .work-art.shot { height: 15rem; padding: 1.2rem 1.2rem 0; }
}

@media (max-width: 560px) {
    .wrap { padding: 0 1.1rem; }
    .header { padding: 0 .8rem; }
    .nav .btn span { display: none; }
    .nav .btn { padding: 0 .9rem; }
    .closing { padding: 2.5rem 1.3rem 1.5rem; }
    .skills { height: 26rem; }
    .cursor { display: none; }
    .skills .skill { cursor: auto; }
}
