/* Scoped styles. Inherits the WordPress theme font. */
.sm4d {
    --blue: #3b88cd;
    --ink: #102d40;
    --light: #e1f0fc;
    --design: 1;
    --dev: 0;
    --live: 0;
    --plan: 0;
    --wire: 0;
    color: var(--ink);
    background: transparent;
    padding: 0;
    position: relative;
    isolation: isolate;
    overflow: visible;
    min-width: 0;
}
.sm4d * {
    box-sizing: border-box;
}
.sm4d-eyebrow {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    background-color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.75rem;
}
.sm4d-layout {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0,1.15fr);
    gap: clamp(24px,4vw,48px);
    align-items: start;
}
.sm4d-story {
    position: relative;
}
.sm4d-step {
    display: grid;
    grid-template-columns: 46px minmax(0,1fr);
    gap: 22px;
    padding: 44px 0 96px;
    position: relative;
}
.sm4d-number {
    height: 44px;
    width: 44px;
    background: #fff;
    color: var(--blue);
    display: grid;
    place-items: center;
    font-weight: 700;
    -webkit-mask-image: url(/wp-content/themes/sowmedia/dist/img/plectrum.2c7ce0a4.svg);
    mask-image: url(/wp-content/themes/sowmedia/dist/img/plectrum.2c7ce0a4.svg);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center center;
    mask-position: center center;
    background: #fff;
    display: inline-flex;
    padding: 1.5rem 0.5rem;
    transition: 0.5s;
    transition: background .2s,color .2s;
}
.sm4d-step.is-active .sm4d-number {
    background: var(--blue);
    color: #fff;
}
.sm4d h3 {
    margin: 12px 0 18px;
}
.sm4d-note {
    font-size: var(--wp--preset--font-size--small);
    line-height: 1.6;
    display: inline-block;
    color: var(--wp--preset--color--primary);
}
.sm4d-stage {
    position: relative;
    align-self: stretch;
    min-width: 0;
    width: 100%;
}
.sm4d-stage>.sm4d-art {
    transform: none;
}
.sm4d-art {
    position: relative;
    height: 470px;
    width: 100%;
    display: grid;
    align-items: center;
}
.sm4d-orbit {
    position: absolute;
    inset: 20px -10px 35px;

    background: #c6e3f8;
    border-radius: 0;
    opacity: 0.65;

    pointer-events: none;
    transform-origin: center;

    --sm4d-plectrum-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 251 250'%3E%3Cpath d='M42.052 13.498c61.75-46.865 208.572 36.429 208.572 125.172 0 88.744-174.604 131.144-222.471 102.416-47.869-28.728-26.86-196.653 13.9-227.588Z'/%3E%3C/svg%3E");

    -webkit-mask-image: var(--sm4d-plectrum-mask);
    mask-image: var(--sm4d-plectrum-mask);

    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    animation: sm4d-plectrum-float 18s ease-in-out infinite;
}

