/* ============================================================
   enswr.dev — portfolio layer
   Loaded after the original styles.css. Everything here is
   additive: the intro's own rules are never edited.
   ============================================================ */

:root {
    --bg: #05070B;
    --navy: #080D18;
    --purple: #8B5CF6;
    --blue: #3B82F6;
    --green: #22C55E;

    --text: #E9EDF6;
    --muted: #94A2B8;
    --dim: #6C7C96;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .15);

    --glass: linear-gradient(158deg, rgba(20, 27, 43, .84), rgba(8, 13, 24, .80));
    --ease: cubic-bezier(.22, .61, .36, 1);
    --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --maxw: 1140px;
    --radius: 20px;
}

/* ---------- page scroll: locked during intro, free afterwards ---------- */

html.intro-finished {
    overflow-y: auto !important;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

html.intro-finished body {
    height: auto;
    min-height: 100%;
    overflow: visible;
}

html.intro-finished::-webkit-scrollbar { width: 10px; }
html.intro-finished::-webkit-scrollbar-track { background: #05070B; }
html.intro-finished::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(139, 92, 246, .5), rgba(59, 130, 246, .45));
    border-radius: 20px;
    border: 3px solid #05070B;
}

::selection {
    background: rgba(139, 92, 246, .4);
    color: #fff;
}

/* The matrix canvas is only decoration — never eats pointer events. */
#matrix-screen {
    pointer-events: none;
}

/* ---------- site shell ---------- */

.site {
    position: relative;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    font-family: var(--font);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: opacity 1.1s var(--ease);
}

body.portfolio-visible .site {
    opacity: 1;
    pointer-events: auto;
}

/* skipping the intro should not wait for the full slow fade */
html.intro-instant .site { transition-duration: .45s; }

.site__scrim {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 600px at 50% 0%, rgba(59, 130, 246, .08), transparent 70%),
        radial-gradient(800px 600px at 88% 92%, rgba(139, 92, 246, .08), transparent 70%),
        linear-gradient(180deg, rgba(5, 7, 11, .78), rgba(5, 7, 11, .84));
}

.mono { font-family: var(--mono); }

.icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.icon--sm { width: 13px; height: 13px; }

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 10px;
    background: #111827;
    border: 1px solid var(--line-strong);
    color: var(--text);
    font-size: 13px;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform .2s var(--ease);
}

.skip-link:focus { transform: none; }

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-family: var(--font);
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: -.005em;
    text-decoration: none;
    color: #fff;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease),
                background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}

.btn--sm { height: 40px; padding: 0 16px; font-size: 13.5px; border-radius: 10px; }
.btn--sm .icon { width: 15px; height: 15px; }

.btn--primary {
    background: linear-gradient(105deg, #7C3AED, #3B82F6 62%, #22C55E 135%);
    box-shadow: 0 10px 30px -12px rgba(99, 102, 241, .75), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -14px rgba(99, 102, 241, .85), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.btn--outline {
    background: rgba(255, 255, 255, .035);
    border-color: var(--line-strong);
    color: var(--text);
}

.btn--outline:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, .5);
    background: rgba(139, 92, 246, .1);
}

.btn--ghost {
    background: rgba(255, 255, 255, .03);
    border-color: var(--line);
    color: var(--text);
}

.btn--ghost:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, .06);
}

