﻿:root {
    --ink: #17212b;
    --paper: #fbfaf6;
    --line: rgba(23, 33, 43, .14);
    --mint: #10b981;
    --sun: #f6b73c;
    --coral: #ef476f;
    --sky: #168aad;
    --blue: #3156d4;
    --white: #ffffff;
    --shadow: 0 22px 70px rgba(23, 33, 43, .14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        linear-gradient(90deg, rgba(23, 33, 43, .04) 1px, transparent 1px),
        linear-gradient(rgba(23, 33, 43, .04) 1px, transparent 1px),
        var(--paper);
    background-size: 34px 34px;
    overflow-x: hidden;
}

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

.page {
    min-height: 100vh;
}

.creative-nav {
    position: fixed;
    right: 18px;
    top: 50%;
    z-index: 20;
    display: grid;
    gap: 10px;
    transform: translateY(-50%);
}

.nav-chip {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 10px 24px rgba(23, 33, 43, .09);
    font-weight: 900;
    transition: transform .2s ease, background .2s ease, color .2s ease;
    backdrop-filter: blur(14px);
}

.nav-chip:hover,
.nav-chip.is-active {
    color: var(--white);
    background: var(--ink);
    transform: translateX(-6px) rotate(-4deg);
}

.nav-chip i {
    font-size: 1rem;
    line-height: 1;
}

.hero {
    min-height: 96vh;
    display: grid;
    align-items: center;
    padding: 56px clamp(20px, 6vw, 92px) 76px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, .96fr);
    gap: clamp(28px, 6vw, 76px);
    align-items: center;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.kicker {
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 6px 6px 0 var(--sun);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    font-size: clamp(1.55rem, 2.4vw, 2.2rem);
    font-weight: 950;
    text-transform: uppercase;
    line-height: .95;
}

.brand-mark img {
    width: clamp(56px, 6vw, 70px);
    aspect-ratio: 1;
    border: 2px solid var(--ink);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 5px 5px 0 var(--mint);
    object-fit: cover;
    flex: 0 0 auto;
}

.brand-mark small {
    display: block;
    color: #596875;
    margin-top: 6px;
    font-size: clamp(.78rem, 1vw, .94rem);
    font-weight: 850;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.25;
}

h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(3.1rem, 8vw, 7.7rem);
    line-height: .88;
    letter-spacing: 0;
}

.hero h1 span {
    color: transparent;
    -webkit-text-stroke: 2px var(--ink);
    text-shadow: 8px 8px 0 rgba(16, 185, 129, .28);
}

.hero-copy {
    max-width: 660px;
    margin: 26px 0 0;
    color: #41515f;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.8;
}

.hero-profile-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
}

.avatar-panel {
    display: inline-grid;
    align-items: center;
    padding: 5px;
    border: 2px solid var(--ink);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 7px 7px 0 var(--mint);
}

.avatar {
    width: 140px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;

    border-radius: 8px;
    /*   background:
        radial-gradient(circle at 70% 20%, rgba(246, 183, 60, .88), transparent 28%),
        linear-gradient(135deg, var(--sky), var(--mint)); */
    color: var(--white);
    font-size: 1.65rem;
    font-weight: 950;
}

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

.brand-link {
    color: var(--blue);
    font-weight: 950;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid var(--ink);
    border-radius: 8px;
    background: var(--ink);
    color: var(--white);
    font-weight: 900;
    box-shadow: 5px 5px 0 var(--coral);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn.secondary {
    color: var(--ink);
    background: var(--white);
    box-shadow: 5px 5px 0 var(--mint);
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--sun);
}

.dev-console {
    position: relative;
    border: 2px solid var(--ink);
    border-radius: 8px;
    overflow: hidden;
    background: #101820;
    color: #d9f99d;
    box-shadow: var(--shadow), 13px 13px 0 var(--sky);
    transform: rotate(1.4deg);
}

.console-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    height: 42px;
    padding: 0 14px;
    background: #f7f4eb;
    border-bottom: 2px solid var(--ink);
}

.dot {
    width: 12px;
    height: 12px;
    border: 1px solid var(--ink);
    border-radius: 50%;
}

.dot:nth-child(1) {
    background: var(--coral);
}

.dot:nth-child(2) {
    background: var(--sun);
}

.dot:nth-child(3) {
    background: var(--mint);
}

.console-body {
    padding: 24px 24px 50px 24px;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: clamp(.86rem, 1.2vw, 1rem);
    line-height: 1.85;
}

