/* ================================================================
   KANOON MITRA SOLUTIONS — LABOUR LAW COMPLIANCE PORTAL — MOTION SYSTEM
   Retheme: flat, architectural (Modernist). Kept class names for JS
   compatibility (motion-premium.js only toggles classes / sets CSS vars);
   removed gradients, blobs, grain, tilt, spotlight, magnetic, gradient-text,
   ring-spin — none of that belongs in a flat, ruled, Archivo system.
   ================================================================ */

:root {
    --pm-ease: cubic-bezier(.2,.8,.2,1);
}

/* ---------- Scroll-triggered reveals (kept — simple fade-up, no blur/scale) ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s var(--pm-ease), transform .5s var(--pm-ease);
    transition-delay: calc(var(--pm-i, 0) * 40ms);
}
[data-reveal].pm-in-view { opacity: 1; transform: translateY(0); }
[data-reveal="scale"] { transform: translateY(16px); }
[data-reveal="scale"].pm-in-view { transform: translateY(0); }
[data-reveal="blur"] { transform: translateY(16px); }
[data-reveal="blur"].pm-in-view { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Kinetic word-split headline (no blur — a flat fade/rise only) ---------- */
.pm-kinetic { display: block; }
.pm-kinetic .pm-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(14px);
}
.pm-kinetic.pm-play .pm-word {
    animation: pm-word-in .45s var(--pm-ease) forwards;
    animation-delay: calc(var(--pm-i, 0) * 35ms);
}
@keyframes pm-word-in { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    .pm-kinetic .pm-word { opacity: 1; transform: none; animation: none; }
}

/* ---------- Atmosphere / grain — disabled (flat system has no ambient gradients) ---------- */
.pm-atmosphere, .pm-blob, .pm-grain { display: none; }

/* ---------- "Gradient text" — flat accent color instead ---------- */
.pm-gradient-text, .pm-gradient-text .pm-word {
    background: none; -webkit-background-clip: initial; background-clip: initial;
    color: var(--gold); animation: none;
}

/* ---------- Section accent underline — a solid 2px rule, no draw-in sweep ---------- */
.pm-underline { position: relative; display: inline-block; }
.pm-underline::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
    background: var(--gold);
}

/* ---------- Buttons / cards — no lift, no shine, no shadow-bloom ---------- */
.pm-btn-premium { position: relative; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.pm-btn-premium::before { display: none; }
.pm-card-premium { transition: border-color .2s ease; }
.pm-card-premium:hover { border-color: var(--gold); }

/* ---------- Numbered process / methodology steps ---------- */
.pm-process { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px; counter-reset: pm-step; }
.pm-process-step { position: relative; padding: 20px; background: var(--white); border: 1px solid var(--border); }
.pm-process-step .pm-step-num {
    font-family: 'Archivo', sans-serif; font-size: 40px; font-weight: 800; color: var(--gold);
    line-height: 1; margin-bottom: 14px; display: block;
}
.pm-process-step h3 { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 15.5px; color: var(--ink); margin-bottom: 8px; }
.pm-process-step p { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.pm-process-step::after { display: none; }

/* ---------- Capability pillar cards ---------- */
.pm-pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2px; }
.pm-pillar {
    background: var(--white); border: 1px solid var(--border);
    padding: 26px 24px; position: relative;
}
.pm-pillar .icon { font-size: 26px; margin-bottom: 10px; }
.pm-pillar .pm-pillar-count {
    position: absolute; top: 20px; right: 22px; font-family: 'Archivo', sans-serif;
    font-size: 22px; font-weight: 800; color: var(--gold);
}
.pm-pillar h3 { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 15px; color: var(--ink); margin-bottom: 6px; padding-right: 40px; }
.pm-pillar p { font-size: 12.5px; color: var(--muted); line-height: 1.65; margin-bottom: 12px; }
.pm-pillar .pm-pillar-note { font-size: 10.5px; color: var(--gold-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }

/* ---------- Stat band with count-up numbers ---------- */
.pm-stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2px; }
.pm-stat-band .stat { text-align: left; padding: 12px 0; border-top: 2px solid var(--gold); }
.pm-stat-band .stat .num { font-family: 'Archivo', sans-serif; font-size: 34px; font-weight: 800; color: #fff; }
.pm-stat-band .stat .lbl { font-size: 10px; letter-spacing: .8px; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 4px; }

/* ---------- Pain-point / problem cards ---------- */
.pm-pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px; }
.pm-pain-card { background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--red); padding: 22px; }
.pm-pain-card .icon { font-size: 22px; margin-bottom: 10px; }
.pm-pain-card h3 { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 14.5px; color: var(--ink); margin-bottom: 6px; }
.pm-pain-card p { font-size: 12px; color: var(--muted); line-height: 1.65; }

/* ---------- Scroll progress bar — flat accent, no glow ---------- */
.pm-scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: var(--gold);
    z-index: 9999; transition: width .12s linear; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .pm-scroll-progress { display: none; } }

/* ---------- 3D tilt / magnetic / spotlight / ring — disabled (skeuomorphic effects, not part
   of a flat system); JS may still set the custom properties harmlessly, no visual effect ---------- */
.pm-tilt, .pm-tilt:hover, .pm-tilt.pm-tilt-active { transform: none !important; transition: none; }
.pm-magnetic { transform: none !important; }
.pm-spotlight::after { display: none; }
.pm-ring::before { display: none; }

/* ---------- Scroll-triggered grid reveal ---------- */
.pm-scroll-reveal > * {
    opacity: 0; transform: translateY(16px);
    transition: opacity .4s var(--pm-ease), transform .4s var(--pm-ease);
}
.pm-scroll-reveal.pm-in-view > * { opacity: 1; transform: translateY(0); }
.pm-scroll-reveal.pm-in-view > *:nth-child(1) { transition-delay: .02s; }
.pm-scroll-reveal.pm-in-view > *:nth-child(2) { transition-delay: .06s; }
.pm-scroll-reveal.pm-in-view > *:nth-child(3) { transition-delay: .10s; }
.pm-scroll-reveal.pm-in-view > *:nth-child(4) { transition-delay: .14s; }
.pm-scroll-reveal.pm-in-view > *:nth-child(5) { transition-delay: .18s; }
.pm-scroll-reveal.pm-in-view > *:nth-child(n+6) { transition-delay: .22s; }
@media (prefers-reduced-motion: reduce) { .pm-scroll-reveal > * { opacity: 1; transform: none; transition: none; } }

/* ---------- Section divider — solid 2px rule, no glow sweep ---------- */
.pm-divider { position: relative; height: 2px; max-width: 140px; margin: 0; background: var(--gold); }
.pm-divider::after { display: none; }

.pm-mesh-soft { display: none; }
