:root {
    --t: #f2ece3;
    --m: #a59d90;
    --fm: 'IBM Plex Mono', ui-monospace, monospace;
    --fn: 'Caveat', 'Segoe Print', cursive
}

body {
    --c: var(--a1);
    --pk: var(--a2);
    --v: var(--a2);
    --g: linear-gradient(120deg, var(--a1), var(--a2));
    --ei: italic;
    --fw: 700
}

body.home {
    --bg: #0b0907;
    --s: #14110d;
    --s2: #1c1712;
    --a1: #ff9f1c;
    --a2: #f26a3d;
    --a1r: 255, 159, 28;
    --a2r: 242, 106, 61;
    --fd: 'Fraunces', Georgia, serif;
    --fb: 'Manrope', system-ui, sans-serif
}

body.about {
    --bg: #090e0a;
    --s: #111812;
    --s2: #18221a;
    --a1: #8fbf7f;
    --a2: #e0b36a;
    --a1r: 143, 191, 127;
    --a2r: 224, 179, 106;
    --fd: 'Instrument Serif', Georgia, serif;
    --fb: 'DM Sans', system-ui, sans-serif;
    --fw: 400
}

body.skills {
    --bg: #100807;
    --s: #1a0f0d;
    --s2: #241512;
    --a1: #e8613f;
    --a2: #f2c394;
    --a1r: 232, 97, 63;
    --a2r: 242, 195, 148;
    --fd: 'Space Grotesk', system-ui, sans-serif;
    --fb: 'Manrope', system-ui, sans-serif;
    --ei: normal
}

body.projects {
    --bg: #0c0c0d;
    --s: #151516;
    --s2: #1e1e1f;
    --a1: #ece6da;
    --a2: #b8955a;
    --a1r: 236, 230, 218;
    --a2r: 184, 149, 90;
    --fd: 'Bricolage Grotesque', system-ui, sans-serif;
    --fb: 'DM Sans', system-ui, sans-serif;
    --ei: normal;
    --fw: 800
}

body.ach {
    --bg: #0e0b07;
    --s: #17120b;
    --s2: #211a10;
    --a1: #e3c46e;
    --a2: #c47c3c;
    --a1r: 227, 196, 110;
    --a2r: 196, 124, 60;
    --fd: 'Playfair Display', Georgia, serif;
    --fb: 'Manrope', system-ui, sans-serif
}

body.contact {
    --bg: #110a0c;
    --s: #1b1114;
    --s2: #26191d;
    --a1: #ee95a0;
    --a2: #f4d2ae;
    --a1r: 238, 149, 160;
    --a2r: 244, 210, 174;
    --fd: 'Fraunces', Georgia, serif;
    --fb: 'DM Sans', system-ui, sans-serif;
    --fw: 600
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%
}

body {
    background: radial-gradient(1100px 560px at 85% -8%, rgba(var(--a1r), .1), transparent 65%), var(--bg);
    color: var(--t);
    font: 400 1rem/1.7 var(--fb);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: .06;
    pointer-events: none;
    background: 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='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")
}

::selection {
    background: var(--a1);
    color: #14100b
}

::-webkit-scrollbar {
    width: 8px
}

::-webkit-scrollbar-thumb {
    background: rgba(var(--a1r), .4);
    border-radius: 9px
}

:focus-visible {
    outline: 2px solid var(--a1);
    outline-offset: 3px;
    border-radius: 4px
}

#bg {
    position: fixed;
    inset: 0;
    z-index: -2
}

#bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--g);
    z-index: 200
}

/* cursor */
.cc,
.cc a,
.cc button,
.cc [data-cursor] {
    cursor: none
}

.cc input,
.cc textarea {
    cursor: text
}

#trail {
    position: fixed;
    inset: 0;
    z-index: 599;
    pointer-events: none
}

.cur,
.cl,
.dot {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 600;
    translate: -50% -50%
}

.cur {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(var(--a1r), .55);
    animation: rot 3.6s linear infinite;
    transition: width .35s cubic-bezier(.2, .8, .2, 1), height .35s cubic-bezier(.2, .8, .2, 1), background .3s, border-color .3s
}

.cur::after {
    content: "";
    position: absolute;
    top: -4px;
    left: calc(50% - 4px);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--a2)
}

.cur.h {
    width: 80px;
    height: 80px;
    background: rgba(var(--a1r), .09);
    border-color: var(--a1)
}

.cur.dn {
    width: 30px;
    height: 30px
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--a1);
    transition: opacity .2s
}

.dot.h {
    opacity: 0
}

.cl {
    font: 500 .62rem var(--fm);
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--t);
    opacity: 0;
    transition: opacity .25s
}

