:root {
    --bg: #f5f5f7;
    --surface: rgba(255, 255, 255, 0.68);
    --surface-solid: #ffffff;

    --text: #1d1d1f;
    --secondary: #6e6e73;
    --tertiary: #86868b;

    --line: rgba(0, 0, 0, 0.09);

    --radius: 28px;
    --max: 1180px;
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    background:
        radial-gradient(
            circle at 50% -10%,
            #ffffff 0,
            var(--bg) 45%
        );

    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        system-ui,
        sans-serif;

    -webkit-font-smoothing: antialiased;

    overflow-x: hidden;
}


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


::selection {
    background: #1d1d1f;
    color: white;
}


/* --------------------------------
   NAVIGATION
-------------------------------- */

.nav-shell {
    position: fixed;

    top: 18px;
    left: 50%;

    transform: translateX(-50%);

    width: min(
        calc(100% - 32px),
        760px
    );

    z-index: 100;
}


.nav-material {
    display: flex;
    align-items: center;

    min-height: 54px;

    padding: 7px 8px 7px 18px;

    background: rgba(255, 255, 255, 0.68);

    border: 1px solid rgba(255, 255, 255, 0.8);

    border-radius: 999px;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);

    backdrop-filter:
        blur(24px)
        saturate(180%);

    -webkit-backdrop-filter:
        blur(24px)
        saturate(180%);
}


.brand {
    font-size: 16px;
    font-weight: 650;

    letter-spacing: -0.035em;
}


.brand span {
    color: var(--secondary);
}


.nav-items {
    display: flex;

    gap: 28px;

    margin: auto;
}


.nav-items a,
.nav-contact {
    color: var(--secondary);

    font-size: 13px;
    font-weight: 500;

    transition:
        color 180ms ease,
        transform 180ms ease;
}


.nav-items a:hover,
.nav-contact:hover {
    color: var(--text);
}


.nav-contact {
    padding: 9px 15px;

    background: var(--text);
    color: white;

    border-radius: 999px;
}


/* --------------------------------
   GENERAL
-------------------------------- */

main {
    width: min(
        calc(100% - 48px),
        var(--max)
    );

    margin: auto;
}


.section {
    padding: 160px 0;
}


.section-label {
    display: flex;
    justify-content: space-between;

    padding-bottom: 22px;

    border-bottom: 1px solid var(--line);

    color: var(--tertiary);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.12em;
}


.eyebrow {
    margin: 0;

    color: var(--tertiary);

    font-size: 11px;
    font-weight: 650;

    letter-spacing: 0.12em;
}


h1,
h2,
h3,
p {
    margin-top: 0;
}


h1,
h2,
h3 {
    font-weight: 600;
}


/* --------------------------------
   HERO
-------------------------------- */

.hero {
    min-height: 100svh;

    display: flex;
    flex-direction: column;
    justify-content: center;

    position: relative;
}


.hero-inner {
    max-width: 980px;

    padding-top: 80px;
}


.hero h1 {
    margin: 24px 0 0;

    font-size:
        clamp(
            58px,
            9vw,
            116px
        );

    line-height: 0.94;

    letter-spacing: -0.065em;
}


.hero h1 span {
    color: var(--secondary);
}


.hero-copy {
    max-width: 540px;

    margin: 38px 0 0;

    color: var(--secondary);

    font-size: clamp(
        17px,
        2vw,
        21px
    );

    line-height: 1.45;
}


.hero-actions {
    display: flex;
    gap: 10px;

    margin-top: 34px;
}


.button {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 0 20px;

    border-radius: 999px;

    font-size: 14px;
    font-weight: 600;

    transition:
        transform 180ms ease,
        background 180ms ease;
}


.button:active {
    transform: scale(0.965);
}


.button-primary {
    background: var(--text);
    color: white;
}


.button-secondary {
    background: rgba(255,255,255,0.65);

    border: 1px solid var(--line);
}


.hero-meta {
    position: absolute;

    bottom: 28px;
    left: 0;
    right: 0;

    display: flex;
    justify-content: space-between;

    color: var(--tertiary);

    font-size: 11px;
}


/* --------------------------------
   INTRO
-------------------------------- */

.intro-content {
    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(300px, 0.9fr);

    gap: 100px;

    padding-top: 65px;
}


.intro h2 {
    margin: 0;

    font-size:
        clamp(44px, 6vw, 76px);

    line-height: 0.98;

    letter-spacing: -0.055em;
}


.intro em,
.skills em,
.about em {
    color: var(--secondary);

    font-style: normal;
}


