/* codeXploit portfolio — style.css (Apple-style redesign) */
:root {
    --bg: #000;
    --bg2: #0a0a0c;
    --card: #101013;
    --card2: #1a1a1f;
    --ink: #f5f5f7;
    --mute: #8e8e93;
    --line: rgba(255, 255, 255, .1);
    --acc: #2997ff;
    --acc2: #bf5af2;
    --ok: #30d158;
    --brass: var(--acc);
    --grad: linear-gradient(100deg, #2997ff 0%, #bf5af2 55%, #ff6b9d 100%);
    --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
    --serif: var(--sans);
    --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
    --e: cubic-bezier(.2, .7, .1, 1);
    --r: 22px
}

:root[data-theme=light] {
    --bg: #fbfbfd;
    --bg2: #f5f5f7;
    --card: #fff;
    --card2: #f0f0f3;
    --ink: #1d1d1f;
    --mute: #6e6e73;
    --line: rgba(0, 0, 0, .1);
    --acc: #0071e3;
    --acc2: #8e44ec;
    --ok: #1d9f45
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 64px
}

body {
    background: var(--bg);
    color: var(--ink);
    font: 400 1.0625rem/1.55 var(--sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background .5s, color .5s
}

body.lock {
    overflow: hidden
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(600px circle at var(--mx, 70%) var(--my, 15%), color-mix(in srgb, var(--acc) 11%, transparent), transparent 70%)
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

:focus-visible {
    outline: 2px solid var(--acc);
    outline-offset: 3px
}

.skip {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--acc);
    color: #fff;
    padding: .5rem 1rem;
    z-index: 100;
    border-radius: 99px
}

.skip:focus {
    left: 8px
}

main,
footer {
    position: relative;
    z-index: 1
}

#bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--grad);
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 95
}

.wrap {
    width: min(1120px, 100% - 2.5rem);
    margin-inline: auto
}

section {
    padding: clamp(4.5rem, 11vw, 9rem) 0
}

h1,
h2,
h3 {
    font-family: var(--sans);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.03em
}

h2 {
    font-size: clamp(2rem, 6.4vw, 4rem);
    max-width: 18ch;
    margin-inline: auto
}

.sub {
    color: var(--mute);
    max-width: 54ch;
    margin: 1.1rem auto 0;
    font-size: clamp(1rem, 2.4vw, 1.25rem)
}

.head {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: .9rem;
    margin-bottom: clamp(2.5rem, 6vw, 4.5rem)
}

.head small {
    font: 500 .85rem var(--mono);
    color: var(--acc);
    letter-spacing: .04em
}

/* header */
#hd {
    position: fixed;
    inset: 0 0 auto;
    z-index: 80;
    padding-top: env(safe-area-inset-top)
}

#hd::before {
    content: "";
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transition: opacity .4s
}

#hd.solid::before {
    opacity: 1
}

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    gap: 1rem
}

.logo {
    font: 700 1.15rem var(--sans);
    letter-spacing: -.03em;
    position: relative;
    z-index: 2
}

.logo i {
    font-style: normal;
    color: var(--acc)
}

nav ul {
    display: flex;
    gap: 1.6rem;
    list-style: none;
    align-items: center
}

nav a {
    font-size: .8rem;
    color: var(--mute);
    transition: color .25s
}

nav a:hover,
nav a.active {
    color: var(--ink)
}

.tools {
    display: flex;
    gap: .5rem;
    align-items: center;
    position: relative;
    z-index: 2
}

.ico {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: color-mix(in srgb, var(--card) 80%, transparent);
    color: var(--ink);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 1rem;
    transition: transform .3s var(--e), border-color .3s
}

@media(hover:hover) {
    .ico:hover {
        border-color: var(--acc);
        transform: scale(1.08)
    }
}

#menu {
    display: none
}

#menu span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    transition: transform .35s var(--e)
}

#menu span+span {
    margin-top: 5px
}

#menu[aria-expanded=true] span:first-child {
    transform: translateY(3.25px) rotate(45deg)
}

