:root {
    --primary-color: #f0f0f2;
    --bg-color: #1c1c1f;

    --accent-color: #04D9FF;
    --accent-hover: #FF0080;

    --mid: #7a7a86;

    --copy-max-width: 780px;
    --edge-padding-desktop: 100px;
    --edge-padding-mobile: 40px;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Barlow Condensed', sans-serif;
}

/* ─── GLOBAL ───────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--primary-color);
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

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

/* ─── PAGE LOAD ───────────────────────────────────────── */

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(32px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-load-item {
    opacity: 0;
    animation: fadeSlideDown 2.75s cubic-bezier(0.16,1,0.3,1) forwards;
    animation-delay: var(--load-delay, 0s);
}

.page-load-item.project-header,
.page-load-item.copy-block {
    animation-name: fadeSlideUp;
}

/* ─── SCROLL REVEAL ───────────────────────────────────────── */

body.scroll-animate .scroll-reveal {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 2.5s cubic-bezier(0.16,1,0.3,1),
                transform 2.5s cubic-bezier(0.16,1,0.3,1);
}

body.scroll-animate .scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── NAV BUTTONS (ARROWS) ───────────────────────── */

.nav-pill {
    position: fixed;
    bottom: 30px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 100px;
    z-index: 100;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    overflow: hidden;
    max-width: 50px; /* Collapsed state */
}

.nav-button-right {
    right: 30px;
}

.nav-button-left {
    left: 30px;
}

.nav-pill .pill-text {
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease, margin-left 0.3s ease;
    margin-left: 0;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.nav-pill:hover {
    max-width: 300px;
    background: rgba(4, 217, 255, 0.2);
    border-color: var(--accent-color);
}

.nav-pill:hover .pill-text {
    opacity: 1;
    margin-left: 10px;
}

.nav-pill::before {
    content: '→';
    color: var(--accent-color);
    font-size: 18px;
    display: inline-block;
    width: 1em;
    text-align: center;
    transform: translateX(-3px);
}

.nav-button-left::before {
    content: '←';
}

/* ─── HAMBURGER ───────────────────────────────────────── */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    position: fixed;
    top: 30px;
    right: 52px;
    z-index: 150;
    border: none;
    background: none;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    width: 22px;
    height: 1px;
    background: var(--accent-color);
    display: block;
}

/* ─── HEADER ───────────────────────────────────────── */

.header {
    width: 100%;
    height: 150px;
    padding: 0 var(--edge-padding-desktop);
}

.header-content {
    max-width: 1440px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo a {
    color: var(--primary-color);
}

.logo a:hover {
    color: var(--primary-color);
}

.logo em {
    color: var(--accent-color); font-style: normal;
}

/* ensures proper spacing between words */
.logo a span {
    margin-right: 6px;
}

/* NAV */
.nav-desktop { display: block; }

.nav-links-desktop {
    display: flex;
    list-style: none;
    gap: 60px;
    color: var(--mid); /* Change from var(--primary-color) */
    transition: color 0.2s ease;
}

.nav-links-desktop li a {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 8px;
    color: var(--mid);
}

.nav-links-desktop li a:hover {
    color: var(--primary-color);
}

.nav-links-desktop li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 0;
    background: var(--accent-color);
    transition: width 0.25s ease;
}

.nav-links-desktop li a:hover::after {
    width: 100%;
}

/* ─── MOBILE MENU ───────────────────────────────────────── */

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    z-index: 140;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
}

/* ─── MAIN CONTENT ───────────────────────────────────────── */

.main-content {
    width: 100%;
    margin-top: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ─── PROJECT HEADER ───────────────────────────────────────── */

.project-header {
    width: 100%;
    max-width: calc(var(--copy-max-width) + var(--edge-padding-desktop) * 2);
    padding: 0 var(--edge-padding-desktop);
    margin-bottom: 20px;
    display: flex;
    gap: 18px;
}

.project-number {
    font-size: 90px;
    font-weight: 700;
    color: rgba(255,255,255,0.12);
    transform: translateY(-10px);
}

.project-title-group {
    padding-top: 22px;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mid);
}

.headline {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
}

/* ─── COPY ───────────────────────────────────────── */

.copy-block {
    width: 100%;
    max-width: calc(var(--copy-max-width) + var(--edge-padding-desktop) * 2);
    padding-top: 25vh;
    padding-bottom: 25vh;
}

.copy-block--first {
    padding-top: 0;
    padding-bottom: calc(12vh + 50px);
}

.copy-block--padded {
    padding-left: var(--edge-padding-desktop);
    padding-right: var(--edge-padding-desktop);
}

.copy-label {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.copy-label-box {
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    margin-top: 5px; /* Adds the 5px offset to align with text */
}

/* FIX: headings larger than body */
.copy-label-text {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.copy-body-indent {
    padding-left: 24px;
}

/* FIX: lighter + smaller body */
.body-copy {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
}

/* ─── IMAGES ───────────────────────────────────────── */

.image-block {
    width: 100%;
}

.image-block.edge-to-edge {
    padding: 0;
}

.image-block.image-block--padded {
    padding: 0 var(--edge-padding-desktop);
}

.image-block.image-block--spaced {
    margin-top: 40vh;
}

.project-image {
    width: 100%;
    display: block;
    border-radius: 6px;
}

/* ─── FOOTER ───────────────────────────────────────── */

.footer {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 120px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.footer p {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mid);
}

/* ─── CUSTOM CURSOR (VISIBLE + WORKING) ───────────────────────── */

@media (pointer: fine) {

   body {
        cursor: none !important; /* Hide the default pointer */
    }

    /* Ensure links also don't show the default hand pointer */
    a, .hamburger, .nav-button {
        cursor: none !important;
    }

    #cur {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed;
        pointer-events: none;
        z-index: 99999;
        /* REMOVE top: 0 and left: 0 from here */
        width: 7px;
        height: 7px;
        background: var(--accent-color);
        border-radius: 50%;
        /* Use transform to center the dot on the mouse coordinates */
        transform: translate(-50%, -50%);
        mix-blend-mode: screen;
        transition: width 0.15s ease, height 0.15s ease,
                    background 0.15s ease, box-shadow 0.15s ease;
    }
}

/* Hover state for links */
body.cur-link #cur {
    width: 32px;
    height: 32px;
    background: transparent;
    box-shadow: 0 0 0 1px rgba(4,217,255,0.6);
    transform: translate(-50%, -50%);
}

/* ─── MOBILE ───────────────────────────────────────── */

@media (max-width: 1100px) {

    .hamburger { display: flex; }

    .nav-desktop { display: none; }
    .hamburger { right: 30px; top: 34px; }

    body { cursor: auto; }
    #cur { display: none; }

    .header {
        padding: 0 30px;
        height: 100px;
    }

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

    .project-header {
        padding: 0 var(--edge-padding-mobile);
    }

    .copy-block {
        padding-top: 15vh;
        padding-bottom: 15vh;
        max-width: 100%;
    }

    .copy-block--padded {
        padding-left: var(--edge-padding-mobile);
        padding-right: var(--edge-padding-mobile);
    }

    .image-block.image-block--padded {
        padding: 0 var(--edge-padding-mobile);
    }

    .image-block.image-block--spaced {
        margin-top: 20vh;
    }

    .headline { font-size: 26px; }
    .body-copy { font-size: 15px; }

    .footer p {
        font-size: 11px;
        padding: 0 20px;
        text-align: center;
    }
}
