:root {
    --bg: #07080a;
    --tx: #fff;
    --sv: #9aa0a8;
    --fr: rgba(255, 255, 255, .07);
    --bd: rgba(255, 255, 255, .15);
    color-scheme: dark;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px)
}

*,
*::before,
*::after {
    box-sizing: inherit
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: env(safe-area-inset-top, 0px)
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--tx);
    font: 300 1rem/1.7 Inter, system-ui, sans-serif;
    overflow-x: hidden
}

h1,
h2,
h3,
h4,
.hd {
    font-family: 'Space Grotesk', Inter, sans-serif;
    margin: 0
}

.g {
    background: linear-gradient(180deg, #fff 20%, #8a9099);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

#bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none
}

section {
    position: relative;
    z-index: 1;
    padding: 120px 6vw 40px
}

.sh {
    text-align: center;
    font-size: 2rem;
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 56px
}

.sh::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 90px;
    height: 2px;
    transform: translateX(-50%) scaleX(var(--u, 1));
    background: linear-gradient(90deg, transparent, #fff, transparent)
}

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
    max-width: 1200px;
    margin: auto
}

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

.rv {
    opacity: 0
}

/* header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 4vw 16px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s
}

header.on {
    opacity: 1
}

header>* {
    pointer-events: auto
}

#logo {
    font: 700 1.25rem 'Space Grotesk', sans-serif;
    letter-spacing: .08em;
    cursor: default;
    min-width: 9.5em;
    display: inline-block
}

nav {
    display: flex;
    gap: clamp(12px, 2.2vw, 30px);
    padding: 11px clamp(18px, 2vw, 30px);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: background .45s, backdrop-filter .45s, -webkit-backdrop-filter .45s, box-shadow .45s
}

header.pill nav {
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28)
}

nav a {
    color: #d6d9de;
    text-decoration: none;
    font-size: .92rem;
    position: relative;
    padding: 6px 2px;
    transition: color .3s
}

nav a:hover {
    color: #fff
}

nav {
    position: relative
}

#nd {
    position: absolute;
    bottom: 4px;
    height: 5px;
    border-radius: 5px;
    background: #fff;
    pointer-events: none;
    opacity: 0
}

#ov {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 6, 8, .35);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s, backdrop-filter .5s
}

#ov.on {
    opacity: 1;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px)
}

#ov h2 {
    font-size: clamp(3rem, 11vw, 9rem);
    transition: opacity .25s
}

@media(max-width:760px) {
    nav {
        font-size: .8rem;
        gap: 9px
    }

    #logo {
        font-size: .95rem;
        min-width: 8em
    }

    nav a {
        font-size: .72rem
    }
}

/* buttons & cards */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid transparent;
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
    color: #fff;
    font: 500 .95rem Inter, sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: background .3s, color .3s, transform .25s ease-out, box-shadow .3s;
    will-change: transform
}

.btn:hover {
    background: #dfe2e6;
    color: #0a0b0d
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: var(--fr);
    border: 1px solid var(--bd);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform .25s ease-out, box-shadow .3s;
    transform-style: preserve-3d;
    will-change: transform
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .5s ease;
    background: radial-gradient(ellipse 120px 85px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .075), rgba(255, 255, 255, .06) 15%, rgba(255, 255, 255, .04) 32%, rgba(255, 255, 255, .02) 52%, rgba(255, 255, 255, .007) 75%, transparent 100%), radial-gradient(ellipse 42% 55% at var(--mx2, 50%) var(--my2, 50%), rgba(255, 255, 255, .05), rgba(255, 255, 255, .035) 30%, rgba(255, 255, 255, .015) 60%, transparent 100%);
    z-index: 2
}

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

.card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5)
}

main {
    overflow: clip
}

footer.nt {
    transition: opacity .9s ease
}

/* hero */
#home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding-bottom: 9vh
}

#home>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s, transform 1.2s
}

#home.on>* {
    opacity: 1;
    transform: none
}

#home .t {
    font: 400 clamp(.85rem, 1.5vw, 1.05rem) 'Space Grotesk';
    letter-spacing: .3em;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .9);
    text-transform: uppercase
}

#home h1 {
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .85));
    font-size: clamp(2.5rem, 7.6vw, 6.6rem);
    line-height: 1;
    letter-spacing: .02em;
    margin: 6px 0 18px
}

#home p {
    max-width: min(1100px, 94vw);
    text-shadow: 0 2px 20px rgba(0, 0, 0, .9);
    font-size: clamp(.9rem, 1.15vw, 1.02rem);
    color: #fff;
    margin: 0
}

