/* ================================================================
   Strawberrylace — Showcase single-project template
   ================================================================ */
:root {
    --sl-pink:  #F5728C;
    --sl-green: #5AE98B;
    --sl-ink:   #0F0F10;
    --sl-paper: #FAFAFA;
    --sl-line:  rgba(15, 15, 16, 0.08);
    --sl-muted: #6B6B6F;
}

.sp {
    color: var(--sl-ink);
    font-family: 'Neue Montreal', 'Inter Tight', system-ui, sans-serif;
    background: var(--sl-paper);
    padding-top: var(--header-offset, 88px);
    /* overflow-x: hidden removed to allow position:sticky on .sp-subnav */
}
.sp-hero, .sp-stats-strip, .sp-how { overflow-x: clip; }

/* ---------- Hero banner ---------- */
.sp-hero {
    position: relative;
    min-height: clamp(520px, 78vh, 760px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
    background: var(--accent, var(--sl-ink));
    color: #fff;
}
.sp-hero__media {
    position: absolute; inset: 0; z-index: 0;
}
.sp-hero__media img,
.sp-hero__media video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.sp-hero::after {
    content: "";
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.65) 100%);
}
.sp-hero__body {
    position: relative; z-index: 2;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 96px) clamp(24px, 6vw, 80px) clamp(40px, 5vw, 80px);
    display: grid;
    gap: 20px;
}
.sp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    letter-spacing: .02em;
    margin: 0;
    opacity: .9;
}
.sp-eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--sl-green);
    box-shadow: 0 0 0 4px rgba(90,233,139,.2);
}
.sp-client {
    font-size: clamp(40px, 8vw, 112px);
    line-height: .98;
    letter-spacing: -0.035em;
    font-weight: 500;
    margin: 0;
}
.sp-headline {
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 400;
    line-height: 1.35;
    margin: 0;
    max-width: 34ch;
    opacity: .92;
}
.sp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 36px;
    margin-top: 18px;
    font-size: 13px;
    letter-spacing: .02em;
}
.sp-meta dt { color: rgba(255,255,255,.65); margin: 0 0 4px; font-weight: 500; }
.sp-meta dd { margin: 0; font-weight: 500; }
.sp-live {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,.12);
    padding: 10px 16px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    width: max-content;
    transition: background .2s ease, transform .2s ease;
}
.sp-live:hover { background: var(--sl-pink); transform: translateX(2px); }

/* ---------- Body sections ---------- */
.sp-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(64px, 8vw, 120px) clamp(24px, 6vw, 80px);
}
.sp-section--narrow { max-width: 900px; }

.sp-intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(24px, 5vw, 80px);
}
@media (max-width: 780px) { .sp-intro { grid-template-columns: 1fr; } }
.sp-intro h2 {
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sl-muted);
    margin: 0;
    font-weight: 500;
}
.sp-intro p {
    font-size: clamp(19px, 2vw, 26px);
    line-height: 1.45;
    letter-spacing: -0.012em;
    margin: 0 0 18px;
    color: var(--sl-ink);
}
.sp-intro p:last-child { margin-bottom: 0; }
.sp-intro p em {
    font-style: normal;
    background: linear-gradient(transparent 58%, rgba(90,233,139,.55) 58%);
    padding: 0 2px;
}

/* ---------- Pills (what we did) ---------- */
.sp-pills {
    display: flex; flex-wrap: wrap; gap: 10px;
    padding: 0 clamp(24px, 6vw, 80px) clamp(32px, 5vw, 64px);
    max-width: 1440px;
    margin: 0 auto;
}
.sp-pill {
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--sl-line);
    font-size: 13px;
    font-weight: 500;
    background: #fff;
    color: var(--sl-ink);
}

/* ---------- Gallery ---------- */
.sp-gallery {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(24px, 6vw, 80px) clamp(64px, 8vw, 120px);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(12px, 1.6vw, 22px);
}
.sp-gallery figure { margin: 0; overflow: hidden; border-radius: clamp(12px, 1.2vw, 18px); background: #eee; }
.sp-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sp-gallery .g-full  { grid-column: span 12; aspect-ratio: 16/7; }
.sp-gallery .g-two   { grid-column: span 6;  aspect-ratio: 4/3; }
.sp-gallery .g-tall  { grid-column: span 4;  aspect-ratio: 3/4; }
.sp-gallery .g-wide  { grid-column: span 8;  aspect-ratio: 16/9; }
@media (max-width: 760px) {
    .sp-gallery { grid-template-columns: 1fr; }
    .sp-gallery .g-full, .sp-gallery .g-two, .sp-gallery .g-tall, .sp-gallery .g-wide { grid-column: span 1; }
}

/* ---------- Quote block ---------- */
.sp-quote {
    max-width: 1000px;
    margin: 0 auto;
    padding: clamp(48px, 6vw, 88px) clamp(24px, 6vw, 80px);
    text-align: center;
}
.sp-quote blockquote {
    font-size: clamp(22px, 2.8vw, 36px);
    line-height: 1.3;
    letter-spacing: -0.02em;
    font-weight: 500;
    margin: 0 0 18px;
}
.sp-quote cite {
    font-style: normal;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--sl-muted);
}