.prompt {
    color: #67e8f9;
}

.type-line::after {
    content: "";
    display: inline-block;
    width: 9px;
    height: 1.1em;
    margin-left: 4px;
    background: var(--sun);
    vertical-align: text-bottom;
    animation: blink 1s steps(2, start) infinite;
}

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

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: min(1180px, calc(100% - 40px));
    margin: 26px auto 82px;
    padding: 16px;
    border: 2px solid var(--ink);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(63, 167, 214, .14) 1px, transparent 1px),
        linear-gradient(0deg, rgba(23, 33, 43, .08) 1px, transparent 1px),
        #fff8e8;
    background-size: 34px 34px;
    box-shadow: 12px 12px 0 var(--ink);
    position: relative;
    z-index: 2;
    counter-reset: stat;
}

.stats-strip::before {
    content: "Experiences";
    position: absolute;
    left: 18px;
    top: -17px;
    padding: 5px 12px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--sun);
    color: var(--ink);
    font-size: .74rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.stat {
    position: relative;
    min-height: 154px;
    padding: 24px 20px 20px;
    overflow: hidden;
    border: 2px solid var(--ink);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 6px 6px 0 rgba(23, 33, 43, .16);
    transition: transform .2s ease, box-shadow .2s ease;
    counter-increment: stat;
}

.stat::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 8px;
    background: var(--blue);
}

.stat::after {
    content: "0" counter(stat);
    position: absolute;
    right: 14px;
    bottom: 12px;
    color: rgba(23, 33, 43, .08);
    font-size: 3.5rem;
    font-weight: 950;
    line-height: 1;
}

.stat:hover {
    transform: translate(-3px, -3px);
    box-shadow: 10px 10px 0 var(--ink);
}

.stat:nth-child(1) {
    transform: rotate(-1.2deg);
}

.stat:nth-child(2) {
    transform: translateY(10px);
}

.stat:nth-child(3) {
    transform: rotate(1deg);
}

.stat:nth-child(4) {
    transform: translateY(-6px);
}

.stat:nth-child(2)::before {
    background: var(--coral);
}

.stat:nth-child(3)::before {
    background: var(--mint);
}

.stat:nth-child(4)::before {
    background: var(--sun);
}

.stat:nth-child(1):hover,
.stat:nth-child(2):hover,
.stat:nth-child(3):hover,
.stat:nth-child(4):hover {
    transform: translate(-3px, -3px);
}

.stat strong {
    display: block;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    position: relative;
    z-index: 1;
}

.stat span {
    display: block;
    margin-top: 10px;
    color: #596875;
    line-height: 1.45;
    position: relative;
    z-index: 1;
}

section {
    padding: 86px clamp(20px, 6vw, 92px);
}

.section-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.section-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 480px);
    gap: 24px;
    align-items: end;
    margin-bottom: 34px;
}

h2 {
    margin: 0;
    font-size: clamp(2.3rem, 5vw, 4.9rem);
    line-height: .95;
    letter-spacing: 0;
}

.section-title p {
    margin: 0;
    color: #596875;
    line-height: 1.75;
}

.skill-board {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: 500px;
    border: 2px solid var(--ink);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.skill-tabs {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 18px;
    border-right: 2px solid var(--ink);
    background: #f5f1e5;
}

.skill-tab {
    width: 100%;
    padding: 14px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-weight: 900;
    text-align: left;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.skill-tab:hover,
.skill-tab.is-active {
    color: var(--white);
    background: var(--ink);
    transform: translateX(5px);
}

.skill-stage {
    position: relative;
    padding: 22px;
    overflow: hidden;
}

.skill-stage::before {
    content: "";
    position: absolute;
    inset: 22px;
    background:
        linear-gradient(90deg, rgba(23, 33, 43, .07) 1px, transparent 1px),
        linear-gradient(rgba(23, 33, 43, .07) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.skill-tree {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.skill-node {
    position: relative;
    min-height: 124px;
    padding: 14px 14px 13px 16px;
    border: 1px solid rgba(23, 33, 43, .14);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 250, 249, .96)),
        var(--white);
    box-shadow: 0 12px 30px rgba(23, 33, 43, .09);
    transform: translateY(8px);
    opacity: 0;
    animation: popIn .48s ease forwards;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.skill-node::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--mint), var(--blue));
}

.skill-node::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 0;
    height: 1px;
    background: rgba(255, 255, 255, .95);
}

