/* Explain: Components for navigation, media frames, forms, and overlays */
.site-header {
    background: linear-gradient(180deg, rgba(42, 52, 57, 0.82), rgba(42, 52, 57, 0));
    transition: background 320ms ease, border-color 320ms ease;
}

.site-header.is-solid {
    background: rgba(42, 52, 57, 0.94);
    border-bottom: 1px solid rgba(209, 213, 216, 0.18);
    backdrop-filter: blur(18px);
}

.brand-mark {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.46);
    color: var(--pure-white);
    display: inline-flex;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    height: 44px;
    justify-content: center;
    letter-spacing: 0.18em;
    min-width: 70px;
    padding-left: 0.18em;
    transition: transform 220ms ease, border-color 220ms ease;
}

.brand-mark--dark {
    border-color: rgba(42, 52, 57, 0.24);
    color: var(--gunmetal);
}

.nav-item {
    border: 1px solid transparent;
    color: var(--pure-white);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    min-height: 44px;
    padding: 0.85rem 1rem;
    text-transform: uppercase;
    transition: color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.nav-item:hover,
.nav-item:focus-visible {
    border-color: rgba(191, 175, 166, 0.62);
    color: var(--warm-taupe);
}

.magnetic-link {
    will-change: transform;
}

.mobile-menu,
.contact-overlay {
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 260ms ease;
    z-index: 70;
}

.mobile-menu.is-open,
.contact-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu__backdrop,
.contact-overlay__backdrop {
    background: rgba(42, 52, 57, 0.58);
    inset: 0;
    position: absolute;
}

.mobile-menu__panel {
    background: var(--pure-white);
    color: var(--gunmetal);
    min-height: 100%;
    padding: 1.25rem;
    position: absolute;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform 300ms ease;
    width: min(86vw, 390px);
}

.mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
}

.mobile-menu__link {
    border-bottom: 1px solid var(--border-color);
    color: var(--gunmetal);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    letter-spacing: -0.03em;
    min-height: 56px;
    padding: 1rem 0;
}

