/* Use the existing Skillbridge palette, typography, containers and buttons. */
.sb-experiences {
    --sb-experiences-header-height: 7rem;
    --sb-experiences-nav-height: 0px;
    color: var(--sb-ink);
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.sb-experiences [id] {
    scroll-margin-top: calc(var(--sb-experiences-header-height) + var(--sb-experiences-nav-height) + 1.5rem);
}

.sb-experiences .sb-exp-hero {
    padding: 4rem 0 3.5rem;
    background: none;
}

.sb-experiences .sb-exp-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
}

.sb-experiences .sb-exp-hero h1 {
    margin: 0.9rem 0 1.4rem;
    color: var(--sb-forest);
    font-size: clamp(2.2rem, 4.6vw, 4rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.sb-experiences .sb-exp-lead {
    color: var(--sb-muted);
    font-size: 1.03rem;
    line-height: 1.85;
}

.sb-experiences .sb-exp-hero h2 {
    color: var(--sb-forest);
    font-size: 1.25rem;
    line-height: 1.4;
}

.sb-experiences .sb-exp-cta-row {
    align-items: center;
}

.sb-experiences .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    white-space: normal;
    text-decoration: none;
}

.sb-experiences .sb-exp-hero-visual {
    padding-top: 0;
}

.sb-experiences .section {
    padding: 5rem 0;
}

.sb-experiences .section h2 {
    color: var(--sb-forest);
    font-size: clamp(1.9rem, 2.8vw, 2.8rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.sb-experiences h3,
.sb-experiences h4 {
    color: var(--sb-forest);
    line-height: 1.3;
}

.sb-experiences .sb-exp-sub {
    font-size: 1rem;
    line-height: 1.85;
}

.sb-experiences .sb-exp-now-card,
.sb-experiences .sb-exp-narrative-bridge {
    border-radius: 1.5rem;
}

.sb-experiences .sb-exp-now-card h3,
.sb-experiences .sb-exp-final h2,
.sb-experiences .sb-exp-narrative-bridge b {
    color: var(--sb-white);
}

.sb-experiences .sb-exp-now-card h3 {
    font-size: 2rem;
}

.sb-experiences .sb-exp-now-card .sb-kicker,
.sb-experiences .sb-exp-final .sb-kicker {
    color: var(--sb-mint) !important;
}

.sb-experiences .sb-exp-now-card .sb-btn-primary,
.sb-experiences .sb-exp-final .sb-btn-primary {
    background: var(--sb-white);
    border-color: var(--sb-white);
    color: var(--sb-forest);
}

.sb-experiences .sb-exp-now-card .sb-btn-secondary,
.sb-experiences .sb-exp-final .sb-btn-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--sb-white);
}

.sb-experiences .sb-exp-now-card .btn:hover,
.sb-experiences .sb-exp-final .btn:hover {
    background: var(--sb-mint);
    color: var(--sb-forest);
}

.sb-experiences .sb-exp-episode,
.sb-experiences .sb-exp-domain,
.sb-experiences .sb-exp-perspective,
.sb-experiences .sb-exp-phase,
.sb-experiences .sb-exp-skill-card {
    background: rgba(255, 255, 255, 0.86);
    border-color: var(--sb-line);
    border-radius: 1.2rem;
}

.sb-experiences .sb-exp-episode h3 {
    font-size: 1.2rem;
}

.sb-experiences .sb-exp-episode button,
.sb-experiences .sb-exp-domain {
    font: inherit;
}

.sb-experiences .sb-exp-domain {
    text-align: left;
}

.sb-experiences .sb-exp-domain p {
    line-height: 1.6;
}

.sb-experiences .sb-exp-domain[aria-expanded="true"] {
    border-color: var(--sb-green);
    background: rgba(var(--sb-green-rgb), 0.06);
}

.sb-experiences button:focus-visible,
.sb-experiences a:focus-visible,
.sb-experiences .sb-exp-domain:focus-visible {
    outline: 3px solid var(--sb-green);
    outline-offset: 4px;
}

.sb-experiences .sb-exp-story-nav {
    position: sticky;
    top: var(--sb-experiences-header-height);
    display: block;
    padding: 1rem 0;
    background: rgba(255, 253, 248, 0.96);
    border-color: var(--sb-line);
    z-index: 20;
}

.sb-experiences .sb-exp-story-nav > .container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sb-experiences .sb-exp-story-nav button,
.sb-experiences .sb-exp-evidence-tabs button {
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
}

.sb-experiences .sb-exp-story-nav button.sb-exp-on,
.sb-experiences .sb-exp-evidence-tabs button.sb-exp-active {
    color: var(--sb-white);
}

.sb-experiences .sb-exp-num {
    background: var(--sb-forest);
}

.sb-experiences .sb-exp-frame {
    padding: 0.65rem;
    border-color: var(--sb-line);
    border-radius: 1.5rem;
}

.sb-experiences .gallery-item {
    display: block;
    width: auto;
    aspect-ratio: auto;
    border-radius: 0.9rem;
}

.sb-experiences .gallery-item img {
    height: auto;
    object-fit: initial;
}

.sb-experiences .sb-exp-hero-card.gallery-item {
    position: absolute;
}

.sb-experiences .sb-exp-hero-card.gallery-item img {
    height: 100%;
    object-fit: cover;
}

.sb-experiences .sb-exp-list-item small {
    display: block;
    margin-top: 0.3rem;
}

.sb-experiences .sb-exp-episode-chip {
    text-decoration: none;
}

.sb-experiences .sb-exp-final {
    padding: 3rem 0;
}

.sb-experiences .sb-exp-final h2 {
    font-size: clamp(1.8rem, 2.8vw, 2.5rem);
    font-weight: 500;
    line-height: 1.2;
}

.sb-experiences .sb-exp-final-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
}