/* ---------- navigation ---------- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    border-bottom: 1px solid transparent;
    background: linear-gradient(180deg, rgba(5, 7, 11, .82), rgba(5, 7, 11, .38) 68%, rgba(5, 7, 11, 0));
    transition: background .4s var(--ease), border-color .4s var(--ease);
}

.nav.is-scrolled {
    background: rgba(6, 10, 18, .74);
    border-bottom-color: var(--line);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px) saturate(130%);
}

.nav__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, .32);
    background: linear-gradient(150deg, rgba(139, 92, 246, .22), rgba(59, 130, 246, .12));
    color: #C4B5FD;
    box-shadow: 0 0 22px -8px rgba(139, 92, 246, .8);
}

.brand__mark svg { width: 19px; height: 19px; }

.brand__tld { color: var(--dim); }

.nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav__link {
    position: relative;
    padding: 9px 13px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 13.8px;
    font-weight: 500;
    text-decoration: none;
    transition: color .25s var(--ease), background .25s var(--ease);
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 3px;
    height: 1.5px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--purple), var(--blue), var(--green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}

.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { transform: scaleX(1); }

.nav__cta { margin-left: 6px; }

.nav__toggle {
    display: none;
    width: 40px;
    height: 40px;
    margin-left: 8px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    cursor: pointer;
}

.nav__toggle span {
    display: block;
    width: 16px;
    height: 1.6px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .3s var(--ease);
}

.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 128px 24px 96px;
    text-align: center;
}

.hero__inner {
    position: relative;
    z-index: 0;
    width: 100%;
    max-width: 860px;
}

.hero__inner::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -150px -130px;
    pointer-events: none;
    background: radial-gradient(closest-side, rgba(5, 7, 11, .96), rgba(5, 7, 11, .6) 62%, rgba(5, 7, 11, 0) 100%);
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: .1em;
    color: #C6D0E2;
    text-transform: lowercase;
}

.hero__prompt { color: var(--purple); }
.hero__eyebrow-sub { color: var(--dim); }

.hero__eyebrow-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(34, 197, 94, .9);
}

.hero__title {
    margin: 24px 0 14px;
    font-size: clamp(2.7rem, 7.4vw, 4.9rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.04em;
    text-shadow: 0 4px 44px rgba(5, 7, 11, .9);
}

.hero__title-sub {
    display: block;
    margin-top: .3em;
    font-size: clamp(1.05rem, 2.9vw, 1.72rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -.015em;
    color: #AEBBD0;
}

.grad {
    background: linear-gradient(105deg, #A78BFA, #8B5CF6 22%, #3B82F6 56%, #22C55E 98%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* negative letter-spacing pulls the last glyph past the inline box;
       the padding keeps the clipped gradient from cutting the final "r" */
    padding-right: .14em;
    margin-right: -.14em;
}

.hero__typed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 26px;
    font-family: var(--mono);
    font-size: clamp(13px, 1.7vw, 15.5px);
    color: #B9C6DB;
    letter-spacing: .01em;
}

.caret {
    display: inline-block;
    width: 8px;
    height: 16px;
    margin-left: 2px;
    border-radius: 1px;
    background: var(--green);
    box-shadow: 0 0 10px rgba(34, 197, 94, .75);
    animation: caret-blink 1.05s steps(2, start) infinite;
}

@keyframes caret-blink { 50% { opacity: 0; } }

.hero__lede {
    max-width: 590px;
    margin: 20px auto 0;
    font-size: clamp(15px, 1.9vw, 17.5px);
    line-height: 1.72;
    color: var(--muted);
    text-shadow: 0 2px 22px rgba(5, 7, 11, .95);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 36px;
    font-size: 12px;
    color: var(--dim);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #9FB0C6;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: .03em;
}

.status__dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px rgba(34, 197, 94, .9);
}

.status__dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(34, 197, 94, .55);
    animation: status-pulse 2.4s var(--ease) infinite;
}

@keyframes status-pulse {
    0% { transform: scale(.7); opacity: .9; }
    70%, 100% { transform: scale(1.7); opacity: 0; }
}

.hero__meta-divider {
    width: 1px;
    height: 14px;
    background: var(--line-strong);
}

.hero__clock { color: #8494AC; font-size: 11.5px; letter-spacing: .04em; }
.hero__clock span { color: #C6D2E5; }

/* terminal-inspired status card */

.terminal {
    width: 100%;
    max-width: 470px;
    margin: 38px auto 0;
    text-align: left;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(14, 20, 33, .82), rgba(6, 10, 18, .86));
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px -34px rgba(0, 0, 0, .95);
    overflow: hidden;
}

.terminal__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 13px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: rgba(255, 255, 255, .025);
}

.terminal__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    opacity: .85;
}

.terminal__dot--p { background: var(--purple); }
.terminal__dot--b { background: var(--blue); }
.terminal__dot--g { background: var(--green); }

.terminal__title {
    margin-left: auto;
    font-size: 10.5px;
    letter-spacing: .06em;
    color: var(--dim);
}

