/* ============================
   SHARED
============================ */

.page-hero {
    height: 60svh;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    padding: 0 60px 70px;
    position: relative;
    background-color: #0c0c0c;
    background-image: radial-gradient(120% 100% at 15% 100%, rgba(255, 255, 255, .06), transparent 60%);
    color: var(--text-white);
}

.page-hero-tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .2em;
    color: #9a9a9a;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.page-hero h1 {
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 400;
    color: #f6f6f6;
    line-height: 1.05;
    margin-bottom: 18px;
}

.page-hero p {
    max-width: 520px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-white);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.section-eyebrow::before {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--text-muted);
}

.section-eyebrow.on-dark {
    color: #9a9a9a;
}

.section-eyebrow.on-dark::before {
    background: #9a9a9a;
}

/* ============================
   PROJECTS LISTING
============================ */

.projects-filter-section {
    background-color: var(--bg-body);
    padding: 70px 60px 130px;
}

.projects-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 56px;
}

.projects-filter-pill {
    font-family: var(--font-secondary), sans-serif;
    font-size: 13px;
    color: var(--text-body);
    background-color: transparent;
    border: 1px solid var(--border-soft);
    padding: 11px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

.projects-filter-pill:hover {
    border-color: var(--text-body);
}

.projects-filter-pill.is-active {
    background-color: var(--text-body);
    border-color: var(--text-body);
    color: var(--bg-body);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.projects-card {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    background-color: #0a0a0a;
    opacity: 1;
    transform: scale(1);
    transition: opacity .3s ease, transform .3s ease;
}

.projects-card.is-hidden {
    display: none;
}

.projects-card-media {
    position: absolute;
    inset: 0;
}

.projects-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 1.1s cubic-bezier(.16, 1, .3, 1);
}

.projects-card:hover .projects-card-media img {
    transform: scale(1.08);
}

.projects-card-overlay {
    position: absolute;
    inset: 0;
    background:
            radial-gradient(60% 55% at 50% 45%, rgba(0, 0, 0, .32), transparent 72%),
            linear-gradient(0deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .08) 42%, rgba(0, 0, 0, 0) 62%);
}

.projects-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
            radial-gradient(80% 120% at 50% 100%, rgba(255, 255, 255, .06), transparent 60%),
            #0a0a0a;
}

.projects-card-placeholder span {
    font-family: var(--font-secondary), sans-serif;
    font-size: clamp(24px, 2.6vw, 34px);
    color: rgba(183, 183, 183, .28);
    text-align: center;
    padding: 0 30px;
}

.projects-card-brand {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    pointer-events: none;
    background: radial-gradient(42% 52% at 50% 50%, rgba(0, 0, 0, .55), transparent 75%);
}

.projects-card-logo {
    width: auto;
    height: clamp(64px, 9vw, 112px);
    max-width: min(62%, 260px);
    object-fit: contain;
    filter: drop-shadow(0 14px 34px rgba(0, 0, 0, .55));
}

.projects-card-status {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
    font-family: var(--font-secondary), sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #f2f2f2;
    border: 1px solid rgba(255, 255, 255, .35);
    padding: 6px 12px;
    border-radius: 999px;
}

.projects-card-info {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 2;
}

.projects-card-info h2 {
    font-family: var(--font-secondary), sans-serif;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 400;
    color: #f6f6f6;
    margin-bottom: 6px;
}

.projects-card-meta {
    display: block;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #d4d4d4;
}

.projects-empty {
    grid-column: 1 / -1;
    padding: 60px;
    text-align: center;
    color: var(--text-muted);
}

/* ============================
   PROJECT DETAIL
============================ */

.project-hero {
    position: relative;
    height: 100svh;
    display: flex;
    align-items: flex-end;
}

.project-hero.project-hero-compact {
    height: 56svh;
    min-height: 420px;
}

.project-hero-media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.project-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-hero-placeholder {
    width: 100%;
    height: 100%;
    background-color: #000;
}

.project-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(0deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, .35) 100%);
}

.project-hero-content {
    position: relative;
    z-index: 3;
    padding: 0 60px 70px;
    width: 100%;
    color: var(--text-white);
}

.project-hero-status {
    display: inline-flex;
    font-family: var(--font-secondary), sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #d9d9d9;
    border: 1px solid rgba(183, 183, 183, .4);
    padding: 6px 14px;
    margin-bottom: 24px;
}

.project-hero-logo {
    width: auto;
    height: clamp(80px, 7vw, 140px);
    max-width: min(50%, 340px);
    object-fit: contain;
    object-position: left center;
    margin-bottom: 20px;
}

.project-hero-content h1 {
    font-size: clamp(38px, 6vw, 76px);
    font-weight: 400;
    color: #f6f6f6;
    line-height: 1.05;
    margin-bottom: 14px;
}