.intro-content p {
    max-width: 500px;

    margin: 5px 0 0;

    color: var(--secondary);

    font-size: 19px;

    line-height: 1.55;
}


/* --------------------------------
   FEATURED PROJECT
-------------------------------- */

.project-feature {
    display: grid;

    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(300px, 0.75fr);

    gap: 70px;

    margin-top: 70px;
}


.project-visual {
    min-height: 580px;

    position: relative;

    overflow: hidden;

    border-radius: var(--radius);

    background:
        linear-gradient(
            135deg,
            #dfe3e8,
            #f7f7f7
        );

    box-shadow:
        inset 0 1px rgba(255,255,255,0.8),
        0 25px 70px rgba(0,0,0,0.08);
}


.visual-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(0,0,0,0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0,0,0,0.035) 1px,
            transparent 1px
        );

    background-size: 40px 40px;
}


.server-interface {
    position: absolute;

    width: min(80%, 520px);

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%)
        rotate(-3deg);

    padding: 24px;

    border-radius: 22px;

    background:
        rgba(28, 28, 30, 0.9);

    color: white;

    box-shadow:
        0 40px 80px rgba(0,0,0,0.25);
}


.interface-top {
    display: flex;
    justify-content: space-between;

    color: #aaa;

    font-size: 11px;
    letter-spacing: 0.08em;
}


.status {
    display: flex;
    align-items: center;

    gap: 6px;
}


.status i {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #34c759;
}


.interface-content {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

    margin-top: 80px;
}


.interface-content div {
    padding: 16px;

    border-radius: 12px;

    background: rgba(255,255,255,0.07);
}


.interface-content small {
    display: block;

    color: #888;

    font-size: 9px;
}


.interface-content strong {
    display: block;

    margin-top: 5px;

    font-size: 18px;
}


.project-info {
    display: flex;
    flex-direction: column;

    justify-content: center;
}


.project-index {
    color: var(--tertiary);

    font-size: 12px;
}


.project-type {
    margin: 24px 0 10px;

    color: var(--tertiary);

    font-size: 10px;
    font-weight: 650;

    letter-spacing: 0.12em;
}


.project-info h3 {
    margin: 0;

    font-size:
        clamp(42px, 5vw, 66px);

    line-height: 0.95;

    letter-spacing: -0.055em;
}


.project-description {
    max-width: 440px;

    margin: 30px 0 0;

    color: var(--secondary);

    font-size: 17px;

    line-height: 1.5;
}


.project-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 28px;
}


.project-tags span {
    padding: 6px 10px;

    border: 1px solid var(--line);

    border-radius: 999px;

    color: var(--secondary);

    font-size: 11px;
}


.text-link {
    width: fit-content;

    margin-top: 38px;

    font-size: 14px;
    font-weight: 600;
}


.text-link span {
    display: inline-block;

    margin-left: 5px;

    transition: transform 220ms ease;
}


.text-link:hover span {
    transform: translateX(4px);
}


/* --------------------------------
   PROJECT ROWS
-------------------------------- */

.project-list {
    margin-top: 110px;

    border-top: 1px solid var(--line);
}


.project-row {
    display: grid;

    grid-template-columns:
        70px
        1fr
        50px;

    gap: 30px;

    align-items: center;

    min-height: 190px;

    border-bottom: 1px solid var(--line);

    transition:
        background 300ms ease,
        padding 350ms cubic-bezier(.2,.8,.2,1);
}


.project-row:hover {
    padding-left: 20px;
    padding-right: 20px;
}


.project-number {
    color: var(--tertiary);

    font-size: 12px;
}


.project-main {
    display: grid;

    grid-template-columns:
        minmax(260px, 1fr)
        minmax(250px, 0.7fr);

    gap: 50px;

    align-items: center;
}


.project-main h3 {
    margin: 0;

    font-size: 28px;

    letter-spacing: -0.035em;
}


.project-main .project-type {
    margin-top: 0;
}


.project-main > p {
    margin: 0;

    color: var(--secondary);

    font-size: 15px;

    line-height: 1.5;
}


.project-arrow {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(255,255,255,0.7);

    border: 1px solid var(--line);

    font-size: 16px;

    transition:
        transform 300ms cubic-bezier(.2,.8,.2,1),
        background 200ms ease;
}


.project-row:hover .project-arrow {
    transform: rotate(0deg) scale(1.08);

    background: white;
}


/* --------------------------------
   SKILLS
-------------------------------- */

.skills-layout {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 120px;

    padding-top: 70px;
}


