/* =========================================================
   Reset & Tokens
   ========================================================= */
:root {
    --bg: #000000;
    --bg-elev: #111111;
    --ink: #f4f1ec;
    /* warm off-white */
    --ink-soft: #b8b4ad;
    --ink-mute: #6f6c66;
    --rule: rgba(244, 241, 236, 0.14);
    --accent: #d8c9a8;
    /* warm sand accent */
    --serif: "Fraunces", "Libre Baskerville", Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

body,
html {
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    overscroll-behavior: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.005em;
}

/* =========================================================
   Loader — % counter, bar, wave text
   ========================================================= */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    width: min(560px, 80vw);
    padding: 0 1.5rem;
}

.loader-percent {
    display: flex;
    align-items: baseline;
    justify-content: center;
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.loader-num {
    font-size: clamp(4.5rem, 10vw, 7.5rem);
    font-weight: 600;
}

.loader-pct {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 500;
    color: var(--ink-soft);
    margin-left: 0.15rem;
    letter-spacing: -0.02em;
}

.loader-bar {
    width: 100%;
    height: 2px;
    background: rgba(244, 241, 236, 0.12);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--ink);
    border-radius: 999px;
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* SHAFI wave text */
.loader-text {
    display: flex;
    gap: 0.55rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--ink-mute);
    padding-left: 0.5em;
    /* offset so letter-spacing doesn't push the block off-center */
    margin-top: 0.25rem;
}

.loader-text span {
    display: inline-block;
    animation: shafi-wave 1.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    will-change: transform, opacity, color;
}

.loader-text span:nth-child(1) { animation-delay: 0s; }
.loader-text span:nth-child(2) { animation-delay: 0.12s; }
.loader-text span:nth-child(3) { animation-delay: 0.24s; }
.loader-text span:nth-child(4) { animation-delay: 0.36s; }
.loader-text span:nth-child(5) { animation-delay: 0.48s; }

@keyframes shafi-wave {
    0%, 60%, 100% {
        transform: translateY(0);
        color: var(--ink-mute);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-14px);
        color: var(--ink);
        opacity: 1;
    }
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* =========================================================
   Scroll / Canvas (untouched logic — visual only)
   ========================================================= */
#scroll-height {
    height: 12000px;
    position: relative;
    width: 100%;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

#scrolly-canvas {
    width: 100%;
    max-width: 1200px;
    height: 100vh;
    display: block;
}

/* =========================================================
   Header — editorial, refined
   ========================================================= */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2.5rem;
    z-index: 100;
    /* subtle bottom rule for editorial feel */
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s ease, background 0.4s ease;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--ink);
    transition: opacity 0.3s;
}

.logo-link:hover {
    opacity: 0.75;
}

.site-logo {
    width: 22px;
    height: 36px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.brand-role {
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--ink-mute);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 4px;
}

.main-menu {
    display: flex;
    gap: 2.25rem;
    align-items: center;
}

.main-menu a {
    color: var(--ink);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    position: relative;
    transition: color 0.3s ease, opacity 0.3s ease;
    opacity: 0.85;
}

.main-menu a .nav-num {
    font-family: var(--mono);
    font-size: 0.62rem;
    color: var(--ink-mute);
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.main-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.main-menu a:hover {
    opacity: 1;
    color: var(--ink);
}

.main-menu a:hover::after {
    width: 100%;
}

.main-menu a:hover .nav-num {
    color: var(--accent);
}

/* =========================================================
   UI Scene Layer
   ========================================================= */
.ui-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
}

.scene {
    position: absolute;
    bottom: 110px;
    left: 50%;
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 5rem;

    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 60px);
    transition:
        opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.9s cubic-bezier(0.25, 1, 0.5, 1),
        visibility 0.9s;
}

.scene.active {
    opacity: 1;
    transform: translate(-50%, 0);
    visibility: visible;
    pointer-events: auto;
}

.scene.exit-up {
    opacity: 0;
    transform: translate(-50%, -60px);
    visibility: hidden;
}

/* =========================================================
   Scene Typography
   ========================================================= */
.content-left {
    flex: 1.1;
    text-align: left;
    /* small leading marker for editorial feel */
    position: relative;
}

.content-left::before {
    content: "";
    display: block;
    width: 36px;
    height: 1px;
    background: var(--accent);
    margin-bottom: 1.25rem;
    opacity: 0.7;
}

