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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--navy);
    color: var(--white);
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

button {
    font: inherit;
}

::selection {
    background: var(--red);
    color: var(--white);
}

.section-container {
    width: min(calc(100% - 80px), var(--max-width));
    margin: 0 auto;
}

.section-header,
.project-type,
.project-role span,
.project-tech,
.hero-top,
.hero-bottom,
.nav-right,
.about-info span,
.contact-content > span,
.contact-footer {
    font-family: "DM Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    opacity: 1;
    transform: translateY(0);
    transition: background 0.4s ease, border-color 0.4s ease;
}

.navbar.scrolled {
    background: rgba(4, 12, 22, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    width: min(calc(100% - 64px), var(--max-width));
    height: 82px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 2px;
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.06em;
    white-space: nowrap;
}

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

.brand b {
    color: var(--red);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--muted);
    font-size: 8px;
}

.menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    position: relative;
}

.menu-toggle span {
    position: absolute;
    left: 8px;
    width: 22px;
    height: 1px;
    background: var(--white);
    transition: 0.3s ease;
}

.menu-toggle span:first-child {
    top: 14px;
}

.menu-toggle span:last-child {
    top: 22px;
}

.menu-toggle.active span:first-child {
    top: 18px;
    transform: rotate(45deg);
}

.menu-toggle.active span:last-child {
    top: 18px;
    transform: rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    background: var(--navy-deep);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-size: clamp(3rem, 13vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.08em;
}

.hero {
    min-height: 100svh;
    position: relative;
    background: var(--navy);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, transparent 49.9%, var(--line) 50%, transparent 50.1%),
        linear-gradient(to bottom, transparent 49.9%, var(--line) 50%, transparent 50.1%);
    background-size: 50% 50%;
    opacity: 0.18;
    pointer-events: none;
    animation: gridDrift 18s ease-in-out infinite alternate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 20% 30%, rgba(196, 59, 59, 0.08), transparent 24%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.035), transparent 28%);
    animation: ambientMove 14s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes gridDrift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(18px, -12px, 0) scale(1.03);
    }
}

@keyframes ambientMove {
    from {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }
    to {
        transform: translate3d(2%, 2%, 0) scale(1.06);
    }
}

.hero-inner {
    position: relative;
    width: min(calc(100% - 80px), var(--max-width));
    min-height: 100svh;
    margin: auto;
    padding: 115px 0 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-top,
.hero-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 9px;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 80px;
    align-items: end;
    padding-left: 5vw;
}

.hero-title {
    display: flex;
    align-items: baseline;
    gap: 3px;
    line-height: 0.8;
    white-space: nowrap;
}

.hero-title h1 {
    color: var(--white);
    font-size: clamp(6rem, 16vw, 15rem);
    font-weight: 900;
    letter-spacing: -0.095em;
    line-height: 0.8;
}

.hero-aka {
    color: var(--red);
    font-size: clamp(1rem, 2.2vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    transform: translateY(-0.15em);
}

.hero-details {
    padding-bottom: 15px;
}

.hero-role {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 30px;
    color: var(--white-soft);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    line-height: 1.5;
}

.hero-details p {
    max-width: 230px;
    margin-bottom: 40px;
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    line-height: 1.8;
}

.hero-link,
.project-button,
.email-link {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--white);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    letter-spacing: 0.1em;
    transition: color 0.3s ease, gap 0.4s var(--ease);
}

.hero-link:hover,
.project-button:hover,
.email-link:hover {
    color: var(--red);
    gap: 38px;
}

.hero-link span,
.project-button span,
.email-link span {
    font-size: 16px;
}

.work {
    padding: 150px 0 220px;
    background: var(--navy-deep);
}

.section-header {
    display: flex;
    gap: 18px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 8px;
}

.section-header span:first-child {
    color: var(--red);
}

.work-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin: 90px 0 130px;
}

.work-heading h2 {
    font-size: clamp(5rem, 12vw, 12rem);
    line-height: 0.75;
    font-weight: 800;
    letter-spacing: -0.1em;
}

.work-heading p {
    width: 220px;
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    line-height: 1.8;
}

.project {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: clamp(50px, 8vw, 140px);
    min-height: 90vh;
    padding: 80px 0 160px;
    border-top: 1px solid var(--line);
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 0.9s var(--ease), transform 1s var(--ease);
}