.terminal__body {
    padding: 14px 16px 16px;
    font-size: 12px;
    line-height: 1.85;
    color: #8FA0B8;
}

.terminal__body p { margin: 0; }

.t-prompt { color: #C4B5FD; }
.t-dim { color: #7B8BA4; }
.t-green { color: #4ADE80; }
.t-blue { color: #60A5FA; }
.t-purple { color: #A78BFA; }

.hero__scroll {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--dim);
    font-size: 10px;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 38px;
    background: linear-gradient(180deg, rgba(139, 92, 246, .7), rgba(59, 130, 246, .35), transparent);
    overflow: hidden;
}

.hero__scroll-line::after {
    content: "";
    display: block;
    width: 100%;
    height: 12px;
    background: #fff;
    opacity: .8;
    animation: scroll-line 2.4s var(--ease) infinite;
}

@keyframes scroll-line {
    0% { transform: translateY(-14px); opacity: 0; }
    30% { opacity: .9; }
    100% { transform: translateY(40px); opacity: 0; }
}

/* ---------- sections ---------- */

.section {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(68px, 9vw, 116px) 24px;
    scroll-margin-top: 82px;
}

.section--stack { padding-bottom: clamp(80px, 10vw, 130px); }

.section__head { margin-bottom: clamp(28px, 4vw, 44px); }

.section__label {
    margin: 0;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--dim);
}

.section__title {
    margin: 12px 0 10px;
    font-size: clamp(1.9rem, 4.2vw, 2.85rem);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.1;
}

.section__sub {
    max-width: 56ch;
    margin: 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--muted);
}

/* ---------- project cards ---------- */

.project {
    position: relative;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--glass);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
    backdrop-filter: blur(18px) saturate(125%);
    box-shadow: 0 32px 72px -46px rgba(0, 0, 0, .96);
    overflow: hidden;
    transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}

.project::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(139, 92, 246, .07), transparent 40%, rgba(34, 197, 94, .05));
    opacity: 0;
    transition: opacity .45s var(--ease);
}

.project:hover::after { opacity: 1; }

.project--featured {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 0;
    padding: 14px;
}

.project--featured:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, .38);
    box-shadow: 0 44px 96px -48px rgba(109, 86, 246, .5);
}

.project--featured .project__visual { min-height: 100%; }

.project__visual {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .07);
    background:
        radial-gradient(120% 110% at 12% 8%, rgba(139, 92, 246, .34), transparent 58%),
        radial-gradient(110% 110% at 92% 88%, rgba(34, 197, 94, .18), transparent 58%),
        radial-gradient(90% 90% at 70% 30%, rgba(59, 130, 246, .18), transparent 60%),
        linear-gradient(158deg, #0B1120, #06090F);
    min-height: 340px;
}

.project__visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: radial-gradient(circle at 50% 55%, #000 20%, transparent 78%);
    mask-image: radial-gradient(circle at 50% 55%, #000 20%, transparent 78%);
    opacity: .9;
}

.project__visual::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(74%, 420px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 0 90px -20px rgba(139, 92, 246, .35) inset;
    pointer-events: none;
}

.project__index {
    position: absolute;
    top: 18px;
    left: 20px;
    z-index: 2;
    font-size: 10.5px;
    letter-spacing: .2em;
    color: rgba(255, 255, 255, .45);
}

.project__corner {
    position: absolute;
    right: 20px;
    bottom: 18px;
    z-index: 2;
    font-size: 9.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .38);
}

.visual__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 44px;
    text-align: left;
}

.visual__label {
    display: block;
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}

.visual__word {
    display: block;
    margin: 18px 0 20px;
    font-size: clamp(2.5rem, 5vw, 3.7rem);
    font-weight: 700;
    line-height: .94;
    letter-spacing: -.045em;
    background: linear-gradient(115deg, #FFFFFF, #C4B5FD 38%, #60A5FA 72%, #4ADE80);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.visual__meta {
    display: block;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .38);
}