.cl.on {
    opacity: 1
}

.tx {
    opacity: 0 !important
}

.rip {
    position: fixed;
    z-index: 598;
    pointer-events: none;
    width: 10px;
    height: 10px;
    border: 1px solid var(--a1);
    border-radius: 50%;
    translate: -50% -50%;
    animation: rp .7s ease-out forwards
}

@keyframes rp {
    to {
        width: 120px;
        height: 120px;
        opacity: 0
    }
}

@keyframes rot {
    to {
        rotate: 360deg
    }
}

/* nav */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .9rem clamp(1.1rem, 5vw, 3rem)
}

nav::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(8, 8, 8, .62);
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.logo {
    font: var(--fw) 1.5rem var(--fd);
    color: var(--t);
    text-decoration: none;
    position: relative;
    z-index: 2
}

.logo span {
    color: var(--a1)
}

nav ul {
    display: flex;
    gap: clamp(1rem, 2.4vw, 2.2rem);
    list-style: none
}

nav a:not(.logo) {
    font: 500 .74rem var(--fm);
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--m);
    text-decoration: none;
    position: relative;
    padding: .4rem 0;
    transition: color .3s
}

nav a:not(.logo)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 0;
    background: var(--a1);
    transition: width .35s
}

nav a:not(.logo):hover,
nav a.on {
    color: var(--t)
}

nav a:not(.logo):hover::after,
nav a.on::after {
    width: 100%
}

#burger {
    display: none;
    background: none;
    border: 0;
    color: var(--t);
    font-size: 1.7rem;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 2
}

@media(max-width:900px) {
    #burger {
        display: block
    }

    nav ul {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(78%, 340px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        background: var(--s);
        border-left: 1px solid rgba(255, 255, 255, .08);
        transform: translateX(100%);
        transition: transform .5s cubic-bezier(.77, 0, .18, 1)
    }

    nav ul.open {
        transform: none
    }

    nav a:not(.logo) {
        font-size: 1rem
    }
}

#wipe {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: var(--a1);
    pointer-events: none;
    clip-path: circle(150% at 50% 50%)
}

/* layout */
main {
    padding: clamp(6rem, 12vw, 8rem) clamp(1.1rem, 5vw, 3rem) 4rem;
    max-width: 1250px;
    margin: auto;
    min-height: 100vh
}

.tag {
    font: 500 .75rem var(--fm);
    color: var(--a1);
    letter-spacing: .2em;
    text-transform: uppercase
}

.tag::before {
    content: "";
    display: inline-block;
    width: 2rem;
    height: 1px;
    background: var(--a1);
    vertical-align: middle;
    margin-right: .8rem
}

.ttl {
    font: var(--fw) clamp(2.4rem, 7vw, 5.2rem)/1.05 var(--fd);
    letter-spacing: -.02em;
    margin: .7rem 0 1rem
}

.ttl em,
.sub em,
.band em {
    font-style: var(--ei);
    background: var(--g);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: .08em
}

.lead {
    color: var(--m);
    max-width: 640px;
    font-size: clamp(1rem, 2vw, 1.12rem)
}

.note {
    font: 600 1.5rem/1 var(--fn);
    color: var(--a2);
    display: block;
    width: max-content;
    rotate: -3deg
}

.cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .85rem 1.7rem;
    font: 500 .78rem var(--fm);
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    color: #14100b;
    background: var(--a1);
    border: 1px solid var(--a1);
    border-radius: 999px;
    transition: .35s
}

.btn:hover {
    background: transparent;
    color: var(--a1)
}

.btn.alt {
    background: transparent;
    color: var(--t);
    border-color: rgba(255, 255, 255, .25)
}

.btn.alt:hover {
    border-color: var(--a1);
    color: var(--a1)
}

.tabs {
    display: flex;
    gap: .7rem;
    flex-wrap: wrap;
    margin: 1.8rem 0
}

.tab {
    flex: none;
    min-height: 42px;
    padding: .5rem 1.3rem;
    background: none;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 99px;
    color: var(--m);
    font: 500 .74rem var(--fm);
    text-transform: uppercase;
    letter-spacing: .1em;
    transition: .3s
}

.tab:hover,
.tab.on {
    background: var(--a1);
    color: #14100b;
    border-color: var(--a1)
}

@media(max-width:600px) {
    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin-inline: -1.1rem;
        padding-inline: 1.1rem
    }
}

.tilt {
    transition: transform .25s ease-out
}

.card {
    position: relative;
    background: linear-gradient(160deg, var(--s), var(--s2));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    padding: 1.8rem;
    box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .7);
    transition: border-color .4s, transform .25s
}