.project-hero-content p {
    font-size: 16px;
    color: var(--text-white);
    max-width: 560px;
}

.project-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 26px;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9a9a9a;
}

/* intro */

.project-intro {
    display: grid;
    grid-template-columns: .8fr 1.6fr;
    gap: 80px;
    padding: 96px 60px;
    background-color: var(--bg-body);
}

.project-intro-side {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.project-intro-side dl {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-intro-side dt {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.project-intro-side dd {
    font-size: 15px;
    color: var(--text-body);
}

.project-intro-body h2 {
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 400;
    color: var(--text-body);
    margin-bottom: 26px;
}

.project-intro-body .content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-muted);
}

.project-intro-body .content p {
    margin-bottom: 22px;
}

.project-intro-body .content p:last-child {
    margin-bottom: 0;
}

/* stats */

.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    background-color: var(--bg-muted);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.project-stat {
    padding: 46px 40px;
    border-left: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.project-stat:first-child {
    border-left: none;
}

.project-stat i {
    font-size: 20px;
    color: var(--text-muted);
}

.project-stat-value {
    font-family: var(--font-secondary), sans-serif;
    font-size: 24px;
    color: var(--text-body);
}

.project-stat-label {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* features */

.project-features {
    padding: 96px 60px;
    background-color: var(--bg-body);
}

.project-features-head {
    margin-bottom: 60px;
}

.project-features-head h2 {
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 400;
    color: var(--text-body);
    margin-top: 14px;
}

.project-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background-color: var(--border-soft);
    border: 1px solid var(--border-soft);
}

.project-feature-card {
    background-color: var(--bg-body);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: background-color .3s ease;
}

.project-feature-card:hover {
    background-color: var(--bg-muted);
}

.project-feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    font-size: 18px;
    color: var(--text-body);
}

.project-feature-card h3 {
    font-family: var(--font-secondary), sans-serif;
    font-size: 19px;
    font-weight: 400;
    color: var(--text-body);
}

.project-feature-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* gallery */

.project-gallery {
    padding: 96px 60px;
    background-color: var(--bg-body);
}

.project-gallery-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 20px;
}

.project-gallery-head h2 {
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 400;
    color: var(--text-body);
    margin-top: 14px;
}

.project-gallery-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.project-gallery-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    background-color: transparent;
    color: var(--text-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

.project-gallery-arrow:hover {
    background-color: var(--text-body);
    border-color: var(--text-body);
    color: var(--bg-body);
}

.project-gallery-counter {
    font-size: 13px;
    letter-spacing: .08em;
    color: var(--text-muted);
    white-space: nowrap;
}

.project-gallery-current {
    color: var(--text-body);
    font-weight: 600;
}

.project-gallery-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.project-gallery-filter-pill {
    font-family: var(--font-primary), sans-serif;
    font-size: 12px;
    color: var(--text-body);
    background-color: transparent;
    border: 1px solid var(--border-soft);
    padding: 9px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

.project-gallery-filter-pill:hover {
    border-color: var(--text-body);
}

.project-gallery-filter-pill.is-active {
    background-color: var(--text-body);
    border-color: var(--text-body);
    color: var(--bg-body);
}

.project-gallery-swiper {
    overflow: hidden;
}

.project-gallery-slide-item {
    height: auto;
}

.project-gallery-slide {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    background-color: #0a0a0a;
}

.project-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s cubic-bezier(.16, 1, .3, 1);
}

.project-gallery-slide:hover img {
    transform: scale(1.06);
}

.project-gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 36px 16px 14px;
    background: linear-gradient(0deg, rgba(0, 0, 0, .68) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    pointer-events: none;
}

.project-gallery-caption-cat {
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #f2f2f2;
    border: 1px solid rgba(255, 255, 255, .35);
    padding: 4px 10px;
    border-radius: 999px;
    flex-shrink: 0;
}

.project-gallery-caption-text {
    font-size: 12px;
    color: #e2e2e2;
}

.project-gallery-zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    border: 1px solid rgba(255, 255, 255, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f2f2f2;
    font-size: 11px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s ease, transform .3s ease;
}

.project-gallery-slide:hover .project-gallery-zoom {
    opacity: 1;
    transform: translateY(0);
}

/* map */

.project-map-section {
    padding: 96px 60px;
    background-color: var(--bg-muted);
}

.project-map-head {
    margin-bottom: 40px;
}

.project-map-head h2 {
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 400;
    color: var(--text-body);
    margin-top: 14px;
}

.project-map-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
}

.project-map {
    height: 50svh;
    min-height: 380px;
    width: 100%;
    background-color: #e9e7e2;
}

/* inquiry form */

.project-inquiry {
    padding: 96px 60px;
    background-color: var(--bg-muted);
    text-align: center;
}

