/* ===========================================================================
   DIGITAL MARKETING PAGE — "Where attention becomes growth" (prefix: dm-)
   Hub for the five marketing specialisations.
   UNIQUE PRESENTATION — nothing here mirrors other pages:
       · signal-field hero: animated equaliser bars + metric pills
       · gravity funnel: clip-path tiers with falling droplets
       · channel mixing desk: interactive faders (drag / hover lift)
       · proof meters: animated horizontal bars (no counters anywhere)
       · campaign flight plan: horizontal scroll-snap ribbon
       · marquee word band CTA
   Palette on theme: navy #080A2B · magenta #B217BA · violet #7B2FF7
   · blue #2A7BFF · cyan #43D2E0 · gold #F0A400 · Afacad (global).
   Loaded only by templates/digitalmarketing.html.
   =========================================================================== */

.dm-hero,
.dm-funnel,
.dm-desk,
.dm-proof,
.dm-plan,
.dm-cta {
    --dm-ink: #ffffff;
    --dm-mute: rgba(255, 255, 255, .74);
    --dm-faint: rgba(255, 255, 255, .46);
    --dm-line: rgba(255, 255, 255, .14);
    --dm-line-strong: rgba(255, 255, 255, .3);
    --dm-magenta: #b217ba;
    --dm-violet: #7b2ff7;
    --dm-blue: #2a7bff;
    --dm-cyan: #43d2e0;
    --dm-gold: #f0a400;
    --dm-navy: #080a2b;
    --dm-grad: linear-gradient(90deg, #b217ba 0%, #2a7bff 100%);
    --dm-wrap: min(88%, 1280px);
    --dm-ease: cubic-bezier(.22, .61, .36, 1);
}

.dm-wrap {
    width: var(--dm-wrap);
    margin-inline: auto;
}

/* ------------------------------ reveal --------------------------------- */
.dm-rise {
    opacity: 1;
    transform: none;
}

.js .dm-rise {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--dm-ease), transform .8s var(--dm-ease);
}

.js .dm-rise.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    .js .dm-rise,
    .js .dm-rise.is-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ------------------------------ typography ------------------------------ */
.dm-eyebrow {
    display: inline-block;
    font-size: .82rem;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--dm-gold);
    margin-bottom: 1.1rem;
}

.dm-head h2 {
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
    line-height: 1.06;
    font-weight: 700;
    margin-bottom: 1rem;
}

.dm-head h2 em {
    font-style: normal;
    background: var(--dm-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dm-head p {
    max-width: 58ch;
    color: var(--dm-mute);
    font-size: 1.12rem;
}

.dm-crumb {
    display: flex;
    gap: .55rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: .86rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--dm-faint);
    margin-bottom: 1.4rem;
}

.dm-crumb i {
    font-style: normal;
    color: var(--dm-line-strong);
}

.dm-crumb a:hover {
    color: var(--dm-cyan);
}

.dm-crumb b {
    color: var(--dm-cyan);
    font-weight: 600;
}

/* buttons */
.dm-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .95rem 1.9rem;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: transform .35s var(--dm-ease), box-shadow .35s var(--dm-ease), background .35s;
}

.dm-btn--fill {
    background: var(--dm-grad);
    color: #fff;
    box-shadow: 0 14px 38px rgba(178, 23, 186, .38);
}

.dm-btn--fill:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 52px rgba(42, 123, 255, .45);
}

.dm-btn--ghost {
    border: 1px solid var(--dm-line-strong);
    color: var(--dm-ink);
    background: rgba(255, 255, 255, .04);
}

.dm-btn--ghost:hover {
    transform: translateY(-3px);
    border-color: var(--dm-cyan);
    background: rgba(67, 210, 224, .12);
}

/* =========================== 1 · SIGNAL HERO =========================== */
.dm-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 11rem 0 6rem;
    background:
        radial-gradient(1000px 620px at 82% 12%, rgba(178, 23, 186, .3), transparent 60%),
        radial-gradient(820px 520px at 8% 90%, rgba(42, 123, 255, .24), transparent 58%),
        linear-gradient(165deg, #1c0a4d 0%, var(--dm-navy) 55%, #05061c 100%);
    overflow: hidden;
}

