/* Section 04 — Visual Variants R9
   Scoped override only. The shared pomosda-hero.css remains untouched. */

#section-04.pomosda-advantages--visual-r9 {
    --s04-cream: #fbfaf5;
    --s04-green: #005f52;
    --s04-green-dark: #064f46;
    --s04-sage: #a9bea0;
    --s04-sage-soft: #e8efe4;
    --s04-yellow: #ffca0a;
    --s04-ink: #161a18;
    background:
        radial-gradient(circle at 8% 16%, rgba(255, 202, 10, .08), transparent 15%),
        radial-gradient(circle at 92% 76%, rgba(0, 95, 82, .055), transparent 17%),
        var(--s04-cream);
}

#section-04 .pomosda-advantages__heading {
    position: relative;
    max-width: 760px;
    margin-bottom: 58px;
}

#section-04 .pomosda-advantages__heading::after {
    content: "";
    display: block;
    width: 78px;
    height: 5px;
    margin-top: 18px;
    border-radius: 999px;
    background: var(--s04-yellow);
}

#section-04 .pomosda-advantages__list {
    gap: clamp(72px, 8vw, 118px);
}

#section-04 .pomosda-advantages__feature {
    border-radius: 34px;
    padding: clamp(28px, 4vw, 54px);
    min-height: max(430px, calc(var(--section04-media-height, 330px) + 92px));
    gap: clamp(48px, 7vw, 108px);
    overflow: visible;
}

#section-04 .pomosda-advantages__copy {
    z-index: 4;
    padding: 24px 0;
}

#section-04 .pomosda-advantages__copy h3 {
    position: relative;
}

#section-04 .pomosda-advantages__copy p {
    max-width: 410px;
}

#section-04 .pomosda-advantages__media {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: none;
}

#section-04 .pomosda-advantages__media::after {
    display: none;
}

#section-04 .pomosda-advantages__media img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#section-04 .pomosda-advantages__media-number {
    position: absolute;
    z-index: 7;
    display: grid;
    place-items: center;
    min-width: 50px;
    height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    font: 800 13px/1 "Montserrat", sans-serif;
    letter-spacing: .12em;
}

#section-04 .pomosda-advantages__media-accent {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

/* =========================================================
   01 — EDITORIAL / ACADEMIC FRAME
   ========================================================= */
#section-04 .pomosda-advantages__feature--variant-1 {
    background: rgba(255,255,255,.58);
    border: 1px solid rgba(0, 95, 82, .10);
}

#section-04 .pomosda-advantages__feature--variant-1 .pomosda-advantages__wave {
    right: -4%;
    bottom: -32px;
    width: 58%;
    opacity: .80;
}

#section-04 .pomosda-advantages__feature--variant-1::after {
    left: -40px;
    bottom: -26px;
    width: 92px;
    height: 92px;
    background: var(--s04-green);
    box-shadow: 34px -28px 0 0 #c6d5bf;
}

#section-04 .pomosda-advantages__feature--variant-1 .pomosda-advantages__media {
    height: var(--section04-media-height, 330px);
    width: min(100%, var(--section04-media-width, 400px));
}

#section-04 .pomosda-advantages__feature--variant-1 .pomosda-advantages__media::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 16px -16px -16px 16px;
    border: 2px solid var(--s04-green);
    border-radius: 28px;
}

#section-04 .pomosda-advantages__feature--variant-1 .pomosda-advantages__media img {
    border: 7px solid #fff;
    border-radius: 26px;
    box-shadow: 0 22px 50px rgba(0, 67, 58, .16);
}

#section-04 .pomosda-advantages__feature--variant-1 .pomosda-advantages__media-accent {
    top: -25px;
    right: -18px;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: var(--s04-yellow);
    opacity: .9;
}

#section-04 .pomosda-advantages__feature--variant-1 .pomosda-advantages__media-number {
    top: 18px;
    left: -18px;
    color: #fff;
    background: var(--s04-green-dark);
}

/* =========================================================
   02 — POLAROID / BOARDING LIFE
   ========================================================= */
#section-04 .pomosda-advantages__feature--variant-2 {
    background: linear-gradient(125deg, #edf3e9 0%, #f7f8f2 62%, #fffaf0 100%);
    border: 1px solid rgba(0, 95, 82, .08);
}

#section-04 .pomosda-advantages__feature--variant-2 .pomosda-advantages__wave {
    left: -8%;
    bottom: -34px;
    width: 50%;
    opacity: .65;
}