#menu[aria-expanded=true] span:last-child {
    transform: translateY(-3.25px) rotate(-45deg)
}

#mu {
    grid-auto-flow: column;
    gap: 2px;
    align-content: center
}

#mu i {
    width: 2px;
    height: 6px;
    background: currentColor;
    border-radius: 2px
}

#mu[aria-pressed=true] {
    color: var(--acc);
    border-color: var(--acc)
}

#mu[aria-pressed=true] i {
    animation: eq .8s ease-in-out infinite alternate
}

#mu[aria-pressed=true] i:nth-child(2) {
    animation-delay: .2s
}

#mu[aria-pressed=true] i:nth-child(3) {
    animation-delay: .4s
}

@keyframes eq {
    to {
        height: 14px
    }
}

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 46px;
    padding: .75rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: 99px;
    font: 500 .95rem var(--sans);
    cursor: pointer;
    color: var(--ink);
    background: color-mix(in srgb, var(--card2) 70%, transparent);
    transition: transform .3s var(--e), border-color .3s, box-shadow .3s, filter .3s
}

.btn:hover {
    border-color: var(--acc)
}

.btn:active {
    transform: scale(.97)
}

.btn.fill {
    background: var(--acc);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 30px -8px var(--acc)
}

.btn.fill:hover {
    box-shadow: 0 12px 40px -6px var(--acc);
    filter: brightness(1.1)
}

nav .btn {
    min-height: 32px;
    padding: .3rem .9rem;
    font-size: .8rem
}

nav .btn.fill {
    color: #fff
}

/* hero */
#hero {
    min-height: 100svh;
    display: grid;
    align-items: center;
    text-align: center;
    padding: 7rem 0 3rem;
    position: relative;
    overflow: hidden;
    isolation: isolate
}

#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%)
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .4;
    z-index: -1;
    animation: drift 14s ease-in-out infinite alternate
}

.o1 {
    width: 420px;
    height: 420px;
    background: var(--acc);
    top: -80px;
    left: -100px
}

.o2 {
    width: 380px;
    height: 380px;
    background: var(--acc2);
    right: -120px;
    top: 25%;
    animation-delay: -6s
}

@keyframes drift {
    to {
        transform: translate(60px, 40px) scale(1.15)
    }
}

.avail {
    display: inline-flex;
    gap: .6rem;
    align-items: center;
    padding: .4rem .9rem;
    border: 1px solid var(--line);
    border-radius: 99px;
    font: 500 .78rem var(--mono);
    color: var(--mute);
    background: color-mix(in srgb, var(--card) 70%, transparent)
}

.avail b {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    animation: ping 2s infinite
}

@keyframes ping {
    0% {
        box-shadow: 0 0 0 0 var(--ok)
    }

    70%,
    100% {
        box-shadow: 0 0 0 9px transparent
    }
}

h1 {
    font-size: clamp(2.8rem, 11.5vw, 7.2rem);
    margin: 1.4rem auto .6rem;
    letter-spacing: -.045em;
    line-height: .98
}

.ln {
    display: block;
    overflow: hidden;
    padding-bottom: .1em
}

.ln>span {
    display: block;
    color: var(--ink);
    transform: translateY(110%);
    animation: up 1s var(--e) .2s forwards
}

.ln:last-child>span {
    background: var(--grad);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: up 1s var(--e) .35s forwards, shim 8s linear 1.4s infinite
}

@keyframes up {
    to {
        transform: none
    }
}

@keyframes shim {
    to {
        background-position: -200% 0
    }
}

.role {
    min-height: 1.6em;
    font: 600 clamp(1.15rem, 3.6vw, 1.9rem) var(--sans);
    letter-spacing: -.02em
}

.role::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--acc);
    margin-left: 3px;
    vertical-align: -.12em;
    animation: blink 1s steps(1) infinite
}

@keyframes blink {
    50% {
        opacity: 0
    }
}