.project__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(24px, 3.2vw, 38px);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, .45);
    background: linear-gradient(90deg, rgba(139, 92, 246, .26), rgba(59, 130, 246, .14));
    color: #DCCBFF;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    box-shadow: 0 0 26px -8px rgba(139, 92, 246, .85);
}

.badge .icon { width: 12px; height: 12px; }

.project__title {
    margin: 16px 0 0;
    font-size: clamp(1.65rem, 3.1vw, 2.05rem);
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1.15;
}

.project__title--sm { font-size: 1.38rem; margin-top: 18px; }

.project__desc {
    margin: 12px 0 0;
    font-size: 14.4px;
    line-height: 1.72;
    color: var(--muted);
}

.project__points {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.project__points li {
    position: relative;
    padding-left: 17px;
    font-size: 13px;
    line-height: 1.62;
    color: #9BABC2;
}

.project__points li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--blue) 60%, var(--green));
    box-shadow: 0 0 8px rgba(139, 92, 246, .6);
}

.project__points--compact { margin-top: 14px; }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}

.chips--lg { gap: 9px; margin-top: 0; }

.chip {
    padding: 6px 10px;
    border-radius: 7px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .035);
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .03em;
    color: #B8C5D8;
    transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}

.project:hover .chip {
    border-color: rgba(139, 92, 246, .28);
    background: rgba(139, 92, 246, .08);
    color: #D3DCF0;
}

.chips--lg .chip { padding: 8px 13px; font-size: 11.5px; }

.project__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    margin-top: 24px;
}

.project--card .project__footer { margin-top: auto; padding-top: 24px; }

.project__note { font-size: 10px; letter-spacing: .05em; color: var(--dim); }

.project__stat {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
    margin: 18px 0 0;
    font-size: 10.5px;
    letter-spacing: .03em;
    color: var(--dim);
}

.project__stat-num {
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -.02em;
    color: #E7EEFB;
}

.project__stat-src a {
    color: #93A4BC;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    transition: color .25s var(--ease), border-color .25s var(--ease);
}

.project__stat-src a:hover { color: #fff; border-color: rgba(139, 92, 246, .5); }

.projects__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 22px;
}

.project--card {
    display: flex;
    flex-direction: column;
    padding: clamp(22px, 3vw, 30px);
}

.project--card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, .34);
    box-shadow: 0 40px 84px -48px rgba(59, 130, 246, .45);
}

.project__card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.project__card-head .project__index {
    position: static;
    color: var(--dim);
}

.project__badge {
    font-size: 9.5px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #7C8CA6;
}

.project--card .project__title { margin-top: 18px; }

/* ---------- about ---------- */

.about {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: 22px;
    align-items: start;
}

.about__panel {
    padding: clamp(24px, 3.6vw, 40px);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    backdrop-filter: blur(16px) saturate(120%);
    box-shadow: 0 32px 72px -50px rgba(0, 0, 0, .95);
}

.about__lead {
    margin: 0;
    font-size: clamp(1.18rem, 2.3vw, 1.5rem);
    line-height: 1.5;
    letter-spacing: -.02em;
    color: #E4EAF5;
}

.about__text {
    margin: 16px 0 0;
    font-size: 14.4px;
    line-height: 1.82;
    color: var(--muted);
}

.about__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.about__tag {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, .26);
    background: rgba(139, 92, 246, .08);
    font-size: 12px;
    color: #CBD6E8;
}

.about__card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(12, 18, 30, .9), rgba(6, 10, 18, .88));
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 32px 72px -50px rgba(0, 0, 0, .95);
}

.about__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 10px 22px 18px;
    font-size: 12px;
}

.about__list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .07);
}

.about__list > div:last-child { border-bottom: 0; }

.about__list dt {
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dim);
}

.about__list dd {
    margin: 0;
    text-align: right;
    color: #B9C7DC;
}

.about__list a {
    color: #A5B4FC;
    text-decoration: none;
    transition: color .25s var(--ease);
}

.about__list a:hover { color: #C7D2FE; text-decoration: underline; }

/* ---------- stack ---------- */

.stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.stack__group {
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    backdrop-filter: blur(16px) saturate(120%);
    box-shadow: 0 28px 64px -50px rgba(0, 0, 0, .95);
    transition: border-color .35s var(--ease), transform .35s var(--ease);
}

.stack__group:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, .28);
}