#section-04 .pomosda-advantages__feature--variant-2::after {
    right: -32px;
    left: auto;
    bottom: 26px;
    width: 72px;
    height: 72px;
    background: #d9e4d4;
    box-shadow: -34px 22px 0 0 var(--s04-green);
}

#section-04 .pomosda-advantages__feature--variant-2 .pomosda-advantages__copy {
    padding: 38px 42px;
    border-radius: 26px;
    background: rgba(255,255,255,.72);
    box-shadow: inset 0 0 0 1px rgba(0,95,82,.08);
}

#section-04 .pomosda-advantages__feature--variant-2 .pomosda-advantages__media {
    height: var(--section04-media-height, 330px);
    width: min(100%, var(--section04-media-width, 400px));
    transform: rotate(-2.2deg);
}

#section-04 .pomosda-advantages__feature--variant-2 .pomosda-advantages__media img {
    padding: 12px 12px 48px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 55px rgba(42, 50, 45, .18);
}

#section-04 .pomosda-advantages__feature--variant-2 .pomosda-advantages__media::before {
    content: "";
    position: absolute;
    z-index: 8;
    top: -14px;
    left: 50%;
    width: 94px;
    height: 28px;
    transform: translateX(-50%) rotate(1.5deg);
    background: rgba(222, 205, 164, .72);
    box-shadow: 0 2px 5px rgba(0,0,0,.05);
}

#section-04 .pomosda-advantages__feature--variant-2 .pomosda-advantages__media-accent {
    right: -32px;
    bottom: -26px;
    width: 96px;
    height: 96px;
    border: 16px solid rgba(255, 202, 10, .75);
    border-radius: 50%;
}

#section-04 .pomosda-advantages__feature--variant-2 .pomosda-advantages__media-number {
    right: 18px;
    bottom: 12px;
    color: var(--s04-green-dark);
    background: #fff3be;
}

/* =========================================================
   03 — ARCH / LANGUAGE PORTAL
   ========================================================= */
#section-04 .pomosda-advantages__feature--variant-3 {
    background: transparent;
    border-top: 1px solid rgba(0, 95, 82, .12);
    border-bottom: 1px solid rgba(0, 95, 82, .12);
    border-radius: 0;
}

#section-04 .pomosda-advantages__feature--variant-3 .pomosda-advantages__wave {
    display: none;
}

#section-04 .pomosda-advantages__feature--variant-3::after {
    left: -18px;
    bottom: 50%;
    width: 120px;
    height: 120px;
    transform: translateY(70%);
    background: rgba(0,95,82,.05);
    box-shadow: none;
    border: 1px solid rgba(0,95,82,.13);
}

#section-04 .pomosda-advantages__feature--variant-3 .pomosda-advantages__copy {
    padding-left: 26px;
    border-left: 5px solid var(--s04-yellow);
}

#section-04 .pomosda-advantages__feature--variant-3 .pomosda-advantages__media {
    height: var(--section04-media-height, 330px);
    width: min(100%, var(--section04-media-width, 400px));
}

#section-04 .pomosda-advantages__feature--variant-3 .pomosda-advantages__media::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -12px;
    border: 2px solid #89a983;
    border-radius: 50% 50% 28px 28px / 42% 42% 20px 20px;
}

#section-04 .pomosda-advantages__feature--variant-3 .pomosda-advantages__media img {
    border-radius: 50% 50% 24px 24px / 42% 42% 18px 18px;
    box-shadow: 0 22px 52px rgba(0, 67, 58, .15);
}

#section-04 .pomosda-advantages__feature--variant-3 .pomosda-advantages__media-accent {
    right: -42px;
    top: 22%;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--s04-yellow);
    opacity: .80;
}

#section-04 .pomosda-advantages__feature--variant-3 .pomosda-advantages__media-number {
    left: -4px;
    bottom: 18px;
    color: #fff;
    background: var(--s04-green);
}

/* =========================================================
   04 — CINEMATIC / PRACTICAL SKILLS
   ========================================================= */
#section-04 .pomosda-advantages__feature--variant-4 {
    background: var(--s04-green-dark);
    color: #fff;
    border-radius: 38px 38px 90px 38px;
    box-shadow: 0 30px 70px rgba(0, 70, 61, .13);
}

