:root {
    --bg: #070707;
    --fg: #f4f4f0;
    --muted: #969692;
    --line: #292929;
    --accent: #d8ff3e;
    --card: #111111;
}

body.light {
    --bg: #f2f2ee;
    --fg: #101010;
    --muted: #666662;
    --line: #d0d0ca;
    --accent: #739900;
    --card: #e5e5df;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: Inter, Arial, sans-serif;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

img {
    max-width: 100%;
}

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.45;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

header {
    height: 76px;
    padding: 0 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    mix-blend-mode: difference;
}

.brand {
    font: 700 20px "Space Grotesk";
    letter-spacing: -0.04em;
}

.brand span {
    font-size: 10px;
    margin-left: 3px;
}

nav {
    display: flex;
    gap: 36px;
}

nav a {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: 0.25s;
}

nav a:hover {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    gap: 16px;
}

.nav-actions button {
    font-size: 12px;
    letter-spacing: 0.12em;
}

.nav-actions #menu {
    display: none;
}

.mobile-nav {
    display: none;
}

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px 10vw 80px;
    overflow: hidden;
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );
    background-size: 70px 70px;
    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 90%
    );
}

.hero-orb {
    position: absolute;
    width: 45vw;
    height: 45vw;
    right: -15vw;
    top: 10vh;
    border-radius: 50%;
    background: radial-gradient(
        circle at 40% 40%,
        rgba(216, 255, 62, 0.17),
        rgba(216, 255, 62, 0.035) 30%,
        transparent 67%
    );
    filter: blur(10px);
}

.hero-content {
    max-width: 1050px;
    position: relative;
    z-index: 2;
}

.eyebrow,
.label {
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--muted);
    font-weight: 600;
}

.hero h1 {
    font: 700 clamp(70px, 12vw, 180px) / 0.82 "Space Grotesk";
    letter-spacing: -0.085em;
    margin: 30px 0;
}

.hero h1 i,
.about h2 em,
.contact h2 em {
    font-style: normal;
    color: transparent;
    -webkit-text-stroke: 1px var(--fg);
}

.hero-copy {
    max-width: 510px;
    color: #b9b9b5;
    line-height: 1.7;
    font-size: 15px;
}

.hero-buttons {
    display: flex;
    gap: 28px;
    align-items: center;
    margin-top: 35px;
}

.btn {
    background: var(--fg);
    color: var(--bg);
    padding: 15px 21px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    transition: 0.3s;
}

.btn:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.btn b {
    margin-left: 30px;
}

.ghost {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-bottom: 1px solid #555;
    padding-bottom: 6px;
}

.hero-meta {
    position: absolute;
    bottom: 32px;
    left: 10vw;
    right: 10vw;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #777;
    font-size: 9px;
    letter-spacing: 0.16em;
}

.hero-meta .line {
    height: 1px;
    background: var(--line);
    flex: 1;
}

.intro,
.work,
.about,
.contact {
    padding: 150px 10vw;
}

.intro {
    display: grid;
    grid-template-columns: 90px 1fr;
    border-top: 1px solid var(--line);
}

.num {
    font: 500 12px "Space Grotesk";
    color: #666;
}

.intro h2,
.section-head h2,
.about h2,
.contact h2 {
    font: 600 clamp(44px, 7vw, 100px) / 0.94 "Space Grotesk";
    letter-spacing: -0.065em;
    margin: 0;
}

.intro h2 em {
    font-style: normal;
    color: var(--accent);
}

.intro .lead {
    max-width: 540px;
    margin-top: 40px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 65px;
}

.section-head h2 {
    margin-top: 22px;
}

.section-head > p {
    max-width: 330px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 13px;
}

.category-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.category-card {
    display: block;
    background: var(--card);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: 0.4s;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.category-image {
    height: 420px;
    overflow: hidden;
    background: #111;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-info {
    padding: 25px;
}

.category-info > span {
    color: var(--accent);
    font-size: 10px;
    letter-spacing: 0.15em;
}

.category-info h3 {
    font: 600 34px "Space Grotesk";
    margin: 8px 0;
}

.category-info p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.category-info b {
    font-size: 9px;
    letter-spacing: 0.15em;
}

.marquee {
    overflow: hidden;
    border-block: 1px solid var(--line);
    padding: 22px 0;
    white-space: nowrap;
}

.marquee div {
    font: 700 28px "Space Grotesk";
    letter-spacing: -0.04em;
    animation: marquee 25s linear infinite;
}

.marquee b {
    color: var(--accent);
    padding: 0 25px;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

.about {
    border-bottom: 1px solid var(--line);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
    margin-top: 50px;
}

.about h2 {
    margin-top: 25px;
}

.about h2 em {
    color: var(--accent);
    -webkit-text-stroke: 0;
}

.about .lead {
    font-size: 22px;
    line-height: 1.5;
    margin: 0 0 25px;
}

.about p:not(.label):not(.lead) {
    color: #858581;
    line-height: 1.8;
    font-size: 14px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 35px;
}

.skills span {
    border: 1px solid var(--line);
    padding: 9px 12px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact {
    min-height: 80vh;
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
}

.contact h2 {
    font-size: clamp(60px, 11vw, 160px);
    margin: 25px 0 50px;
}

.contact h2 em {
    -webkit-text-stroke: 1px var(--accent);
}

.mail {
    font: 500 clamp(20px, 3vw, 38px) "Space Grotesk";
    border-bottom: 1px solid #555;
    padding-bottom: 12px;
}

.mail span {
    color: var(--accent);
    margin-left: 25px;
}

footer {
    padding: 30px 5vw;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 9px;
    letter-spacing: 0.12em;
}

footer a:hover {
    color: var(--fg);
}

.category-hero {
    min-height: 70vh;
    padding: 180px 10vw 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-bottom: 1px solid var(--line);
}

.category-hero .label {
    margin-top: 60px;
}

.category-hero h1 {
    font: 600 clamp(65px, 11vw, 160px) / 0.85 "Space Grotesk";
    letter-spacing: -0.075em;
    margin: 25px 0;
}

.category-hero h1 em {
    color: var(--accent);
    font-style: normal;
}

.category-hero > p:last-child {
    max-width: 550px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 15px;
}

.gallery-section {
    padding: 100px 10vw;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: var(--card);
    cursor: pointer;
    min-height: 450px;
}

.gallery-item:nth-child(3n) {
    grid-column: span 2;
    min-height: 650px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    display: block;
    transition:
        transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
        filter 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.045);
    filter: brightness(0.6);
}

.gallery-item > div {
    position: absolute;
    inset: auto 0 0;
    padding: 30px;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.9)
    );
    transform: translateY(20px);
    opacity: 0;
    transition: 0.35s;
}