.content-right {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;

    background: rgba(20, 20, 20, 0.35);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    border: 1px solid var(--rule);
    border-radius: 2px;
    padding: 1.75rem 1.85rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

h1,
h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 3.6vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

h1 em,
h2 em,
.italic {
    font-style: italic;
    color: var(--accent);
}

p {
    font-family: var(--sans);
    font-size: 0.98rem;
    color: var(--ink-soft);
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.005em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    max-width: 38ch;
}

/* =========================================================
   Button
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.75rem;
    padding: 0.85rem 1.6rem;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "→";
    font-size: 0.95rem;
    transition: transform 0.35s ease;
}

.btn:hover {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

.btn:hover::after {
    transform: translateX(4px);
}

/* =========================================================
   Footer
   ========================================================= */
#site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.75rem;
    z-index: 50;
    font-family: var(--sans);
}

.footer-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--ink-mute);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-right: auto;
    /* push label to far left */
}

#site-footer a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    position: relative;
    transition: color 0.3s ease;
}

#site-footer a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

#site-footer a:hover {
    color: var(--ink);
}

#site-footer a:hover::after {
    width: 100%;
}

/* =========================================================
   Spinning Badge
   ========================================================= */
.badge {
    position: fixed;
    left: 2.5rem;
    bottom: 5rem;
    width: 110px;
    height: 110px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge svg {
    width: 100%;
    height: 100%;
    fill: var(--ink-soft);
    animation: spin 22s linear infinite;
}

.badge-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
    #site-header {
        padding: 1.5rem 2rem;
    }

    .scene {
        gap: 3rem;
    }

    .main-menu {
        gap: 1.75rem;
    }
}

@media (max-width: 768px) {
    #canvas-container {
        height: 80vh;
        zoom: 125%;
        align-items: flex-end;
    }

    #scrolly-canvas {
        margin-left: -20%;
    }

    #site-header {
        padding: 1rem 1.25rem;
    }

    .brand-role {
        display: none;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .site-logo {
        width: 18px;
        height: 30px;
    }

    .main-menu {
        gap: 1rem;
    }

    .main-menu a {
        font-size: 0.7rem;
        gap: 0.3rem;
    }

    .main-menu a .nav-num {
        font-size: 0.55rem;
    }

    .scene {
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
        text-align: center;
        align-items: center;
        bottom: 80px;
    }

    .content-left,
    .content-right {
        text-align: center;
        flex: none;
        width: 100%;
        align-items: center;
    }

    .content-left::before {
        margin-left: auto;
        margin-right: auto;
    }

    p {
        text-align: center;
        max-width: 100%;
    }

    h1,
    h2 {
        font-size: 1.7rem;
    }

    p {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.85rem 1.6rem;
        font-size: 0.78rem;
    }

    #site-footer {
        padding: 1rem 1rem;
        gap: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-label {
        display: none;
    }

    #site-footer a {
        font-size: 0.7rem;
    }

    .badge {
        left: -45px;
        bottom: 45%;
        width: 90px;
        height: 90px;
    }
}

/* =========================================================
   PAGE: Works & Contact — shared shells
   These pages don't use the scrolly-canvas, so allow scroll
   and let the body breathe.
   ========================================================= */
body.page-works,
body.page-contact {
    overflow-x: hidden;
    min-height: 100vh;
}

body.page-works #site-header,
body.page-contact #site-header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Eyebrow label used on works/contact intros */
.eyebrow {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 1.25rem;
}

/* Active nav state */
.main-menu a.active {
    opacity: 1;
}

.main-menu a.active::after {
    width: 100%;
    background: var(--accent);
}

.main-menu a.active .nav-num {
    color: var(--accent);
}

/* =========================================================
   PAGE: Works
   ========================================================= */
.works-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 9rem 2.5rem 7rem;
}

.works-intro {
    max-width: 760px;
    margin: 0 0 6rem;
}

.page-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.works-lede {
    font-family: var(--sans);
    font-size: 1.05rem;
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 52ch;
    font-weight: 300;
}

/* Project Block */
.project {
    margin-bottom: 7rem;
    border-top: 1px solid var(--rule);
    padding-top: 2.25rem;
}

.project-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 2.25rem;
}

.project-id {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--ink-mute);
    letter-spacing: 0.08em;
}

.project-num::before {
    content: "Project / ";
    color: var(--ink-mute);
    opacity: 0.6;
}

.project-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--ink);
}

.project-title em {
    font-style: italic;
    color: var(--accent);
}

.project-meta {
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-mute);
    text-align: right;
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--rule);
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide:hover img {
    transform: scale(1.02);
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.carousel-slide:hover .carousel-overlay {
    opacity: 1;
}

.zoom-icon {
    font-family: var(--mono);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.7rem;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--rule);
    color: var(--ink);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.4rem;
    line-height: 1;
    transition: background 0.3s, transform 0.3s ease;
}