#section-04 .pomosda-advantages__feature--variant-4 .pomosda-advantages__wave,
#section-04 .pomosda-advantages__feature--variant-4::after,
#section-04 .pomosda-advantages__feature--variant-4 .pomosda-advantages__dots {
    display: none;
}

#section-04 .pomosda-advantages__feature--variant-4 .pomosda-advantages__copy h3 span {
    color: #ffdc51;
}

#section-04 .pomosda-advantages__feature--variant-4 .pomosda-advantages__copy h3 strong,
#section-04 .pomosda-advantages__feature--variant-4 .pomosda-advantages__copy p {
    color: #fff;
}

#section-04 .pomosda-advantages__feature--variant-4 .pomosda-advantages__copy p {
    opacity: .84;
}

#section-04 .pomosda-advantages__feature--variant-4 .pomosda-advantages__cta {
    background: #ffca0a;
}

#section-04 .pomosda-advantages__feature--variant-4 .pomosda-advantages__media {
    height: var(--section04-media-height, 330px);
    width: min(100%, calc(var(--section04-media-width, 400px) + 30px));
}

#section-04 .pomosda-advantages__feature--variant-4 .pomosda-advantages__media::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -11px;
    border: 2px solid rgba(255,255,255,.52);
    border-radius: 30px;
}

#section-04 .pomosda-advantages__feature--variant-4 .pomosda-advantages__media img {
    border-radius: 24px;
    box-shadow: 0 22px 56px rgba(0,0,0,.24);
}

#section-04 .pomosda-advantages__feature--variant-4 .pomosda-advantages__media-accent {
    left: -34px;
    top: -34px;
    width: 96px;
    height: 96px;
    border-radius: 28px;
    background:
        radial-gradient(circle, rgba(255,220,81,.92) 2px, transparent 2.4px);
    background-size: 13px 13px;
}

#section-04 .pomosda-advantages__feature--variant-4 .pomosda-advantages__media-number {
    right: 14px;
    top: 14px;
    color: var(--s04-green-dark);
    background: #ffdc51;
}

/* Hide old generic dot decoration where it conflicts with unique compositions. */
#section-04 .pomosda-advantages__feature--variant-1 .pomosda-advantages__dots,
#section-04 .pomosda-advantages__feature--variant-2 .pomosda-advantages__dots,
#section-04 .pomosda-advantages__feature--variant-3 .pomosda-advantages__dots {
    opacity: .22;
}


/* =========================================================
   Section 04 — Motion R11 FIX
   Motion is animation-on-trigger, never layout-affecting while idle.
   ========================================================= */

#section-04 .pomosda-advantages__heading,
#section-04 .pomosda-advantages__feature,
#section-04 .pomosda-advantages__copy,
#section-04 .pomosda-advantages__media,
#section-04 .pomosda-advantages__media img,
#section-04 .pomosda-advantages__media::before,
#section-04 .pomosda-advantages__media-accent,
#section-04 .pomosda-advantages__media-number {
    backface-visibility: hidden;
}

/* Heading — deliberate two-beat entrance. */
#section-04 .pomosda-advantages__heading.s04-animate-heading h2 > span {
    animation: s04-r11-heading .72s cubic-bezier(.16,.82,.2,1) both;
}

#section-04 .pomosda-advantages__heading.s04-animate-heading h2 > span:nth-of-type(2) {
    animation-delay: .08s;
}

#section-04 .pomosda-advantages__heading.s04-animate-heading h2 > span:nth-of-type(3) {
    animation-delay: .16s;
}

#section-04 .pomosda-advantages__heading.s04-animate-heading::after {
    transform-origin: left center;
    animation: s04-r11-underline .72s cubic-bezier(.18,.82,.2,1) .25s both;
}

/* Shared copy rhythm. */
#section-04 .pomosda-advantages__feature.s04-animate .pomosda-advantages__copy h3,
#section-04 .pomosda-advantages__feature.s04-animate .pomosda-advantages__copy p,
#section-04 .pomosda-advantages__feature.s04-animate .pomosda-advantages__cta {
    animation: s04-r11-copy-up .66s cubic-bezier(.16,.82,.2,1) both;
}

#section-04 .pomosda-advantages__feature.s04-animate .pomosda-advantages__copy p {
    animation-delay: .10s;
}

#section-04 .pomosda-advantages__feature.s04-animate .pomosda-advantages__cta {
    animation-delay: .20s;
}

