
.uc {
    position: relative;
    background: #faf8f3;
    color: #1e293b;
    overflow: hidden;
    isolation: isolate;
}

.uc-inner {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 32px 40px;
}
@media (max-width: 980px) { .uc-inner { padding: 40px 20px 44px; } }

.uc-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 32px;
}
.uc-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(22, 112, 191, 0.08);
    border: 1px solid rgba(22, 112, 191, 0.22);
    color: #1670bf;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.10em; text-transform: uppercase;
    padding: 6px 14px; border-radius: 999px;
    margin-bottom: 18px;
}
.uc-eyebrow::before {
    content: ''; width: 6px; height: 6px;
    border-radius: 999px; background: #1670bf;
    box-shadow: 0 0 10px rgba(22, 112, 191, 0.4);
}
.uc-title {
    font-size: clamp(2rem, 4.4vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #1e293b;
    margin: 0 0 14px;
}
.uc-title .accent {
    background: linear-gradient(135deg, #1670bf 0%, #0b3f7a 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.uc-sub {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.55;
    color: #64748b;
    margin: 0;
}

/* Photo-led lifestyle grid */
.uc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
@media (max-width: 1080px) {
    .uc-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
.uc-tile {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex; flex-direction: column;
}
.uc-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10);
    border-color: rgba(22, 112, 191, 0.20);
}
.uc-tile:hover .uc-photo {
    transform: scale(1.03);
}

/* Photo stage — 4:5 portrait, matches the rest of the page rhythm */
.uc-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f5f1e8;
}
.uc-photo {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s ease;
    filter: contrast(1.04) saturate(1.04);
}
/* Subtle bottom darken for the floating category chip */
.uc-photo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, 0.30) 100%);
    pointer-events: none;
}
/* Floating category chip on the photo */
.uc-cat {
    position: absolute;
    left: 16px; bottom: 14px;
    z-index: 2;
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    color: #1670bf;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.20);
}
.uc-cat::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 999px;
    background: #1670bf;
}

/* Tile body */
.uc-body {
    padding: 22px 24px 24px;
    display: flex; flex-direction: column;
    gap: 8px;
}
.uc-tile-title {
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #1e293b;
    margin: 0;
}
.uc-tile-sub {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #475569;
    margin: 0;
}
.uc-tile-examples {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-top: 4px;
}
.uc-tile-tag {
    font-size: 0.72rem;
    color: #64748b;
    background: rgba(15, 23, 42, 0.04);
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

@media (max-width: 720px) {
    .uc-inner { padding: 34px 12px 36px; }
    .uc-head { margin-bottom: 18px; text-align: left; }
    .uc-title {
        font-size: 1.82rem;
        letter-spacing: 0;
    }
    .uc-sub {
        font-size: 0.95rem;
        line-height: 1.48;
    }
    .uc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }
    .uc-tile {
        min-width: 0;
        aspect-ratio: 1 / 1;
        border-radius: 12px;
        display: block;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
        transform: translateZ(0);
    }
    .uc-tile:hover { transform: none; }
    .uc-photo-wrap {
        position: absolute;
        inset: 0;
        height: 100%;
        aspect-ratio: auto;
    }
    .uc-photo-wrap::after {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.04) 0%, rgba(15, 23, 42, 0.20) 46%, rgba(15, 23, 42, 0.72) 100%);
    }
    .uc-photo { height: 100%; }
    .uc-body {
        position: absolute;
        inset: auto 0 0;
        z-index: 3;
        min-height: 48%;
        justify-content: flex-end;
        padding: 40px 10px 10px;
        gap: 0;
        background: linear-gradient(180deg, transparent 0%, rgba(7, 14, 28, 0.84) 100%);
    }
    .uc-tile-title {
        color: #ffffff;
        font-size: clamp(0.74rem, 3.15vw, 0.88rem);
        line-height: 1.14;
        letter-spacing: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
    }
    .uc-tile-sub,
    .uc-tile-examples { display: none; }
    .uc-cat {
        left: 8px;
        top: 8px;
        bottom: auto;
        max-width: calc(100% - 16px);
        font-size: clamp(0.48rem, 2.2vw, 0.55rem);
        padding: 4px 7px;
        letter-spacing: 0.06em;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.20);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .uc-cat::before {
        width: 4px;
        height: 4px;
    }
}

@media (max-width: 380px) {
    .uc-inner { padding-left: 10px; padding-right: 10px; }
    .uc-grid { gap: 7px; }
    .uc-body { padding: 34px 8px 8px; }
    .uc-tile-title { font-size: clamp(0.68rem, 3.35vw, 0.78rem); }
    .uc-cat {
        left: 7px;
        top: 7px;
        max-width: calc(100% - 14px);
        font-size: 0.47rem;
        padding: 3px 6px;
    }
}