.stack__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #92A2B9;
}

.stack__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.stack__dot--purple { background: var(--purple); box-shadow: 0 0 10px rgba(139, 92, 246, .9); }
.stack__dot--blue { background: var(--blue); box-shadow: 0 0 10px rgba(59, 130, 246, .9); }
.stack__dot--green { background: var(--green); box-shadow: 0 0 10px rgba(34, 197, 94, .9); }

/* ---------- footer ---------- */

.footer {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(6, 10, 18, .5), rgba(5, 7, 11, .9));
}

.footer__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 34px 24px 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

.footer__brand {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.footer__text {
    margin: 6px 0 0;
    font-size: 10.5px;
    letter-spacing: .06em;
    color: var(--dim);
}

.footer__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    letter-spacing: .04em;
    color: var(--muted);
    text-decoration: none;
    transition: color .25s var(--ease);
}

.footer__link:hover { color: #fff; }

/* ---------- back to top ---------- */

.to-top {
    position: fixed;
    right: 22px;
    bottom: 88px;
    z-index: 45;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    border: 1px solid var(--line-strong);
    background: rgba(10, 16, 28, .82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: #C7D2E5;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease),
                border-color .3s var(--ease), background .3s var(--ease);
}

.to-top svg { width: 18px; height: 18px; }

.to-top.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.to-top:hover {
    border-color: rgba(139, 92, 246, .5);
    background: rgba(139, 92, 246, .16);
    color: #fff;
}

/* ---------- scroll reveal ---------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0s);
    will-change: opacity, transform;
}

[data-reveal].is-in {
    opacity: 1;
    transform: none;
    will-change: auto;
}

/* ---------- intro skip (icon only, lives above the intro) ---------- */

.intro-skip {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(8, 13, 24, .72);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #C7D2E5;
    cursor: pointer;
    transition: opacity .35s var(--ease), transform .35s var(--ease),
                border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}

.intro-skip svg { width: 19px; height: 19px; }

.intro-skip:hover {
    border-color: rgba(34, 197, 94, .5);
    background: rgba(34, 197, 94, .14);
    color: #fff;
    transform: translateY(-2px);
}

.intro-skip:focus-visible {
    outline: 2px solid rgba(139, 92, 246, .85);
    outline-offset: 3px;
}

html.intro-finished .intro-skip {
    opacity: 0;
    transform: translateY(10px) scale(.94);
    pointer-events: none;
}

/* ---------- language switch ---------- */

.lang {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
}

.lang__btn {
    padding: 4px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--dim);
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .08em;
    cursor: pointer;
    transition: color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}

.lang__btn:hover { color: var(--text); }

.lang__btn.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(139, 92, 246, .32), rgba(59, 130, 246, .22));
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .3);
}

/* ---------- social ---------- */

.section--social { padding-bottom: clamp(64px, 8vw, 104px); }

.social {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.social__card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    backdrop-filter: blur(16px) saturate(120%);
    box-shadow: 0 28px 64px -52px rgba(0, 0, 0, .95);
    text-decoration: none;
    color: inherit;
    transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

.social__card:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, .34);
    box-shadow: 0 36px 76px -50px rgba(109, 86, 246, .5);
}

.social__icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .045);
    color: #C7D2E5;
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.social__icon svg { width: 19px; height: 19px; }

.social__card--ig:hover .social__icon {
    color: #F9A8D4;
    border-color: rgba(236, 72, 153, .4);
    background: rgba(236, 72, 153, .12);
}

.social__card--wa:hover .social__icon {
    color: #4ADE80;
    border-color: rgba(34, 197, 94, .45);
    background: rgba(34, 197, 94, .14);
}

.social__card--th:hover .social__icon,
.social__card--x:hover .social__icon {
    color: #fff;
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .1);
}

.social__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.social__name {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: #E9EDF6;
}

.social__handle {
    font-size: 11px;
    letter-spacing: .02em;
    color: var(--dim);
}

.social__desc {
    margin-top: 3px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--muted);
}

