/* ==========================================================================
   POLY — Introduction & trust
   A light brand stage: a white canvas lifted by two whisper soft accent
   washes, a layered photo collage with floating white notes, white pillar
   cards and one oversized brand pill call to action. Everything here is
   custom to this section — no shared card, grid or button primitive is
   reused, so the block reads as a designed moment.
   ========================================================================== */

.poly-intro {
    --poly-intro-surface: var(--poly-white);
    --poly-intro-surface-soft: var(--poly-mist);
    --poly-intro-edge: var(--poly-line);
    --poly-intro-edge-strong: var(--poly-line-strong);
    --poly-intro-text: var(--poly-body);
    --poly-intro-radius: 22px;
    /* One shared depth recipe so every raised element casts the same light. */
    --poly-intro-shadow: 0 26px 54px -34px rgba(16, 23, 58, .34);
    --poly-intro-shadow-lg: 0 38px 70px -36px rgba(16, 23, 58, .42);

    position: relative;
    isolation: isolate;
    color: var(--poly-intro-text);
    background:
        radial-gradient(118% 86% at 16% 4%, rgba(47, 134, 201, .08) 0%, transparent 56%),
        radial-gradient(96% 78% at 86% 96%, rgba(57, 67, 155, .07) 0%, transparent 60%),
        var(--poly-intro-surface);
}

.poly-intro__inner {
    position: relative;
    z-index: 1;
    background: transparent;
}

/* -------------------------------------------------------------------- lead */

.poly-intro__lead {
    max-width: min(100%, 1000px);
    margin-inline: auto;
    text-align: center;
}

/* The bare eyebrow with the rule-and-shine mark, exactly as the hero sets it.
   Typography and the mark come from poly-base.css — only the spacing under it
   is local, because the title carries its own top margin here. */
.poly-intro__eyebrow {
    margin: 0;
}

/* Set like the hero title: plain line blocks on the shared title leading, no
   extra gap, and the closing line on the solid brand. */
.poly-intro__title {
    margin-top: 1.6rem;
}

.poly-intro__line { display: block; }

.poly-intro__line:last-child {
    color: var(--poly-brand);
}

.poly-intro__body {
    max-width: 54ch;
    margin: 1.75rem auto 0;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.78;
    color: var(--poly-body);
}

/* ----------------------------------------------------------------- collage */

.poly-intro__collage {
    position: relative;
    width: min(100%, 1010px);
    margin: clamp(48px, 6vw, 86px) auto 0;
    aspect-ratio: 16 / 9.6;
}

.poly-intro__halo {
    position: absolute;
    left: 50%;
    top: 46%;
    width: 74%;
    aspect-ratio: 1;
    translate: -50% -50%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 188, 232, .34) 0%, rgba(57, 67, 155, .12) 46%, transparent 70%);
    filter: blur(70px);
    z-index: 0;
}

.poly-intro__frame {
    position: absolute;
    overflow: hidden;
    border-radius: var(--poly-intro-radius);
    background: var(--poly-intro-surface-soft);
    /* A white ring keeps the overlapping frames readable as separate pictures
       now the canvas behind them is white too. */
    box-shadow:
        0 0 0 1px rgba(16, 23, 58, .06),
        0 0 0 6px var(--poly-white),
        var(--poly-intro-shadow-lg);
    transition: transform .7s var(--poly-ease-out), box-shadow .7s var(--poly-ease-out);
}

/* `.poly .` outranks Elementor's own `.elementor img { height: auto }`. */
.poly .poly-intro__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--poly-ease-out);
}

.poly-intro__frame--main {
    left: 50%;
    top: 0;
    width: 58%;
    height: 86%;
    translate: -50% 0;
    z-index: 3;
    border-radius: calc(var(--poly-intro-radius) + 6px);
}

.poly-intro__frame--a {
    left: 0;
    top: 9%;
    width: 30%;
    height: 50%;
    rotate: -3.2deg;
    z-index: 2;
}

