:root {
    --bg: #0d0d0d;
    --surface: #141414;
    --surface-2: #1a1a1a;

    --text: #eeeae1;
    --muted: #85827b;

    --line: rgba(238, 234, 225, 0.14);

    --accent: #e25232;
    --accent-dark: #b83d25;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);

    font-family: "Manrope", sans-serif;

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: var(--text);
    color: var(--bg);
}


/* =========================
   CURSOR
========================= */

.cursor,
.cursor-follower {
    position: fixed;

    pointer-events: none;

    z-index: 9999;

    border-radius: 50%;

    transform: translate(-50%, -50%);
}

.cursor {
    width: 6px;
    height: 6px;

    background: var(--text);
}

.cursor-follower {
    width: 38px;
    height: 38px;

    border: 1px solid rgba(238, 234, 225, .45);

    transition:
        width .25s ease,
        height .25s ease,
        background .25s ease,
        border-color .25s ease;
}


/* =========================
   NAVIGATION
========================= */

.nav {
    height: 90px;

    padding: 0 5vw;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid var(--line);

    background: rgba(13, 13, 13, .95);

    position: relative;

    z-index: 100;
}

.logo {
    font-size: 28px;

    font-weight: 800;

    letter-spacing: -2px;
}

.logo span {
    color: var(--accent);
}

.nav nav {
    display: flex;

    gap: 34px;
}

.nav nav a,
.nav-contact {
    font-family: "DM Mono", monospace;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .08em;

    color: var(--muted);
}

.nav nav a {
    position: relative;

    transition: color .3s ease;
}

.nav nav a:hover {
    color: var(--text);
}

.nav nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: var(--accent);

    transition: width .3s ease;
}

.nav nav a:hover::after {
    width: 100%;
}

.nav-contact {
    color: var(--text);

    border-bottom: 1px solid var(--text);

    padding-bottom: 5px;

    transition: .3s ease;
}

.nav-contact:hover {
    color: var(--accent);

    border-color: var(--accent);
}


/* =========================
   GENERAL
========================= */

.section {
    padding: 150px 5vw;
}

.section-label {
    display: flex;

    align-items: center;

    gap: 20px;

    font-family: "DM Mono", monospace;

    font-size: 10px;

    letter-spacing: .12em;
}

.section-label span {
    color: var(--accent);
}

.section-label p {
    color: var(--muted);
}


/* =========================
   HERO
========================= */

.hero {
    min-height: calc(100vh - 90px);

    padding: 7vh 5vw 5vh;

    position: relative;

    display: flex;

    flex-direction: column;

    justify-content: space-between;
}

.hero-small {
    display: flex;

    align-items: center;

    gap: 15px;

    font-family: "DM Mono", monospace;

    font-size: 9px;

    letter-spacing: .1em;

    line-height: 1.7;

    color: var(--muted);
}

.line {
    width: 45px;

    height: 1px;

    background: var(--muted);
}


.hero-main {
    display: grid;

    grid-template-columns: 1fr 250px;

    align-items: center;

    gap: 4vw;
}


.hero-title {
    margin-left: 7vw;
}

.eyebrow {
    font-family: "DM Mono", monospace;

    font-size: 10px;

    letter-spacing: .15em;

    color: var(--muted);

    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(75px, 13vw, 190px);

    line-height: .78;

    letter-spacing: -.09em;

    font-weight: 800;
}

.hero h1 span {
    display: block;

    margin-left: 7vw;

    color: transparent;

    -webkit-text-stroke: 1.5px var(--text);
}


/* =========================
   HERO IMAGE
========================= */

.hero-image {
    display: flex;

    justify-content: center;
}

.image-frame {
    width: 220px;

    position: relative;

    padding: 8px;

    background: var(--surface);

    border: 1px solid var(--line);
}

.image-frame::before {
    content: "";

    position: absolute;

    left: -15px;
    top: -15px;

    width: 45px;
    height: 45px;

    border-left: 1px solid var(--accent);
    border-top: 1px solid var(--accent);
}

.image-frame img {
    width: 100%;

    display: block;

    aspect-ratio: 4 / 5;

    object-fit: cover;

    filter: grayscale(100%);

    transition: filter .5s ease;
}

.image-frame:hover img {
    filter: grayscale(0%);
}

.image-label {
    display: flex;

    justify-content: space-between;

    padding: 12px 3px 3px;

    font-family: "DM Mono", monospace;

    font-size: 7px;

    color: var(--muted);
}


