/* Explain: Brutalist buttons, cards, grids, and animated image components */
.btn-architect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 44px;
    background: var(--pure-black);
    color: var(--surface-color);
    padding: 0.9rem 1.35rem;
    border: 1px solid var(--pure-black);
    border-radius: 0;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    cursor: pointer;
}

.btn-architect:hover,
.btn-architect:focus-visible {
    background: var(--steel-blue);
    color: var(--surface-color);
    transform: translate(-3px, -3px);
    outline: 2px solid var(--pure-black);
    outline-offset: 2px;
}

.btn-outline-architect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 44px;
    background: transparent;
    color: var(--pure-black);
    padding: 0.9rem 1.35rem;
    border: 1px solid var(--pure-black);
    border-radius: 0;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    cursor: pointer;
}

.btn-outline-architect:hover,
.btn-outline-architect:focus-visible {
    background: var(--pure-black);
    color: var(--surface-color);
    transform: translate(-3px, -3px);
    outline: 2px solid var(--steel-blue);
    outline-offset: 2px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--steel-blue);
}

.eyebrow::before {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--steel-blue);
}

.struct-card {
    background: var(--surface-color);
    border: 1px solid var(--pure-black);
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.struct-card:hover {
    transform: translate(-6px, -6px);
    box-shadow: 12px 12px 0 var(--concrete-gray);
}

.index-label {
    color: var(--steel-blue);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rule-x {
    height: 1px;
    width: 100%;
    background: var(--pure-black);
}

.wireframe-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--pure-black);
    background: var(--surface-color);
    isolation: isolate;
}

.wireframe-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
        linear-gradient(color-mix(in srgb, var(--steel-blue) 70%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--steel-blue) 70%, transparent) 1px, transparent 1px),
        linear-gradient(135deg, transparent 48%, color-mix(in srgb, var(--pure-black) 70%, transparent) 49%, color-mix(in srgb, var(--pure-black) 70%, transparent) 51%, transparent 52%);
    background-size: 42px 42px, 42px 42px, 100% 100%;
    mix-blend-mode: multiply;
    animation: wireframeFade 7s ease-in-out infinite alternate;
}

.wireframe-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.25);
    animation: photoReveal 7s ease-in-out infinite alternate;
}

.project-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: 1px solid var(--pure-black);
    background: var(--concrete-gray);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.18);
    transition: transform 0.45s ease, filter 0.45s ease;
}

.struct-card:hover .project-image img {
    transform: scale(1.04);
    filter: grayscale(0.75) contrast(1.2);
}

.contact-link {
    color: var(--surface-color);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: color 0.2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
    color: var(--concrete-gray);
    outline: none;
}

@keyframes wireframeFade {
    0%, 38% {
        opacity: 1;
    }
    72%, 100% {
        opacity: 0.18;
    }
}

@keyframes photoReveal {
    0%, 25% {
        opacity: 0.45;
        transform: scale(1.04);
    }
    72%, 100% {
        opacity: 1;
        transform: scale(1);
    }
}
