.projects-duotone {
    position: relative;
    z-index: 1;
    padding: 92px 0 96px;
    overflow: hidden;
}

.projects-duotone .container {
    max-width: 1280px;
}

.projects-duotone__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #b08a52;
}

.projects-duotone__h2 {
    margin: 14px 0 0;
    font-size: 44px;
    font-weight: 600;
    color: var(--ih-ink, #18140E);
    letter-spacing: -0.015em;
    line-height: 1.08;
}

.projects-duotone__grid {
    margin-top: 44px;
}

.proj-card {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 60px -38px rgba(24, 20, 8, 0.5);
    transition: box-shadow 0.6s ease, transform 0.6s cubic-bezier(.16, .84, .36, 1);
}

.proj-card__media {
    position: relative;
    /* match the source crop (image-1100-700 = 11/7) so `cover` shows the whole
       building instead of chopping it on 1440–1600 (17") screens */
    aspect-ratio: 11 / 7;
    overflow: hidden;
    isolation: isolate; /* scope the amber overlay blend to the media layers */
}

/* fallback for engines without aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
    .proj-card__media {
        height: 0;
        padding-bottom: 63.63%; /* 7 / 11 */
    }
}

.proj-card__img {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.02);
    /* resting state: gently muted duotone (warm, slightly desaturated) */
    filter: saturate(0.72) contrast(1.04) brightness(0.93) sepia(0.12);
    transition: transform 0.8s cubic-bezier(.16, .84, .36, 1), filter 0.7s cubic-bezier(.16, .84, .36, 1);
}

.proj-card__grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(24, 16, 6, 0.18) 0%, rgba(24, 16, 6, 0) 30%, rgba(24, 16, 6, 0.74) 100%);
}

/* amber "colored filter" — invisible at rest, blooms IN on hover (ideadev-style
   colour wash over the photo). opacity-only transition = compositor friendly. */
.proj-card__tint {
    position: absolute;
    inset: 0;
    opacity: 0;
    background:
        linear-gradient(140deg, rgba(235, 147, 21, 0.55) 0%, rgba(235, 147, 21, 0.10) 52%, rgba(201, 118, 10, 0.50) 100%),
        radial-gradient(120% 90% at 50% 25%, rgba(255, 196, 110, 0.40) 0%, rgba(255, 196, 110, 0) 62%);
    mix-blend-mode: overlay;
    transition: opacity 0.7s cubic-bezier(.16, .84, .36, 1);
    will-change: opacity;
}

.proj-card__vignette {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 120px 10px rgba(10, 8, 4, 0.4);
}

.proj-card__badge {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.proj-card__badge--amber {
    background: var(--ih-accent, #eb9315);
    color: var(--ih-on-accent, #1a1206);
    box-shadow: 0 6px 16px rgba(235, 147, 21, 0.3);
}

.proj-card__badge--glass {
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #fff;
}

.proj-card__cap {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    /* compact glass strip — must not cover the building (owner request) */
    padding: 10px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.proj-card__title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.proj-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3px;
    gap: 12px;
}

.proj-card__sub {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 500;
}

.proj-card__more {
    color: var(--ih-accent-soft, #ffd9a0);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* hover */
.proj-card.is-hover {
    transform: translateY(-6px);
    box-shadow: 0 0 0 4px rgba(235, 147, 21, 0.2), 0 30px 70px -34px rgba(235, 147, 21, 0.45), 0 24px 60px -38px rgba(24, 20, 8, 0.5);
}

.proj-card.is-hover .proj-card__img {
    transform: scale(1.09);
    filter: saturate(1.06) contrast(1.02) brightness(1.02) sepia(0);
}

/* photo stays natural on hover — no amber wash over the image (owner request).
   Card still lifts + shows the ring/glow; the photo just returns to real colour. */
.proj-card.is-hover .proj-card__tint {
    opacity: 0;
}

/* reveal — hidden state applied inline by JS (never here): content stays
   visible if the script is deferred by LiteSpeed. */
.projects-duotone [data-reveal] {
    transition: opacity 0.9s cubic-bezier(.16, .84, .36, 1), transform 0.9s cubic-bezier(.16, .84, .36, 1);
}

.projects-duotone [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .projects-duotone {
        padding: 60px 0 64px;
    }

    .projects-duotone__h2 {
        font-size: 32px;
    }
}

/* reduced-motion suppression removed: animations must always play (owner requirement) */