.project-inquiry-head {
    margin-bottom: 44px;
}

.project-inquiry-head .section-eyebrow {
    justify-content: center;
    margin-bottom: 20px;
}

.project-inquiry-head h2 {
    font-size: clamp(26px, 2.8vw, 40px);
    font-weight: 400;
    color: var(--text-body);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.35;
}

.project-inquiry-form {
    max-width: 620px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 22px;
    padding: 48px;
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .18);
    text-align: left;
}

.project-inquiry-form .contact-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px 20px;
    max-width: none;
}

.project-inquiry-form .contact-form .field-full {
    grid-column: 1 / -1;
}

.project-inquiry-form .contact-form label {
    color: var(--text-muted);
}

.project-inquiry-form .contact-form input:not([type="file"]),
.project-inquiry-form .contact-form textarea {
    background-color: var(--bg-muted);
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 13px 16px;
}

.project-inquiry-form .contact-form input:not([type="file"]):focus,
.project-inquiry-form .contact-form textarea:focus {
    background-color: #fff;
    border-color: var(--text-body);
}

.project-inquiry-form .contact-form textarea {
    min-height: 90px;
}

.project-inquiry-form .contact-form input[type="file"] {
    width: 100%;
    font-family: var(--font-primary), sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    background-color: var(--bg-muted);
    border: 1px dashed var(--border-soft);
    border-radius: 10px;
    padding: 11px 16px;
    cursor: pointer;
    transition: border-color .3s ease, background-color .3s ease;
}

.project-inquiry-form .contact-form input[type="file"]:hover {
    border-color: var(--text-body);
}

.project-inquiry-form .contact-form input[type="file"]::file-selector-button {
    font-family: var(--font-primary), sans-serif;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    background-color: var(--text-body);
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    margin-right: 12px;
    cursor: pointer;
    transition: opacity .25s ease;
}

.project-inquiry-form .contact-form input[type="file"]::file-selector-button:hover {
    opacity: .82;
}

.project-inquiry-form .contact-form .field-hint {
    font-size: 11px;
    color: var(--text-muted);
    opacity: .8;
}

.project-inquiry-form .h-captcha {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
}

.project-inquiry-form .contact-submit {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
    background-color: var(--text-body);
    color: #fff;
    border-color: var(--text-body);
}

.project-inquiry-form .contact-submit:hover {
    background-color: transparent;
    color: var(--text-body);
}

/* next up */

.project-nextup {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46svh;
    min-height: 320px;
    overflow: hidden;
    text-decoration: none;
}

.project-nextup-media {
    position: absolute;
    inset: 0;
}

.project-nextup-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 1.2s cubic-bezier(.16, 1, .3, 1), filter .6s ease;
    filter: brightness(.45);
}

.project-nextup:hover .project-nextup-media img {
    transform: scale(1.08);
    filter: brightness(.55);
}

.project-nextup-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #f2f2f2;
}

.project-nextup-content .section-eyebrow {
    justify-content: center;
    color: #cfcfcf;
    margin-bottom: 16px;
}

.project-nextup-content h3 {
    font-size: clamp(30px, 4vw, 54px);
    font-weight: 400;
}

/* ============================
   RESPONSIVE
============================ */

@media screen and (max-width: 1024px) {
    .project-intro {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 90px 40px;
    }

    .project-gallery {
        padding: 90px 40px;
    }

    .projects-filter-section {
        padding: 60px 40px 90px;
    }

    .project-features {
        padding: 90px 40px;
    }

    .project-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .page-hero {
        padding: 0 24px 50px;
        height: 46svh;
    }

    .projects-filter-section {
        padding: 50px 24px 70px;
    }

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

    .projects-card {
        aspect-ratio: 16 / 9;
    }

    .project-hero.project-hero-compact {
        height: 46svh;
        min-height: 340px;
    }

    .project-hero-content {
        padding: 0 24px 50px;
    }

    .project-intro {
        padding: 70px 24px;
    }

    .project-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-stat:nth-child(2) {
        border-left: 1px solid var(--border-soft);
    }

    .project-features {
        padding: 70px 24px;
    }

    .project-features-head {
        margin-bottom: 40px;
    }

    .project-features-grid {
        grid-template-columns: 1fr;
    }

    .project-gallery {
        padding: 70px 24px;
    }

    .project-gallery-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .project-gallery-caption {
        padding: 32px 14px 12px;
    }

    .project-map-section {
        padding: 70px 24px;
    }

    .project-map {
        height: 46svh;
    }

    .project-inquiry {
        padding: 80px 24px;
    }

    .project-inquiry-form {
        padding: 28px;
        border-radius: 18px;
    }

    .project-inquiry-form .contact-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-inquiry-form .contact-submit {
        width: calc(100% - 40px);
    }
}