.card:hover {
    border-color: rgba(var(--a1r), .4)
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--a1r), .1), transparent 60%);
    opacity: 0;
    transition: .4s;
    pointer-events: none
}

.card:hover::before {
    opacity: 1
}

.reveal {
    opacity: 0
}

.reveal.show {
    opacity: 1;
    animation: up .9s cubic-bezier(.2, .8, .2, 1) var(--dl, 0s) backwards
}

@keyframes up {
    from {
        opacity: 0;
        transform: translateY(36px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.sub {
    font: var(--fw) clamp(1.7rem, 4vw, 2.2rem)/1.15 var(--fd);
    margin: 4rem 0 1.5rem
}

.sub small {
    font: .74rem var(--fm);
    color: var(--m)
}

footer {
    text-align: center;
    padding: 2rem 1rem calc(2rem + env(safe-area-inset-bottom));
    color: var(--m);
    font: .72rem/1.6 var(--fm);
    border-top: 1px solid rgba(255, 255, 255, .06)
}

/* orbit system */
.sys {
    position: relative;
    width: min(580px, 100%);
    aspect-ratio: 1;
    margin-inline: auto
}

.rg {
    position: absolute;
    inset: calc((100% - var(--r))/2);
    border: 1px dashed rgba(255, 255, 255, .12);
    border-radius: 50%;
    pointer-events: none
}

.sun {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 15%;
    aspect-ratio: 1;
    translate: -50% -50%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font: var(--fw) clamp(.9rem, 2.4vw, 1.4rem) var(--fd);
    color: #1a0f05;
    background: radial-gradient(circle at 35% 30%, #fff1c9, var(--a1) 45%, var(--a2));
    box-shadow: 0 0 60px 10px rgba(var(--a1r), .35), 0 0 150px 30px rgba(var(--a2r), .14);
    animation: pulse 4s ease-in-out infinite
}

@keyframes pulse {
    50% {
        box-shadow: 0 0 80px 16px rgba(var(--a1r), .45), 0 0 180px 40px rgba(var(--a2r), .2)
    }
}

.pl {
    position: absolute;
    width: var(--s);
    height: var(--s);
    translate: -50% -50%;
    border: 0;
    border-radius: 50%;
    color: #1a120a;
    display: grid;
    place-items: center;
    text-decoration: none;
    background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .55), transparent 30%), radial-gradient(circle at 35% 35%, var(--pc), color-mix(in srgb, var(--pc) 40%, #000) 88%);
    box-shadow: inset -7px -6px 14px rgba(0, 0, 0, .5), 0 8px 18px rgba(0, 0, 0, .4);
    transition: scale .35s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, opacity .3s
}

.pl em {
    font: 600 calc(var(--s)*.3)/1 var(--fm);
    font-style: normal
}

.pl span {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    translate: -50% 0;
    white-space: nowrap;
    font: 500 .66rem var(--fm);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--m);
    transition: .3s;
    pointer-events: none
}

.pl:hover,
.pl:focus-visible,
.pl.on {
    scale: 1.28;
    box-shadow: inset -7px -6px 14px rgba(0, 0, 0, .5), 0 0 0 6px rgba(var(--a1r), .2)
}

.pl:hover span,
.pl.on span {
    color: var(--t)
}

.pl.dim {
    opacity: .22
}

@media(max-width:560px) {
    .sys.sm .pl:not(:hover):not(.on) span {
        display: none
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important
    }
}

/* ---- v3: SEO-friendly static markup, accessibility, new interactions ---- */
ul,
ol {
    list-style: none
}

img {
    max-width: 100%;
    height: auto
}

header {
    display: contents
}

.skip {
    position: fixed;
    left: 1rem;
    top: -4rem;
    z-index: 700;
    background: var(--a1);
    color: #14100b;
    padding: .7rem 1.1rem;
    border-radius: 10px;
    font: 500 .8rem var(--fm);
    text-decoration: none;
    transition: top .3s
}

.skip:focus {
    top: 1rem
}

html:not(.js) .reveal {
    opacity: 1
}

section[aria-labelledby],
header {
    scroll-margin-top: 6rem
}

.kb {
    margin-left: 1.2rem;
    padding: .35rem .7rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    color: var(--m);
    font: 500 .68rem var(--fm);
    letter-spacing: .08em;
    transition: .3s
}

.kb:hover {
    color: var(--a1);
    border-color: var(--a1)
}

@media(max-width:900px) {
    .kb {
        display: none
    }
}

.fl {
    margin-top: .4rem
}

.fl a {
    color: var(--m);
    text-decoration: none;
    transition: .3s
}

.fl a:hover {
    color: var(--a1)
}

#top {
    position: fixed;
    right: 1.2rem;
    bottom: calc(1.2rem + env(safe-area-inset-bottom));
    z-index: 90;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(15, 15, 15, .7);
    backdrop-filter: blur(8px);
    color: var(--t);
    font-size: 1.2rem;
    opacity: 0;
    translate: 0 20px;
    pointer-events: none;
    transition: .4s
}

#top.on {
    opacity: 1;
    translate: 0 0;
    pointer-events: auto
}

#top:hover {
    background: var(--a1);
    color: #14100b
}