#role {
    font-weight: 500;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, .35)
}

@media(min-width:900px) {
    #home p {
        white-space: nowrap
    }
}

@media(max-width:899px) {
    #home p {
        min-height: 4.8em
    }
}

/* about */
#gal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 2px;
    aspect-ratio: 1;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    z-index: 1
}

#galc {
    padding: 14px
}

#galc::before {
    z-index: 0
}

#gal div {
    overflow: hidden;
    background: #111;
    transition: opacity .6s, transform .6s
}

#gal div.o {
    opacity: 0;
    transform: scale(.9)
}

#gal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

#abt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    padding: 6px 0
}

#abt p {
    margin: 0;
    font-size: 1.05rem;
    color: #fff
}

.soc {
    display: flex;
    gap: 14px
}

.soc a {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
    transition: transform .3s, background .3s
}

.soc a i {
    display: block;
    width: 24px;
    height: 24px;
    background: #fff;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center
}

.soc a:hover {
    background: rgba(255, 255, 255, .14);
    transform: translateY(-3px)
}

.soc a:hover i {
    background: linear-gradient(110deg, #fff, #6c727b, #fff, #6c727b);
    background-size: 300% 100%;
    animation: gs 1.6s linear infinite
}

.ab2 {
    display: flex;
    flex-direction: column;
    gap: 22px
}

.ico {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round
}

@keyframes gs {
    to {
        background-position: -300% 0
    }
}

.sech {
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1.05;
    margin: 0 0 18px
}

.sp {
    display: inline-block;
    background: linear-gradient(180deg, #fff 20%, #8a9099);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    will-change: transform, opacity, filter
}

.sx {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box
}

/* skills */
#skd {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 380px
}

#skd p {
    font-size: 1.05rem;
    color: #fff;
    margin: 0
}

#skb {
    will-change: opacity, transform, filter
}

.sf {
    margin-bottom: 14px;
    animation: sfi .55s both
}

.sf:nth-child(2) {
    animation-delay: .07s
}

.sf:nth-child(3) {
    animation-delay: .14s
}

.sf:nth-child(4) {
    animation-delay: .21s
}

@keyframes sfi {
    from {
        opacity: 0;
        transform: translateX(-14px)
    }
}

.sf h3 {
    font-size: 1.5rem;
    color: var(--sv)
}

.sf h4 {
    font-size: 1.15rem;
    font-weight: 500
}

#skc {
    padding: 18px
}

#skc svg {
    width: 100%;
    height: auto;
    display: block
}

svg text {
    font-family: Inter, sans-serif
}

svg .sk {
    cursor: pointer;
    transition: opacity .35s
}

svg .ax {
    transition: opacity .35s
}

svg.dim .sk,
svg.dim .ax {
    opacity: .15
}

svg.dim .sk.hot {
    opacity: 1
}

svg .guide {
    pointer-events: none
}

svg .sk circle {
    transition: fill .3s
}

svg .sk.hot circle.ic {
    stroke: url(#gr);
    stroke-width: 2.4;
    fill: rgba(255, 255, 255, .18)
}

svg .sk.hot .ig {
    fill: url(#gr)
}

svg .sk.hot .ig [stroke] {
    stroke: url(#gr)
}

svg .sk.hot image.ig {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, .95))
}

/* projects */
.pbar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    max-width: 1300px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 5;
    flex-wrap: wrap
}

.sbox {
    position: relative
}

.sbox form {
    display: flex;
    gap: 8px;
    align-items: center
}

.fw {
    position: relative;
    display: inline-block;
    height: 42px;
    width: 270px;
    max-width: 100%;
    transition: width .45s cubic-bezier(.2, .7, .2, 1)
}

.fw:focus-within {
    width: min(360px, 72vw)
}

.in1 {
    display: block;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--bd);
    color: #fff;
    border-radius: 999px;
    padding: 0 22px;
    font: inherit;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    outline: none;
    transition: background .3s
}

.in1::placeholder {
    color: rgba(255, 255, 255, .55);
    transition: opacity .3s
}

.in1:focus::placeholder {
    opacity: .3
}

.fw:hover .in1,
.in1:focus {
    background: rgba(255, 255, 255, .1)
}

.fb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible
}

.fb rect {
    fill: none;
    stroke: rgba(255, 255, 255, .8);
    stroke-width: 1.3;
    stroke-dasharray: 100 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset .8s cubic-bezier(.4, 0, .2, 1)
}

.fw:hover .fb rect,
.fw:focus-within .fb rect {
    stroke-dashoffset: 0
}