.project.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-visual {
    position: sticky;
    top: 110px;
    height: fit-content;
}

.project-number {
    margin-bottom: 15px;
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 9px;
}

.remedium-visual,
.skillforge-visual,
.food-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1.2;
    overflow: hidden;
    border: 1px solid var(--line);
}

.remedium-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #100f14;
}

.remedium-visual::before {
    content: "";
    position: absolute;
    inset: 12%;
    border: 1px solid rgba(196, 59, 59, 0.3);
}

.remedium-gif {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.35;
    filter: grayscale(0.6) contrast(1.1);
    z-index: 0;
}

.remedium-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(16, 15, 20, 0.35) 0%, rgba(16, 15, 20, 0.85) 75%);
    z-index: 1;
}

.remedium-cross {
    position: absolute;
    inset: 0;
}

.remedium-cross::before,
.remedium-cross::after {
    content: "";
    position: absolute;
    background: rgba(196, 59, 59, 0.25);
}

.remedium-cross::before {
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
}

.remedium-cross::after {
    top: 10%;
    bottom: 10%;
    left: 50%;
    width: 1px;
}

.remedium-title {
    position: relative;
    z-index: 2;
    font-size: clamp(3rem, 7vw, 7rem);
    line-height: 0.8;
    font-weight: 900;
    letter-spacing: -0.1em;
}

.remedium-subtitle {
    position: relative;
    z-index: 2;
    margin-top: 25px;
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 8px;
    letter-spacing: 0.15em;
}

.visual-label {
    position: absolute;
    z-index: 3;
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 8px;
}

.visual-label.top {
    top: 20px;
    left: 20px;
}

.visual-label.bottom {
    right: 20px;
    bottom: 20px;
}

.skillforge-visual {
    padding: 25px;
    background: #091522;
    font-family: "DM Mono", monospace;
}


.terminal-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 8px;
}

.terminal-code {
    margin-top: 55px;
    color: var(--white-soft);
    font-size: clamp(8px, 1vw, 12px);
    line-height: 2.5;
}

.terminal-code i {
    display: inline-block;
    width: 30px;
    color: var(--muted);
    font-style: normal;
}

.terminal-footer {
    position: absolute;
    right: 25px;
    bottom: 20px;
    left: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 8px;
}

.food-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b1624;
}

.food-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.35;
    filter: grayscale(0.6) contrast(1.1);
    z-index: 0;
}

.food-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(11, 22, 36, 0.35) 0%, rgba(11, 22, 36, 0.9) 75%);
    z-index: 1;
}

.phone {
    width: min(40%, 230px);
    aspect-ratio: 0.53;
    padding: 12px;
    border: 1px solid rgba(241, 240, 235, 0.3);
    border-radius: 25px;
    background: #06101b;
}

.phone-header {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 6px;
}

