/* ============================================================================
   CRM-Publishing — Realistic Parallax Publishing Process (#journey)
   ============================================================================ */

.pp-section {
    position: relative;
    overflow: clip;
    background:
        radial-gradient(ellipse 80% 55% at 18% 22%, rgba(92, 14, 26, 0.34) 0%, transparent 65%),
        radial-gradient(ellipse 70% 55% at 85% 78%, rgba(229, 193, 88, 0.08) 0%, transparent 62%),
        linear-gradient(180deg, rgba(10, 1, 3, 0.35) 0%, rgba(16, 3, 6, 0.72) 50%, rgba(10, 1, 3, 0.45) 100%);
}

/* Sticky left column that follows scroll until the last process step */
@media (min-width: 1024px) {
    .pp-sticky-col {
        position: sticky;
        top: 6.5rem;
        align-self: start;
    }
}

/* ---------- Multi-layer Parallax Backdrop ---------- */
.pp-parallax-backdrop {
    position: absolute;
    inset: -12% 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.pp-parallax-layer {
    position: absolute;
    inset: 0;
    will-change: transform;
}

/* Soft editorial grid lines for architectural depth */
.pp-grid-lines {
    background-image:
        linear-gradient(to right, rgba(229, 193, 88, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(229, 193, 88, 0.035) 1px, transparent 1px);
    background-size: 96px 96px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 35%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 35%, transparent 100%);
}

/* Ambient gold/crimson parallax orbs */
.pp-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(80px);
    opacity: 0.45;
}

.pp-orb-1 {
    top: 8%;
    left: -6%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(229, 193, 88, 0.16) 0%, transparent 70%);
}

.pp-orb-2 {
    bottom: 6%;
    right: -4%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(138, 18, 36, 0.34) 0%, transparent 70%);
}

/* Giant watermark numeral drifting in deep parallax */
.pp-watermark {
    position: absolute;
    right: 4%;
    top: 12%;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(11rem, 24vw, 22rem);
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(229, 193, 88, 0.075);
    user-select: none;
    transition: opacity 0.45s ease;
}

/* Floating gold dust motes */
.pp-mote {
    position: absolute;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(255, 229, 150, 0.85) 0%, rgba(229, 193, 88, 0) 70%);
    opacity: 0.45;
    animation: pp-float 9s ease-in-out infinite;
}

.pp-mote-1 { top: 18%; left: 12%; width: 5px; height: 5px; animation-delay: 0s; }
.pp-mote-2 { top: 44%; left: 46%; width: 4px; height: 4px; animation-delay: -2.4s; }
.pp-mote-3 { top: 68%; left: 26%; width: 6px; height: 6px; animation-delay: -5.1s; }
.pp-mote-4 { top: 28%; right: 16%; width: 4px; height: 4px; animation-delay: -3.7s; }
.pp-mote-5 { top: 76%; right: 10%; width: 5px; height: 5px; animation-delay: -6.8s; }

@keyframes pp-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.25; }
    50%      { transform: translate3d(0, -18px, 0) scale(1.25); opacity: 0.65; }
}

/* ---------- Live Stage Preview Dossier (Left Sticky Column) ---------- */
.pp-dossier {
    position: relative;
    border-radius: 1rem;
    border: 1px solid rgba(229, 193, 88, 0.24);
    background: linear-gradient(155deg, rgba(24, 6, 10, 0.92) 0%, rgba(12, 3, 5, 0.96) 100%);
    box-shadow:
        0 28px 60px -28px rgba(0, 0, 0, 0.95),
        inset 0 1px 0 rgba(255, 229, 150, 0.14);
    overflow: hidden;
    will-change: transform;
}

.pp-dossier::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 85% 15%, rgba(229, 193, 88, 0.14), transparent 55%);
}

.pp-dossier-bar {
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    border-radius: 9999px;
}