.gallery-item:hover > div {
    transform: none;
    opacity: 1;
}

.gallery-item span {
    color: var(--accent);
    font-size: 9px;
    letter-spacing: 0.15em;
}

.gallery-item h2 {
    font: 600 28px "Space Grotesk";
    margin: 8px 0 0;
}

.page-contact {
    padding: 130px 10vw;
    border-top: 1px solid var(--line);
}

.page-contact h2 {
    font: 600 clamp(55px, 9vw, 130px) / 0.9 "Space Grotesk";
    letter-spacing: -0.065em;
    margin: 25px 0 50px;
}

.page-contact h2 em {
    color: transparent;
    -webkit-text-stroke: 1px var(--accent);
    font-style: normal;
}

.page-contact > a {
    font: 500 clamp(20px, 3vw, 36px) "Space Grotesk";
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
}

.mouse-light {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(216, 255, 62, 0.07),
        transparent 65%
    );
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.cursor,
.cursor-dot {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 300;
    display: none;
}

.cursor {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transform: translate(-50%, -50%);
    transition:
        width 0.2s,
        height 0.2s;
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background: var(--accent);
    transform: translate(-50%, -50%);
}

.reveal {
    opacity: 1;
    transform: none;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

.image-lightbox.open {
    display: flex;
}

.image-lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 38px;
}

@media (min-width: 900px) {
    .cursor,
    .cursor-dot {
        display: block;
    }
}

@media (max-width: 800px) {

    header {
        padding: 0 6vw;
    }

    header nav {
        display: none;
    }

    .nav-actions #menu {
        display: block;
    }

    .mobile-nav {
        position: fixed;
        z-index: 45;
        inset: 76px 0 auto;
        background: var(--bg);
        padding: 25px 6vw;
        display: flex;
        flex-direction: column;
        gap: 20px;
        transform: translateY(-150%);
        transition: 0.4s;
        border-bottom: 1px solid var(--line);
    }

    .mobile-nav.open {
        transform: none;
    }

    .hero {
        padding: 130px 7vw 80px;
    }

    .hero h1 {
        font-size: 18vw;
    }

    .hero-meta {
        left: 7vw;
        right: 7vw;
    }

    .intro,
    .contact {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .intro,
    .work,
    .about,
    .contact {
        padding: 100px 7vw;
    }

    .category-preview {
        grid-template-columns: 1fr;
    }

    .category-image {
        height: 350px;
    }

    .section-head,
    .about-grid {
        display: block;
    }

    .section-head > p {
        margin-top: 25px;
    }

    .category-hero {
        min-height: 65vh;
        padding: 140px 7vw 70px;
    }

    .gallery-section {
        padding: 70px 7vw;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item,
    .gallery-item:nth-child(3n) {
        grid-column: auto;
        min-height: 400px;
    }

    .gallery-item img {
        min-height: 400px;
    }

    .gallery-item > div {
        opacity: 1;
        transform: none;
    }

    .page-contact {
        padding: 100px 7vw;
    }

    .image-lightbox {
        padding: 25px;
    }

    .image-lightbox img {
        max-width: 95vw;
        max-height: 85vh;
    }

    footer {
        padding: 25px 7vw;
        flex-direction: column;
        gap: 10px;
    }
}

.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 40px;
    cursor: zoom-out;
}

.image-modal.open {
    display: flex;
}

.image-modal img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: default;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 45px;
    color: white;
    cursor: pointer;
    line-height: 1;
    z-index: 10000;
}

.image-modal-close:hover {
    color: var(--accent);
}

.mouse-light {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(216, 255, 62, 0.07),
        transparent 65%
    );
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.cursor,
.cursor-dot {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

.cursor {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transform: translate(-50%, -50%);
    transition:
        width 0.2s,
        height 0.2s;
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background: var(--accent);
    transform: translate(-50%, -50%);
}

@media (min-width: 900px) {

    .cursor,
    .cursor-dot {
        display: block;
    }

}