.social__arrow {
    margin-left: auto;
    color: var(--dim);
    transition: color .3s var(--ease), transform .3s var(--ease);
}

.social__arrow svg { width: 15px; height: 15px; }

.social__card:hover .social__arrow {
    color: #fff;
    transform: translate(2px, -2px);
}

/* ---------- contact panel ---------- */

.contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 22px;
    padding: clamp(22px, 3vw, 32px) clamp(22px, 3.4vw, 36px);
    border-radius: 18px;
    border: 1px solid rgba(34, 197, 94, .22);
    background:
        linear-gradient(120deg, rgba(34, 197, 94, .1), rgba(59, 130, 246, .06) 55%, rgba(139, 92, 246, .08));
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    backdrop-filter: blur(16px) saturate(120%);
}

.contact__title {
    margin: 0;
    font-size: 1.16rem;
    font-weight: 600;
    letter-spacing: -.02em;
}

.contact__body {
    max-width: 58ch;
    margin: 8px 0 0;
    font-size: 13.6px;
    line-height: 1.7;
    color: var(--muted);
}

.contact__cta { flex: 0 0 auto; }

/* ---------- floating WhatsApp ---------- */

.wa-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 46;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(150deg, #25D366, #128C7E);
    color: #05130B;
    text-decoration: none;
    box-shadow: 0 14px 34px -12px rgba(37, 211, 102, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
    opacity: 0;
    transform: translateY(14px) scale(.9);
    pointer-events: none;
    transition: opacity .45s var(--ease) .25s, transform .45s var(--ease) .25s,
                box-shadow .3s var(--ease);
}

.wa-fab svg { width: 26px; height: 26px; }

body.portfolio-visible .wa-fab {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.wa-fab:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 20px 42px -14px rgba(37, 211, 102, .9), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.wa-fab:focus-visible {
    outline: 2px solid rgba(37, 211, 102, .9);
    outline-offset: 3px;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
    .project--featured { grid-template-columns: 1fr; }
    .project--featured .project__visual { min-height: 280px; }
    .visual__inner { padding: 34px; }
    .about { grid-template-columns: 1fr; }
    .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stack__group:last-child { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
    .nav__links {
        position: absolute;
        top: calc(100% - 2px);
        left: 16px;
        right: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin: 0;
        padding: 10px;
        border-radius: 16px;
        border: 1px solid var(--line);
        background: rgba(8, 13, 24, .96);
        -webkit-backdrop-filter: blur(22px);
        backdrop-filter: blur(22px);
        box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .95);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    }

    .nav__links.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav__link {
        padding: 12px 14px;
        font-size: 14px;
    }

    .nav__link::after { display: none; }
    .nav__link.is-active { background: rgba(139, 92, 246, .13); color: #fff; }

    .nav__cta { margin-left: 10px; }
    .nav__toggle { display: inline-flex; }
    .lang { margin-left: auto; }
    .social { grid-template-columns: 1fr; }

    .projects__grid { grid-template-columns: 1fr; }
    .hero { padding-top: 116px; }
}

@media (max-width: 640px) {
    .nav__inner { padding: 13px 18px; gap: 10px; }
    .nav__cta { display: none; }
    .section { padding-left: 18px; padding-right: 18px; }
    .hero { padding: 104px 18px 84px; }
    .hero__title { margin-top: 20px; }
    .hero__actions { width: 100%; }
    .hero__actions .btn { flex: 1 1 200px; }
    .hero__meta { gap: 12px; font-size: 11px; }
    .hero__meta-divider { display: none; }
    .terminal { margin-top: 30px; }
    .terminal__body { font-size: 11px; padding: 12px 14px 14px; }
    .hero__scroll { display: none; }
    .stack { grid-template-columns: 1fr; }
    .stack__group:last-child { grid-column: auto; }
    .footer__inner { flex-direction: column; align-items: flex-start; }
    .footer__right { width: 100%; justify-content: space-between; }
    .project__footer { gap: 10px; }
    .project__note { display: none; }
    .about__list { padding: 8px 18px 14px; }
    .about__list > div { flex-direction: column; gap: 4px; }
    .about__list dd { text-align: left; }
    .lang__btn { padding: 4px 7px; }
    .contact { flex-direction: column; align-items: flex-start; }
    .contact__cta { width: 100%; }
    .wa-fab { width: 48px; height: 48px; right: 16px; bottom: 16px; }
    .wa-fab svg { width: 24px; height: 24px; }
    .to-top { right: 16px; bottom: 78px; }
    .intro-skip { right: 16px; bottom: 16px; }
}

@media (max-height: 720px) {
    .hero { min-height: auto; padding-top: 128px; padding-bottom: 72px; }
    .hero__scroll { display: none; }
}

/* ---------- reduced motion (portfolio only, intro untouched) ---------- */

@media (prefers-reduced-motion: reduce) {
    html.intro-finished { scroll-behavior: auto; }

    .site *,
    .site *::before,
    .site *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        transition-delay: 0s !important;
    }

    [data-reveal] { opacity: 1; transform: none; }

    .caret { animation: none; opacity: 1; }
    .status__dot::after { display: none; }
    .hero__scroll-line::after { display: none; }

    .project--featured:hover,
    .project--card:hover,
    .stack__group:hover,
    .btn:hover { transform: none; }
}

/* ---------- cursor spotlight ---------- */

.spotlight {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity .55s ease;
    background:
        radial-gradient(580px circle at var(--sx, 50%) var(--sy, 50%),
            rgba(139, 92, 246, .26),
            rgba(59, 130, 246, .15) 40%,
            rgba(139, 92, 246, .05) 62%,
            transparent 76%),
        radial-gradient(230px circle at var(--sx, 50%) var(--sy, 50%),
            rgba(196, 181, 253, .16),
            transparent 72%);
}

.spotlight.is-on { opacity: 1; }

@media (hover: none), (pointer: coarse) {
    .spotlight { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .spotlight { display: none; }
}

/* clickable project cards */

.project[data-project] { cursor: pointer; }

/* ---------- project detail page ---------- */

.detail { padding: 122px 0 0; }

.detail__wrap {
    width: min(100% - 48px, 1080px);
    margin: 0 auto;
    padding-bottom: clamp(56px, 8vw, 96px);
}

.detail__back { margin: 0 0 26px; font-size: 11px; letter-spacing: .06em; }

.detail__back a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #9BABC2;
    text-decoration: none;
    transition: color .25s var(--ease);
}

.detail__back a:hover { color: #fff; }

.detail__head { margin-bottom: clamp(28px, 4vw, 40px); }

.detail__title {
    margin: 12px 0 0;
    font-size: clamp(2.1rem, 5.4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.05;
}

.detail__tagline {
    max-width: 62ch;
    margin: 14px 0 0;
    font-size: clamp(15px, 2vw, 17.5px);
    line-height: 1.65;
    color: #C3CEE0;
}

.detail__about {
    max-width: 68ch;
    margin: 12px 0 0;
    font-size: 14.4px;
    line-height: 1.75;
    color: var(--muted);
}

.detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr);
    gap: 22px;
    align-items: start;
    margin-top: clamp(30px, 4vw, 44px);
}

.detail__col { display: grid; gap: 20px; min-width: 0; }

.detail__block,
.detail__card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    backdrop-filter: blur(16px) saturate(120%);
    box-shadow: 0 32px 72px -50px rgba(0, 0, 0, .95);
}

.detail__block { padding: clamp(20px, 2.6vw, 28px); }
.detail__card { padding: 22px; }

.detail__h2 {
    margin: 0 0 16px;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

.detail__h2row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
}

.detail__readme-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 14px;
    font-size: 10.5px;
    letter-spacing: .04em;
    color: #93A4BC;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .25s var(--ease), border-color .25s var(--ease);
}