.dd {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    min-width: 240px;
    background: rgba(20, 21, 24, .92);
    border: 1px solid var(--bd);
    border-radius: 14px;
    backdrop-filter: blur(16px);
    overflow: hidden;
    display: none;
    z-index: 9
}

.dd.on {
    display: block
}

.dd div {
    padding: 10px 16px;
    cursor: pointer;
    font-size: .92rem
}

.dd div:hover {
    background: rgba(255, 255, 255, .12)
}

#cat {
    position: relative
}

#cat .dd {
    left: auto;
    right: 0
}

#mq {
    touch-action: pan-y;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    padding: 30px 0;
    perspective: 1200px
}

#trk {
    display: flex;
    width: max-content;
    cursor: grab;
    will-change: transform
}

#trk.dg,
#trk.dg .pj {
    cursor: grabbing;
    user-select: none
}

@keyframes mq {
    to {
        transform: translateX(-50%)
    }
}

.pj {
    flex: 0 0 auto;
    width: 340px;
    height: 420px;
    margin-right: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    text-decoration: none;
    color: #fff
}

.pj .th {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .92;
    filter: brightness(1.12);
    -webkit-mask-image: linear-gradient(#000 22%, rgba(0, 0, 0, .6) 48%, transparent 80%);
    mask-image: linear-gradient(#000 22%, rgba(0, 0, 0, .6) 48%, transparent 80%)
}

.pj>*:not(.th) {
    position: relative;
    z-index: 1
}

.pj h4 {
    font-size: 1.15rem;
    font-weight: 700
}

.pj .m {
    font-size: .82rem;
    font-style: italic;
    font-weight: 300;
    color: #cfd3d8;
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    align-items: center;
    margin: 6px 0
}

.pj p {
    margin: 0;
    font-weight: 300;
    font-size: .9rem;
    color: #dfe2e6
}

#trk.st {
    width: 100%;
    justify-content: center;
    cursor: default
}

#trk.st .pj:last-child {
    margin-right: 0
}

#sf .btn,
#catb {
    height: 42px;
    padding-top: 0;
    padding-bottom: 0;
    border-radius: 999px
}

#cvb,
.bt .btn {
    border-radius: 999px
}

/* playground */
#pgw {
    max-width: 1200px;
    margin: auto;
    padding: 26px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px
}

@media(max-width:900px) {
    #pgw {
        grid-template-columns: 1fr
    }
}

.ctl label {
    display: flex;
    justify-content: space-between;
    font-size: .88rem;
    color: #d6d9de;
    margin-top: 14px
}

.ctl input[type=range] {
    width: 100%;
    accent-color: #e3e6ea
}

#pc {
    width: 100%;
    border-radius: 16px;
    background: rgba(0, 0, 0, .35);
    border: 1px solid var(--bd);
    display: block
}

.rd {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 14px
}

.rd div {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--bd);
    font-size: .78rem;
    color: var(--sv)
}

.rd b {
    display: block;
    font: 500 1.05rem 'Space Grotesk';
    color: #fff
}

.fm {
    font: 400 .85rem/1.9 ui-monospace, Menlo, monospace;
    color: #d6d9de;
    margin-top: 16px
}

#playground {
    padding-bottom: 110px
}

#pgw {
    padding-bottom: 60px;
    align-items: start
}

.rd {
    grid-template-columns: repeat(3, 1fr);
    min-height: 150px
}

.rd div {
    min-height: 68px
}

.rd b {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.fm {
    min-height: 210px
}

/* contact */
#cl {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px
}

#cl h2 {
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1.05
}

#cl p {
    margin: 0;
    font-size: 1.1rem;
    color: #fff
}

.bt {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

#cc {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px
}

.cr {
    display: flex;
    gap: 18px;
    align-items: center
}

.cr i {
    font-style: normal;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .1);
    border: 1px solid var(--bd);
    font-size: 1.2rem
}

.cr small {
    color: var(--sv);
    display: block;
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase
}

footer {
    position: relative;
    z-index: 1;
    margin: 80px 6vw 0;
    padding: 24px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .85rem;
    color: var(--sv)
}

footer span a {
    color: var(--sv);
    text-decoration: none;
    margin-left: 18px;
    transition: color .3s
}

footer a:hover {
    color: #fff
}

/* admin */
#adm {
    display: none;
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 5vw 160px
}

body.ad #adm {
    display: block
}

body.ad main,
body.ad header {
    display: none
}

.adh {
    text-align: center;
    font-size: clamp(2.8rem, 8vw, 6.2rem);
    line-height: 1.05;
    margin: 26px 0 12px
}