/* equaliser field */
.dm-hero__field {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    display: flex;
    align-items: flex-end;
    gap: 1.1%;
    padding-inline: 2%;
    opacity: .5;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 32%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 32%);
}

.dm-hero__field i {
    flex: 1;
    height: 30%;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, rgba(67, 210, 224, .85), rgba(42, 123, 255, .12));
    transform-origin: bottom;
    animation: dmEq 2.4s ease-in-out infinite;
}

.dm-hero__field i:nth-child(4n) {
    background: linear-gradient(180deg, rgba(178, 23, 186, .9), rgba(178, 23, 186, .1));
    animation-duration: 3.1s;
}

.dm-hero__field i:nth-child(4n+1) {
    animation-duration: 2s;
}

.dm-hero__field i:nth-child(4n+2) {
    background: linear-gradient(180deg, rgba(240, 164, 0, .8), rgba(240, 164, 0, .1));
    animation-duration: 2.8s;
}

.dm-hero__field i:nth-child(3n) {
    animation-delay: -.8s;
}

.dm-hero__field i:nth-child(5n) {
    animation-delay: -1.5s;
}

@keyframes dmEq {

    0%,
    100% {
        height: 16%;
    }

    50% {
        height: 82%;
    }
}

.dm-hero__glow {
    position: absolute;
    top: -22%;
    right: -12%;
    width: 56vw;
    height: 56vw;
    border-radius: 50%;
    background: conic-gradient(from 120deg,
            rgba(178, 23, 186, .3), rgba(42, 123, 255, .22), transparent 55%,
            rgba(240, 164, 0, .16), rgba(178, 23, 186, .3));
    filter: blur(70px);
    animation: dmSpin 26s linear infinite;
    pointer-events: none;
}

@keyframes dmSpin {
    to {
        transform: rotate(360deg);
    }
}

.dm-hero__in {
    position: relative;
}

.dm-hero__title {
    font-size: clamp(3rem, 6.6vw, 5.6rem);
    line-height: 1.02;
    font-weight: 700;
    margin-bottom: 1.6rem;
}

.dm-hero__title em {
    font-style: normal;
    background: linear-gradient(90deg, #ffd166, #ff8fae 55%, #7bd7ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dm-hero__sub {
    max-width: 56ch;
    font-size: 1.2rem;
    color: var(--dm-mute);
    margin-bottom: 2.2rem;
}

.dm-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3.2rem;
}

.dm-pills {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
}