.carousel-btn:hover {
    background: var(--ink);
    color: var(--bg);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev {
    left: 18px;
}

.carousel-btn.next {
    right: 18px;
}

/* Project videos */
.video-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-video {
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--rule);
    background: #000;
}

/* Lightbox */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

#lightbox.active {
    display: flex;
    opacity: 1;
}

#lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
}

#lightbox-close {
    position: absolute;
    top: 2.25rem;
    right: 2.5rem;
    color: var(--ink);
    font-size: 1.5rem;
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--rule);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sans);
    z-index: 1000;
    transition: background 0.3s, color 0.3s;
}

#lightbox-close:hover {
    background: var(--ink);
    color: var(--bg);
}

.lb-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--ink);
    font-size: 2.5rem;
    cursor: pointer;
    padding: 1.5rem;
    z-index: 1000;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.lb-btn:hover {
    opacity: 1;
}

.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

.lb-counter {
    position: absolute;
    bottom: 2.25rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--mono);
    color: var(--ink-mute);
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    text-transform: uppercase;
}

/* =========================================================
   PAGE: Contact
   ========================================================= */
body.page-contact {
    display: flex;
    flex-direction: column;
}

.contact-container {
    flex: 1;
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    gap: 5rem;
    padding: 9rem 2.5rem 6rem;
    align-items: stretch;
}

.contact-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-left .header-group {
    margin-bottom: 4.5rem;
}

.contact-left h1 {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 1.25rem;
}

.contact-left h1 em {
    font-style: italic;
    color: var(--accent);
}

.contact-lede {
    font-family: var(--sans);
    font-size: 1rem;
    color: var(--ink-soft);
    font-weight: 300;
    line-height: 1.55;
    max-width: 42ch;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.info-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-mute);
    margin-bottom: 0.6rem;
}

.info-link {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    color: var(--ink);
    text-decoration: none;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
    transition: color 0.3s;
    position: relative;
    width: fit-content;
}

.info-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.info-link:hover {
    color: var(--accent);
}

.info-link:hover::after {
    width: 100%;
}

.info-link.email {
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    color: var(--ink-soft);
    font-family: var(--sans);
    font-weight: 400;
    letter-spacing: 0;
}

.info-address {
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-mute);
    margin-top: 1.25rem;
}

.contact-right {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 4/5;
    border-radius: 4px;
    overflow: hidden;
    background-color: #0d0d0d;
    border: 1px solid var(--rule);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.15) brightness(0.85) contrast(1.05);
}

.contact-badge {
    position: absolute;
    left: -45px;
    bottom: 45px;
    width: 110px;
    height: 110px;
}

/* Footer for sub-pages (non-fixed) */
.page-footer {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 2rem 2.5rem 2.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.75rem;
    border-top: 1px solid var(--rule);
    font-family: var(--sans);
}

.page-footer .footer-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--ink-mute);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-right: auto;
}

.page-footer a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    position: relative;
    transition: color 0.3s ease;
}

.page-footer a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.page-footer a:hover {
    color: var(--ink);
}

.page-footer a:hover::after {
    width: 100%;
}

/* =========================================================
   Responsive — Works & Contact
   ========================================================= */
@media (max-width: 1024px) {
    .works-container {
        padding: 8rem 1.75rem 5rem;
    }

    .contact-container {
        padding: 8rem 1.75rem 4rem;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .works-container {
        padding: 7rem 1.25rem 4rem;
    }

    .works-intro {
        margin-bottom: 4rem;
    }

    .project {
        margin-bottom: 4.5rem;
    }

    .project-header {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .project-meta {
        text-align: left;
    }

    .carousel-slide {
        height: 380px;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .contact-container {
        flex-direction: column;
        gap: 3.5rem;
        padding: 7rem 1.25rem 3rem;
    }

    .contact-left,
    .contact-right {
        flex: none;
        width: 100%;
    }

    .contact-right {
        order: -1;
        justify-content: center;
    }

    .contact-badge {
        left: -20px;
        bottom: -30px;
        width: 90px;
        height: 90px;
    }

    .page-footer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        padding: 1.5rem 1rem 2rem;
    }

    .page-footer .footer-label {
        display: none;
    }

    .page-footer a {
        font-size: 0.7rem;
    }

    #lightbox-close {
        top: 1rem;
        right: 1rem;
    }

    .lb-btn {
        font-size: 1.6rem;
        padding: 0.8rem;
    }
}