button.sun {
    border: 0;
    cursor: inherit;
    transition: scale .3s
}

button.sun:hover {
    scale: 1.07
}

#cmd {
    position: fixed;
    inset: 0;
    z-index: 650;
    display: grid;
    place-items: start center;
    padding: 14vh 1rem 1rem;
    background: rgba(5, 5, 5, .7);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: .3s
}

#cmd.on {
    opacity: 1;
    visibility: visible
}

.cbox {
    width: min(560px, 100%);
    background: var(--s);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    box-shadow: 0 40px 100px -20px #000;
    overflow: hidden
}

.cbox input {
    width: 100%;
    padding: 1.1rem 1.3rem;
    background: none;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: var(--t);
    font: 500 1rem var(--fb);
    outline: 0
}

.cbox ul {
    max-height: 50vh;
    overflow: auto;
    padding: .5rem
}

.cbox li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 1rem;
    border-radius: 10px;
    color: var(--t);
    text-decoration: none
}

.cbox li a small {
    font: .68rem var(--fm);
    color: var(--m)
}

.cbox li a.s,
.cbox li a:hover {
    background: rgba(var(--a1r), .12);
    color: var(--a1)
}

/* ---- v4: warmer, more professional details ---- */
h1,
h2,
h3 {
    text-wrap: balance
}

p {
    text-wrap: pretty
}

.avail {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    padding: .4rem 1rem;
    border: 1px solid rgba(93, 255, 168, .35);
    border-radius: 99px;
    background: rgba(93, 255, 168, .07);
    color: #8ff0bd;
    font: 500 .72rem var(--fm);
    letter-spacing: .06em;
    margin-bottom: 1.2rem
}

.dotp {
    display: inline-block;
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5dffa8;
    animation: dp 1.8s infinite
}

@keyframes dp {
    0% {
        box-shadow: 0 0 0 0 rgba(93, 255, 168, .6)
    }

    100% {
        box-shadow: 0 0 0 10px transparent
    }
}

nav a.navcta {
    margin-left: .7rem;
    padding: .5rem 1.1rem;
    border: 1px solid var(--a1);
    border-radius: 99px;
    color: var(--a1);
    letter-spacing: .1em
}

nav a.navcta::after {
    display: none
}

nav a.navcta:hover {
    background: var(--a1);
    color: #14100b
}

@media(max-width:900px) {
    nav a.navcta {
        display: none
    }
}

.band {
    margin: 5rem 0 1rem;
    padding: clamp(2rem, 6vw, 4rem);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 28px;
    background: radial-gradient(600px 300px at 80% 0, rgba(var(--a1r), .16), transparent 70%), linear-gradient(160deg, var(--s), var(--s2));
    text-align: center
}

.band h2 {
    font: var(--fw) clamp(1.8rem, 5vw, 3.2rem)/1.1 var(--fd);
    margin-bottom: 1.6rem
}

footer {
    text-align: left;
    max-width: 1250px;
    margin: 3rem auto 0;
    padding: 3rem clamp(1.1rem, 5vw, 3rem) calc(1.6rem + env(safe-area-inset-bottom))
}

.fw {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem
}

.fb {
    font: 400 .92rem/1.6 var(--fb);
    color: var(--m);
    max-width: 34ch
}

.fb strong {
    color: var(--t);
    font: var(--fw) 1.35rem var(--fd)
}

.fw .note {
    margin-top: 1rem
}

.fh {
    font: 500 .68rem var(--fm);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--a1);
    margin-bottom: .8rem
}

.fw ul {
    display: grid;
    gap: .45rem;
    font: 400 .9rem var(--fb)
}

.fw a {
    color: var(--m);
    text-decoration: none;
    transition: .3s
}

.fw a:hover {
    color: var(--a1)
}

.cp {
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
    color: var(--m)
}

@media(max-width:700px) {
    .fw {
        grid-template-columns: 1fr 1fr
    }

    .fw>div:first-child {
        grid-column: 1/-1
    }
}