.skills h2 {
    margin: 0;

    font-size:
        clamp(45px, 6vw, 76px);

    line-height: 0.98;

    letter-spacing: -0.055em;
}


.skill-groups {
    border-top: 1px solid var(--line);
}


.skill-group {
    display: grid;

    grid-template-columns: 50px 1fr;

    gap: 20px;

    padding: 25px 0;

    border-bottom: 1px solid var(--line);
}


.skill-group > span {
    color: var(--tertiary);

    font-size: 11px;
}


.skill-group h3 {
    margin: 0;

    font-size: 18px;
}


.skill-group p {
    margin: 7px 0 0;

    color: var(--secondary);

    font-size: 14px;
}


/* --------------------------------
   EDUCATION
-------------------------------- */

.education-list {
    margin-top: 60px;
}


.education-item {
    display: grid;

    grid-template-columns: 70px 1fr;

    padding: 28px 0;

    border-bottom: 1px solid var(--line);
}


.education-item > span {
    color: var(--tertiary);

    font-size: 11px;
}


.education-item h3 {
    margin: 0;

    font-size: 20px;

    letter-spacing: -0.025em;
}


.education-item p {
    margin: 4px 0 0;

    color: var(--secondary);

    font-size: 14px;
}


/* --------------------------------
   ABOUT
-------------------------------- */

.about-content {
    max-width: 900px;

    padding-top: 70px;
}


.about h2 {
    margin: 0;

    font-size:
        clamp(45px, 6vw, 82px);

    line-height: 0.97;

    letter-spacing: -0.06em;
}


.about-content p {
    max-width: 580px;

    margin-top: 42px;

    color: var(--secondary);

    font-size: 19px;

    line-height: 1.55;
}


/* --------------------------------
   CONTACT
-------------------------------- */

.contact {
    padding: 180px 0 220px;

    text-align: center;
}


.contact h2 {
    margin: 20px 0;

    font-size:
        clamp(60px, 11vw, 140px);

    line-height: 0.9;

    letter-spacing: -0.07em;
}


.contact-email {
    display: inline-block;

    color: var(--secondary);

    font-size: 16px;

    border-bottom: 1px solid var(--secondary);

    padding-bottom: 3px;
}


/* --------------------------------
   FOOTER
-------------------------------- */

footer {
    width: min(
        calc(100% - 48px),
        var(--max)
    );

    margin: auto;

    padding: 30px 0;

    display: flex;
    justify-content: space-between;

    color: var(--tertiary);

    font-size: 12px;

    border-top: 1px solid var(--line);
}


footer div {
    display: flex;
    gap: 20px;
}


/* --------------------------------
   PRESS FEEDBACK
-------------------------------- */

.button:active,
.nav-contact:active,
.project-arrow:active {
    transform: scale(0.94);
}


/* --------------------------------
   REDUCED MOTION
-------------------------------- */

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

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}


/* --------------------------------
   MOBILE
-------------------------------- */

@media (max-width: 760px) {

    main {
        width: min(
            calc(100% - 32px),
            var(--max)
        );
    }


    .nav-shell {
        top: 10px;

        width: calc(100% - 20px);
    }


    .nav-material {
        padding-left: 15px;
    }


    .nav-items {
        display: none;
    }


    .nav-contact {
        margin-left: auto;
    }


    .hero {
        min-height: 90svh;
    }


    .hero h1 {
        font-size: clamp(
            52px,
            15vw,
            80px
        );
    }


    .hero-copy {
        font-size: 17px;
    }


    .hero-meta {
        bottom: 18px;
    }


    .section {
        padding: 100px 0;
    }


    .intro-content,
    .skills-layout,
    .project-feature {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    .project-feature {
        margin-top: 45px;
    }


    .project-visual {
        min-height: 400px;
    }


    .server-interface {
        width: 82%;
    }


    .interface-content {
        margin-top: 50px;
    }


    .project-info h3 {
        font-size: 50px;
    }


    .project-list {
        margin-top: 70px;
    }


    .project-row {
        grid-template-columns:
            40px
            1fr
            40px;

        gap: 10px;

        min-height: 220px;
    }


    .project-main {
        grid-template-columns: 1fr;

        gap: 15px;
    }


    .project-main h3 {
        font-size: 24px;
    }


    .project-row:hover {
        padding-left: 0;
        padding-right: 0;
    }


    .skills-layout {
        gap: 60px;
    }


    .contact {
        padding: 130px 0;
    }


    footer {
        width: calc(100% - 32px);

        flex-direction: column;

        gap: 18px;
    }

}