.phone-title {
    margin: 45px 0 25px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.achievement {
    display: grid;
    grid-template-columns: 20px 1fr 15px;
    gap: 5px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-family: "DM Mono", monospace;
    font-size: 6px;
}

.achievement span {
    color: var(--muted);
}

.achievement b {
    color: var(--red);
}

.food-label {
    position: absolute;
    right: 20px;
    bottom: 20px;
    color: var(--red);
    font-family: "DM Mono", monospace;
    font-size: 8px;
}

.project-content {
    align-self: center;
    padding-bottom: 70px;
}

.project-type {
    margin-bottom: 20px;
    color: var(--red);
    font-size: 8px;
}

.project-content h3 {
    margin-bottom: 40px;
    font-size: clamp(3.5rem, 6vw, 6rem);
    line-height: 0.8;
    letter-spacing: -0.09em;
}

.project-content > p {
    max-width: 430px;
    margin-bottom: 45px;
    color: var(--white-soft);
    font-size: 15px;
    line-height: 1.8;
}

.project-role {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

.project-role span {
    color: var(--muted);
    font-size: 7px;
}

.project-role strong {
    font-size: 10px;
    font-weight: 500;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 7px;
}

.project-tech span + span::before {
    content: "/";
    margin-right: 8px;
    color: var(--line-strong);
}

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

.about {
    padding: 170px 0 220px;
    background: var(--navy);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 100px;
    padding-top: 100px;
}

.about-heading {
    line-height: 0.8;
}

.about-identity {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
}

.about-identity span {
    color: var(--white);
}

.about-identity strong {
    color: var(--red);
    font-weight: 500;
    font-size: 8px;
}

.about-heading h2 {
    margin: 25px 0;
    font-size: clamp(4rem, 9vw, 9rem);
    font-weight: 800;
    letter-spacing: -0.1em;
}

.about-content {
    max-width: 500px;
    padding-top: 20px;
}

.about-content p {
    margin-bottom: 25px;
    color: var(--white-soft);
    font-size: 15px;
    line-height: 1.8;
}

.about-content .about-main {
    color: var(--white);
    font-size: 20px;
    line-height: 1.5;
}

.about-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 65px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.about-info div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.about-info span {
    color: var(--muted);
    font-size: 7px;
}

.about-info strong {
    font-size: 9px;
    font-weight: 500;
}

.contact {
    min-height: 100svh;
    padding: 80px 0 35px;
    background: #040b14;
}

.contact-container {
    min-height: calc(100svh - 115px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-content {
    padding: 100px 0;
}

.contact-content > span {
    color: var(--muted);
    font-size: 8px;
}

.contact-content h2 {
    margin: 35px 0 50px;
    font-size: clamp(5rem, 13vw, 13rem);
    line-height: 0.72;
    font-weight: 900;
    letter-spacing: -0.12em;
}

.contact-content h2 b {
    display: inline-block;
    color: var(--red);
    font-size: 0.2em;
    font-weight: 700;
    letter-spacing: -0.04em;
    vertical-align: middle;
    transform: translateY(-0.35em);
}

.contact-content p {
    max-width: 430px;
    margin-bottom: 40px;
    color: var(--white-soft);
    font-size: 14px;
    line-height: 1.8;
}

.email-link {
    font-size: 13px;
}

.contact-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 8px;
}

.contact-footer div {
    display: flex;
    gap: 25px;
}

.contact-footer a {
    transition: color 0.3s ease;
}

.contact-footer a:hover {
    color: var(--red);
}

@media (max-width: 1000px) {

    .nav-links {
        display: none;
    }

    .nav-right > span {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-details {
        padding-left: 5vw;
    }

    .project {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 60px;
    }

    .project-visual {
        position: relative;
        top: auto;
    }

    .project-content {
        padding-bottom: 80px;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-content {
        padding-left: 5vw;
    }

}

@media (max-width: 700px) {

    .section-container,
    .hero-inner,
    .nav-inner {
        width: calc(100% - 36px);
    }

    .hero-inner {
        padding-top: 105px;
    }

    .hero-grid {
        opacity: 0.15;
    }

    .hero-content {
        padding-left: 0;
    }

    .hero-title h1 {
        font-size: 22vw;
        letter-spacing: -0.09em;
    }

    .hero-aka {
        font-size: 3.5vw;
    }

    .hero-details {
        padding-left: 0;
    }

    .hero-bottom span:nth-child(2) {
        display: none;
    }

    .work,
    .about {
        padding: 110px 0 150px;
    }

    .work-heading {
        display: block;
        margin: 70px 0 90px;
    }

    .work-heading p {
        margin-top: 30px;
        width: auto;
    }

    .work-heading h2 {
        font-size: 19vw;
    }

    .project {
        padding: 60px 0 120px;
    }

    .remedium-visual,
    .skillforge-visual,
    .food-visual {
        aspect-ratio: 1;
    }

    .project-content h3 {
        font-size: 16vw;
    }

    .about-heading h2 {
        font-size: 18vw;
    }

    .about-content {
        padding-left: 0;
    }

    .about-info {
        grid-template-columns: 1fr;
    }

    .influence-row,
    .influence-row.large {
        grid-template-columns: 30px 1fr;
    }

    .influence-row strong:last-child {
        grid-column: 2;
    }

    .influence-row.large strong {
        font-size: 11vw;
    }

    .contact {
        padding-top: 60px;
    }

    .contact-content h2 {
        font-size: 22vw;
    }

    .contact-footer {
        flex-wrap: wrap;
        gap: 15px;
    }

}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-grid,
    .hero::before { animation: none; }
}