/* ---------- Next project CTA ---------- */
.sp-next {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: center;
    color: #fff;
    background: var(--next-accent, var(--sl-ink));
}
.sp-next__media { position: absolute; inset: 0; z-index: 0; opacity: .55; }
.sp-next__media img { width: 100%; height: 100%; object-fit: cover; }
.sp-next::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.7));
}
.sp-next__body {
    position: relative; z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(56px, 7vw, 110px) clamp(24px, 6vw, 80px);
    width: 100%;
}
.sp-next__label {
    font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
    opacity: .8; margin: 0 0 16px;
}
.sp-next__title {
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
    font-weight: 500;
}
.sp-next__link {
    display: inline-flex; align-items: center; gap: 10px;
    color: #fff; text-decoration: none;
    border-bottom: 2px solid var(--sl-green);
    padding-bottom: 4px;
    font-weight: 500;
    transition: transform .2s ease;
}
.sp-next__link:hover { transform: translateX(4px); }

/* ================================================================
   FRAMEWORK EXTENSIONS — sticky sub-nav, feature grid, how-it-works,
   playbook, integrations, stats strip. Used by all case studies.
   ================================================================ */

/* ---------- Sticky sub-nav (sits under the project-toggle .sl-subnav) ---------- */
.sp-subnav {
    position: sticky;
    /* Stack directly beneath .sl-subnav: main header + sl-subnav height (~52px) */
    top: calc(var(--header-offset, 82px) + 52px);
    z-index: 80; /* below .sl-subnav (90) and main header (101) */
    background: rgba(255,255,255,0.86);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-top: 1px solid rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.sp-subnav.is-stuck {
    background: rgba(255,255,255,0.94);
    border-bottom-color: var(--sl-line);
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.sp-subnav__inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 38px;
    min-height: 52px;
}
.sp-subnav__project {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--sl-ink);
    display: flex;
    align-items: center;
    gap: 10px;
}
.sp-subnav__project .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent, var(--sl-pink));
}
.sp-subnav__links {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(16px, 2vw, 32px);
    /* No horizontal scroll — acts like page tabs */
}
.sp-subnav__links a {
    color: var(--sl-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .01em;
    white-space: nowrap;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color .18s ease, border-color .18s ease;
}
.sp-subnav__links a:hover,
.sp-subnav__links a.is-current {
    color: var(--sl-ink);
    border-bottom-color: var(--accent, var(--sl-pink));
}
.sp-subnav__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--sl-ink);
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease, transform .18s ease;
}
.sp-subnav__cta:hover { background: var(--accent, var(--sl-pink)); transform: translateX(2px); }
@media (max-width: 700px) {
    .sp-subnav__project span:last-child { display: none; }
    .sp-subnav__cta span { display: none; }
}

/* ---------- Section heading util ---------- */
.sp-eyelabel {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sl-muted);
    margin: 0 0 18px;
}
.sp-eyelabel--accent { color: var(--accent, var(--sl-pink)); }
.sp-h2 {
    font-size: clamp(30px, 4.2vw, 54px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 500;
    margin: 0 0 20px;
    max-width: 22ch;
}
.sp-h2 em {
    font-style: normal;
    color: var(--accent, var(--sl-pink));
    font-weight: 400;
    padding: 0 .06em;
}
.sp-lede {
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.55;
    color: var(--sl-muted);
    max-width: 58ch;
    margin: 0;
}

/* ---------- Two-col problem/solution ---------- */
.sp-split {
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(64px, 8vw, 120px) clamp(24px, 6vw, 80px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 80px);
    border-top: 1px solid var(--sl-line);
}
@media (max-width: 780px) { .sp-split { grid-template-columns: 1fr; } }
.sp-split h3 {
    font-size: clamp(22px, 2.6vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    font-weight: 500;
}
.sp-split p {
    font-size: 16px;
    line-height: 1.55;
    color: var(--sl-muted);
    margin: 0;
    max-width: 44ch;
}

/* ---------- Feature/showcase two-col (core product detail) ---------- */
.sp-showcase {
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(64px, 8vw, 120px) clamp(24px, 6vw, 80px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}
@media (max-width: 900px) { .sp-showcase { grid-template-columns: 1fr; } }
.sp-showcase__text h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 20px; font-weight: 500; max-width: 18ch; }
.sp-showcase__text > p {
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.55;
    color: var(--sl-muted);
    margin: 0 0 28px;
    max-width: 52ch;
}
.sp-showcase__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 18px;
}
.sp-showcase__list li {
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--sl-line);
    border-radius: 14px;
    transition: border-color .18s ease, transform .18s ease;
}
.sp-showcase__list li:hover { border-color: rgba(245,114,140,.4); transform: translateY(-2px); }
.sp-showcase__list strong {
    display: block;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
    color: var(--sl-ink);
}
.sp-showcase__list span {
    font-size: 14px;
    line-height: 1.5;
    color: var(--sl-muted);
}