.lead {
    max-width: 60ch;
    margin: 1.2rem auto 0;
    color: var(--mute);
    font-size: clamp(1rem, 2.6vw, 1.2rem)
}

.lead strong,
.ag strong {
    color: var(--ink);
    font-weight: 500
}

.cta {
    display: flex;
    gap: .8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem
}

.fade {
    opacity: 0;
    animation: fade .9s var(--e) forwards
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(14px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.vis {
    position: relative;
    width: min(300px, 68vw);
    aspect-ratio: 1;
    margin: 3rem auto 0
}

.vis::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 34%;
    background: conic-gradient(var(--acc), var(--acc2), #ff6b9d, var(--acc));
    animation: spin 8s linear infinite;
    filter: blur(22px);
    opacity: .65
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.vis img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32%;
    border: 1px solid var(--line);
    background: var(--card);
    transform: translateY(var(--py, 0))
}

.fc {
    position: absolute;
    padding: .45rem .85rem;
    border-radius: 99px;
    font: 500 .75rem var(--mono);
    background: color-mix(in srgb, var(--card) 80%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    animation: float 5s ease-in-out infinite alternate;
    white-space: nowrap
}

.f1 {
    top: 8%;
    left: -16%
}

.f2 {
    top: 24%;
    right: -18%;
    animation-delay: -1.5s
}

.f3 {
    bottom: 24%;
    left: -20%;
    animation-delay: -3s
}

.f4 {
    bottom: 6%;
    right: -10%;
    animation-delay: -2s
}

@keyframes float {
    to {
        transform: translateY(-12px)
    }
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 720px;
    margin: 3.5rem auto 0;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: color-mix(in srgb, var(--card) 70%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px)
}

.stats div {
    padding: 1.3rem .5rem
}

.stats div+div {
    border-left: 1px solid var(--line)
}

.stats b {
    display: block;
    font: 700 clamp(1.8rem, 6vw, 3rem) var(--sans);
    letter-spacing: -.04em;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.stats span {
    font-size: .78rem;
    color: var(--mute)
}

/* reveal */
.rv {
    opacity: 0;
    transform: translateY(32px) scale(.985);
    transition: opacity .9s var(--e) var(--d, 0s), transform .9s var(--e) var(--d, 0s)
}

.rv.in {
    opacity: 1;
    transform: none
}

/* about */
#statement {
    font: 700 clamp(1.7rem, 5.4vw, 3.4rem)/1.12 var(--sans);
    letter-spacing: -.035em;
    max-width: 28ch;
    margin: 0 auto clamp(3rem, 8vw, 6rem);
    text-align: center
}

#statement span {
    opacity: .18;
    transition: opacity .25s
}

.ag {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center
}

.pic {
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 4/5;
    background: var(--card)
}

.pic img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.ag p {
    color: var(--mute);
    margin-bottom: 1.2rem;
    font-size: 1.1rem
}

.ag .cta {
    justify-content: flex-start
}

/* cards */
.scard,
.repo,
.row,
.box,
.ct,
.job,
.faqw details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    position: relative;
    transition: border-color .4s, transform .5s var(--e)
}

.scard::after,
.repo::after,
.row::after,
.box::after,
.ct::after,
.job::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s;
    background: radial-gradient(320px circle at var(--cx, 50%) var(--cy, 50%), color-mix(in srgb, var(--acc) 15%, transparent), transparent 65%)
}

@media(hover:hover) {

    .scard:hover::after,
    .repo:hover::after,
    .row:hover::after,
    .box:hover::after,
    .ct:hover::after,
    .job:hover::after {
        opacity: 1
    }

    .scard:hover,
    .repo:hover,
    .row:hover {
        border-color: color-mix(in srgb, var(--acc) 50%, var(--line));
        transform: translateY(-3px)
    }
}

/* skills */
.sgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1rem;
    align-items: start
}

.scard {
    text-align: left;
    padding: 1.5rem;
    color: inherit;
    cursor: pointer;
    font: inherit;
    display: block;
    width: 100%
}

