/* style.css — design system overhaul + hero/nav BEM styles — 2026-05-26 */

/* ─── DESIGN TOKENS ─────────────────────────────────────────────────────── */
:root {
    --color-bg: #D4D4CA;
    --color-text: #2F2F30;
    --color-accent: #DFDFDF;
    --color-hero-top: #DCDCD1;
    --color-hero-bottom: #7E7E7A;

    --font-primary: 'Urbanist', ui-sans-serif, system-ui, sans-serif;

    --nav-height: 64px;
}

/* ─── RESET / BASE ──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-primary);
    font-weight: 500;
    margin: 0;
}

/* ─── NOISE OVERLAY ─────────────────────────────────────────────────────── */
.noise-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.10;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5 0.5' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 300px 300px;
}

/* ─── NAV ───────────────────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease, transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

.nav--scrolled {
    background: rgba(212, 212, 202, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--color-accent);
}

.nav__inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.nav__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.nav__logo-img {
    height: 46px;
    width: auto;
    display: block;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__divider {
    color: var(--color-text);
    opacity: 0.35;
    font-size: 0.65rem;
    padding: 0 0.6rem;
    user-select: none;
}

.nav__link {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text);
    text-decoration: none;
    padding: 4px 0;
    position: relative;
    white-space: nowrap;
}

/* underline slides in from left on hover */
.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-text);
    transition: width 220ms ease;
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

/* CONTACT ME pill */
.nav__link--cta {
    border: 1.5px solid var(--color-text);
    padding: 8px 20px;
    border-radius: 999px;
    margin-left: 0.5rem;
    transition: background 250ms ease, color 250ms ease;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* ─── HAMBURGER ─────────────────────────────────────────────────────────── */
.nav__hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--color-text);
}

/* ─── MOBILE MENU ───────────────────────────────────────────────────────── */
.nav__mobile-menu {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--color-text);
    z-index: 200;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 2.5rem;
    gap: 0.75rem;
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
}

.nav__mobile-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-bg);
    padding: 4px;
}

.nav__mobile-link {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 2rem;
    text-transform: uppercase;
    color: var(--color-bg);
    text-decoration: none;
    letter-spacing: 0.04em;
    line-height: 1.3;
    transition: opacity 200ms ease;
}

.nav__mobile-link:hover {
    opacity: 0.6;
}

.nav__mobile-link--cta {
    margin-top: 2rem;
    font-size: 1rem;
    font-weight: 500;
    border: 1.5px solid var(--color-bg);
    padding: 10px 24px;
    border-radius: 999px;
    letter-spacing: 0.1em;
    transition: background 250ms ease, color 250ms ease;
}

.nav__mobile-link--cta:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

/* ─── HERO ──────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100dvh;
    background: linear-gradient(to bottom, var(--color-hero-top) 38%, var(--color-hero-bottom) 100%);
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 0 2.5rem;
    overflow: hidden;
}

.hero__grid {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 0 1rem;
    flex: 1;
}

.hero__headline {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: clamp(4.5rem, 10vw, 9rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: var(--color-text);
    text-transform: lowercase;
    margin: 0;
}

/* Bottom row: [specialties + bio] · slideshow */
.hero__bottom-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 2rem;
}

.hero__bottom-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    flex: 1 1 0;
    min-width: 0;
}

.hero__specialties {
    border-left: 3px solid #9A9A9A;
    padding-left: 16px;
    list-style: none;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
}

.hero__specialties li {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 24px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text);
    line-height: 1.5;
}

.hero__bio {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    line-height: 1.6;
    color: #141416;
    opacity: 0.75;
    max-width: 420px;
    margin: 0;
}

.hero__slideshow {
    flex: 0 0 clamp(360px, 35vw, 560px);
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    cursor: none;
}

.hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: filter 400ms ease;
    object-fit: cover;
}

.hero__slideshow:hover .hero__slide {
    filter: brightness(0.75);
}

.hero__slide.is-active {
    opacity: 1;
}


