/* ================================================================
   Strawberrylace — Showcase Hub (Bento Grid)
   ================================================================ */

:root {
    --sl-pink:   #F5728C;
    --sl-green:  #5AE98B;
    --sl-ink:    #0F0F10;
    --sl-paper:  #FAFAFA;
    --sl-line:   rgba(15, 15, 16, 0.08);
    --sl-muted:  #6B6B6F;
}

.hub {
    background: var(--sl-paper);
    color: var(--sl-ink);
    font-family: 'Neue Montreal', 'Inter Tight', system-ui, sans-serif;
    min-height: 100vh;
    padding-top: var(--header-offset, 88px);
}

/* ---------- Intro ---------- */
.hub-intro {
    padding: clamp(48px, 7vw, 112px) clamp(24px, 6vw, 80px) clamp(40px, 5vw, 72px);
    max-width: 1440px;
    margin: 0 auto;
}
.hub-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--sl-muted);
    margin: 0 0 20px;
}
.hub-eyebrow::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--sl-pink);
    box-shadow: 0 0 0 4px rgba(245,114,140,0.18);
}
.hub-title {
    font-size: clamp(40px, 7vw, 92px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    font-weight: 500;
    margin: 0 0 24px;
    max-width: 16ch;
}
.hub-title em {
    font-style: normal;
    color: var(--sl-pink);
    font-weight: 400;
    padding: 0 .08em;
}
.hub-deck {
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.55;
    color: var(--sl-muted);
    max-width: 62ch;
    margin: 0;
}

/* ---------- Filter row ---------- */
.hub-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 4px clamp(24px, 6vw, 80px);
    max-width: 1440px;
    margin: 0 auto clamp(28px, 4vw, 48px);
}
.hub-filter {
    appearance: none;
    border: 1px solid var(--sl-line);
    background: #fff;
    color: var(--sl-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.hub-filter:hover { border-color: rgba(245,114,140,.4); }
.hub-filter.is-on {
    background: var(--sl-ink);
    color: #fff;
    border-color: var(--sl-ink);
}

/* ---------- Bento grid ---------- */
.bento {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 56px) clamp(40px, 5vw, 72px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(90px, 10vw);
    gap: clamp(8px, 0.9vw, 12px);
}
@media (max-width: 960px) {
    .bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(140px, 24vw);
    }
}
@media (max-width: 560px) {
    .bento {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(170px, 44vw);
    }
}

.bento-card {
    position: relative;
    overflow: hidden;
    border-radius: clamp(10px, 1vw, 16px);
    background: #eee;
    color: #fff;
    text-decoration: none;
    display: block;
    isolation: isolate;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
    will-change: transform;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.bento-card:focus-visible {
    outline: 3px solid var(--sl-pink);
    outline-offset: 3px;
}

/* sizes */
.bento-card--hero   { grid-column: span 2; grid-row: span 2; }
.bento-card--wide   { grid-column: span 2; grid-row: span 1; }
.bento-card--tall   { grid-column: span 1; grid-row: span 2; }
.bento-card--square { grid-column: span 1; grid-row: span 1; }

@media (max-width: 960px) {
    .bento-card--hero   { grid-column: span 2; grid-row: span 2; }
    .bento-card--wide   { grid-column: span 2; }
    .bento-card--tall   { grid-column: span 1; grid-row: span 2; }
}
@media (max-width: 560px) {
    .bento-card--hero   { grid-column: span 1; grid-row: span 1; }
    .bento-card--wide   { grid-column: span 1; grid-row: span 1; }
    .bento-card--tall   { grid-column: span 1; grid-row: span 1; }
}

/* image */
.bento-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.bento-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.bento-card:hover .bento-media img { transform: scale(1.04); }

/* fallback accent surface when no image */
.bento-card[data-has-image="0"] .bento-media {
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 55%),
        linear-gradient(135deg, var(--card-accent, var(--sl-pink)) 0%, #1a1a1a 130%);
}

/* gradient scrim */
.bento-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.72) 100%);
    z-index: 1;
    pointer-events: none;
    transition: opacity .3s ease;
}

/* copy */
.bento-body {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: clamp(12px, 1.2vw, 18px);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bento-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    opacity: .92;
}
.bento-row .sep {
    width: 14px; height: 1px; background: rgba(255,255,255,.55);
}
.bento-client {
    font-size: clamp(16px, 1.5vw, 22px);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0;
}
.bento-headline {
    font-size: clamp(12px, 0.95vw, 15px);
    line-height: 1.35;
    opacity: .88;
    margin: 0;
    max-width: 36ch;
}
.bento-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.bento-tag {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    letter-spacing: .01em;
}
.bento-arrow {
    position: absolute;
    top: clamp(12px, 1.4vw, 18px);
    right: clamp(12px, 1.4vw, 18px);
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    transition: background .25s ease, transform .3s ease;
}
.bento-card:hover .bento-arrow { background: var(--sl-pink); transform: rotate(-45deg); }
.bento-arrow svg { width: 14px; height: 14px; stroke: #fff; }

/* hidden state when filtered */
.bento-card[hidden] { display: none !important; }

/* ---------- CTA strip below bento ---------- */
.hub-cta {
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(40px, 5vw, 80px) clamp(24px, 6vw, 80px) clamp(80px, 10vw, 140px);
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(24px, 4vw, 64px);
    align-items: end;
}
@media (max-width: 760px) { .hub-cta { grid-template-columns: 1fr; } }
.hub-cta h2 {
    font-size: clamp(32px, 4.5vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin: 0;
    font-weight: 500;
    max-width: 18ch;
}
.hub-cta h2 em {
    font-style: normal;
    color: var(--sl-pink);
    font-weight: 400;
    padding: 0 .06em;
}
.hub-cta p {
    font-size: 17px;
    line-height: 1.55;
    color: var(--sl-muted);
    margin: 0 0 20px;
}
.hub-cta a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--sl-ink);
    color: #fff;
    padding: 16px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    transition: background .2s ease, transform .2s ease;
}
.hub-cta a:hover { background: var(--sl-pink); transform: translateX(2px); }
.hub-cta a svg { transition: transform .2s ease; }
.hub-cta a:hover svg { transform: translateX(3px); }