.ads {
    text-align: center;
    color: var(--sv);
    margin: 0 auto 54px;
    max-width: 560px
}

.as {
    margin-bottom: 50px
}

.as>h2 {
    font-size: 1.7rem;
    margin: 0 0 6px
}

.as>p {
    color: var(--sv);
    margin: 0 0 20px;
    font-size: .92rem
}

.ac {
    padding: 22px;
    margin-bottom: 16px;
    border-radius: 22px;
    background: var(--fr);
    border: 1px solid var(--bd);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px)
}

.ah {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px
}

.ah b {
    flex: 1;
    font: 500 1.1rem 'Space Grotesk', sans-serif;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.pv {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--bd);
    overflow: hidden;
    flex: none;
    background-size: cover;
    background-position: center
}

.pv img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain
}

.pv svg {
    width: 28px;
    height: 28px
}

.ag {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px
}

.ag.w {
    grid-template-columns: 1fr;
    margin-top: 12px
}

#adm label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sv)
}

#adm label output {
    float: right;
    color: #fff
}

#adm input:not([type=range]),
#adm textarea {
    width: 100%;
    background: rgba(0, 0, 0, .32);
    border: 1px solid var(--bd);
    border-radius: 12px;
    color: #fff;
    padding: 10px 12px;
    font: inherit;
    font-size: .92rem;
    letter-spacing: 0;
    text-transform: none;
    outline: none;
    transition: border-color .25s
}

#adm input:focus,
#adm textarea:focus {
    border-color: rgba(255, 255, 255, .5)
}

#adm input[type=range] {
    width: 100%;
    accent-color: #e3e6ea
}

.ai {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .1)
}

.ai h4 {
    margin: 0 0 12px;
    font-size: .8rem;
    color: #d6d9de;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 500
}

.ab {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap
}

.hint {
    font-size: .78rem;
    color: var(--sv);
    margin: 12px 0 0
}

.bar {
    position: fixed;
    left: 50%;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
    max-width: 94vw
}

#adst {
    font-size: .85rem;
    color: #d6d9de;
    min-width: 110px;
    text-align: center
}

.sm {
    padding: 8px 16px;
    font-size: .85rem
}

.lg {
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px
}
/* ===== mobile menu (hidden on desktop) ===== */
#mb {
    display: none
}

@media(max-width:760px) {
    #logo {
        white-space: nowrap;
        transition: --la 1s ease .3s
    }

    header.mo #logo {
        --la: 0;
        pointer-events: none;
        transition: --la 1s ease
    }

    header.mo #logo::before {
        opacity: 0;
        transition: opacity 1s ease
    }

    nav {
        position: absolute;
        top: calc(8px + env(safe-area-inset-top, 0px));
        right: 4vw;
        width: 46px;
        height: 46px;
        padding: 0;
        gap: 0;
        border-radius: 23px;
        overflow: hidden;
        align-items: center;
        justify-content: space-between;
        background: rgba(255, 255, 255, .06);
        backdrop-filter: blur(14px) saturate(130%);
        -webkit-backdrop-filter: blur(14px) saturate(130%);
        box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
        transition: width .55s cubic-bezier(.2, .8, .2, 1), background .3s
    }

    header.mo nav {
        transition: width .55s cubic-bezier(.2, .8, .2, 1) .75s, background .3s .75s;
        width: 92vw;
        background: rgba(255, 255, 255, .08)
    }

    nav a {
        opacity: 0;
        pointer-events: none;
        white-space: nowrap;
        padding: 6px 0;
        font-size: clamp(.54rem, 2.6vw, .72rem);
        transition: opacity .2s, color .3s
    }

    nav a:first-of-type {
        margin-left: 18px
    }

    nav a:last-of-type {
        margin-right: 58px
    }

    header.mo nav a {
        opacity: 1;
        pointer-events: auto;
        transition: opacity .35s 1s, color .3s
    }

    #nd {
        bottom: 7px
    }

    header:not(.mr) #nd {
        opacity: 0 !important
    }

    #mb {
        display: block;
        position: absolute;
        right: 0;
        top: 0;
        width: 46px;
        height: 46px;
        border: 0;
        padding: 0;
        background: transparent;
        cursor: pointer;
        z-index: 2;
        -webkit-tap-highlight-color: transparent
    }

    #mb span {
        position: absolute;
        left: 14px;
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: #fff;
        transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .25s, top .4s
    }

    #mb span:nth-child(1) {
        top: 16px
    }

    #mb span:nth-child(2) {
        top: 22px
    }

    #mb span:nth-child(3) {
        top: 28px
    }

    header.mo #mb span:nth-child(1) {
        top: 22px;
        transform: rotate(45deg)
    }

    header.mo #mb span:nth-child(2) {
        opacity: 0
    }

    header.mo #mb span:nth-child(3) {
        top: 22px;
        transform: rotate(-45deg)
    }
}