.poly-intro__frame--b {
    right: 0;
    bottom: 1%;
    width: 32%;
    height: 54%;
    rotate: 2.6deg;
    z-index: 4;
}

.poly-intro__collage:hover .poly-intro__frame--main { transform: translateY(-6px); }
.poly-intro__collage:hover .poly-intro__frame--a { transform: translate(-8px, 4px); }
.poly-intro__collage:hover .poly-intro__frame--b { transform: translate(8px, -4px); }
.poly-intro__collage:hover .poly-intro__frame img { transform: scale(1.045); }

/* Light sweeping across the main picture, keeps the collage from going flat. */
.poly-intro__sheen {
    position: absolute;
    inset: 0;
    background: linear-gradient(122deg, rgba(255, 255, 255, .26) 0%, transparent 36%, transparent 68%, rgba(16, 23, 58, .18) 100%);
    pointer-events: none;
}

.poly-intro__tag {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: .45em 1em;
    border: 1px solid var(--poly-intro-edge);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--poly-title);
}

/* -------------------------------------------------------- floating cards UI */

.poly-intro__note {
    position: absolute;
    left: 2%;
    bottom: 1%;
    z-index: 5;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: .9rem;
    width: min(42%, 360px);
    padding: 1.15rem 1.3rem;
    border: 1px solid var(--poly-intro-edge);
    border-radius: 18px;
    background: var(--poly-white);
    box-shadow: var(--poly-intro-shadow);
    animation: poly-intro-float 7.5s var(--poly-ease) infinite alternate;
}

.poly-intro__note-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: linear-gradient(150deg, var(--poly-brand), var(--poly-accent));
    color: var(--poly-white);
}

.poly-intro__note-icon .poly-icon { width: 18px; height: 18px; }

.poly-intro__note-title {
    display: block;
    font-family: var(--poly-font-display);
    font-size: .9375rem;
    font-weight: 600;
    letter-spacing: -.012em;
    color: var(--poly-title);
}

.poly-intro__note-text {
    display: block;
    margin-top: .3rem;
    font-size: .8125rem;
    line-height: 1.55;
    color: var(--poly-muted);
}

.poly-intro__stat {
    position: absolute;
    right: 1%;
    top: 3%;
    z-index: 5;
    display: grid;
    gap: .2rem;
    width: min(30%, 210px);
    padding: 1.05rem 1.2rem;
    border: 1px solid var(--poly-intro-edge);
    border-radius: 18px;
    background: var(--poly-white);
    box-shadow: var(--poly-intro-shadow);
    animation: poly-intro-float 9s var(--poly-ease) -3s infinite alternate;
}

.poly-intro__stat-value {
    font-family: var(--poly-font-display);
    font-size: clamp(1.6rem, 2.6vw, 2.15rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--poly-brand);
}

.poly-intro__stat-label {
    font-size: .75rem;
    line-height: 1.45;
    color: var(--poly-muted);
}

@keyframes poly-intro-float {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(0, -12px, 0); }
}

/* ----------------------------------------------------------------- pillars */

.poly-intro__pillars {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: clamp(56px, 7vw, 96px);
}

.poly-intro__pillar {
    position: relative;
    overflow: hidden;
    padding: clamp(22px, 2.2vw, 30px);
    border: 1px solid var(--poly-intro-edge);
    border-radius: var(--poly-intro-radius);
    background: var(--poly-white);
    box-shadow: 0 18px 40px -34px rgba(16, 23, 58, .3);
    transition: transform .5s var(--poly-ease-out), border-color .5s var(--poly-ease),
                box-shadow .5s var(--poly-ease);
}

/* Accent wash that rises out of the bottom edge on hover. */
.poly-intro__pillar::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 100%;
    background: linear-gradient(0deg, rgba(47, 134, 201, .12), transparent 62%);
    opacity: 0;
    transition: opacity .5s var(--poly-ease);
    pointer-events: none;
}