.sb-experiences--overview .sb-exp-final-grid .sb-exp-cta-row {
    justify-content: flex-end;
    margin-top: 0;
}

@media (max-width: 991.98px) {
    .sb-experiences .sb-exp-hero-grid,
    .sb-experiences .sb-exp-now-card,
    .sb-experiences .sb-exp-grid2,
    .sb-experiences .sb-exp-skill-layout,
    .sb-experiences .sb-exp-final-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sb-experiences--overview .sb-exp-final-grid .sb-exp-cta-row {
        justify-content: flex-start;
    }

    .sb-experiences .sb-exp-domain-grid,
    .sb-experiences .sb-exp-perspectives,
    .sb-experiences .sb-exp-format-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sb-experiences .sb-exp-flow {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .sb-experiences .sb-exp-flow-card:not(:last-child)::after {
        content: '\2193';
        right: auto;
        left: 50%;
        top: auto;
        bottom: -2rem;
    }
}

@media (max-width: 767.98px) {
    .sb-experiences .section {
        padding: 3rem 0;
    }

    .sb-experiences .sb-exp-hero {
        padding: 2.5rem 0;
    }

    .sb-experiences .sb-exp-story-nav > .container {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.3rem;
    }

    .sb-experiences .sb-exp-story-nav button {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

@media (max-width: 575.98px) {
    .sb-experiences .sb-exp-domain-grid,
    .sb-experiences .sb-exp-perspectives,
    .sb-experiences .sb-exp-format-grid,
    .sb-experiences .sb-exp-skill-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .sb-experiences .sb-exp-episode button {
        grid-template-columns: 3rem minmax(0, 1fr) auto;
        gap: 0.7rem;
        padding: 1rem;
    }

    .sb-experiences .sb-exp-epno {
        width: 2.8rem;
        height: 2.8rem;
    }

    .sb-experiences .sb-exp-epbody {
        padding: 1.2rem;
    }

    .sb-experiences .sb-exp-episode.sb-exp-open .sb-exp-epbody {
        grid-template-columns: minmax(0, 1fr);
    }

    .sb-experiences .sb-exp-now-card {
        padding: 1.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sb-experiences *,
    .sb-experiences *::before,
    .sb-experiences *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
