@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@300;400;500;700&display=swap');

:root {
    --background: #0D0D0D;
    --surface: #1A1A1A;
    --surface-hover: #242424;
    --text-primary: #F5F5F5;
    --text-secondary: #999999;
    --text-muted: #666666;
    --accent: #E8FF59;
    --border: #2A2A2A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    transition: opacity 0.6s ease;
}

body.is-loaded {
    opacity: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── Typography ───────────────────────────── */

h1, h2, h3, h4, h5 {
    font-family: "Zen Kaku Gothic New", sans-serif;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

h1 {
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
}

h2 {
    font-weight: 700;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.2;
}

h3 {
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.4;
    letter-spacing: 0.04em;
}

h4 {
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.5;
    letter-spacing: 0.03em;
}

h5 {
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

p {
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.75;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    max-width: 42em;
}

.body-base {
    font-size: 1rem;
    line-height: 1.85;
    letter-spacing: 0.02em;
}

.body-small {
    font-size: 0.875rem;
    line-height: 1.7;
    letter-spacing: 0.02em;
}

.labels-cap {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.caption {
    font-size: 0.8125rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--text-muted);
}

.button-text {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.03em;
}

/* ── Navigation ───────────────────────────── */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background-color: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    transition: background-color 0.4s ease,
                padding 0.4s ease,
                border-color 0.4s ease;
}

nav.nav-scrolled {
    padding: 1rem 3rem;
    background-color: rgba(13, 13, 13, 0.95);
}

.left-nav {
    display: flex;
    gap: 2rem;
}

.left-nav a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.left-nav a:hover {
    color: var(--accent);
}

/* ── Hero ─────────────────────────────────── */

header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 3rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

header h1 {
    margin-bottom: 0.5rem;
}

header h2 {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

header p {
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 38em;
    margin-bottom: 2.5rem;
}

header h1,
header h2,
header p {
    will-change: transform, opacity;
    transition: transform 0.1s linear, opacity 0.1s linear;
}

.status-line {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.cta {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background-color: var(--accent);
    color: #0D0D0D;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    border-radius: 6px;
    align-self: flex-start;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.2s ease,
                background-color 0.2s ease;
}

.cta:hover {
    opacity: 0.9;
}

/* ── Sections ─────────────────────────────── */

section {
    padding: 6rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    scroll-margin-top: 80px;
}

.section-label {
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    margin-bottom: 3rem;
}

/* ── Work Section ─────────────────────────── */

.work-section {
    padding: 8rem 3rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.work-header {
    margin-bottom: 6rem;
}

.work-title {
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 1.5rem 0 2rem;
    text-transform: uppercase;
}

.work-title__line {
    display: block;
}

.work-title__line--indent {
    padding-left: 15%;
}

.work-intro {
    max-width: 34em;
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.75;
}

/* ── Work Grid ────────────────────────────── */

.work-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 2.5rem;
}

.work-row {
    display: block;
    color: inherit;
    position: relative;
}

/* ── Thumbnail ────────────────────────────── */

.work-row__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    box-shadow:
        0 0 0 1px var(--border),
        0 20px 60px -20px rgba(232, 255, 89, 0.15),
        0 15px 40px -15px rgba(0, 0, 0, 0.7);
    transition: box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1.02);
}

/* View cue */
.work-row__view {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.6rem 1rem;
    background: var(--accent);
    color: #0D0D0D;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 100px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.work-row:hover .work-row__view {
    opacity: 1;
    transform: translateY(0);
}

.work-row:hover .work-row__thumb {
    transform: translateY(-6px);
    box-shadow:
        0 0 0 1px var(--accent),
        0 40px 90px -30px rgba(232, 255, 89, 0.4),
        0 25px 60px -20px rgba(0, 0, 0, 0.85);
}

.work-row:hover .work-row__thumb img {
    transform: scale(1.06);
}

.work-row__thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 55%,
        rgba(13, 13, 13, 0.3) 100%
    );
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.work-row:hover .work-row__thumb::after {
    opacity: 0.4;
}

/* ── Meta Strip ───────────────────────────── */

.work-row__meta {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0.25rem 0;
}

.work-row__index {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.work-row__title {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
    transition: color 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-row:hover .work-row__title {
    color: var(--accent);
    transform: translateX(4px);
}

.work-row__tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.work-row__tags span {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
    transition: color 0.4s ease, border-color 0.4s ease;
}

.work-row:hover .work-row__tags span {
    color: var(--text-primary);
    border-color: var(--accent);
}

/* ── About ────────────────────────────────── */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.25rem;
}

/* ── Education ────────────────────────────── */

.education__heading {
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: block;
}

.education__item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.education__item:last-child {
    border-bottom: none;
}

.education__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.education__date {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.education__location {
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.education__degree {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.education__school {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 0.25rem;
    line-height: 1.5;
}

.education__note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

/* ── Skills ───────────────────────────────── */

.skills-list {
    list-style: none;
}

.skills-list li {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.skills-list li:last-child {
    border-bottom: none;
}

.skills-list strong {
    color: var(--text-primary);
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Contact / Footer ─────────────────────── */

footer {
    padding: 4rem 3rem;
    border-top: 1px solid var(--border);
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.contact-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-links a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.contact-links a:hover {
    color: var(--accent);
}

/* ── Reveal on scroll ─────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.work-row.reveal {
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-row.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Background aura ──────────────────────── */

.bg-aura {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-aura__ellipse {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    will-change: transform;
    transition: transform 0.15s linear;
}

.bg-aura__ellipse--primary {
    width: 55vw;
    height: 55vw;
    top: 10%;
    left: 5%;
    background: radial-gradient(
        circle at center,
        rgba(232, 255, 89, 0.22) 0%,
        rgba(232, 255, 89, 0.08) 40%,
        transparent 70%
    );
}

.bg-aura__ellipse--secondary {
    width: 45vw;
    height: 45vw;
    top: 50%;
    right: 0%;
    background: radial-gradient(
        circle at center,
        rgba(120, 90, 255, 0.18) 0%,
        rgba(120, 90, 255, 0.06) 40%,
        transparent 70%
    );
}

.bg-aura__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(
        ellipse at center,
        black 0%,
        transparent 75%
    );
    -webkit-mask-image: radial-gradient(
        ellipse at center,
        black 0%,
        transparent 75%
    );
}

/* ── Custom cursor ────────────────────────── */

.cursor,
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor {
    width: 32px;
    height: 32px;
    border: 1px solid var(--accent);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: var(--accent);
}

.cursor.cursor-hover {
    width: 56px;
    height: 56px;
    background-color: rgba(232, 255, 89, 0.15);
}

@media (pointer: fine) {
    body,
    a,
    button,
    .work-row,
    .cta {
        cursor: none;
    }
}

/* ── Responsive ───────────────────────────── */

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .education {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .left-nav {
        gap: 1.25rem;
    }

    header {
        padding: 7rem 1.5rem 3rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .work-section {
        padding: 5rem 1.5rem 4rem;
    }

    .work-title {
        letter-spacing: -0.01em;
    }

    .work-title__line--indent {
        padding-left: 8%;
    }

        .work-list {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .work-row__thumb {
        aspect-ratio: 4 / 3;
    }

    .work-row__meta {
        grid-template-columns: 40px 1fr;
        gap: 1rem;
        padding-top: 1rem;
    }

    .work-row__tags {
        grid-column: 2 / 3;
        justify-content: flex-start;
        margin-top: 0.4rem;
    }

    .work-row__view {
        bottom: 0.75rem;
        right: 0.75rem;
        padding: 0.5rem 0.875rem;
        font-size: 0.625rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .education__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    footer {
        padding: 3rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .bg-aura__ellipse {
        filter: blur(80px);
        opacity: 0.35;
    }

    .bg-aura__ellipse--primary {
        width: 90vw;
        height: 90vw;
    }

    .bg-aura__ellipse--secondary {
        width: 80vw;
        height: 80vw;
    }
}

/* ── Reduced motion ───────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    header h1,
    header h2,
    header p {
        transform: none !important;
        opacity: 1 !important;
    }

    html {
        scroll-behavior: auto;
    }

    .bg-aura__ellipse {
        transition: none;
    }
}


/* ── Project Page ─────────────────────────── */

.project {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10rem 3rem 6rem;
}

.project__topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.project__back {
    display: inline-block;
    color: var(--text-muted);
    transition: color 0.2s ease, transform 0.3s ease;
}

.project__back:hover {
    color: var(--accent);
    transform: translateX(-4px);
}

.project__live-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    color: #0D0D0D;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease,
                background-color 0.2s ease;
}

.project__live-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.project__live-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -8px rgba(232, 255, 89, 0.5);
}

.project__live-btn:hover svg {
    transform: translate(2px, -2px);
}

/* ── Project Hero ─────────────────────────── */

.project__hero {
    margin-bottom: 4rem;
    max-width: 900px;
}

.project__title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 1rem 0 1.5rem;
}

.project__lede {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 34em;
    margin-bottom: 3rem;
}

.project__meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.project__meta-item .labels-cap {
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}

.project__meta-item p {
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
}

/* ── Hero Image ───────────────────────────── */

.project__hero-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    margin-bottom: 6rem;
    box-shadow:
        0 0 0 1px var(--border),
        0 40px 100px -40px rgba(232, 255, 89, 0.25),
        0 20px 60px -20px rgba(0, 0, 0, 0.8);
    line-height: 0;
    cursor: zoom-in;
    transition: box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.project__hero-image:hover {
    box-shadow:
        0 0 0 1px var(--accent),
        0 50px 120px -40px rgba(232, 255, 89, 0.4),
        0 30px 80px -20px rgba(0, 0, 0, 0.9);
}

/* ── Project Sections ─────────────────────── */

.project__section {
    margin-bottom: 6rem;
    max-width: 800px;
}

.project__section--wide {
    max-width: 100%;
    width: 100%;
}

.project__section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.project__body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* ── Process Steps ────────────────────────── */

.project__process {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.project__process-step {
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.project__process-step:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.project__step-number {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.project__process-step h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project__process-step p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* ── Gallery Section ──────────────────────── */

.project__gallery-section {
    margin-bottom: 6rem;
    max-width: 100%;
}

.project__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.project__gallery-item {
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--border);
    line-height: 0;
    cursor: zoom-in;
    transition: box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project__gallery-item--wide {
    grid-column: 1 / -1;
}

.project__gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.project__gallery-item:hover {
    box-shadow:
        0 0 0 1px var(--accent),
        0 25px 70px -20px rgba(232, 255, 89, 0.4);
}

/* ── Results ──────────────────────────────── */

.project__results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.project__result {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project__result-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.project__result-label {
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ── Next Project ─────────────────────────── */

.project__next {
    display: block;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 4rem;
    transition: padding 0.4s ease;
}

.project__next:hover {
    padding-left: 1rem;
}

.project__next .labels-cap {
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.75rem;
}

.project__next h3 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    transition: color 0.3s ease;
    margin: 0;
}

.project__next:hover h3 {
    color: var(--accent);
}

/* ── Lightbox ─────────────────────────────── */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    cursor: zoom-out;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.is-open .lightbox__image {
    transform: scale(1);
}

.lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.3s ease;
    z-index: 9999;
}

.lightbox__close:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #0D0D0D;
    transform: rotate(90deg);
}

.lightbox__close svg {
    width: 20px;
    height: 20px;
}

/* ── Responsive ───────────────────────────── */

@media (max-width: 1024px) {
    .project__meta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .project {
        padding: 8rem 1.5rem 4rem;
    }

    .project__topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        margin-bottom: 3rem;
    }

    .project__live-btn {
        width: 100%;
        justify-content: center;
    }

    .project__meta-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .project__process,
    .project__gallery,
    .project__results {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .project__hero-image {
        margin-bottom: 4rem;
    }

    .project__section {
        margin-bottom: 4rem;
    }

    .project__gallery-section {
        margin-bottom: 4rem;
    }

    .lightbox {
        padding: 3rem 1rem;
    }

    .lightbox__close {
        top: 1rem;
        right: 1rem;
        width: 42px;
        height: 42px;
    }
}

/* ── Video ────────────────────────────────── */

.project__video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    box-shadow:
        0 0 0 1px var(--border),
        0 40px 100px -40px rgba(232, 255, 89, 0.25),
        0 20px 60px -20px rgba(0, 0, 0, 0.8);
    transition: box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.project__video:hover {
    box-shadow:
        0 0 0 1px var(--accent),
        0 50px 120px -40px rgba(232, 255, 89, 0.4),
        0 30px 80px -20px rgba(0, 0, 0, 0.9);
}

@media (max-width: 1024px) and (min-width: 769px) {
    .work-list {
        gap: 2.5rem 2rem;
    }

    .work-row__title {
        font-size: 1.25rem;
    }
}