/* =========================
   HERO BOTTOM
========================= */

.hero-bottom {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;
}

.hero-description {
    width: 310px;

    font-size: 13px;

    line-height: 1.9;

    color: var(--muted);
}

.circle-button {
    width: 125px;
    height: 125px;

    border: 1px solid var(--line);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    font-family: "DM Mono", monospace;

    font-size: 8px;

    text-align: center;

    transition: .4s ease;
}

.circle-button b {
    margin-top: 10px;

    font-size: 18px;

    font-weight: 400;
}

.circle-button:hover {
    background: var(--text);

    color: var(--bg);

    border-color: var(--text);

    transform: rotate(-10deg);
}

.hero-number {
    position: absolute;

    right: 5vw;
    top: 50%;

    font-family: "DM Mono", monospace;

    font-size: 9px;

    color: var(--muted);

    transform: rotate(90deg);
}


/* =========================
   ABOUT
========================= */

.about {
    border-top: 1px solid var(--line);
}

.about-content {
    margin-top: 100px;

    display: grid;

    grid-template-columns: 1.4fr .6fr;

    gap: 10vw;
}

.about h2,
.skills-header h2,
.work-heading h2 {
    font-size: clamp(50px, 7vw, 100px);

    line-height: .95;

    letter-spacing: -.06em;
}

em {
    color: var(--accent);

    font-style: normal;
}

.about-text {
    padding-top: 15px;
}

.about-text p {
    font-size: 14px;

    line-height: 1.9;

    color: var(--muted);

    margin-bottom: 25px;
}

.text-link {
    display: inline-block;

    margin-top: 10px;

    font-family: "DM Mono", monospace;

    font-size: 10px;

    border-bottom: 1px solid var(--text);

    padding-bottom: 7px;

    transition: color .3s ease;
}

.text-link:hover {
    color: var(--accent);
}


/* =========================
   SKILLS
========================= */

.skills {
    background: var(--surface);

    color: var(--text);
}

.skills-header {
    margin-top: 100px;

    display: flex;

    justify-content: space-between;

    align-items: flex-end;
}

.skills-header > p {
    width: 300px;

    color: var(--muted);

    line-height: 1.8;

    font-size: 12px;
}

.skills-grid {
    margin-top: 100px;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--line);
}

.skill-item {
    min-height: 190px;

    padding: 25px;

    border-right: 1px solid var(--line);

    border-bottom: 1px solid var(--line);

    transition: .35s ease;
}

.skill-item:hover {
    background: var(--text);

    color: var(--bg);
}

.skill-item span {
    font-family: "DM Mono", monospace;

    font-size: 9px;

    color: var(--accent);
}

.skill-item h3 {
    margin-top: 55px;

    font-size: 21px;

    letter-spacing: -.04em;
}

.skill-item p {
    margin-top: 8px;

    font-size: 10px;

    color: var(--muted);
}


/* =========================
   WORK
========================= */

.work-heading {
    margin-top: 100px;
}

.projects {
    margin-top: 100px;
}

.project {
    min-height: 360px;

    display: grid;

    grid-template-columns: 10% 1fr 80px;

    align-items: center;

    border-top: 1px solid var(--line);

    transition: .4s ease;
}

.project:last-child {
    border-bottom: 1px solid var(--line);
}

.project:hover {
    padding-left: 25px;

    background: var(--surface);
}

.project-number {
    font-family: "DM Mono", monospace;

    font-size: 10px;

    color: var(--accent);
}

.project-type {
    font-family: "DM Mono", monospace;

    font-size: 8px;

    color: var(--muted);

    letter-spacing: .12em;
}

.project h3 {
    margin: 15px 0 20px;

    font-size: clamp(40px, 5vw, 72px);

    line-height: .9;

    letter-spacing: -.06em;
}

.project-info > p:not(.project-type) {
    width: 420px;

    max-width: 90%;

    font-size: 12px;

    line-height: 1.8;

    color: var(--muted);
}

.tags {
    display: flex;

    gap: 8px;

    margin-top: 25px;

    flex-wrap: wrap;
}

.tags span {
    border: 1px solid var(--line);

    padding: 6px 10px;

    font-family: "DM Mono", monospace;

    font-size: 7px;

    text-transform: uppercase;

    color: var(--muted);
}

.project-arrow {
    font-size: 32px;

    color: var(--muted);

    transition: transform .3s ease, color .3s ease;
}

