@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #090a0d;
    --panel: #111318;
    --panel-2: #171a20;
    --text: #f3f4f6;
    --muted: #8b909b;
    --line: rgba(255,255,255,.12);
    --accent: #9cf34a;
    --max: 1500px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 70% 8%, rgba(89, 102, 146, .12), transparent 26%),
        var(--bg);
    font-family: Inter, Arial, sans-serif;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button { color: inherit; font: inherit; }

::selection {
    background: var(--accent);
    color: #0b0c0e;
}

.cursor-glow {
    position: fixed;
    z-index: -1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(156,243,74,.08), transparent 65%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity .3s;
}

.site-header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    right: 0;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    background: linear-gradient(to bottom, rgba(9,10,13,.94), rgba(9,10,13,.35), transparent);
    backdrop-filter: blur(8px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    letter-spacing: .08em;
    font-size: 13px;
}

.brand-mark {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 24px rgba(156,243,74,.7);
}

.desktop-nav {
    display: flex;
    gap: 34px;
    font-size: 12px;
    letter-spacing: .14em;
}

.desktop-nav a {
    color: #c8cbd2;
    transition: color .2s;
}

.desktop-nav a:hover { color: var(--accent); }

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 17px;
    height: 1px;
    background: #fff;
    margin: 5px auto;
    transition: .25s;
}

.mobile-nav {
    display: none;
}

.section {
    position: relative;
    width: min(calc(100% - 68px), var(--max));
    margin-inline: auto;
}

.hero {
    width: 100%;
    min-height: 100svh;
    padding: 150px max(34px, calc((100vw - var(--max)) / 2)) 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: .28;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 90%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
    filter: blur(.1px);
}

.orb::before,
.orb::after {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: inherit;
    border: 1px solid rgba(156,243,74,.16);
}

.orb::after { inset: 26%; }

.orb-a {
    width: min(52vw, 780px);
    aspect-ratio: 1;
    right: -10vw;
    top: 8vh;
    background:
        radial-gradient(circle at 32% 32%, rgba(255,255,255,.16), transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(56,66,91,.28), transparent 67%);
    box-shadow: inset -80px -60px 160px rgba(0,0,0,.45);
}

.orb-b {
    width: 290px;
    aspect-ratio: 1;
    left: 44%;
    bottom: -130px;
    opacity: .55;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.eyebrow {
    margin: 0 0 24px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
}

.hero h1 {
    margin: 0;
    max-width: 1050px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(72px, 11.1vw, 180px);
    line-height: .78;
    letter-spacing: -.075em;
    font-weight: 600;
}

.hero h1 span {
    display: block;
}

.hero h1 .outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,.48);
    margin-left: 11vw;
}

.hero-bottom {
    display: flex;
    align-items: end;
    gap: 52px;
    margin-top: 48px;
}

.hero-bottom p {
    max-width: 480px;
    margin: 0;
    color: #b3b7c1;
    font-size: 15px;
    line-height: 1.8;
}

.round-link {
    width: 108px;
    height: 108px;
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 10px;
    letter-spacing: .12em;
    transition: .3s;
}

.round-link svg,
.contact-mail svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.round-link:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #0b0c0e;
    transform: rotate(6deg);
}

.hero-index {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .16em;
}

.work-section {
    padding: 150px 0 80px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--line);
}

.section-heading h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(52px, 7vw, 110px);
    letter-spacing: -.065em;
    line-height: .85;
}

.section-heading h2 span {
    margin-left: 10px;
    color: var(--muted);
    font-size: .24em;
    letter-spacing: 0;
    vertical-align: top;
}

.section-heading > p {
    max-width: 390px;
    margin: 0 0 8px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
    padding-top: 62px;
}

.project-card {
    grid-column: span 7;
}

.project-card:nth-child(even) {
    grid-column: 6 / span 7;
    margin-top: 150px;
}

.project-image {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--panel);
    aspect-ratio: 16 / 10;
}

.project-image img {
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s;
}

.project-image:hover img {
    transform: scale(1.035);
    filter: brightness(1.08);
}

.project-number,
.project-open {
    position: absolute;
    top: 18px;
    font-size: 10px;
    letter-spacing: .16em;
    padding: 8px 10px;
    background: rgba(8,9,12,.72);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.1);
}

.project-number { left: 18px; }
.project-open { right: 18px; }

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
}

.project-meta h3 {
    margin: 0 0 7px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 23px;
    letter-spacing: -.03em;
}

.project-meta p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.project-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.project-tools span {
    height: fit-content;
    padding: 7px 9px;
    border: 1px solid var(--line);
    color: #b8bcc5;
    font-size: 9px;
    letter-spacing: .12em;
}

.about-section {
    min-height: 820px;
    margin-top: 140px;
    padding: 120px 0;
    display: grid;
    grid-template-columns: 1fr 5fr;
    gap: 60px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about-number {
    color: var(--muted);
    font-size: 12px;
}

.about-copy h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(54px, 7.2vw, 116px);
    line-height: .92;
    letter-spacing: -.065em;
}