/* Mock browser window (for product showcase visual) */
.sp-window {
    background: #fff;
    border: 1px solid var(--sl-line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,.08);
}
.sp-window__bar {
    padding: 14px 18px;
    background: #f6f6f7;
    border-bottom: 1px solid var(--sl-line);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sp-window__bar .w-dot { width: 10px; height: 10px; border-radius: 50%; background: #ddd; }
.sp-window__bar .w-dot.r { background: #ff5f57; }
.sp-window__bar .w-dot.y { background: #ffbd2e; }
.sp-window__bar .w-dot.g { background: #28c840; }
.sp-window__bar .w-title { font-size: 12px; color: var(--sl-muted); margin-left: 10px; }
.sp-window__body { padding: clamp(18px, 2.5vw, 28px); }
.sp-window__step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--sl-line);
    font-size: 14px;
}
.sp-window__step:last-of-type { border-bottom: 0; }
.sp-window__step .num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #f2f2f3;
    color: var(--sl-muted);
    display: grid; place-items: center;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}
.sp-window__step.active .num {
    background: var(--accent, var(--sl-pink));
    color: #fff;
}
.sp-window__step.active { color: var(--sl-ink); font-weight: 500; }
.sp-window__result {
    margin-top: 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(245,166,35,0.08), rgba(245,114,140,0.08));
    border: 1px solid rgba(245,114,140,.15);
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--sl-ink);
}
.sp-window__result b { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--sl-muted); margin-bottom: 6px; font-weight: 500; }

/* ---------- Feature grid (9-card) ---------- */
.sp-features {
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(56px, 7vw, 96px) clamp(24px, 6vw, 80px);
    border-top: 1px solid var(--sl-line);
}
.sp-features__head { max-width: 62ch; margin: 0 0 clamp(32px, 4vw, 56px); }
.sp-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 1.6vw, 22px);
}
@media (max-width: 900px) { .sp-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sp-feature-grid { grid-template-columns: 1fr; } }
.sp-feature {
    padding: clamp(20px, 2vw, 28px);
    background: #fff;
    border: 1px solid var(--sl-line);
    border-radius: 16px;
    position: relative;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.sp-feature:hover {
    border-color: rgba(245,114,140,.35);
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0,0,0,.05);
}
.sp-feature.is-flagship {
    background: linear-gradient(135deg, #0f0f10 0%, #1a1a1a 100%);
    border-color: transparent;
    color: #fff;
}
.sp-feature.is-flagship p { color: rgba(255,255,255,0.7); }
.sp-feature.is-flagship .sp-feature__tag {
    background: var(--accent, var(--sl-pink));
    color: #fff;
}
.sp-feature__icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(90,233,139,.14);
    color: var(--sl-green);
    margin-bottom: 16px;
}
.sp-feature__icon.is-accent { background: rgba(245,114,140,.14); color: var(--sl-pink); }
.sp-feature__icon.is-gold   { background: rgba(245,166,35,.15);  color: #c97f00; }
.sp-feature.is-flagship .sp-feature__icon { background: rgba(255,255,255,.1); color: #fff; }
.sp-feature h3 {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
    color: inherit;
}
.sp-feature p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--sl-muted);
    margin: 0;
}
.sp-feature__tag {
    position: absolute;
    top: 18px; right: 18px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(90,233,139,.14);
    color: var(--sl-green);
}