.project:hover .project-arrow {
    transform: translate(8px, -8px);

    color: var(--accent);
}


/* =========================
   EDUCATION
========================= */

.education {
    background: #111111;
}

.education-content {
    margin-top: 100px;

    display: grid;

    grid-template-columns: 1.3fr .7fr;

    gap: 10vw;
}

.date {
    font-family: "DM Mono", monospace;

    color: var(--accent);

    font-size: 9px;

    margin-bottom: 25px;
}

.education-main h2 {
    font-size: clamp(50px, 6vw, 90px);

    line-height: .9;

    letter-spacing: -.06em;
}

.education-main > p:last-child {
    margin-top: 30px;

    font-size: 13px;

    color: var(--muted);
}

.education-item span {
    font-family: "DM Mono", monospace;

    font-size: 8px;

    color: var(--accent);

    letter-spacing: .1em;
}

.education-item h3 {
    margin: 13px 0 8px;

    font-size: 25px;

    letter-spacing: -.04em;
}

.education-item p {
    color: var(--muted);

    line-height: 1.8;

    font-size: 12px;
}

.education-line {
    height: 1px;

    background: var(--line);

    margin: 35px 0;
}


/* =========================
   CONTACT
========================= */

.contact {
    min-height: 90vh;

    background: var(--accent);

    color: #111;

    display: flex;

    flex-direction: column;

    justify-content: space-between;
}

.contact-top {
    display: flex;

    justify-content: space-between;

    font-family: "DM Mono", monospace;

    font-size: 9px;
}

.contact h2 {
    font-size: clamp(65px, 11vw, 160px);

    line-height: .8;

    letter-spacing: -.09em;
}

.contact h2 em {
    color: var(--text);
}

.email-link {
    width: fit-content;

    font-family: "DM Mono", monospace;

    font-size: clamp(14px, 2vw, 23px);

    border-bottom: 1px solid #111;

    padding-bottom: 8px;
}

.contact-details {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;
}

.contact-details > a {
    font-family: "DM Mono", monospace;

    font-size: 11px;
}

.socials {
    display: flex;

    gap: 25px;

    flex-wrap: wrap;
}

.socials a {
    font-family: "DM Mono", monospace;

    font-size: 9px;

    transition: opacity .3s ease;
}

.socials a:hover {
    opacity: .55;
}


/* =========================
   FOOTER
========================= */

footer {
    background: #080808;

    color: #777;

    padding: 25px 5vw;

    display: flex;

    justify-content: space-between;

    font-family: "DM Mono", monospace;

    font-size: 8px;
}


/* =========================
   REVEAL
========================= */

.reveal {
    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    .nav {
        height: 70px;
    }

    .nav nav {
        display: none;
    }

    .nav-contact {
        font-size: 8px;
    }


    .hero {
        min-height: 90vh;

        padding-top: 7vh;
    }

    .hero-main {
        grid-template-columns: 1fr;
    }

    .hero-title {
        margin-left: 0;
    }

    .hero h1 {
        font-size: 20vw;
    }

    .hero h1 span {
        margin-left: 5vw;
    }

    .hero-image {
        position: absolute;

        right: 6vw;

        bottom: 24vh;

        opacity: .65;

        z-index: 0;
    }

    .hero-title {
        position: relative;

        z-index: 2;
    }

    .image-frame {
        width: 140px;
    }

    .hero-description {
        width: 55%;

        font-size: 11px;
    }

    .circle-button {
        width: 90px;

        height: 90px;
    }


    .section {
        padding: 100px 6vw;
    }


    .about-content,
    .education-content {
        grid-template-columns: 1fr;

        gap: 60px;
    }


    .skills-header {
        display: block;
    }

    .skills-header > p {
        margin-top: 35px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skill-item {
        min-height: 160px;

        padding: 18px;
    }

    .skill-item h3 {
        margin-top: 35px;

        font-size: 17px;
    }


    .project {
        grid-template-columns: 35px 1fr 35px;

        min-height: 320px;
    }

    .project h3 {
        font-size: 42px;
    }

    .project-number {
        align-self: start;

        padding-top: 30px;
    }

    .project-arrow {
        font-size: 25px;
    }


    .contact {
        min-height: 80vh;
    }

    .contact-details {
        display: block;
    }

    .socials {
        margin-top: 30px;
    }


    footer {
        display: block;
    }

    footer p + p {
        margin-top: 10px;
    }


    .cursor,
    .cursor-follower {
        display: none;
    }
}