.dm-pills li {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .85rem 1.35rem;
    border: 1px solid var(--dm-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: transform .35s var(--dm-ease), border-color .35s;
}

.dm-pills li:hover {
    transform: translateY(-4px);
    border-color: rgba(67, 210, 224, .55);
}

.dm-pills b {
    font-size: 1.05rem;
    letter-spacing: .04em;
}

.dm-pills span {
    font-size: .9rem;
    color: var(--dm-faint);
}

/* ========================= 2 · GRAVITY FUNNEL ========================== */
.dm-funnel {
    background: linear-gradient(180deg, #05061c 0%, #13093c 100%);
    padding: 7rem 0 8rem;
}

.dm-funnel .dm-head {
    margin-bottom: 3.6rem;
}

.dm-funnel__stage {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 4rem;
    align-items: center;
}

.dm-funnel__shape {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .9rem;
    padding: 1rem 0 2.6rem;
}

.dm-funnel__tier {
    width: var(--w);
    height: 78px;
    display: grid;
    place-items: center;
    clip-path: polygon(6% 0, 94% 0, 86% 100%, 14% 100%);
    background: linear-gradient(120deg,
            color-mix(in srgb, var(--c) 62%, transparent),
            color-mix(in srgb, var(--c) 18%, rgba(8, 10, 43, .7)));
    border-top: 1px solid color-mix(in srgb, var(--c) 70%, #fff);
    transition: transform .45s var(--dm-ease), filter .45s;
}

.dm-funnel__tier:hover {
    transform: scale(1.04);
    filter: brightness(1.2);
}

.dm-funnel__tier span {
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

/* falling droplets through the funnel */
.dm-drop {
    position: absolute;
    top: 0;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 16px 5px rgba(67, 210, 224, .55);
    opacity: 0;
    animation: dmFall 3.6s linear infinite;
    animation-delay: var(--d);
    pointer-events: none;
}

@keyframes dmFall {
    0% {
        transform: translateY(-16px) scale(.7);
        opacity: 0;
    }

    12% {
        opacity: 1;
    }

    86% {
        opacity: 1;
    }

    100% {
        transform: translateY(320px) scale(1.15);
        opacity: 0;
    }
}

.dm-funnel__notes {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.dm-funnel__notes li {
    padding: 1.35rem 1.6rem;
    border-left: 3px solid transparent;
    border-radius: 0 16px 16px 0;
    background: rgba(255, 255, 255, .045);
    transition: border-color .4s, background .4s, transform .4s var(--dm-ease);
}

.dm-funnel__notes li:nth-child(1) {
    border-left-color: var(--dm-magenta);
}

.dm-funnel__notes li:nth-child(2) {
    border-left-color: var(--dm-violet);
}

.dm-funnel__notes li:nth-child(3) {
    border-left-color: var(--dm-blue);
}

.dm-funnel__notes li:nth-child(4) {
    border-left-color: var(--dm-cyan);
}

.dm-funnel__notes li:hover {
    background: rgba(255, 255, 255, .08);
    transform: translateX(6px);
}

.dm-funnel__notes b {
    display: block;
    font-size: 1.22rem;
    margin-bottom: .35rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.dm-funnel__notes span {
    color: var(--dm-mute);
    line-height: 1.6;
}

/* ======================== 3 · CHANNEL MIXING DESK ====================== */
.dm-desk {
    background: linear-gradient(180deg, #13093c 0%, #0a0b2e 100%);
    padding: 7rem 0 8rem;
}

.dm-desk .dm-head {
    margin-bottom: 3.4rem;
}

.dm-desk__board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    padding: 2.2rem 1.9rem;
    border: 1px solid var(--dm-line-strong);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 30px 70px rgba(2, 3, 16, .5);
}

.dm-fader {
    --c: var(--dm-magenta);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .85rem;
    padding: 1.4rem 1rem 1.6rem;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: border-color .4s, background .4s;
}

.dm-fader:hover {
    border-color: color-mix(in srgb, var(--c) 55%, transparent);
    background: color-mix(in srgb, var(--c) 10%, transparent);
}

/* fader slot: knob slides with hover / focus */
.dm-fader__slot {
    position: relative;
    width: 56px;
    height: 170px;
    margin-bottom: .4rem;
}

.dm-fader__track {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 8px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
}

.dm-fader__track::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--lvl, 40%);
    border-radius: 999px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--c) 90%, #fff), var(--c));
    transition: height .6s var(--dm-ease);
}

.dm-fader__knob {
    position: absolute;
    left: 50%;
    top: calc(100% - var(--lvl, 40%));
    width: 40px;
    height: 26px;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #cfd6e6);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .45);
    transition: top .6s var(--dm-ease);
}

.dm-fader:hover .dm-fader__slot,
.dm-fader:focus-within .dm-fader__slot {
    --lvl: 88%;
}

.dm-fader h3 {
    font-size: 1.14rem;
    line-height: 1.25;
}

.dm-fader p {
    font-size: .93rem;
    color: var(--dm-mute);
    line-height: 1.55;
}

.dm-fader a {
    margin-top: auto;
    font-size: .95rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--c) 72%, #fff);
}

.dm-fader a:hover {
    color: #fff;
}

/* ============================ 4 · PROOF METERS ========================= */
.dm-proof {
    background:
        radial-gradient(860px 460px at 88% 8%, rgba(67, 210, 224, .12), transparent 55%),
        linear-gradient(180deg, #0a0b2e 0%, #140a38 100%);
    padding: 7rem 0;
}

.dm-proof .dm-head {
    margin-bottom: 3.2rem;
}

.dm-meters {
    display: flex;
    flex-direction: column;
    gap: 1.7rem;
}

.dm-meter__label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: .7rem;
}

.dm-meter__label b {
    font-size: 1.18rem;
}

.dm-meter__label span {
    font-size: .95rem;
    color: var(--dm-faint);
    letter-spacing: .04em;
}

.dm-meter__bar {
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    overflow: hidden;
}

.dm-meter__bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--dm-magenta), var(--dm-blue) 70%, var(--dm-cyan));
    box-shadow: 0 0 22px rgba(67, 210, 224, .4);
    transition: width 1.5s var(--dm-ease);
}