@keyframes sm4d-plectrum-float {
    0%,
    100% {
        transform:
            translate(-8px, 5px)
            rotate(-12deg)
            skew(0deg, 0deg)
            scale(1.02, 0.98);
    }

    25% {
        transform:
            translate(18px, -16px)
            rotate(8deg)
            skew(3deg, -2deg)
            scale(1.10, 1.02);
    }

    50% {
        transform:
            translate(-12px, -8px)
            rotate(24deg)
            skew(-2deg, 3deg)
            scale(0.98, 1.12);
    }

    75% {
        transform:
            translate(-20px, 16px)
            rotate(3deg)
            skew(2deg, -3deg)
            scale(1.12, 1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sm4d-orbit {
        animation: none;
        transform: none;
    }
}
.sm4d-browser {
    position: relative;
    z-index: 2;
    background: #fff;
    border: 1px solid #c2d9ea;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 40px #0c3b6018;
    transform: translateX(calc(var(--dev)*30px)) scale(calc(1 - var(--dev)*.05 - var(--live)*.06));
}
.sm4d-chrome {
    height: 32px;
    background: #f8fbfd;
    border-bottom: 1px solid #e3edf4;
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 0 12px;
}
.sm4d-chrome i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #bdd1df;
}
.sm4d-chrome span {
    margin: auto;
    font-size: 9px;
    color: #7590a2;
    padding-right: 20px;
}
.sm4d-code {
    position: absolute;
    z-index: 1;
    left: -16px;
    top: 65px;
    width: 65%;
    height: 315px;
    background: #102d40;
    color: #c4dbed;
    border-radius: 10px;
    opacity: var(--dev);
    transform: translateX(calc((1 - var(--dev))*45px)) rotate(-4deg);
    box-shadow: 0 14px 30px #102d4020;
}
.sm4d-code-top {
    padding: 14px;
    font-size: 9px;
    border-bottom: 1px solid #ffffff20;
}
.sm4d-code pre {
    padding: 12px;
    font-size: 9px;
    line-height: 1.9;
}
.sm4d-code pre span {
    color: #83d4ba;
}
.sm4d-plan,.sm4d-live {
    position: absolute;
    z-index: 3;
    background: white;
    box-shadow: 0 8px 24px #123c5814;
    border: 1px solid #d3e5f2;
    padding: 13px 18px;
    border-radius: 7px;
    font-size: 11px;
}
.sm4d-plan {
    bottom: 38px;
    left: 12px;
    opacity: var(--plan);
    transform: translateY(calc((1 - var(--plan))*12px)) rotate(-3deg);
}
.sm4d-live {
    right: 10px;
    top: 30px;
    opacity: var(--live);
    transform: translateY(calc((1 - var(--live))*14px));
}
.sm4d-live>span {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #2ca782;
    border-radius: 50%;
    margin-right: 7px;
}
.sm4d-care {
    position: absolute;
    z-index: 3;
    bottom: 34px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 7px;
    justify-content: center;
    opacity: var(--live);
    transform: translateY(calc((1 - var(--live))*14px));
}
.sm4d-care span {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    background-color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.75rem;
}
.sm4d-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 14px;
    justify-content: center;
    font-size: var(--wp--preset--font-size--small);
}
.sm4d-caption span {
    color: var(--wp--preset--color--primary);
}
.sm4d-caption b {
    font-weight: 500;
}
@media(max-width:760px) {
    .sm4d {
        padding: 0;
    }
    .sm4d-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .sm4d-stage {
        grid-row: 1;
        position: relative;
        top: auto;
        margin-bottom: 28px;
    }
    .sm4d-art {
        max-width: 500px;
        margin: auto;
        height: 420px;
    }
    .sm4d-step {
        gap: 16px;
        padding-bottom: 32px;
    }
    .sm4d-story:before {
        bottom: 55px;
    }
    .sm4d h3 {
        font-size: 25px;
    }
    .sm4d-design h4 {
        font-size: 36px;
    }
    .sm4d-code {
        display: none;
    }
}
@media(prefers-reduced-motion:reduce) {
    .sm4d-number {
        transition: none;
    }
}
/* Static preview: editing content never pins the Gutenberg canvas. */
.sm4d--preview .sm4d-stage {
    position: relative;
    top: auto;
}
.sm4d--preview {
    --design: 1;
    --wire: 0;
    --plan: 0;
    --dev: 0;
    --live: 0;
}
.sm4d .sm4d-text p:last-child {
    margin-bottom: 22px;
}
/* The image composition stays locked; CSS layers add motion and sharp labels. */
.sm4d--images .sm4d-image-stack {
    position: relative;
    aspect-ratio: 3/2;
    background: #edf6fc;
}
.sm4d--images .sm4d-image-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}
.sm4d--images .sm4d-image-layer:first-child {
    opacity: 1;
}
.sm4d--images .sm4d-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
}
.sm4d--images .sm4d-art {
    height: auto;
    min-height: 380px;
    padding: 72px 0 86px;
}
.sm4d--images .sm4d-code {
    top: 74px;
    left: 0;
    width: 65%;
    height: calc(100% - 155px);
    min-height: 200px;
}
.sm4d--images .sm4d-browser {
    width: 100%;
    transform: translateX(calc(var(--dev)*40px)) scale(calc(1 - var(--dev)*.18 - var(--live)*.03));
}
.sm4d--images .sm4d-care {
    bottom: 44px;
}
.sm4d--images .sm4d-plan {
    bottom: 42px;
}
.sm4d--preview .sm4d-image-layer {
    opacity: 0;
}
.sm4d--preview .sm4d-image-layer[data-visual="1"] {
    opacity: 1;
}
@media(max-width:760px) {
    .sm4d--images .sm4d-art {
        min-height: 0;
        padding: 40px 0 84px;
        height: auto;
    }
    .sm4d--images .sm4d-image-layer:first-child {
        opacity: 0;
    }
    .sm4d--images .sm4d-image-layer:last-child {
        opacity: 1;
    }
    .sm4d--images {
        --live: 1;
        --plan: 0;
    }
    .sm4d--images .sm4d-live {
        top: 5px;
        font-size: 10px;
    }
}
@media(prefers-reduced-motion:reduce) {
    .sm4d--images .sm4d-image-layer:first-child {
        opacity: 0;
    }
    .sm4d--images .sm4d-image-layer:last-child {
        opacity: 1;
    }
    .sm4d--images {
        --live: 1;
        --plan: 0;
    }
}
.sm4d .sm4d-image-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8.5%;
    z-index: 5;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7.2%;
    pointer-events: none;
}
.sm4d .sm4d-image-nav img {
    display: block;
    width: 18%;
    height: auto;
    max-height: 70%;
    object-fit: contain;
    margin: 0;
}
.sm4d .sm4d-image-nav span {
    font-size: clamp(5px,.72vw,9px);
    color: #0d253a;
    white-space: nowrap;
}
.sm4d .sm4d-favicon {
    height: 14px;
    width: 14px;
    object-fit: contain;
    margin-left: 7px;
}
@media(max-width:760px) {
    .sm4d-stage>.sm4d-art {
        transform: none;
    }
}
.sm4d--preview .sm4d-stage>.sm4d-art {
    transform: none;
}
/* A little breathing room and a one-time, staggered story entrance. */
.sm4d .sm4d-number {
    position: relative;
    transition: transform .55s cubic-bezier(.22,1,.36,1),background .25s,color .25s;
}
.sm4d .sm4d-step.is-active .sm4d-number {
    /* transform: scale(1.08) rotate(-5deg); */
}
.sm4d .sm4d-note {
    position: relative;
}
@media(prefers-reduced-motion:no-preference) {
    .sm4d-motion .sm4d-step>div>:is(.sm4d-eyebrow,h3,.sm4d-text,.sm4d-note) {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity .6s ease,transform .75s cubic-bezier(.22,1,.36,1);
    }
    .sm4d-motion .sm4d-step.is-revealed>div>:is(.sm4d-eyebrow,h3,.sm4d-text,.sm4d-note) {
        opacity: 1;
        transform: translateY(0);
    }
    .sm4d-motion .sm4d-step>div>h3 {
        transition-delay: 55ms;
    }
    .sm4d-motion .sm4d-step>div>.sm4d-text {
        transition-delay: 110ms;
    }
    .sm4d-motion .sm4d-step>div>.sm4d-note {
        transition-delay: 170ms;
    }
}
@media(max-width:760px) {
    .sm4d .sm4d-step {
        padding: 28px 0 48px;
    }
}
@media(prefers-reduced-motion:reduce) {
    .sm4d .sm4d-number,.sm4d .sm4d-number::after,.sm4d .sm4d-note::before {
        transition: none;
        transform: none;
    }
}
@media(min-width:761px) {
    .sm4d:not(.sm4d--preview) .sm4d-step:first-child {
        padding-top: calc(44px + var(--sm4d-first-padding,0px));
    }
    .sm4d:not(.sm4d--preview) .sm4d-step:last-child {
        padding-bottom: calc(96px + var(--sm4d-last-padding,0px));
    }
}
/* Mobile: image stays with its story; no pinned screen or gesture hijacking. */
.sm4d-mobile-visual {
    display: none;
}
@media(max-width:760px) {
    .sm4d-mobile-enhanced .sm4d-stage {
        display: none;
    }
    .sm4d-mobile-enhanced .sm4d-layout {
        display: block;
    }
    .sm4d-mobile-enhanced .sm4d-step {
        grid-template-columns: 34px minmax(0,1fr);
        gap: 14px;
        padding: 24px 0 54px;
    }
    .sm4d-mobile-enhanced .sm4d-number {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    .sm4d-mobile-enhanced .sm4d-story::before {
        left: 16px;
        bottom: 60px;
    }
    .sm4d-mobile-enhanced .sm4d-step h3 {
        font-size: clamp(23px,6vw,29px);
        line-height: 1.2;
    }
    .sm4d-mobile-enhanced .sm4d-step p {
        font-size: 15px;
        line-height: 1.7;
    }
    .sm4d-mobile-enhanced .sm4d-note {
        font-size: 11px;
    }
    .sm4d .sm4d-mobile-visual {
        display: block;
        position: relative;
        margin-top: 26px;
        padding-bottom: 25px;
        isolation: isolate;
    }
    .sm4d .sm4d-mobile-visual::before {
        content: "";
        position: absolute;
        z-index: -1;
        inset: 12px -8px 24px;
        background: #c6e3f8;
        border-radius: 45% 55% 35% 65%;
        transform: rotate(-5deg);
        opacity: .65;
    }
    .sm4d .sm4d-mobile-browser {
        position: relative;
        z-index: 2;
        border: 1px solid #c2d9ea;
        background: white;
        border-radius: 9px;
        overflow: hidden;
        box-shadow: 0 10px 22px #102d4012;
    }
    .sm4d .sm4d-mobile-screen {
        position: relative;
        aspect-ratio: 3/2;
    }
    .sm4d .sm4d-mobile-image {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        margin: 0;
    }
    .sm4d .sm4d-mobile-visual .sm4d-chrome {
        height: 25px;
        padding-inline: 8px;
    }
    .sm4d .sm4d-mobile-visual .sm4d-chrome span {
        font-size: 8px;
    }
    .sm4d .sm4d-mobile-visual .sm4d-image-nav span {
        font-size: 5px;
    }
    .sm4d .sm4d-mobile-development {
        padding-top: 16px;
        padding-left: 12px;
    }
    .sm4d .sm4d-mobile-development .sm4d-code {
        display: block;
        top: 4px;
        left: 0;
        width: 85%;
        height: calc(100% - 30px);
        min-height: 0;
        opacity: 1;
        transform: rotate(-4deg);
        overflow: hidden;
        z-index: 1;
    }
    .sm4d .sm4d-mobile-development .sm4d-mobile-browser {
        transform: rotate(1.5deg);
    }
    .sm4d .sm4d-mobile-visual .sm4d-live {
        position: relative;
        display: inline-flex;
        margin-top: 12px;
        top: auto;
        right: auto;
        opacity: 1;
        transform: none;
        font-size: 10px;
        padding: 8px 11px;
        box-shadow: none;
    }
    .sm4d .sm4d-mobile-visual .sm4d-care {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        justify-content: flex-start;
        flex-wrap: wrap;
        margin-top: 8px;
        opacity: 1;
        transform: none;
        gap: 5px;
    }
    .sm4d .sm4d-mobile-visual .sm4d-care span {
        font-size: 9px;
        padding: 7px 9px;
        box-shadow: none;
    }
    .sm4d .sm4d-mobile-caption {
        display: block;
        position: relative;
        z-index: 3;
        color: var(--wp--preset--color--primary);
        font-size: 10px;
        line-height: 1.5;
        margin-top: 13px;
    }
}
@media(max-width:760px) and (prefers-reduced-motion:no-preference) {
    .sm4d-motion .sm4d-mobile-visual {
        opacity: 0;
        transform: translateY(16px) scale(.97);
        transition: opacity .6s ease,transform .8s cubic-bezier(.22,1,.36,1);
        transition-delay: 150ms;
    }
    .sm4d-motion .is-revealed .sm4d-mobile-visual {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* Mobile phase-specific motion: one entrance per step, no continuous loop. */
@media(max-width:760px) and (prefers-reduced-motion:no-preference) {
    .sm4d-motion .sm4d-mobile-visual .sm4d-mobile-browser {
        opacity: 0;
        transform: translateY(20px) scale(.94);
        transition: opacity .7s ease,transform .95s cubic-bezier(.22,1,.36,1);
        transition-delay: 180ms;
    }
    .sm4d-motion .is-visual-revealed .sm4d-mobile-browser {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    .sm4d-motion .sm4d-step:first-child .sm4d-mobile-image {
        clip-path: inset(0 0 100% 0);
        transition: clip-path 1.15s cubic-bezier(.22,1,.36,1);
        transition-delay: 320ms;
    }
    .sm4d-motion .sm4d-step:first-child.is-visual-revealed .sm4d-mobile-image {
        clip-path: inset(0);
    }
    .sm4d-motion .sm4d-step:nth-child(2) .sm4d-mobile-image {
        opacity: .35;
        transform: scale(1.035);
        transition: opacity .85s ease,transform 1.1s cubic-bezier(.22,1,.36,1);
        transition-delay: 250ms;
    }
    .sm4d-motion .sm4d-step:nth-child(2).is-visual-revealed .sm4d-mobile-image {
        opacity: 1;
        transform: scale(1);
    }
    .sm4d .sm4d-mobile-screen {
        overflow: hidden;
    }
    .sm4d-motion .sm4d-mobile-development .sm4d-code {
        opacity: 0;
        transform: translate(24px,12px) rotate(0deg);
        transition: opacity .7s ease,transform 1s cubic-bezier(.22,1,.36,1);
        transition-delay: 430ms;
    }
    .sm4d-motion .is-visual-revealed .sm4d-mobile-development .sm4d-code {
        opacity: 1;
        transform: translate(0,0) rotate(-4deg);
    }
    .sm4d-motion .sm4d-mobile-development .sm4d-mobile-browser {
        transform: translate(-8px,18px) scale(.96) rotate(0deg);
        transition-delay: 200ms;
    }
    .sm4d-motion .is-visual-revealed .sm4d-mobile-development .sm4d-mobile-browser {
        transform: translate(0,0) scale(1) rotate(1.5deg);
    }
    .sm4d-motion .sm4d-mobile-visual .sm4d-live {
        opacity: 0;
        transform: translateY(10px) scale(.93);
        transition: opacity .5s ease,transform .7s cubic-bezier(.22,1,.36,1);
        transition-delay: 550ms;
    }
    .sm4d-motion .is-visual-revealed .sm4d-mobile-visual .sm4d-live {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    .sm4d-motion .sm4d-mobile-visual .sm4d-care span {
        opacity: 0;
        transform: translateY(10px);
        transition: opacity .5s ease,transform .65s cubic-bezier(.22,1,.36,1);
        transition-delay: 680ms;
    }
    .sm4d-motion .sm4d-mobile-visual .sm4d-care span:nth-child(2) {
        transition-delay: 790ms;
    }
    .sm4d-motion .sm4d-mobile-visual .sm4d-care span:nth-child(3) {
        transition-delay: 900ms;
    }
    .sm4d-motion .is-visual-revealed .sm4d-mobile-visual .sm4d-care span {
        opacity: 1;
        transform: translateY(0);
    }
    .sm4d-motion .sm4d-mobile-caption {
        opacity: 0;
        transform: translateY(7px);
        transition: opacity .55s ease,transform .7s cubic-bezier(.22,1,.36,1);
        transition-delay: 380ms;
    }
    .sm4d-motion .is-visual-revealed .sm4d-mobile-caption {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Add after your current CSS: retain the existing plectrum mask and colors. */
.sm4d .sm4d-number {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}
.sm4d .sm4d-number svg {
    display: block;
    width: 22px;
    height: 22px;
    flex: none;
}
@media (max-width: 760px) {
    .sm4d .sm4d-number svg {
        width: 18px;
        height: 18px;
    }
}
/* Desktop: a tall track, with the visual centered by native sticky. */
@media (min-width: 761px) {
    .sm4d .sm4d-layout {
        align-items: stretch;
    }

    .sm4d .sm4d-story {
        grid-column: 1;
        grid-row: 1;
    }

    .sm4d .sm4d-stage {
        grid-column: 2;
        grid-row: 1;
        position: relative;
        align-self: stretch;
        height: auto;
        min-width: 0;
        overflow: visible;
    }

    .sm4d .sm4d-stage > .sm4d-art {
        position: sticky;
        top: max(40px, calc((100vh - 540px) / 2));
        transform: none !important;
        transition: none;
        will-change: auto;
    }


    .sm4d.sm4d--preview .sm4d-stage > .sm4d-art {
        position: relative;
        top: auto !important;
    }
}

/* Add sm4d-wrapper to the full-width WordPress Group containing this block. */
.wp-block-group.sm4d-wrapper {
    overflow: visible !important;
}

html:has(.sm4d),
body:has(.sm4d) {
    overflow-x: clip !important;
    overflow-y: visible !important;
}