/* ---------- How it works (4-step) ---------- */
.sp-how {
    background: var(--sl-ink);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.sp-how::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(245,114,140,.18), transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(90,233,139,.1), transparent 55%);
    pointer-events: none;
}
.sp-how__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(64px, 8vw, 120px) clamp(24px, 6vw, 80px);
    position: relative;
}
.sp-how .sp-eyelabel { color: rgba(255,255,255,0.55); }
.sp-how .sp-h2 { color: #fff; }
.sp-how__steps {
    margin-top: clamp(32px, 4vw, 56px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2vw, 32px);
}
@media (max-width: 900px) { .sp-how__steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .sp-how__steps { grid-template-columns: 1fr; } }
.sp-step {
    padding: 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    transition: background .2s ease, transform .2s ease;
}
.sp-step:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-3px);
}
.sp-step__num {
    font-weight: 400;
    font-size: 42px;
    line-height: 1;
    color: var(--accent, var(--sl-pink));
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}
.sp-step h3 {
    font-size: 17px;
    font-weight: 500;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.sp-step p {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255,255,255,0.65);
    margin: 0;
}

/* ---------- Playbook / deep-dive ---------- */
.sp-playbook {
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(64px, 8vw, 120px) clamp(24px, 6vw, 80px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
    border-top: 1px solid var(--sl-line);
}
@media (max-width: 900px) { .sp-playbook { grid-template-columns: 1fr; } }
.sp-playbook h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 16px; font-weight: 500; }
.sp-playbook > div > p {
    font-size: 16px;
    line-height: 1.55;
    color: var(--sl-muted);
    margin: 0 0 24px;
    max-width: 44ch;
}
.sp-rules { display: grid; gap: 12px; }
.sp-rule {
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--sl-line);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--sl-ink);
}
.sp-rule__icon {
    width: 26px; height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(90,233,139,0.18);
    color: var(--sl-green);
    display: grid; place-items: center;
}
.sp-feedback {
    background: linear-gradient(135deg, #fff 0%, #faf9f8 100%);
    border: 1px solid var(--sl-line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 22px 48px rgba(0,0,0,.06);
}
.sp-feedback__h {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sl-muted);
    margin: 0 0 14px;
}
.sp-feedback__item {
    padding: 12px;
    border-radius: 10px;
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}
.sp-feedback__item.up { background: rgba(90,233,139,.08); border: 1px solid rgba(90,233,139,.2); }
.sp-feedback__item.down { background: rgba(245,114,140,.08); border: 1px solid rgba(245,114,140,.2); }
.sp-feedback__thumb {
    width: 24px; height: 24px; border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 14px;
}
.sp-feedback__item.up .sp-feedback__thumb { background: var(--sl-green); color: #0F0F10; }
.sp-feedback__item.down .sp-feedback__thumb { background: var(--sl-pink); color: #fff; }
.sp-feedback__title { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.sp-feedback__comment { font-size: 13px; color: var(--sl-muted); line-height: 1.4; }
.sp-feedback__cta {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--sl-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

/* ---------- Integrations strip ---------- */
.sp-integrations {
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(56px, 7vw, 96px) clamp(24px, 6vw, 80px);
    border-top: 1px solid var(--sl-line);
    text-align: center;
}
.sp-integrations__grid {
    margin-top: clamp(28px, 3.5vw, 48px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(14px, 1.6vw, 22px);
    text-align: left;
}
@media (max-width: 780px) { .sp-integrations__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .sp-integrations__grid { grid-template-columns: 1fr; } }
.sp-int {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--sl-line);
    border-radius: 14px;
}
.sp-int__icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--sl-ink);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 14px;
}
.sp-int__name { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.sp-int__desc { font-size: 13px; color: var(--sl-muted); line-height: 1.4; }

/* ---------- Stats strip ---------- */
.sp-stats-strip {
    background: linear-gradient(135deg, var(--accent, var(--sl-pink)) 0%, #1a1a1a 140%);
    color: #fff;
    padding: clamp(48px, 6vw, 88px) clamp(24px, 6vw, 80px);
}
.sp-stats-strip__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(18px, 3vw, 48px);
}
@media (max-width: 780px) { .sp-stats-strip__inner { grid-template-columns: repeat(2, 1fr); } }
.sp-stat-big {
    text-align: left;
}
.sp-stat-big__num {
    font-size: clamp(40px, 5.5vw, 72px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}
.sp-stat-big__label {
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
}

/* ---------- Back link ---------- */
.sp-back {
    position: absolute;
    top: calc(var(--header-offset, 88px) + 20px);
    left: clamp(24px, 6vw, 80px);
    z-index: 3;
    color: #fff;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 8px 14px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex; align-items: center; gap: 8px;
    transition: background .2s ease;
}
.sp-back:hover { background: rgba(255,255,255,.22); }


/* =============================================================
   .sl-subnav — Sticky project-toggle sub-nav (lives under main header)
   ============================================================= */
.sl-subnav {
    position: sticky;
    top: var(--header-offset, 82px);
    z-index: 90; /* below main header (z: 101) */
    width: 100%;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transform: translateY(0);
    transition: transform .32s cubic-bezier(.2,.7,.2,1),
                box-shadow .25s ease,
                background .25s ease,
                opacity .2s ease;
    will-change: transform;
}
.sl-subnav.is-stuck {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.94);
}
/* Hide on scroll-down, reveal on scroll-up (toggled via body class) */
body.is-sl-subnav-hidden .sl-subnav {
    transform: translateY(-105%);
    opacity: 0;
    pointer-events: none;
    box-shadow: none;
}
/* When sl-subnav is hidden, close the gap beneath — pull sp-subnav up to the main header */
body.is-sl-subnav-hidden .sp-subnav {
    top: var(--header-offset, 82px);
}
.sl-subnav__inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    min-height: 52px;
}
.sl-subnav__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #111;
    flex: 0 0 auto;
    white-space: nowrap;
}
.sl-subnav__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sl-pink, #F5728C);
    display: inline-block;
}
.sl-subnav__scroller {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
}
.sl-subnav__scroller::-webkit-scrollbar { display: none; }
.sl-subnav__links {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 4px;
}
.sl-subnav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #4a4a4f;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease;
}
.sl-subnav__link:hover {
    color: #111;
    background: rgba(0, 0, 0, 0.04);
}
.sl-subnav__link.is-current {
    color: #fff;
    background: #111;
}
.sl-subnav__link.is-current::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sln-accent, var(--sl-pink, #F5728C));
    display: inline-block;
    margin-right: 2px;
}
.sl-subnav__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, transform .2s ease;
}
.sl-subnav__cta:hover { background: #000; transform: translateY(-1px); }

@media (max-width: 860px) {
    .sl-subnav__label { display: none; }
    .sl-subnav__inner { padding: 8px 16px; gap: 12px; min-height: 48px; }
    .sl-subnav__cta span { display: none; }
    .sl-subnav__cta { padding: 9px 12px; }
}

/* Pull the hero up under the sub-nav so the visual doesn't jump */
.sp-hero { margin-top: 0; }


/* Temporarily hide the old left-aligned section headers */
.section-header.section-header--left { display: none !important; }

/* ---------- Tab-panel behaviour for sub-nav ---------- */
/* When the showcase page uses sp-subnav as tab controller, only the
   active section is shown at a time. Sections are immediate children of
   the panels host (e.g. <main class="showcase-page" data-sp-tabpanels>). */
[data-sp-tabpanels] > section { display: none; }
[data-sp-tabpanels] > section.is-active { display: block; }

/* Safety: make sure no ancestor clips the sticky sub-nav */
html, body { overflow-x: clip; }
html { overflow-y: auto; }
body.light-page { overflow: visible; }

/* ---------- Undo legacy showcase-styles.css collisions with main nav ----------
   The old wolf-and-lamb/showcase-styles.css has bare selectors
   (.nav-links, .nav-link) that target the main site header when we include
   its stylesheets on these case-study pages. Re-assert horizontal layout. */
.site-header .navbar .nav-links,
.site-header .nav-links {
    margin-top: 0 !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    height: auto !important;
    display: flex !important;
}
.site-header .nav-links .nav-link,
.site-header .navbar .nav-link {
    color: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
    display: inline-flex !important;
    font-size: inherit !important;
    text-transform: none !important;
}
/* Restore main-nav container to row layout in case old CSS forces column */
.site-header .navbar .container {
    flex-direction: row !important;
}

/* ---------- Undo legacy bare `header { position: fixed }` rule ----------
   /css/header.css has an unscoped `header { position: fixed; top: 0; z-index: 101 }`
   that leaks to any <header> on the page, including the .section-header component
   ("A Bespoke Catering Brand / Wolf and Lamb / ..."). Reset non-site headers. */
header.section-header,
.showcase-page header,
.showcase-page header.section-header,
.sp header:not(.site-header) {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: auto !important;
    border-bottom: 0 !important;
    transition: none !important;
}

/* Zero just the top padding on .showcase-page (wolf-and-lamb + houghton) */
.showcase-page[data-sp-tabpanels] {
    padding-top: 0 !important;
}