.section-kicker {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.hero-cinema__media {
    animation: slowPan 26s ease-in-out infinite alternate;
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    transform: scale(1.08);
    width: 100%;
}

.layered-frame,
.project-card__media {
    background: var(--warm-taupe);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
}

.layered-frame::before,
.project-card__media::before {
    border: 1px solid rgba(42, 52, 57, 0.18);
    content: '';
    inset: 16px;
    pointer-events: none;
    position: absolute;
    z-index: 2;
}

.layered-frame--large {
    margin-left: clamp(0rem, 8vw, 7rem);
}

.layered-frame img,
.project-card__media img {
    aspect-ratio: 16 / 10;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.vision-card {
    background: var(--pure-white);
    box-shadow: var(--shadow-soft);
    margin-top: -4rem;
    max-width: 760px;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    position: relative;
    z-index: 3;
}

.stat-mark {
    color: var(--warm-taupe);
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
}

.project-card {
    align-items: end;
    display: grid;
    gap: clamp(1.5rem, 5vw, 5rem);
    grid-template-columns: minmax(0, 1fr);
}

.project-card__copy {
    background: var(--pure-white);
    box-shadow: var(--shadow-soft);
    margin-top: -3.5rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    position: relative;
    width: min(92%, 520px);
    z-index: 3;
}

.project-card__index {
    color: var(--warm-taupe);
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    margin-bottom: 1.2rem;
}

.project-card h3,
.process-step h3 {
    color: var(--gunmetal);
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    letter-spacing: -0.04em;
    line-height: 1.25;
}

.project-card__place {
    color: var(--warm-taupe);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    margin-top: 0.9rem;
    text-transform: uppercase;
}

.process-step {
    border-top: 1px solid var(--border-color);
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 72px 1fr;
    padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.process-step:last-child {
    border-bottom: 1px solid var(--border-color);
}

.process-step__number {
    color: var(--warm-taupe);
    font-family: var(--font-heading);
    font-size: 0.82rem;
}

.process-step p {
    color: var(--text-muted);
    line-height: 1.9;
    margin-top: 1rem;
}

.contact-panel {
    background: var(--gunmetal);
    color: var(--pure-white);
    display: grid;
    gap: clamp(2rem, 6vw, 6rem);
    overflow: hidden;
    padding: clamp(1.5rem, 6vw, 5rem);
    position: relative;
}

.contact-panel::before,
.contact-panel::after {
    border: 1px solid rgba(191, 175, 166, 0.32);
    content: '';
    position: absolute;
}

.contact-panel::before {
    height: 260px;
    right: -80px;
    top: -70px;
    transform: rotate(28deg);
    width: 260px;
}

.contact-panel::after {
    bottom: -90px;
    height: 210px;
    left: 12%;
    transform: rotate(-18deg);
    width: 420px;
}

.architect-form {
    position: relative;
    z-index: 2;
}

.field-label {
    color: var(--concrete);
    display: grid;
    font-size: 0.72rem;
    gap: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.field-label--light {
    color: var(--text-muted);
}

.architectural-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(209, 213, 216, 0.3);
    border-radius: 0;
    color: var(--pure-white);
    min-height: 52px;
    padding-inline: 1rem;
}

.architectural-input::placeholder {
    color: rgba(209, 213, 216, 0.58);
}

.architectural-input--light {
    background: var(--pure-white);
    border-color: rgba(42, 52, 57, 0.18);
    color: var(--gunmetal);
}

.architectural-input--light::placeholder {
    color: rgba(103, 113, 118, 0.62);
}

.architectural-submit {
    background: var(--warm-taupe);
    border: 1px solid var(--warm-taupe);
    border-radius: 0;
    color: var(--gunmetal);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    min-height: 56px;
    text-transform: uppercase;
    transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.architectural-submit:hover,
.architectural-submit:focus-visible {
    background: var(--pure-white);
    color: var(--gunmetal);
    transform: translateY(-2px);
}

.architectural-submit--dark:hover,
.architectural-submit--dark:focus-visible {
    background: var(--gunmetal);
    color: var(--pure-white);
}

.floating-start,
.mobile-start {
    align-items: center;
    background: var(--gunmetal);
    border: 1px solid rgba(191, 175, 166, 0.55);
    color: var(--pure-white);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    justify-content: center;
    letter-spacing: 0.18em;
    min-height: 56px;
    text-transform: uppercase;
    transition: opacity 260ms ease, transform 260ms ease, background 220ms ease;
    z-index: 45;
}

.floating-start {
    bottom: 2rem;
    opacity: 0;
    padding: 0 1.3rem;
    pointer-events: none;
    position: fixed;
    right: 2rem;
    writing-mode: vertical-rl;
}

.floating-start.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.mobile-start {
    bottom: 1rem;
    box-shadow: var(--shadow-panel);
    left: 1rem;
    position: fixed;
    right: 1rem;
}

.contact-overlay__panel {
    background: var(--pure-white);
    box-shadow: var(--shadow-panel);
    color: var(--gunmetal);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: clamp(1.5rem, 5vw, 3.5rem);
    position: absolute;
    right: 1rem;
    top: 1rem;
    transform: translateY(24px);
    transition: transform 300ms ease;
    width: min(calc(100vw - 2rem), 560px);
}

.contact-overlay.is-open .contact-overlay__panel {
    transform: translateY(0);
}

.contact-overlay__close {
    color: var(--gunmetal);
    min-height: 44px;
    min-width: 44px;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.form-status.is-success {
    color: #d9f99d;
}

.form-status.is-error {
    color: #fecaca;
}

.architect-form--light .form-status.is-success {
    color: #3f6212;
}

.architect-form--light .form-status.is-error {
    color: #991b1b;
}

@keyframes slowPan {
    from {
        transform: scale(1.08) translate3d(-2%, -1%, 0);
    }
    to {
        transform: scale(1.16) translate3d(2%, 1%, 0);
    }
}

@media (min-width: 1024px) {
    .contact-panel {
        grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    }

    .project-card {
        grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    }

    .project-card:nth-child(even) {
        grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
    }

    .project-card:nth-child(even) .project-card__media {
        grid-column: 2;
        grid-row: 1;
    }

    .project-card:nth-child(even) .project-card__copy {
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
        margin-right: -7rem;
        margin-top: 0;
    }

    .project-card:nth-child(odd) .project-card__copy {
        margin-left: -7rem;
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .process-step {
        grid-template-columns: 1fr;
    }

    .vision-card {
        margin-top: -2rem;
        width: calc(100% - 1rem);
    }
}