.skill-node:hover {
    border-color: rgba(23, 33, 43, .24);
    box-shadow: 0 16px 38px rgba(23, 33, 43, .13);
    transform: translateY(-2px);
}

.skill-node:nth-child(2) {
    animation-delay: .06s;
}

.skill-node:nth-child(3) {
    animation-delay: .12s;
}

.skill-node:nth-child(4) {
    animation-delay: .18s;
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-node h3 {
    margin: 0;
    min-width: 0;
    font-size: 1.08rem;
    overflow-wrap: anywhere;
}

.node-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.node-status {
    flex: 0 0 auto;
    padding: 4px 7px;
    border: 1px solid rgba(22, 138, 173, .2);
    border-radius: 999px;
    background: rgba(22, 138, 173, .08);
    color: #14687e;
    font-size: .66rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.meter {
    height: 8px;
    border: 1px solid rgba(23, 33, 43, .12);
    border-radius: 999px;
    background: #edf1f0;
    overflow: hidden;
}

.meter span {
    display: block;
    height: 100%;
    width: var(--level);
    background: linear-gradient(90deg, #168aad, #4fb286);
    transform-origin: left;
    animation: fillBar .8s ease both;
}

@keyframes fillBar {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.node-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 9px;
    color: #596875;
    font-size: .82rem;
    font-weight: 800;
}

.node-note {
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid rgba(23, 33, 43, .08);
    color: #40505c;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.35;
}

.projects {
    background: #17212b;
    color: var(--white);
}

.projects .section-title p {
    color: rgba(255, 255, 255, .68);
}

.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.filter-btn {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: var(--white);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.filter-btn.is-active,
.filter-btn:hover {
    background: var(--sun);
    color: var(--ink);
}

.project-more {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

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

.project-card {
    position: relative;
    min-height: 440px;
    display: grid;
    align-content: end;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
    cursor: pointer;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(135deg, rgba(14, 165, 233, .35), rgba(16, 185, 129, .25)), rgba(15, 23, 42, .92);
    background-position: center;
    background-size: cover;
    transition: transform .45s ease;
}

.project-card.is-image-ready::before {
    background-image: var(--image);
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(0, 0, 0, .86), rgba(0, 0, 0, .34), rgba(0, 0, 0, .08));
}

.project-card:hover::before {
    transform: scale(1.08) rotate(1deg);
}

.project-card:focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 4px;
}

.project-body {
    padding: 24px;
}

.project-tag {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 10px;
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.project-card h3 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    letter-spacing: 0;
}

.project-card p {
    max-width: 650px;
    color: rgba(255, 255, 255, .78);
    line-height: 1.65;
}

.stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stack span {
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    font-size: .82rem;
    font-weight: 800;
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 24px;
}

.project-modal.is-open {
    display: grid;
}

.project-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, .82);
    backdrop-filter: blur(10px);
}

.project-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1080px, 100%);
    max-height: min(88vh, 900px);
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    color: #fff;
    background: rgba(15, 23, 42, .96);
    box-shadow: 0 32px 90px rgba(0, 0, 0, .42);
}

.project-modal__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: center;
    gap: 14px;
}

.project-modal__dialog h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2.4vw, 2rem);
    line-height: 1.2;
}

.project-modal__close {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}

.project-modal__close:hover,
.project-modal__close:focus-visible {
    background: rgba(255, 255, 255, .22);
}

.project-modal__image {
    width: 100%;
    max-height: calc(88vh - 120px);
    display: block;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
}

body.project-modal-open {
    overflow: hidden;
}

.journey {
    background:
        linear-gradient(120deg, rgba(246, 183, 60, .24), transparent 35%),
        linear-gradient(300deg, rgba(22, 138, 173, .19), transparent 42%),
        #fbfaf6;
}

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

.timeline-card {
    position: relative;
    min-height: 300px;
    padding: 22px;
    border: 2px solid var(--ink);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 8px 8px 0 rgba(16, 185, 129, .18);
    transition: transform .2s ease, box-shadow .2s ease;
}

.timeline-card:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 12px 12px 0 rgba(239, 71, 111, .22);
}

.timeline-year {
    display: inline-grid;
    place-items: center;
    min-width: 72px;
    min-height: 46px;
    margin-bottom: 22px;
    border: 2px solid var(--ink);
    border-radius: 8px;
    background: var(--sun);
    font-size: 1.2rem;
    font-weight: 950;
}