.detail__readme-link:hover { color: #fff; border-color: rgba(139, 92, 246, .45); }

.detail__features {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail__features li {
    position: relative;
    padding-left: 18px;
    font-size: 13.6px;
    line-height: 1.65;
    color: #A9B8CD;
}

.detail__features li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--blue) 60%, var(--green));
    box-shadow: 0 0 8px rgba(139, 92, 246, .6);
}

.detail__steps {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.detail__step {
    position: relative;
    padding-left: 40px;
    counter-increment: step;
}

.detail__step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 1px;
    left: 0;
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 9px;
    border: 1px solid rgba(139, 92, 246, .32);
    background: rgba(139, 92, 246, .09);
    font-family: var(--mono);
    font-size: 10px;
    color: #C4B5FD;
}

.detail__step-title {
    margin: 4px 0 6px;
    font-size: 13.8px;
    font-weight: 600;
    letter-spacing: -.005em;
}

.detail__step-text {
    margin: 0;
    font-size: 13.4px;
    line-height: 1.68;
    color: var(--muted);
}

.detail__step-note {
    margin: 10px 0 0;
    padding: 9px 12px;
    border-left: 2px solid rgba(139, 92, 246, .45);
    border-radius: 0 8px 8px 0;
    background: rgba(139, 92, 246, .07);
    font-size: 12.2px;
    line-height: 1.62;
    color: #B6C4D8;
}

