/* One horizontal row of editorial tiles at every width; the existing Owl library pages it. */
.sptg-themed .home > .blog-section { padding-top: 64px; }
.sptg-themed .sptg-home-carousel { min-width: 0; }
.sptg-themed .sptg-home-carousel-header { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.sptg-themed .sptg-home-carousel-header h2 { margin: 0; font-family: "Open Sans Light"; font-size: 36px; line-height: 1.2; font-weight: 500; }
.sptg-themed .sptg-home-carousel-header h2 a { color: #333; }
.sptg-themed .sptg-home-carousel-all { flex: none; font-size: 14px; }
.sptg-themed .sptg-home-carousel-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; }
.sptg-themed .sptg-home-carousel-card { display: flex; flex-direction: column; flex: 0 0 calc((100% - 48px) / 3); min-width: 0; padding: 24px; border: 1px solid #d3dde3; background: #fff; scroll-snap-align: start; }
.sptg-themed .sptg-home-carousel-card h3 { margin: 0 0 18px; font-family: "Open Sans Light"; font-size: 24px; font-weight: 500; line-height: 1.3; overflow-wrap: break-word; }
.sptg-themed .sptg-home-carousel-card p { margin: 0 0 24px; color: #555; font-size: 14px; line-height: 24px; }
.sptg-themed .sptg-home-carousel-category { margin-top: auto; font-size: 14px; line-height: 24px; }
.sptg-themed .sptg-home-carousel a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sptg-themed .sptg-home-carousel a:focus-visible { outline: 2px solid #1688b4; outline-offset: 4px; }
.sptg-themed .sptg-home-carousel-track.owl-carousel { display: block; width: calc(100% + 24px); margin-left: -12px; overflow: visible; }
.sptg-themed .sptg-home-carousel-track .owl-wrapper { display: flex !important; }
.sptg-themed .sptg-home-carousel-track .owl-item { display: flex; flex: none; }
.sptg-themed .sptg-home-carousel-track .owl-item .sptg-home-carousel-card { flex: 1; margin: 0 12px; }
/* Use the same dot diameter and horizontal spacing as the other homepage carousels. */
.sptg-themed .sptg-home-carousel-controls { margin-top: 16px; }
.sptg-themed .sptg-home-carousel-controls[hidden] { display: none; }
.sptg-themed .sptg-home-carousel-pagination { display: flex; flex-wrap: wrap; justify-content: center; }
.sptg-themed .sptg-home-carousel-pagination button { display: grid; place-items: center; flex: none; width: 22px; height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; }
.sptg-themed .sptg-home-carousel-pagination button[aria-pressed="true"] { width: 24px; }
.sptg-themed .sptg-home-carousel-pagination button::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 50%; background: #74838d; }
.sptg-themed .sptg-home-carousel-pagination button[aria-pressed="true"]::before { width: 10px; height: 10px; border: 1px solid #1688b4; background: transparent; }
.sptg-themed .sptg-home-carousel-pagination button:focus-visible { outline: 2px solid #1688b4; outline-offset: -4px; }
.sptg-dark .sptg-home-carousel-header h2 a { color: #e5edf4; }
.sptg-dark .sptg-home-carousel-card { background: #14232f; border-color: #2b414f; }
.sptg-dark .sptg-home-carousel-card p { color: #bdcbd7; }
.sptg-dark .sptg-home-carousel-pagination button::before { background: #889caa; }
.sptg-dark .sptg-home-carousel-pagination button[aria-pressed="true"]::before { border-color: #79d5ef; background: transparent; }
.sptg-dark .sptg-home-carousel a:focus-visible,
.sptg-dark .sptg-home-carousel-pagination button:focus-visible { outline-color: #79d5ef; }
@media (min-width: 768px) and (max-width: 991px) {
    .sptg-themed .sptg-home-carousel-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 767px) {
    .sptg-themed .home > .blog-section { padding-top: 40px; }
    .sptg-themed .sptg-home-carousel-header { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 24px; }
    .sptg-themed .sptg-home-carousel-header h2 { font-size: 32px; }
    .sptg-themed .sptg-home-carousel-card { flex-basis: 100%; padding: 22px 20px; }
}

/* Client feedback has a distinct band above Insights. */
.sptg-themed .home .sptg-home-testimonials-band { padding: 64px 0; background: #f1f5f7; }
.sptg-themed .sptg-home-testimonials .sptg-home-carousel-card { margin-top: 0; margin-bottom: 0; }
.sptg-themed .sptg-home-testimonials blockquote { margin: 0 0 24px; padding: 0; border: 0; }
.sptg-themed .sptg-home-testimonials blockquote p { margin: 0; font-style: italic; }
.sptg-themed .sptg-home-testimonials figcaption { display: flex; align-items: center; gap: 16px; margin-top: auto; color: #555; font-size: 14px; line-height: 22px; }
.sptg-dark .home .sptg-home-testimonials-band { background: #101d27; }
.sptg-dark .sptg-home-testimonials .sptg-home-carousel-card { background: #172a36; }
.sptg-dark .sptg-home-testimonials figcaption { color: #bdcbd7; }
@media (max-width: 767px) {
    .sptg-themed .home .sptg-home-testimonials-band { padding: 40px 0; }
}

/* Section destinations follow content on phones and share the title row above 767px. */
html.sptg-themed .home .sptg-home-section-layout { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 28px; align-items: start; }
html.sptg-themed .home .sptg-home-section-layout::before,
html.sptg-themed .home .sptg-home-section-layout::after,
html.sptg-themed .home .sptg-home-section-heading::before,
html.sptg-themed .home .sptg-home-section-heading::after { display: none; }
html.sptg-themed .home .sptg-home-section-layout > * { min-width: 0; grid-column: 1 / -1; }
html.sptg-themed .home .sptg-home-section-layout > .sptg-home-section-heading { display: block; width: auto; margin: 0 0 24px; text-align: left; }
html.sptg-themed .home .sptg-home-section-heading :is(h1, h2) { margin: 0; }
html.sptg-themed .home .sptg-home-section-layout > .sptg-home-section-link { display: block; width: fit-content; max-width: 100%; margin: 28px 0 0; font-size: 14px; line-height: 24px; white-space: normal; }
html.sptg-themed .home .sptg-home-section-link > a { white-space: nowrap; }
html.sptg-themed .home .sptg-home-section-intro { max-width: 960px; margin: 0 0 32px; font-size: 14px; line-height: 24px; }
@media (min-width: 768px) {
    html.sptg-themed .home .sptg-home-section-layout { grid-template-columns: minmax(0, 1fr) minmax(210px, 28%); }
    html.sptg-themed .home .sptg-home-section-layout > .sptg-home-section-heading { grid-column: 1; grid-row: 1; }
    html.sptg-themed .home .sptg-home-section-layout > .sptg-home-section-link { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; margin: 0 0 24px; text-align: right; text-wrap: balance; }
}

/* Match the production homepage's section-title inset at every breakpoint.
   Section padding owns this gap so nested headings cannot double it. */
.sptg-themed .home { --sptg-section-title-inset: 55px; }
html.sptg-themed .inner-page.home > .row:is(.industries-section, .expertise-section, .sptg-home-expertise, .sptg-home-testimonials-band, .blog-section) {
    padding-top: var(--sptg-section-title-inset);
}
html.sptg-themed .inner-page.home > :is(.industries-section, .expertise-section) .tiles-notification,
html.sptg-themed .inner-page.home > :is(.industries-section, .expertise-section) .tiles-notification h1 {
    margin-top: 0;
}
@media (max-width: 767px) {
    .sptg-themed .home { --sptg-section-title-inset: 35px; }
}


/* The initial static row and enhanced row reserve the same control space. */
.sptg-themed .sptg-home-carousel-track:not(.owl-carousel) { scrollbar-width: none; }
.sptg-themed .sptg-home-carousel-track:not(.owl-carousel)::-webkit-scrollbar { display: none; }
.sptg-themed .sptg-home-carousel-track:not(.owl-carousel) + .sptg-home-carousel-controls[hidden] { display: block; min-height: 44px; }

/* Service-title arrows share one gap and move independently of title wrapping. */
html.sptg-themed .home .expertise-section .tile-small-descr-container > a { display: inline-block; max-width: 100%; padding: 0 15px 0 0; box-sizing: border-box; transition: none; }
html.sptg-themed .home .expertise-section .tile-small-descr-head { display: block; min-width: 0; margin-right: 0; }
html.sptg-themed .home .expertise-section .tile-small-goto-icon { display: inline-block; position: static; width: 24px; margin: 0 0 0 18px; vertical-align: middle; transform: translateX(0); transition: transform 500ms ease; }
html.sptg-themed .home .expertise-section .tile-small-descr-container > a:is(:hover, :focus-visible, .hover) .tile-small-goto-icon { transform: translateX(15px); }
@media (prefers-reduced-motion: reduce) {
    html.sptg-themed .home .expertise-section .tile-small-goto-icon,
    html.sptg-themed .home .expertise-section .tile-small-descr-container > a:is(:hover, :focus-visible, .hover) .tile-small-goto-icon { transition: none; transform: none; }
}

/* Keep the last word and its arrow together as the title wraps naturally. */
html.sptg-themed .home .expertise-section .sptg-service-title-tail { white-space: nowrap; }
html.sptg-themed .home .sptg-home-section-links { display: block; }
html.sptg-themed .home .sptg-home-section-links > a { margin-top: 0; }

/* Share intrinsic quote and attribution rows across the entire horizontal list.
   Portraits and company marks keep their vertical positions between pages. */
@supports (grid-template-rows: subgrid) {
    html.sptg-themed .sptg-home-testimonials .sptg-home-carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); grid-template-rows: repeat(5, auto); column-gap: 24px; row-gap: 6px; align-items: stretch; }
    html.sptg-themed .sptg-home-testimonials .sptg-home-carousel-card { display: grid; grid-row: 1 / span 5; grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: subgrid; column-gap: 16px; row-gap: 6px; }
    html.sptg-themed .sptg-home-testimonials blockquote { grid-column: 1 / -1; grid-row: 1; margin: 0 0 18px; }
    html.sptg-themed .sptg-home-testimonials figcaption { display: grid; grid-column: 1 / -1; grid-row: 2 / span 4; grid-template-columns: subgrid; grid-template-rows: subgrid; margin-top: 0; align-items: stretch; gap: 6px 16px; }
    html.sptg-themed .sptg-home-testimonials .sptg-testimonial-person { display: grid; grid-column: 1 / -1; grid-row: 1 / span 4; grid-template-columns: subgrid; grid-template-rows: subgrid; align-items: stretch; gap: 6px 16px; }
    html.sptg-themed .sptg-home-testimonials .sptg-testimonial-media { grid-column: 1; grid-row: 1 / span 4; align-self: start; }
    html.sptg-themed .sptg-home-testimonials .sptg-testimonial-media.is-logo { grid-column: 2; grid-row: 4; align-self: center; max-width: 100%; }
    html.sptg-themed .sptg-home-testimonials .sptg-testimonial-identity { display: grid; grid-column: 2; grid-row: 1 / span 4; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); align-items: start; align-self: stretch; gap: 6px 0; }
    html.sptg-themed .sptg-home-testimonials .sptg-testimonial-name { grid-row: 1; }
    html.sptg-themed .sptg-home-testimonials .sptg-testimonial-role { grid-row: 2; }
    html.sptg-themed .sptg-home-testimonials .sptg-testimonial-current { grid-row: 3; }
    html.sptg-themed .sptg-home-testimonials .sptg-testimonial-brand { grid-row: 4; align-self: center; margin-top: 0; }
    @media (min-width: 768px) and (max-width: 991px) {
        html.sptg-themed .sptg-home-testimonials .sptg-home-carousel-track { grid-auto-columns: calc((100% - 24px) / 2); }
    }
    @media (max-width: 767px) {
        html.sptg-themed .sptg-home-testimonials .sptg-home-carousel-track { grid-auto-columns: 100%; }
        html.sptg-themed .sptg-home-testimonials .sptg-home-carousel-card { grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; }
        html.sptg-themed .sptg-home-testimonials :is(figcaption, .sptg-testimonial-person) { column-gap: 14px; }
    }
}

/* Project examples follow client feedback and use the existing native carousel. */
.sptg-themed .home .sptg-home-case-studies-band { padding: var(--sptg-section-title-inset,55px) 0 0; }
.sptg-themed .sptg-home-case-studies .sptg-home-case-category { margin: 0 0 14px; color: #637782; font-size: 13px; line-height: 1.6; }
.sptg-themed .sptg-home-case-link { align-self: flex-start; margin-top: auto; font-size: 14px; line-height: 24px; }
.sptg-themed.sptg-dark .sptg-home-case-studies .sptg-home-case-category { color: #a5b8c6; }

/* Equivalent loop positions reset without triggering a second scroll-snap animation. */
.sptg-themed .sptg-home-carousel-track.is-loop-reset { scroll-snap-type: none; scroll-behavior: auto; }

/* Each mobile Explore line ends with the same 35px section inset. */
@media (max-width: 767px) {
    html.sptg-themed .inner-page.home > .row:is(.industries-section, .expertise-section, .sptg-home-expertise, .sptg-home-testimonials-band, .sptg-home-case-studies-band, .sptg-work-logos, .blog-section) { padding-bottom: var(--sptg-section-title-inset); }
    html.sptg-themed .home .industries-container { padding-bottom: 0; }
}

/* Company marks have a dedicated full-width footer with equal internal padding. */
html.sptg-themed .sptg-home-testimonials .sptg-home-carousel-card { padding: 24px; }
html.sptg-themed .sptg-home-testimonials .sptg-home-testimonial-logo-footer { flex: none; align-self: stretch; margin: 24px -24px -24px; padding: 24px; border-top: 1px solid #d3dde3; }
html.sptg-themed.sptg-dark .sptg-home-testimonials .sptg-home-testimonial-logo-footer { border-top-color: #304957; }
html.sptg-themed .sptg-home-testimonials .sptg-home-testimonial-logo-footer .sptg-testimonial-brand { display: block; width: 100%; max-width: none; height: 56px; margin: 0; }
html.sptg-themed .sptg-home-testimonials .sptg-home-testimonial-logo-footer .sptg-testimonial-brand-art { width: 100%; height: 56px; background-position: center; background-size: contain; }
@supports (grid-template-rows: subgrid) {
 html.sptg-themed .sptg-home-testimonials figcaption { grid-row: 2 / span 3; }
 html.sptg-themed .sptg-home-testimonials .sptg-testimonial-person { grid-row: 1 / span 3; }
 html.sptg-themed .sptg-home-testimonials .sptg-testimonial-media { grid-row: 1 / span 3; }
 html.sptg-themed .sptg-home-testimonials .sptg-testimonial-identity { grid-row: 1 / span 3; }
 html.sptg-themed .sptg-home-testimonials .sptg-home-testimonial-logo-footer { grid-column: 1 / -1; grid-row: 5; margin-top: 18px; }
}