#section-04 .pomosda-advantages__feature.s04-animate .pomosda-advantages__dots {
    animation: s04-r11-dots .62s ease .14s both;
}

#section-04 .pomosda-advantages__feature.s04-animate .pomosda-advantages__media-number {
    animation: s04-r11-badge .55s cubic-bezier(.16,.9,.28,1.22) .62s both;
}

/* 01 — Editorial: image wipes open, frame draws after it. */
#section-04 .pomosda-advantages__feature--variant-1.s04-animate .pomosda-advantages__copy {
    animation: s04-r11-copy-left .72s cubic-bezier(.16,.82,.2,1) both;
}

#section-04 .pomosda-advantages__feature--variant-1.s04-animate .pomosda-advantages__media img {
    animation: s04-r11-editorial-image .92s cubic-bezier(.18,.82,.2,1) .08s both;
}

#section-04 .pomosda-advantages__feature--variant-1.s04-animate .pomosda-advantages__media::before {
    transform-origin: left top;
    animation: s04-r11-editorial-frame .72s cubic-bezier(.18,.82,.2,1) .34s both;
}

#section-04 .pomosda-advantages__feature--variant-1.s04-animate .pomosda-advantages__media-accent {
    animation: s04-r11-orb-pop .55s cubic-bezier(.16,.9,.28,1.22) .56s both;
}

/* 02 — Polaroid: visible drop + slight overshoot settle. */
#section-04 .pomosda-advantages__feature--variant-2.s04-animate .pomosda-advantages__copy {
    animation: s04-r11-copy-right .74s cubic-bezier(.16,.82,.2,1) .08s both;
}

#section-04 .pomosda-advantages__feature--variant-2.s04-animate .pomosda-advantages__media {
    animation: s04-r11-polaroid-drop 1.02s cubic-bezier(.13,.82,.2,1.1) both;
}

#section-04 .pomosda-advantages__feature--variant-2.s04-animate .pomosda-advantages__media::before {
    animation: s04-r11-tape .5s cubic-bezier(.16,.9,.28,1.15) .58s both;
}

#section-04 .pomosda-advantages__feature--variant-2.s04-animate .pomosda-advantages__media-accent {
    animation: s04-r11-ring-pop .55s cubic-bezier(.16,.9,.28,1.2) .68s both;
}

/* 03 — Portal: arch scales in while photo rises inside it. */
#section-04 .pomosda-advantages__feature--variant-3.s04-animate .pomosda-advantages__copy {
    animation: s04-r11-copy-left .72s cubic-bezier(.16,.82,.2,1) both;
}

#section-04 .pomosda-advantages__feature--variant-3.s04-animate .pomosda-advantages__media {
    animation: s04-r11-portal-shell .82s cubic-bezier(.16,.82,.2,1) both;
}

#section-04 .pomosda-advantages__feature--variant-3.s04-animate .pomosda-advantages__media img {
    animation: s04-r11-portal-image .88s cubic-bezier(.18,.82,.2,1) .10s both;
}

#section-04 .pomosda-advantages__feature--variant-3.s04-animate .pomosda-advantages__media-accent {
    animation: s04-r11-orb-pop .55s cubic-bezier(.16,.9,.28,1.2) .58s both,
               s04-r11-float 5.6s ease-in-out 1.35s infinite;
}

/* 04 — Cinematic: whole panel arrives, photo opens, then light sweep. */
#section-04 .pomosda-advantages__feature--variant-4 {
    overflow: hidden;
}

#section-04 .pomosda-advantages__feature--variant-4::before {
    content: "";
    position: absolute;
    z-index: 8;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(108deg, transparent 28%, rgba(255,255,255,.22) 49%, transparent 70%);
    transform: translateX(-145%);
    opacity: 0;
}

#section-04 .pomosda-advantages__feature--variant-4.s04-animate {
    animation: s04-r11-cinematic-panel .82s cubic-bezier(.16,.82,.2,1) both;
}

#section-04 .pomosda-advantages__feature--variant-4.s04-animate .pomosda-advantages__copy {
    animation: s04-r11-copy-right .72s cubic-bezier(.16,.82,.2,1) .12s both;
}

#section-04 .pomosda-advantages__feature--variant-4.s04-animate .pomosda-advantages__media img {
    animation: s04-r11-cinematic-image .9s cubic-bezier(.18,.82,.2,1) .12s both;
}