.detail__step-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 11px;
}

.detail__step-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    font-size: 10.5px;
    letter-spacing: .03em;
    color: #C9D6E8;
    text-decoration: none;
    transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}

.detail__step-link .icon { width: 13px; height: 13px; }

.detail__step-link:hover {
    color: #fff;
    border-color: rgba(139, 92, 246, .5);
    background: rgba(139, 92, 246, .1);
}

.detail__step-link--primary {
    border-color: rgba(139, 92, 246, .45);
    background: linear-gradient(135deg, rgba(139, 92, 246, .22), rgba(59, 130, 246, .16));
    color: #EDE9FE;
}

.detail__code {
    margin: 11px 0 0;
    padding: 12px 14px;
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(4, 7, 13, .78);
    font-size: 11.5px;
    line-height: 1.7;
    color: #C9D6E8;
    white-space: pre;
}

.detail__note {
    margin: 20px 0 0;
    font-size: 10px;
    letter-spacing: .04em;
    color: var(--dim);
}

.detail__readme-h {
    margin: 0 0 6px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #C4B5FD;
}

.detail__readme-p {
    margin: 0 0 18px;
    font-size: 13.6px;
    line-height: 1.72;
    color: var(--muted);
}

.detail__readme > :last-child { margin-bottom: 0; }

.detail__side {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 16px;
}

.detail__h3 {
    margin: 0 0 12px;
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--dim);
}

.detail__platforms + .detail__h3,
.detail__meta + .detail__h3 { margin-top: 30px; }

.detail__platforms {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail__platform {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.detail__platform:last-child { border-bottom: 0; padding-bottom: 0; }

.detail__platform-name { font-size: 13px; color: #C3CEE0; }
.detail__platform-note { font-size: 9.5px; color: var(--dim); }

.detail__meta {
    display: grid;
    gap: 9px;
    margin: 0;
    font-size: 11px;
}

.detail__meta-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.detail__meta-row dt { color: var(--dim); }
.detail__meta-row dd { margin: 0; text-align: right; color: #B8C5D8; }

.detail__next {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 12px;
    padding: 18px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(150deg, rgba(139, 92, 246, .12), rgba(8, 13, 24, .7));
    text-decoration: none;
    transition: border-color .3s var(--ease), transform .3s var(--ease);
}

.detail__next:hover { border-color: rgba(139, 92, 246, .42); transform: translateY(-2px); }

.detail__next-label {
    grid-column: 1 / -1;
    font-size: 9.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dim);
}

.detail__next-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.02em;
    color: #E9EDF6;
}

.detail__next .icon { color: #C4B5FD; }

.detail__missing { padding: 40px 0 80px; }
.detail__missing .detail__about { margin-bottom: 22px; }

@media (max-width: 880px) {
    .detail { padding-top: 104px; }
    .detail__layout { grid-template-columns: minmax(0, 1fr); }
    .detail__side { position: static; }
    .detail__wrap { width: min(100% - 36px, 1080px); }
}

@media (max-width: 640px) {
    .detail__wrap { width: min(100% - 32px, 1080px); }
    .detail__step { padding-left: 36px; }
}

.project__footer .project__note { margin-left: auto; }