.about-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 42px;
    max-width: 830px;
    margin: 80px 0 0 auto;
}

.about-columns p {
    margin: 0;
    color: #aeb2bc;
    font-size: 15px;
    line-height: 1.9;
}

.skills-section,
.experience-section {
    padding: 150px 0 70px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-left: 1px solid var(--line);
    margin-top: 50px;
}

.skill-card {
    min-height: 300px;
    padding: 28px;
    border-right: 1px solid var(--line);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

.skill-card > span {
    color: var(--accent);
    font-size: 10px;
    letter-spacing: .15em;
}

.skill-card h3 {
    margin: auto 0 16px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 28px;
}

.skill-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.timeline {
    margin-top: 50px;
}

.timeline-row {
    display: grid;
    grid-template-columns: 1.1fr 1.8fr 2.5fr;
    gap: 30px;
    align-items: center;
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.timeline-row:last-child { border-bottom: 1px solid var(--line); }
.timeline-row span { color: var(--muted); font-size: 12px; }
.timeline-row strong { font-size: 15px; letter-spacing: .06em; }
.timeline-row p { margin: 0; color: var(--muted); font-size: 13px; }

.contact-section {
    width: 100%;
    margin-top: 120px;
    padding: 150px max(34px, calc((100vw - var(--max)) / 2));
    background:
        linear-gradient(135deg, rgba(156,243,74,.09), transparent 40%),
        #101218;
}

.contact-inner h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(58px, 9.5vw, 148px);
    line-height: .88;
    letter-spacing: -.07em;
}

.contact-inner h2 span {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,.5);
}

.contact-mail {
    margin-top: 64px;
    width: 100%;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,.18);
    border-bottom: 1px solid rgba(255,255,255,.18);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(20px, 2.5vw, 36px);
    transition: color .2s, padding .2s;
}

.contact-mail:hover {
    color: var(--accent);
    padding-inline: 14px;
}

footer {
    max-width: var(--max);
    margin: auto;
    padding: 34px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .13em;
}

.admin-trigger {
    display: none;
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: rgba(12,14,18,.86);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.admin-trigger.visible {
    display: block;
    animation: pop .25s ease;
}

.admin-trigger:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.admin-toast {
    position: fixed;
    right: 22px;
    bottom: 80px;
    z-index: 79;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: #12151b;
    color: #c6cad2;
    font-size: 12px;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: .25s;
}

.admin-toast.show {
    opacity: 1;
    transform: translateY(0);
}

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

.reveal.in {
    opacity: 1;
    transform: none;
}

@keyframes pop {
    from { transform: scale(.7); opacity: 0; }
}

@media (max-width: 980px) {
    .desktop-nav { display: none; }
    .menu-button { display: block; }

    .mobile-nav {
        position: fixed;
        inset: 0;
        z-index: 40;
        padding: 130px 34px 40px;
        background: rgba(9,10,13,.98);
        flex-direction: column;
        gap: 22px;
    }

    .mobile-nav.open {
        display: flex;
    }

    .mobile-nav a {
        font-family: "Space Grotesk", sans-serif;
        font-size: 42px;
        letter-spacing: -.05em;
    }

    .project-card,
    .project-card:nth-child(even) {
        grid-column: span 12;
        margin-top: 0;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .timeline-row {
        grid-template-columns: 1fr 2fr;
    }

    .timeline-row p {
        grid-column: 2;
    }
}

@media (max-width: 640px) {
    .site-header {
        height: 70px;
        padding: 0 18px;
    }

    .section {
        width: calc(100% - 36px);
    }

    .hero {
        min-height: 820px;
        padding: 120px 18px 24px;
    }

    .hero h1 {
        font-size: clamp(65px, 22vw, 100px);
        line-height: .82;
    }

    .hero h1 .outline {
        margin-left: 7vw;
    }

    .orb-a {
        width: 105vw;
        right: -53vw;
        top: 20vh;
        opacity: .75;
    }

    .hero-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 26px;
    }

    .hero-bottom p {
        max-width: 85%;
    }

    .round-link {
        width: 88px;
        height: 88px;
    }

    .hero-index span:last-child { display: none; }

    .work-section,
    .skills-section,
    .experience-section {
        padding-top: 100px;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 26px;
    }

    .project-list {
        gap: 64px;
        padding-top: 38px;
    }

    .project-meta {
        display: block;
    }

    .project-tools {
        justify-content: flex-start;
        margin-top: 16px;
    }

    .about-section {
        margin-top: 80px;
        padding: 85px 0;
        gap: 30px;
    }

    .about-columns {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 48px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        min-height: 230px;
    }

    .timeline-row {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .timeline-row p { grid-column: auto; }

    .contact-section {
        margin-top: 80px;
        padding: 100px 18px;
    }

    footer {
        padding: 26px 18px;
        flex-direction: column;
        gap: 14px;
    }
}