.lv {
    font: 500 .78rem var(--mono);
    color: var(--acc)
}

.scard h3 {
    font-size: 1.3rem;
    margin: .6rem 0 .9rem;
    padding-right: 2rem
}

.meter {
    display: flex;
    gap: 4px;
    margin-bottom: 1rem
}

.meter b {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: var(--line)
}

.meter b.on {
    background: var(--grad)
}

.scard p {
    color: var(--mute);
    font-size: .95rem
}

.more {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .5s var(--e)
}

.more>div {
    overflow: hidden
}

.scard[aria-expanded=true] .more {
    grid-template-rows: 1fr
}

.more p {
    margin-top: 1rem;
    color: var(--ink)
}

.more ul {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    list-style: none;
    margin-top: 1rem
}

.more li,
.tags span {
    font: 500 .74rem var(--mono);
    padding: .3rem .65rem;
    border: 1px solid var(--line);
    border-radius: 99px;
    color: var(--mute)
}

.plus {
    position: absolute;
    top: 1.3rem;
    right: 1.3rem;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--card2);
    color: var(--mute);
    transition: transform .4s var(--e)
}

.scard[aria-expanded=true] .plus {
    transform: rotate(45deg);
    color: var(--acc)
}

.toolkit {
    margin-top: clamp(3rem, 7vw, 5rem)
}

.tk-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.6rem
}

.tk-head h3 {
    font-size: 1.6rem
}

.chips {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding: .2rem;
    scrollbar-width: none;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto
}

.chips::-webkit-scrollbar {
    display: none
}

.chip {
    flex: none;
    min-height: 40px;
    padding: .4rem 1rem;
    border-radius: 99px;
    border: 1px solid var(--line);
    background: none;
    color: var(--mute);
    font: 500 .85rem var(--sans);
    cursor: pointer;
    transition: background .3s, color .3s
}

.chip[aria-pressed=true] {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink)
}

.tk-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: center;
    list-style: none
}

.tk-grid li {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem 1rem;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: var(--card);
    font-size: .9rem
}

.tk-grid small {
    font: 500 .68rem var(--mono);
    color: var(--acc)
}

/* experience */
.tl {
    --tp: 2rem;
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding-left: var(--tp)
}

.tl::before,
.tl::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 10px;
    width: 2px
}

.tl::before {
    bottom: 10px;
    background: var(--line)
}

.tl::after {
    height: var(--fill, 0%);
    max-height: calc(100% - 20px);
    background: var(--grad)
}

.job {
    margin-bottom: 1rem
}

.job::before {
    content: "";
    position: absolute;
    left: calc(var(--tp)*-1);
    top: 1.7rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--line)
}

.job.now::before {
    background: var(--acc);
    border-color: var(--acc);
    box-shadow: 0 0 14px var(--acc)
}

.job summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .2rem 1rem;
    padding: 1.3rem 1.4rem;
    align-items: center
}

.job summary::-webkit-details-marker {
    display: none
}

.job h3 {
    font-size: 1.25rem
}

.job .co {
    color: var(--mute);
    font-size: .9rem
}

.job .dt {
    font: 500 .78rem var(--mono);
    color: var(--acc)
}

.job h3,
.job .co,
.job .dt {
    grid-column: 1
}

.job .tg {
    grid-column: 2;
    grid-row: 1/4;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: var(--card2);
    display: grid;
    place-items: center;
    transition: transform .4s var(--e)
}

.job[open] .tg {
    transform: rotate(45deg)
}

.job .bd {
    padding: 0 1.4rem 1.4rem
}

.job ul {
    margin-left: 1.1rem;
    color: var(--mute);
    font-size: .95rem
}

.job li {
    margin-bottom: .45rem
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: 1rem
}

/* projects */
.list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem
}

.row {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    padding: 1rem 1rem 1.4rem;
    color: inherit
}

.row:nth-child(-n+2) {
    grid-column: span 3
}

.row:last-child {
    grid-column: span 6
}