/* ===== mobile: About Me text block centered ===== */
@media(max-width:760px) {
    #abt {
        align-items: center;
        text-align: center
    }

    #abt>div:first-child {
        width: 100%
    }

    #abt .sech,
    #abt p {
        text-align: center
    }

    #abt .soc {
        justify-content: center
    }
}

/* ===== mobile: frosted pill behind the logo ===== */
@media(max-width:760px) {
    header {
        padding: calc(8px + env(safe-area-inset-top, 0px)) 4vw 8px
    }

    #logo {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        --la: 1;
        width: 200px;
        min-width: 0;
        height: 46px;
        padding: 0;
        background-image: linear-gradient(180deg, rgba(255, 255, 255, var(--la, 1)) 35%, rgba(154, 160, 168, var(--la, 1)) 75%)
    }

    #logo::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        border-radius: 999px;
        background: rgba(255, 255, 255, .06);
        backdrop-filter: blur(14px) saturate(130%);
        -webkit-backdrop-filter: blur(14px) saturate(130%);
        box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
        transition: opacity 1s ease .3s
    }
}

#logo {
    cursor: pointer
}

@property --la {
    syntax: '<number>';
    inherits: false;
    initial-value: 1
}

/* hide the page scrollbar on all devices (page still scrolls) */
html {
    scrollbar-width: none;
    -ms-overflow-style: none
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0
}

.phm {
    display: none
}

@keyframes phm {
    to {
        transform: translateX(-100%)
    }
}

/* ===== mobile: skills centered, projects bar, smaller cards ===== */
@media(max-width:760px) {
    #skd {
        align-items: center;
        text-align: center
    }

    #skb {
        width: 100%
    }

    #skd .sech,
    #skd p,
    #skd .sf h3,
    #skd .sf h4 {
        text-align: center
    }

    .pbar {
        flex-direction: column;
        align-items: center;
        justify-content: center
    }

    .sbox {
        width: min(100%, 340px)
    }

    .sbox form {
        width: 100%
    }

    .fw,
    .fw:focus-within {
        flex: 1 1 0;
        width: auto;
        min-width: 0
    }

    .in1::placeholder {
        color: transparent
    }

    .phm {
        position: absolute;
        left: 22px;
        right: 22px;
        top: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        overflow: hidden;
        pointer-events: none;
        white-space: nowrap;
        color: rgba(255, 255, 255, .55);
        font-weight: 300;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent)
    }

    .phm b {
        flex: none;
        font-weight: 300;
        padding-right: 36px;
        animation: phm 9s linear infinite
    }

    .fw.hv .phm {
        display: none
    }

    .fw:focus-within .phm {
        opacity: .35
    }

    #cat .dd {
        left: 50%;
        right: auto;
        transform: translateX(-50%)
    }

    #mq {
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent)
    }

    .pj {
        width: 290px;
        height: 358px;
        margin-right: 18px;
        padding: 19px
    }

    .pj h4 {
        font-size: .98rem
    }

    .pj .m {
        font-size: .7rem;
        gap: 10px;
        margin: 5px 0
    }

    .pj p {
        font-size: .77rem
    }
}

/* ===== project card text marquee + interpunct ===== */
.mz {
    display: block;
    overflow: hidden;
    white-space: nowrap
}

.mi {
    display: inline-block
}

.mz.on {
    display: flex;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent)
}

.mz.on .mi {
    flex: none;
    padding-right: 34px;
    animation: phm var(--d, 10s) linear infinite
}

.pj .m .dt,
.pj .m .dot {
    flex: none
}

.pj .m .dot {
    opacity: .75;
    font-weight: bold;
}

.pj .m .tz {
    flex: 1 1 0;
    min-width: 0
}

/* ===== mobile: playground fits the phone screen ===== */
@media(max-width:760px) {
    #pgw {
        grid-template-columns: minmax(0, 1fr);
        padding: 18px 16px 36px;
        gap: 20px
    }

    #pgw>div {
        min-width: 0
    }

    .fm {
        font-size: .72rem;
        min-height: 0
    }

    .rd {
        gap: 8px;
        min-height: 0
    }

    .rd div:last-child {
        grid-column: 1 / -1
    }
}