.timeline-card h3 {
    margin: 0 0 12px;
    font-size: 1.4rem;
}

.timeline-card p {
    margin: 0;
    color: #596875;
    line-height: 1.7;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(300px, 1.14fr);
    gap: 24px;
    align-items: stretch;
}

.logic-card,
.about-card {
    border: 2px solid var(--ink);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.logic-card {
    padding: 24px;
    background: #101820;
    color: var(--white);
    font-family: "JetBrains Mono", Consolas, monospace;
}

.logic-line {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .18);
}

.logic-line:last-child {
    border-bottom: 0;
}

.logic-line b {
    color: var(--sun);
}

.about-card {
    padding: clamp(24px, 4vw, 46px);
}

.about-card p {
    margin: 0 0 18px;
    color: #41515f;
    font-size: 1.05rem;
    line-height: 1.85;
}

.contact-band {
    padding-top: 40px;
    padding-bottom: 110px;
    background:
        linear-gradient(135deg, rgba(16, 185, 129, .18), transparent 34%),
        linear-gradient(315deg, rgba(239, 71, 111, .16), transparent 38%),
        var(--paper);
}

.contact-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
    gap: clamp(22px, 4vw, 44px);
    align-items: center;
    padding: clamp(24px, 5vw, 48px);
    border: 2px solid var(--ink);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .84)),
        radial-gradient(circle at 14% 20%, rgba(246, 183, 60, .32), transparent 30%),
        radial-gradient(circle at 88% 82%, rgba(22, 138, 173, .2), transparent 28%);
    box-shadow: 14px 14px 0 var(--blue), var(--shadow);
    overflow: hidden;
}

.contact-panel::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px dashed rgba(23, 33, 43, .22);
    border-radius: 8px;
    pointer-events: none;
}

.contact-panel::after {
    content: "START";
    position: absolute;
    right: -26px;
    top: 26px;
    padding: 8px 44px;
    border: 2px solid var(--ink);
    background: var(--sun);
    color: var(--ink);
    font-weight: 950;
    transform: rotate(18deg);
    box-shadow: 4px 4px 0 var(--coral);
}

.contact-copy,
.contact-stage {
    position: relative;
    z-index: 1;
}

.contact-panel h2 {
    font-size: clamp(2rem, 4vw, 4rem);
}

.contact-panel p {
    max-width: 680px;
    color: #596875;
    line-height: 1.7;
}

.contact-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--ink);
    border-radius: 8px;
    background: var(--white);
    font-weight: 900;
    box-shadow: 4px 4px 0 rgba(16, 185, 129, .24);
}

.contact-stage {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 2px solid var(--ink);
    border-radius: 8px;
    background: #101820;
    color: var(--white);
    box-shadow: 9px 9px 0 rgba(23, 33, 43, .18);
}

.contact-terminal {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    font-family: "JetBrains Mono", Consolas, monospace;
    line-height: 1.8;
}

.contact-terminal b {
    color: var(--sun);
}

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

.contact-item {
    position: relative;
    min-height: 112px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
    overflow: hidden;
}

.contact-item::before {
    content: "";
    position: absolute;
    width: 36px;
    height: 36px;
    right: 12px;
    top: 12px;
    border-radius: 8px;
    background: var(--sun);
    opacity: .18;
    transform: rotate(12deg);
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, .13);
    border-color: rgba(255, 255, 255, .42);
}

.contact-item b {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .72);
}

.contact-icon {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(246, 183, 60, .18);
    color: var(--sun);
    font-size: 1rem;
    letter-spacing: 0;
}

.contact-value {
    position: relative;
    z-index: 1;
    display: block;
    color: var(--white);
    line-height: 1.5;
    overflow-wrap: anywhere;
    font-weight: 850;
}

.contact-empty {
    display: grid;
    gap: 8px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.contact-empty strong {
    color: var(--sun);
    font-size: 1.1rem;
}

.contact-empty span {
    color: rgba(255, 255, 255, .74);
    line-height: 1.65;
}

.story-footer {
    padding: 0 clamp(20px, 6vw, 92px) 58px;
    background: var(--paper);
}

.story-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
    gap: clamp(20px, 4vw, 44px);
    align-items: center;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: clamp(24px, 5vw, 46px);
    border: 2px solid var(--ink);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(246, 183, 60, .24), transparent 38%),
        linear-gradient(315deg, rgba(63, 167, 214, .2), transparent 42%),
        var(--white);
    box-shadow: 12px 12px 0 var(--coral), var(--shadow);
    overflow: hidden;
}