.row .th {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 1.1rem;
    background: var(--card2)
}

.row h3 {
    font-size: 1.35rem
}

.row small {
    display: block;
    margin-top: .45rem;
    font: 500 .75rem var(--mono);
    color: var(--acc)
}

.row p {
    color: var(--mute);
    font-size: .95rem;
    margin-top: .8rem;
    flex: 1
}

.row .go {
    margin-top: 1rem;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--card2);
    transition: background .3s, transform .4s var(--e)
}

a.row:hover .go {
    background: var(--acc);
    color: #fff;
    transform: translateX(4px)
}

article.row .go {
    display: none
}

@media(max-width:1000px) {
    .list {
        grid-template-columns: repeat(2, 1fr)
    }

    .row,
    .row:nth-child(-n+2) {
        grid-column: span 1
    }

    .row:last-child {
        grid-column: span 2
    }
}

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

    .row,
    .row:nth-child(-n+2),
    .row:last-child {
        grid-column: auto
    }
}

/* credentials: compact */
.cgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .7rem
}

.ct {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .75rem .9rem;
    min-height: 64px;
    color: inherit;
    border-radius: 16px
}

.seal {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font: 700 .72rem var(--mono);
    color: #fff;
    background: linear-gradient(135deg, var(--a), var(--b));
    box-shadow: 0 6px 16px -6px var(--a)
}

.ci {
    min-width: 0;
    display: grid;
    line-height: 1.25
}

.ci b {
    font: 600 .88rem var(--sans);
    letter-spacing: -.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.ci span {
    font-size: .75rem;
    color: var(--mute);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.ar {
    margin-left: auto;
    color: var(--mute);
    transition: color .3s, transform .3s
}

a.ct:hover .ar {
    color: var(--acc);
    transform: translate(2px, -2px)
}

.cmore {
    display: flex;
    justify-content: center;
    margin-top: 1.6rem
}

.cmore[hidden] {
    display: none
}

@media(max-width:900px) {
    .cgrid {
        grid-template-columns: repeat(2, 1fr)
    }
}

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

/* github */
.bar2 {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.6rem
}

.bar2 .chips {
    margin: 0 !important
}

.srch {
    min-height: 44px;
    padding: .5rem 1.1rem;
    border-radius: 99px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    min-width: min(100%, 260px)
}

.srch:focus {
    outline: none;
    border-color: var(--acc)
}

.ghgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: .8rem
}

.repo {
    display: flex;
    flex-direction: column;
    padding: 1.2rem
}

.repo h3 {
    font: 600 1rem var(--mono);
    letter-spacing: 0;
    word-break: break-word
}

.repo p {
    color: var(--mute);
    font-size: .88rem;
    margin: .6rem 0 1rem;
    flex: 1
}

.meta {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    font-size: .75rem;
    color: var(--mute)
}

.meta i {
    font-style: normal;
    display: inline-flex;
    align-items: center;
    gap: .4rem
}

.meta i::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--lc)
}

.ghnote {
    margin-top: 1.6rem;
    text-align: center;
    color: var(--mute);
    font-size: .9rem
}

.ghnote a {
    color: var(--acc)
}

.empty {
    color: var(--mute);
    grid-column: 1/-1;
    text-align: center;
    padding: 2rem
}

/* terminal */
.term {
    max-width: 760px;
    margin: 0 auto;
    overflow: hidden;
    background: #0b0b0d;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--r);
    font-family: var(--mono);
    box-shadow: 0 30px 80px -30px rgba(41, 151, 255, .35)
}

.tb {
    display: flex;
    gap: 7px;
    align-items: center;
    padding: .8rem 1rem;
    background: #1c1c1f;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #8e8e93;
    font-size: .75rem
}

.tb b {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ff5f57
}

.tb b:nth-child(2) {
    background: #febc2e
}

.tb b:nth-child(3) {
    background: #28c840
}

.tb span {
    margin: 0 auto;
    transform: translateX(-25px)
}