.dm-meter:nth-child(2) .dm-meter__bar span {
    background: linear-gradient(90deg, var(--dm-gold), var(--dm-magenta) 80%);
}

.dm-meter:nth-child(3) .dm-meter__bar span {
    background: linear-gradient(90deg, var(--dm-cyan), var(--dm-blue) 80%);
}

.dm-meter:nth-child(4) .dm-meter__bar span {
    background: linear-gradient(90deg, var(--dm-violet), var(--dm-magenta) 80%);
}

.dm-proof__notes {
    list-style: none;
    margin-top: 2.8rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}

.dm-proof__notes li {
    padding: 1.25rem 1.45rem;
    border: 1px solid var(--dm-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .045);
    color: var(--dm-mute);
    line-height: 1.6;
    position: relative;
    padding-left: 2.6rem;
}

.dm-proof__notes li::before {
    content: "\2713";
    position: absolute;
    left: 1.1rem;
    top: 1.25rem;
    color: var(--dm-cyan);
    font-weight: 700;
}

/* ========================= 5 · CAMPAIGN FLIGHT PLAN ==================== */
.dm-plan {
    background: linear-gradient(180deg, #140a38 0%, #0a0b2e 100%);
    padding: 7rem 0 8rem;
    overflow: hidden;
}

.dm-plan .dm-head {
    margin-bottom: 3rem;
}

.dm-plan__ribbon {
    display: flex;
    gap: 1.4rem;
    width: var(--dm-wrap);
    margin-inline: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1.2rem .4rem 2.2rem;
    outline: none;
}

.dm-plan__ribbon:focus-visible {
    box-shadow: 0 0 0 2px var(--dm-cyan);
    border-radius: 18px;
}

.dm-phase {
    --c: var(--dm-magenta);
    flex: 0 0 clamp(280px, 30%, 400px);
    scroll-snap-align: start;
    padding: 2.2rem 1.9rem;
    border-radius: 22px;
    border: 1px solid var(--dm-line);
    background:
        linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, transparent), rgba(255, 255, 255, .03));
    transition: transform .45s var(--dm-ease), border-color .45s, box-shadow .45s;
}

.dm-phase:hover {
    transform: translateY(-8px);
    border-color: color-mix(in srgb, var(--c) 60%, transparent);
    box-shadow: 0 26px 60px color-mix(in srgb, var(--c) 20%, rgba(2, 3, 14, .55));
}

.dm-phase__phase {
    display: inline-block;
    font-size: .82rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--c) 82%, #fff);
    margin-bottom: 1.1rem;
}

.dm-phase h3 {
    font-size: 1.55rem;
    margin-bottom: .8rem;
}

.dm-phase p {
    color: var(--dm-mute);
    line-height: 1.65;
}

/* ============================ 6 · MARQUEE CTA ========================= */
.dm-cta {
    background: #0d0726;
    padding: 0 0 7rem;
}

.dm-cta__marquee {
    overflow: hidden;
    border-block: 1px solid var(--dm-line);
    padding: 1.15rem 0;
    margin-bottom: 5.5rem;
    background: rgba(255, 255, 255, .03);
}