.story-panel::before {
    content: "Origin story";
    position: absolute;
    top: 18px;
    right: -28px;
    padding: 8px 42px;
    border: 2px solid var(--ink);
    background: var(--mint);
    color: var(--ink);
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
    transform: rotate(16deg);
    box-shadow: 4px 4px 0 var(--ink);
}

.story-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--sun);
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.story-panel h2 {
    margin-top: 16px;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: .95;
}

.story-panel p {
    margin: 18px 0 0;
    color: #41515f;
    font-size: 1.08rem;
    line-height: 1.8;
}

.story-path {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 2px solid var(--ink);
    border-radius: 8px;
    background: #101820;
    box-shadow: 8px 8px 0 rgba(23, 33, 43, .16);
}

.story-step {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
}

.story-step b {
    display: grid;
    place-items: center;
    width: 20px;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    background: var(--sun);
    color: var(--ink);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-weight: 950;
}

.story-step strong {
    display: block;
    color: var(--white);
    font-size: 1.02rem;
}

.story-step span {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, .72);
    line-height: 1.55;
}

.footer-note {
    width: min(1180px, 100%);
    margin: 24px auto 0;
    color: #596875;
    font-size: .95rem;
    font-weight: 850;
    text-align: center;
}

.footer-note strong {
    color: var(--ink);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .55s ease, transform .55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .creative-nav {
        display: none;
    }

    .nav-chip {
        width: auto;
        height: 44px;
    }

    .hero-grid,
    .section-title,
    .skill-board,
    .about-grid,
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .stats-strip,
    .project-grid,
    .timeline,
    .contact-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skill-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-right: 0;
        border-bottom: 2px solid var(--ink);
    }

    .contact-panel::after {
        right: -34px;
        top: 18px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 28px;
        padding-bottom: 56px;
    }

    .dev-console {
        transform: none;
    }

    .console-body {
        min-height: 330px;
        padding: 18px;
    }

    .hero-profile-row {
        align-items: stretch;
        gap: 14px;
    }

    .hero-actions {
        flex: 1;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
    }

    .hero-actions .btn {
        width: 100%;
        min-width: 0;
        padding-inline: 12px;
    }

    .stats-strip,
    .project-grid,
    .timeline,
    .skill-tree,
    .contact-list {
        grid-template-columns: 1fr;
    }

    .stats-strip {
        gap: 12px;
        padding: 14px;
        box-shadow: 7px 7px 0 var(--ink);
    }

    .stat,
    .stat:nth-child(1),
    .stat:nth-child(2),
    .stat:nth-child(3),
    .stat:nth-child(4) {
        min-height: 128px;
        transform: none;
    }

    .skill-tabs {
        display: flex;
        grid-template-columns: none;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 14px max(14px, calc(50% - 84px));
        scroll-snap-type: x proximity;
        scroll-padding-inline: max(14px, calc(50% - 84px));
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .skill-tabs::-webkit-scrollbar {
        display: none;
    }

    .skill-tab {
        flex: 0 0 168px;
        width: auto;
        text-align: center;
        white-space: nowrap;
        scroll-snap-align: center;
    }

    .skill-stage {
        padding: 16px;
    }

    .skill-stage::before {
        inset: 16px;
    }

    .skill-tree {
        gap: 12px;
    }

    .skill-node {
        min-height: 112px;
        padding: 13px 13px 12px 15px;
    }

    .contact-panel {
        box-shadow: 8px 8px 0 var(--blue), var(--shadow);
    }

    .contact-panel::after {
        display: none;
    }

    .story-footer {
        padding-bottom: 92px;
    }

    .story-panel {
        grid-template-columns: 1fr;
        box-shadow: 7px 7px 0 var(--coral), var(--shadow);
    }

    .story-panel::before {
        display: none;
    }

    .story-step {
        grid-template-columns: 30px minmax(0, 1fr);
        padding: 12px;
    }

    .story-step b {
        width: 20px;
    }

    .project-card {
        min-height: 390px;
    }

    .project-modal {
        padding: 12px;
    }

    .project-modal__dialog {
        max-height: 92vh;
        padding: 14px;
    }

    .project-modal__image {
        max-height: calc(92vh - 110px);
    }

    section {
        padding-block: 64px;
    }
}