#out {
    height: min(300px, 50svh);
    overflow: auto;
    padding: 1rem;
    font-size: .85rem;
    line-height: 1.6;
    color: #d1d1d6;
    white-space: pre-wrap
}

#out p+p {
    margin-top: .4rem
}

#out .c {
    color: #30d158
}

#out .m {
    color: #8e8e93
}

.tin {
    display: flex;
    gap: .6rem;
    align-items: center;
    padding: .8rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .85rem
}

.tin label {
    color: #30d158;
    white-space: nowrap
}

.tin input {
    flex: 1;
    min-width: 0;
    background: none;
    border: 0;
    color: #f5f5f7;
    font: inherit;
    font-size: 16px;
    outline: none
}

.tsug {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.2rem
}

.tsug .chip {
    font-family: var(--mono);
    font-size: .8rem
}

/* study, quote, cta, faq */
.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem
}

.box {
    padding: 1.6rem
}

.box h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem
}

.box a {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 0;
    border-top: 1px solid var(--line);
    color: var(--mute);
    transition: color .3s, padding .4s var(--e)
}

.box a:hover {
    color: var(--ink);
    padding-left: .4rem
}

.box a span {
    color: var(--acc)
}

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

.q {
    text-align: center;
    max-width: 860px
}

.q blockquote {
    font: 600 clamp(1.4rem, 4.4vw, 2.4rem)/1.25 var(--sans);
    letter-spacing: -.025em
}

.q blockquote::before {
    content: "\201C";
    display: block;
    font-size: 4rem;
    line-height: .6;
    color: var(--acc)
}

.q figure {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    margin-top: 2rem;
    color: var(--mute)
}

.q img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover
}

.cta2 {
    text-align: center;
    padding: clamp(3rem, 8vw, 6rem) 1.5rem;
    border-radius: 32px;
    border: 1px solid var(--line);
    background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--acc) 28%, transparent), transparent 70%), var(--card);
    overflow: hidden
}

.cta2 h2 {
    font-size: clamp(2.2rem, 7vw, 4.6rem);
    max-width: 14ch
}

.cta2 p {
    max-width: 48ch;
    margin: 1.2rem auto 0;
    color: var(--mute)
}

.cta2 a:not(.btn) {
    color: var(--acc)
}

.faqw {
    max-width: 780px
}

.faqw details {
    margin-bottom: .7rem;
    padding: 0 1.3rem;
    border-radius: 18px
}

.faqw summary {
    list-style: none;
    cursor: pointer;
    padding: 1.15rem 2rem 1.15rem 0;
    font-weight: 600;
    position: relative;
    letter-spacing: -.01em
}

.faqw summary::-webkit-details-marker {
    display: none
}

.faqw summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 1rem;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--mute);
    transition: transform .4s var(--e)
}

.faqw details[open] summary::after {
    transform: rotate(45deg);
    color: var(--acc)
}

.faqw details p {
    color: var(--mute);
    padding-bottom: 1.2rem;
    font-size: .97rem
}

.faqw p a {
    color: var(--acc)
}

.faqw strong {
    color: var(--ink);
    font-weight: 500
}

/* footer */
footer {
    padding: 3rem 0 0;
    border-top: 1px solid var(--line);
    overflow: hidden
}

footer .wrap {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap
}

footer p {
    color: var(--mute);
    font-size: .85rem;
    margin-top: .4rem
}

footer nav {
    display: flex;
    gap: .4rem 1.4rem;
    flex-wrap: wrap;
    max-width: 420px
}

footer nav a {
    font-size: .85rem
}

.big {
    font: 800 clamp(3.5rem, 19vw, 15rem)/.85 var(--sans);
    letter-spacing: -.06em;
    text-align: center;
    margin-top: 2rem;
    padding-bottom: .1em;
    background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 22%, transparent), transparent 85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    user-select: none
}

/* dialog, toast, dock */
dialog {
    margin: auto;
    width: min(480px, calc(100% - 2rem));
    padding: 2rem;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 40px 120px rgba(0, 0, 0, .6)
}