.dm-cta__track {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    width: max-content;
    animation: dmSlide 26s linear infinite;
    white-space: nowrap;
}

.dm-cta__track span {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dm-faint);
}

.dm-cta__track span:nth-child(4n+1) {
    color: var(--dm-ink);
}

.dm-cta__track i {
    font-style: normal;
    color: var(--dm-gold);
}

@keyframes dmSlide {
    to {
        transform: translateX(-50%);
    }
}

.dm-cta__in {
    text-align: center;
}

.dm-cta__in h2 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.dm-cta__in h2 em {
    font-style: normal;
    background: linear-gradient(90deg, #ffd166, #7bd7ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dm-cta__in p {
    color: var(--dm-mute);
    font-size: 1.18rem;
    margin-bottom: 2.3rem;
}

.dm-cta__row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (prefers-reduced-motion: reduce) {
    .dm-hero__field i,
    .dm-hero__glow,
    .dm-drop,
        .dm-cta__track {
        animation: none;
    }
}

/* ============================== RESPONSIVE ============================= */
@media (max-width: 1100px) {
    .dm-funnel__stage {
        grid-template-columns: 1fr;
    }

    .dm-desk__board {
        grid-template-columns: repeat(3, 1fr);
    }

    .dm-proof__notes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .dm-hero {
        padding: 9.5rem 0 4.5rem;
    }

    .dm-pills li {
        flex: 1 1 44%;
    }

    .dm-desk__board {
        grid-template-columns: 1fr;
        padding: 1.4rem 1.1rem;
    }

    .dm-fader__slot {
        height: 120px;
    }

    .dm-phase {
        flex-basis: 82%;
    }

    .dm-cta__marquee {
        margin-bottom: 3.6rem;
    }
}

/* ========================= LIGHT THEME MIX ============================
   Alternating light / dark rhythm (like the home page's light compliance
   band). Light sections carry the same brand gradients against dark ink.
   Dark sections stay: hero, mixing desk, flight plan.
   ===================================================================== */
.dm-funnel,
.dm-proof,
.dm-cta {
    --dm-ink: #17093c;
    --dm-mute: rgba(23, 9, 60, .74);
    --dm-faint: rgba(23, 9, 60, .5);
    --dm-line: rgba(23, 9, 60, .12);
    --dm-line-strong: rgba(23, 9, 60, .28);
    color: var(--dm-ink);
}

.dm-funnel {
    background: linear-gradient(180deg, #f7f2fd 0%, #ece2f8 100%);
}

.dm-proof {
    background:
        radial-gradient(860px 460px at 88% 8%, rgba(67, 210, 224, .18), transparent 55%),
        linear-gradient(180deg, #ece2f8 0%, #f3edfc 100%);
}

.dm-cta {
    background: #f3edfc;
}

.dm-funnel .dm-eyebrow,
.dm-proof .dm-eyebrow {
    color: #a87400;
}

/* funnel on light — tiers stay saturated, keep white type on them */
.dm-funnel__tier span {
    color: #fff;
}

.dm-drop {
    background: var(--dm-blue);
    box-shadow: 0 0 16px 5px rgba(42, 123, 255, .4);
}

.dm-funnel__notes li {
    background: rgba(23, 9, 60, .05);
}

.dm-funnel__notes li:hover {
    background: rgba(23, 9, 60, .09);
}

/* proof on light */
.dm-meter__bar {
    background: rgba(23, 9, 60, .1);
}

.dm-proof__notes li {
    background: #fff;
    border-color: rgba(23, 9, 60, .1);
}

.dm-proof__notes li::before {
    color: var(--dm-blue);
}

/* cta on light */
.dm-cta__marquee {
    background: rgba(23, 9, 60, .03);
}

.dm-cta__track span:nth-child(4n+1) {
    color: var(--dm-ink);
}

.dm-cta__track i {
    color: #e09400;
}

.dm-cta__in h2 em {
    background: linear-gradient(90deg, #e09400, #2a7bff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