#section-04 .pomosda-advantages__feature--variant-4.s04-animate::before {
    animation: s04-r11-sweep 1.25s ease .72s both;
}

#section-04 .pomosda-advantages__feature--variant-4.s04-animate .pomosda-advantages__media-accent {
    animation: s04-r11-orb-pop .55s cubic-bezier(.16,.9,.28,1.2) .58s both;
}

/* CTA micro polish remains available after entrance. */
#section-04 .pomosda-advantages__cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

#section-04 .pomosda-advantages__cta::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -35%;
    bottom: -35%;
    left: -45%;
    width: 34%;
    transform: skewX(-18deg);
    background: rgba(255,255,255,.46);
    opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
    #section-04 .pomosda-advantages__cta:hover::after {
        opacity: 1;
        animation: s04-r11-cta-sheen .72s ease forwards;
    }
}

@keyframes s04-r11-heading {
    from { opacity: 0; transform: translateY(30px); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes s04-r11-underline {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes s04-r11-copy-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes s04-r11-copy-left {
    from { opacity: 0; transform: translateX(-42px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes s04-r11-copy-right {
    from { opacity: 0; transform: translateX(42px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes s04-r11-dots {
    from { opacity: 0; transform: scale(.55); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes s04-r11-badge {
    from { opacity: 0; transform: scale(.35) rotate(-16deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes s04-r11-editorial-image {
    0% { opacity: .15; clip-path: inset(0 100% 0 0 round 26px); transform: scale(1.06); }
    100% { opacity: 1; clip-path: inset(0 round 26px); transform: scale(1); }
}

@keyframes s04-r11-editorial-frame {
    from { opacity: 0; transform: translate(12px,12px) scale(.86); }
    to { opacity: 1; transform: translate(0,0) scale(1); }
}

@keyframes s04-r11-orb-pop {
    from { opacity: 0; transform: scale(.25) rotate(-20deg); }
    to { opacity: .92; transform: scale(1) rotate(0); }
}

@keyframes s04-r11-polaroid-drop {
    0% { opacity: 0; transform: translateY(-58px) rotate(-9deg) scale(.93); }
    72% { opacity: 1; transform: translateY(5px) rotate(-1deg) scale(1.01); }
    100% { opacity: 1; transform: translateY(0) rotate(-2.2deg) scale(1); }
}

@keyframes s04-r11-tape {
    from { opacity: 0; transform: translateX(-50%) rotate(8deg) scaleX(.15); }
    to { opacity: 1; transform: translateX(-50%) rotate(1.5deg) scaleX(1); }
}

@keyframes s04-r11-ring-pop {
    from { opacity: 0; transform: scale(.25) rotate(-24deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes s04-r11-portal-shell {
    from { opacity: .2; transform: scale(.88) translateY(25px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes s04-r11-portal-image {
    from { opacity: 0; clip-path: inset(100% 0 0 0); transform: scale(1.05); }
    to { opacity: 1; clip-path: inset(0); transform: scale(1); }
}

@keyframes s04-r11-cinematic-panel {
    from { opacity: .2; transform: translateY(38px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes s04-r11-cinematic-image {
    from { opacity: 0; clip-path: inset(0 0 100% 0 round 24px); transform: scale(1.055); }
    to { opacity: 1; clip-path: inset(0 round 24px); transform: scale(1); }
}

@keyframes s04-r11-sweep {
    0% { transform: translateX(-145%); opacity: 0; }
    18% { opacity: 1; }
    100% { transform: translateX(145%); opacity: 0; }
}

@keyframes s04-r11-float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes s04-r11-cta-sheen {
    from { transform: translateX(0) skewX(-18deg); }
    to { transform: translateX(470%) skewX(-18deg); }
}

@media (max-width: 760px) {
    #section-04 .pomosda-advantages__feature--variant-2.s04-animate .pomosda-advantages__media {
        animation-name: s04-r11-polaroid-drop-mobile;
    }

    #section-04 .pomosda-advantages__feature--variant-3.s04-animate .pomosda-advantages__media-accent {
        animation: s04-r11-orb-pop .5s cubic-bezier(.16,.9,.28,1.2) .5s both;
    }
}

@keyframes s04-r11-polaroid-drop-mobile {
    0% { opacity: 0; transform: translateY(-28px) rotate(-4deg) scale(.97); }
    100% { opacity: 1; transform: translateY(0) rotate(-1deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    #section-04 *,
    #section-04 *::before,
    #section-04 *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