.poly-intro__pillar:hover {
    transform: translateY(-6px);
    border-color: rgba(47, 134, 201, .42);
    box-shadow: var(--poly-intro-shadow);
}

.poly-intro__pillar:hover::after { opacity: 1; }

.poly-intro__pillar > * { position: relative; z-index: 1; }

.poly-intro__pillar-index {
    position: absolute;
    right: clamp(18px, 2vw, 26px);
    top: clamp(16px, 1.8vw, 22px);
    z-index: 0;
    font-family: var(--poly-font-display);
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.04em;
    color: rgba(16, 23, 58, .07);
}

.poly-intro__pillar-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 1.2rem;
    border-radius: 13px;
    background: var(--poly-intro-surface-soft);
    border: 1px solid var(--poly-intro-edge);
    color: var(--poly-brand);
    transition: background-color .45s var(--poly-ease), border-color .45s var(--poly-ease),
                color .45s var(--poly-ease);
}

.poly-intro__pillar:hover .poly-intro__pillar-icon {
    background: var(--poly-brand);
    border-color: transparent;
    color: var(--poly-white);
}

.poly-intro__pillar-icon .poly-icon { width: 20px; height: 20px; }

.poly-intro__pillar-title {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -.014em;
    color: var(--poly-title);
}

.poly-intro__pillar-text {
    margin-top: .6rem;
    font-size: .875rem;
    line-height: 1.62;
    color: var(--poly-body);
}

/* --------------------------------------------------------------------- cta */

.poly-intro__cta {
    margin-top: clamp(44px, 5vw, 68px);
    text-align: center;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1023px) {
    .poly-intro__pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* Tablet: give the collage more height so the floating cards can sit clear
       of the main picture instead of covering it. */
    .poly-intro__collage { aspect-ratio: 16 / 11.4; }
    .poly-intro__frame--main { width: 62%; height: 76%; }
    .poly-intro__frame--a { top: 6%; height: 46%; }
    .poly-intro__frame--b { width: 34%; height: 48%; }

    .poly-intro__note {
        left: 0;
        bottom: 0;
        width: min(50%, 300px);
        padding: 1rem 1.1rem;
    }

    .poly-intro__note-text { font-size: .78125rem; }
    .poly-intro__stat { right: 0; top: 0; width: min(32%, 186px); }
}

@media (max-width: 767px) {
    .poly-intro__collage {
        aspect-ratio: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .poly-intro__halo { top: 34%; width: 110%; }

    .poly-intro__frame,
    .poly-intro__note,
    .poly-intro__stat {
        position: static;
        width: auto;
        translate: none;
        rotate: none;
        animation: none;
    }

    /* Stacked rather than overlapping, so the white separation ring is no
       longer doing any work and only adds visual weight. */
    .poly-intro__frame {
        box-shadow:
            0 0 0 1px rgba(16, 23, 58, .06),
            var(--poly-intro-shadow);
    }

    /* Main picture leads, the two satellites share the row beneath it. */
    .poly-intro__frame--main {
        order: -1;
        grid-column: 1 / -1;
        aspect-ratio: 4 / 3;
        height: auto;
    }

    .poly-intro__frame--a,
    .poly-intro__frame--b {
        aspect-ratio: 3 / 4;
        height: auto;
    }

    .poly-intro__frame--a { grid-column: 1; }
    .poly-intro__frame--b { grid-column: 2; }

    .poly-intro__note { grid-column: 1 / -1; }

    .poly-intro__stat {
        grid-column: 1 / -1;
        grid-auto-flow: column;
        grid-template-columns: auto minmax(0, 1fr);
        justify-content: start;
        align-items: center;
        gap: .8rem;
        width: 100%;
    }
}

@media (max-width: 519px) {
    .poly-intro__pillars { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .poly-intro__note,
    .poly-intro__stat { animation: none; }
}