/* Custom cursor for slideshow */
.hero__cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #ffffff;
    color: #2F2F30;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: transform 80ms ease, opacity 150ms ease;
    top: 0;
    left: 0;
}

.hero__cursor.is-visible {
    opacity: 1;
}

/* Project card — dark scrim (JS-controlled) */
.project__view-overlay {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: transparent;
    opacity: 0;
    transition: opacity 250ms ease;
    pointer-events: none;
    z-index: 3;
}

.project__image-wrap:hover .project__image {
    filter: brightness(0.75);
}

/* Fixed cursor circle — position driven by JS transform */
.project__cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #ffffff;
    color: #2F2F30;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 14px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 200ms ease;
}

/* Bottom bar */
.hero__bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    margin-top: 58px;
}

.hero__location {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 0;
    opacity: 0.6;
}

.hero__location-default {
    display: inline-block;
    white-space: nowrap;
    color: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

.hero__location-time {
    position: absolute;
    left: 0;
    white-space: nowrap;
    color: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(1.2em);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero__location:hover .hero__location-default {
    transform: translateY(-1.2em);
    opacity: 0;
}

.hero__location:hover .hero__location-time {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

.time-blink {
    animation: blink 1s infinite;
}

.hero__cta {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 0;
    text-decoration: none;
    display: inline-block;
}

.hero__cta-default {
    display: inline-block;
    white-space: nowrap;
    color: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

.hero__cta-hover {
    position: absolute;
    left: 0;
    white-space: nowrap;
    color: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(1.2em);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (min-width: 768px) {
    .hero__cta:hover .hero__cta-default {
        transform: translateY(-1.2em);
        opacity: 0;
    }

    .hero__cta:hover .hero__cta-hover {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero__cta::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 1px;
        background: white;
        transition: width 0.4s ease;
    }

    .hero__cta:hover::after {
        width: 100%;
    }
}

/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero__headline {
        font-size: clamp(3.5rem, 8vw, 6rem);
    }

    .hero__grid {
        justify-content: flex-start;
        gap: 6rem;
    }

    .hero__bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .hero__bottom-info {
        flex: none;
        width: 100%;
    }

    .hero__slideshow {
        flex: none;
        width: 100%;
    }

    .hero__specialties li {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .nav__links {
        display: none;
    }

    .nav__hamburger {
        display: block;
    }

    .hero {
        padding: var(--nav-height) 1.25rem 0;
    }

    .hero__grid {
        justify-content: flex-start;
        gap: 4rem;
        padding: 1.5rem 0 1rem;
    }

    .hero__headline {
        font-size: clamp(3.5rem, 14vw, 5rem);
    }

    .hero__bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .hero__bottom-info {
        flex: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }

    .hero__slideshow {
        flex: none;
        width: 100%;
    }

    .hero__bio {
        max-width: 100%;
    }

    .hero__specialties li {
        font-size: 20px;
    }

    .hero__bottom-bar {
        flex-direction: column-reverse;
        gap: 30px;
        margin-top: 28px;
        margin-bottom: 10px;
    }

    .hero__cta {
        width: 100%;
        border: 1px solid white;
        padding: 12px;
        text-align: center;
        border-radius: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 50px;
        aspect-ratio: 1;
    }

    .hero__cta:active,
    .hero__cta:focus {
        background: white;
        color: var(--color-text);
    }

    .hero__cta:active .hero__cta-default,
    .hero__cta:focus .hero__cta-default {
        color: var(--color-text);
    }

    .hero__cta:active .hero__cta-hover,
    .hero__cta:focus .hero__cta-hover {
        color: var(--color-text);
    }
}

@media (min-width: 768px) {
    .nav__hamburger {
        display: none;
    }

    .nav__links {
        display: flex;
    }
}

/* ─── HERO: DESKTOP (1024px+) ────────────────────────────────────────────── */
@media (min-width: 1024px) {
    .hero__headline {
        padding-top: 8vh;
    }

    .showcase__tagline-text {
        width: 75%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ─── ABOUT ─────────────────────────────────────────────────────────────── */
.about {
    background: #2F2F30;
    color: #D4D4CA;
    padding: clamp(5rem, 8vw, 8rem) 2.5rem clamp(5rem, 8vw, 8rem);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about__headline {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: clamp(3.5rem, 8vw, 7rem);
    letter-spacing: -0.02em;
    line-height: 1;
    color: #D4D4CA;
    text-transform: lowercase;
    margin: 0 0 clamp(4rem, 8vw, 8rem);
    /* scroll animation start state */
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about__headline.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Desktop: flex row, space-between */
.about__content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: clamp(2rem, 4vw, 4rem);
}

/* Left group: photo + bio side by side */
.about__main {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: clamp(2rem, 2vw, 4rem);
    flex: 1;
    min-width: 0;
}

/* Left group animation */
.about__main {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.about__main.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.about__photo-wrap {
    flex-shrink: 0;
    width: 240px;
    position: relative;
    background-color: #3D3830;
    overflow: hidden;
    cursor: crosshair;
}

/* Scoped noise grain on top of both image layers */
.about__photo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5 0.5' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 300px 300px;
}

.about__photo {
    display: block;
    width: 100%;
    object-fit: contain;
    object-position: bottom center;
}

/* Color layer — bottom, always present */
.about__photo--color {
    position: relative;
    z-index: 1;
}

/* Grey layer — vintage default, clips away on hover to reveal color */
.about__photo--grey {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    filter: grayscale(100%) sepia(25%) contrast(1.1) brightness(0.88);
    clip-path: circle(150% at 50% 50%);
}

/* Texture glitch overlay — sits above grey, blends with screen mode */
.about__photo--texture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    mix-blend-mode: screen;
    opacity: 0.35;
    pointer-events: none;
}

.texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.texture--1 {
    opacity: 1;
}

.texture--2 {
    opacity: 0;
    transform: scaleY(-1);
}

.texture--4 {
    opacity: 0;
}

/* Touch devices — show full color only, no effects */
@media (hover: none) {
    .about__photo-wrap {
        cursor: auto;
    }

    .about__photo--grey,
    .about__photo--texture {
        display: none;
    }

    .about__photo-wrap::after {
        display: none;
    }
}

/* Bio */
.about__bio {
    flex: 1;
    min-width: 0;
    max-width: 500px;
}

.about__bio-intro {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    line-height: 1.7;
    color: #D4D4CA;
    margin: 0 0 1.25rem;
}

.about__bio-body {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    line-height: 1.7;
    color: #D4D4CA;
    opacity: 0.8;
    margin: 0 0 1.25rem;
}

.about__bio-body:last-child {
    margin-bottom: 0;
}

/* Col 3 — Logos */
.about__logos {
    max-width: 450px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.4s ease 0.5s, transform 0.4s ease 0.5s;
}

.about__logos.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.about__logos-label {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #D4D4CA;
    opacity: 0.6;
    margin: 0 0 1.25rem;
}

.about__logos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    align-items: center;
}

.about__logo {
    display: block;
    height: auto;
    width: 80px;
    object-fit: contain;
    object-position: left center;
}

/* ─── ABOUT: TABLET (768px–1023px) ─────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
    .about__content {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }

    /* Logos drop below the two-column row */
    .about__logos {
        grid-column: 1 / -1;
        margin-top: 3rem;
    }

    .about__logos-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem 2.5rem;
        align-items: center;
    }

    .about__logo {
        width: auto;
        height: 24px;
    }
}

/* ─── ABOUT: MOBILE (max-width: 767px) ─────────────────────────────────── */
@media (max-width: 767px) {
    .about {
        padding: clamp(4rem, 10vw, 6rem) 1.25rem clamp(4rem, 10vw, 6rem);
    }

    .about__content {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }

    .about__main {
        flex-direction: column;
        align-items: flex-start;
    }

    .about__photo {
        max-height: 320px;
        object-position: center bottom;
    }

    .about__logos-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 1.25rem 2rem;
        align-items: center;
    }

    .about__logo {
        height: 22px;
        width: auto;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURED PROJECTS
═══════════════════════════════════════════════════════════════════════════ */

.projects {
    background: linear-gradient(180deg,
            #B2B2A9 9%,
            #61615E 46%,
            #3D3D3D 70%,
            #171A1C 90%);
    padding: clamp(5rem, 8vw, 8rem) 0;
}

/* ─── MARQUEE ────────────────────────────────────────────────────────────── */
@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.marquee__wrapper {
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid #D4D4D4;
    border-bottom: 1px solid #D4D4D4;
    padding: 1.25rem 0;
    margin-bottom: clamp(3rem, 6vw, 6rem);
}


.marquee__track {
    display: inline-flex;
    gap: clamp(1.5rem, 3vw, 3rem);
    animation: marquee 18s linear infinite;
    will-change: transform;
}

.marquee__item {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: clamp(3.5rem, 8vw, 7rem);
    text-transform: lowercase;
    letter-spacing: -0.02em;
    color: #2F2F30;
}

.marquee__separator {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #2F2F30;
    align-self: center;
}

/* ─── PROJECT GRID ───────────────────────────────────────────────────────── */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

/* ─── PROJECT CARD ───────────────────────────────────────────────────────── */
.project__card {
    display: block;
    text-decoration: none;
    border: 1px solid #D4D4D4;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: border-color 300ms ease;
}

.project__card:hover {
    border-color: #D4D4CA;
}

/* Left column cards — no left border */
.projects__grid .project__card:nth-child(odd) {
    border-left: none;
}

/* Right column cards — no right border */
.projects__grid .project__card:nth-child(even) {
    border-right: none;
}

.project__card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.project__meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.project__title {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: clamp(1.1rem, 3vw, 2.5rem);
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-transform: uppercase;
}

.project__role {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    color: #f4f4f4;
    opacity: 0.6;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project__image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    flex: 1;
    min-height: 150px;
}

.project__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 10px;
    will-change: transform, filter;
    transition: filter 400ms ease;
}

/* ─── PROJECTS: MOBILE ───────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .projects {
        padding: clamp(4rem, 10vw, 6rem) 0;
    }

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

    .projects__grid .project__card {
        border-left: none;
        border-right: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MORE PROJECTS — 3D CAROUSEL
═══════════════════════════════════════════════════════════════════════════ */

.showcase {
    background: #171A1C;
    padding: clamp(5rem, 8vw, 8rem) 0;
}

/* ─── DARK MARQUEE OVERRIDES ─────────────────────────────────────────────── */
.marquee__wrapper--dark {
    border-top-color: rgba(212, 212, 202, 0.2);
    border-bottom-color: rgba(212, 212, 202, 0.2);
}

.marquee__item--dark {
    color: #D4D4CA;
}

.marquee__separator--dark {
    color: #D4D4CA;
    opacity: 0.4;
}

/* ─── SCENE & CAROUSEL ───────────────────────────────────────────────────── */
.showcase__scene {
    width: 100%;
    height: clamp(320px, 50vw, 520px);
    perspective: 1200px;
    perspective-origin: center center;
    position: relative;
    overflow: hidden;
}

.showcase__carousel {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transform-origin: center center;
    cursor: grab;
}

.showcase__carousel:active {
    cursor: grabbing;
}

.showcase__card {
    position: absolute;
    width: 400px;
    aspect-ratio: 3 / 2;
    left: 50%;
    top: 50%;
    margin-left: -200px;
    margin-top: -133px;
    border-radius: 12px;
    overflow: hidden;
    cursor: grab;
    transition: cursor 250ms ease;
}

.showcase__card:hover::after {
    content: 'Drag';
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.25rem;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-radius: 999px;
    backdrop-filter: blur(10px);
    z-index: 10;
    pointer-events: none;
    animation: dragPillFadeIn 300ms ease;
}

@keyframes dragPillFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.showcase__card:active {
    cursor: grabbing;
}

.showcase__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 10px;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* ─── SHOWCASE: MOBILE ───────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .showcase__scene {
        height: clamp(240px, 60vw, 340px);
        perspective: 800px;
    }

    .showcase__card {
        width: 220px;
        aspect-ratio: 3 / 2;
        margin-left: -110px;
        margin-top: -73px;
    }

    .showcase__tagline {
        width: 100% !important;
        padding-top: 30px !important;
        padding-bottom: 25px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* ─── SHOWCASE TAGLINE ───────────────────────────────────────────────────── */
.showcase__tagline {
    width: 80%;
    margin: 0 auto 50px;
    text-align: center;
}

.showcase__tagline::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: #D4D4CA;
    opacity: 0.3;
    margin: 0 auto clamp(1.5rem, 3vw, 2.5rem) auto;
}

.showcase__tagline-text {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.6;
    letter-spacing: -0.01em;
    text-align: center;
    color: #D4D4CA;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROJECT DETAIL PANEL
═══════════════════════════════════════════════════════════════════════════ */

.panel {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #1A1A1A;
    transform: translateY(100%);
    transition: transform 700ms cubic-bezier(0.76, 0, 0.24, 1);
    overflow: hidden;
    visibility: hidden;
}

.panel.is-open {
    transform: translateY(0);
    visibility: visible;
}

/* ─── Close button ───────────────────────────────────────────────────────── */
.panel__close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1010;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(212, 212, 202, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 500ms ease 400ms,
        border-color 250ms ease;
}

.panel.is-open .panel__close {
    clip-path: inset(0 0 0% 0);
}

.panel__close:hover {
    border-color: rgba(212, 212, 202, 0.8);
}

.panel__close-line {
    display: block;
    width: 16px;
    height: 1.5px;
    background: #D4D4CA;
}

.panel__close-line:first-child {
    transform: rotate(45deg) translate(2px, 2px);
}

.panel__close-line:last-child {
    transform: rotate(-45deg) translate(2px, -2px);
}

/* ─── Collapsed title ────────────────────────────────────────────────────── */
/* Small title that appears in the sticky info column on scroll */
.panel__title-sticky {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: clamp(1.1rem, 4vw, 2.5rem);
    text-transform: lowercase;
    letter-spacing: -0.01em;
    color: #D4D4CA;
    line-height: 1.2;
    margin: 0 0 1.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    will-change: transform, opacity, visibility;
}

/* ─── Panel body ─────────────────────────────────────────────────────────── */
.panel__body {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.panel__body::-webkit-scrollbar {
    display: none;
}

/* ─── Large title ────────────────────────────────────────────────────────── */
.panel__title {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 7rem);
    color: #D4D4CA;
    text-transform: lowercase;
    letter-spacing: -0.02em;
    line-height: 0.95;
    margin-top: clamp(2rem, 4vw, 4rem);
    margin-bottom: clamp(2rem, 4vw, 4rem);
    padding-left: clamp(2rem, 5vw, 5rem);
    padding-right: clamp(2rem, 5vw, 5rem);
    transform-origin: left top;
    will-change: transform, opacity;
}

/* ─── Divider ────────────────────────────────────────────────────────────── */
.panel__divider {
    width: 100%;
    height: 1px;
    background: rgba(212, 212, 202, 0.15);
}

/* ─── Two column layout ──────────────────────────────────────────────────── */
.panel__layout {
    display: grid;
    grid-template-columns: 35% 1fr;
    align-items: start;
    position: relative;
}

/* ─── Left — sticky info ─────────────────────────────────────────────────── */
.panel__info {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(212, 212, 202, 0.15);
    border-right: 1px solid rgba(212, 212, 202, 0.15);
    padding-top: clamp(2rem, 4vw, 4rem);
    padding-left: clamp(2rem, 5vw, 5rem);
    padding-right: clamp(2rem, 4vw, 4rem);
}

.panel__info-block {
    padding: 1.25rem 0;
}

.panel__info-label {
    display: block;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #D4D4CA;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.panel__info-text {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    color: #D4D4CA;
    opacity: 0.85;
    line-height: 1.6;
    margin: 0;
}

/* ─── Visit site button ──────────────────────────────────────────────────── */
.panel__cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.panel__contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(212, 212, 202, 0.4);
    border-radius: 999px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #D4D4CA;
    text-decoration: none;
    transition: background 250ms ease, border-color 250ms ease;
}

.panel__contact-btn:hover {
    background: rgba(212, 212, 202, 0.1);
    border-color: rgba(212, 212, 202, 0.8);
}

.panel__visit-btn {
    display: none;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(212, 212, 202, 0.4);
    border-radius: 999px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #D4D4CA;
    text-decoration: none;
    transition: background 250ms ease, border-color 250ms ease;
}

.panel__visit-btn.is-visible {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.panel__visit-btn:hover {
    background: rgba(212, 212, 202, 0.1);
    border-color: rgba(212, 212, 202, 0.8);
}

/* ─── Right — images ─────────────────────────────────────────────────────── */
.panel__images {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 3rem);
    min-width: 0;
    overflow: hidden;
    border-top: 1px solid rgba(212, 212, 202, 0.15);
    padding-top: clamp(2rem, 4vw, 4rem);
    padding-left: clamp(2rem, 4vw, 4rem);
    padding-right: clamp(2rem, 5vw, 5rem);
    padding-bottom: 2rem;
}

.panel__image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    object-fit: cover;
    object-position: center top;
    border: 1px solid rgba(212, 212, 202, 0.08);
}

.panel__image-divider {
    width: 100%;
    height: 1px;
    background: rgba(212, 212, 202, 0.15);
    margin: clamp(1.5rem, 3vw, 3rem) 0;
}

/* ─── Other projects ─────────────────────────────────────────────────────── */
.panel__other {
    width: 100%;
    padding-top: clamp(2rem, 4vw, 4rem);
    padding-left: clamp(2rem, 5vw, 5rem);
    padding-right: clamp(2rem, 5vw, 5rem);
    padding-bottom: clamp(2rem, 5vw, 5rem);
    border-top: 1px solid rgba(212, 212, 202, 0.15);
}

.panel__other-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: clamp(0.8rem, 4vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffffff;
    opacity: 1;
    margin-bottom: 1.5rem;
}

.panel__other-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
}

.panel__other-card {
    display: block;
    width: 100%;
    text-align: left;
    background: #242424;
    border: 1px solid rgba(212, 212, 202, 0.12);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 250ms ease;
    padding: 0;
}

.panel__other-card:hover {
    border-color: rgba(212, 212, 202, 0.35);
}

.panel__other-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.panel__other-card-title {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.25rem;
    color: #D4D4CA;
    padding: 1rem;
    margin: 0;
}

.panel__other-card-role {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 0.8rem;
    color: #D4D4CA;
    opacity: 0.6;
    letter-spacing: 0.05em;
    margin: 0.5rem 0 0;
    padding: 0;
}

/* ─── TESTIMONIALS: MOBILE (max-width: 767px) ──────────────────────────── */
@media (max-width: 767px) {
    .testimonial__slide {
        align-items: center !important;
    }

    .testimonial__content {
        flex-direction: column;
    }

    .testimonial__body {
        padding-left: 25px;
        padding-right: 25px;
    }
}

/* ─── Panel mobile ───────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .panel__layout {
        grid-template-columns: 1fr;
    }

    .panel__info {
        position: static;
        height: auto;
        padding-bottom: 5rem;
    }

    .panel__images {
        padding-bottom: 0;
    }

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

/* ─── FOOTER: CONTACT CTA ───────────────────────────────────────────────── */
.footer__contact-cta {
    position: relative;
}

.footer__contact-cta::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.4s ease;
}

.footer__contact-cta:hover::after {
    width: 100%;
}

/* ─── FOOTER: MOBILE (max-width: 767px) ───────────────────────────────── */
@media (max-width: 767px) {
    .footer__contact-cta svg {
        width: 52px;
        height: 52px;
    }
}