.pp-dossier-bar-fill {
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, #aa7c11 0%, #e5c158 55%, #ffe596 100%);
    border-radius: 9999px;
    transition: width 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.pp-dossier-fade {
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.pp-dossier-fade.is-swapping {
    opacity: 0;
    transform: translateY(6px);
}

/* ---------- Scroll-Driven Vertical Gold Rail ---------- */
.pp-rail-wrap {
    position: relative;
    padding-left: 2.5rem;
}

@media (min-width: 640px) {
    .pp-rail-wrap {
        padding-left: 3.5rem;
    }
}

.pp-rail-track {
    position: absolute;
    left: 0.45rem;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(229, 193, 88, 0.14) 0%, rgba(229, 193, 88, 0.28) 50%, rgba(229, 193, 88, 0.12) 100%);
    border-radius: 9999px;
}

@media (min-width: 640px) {
    .pp-rail-track {
        left: 0.65rem;
    }
}

.pp-rail-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    border-radius: 9999px;
    background: linear-gradient(180deg, #aa7c11 0%, #e5c158 65%, #fff0b8 100%);
    box-shadow: 0 0 14px rgba(229, 193, 88, 0.65);
    will-change: height;
}

.pp-rail-spark {
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 8px;
    height: 8px;
    transform: translateX(-50%);
    border-radius: 9999px;
    background: #fff2c2;
    box-shadow: 0 0 14px 4px rgba(229, 193, 88, 0.85);
}

/* ---------- Step Nodes & Realistic Editorial Cards ---------- */
.pp-step {
    position: relative;
}

.pp-step-node {
    position: absolute;
    left: -2.5rem;
    top: 1.65rem;
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    border: 1.5px solid rgba(229, 193, 88, 0.5);
    background: #0a0103;
    box-shadow: 0 0 0 5px rgba(10, 1, 3, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
    z-index: 2;
}

@media (min-width: 640px) {
    .pp-step-node {
        left: -3.32rem;
    }
}

.pp-step-node-core {
    width: 5px;
    height: 5px;
    border-radius: 9999px;
    background: transparent;
    transition: background-color 0.35s ease, transform 0.35s ease;
}

.pp-step.is-passed .pp-step-node {
    border-color: #e5c158;
    background: rgba(229, 193, 88, 0.2);
}

.pp-step.is-passed .pp-step-node-core {
    background: #e5c158;
}

.pp-step.is-active .pp-step-node {
    border-color: #ffe596;
    background: #e5c158;
    transform: scale(1.18);
    box-shadow:
        0 0 0 5px rgba(10, 1, 3, 0.95),
        0 0 0 9px rgba(229, 193, 88, 0.16),
        0 0 22px rgba(229, 193, 88, 0.75);
}

.pp-step.is-active .pp-step-node-core {
    background: #1b0509;
}

.pp-step-card {
    position: relative;
    border-radius: 1rem;
    border: 1px solid rgba(229, 193, 88, 0.14);
    background: linear-gradient(145deg, rgba(22, 5, 9, 0.72) 0%, rgba(11, 2, 4, 0.86) 100%);
    padding: 1.35rem 1.4rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        0 20px 45px -30px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transform-style: preserve-3d;
    transition:
        border-color 0.4s ease,
        background 0.4s ease,
        box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    overflow: hidden;
}

@media (min-width: 640px) {
    .pp-step-card {
        padding: 1.65rem 1.85rem;
    }
}

/* Dynamic specular glare following mouse */
.pp-step-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(
        420px circle at var(--pp-mx, 50%) var(--pp-my, 50%),
        rgba(229, 193, 88, 0.12),
        transparent 58%
    );
    transition: opacity 0.35s ease;
}

.pp-step-card:hover::before,
.pp-step.is-active .pp-step-card::before {
    opacity: 1;
}

.pp-step-card:hover {
    border-color: rgba(229, 193, 88, 0.38);
    box-shadow:
        0 30px 60px -30px rgba(0, 0, 0, 0.95),
        0 0 28px -12px rgba(229, 193, 88, 0.28),
        inset 0 1px 0 rgba(255, 229, 150, 0.14);
}

.pp-step.is-active .pp-step-card {
    border-color: rgba(229, 193, 88, 0.46);
    background: linear-gradient(145deg, rgba(34, 8, 13, 0.88) 0%, rgba(14, 3, 6, 0.94) 100%);
    box-shadow:
        0 34px 68px -32px rgba(0, 0, 0, 0.98),
        0 0 36px -14px rgba(229, 193, 88, 0.36),
        inset 0 1px 0 rgba(255, 229, 150, 0.2);
}

/* Numeral transitions from hollow gold outline to rich solid metallic gold */
.pp-step-numeral {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    line-height: 0.95;
    -webkit-text-stroke: 1px rgba(229, 193, 88, 0.65);
    color: transparent;
    transition: color 0.4s ease, text-shadow 0.4s ease, transform 0.4s ease;
}

.pp-step.is-active .pp-step-numeral,
.pp-step-card:hover .pp-step-numeral {
    color: #e5c158;
    -webkit-text-stroke: 1px rgba(255, 229, 150, 0.85);
    text-shadow: 0 0 22px rgba(229, 193, 88, 0.4);
}

/* Realistic deliverable pills */
.pp-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    border-radius: 9999px;
    border: 1px solid rgba(229, 193, 88, 0.16);
    background: rgba(229, 193, 88, 0.05);
    padding: 0.26rem 0.65rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(239, 229, 213, 0.72);
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.pp-step.is-active .pp-chip,
.pp-step-card:hover .pp-chip {
    border-color: rgba(229, 193, 88, 0.32);
    background: rgba(229, 193, 88, 0.1);
    color: #ffe9a8;
}

.pp-chip-dot {
    width: 4px;
    height: 4px;
    border-radius: 9999px;
    background: #e5c158;
    flex-shrink: 0;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .pp-parallax-layer,
    .pp-dossier,
    .pp-step-card {
        transform: none !important;
        transition: none !important;
    }
    .pp-mote {
        animation: none !important;
    }
}