dialog::backdrop {
    background: rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px)
}

dialog h2 {
    font-size: 1.8rem;
    margin: 0 0 1.2rem;
    max-width: none;
    text-align: left
}

#ok {
    display: none;
    text-align: center
}

#ok.show {
    display: block
}

#ok h2 {
    text-align: center
}

dialog label {
    display: block;
    font-size: .8rem;
    color: var(--mute);
    margin: 1rem 0 .35rem
}

dialog input,
dialog textarea {
    width: 100%;
    padding: .8rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--bg2);
    color: var(--ink);
    font: inherit;
    font-size: 16px
}

dialog textarea {
    min-height: 120px;
    resize: vertical
}

dialog input:focus,
dialog textarea:focus {
    outline: none;
    border-color: var(--acc)
}

.acts {
    display: flex;
    gap: .6rem;
    margin-top: 1.5rem;
    flex-wrap: wrap
}

#toast {
    position: fixed;
    left: 50%;
    bottom: calc(90px + env(safe-area-inset-bottom));
    transform: translate(-50%, 20px);
    background: var(--ink);
    color: var(--bg);
    padding: .6rem 1.1rem;
    border-radius: 99px;
    font-size: .85rem;
    opacity: 0;
    pointer-events: none;
    transition: .4s var(--e);
    z-index: 100
}

#toast.show {
    opacity: 1;
    transform: translate(-50%, 0)
}

#dock {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    transform: translate(-50%, 160%);
    z-index: 70;
    display: none;
    gap: .4rem;
    padding: .4rem;
    border-radius: 99px;
    background: color-mix(in srgb, var(--card) 80%, transparent);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .4);
    transition: transform .5s var(--e)
}

#dock.show {
    transform: translate(-50%, 0)
}

#dock .btn {
    min-height: 44px;
    padding: .5rem 1.3rem;
    font-size: .9rem;
    white-space: nowrap
}

/* mobile */
@media(max-width:860px) {
    #menu {
        display: grid;
        align-content: center;
        justify-items: center
    }

    #dock {
        display: flex
    }

    body.lock #dock {
        display: none
    }

    body {
        padding-bottom: 76px
    }

    #nav {
        position: fixed;
        inset: 0;
        z-index: 1;
        background: color-mix(in srgb, var(--bg) 94%, transparent);
        -webkit-backdrop-filter: blur(30px);
        backdrop-filter: blur(30px);
        display: flex;
        align-items: center;
        padding: 5rem 1.5rem 2rem;
        opacity: 0;
        visibility: hidden;
        transform: scale(1.03);
        transition: opacity .4s, transform .5s var(--e), visibility .4s
    }

    #nav.open {
        opacity: 1;
        visibility: visible;
        transform: none
    }

    #nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%
    }

    #nav li {
        width: 100%;
        border-bottom: 1px solid var(--line)
    }

    #nav li:last-child {
        border: 0
    }

    #nav a {
        display: block;
        font-size: clamp(1.7rem, 8vw, 2.4rem);
        font-weight: 700;
        letter-spacing: -.03em;
        color: var(--ink);
        padding: .7rem 0
    }

    #nav .btn {
        display: inline-flex;
        margin-top: 1.2rem;
        font-size: 1rem;
        min-height: 50px;
        padding: .8rem 1.6rem
    }
}

@media(max-width:520px) {
    .cta .btn {
        flex: 1 1 100%
    }

    .ag .cta {
        justify-content: center
    }

    section {
        padding: 4.5rem 0
    }

    .stats div {
        padding: 1rem .2rem
    }

    .stats span {
        font-size: .7rem
    }

    .tl {
        --tp: 1.6rem
    }
}

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

    .pic {
        max-width: 420px;
        margin-inline: auto;
        aspect-ratio: 1
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }

    .ln>span {
        transform: none
    }

    .fade,
    .rv {
        opacity: 1;
        transform: none
    }

    #statement span {
        opacity: 1
    }
}