/* ============================================================================
   CRM-Publishing — Worldwide Reach & Institutional Collaborations (#partners)
   Multi-layer Parallax, 3D Tilt Plates, Animated Meridian Globe & Atelier
   ============================================================================ */

.wr-section {
    position: relative;
    overflow: clip;
    background:
        radial-gradient(ellipse 80% 55% at 82% 16%, rgba(229, 193, 88, 0.12) 0%, transparent 62%),
        radial-gradient(ellipse 75% 60% at 14% 84%, rgba(112, 16, 32, 0.38) 0%, transparent 65%),
        linear-gradient(180deg, rgba(10, 1, 3, 0.42) 0%, rgba(17, 3, 6, 0.84) 50%, rgba(10, 1, 3, 0.5) 100%);
}

/* ---------- Multi-Layer Parallax Backdrop ---------- */
.wr-backdrop {
    position: absolute;
    inset: -14% 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

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

/* Subtle cartographic coordinate grid */
.wr-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: 88px 88px;
    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 parallax lighting orbs */
.wr-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(85px);
    opacity: 0.5;
}

.wr-orb-1 {
    top: 4%;
    right: -5%;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(229, 193, 88, 0.18) 0%, transparent 70%);
}

.wr-orb-2 {
    bottom: 6%;
    left: -6%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(145, 20, 40, 0.36) 0%, transparent 70%);
}

/* Giant watermark drifting in deep parallax */
.wr-watermark {
    position: absolute;
    left: -2%;
    bottom: 14%;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(6rem, 16vw, 14rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: 0.14em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(229, 193, 88, 0.06);
    user-select: none;
    white-space: nowrap;
}

/* Animated Meridian Globe */
.wr-globe-svg {
    position: absolute;
    right: -6%;
    top: -4%;
    width: min(720px, 82vw);
    height: auto;
    opacity: 0.3;
    filter: drop-shadow(0 0 28px rgba(229, 193, 88, 0.15));
}

.wr-orbit-dash {
    stroke-dasharray: 5 8;
    animation: wr-orbit-spin 36s linear infinite;
    transform-origin: 300px 300px;
}

.wr-orbit-dash-rev {
    stroke-dasharray: 2 10;
    animation: wr-orbit-spin-rev 52s linear infinite;
    transform-origin: 300px 300px;
}

@keyframes wr-orbit-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes wr-orbit-spin-rev {
    from { transform: rotate(360deg); }
    to   { transform: rotate(0deg); }
}

.wr-hub-ping {
    transform-box: fill-box;
    transform-origin: center;
    animation: wr-hub-pulse 3.2s ease-out infinite;
}

.wr-hub-ping-2 { animation-delay: -1.1s; }
.wr-hub-ping-3 { animation-delay: -2.2s; }

@keyframes wr-hub-pulse {
    0%   { transform: scale(1); opacity: 0.85; }
    70%  { transform: scale(3.4); opacity: 0; }
    100% { transform: scale(3.4); opacity: 0; }
}

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

.wr-mote-1 { top: 14%; left: 16%; width: 5px; height: 5px; animation-delay: 0s; }
.wr-mote-2 { top: 38%; left: 52%; width: 4px; height: 4px; animation-delay: -2.1s; }
.wr-mote-3 { top: 62%; left: 22%; width: 6px; height: 6px; animation-delay: -4.4s; }
.wr-mote-4 { top: 24%; right: 20%; width: 5px; height: 5px; animation-delay: -3.2s; }
.wr-mote-5 { top: 72%; right: 14%; width: 4px; height: 4px; animation-delay: -6.1s; }

@keyframes wr-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.25; }
    50%      { transform: translate3d(0, -20px, 0) scale(1.3); opacity: 0.72; }
}

/* ---------- Global Telemetry Metric Strip ---------- */
.wr-stat-pill {
    position: relative;
    border: 1px solid rgba(229, 193, 88, 0.2);
    background: linear-gradient(150deg, rgba(26, 6, 11, 0.84) 0%, rgba(11, 2, 4, 0.92) 100%);
    border-radius: 0.9rem;
    padding: 0.9rem 1.15rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        0 18px 36px -24px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 229, 150, 0.14);
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.wr-stat-pill:hover {
    transform: translateY(-3px);
    border-color: rgba(229, 193, 88, 0.45);
}

/* ---------- Partner Distribution Plates (6-Card Parallax Grid) ---------- */
.wr-card-parallax-wrap {
    will-change: transform;
}

.wr-partner-card {
    position: relative;
    height: 100%;
    border-radius: 1.05rem;
    border: 1px solid rgba(229, 193, 88, 0.17);
    background: linear-gradient(150deg, rgba(26, 6, 11, 0.8) 0%, rgba(11, 2, 4, 0.92) 100%);
    padding: 1.4rem 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow:
        0 22px 46px -28px rgba(0, 0, 0, 0.92),
        inset 0 1px 0 rgba(255, 229, 150, 0.08);
    transition:
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.35s ease,
        box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mouse-following gold spotlight */
.wr-partner-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(
        340px circle at var(--wr-mx, 50%) var(--wr-my, 50%),
        rgba(229, 193, 88, 0.16),
        transparent 58%
    );
    transition: opacity 0.35s ease;
}

/* Diagonal metallic sheen sweep on hover */
.wr-partner-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        118deg,
        transparent 32%,
        rgba(229, 193, 88, 0.14) 47%,
        rgba(255, 255, 255, 0.06) 51%,
        transparent 66%
    );
    transform: translateX(-135%);
    transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

.wr-partner-card:hover {
    border-color: rgba(229, 193, 88, 0.48);
    box-shadow:
        0 32px 64px -30px rgba(0, 0, 0, 0.98),
        0 0 32px -12px rgba(229, 193, 88, 0.38),
        inset 0 1px 0 rgba(255, 229, 150, 0.22);
}

.wr-partner-card:hover::before {
    opacity: 1;
}

.wr-partner-card:hover::after {
    transform: translateX(135%);
}

.wr-partner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(229, 193, 88, 0.28);
    background: linear-gradient(145deg, rgba(229, 193, 88, 0.14) 0%, rgba(229, 193, 88, 0.03) 100%);
    color: #e5c158;
    transition: transform 0.35s ease, background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.wr-partner-card:hover .wr-partner-icon {
    transform: scale(1.08);
    border-color: rgba(255, 229, 150, 0.6);
    background: rgba(229, 193, 88, 0.2);
    box-shadow: 0 0 18px rgba(229, 193, 88, 0.35);
}

.wr-partner-title {
    transition: color 0.3s ease;
}

.wr-partner-card:hover .wr-partner-title {
    color: #ffe596;
}

.wr-live-dot {
    position: relative;
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: #e5c158;
    box-shadow: 0 0 10px rgba(229, 193, 88, 0.9);
}

.wr-live-dot::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 9999px;
    border: 1px solid rgba(229, 193, 88, 0.65);
    animation: wr-dot-ring 2.4s ease-out infinite;
}

@keyframes wr-dot-ring {
    0%   { transform: scale(0.8); opacity: 0.85; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* ---------- Territory Ambient Ticker ---------- */
.wr-ticker {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.wr-ticker-track {
    display: flex;
    width: max-content;
    animation: wr-ticker-scroll 34s linear infinite;
}

.wr-ticker:hover .wr-ticker-track {
    animation-play-state: paused;
}

@keyframes wr-ticker-scroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

/* ---------- Executive Institutional Collaboration Atelier ---------- */
.wr-collab-shell {
    position: relative;
    border-radius: 1.35rem;
    border: 1px solid rgba(229, 193, 88, 0.3);
    background:
        radial-gradient(ellipse 65% 80% at 100% 0%, rgba(229, 193, 88, 0.14) 0%, transparent 58%),
        radial-gradient(ellipse 60% 70% at 0% 100%, rgba(126, 18, 35, 0.38) 0%, transparent 62%),
        linear-gradient(155deg, rgba(24, 5, 10, 0.94) 0%, rgba(10, 2, 4, 0.97) 100%);
    box-shadow:
        0 40px 85px -36px rgba(0, 0, 0, 0.98),
        0 0 42px -18px rgba(229, 193, 88, 0.25),
        inset 0 1px 0 rgba(255, 229, 150, 0.18);
    overflow: hidden;
}

/* Shimmering metallic top light beam */
.wr-collab-beam {
    position: absolute;
    top: 0;
    left: -35%;
    width: 35%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #ffe596, transparent);
    opacity: 0.75;
    animation: wr-beam-slide 6.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes wr-beam-slide {
    0%   { left: -35%; opacity: 0; }
    20%  { opacity: 0.85; }
    80%  { opacity: 0.85; }
    100% { left: 105%; opacity: 0; }
}

.wr-track-btn {
    position: relative;
    width: 100%;
    text-align: left;
    border-radius: 0.9rem;
    border: 1px solid rgba(229, 193, 88, 0.16);
    background: rgba(10, 1, 3, 0.58);
    padding: 0.95rem 1.05rem;
    transition:
        border-color 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
    cursor: pointer;
}

.wr-track-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(229, 193, 88, 0.4);
    background: rgba(229, 193, 88, 0.07);
}

.wr-track-btn.is-selected {
    border-color: rgba(229, 193, 88, 0.65);
    background: linear-gradient(135deg, rgba(229, 193, 88, 0.16) 0%, rgba(229, 193, 88, 0.04) 100%);
    box-shadow:
        0 12px 28px -14px rgba(229, 193, 88, 0.5),
        inset 0 1px 0 rgba(255, 229, 150, 0.18);
}

.wr-track-indicator {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    border: 1.5px solid rgba(229, 193, 88, 0.55);
    background: transparent;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    flex-shrink: 0;
}

.wr-track-btn.is-selected .wr-track-indicator {
    border-color: #ffe596;
    background: #e5c158;
    box-shadow: 0 0 12px rgba(229, 193, 88, 0.9);
}

.wr-brief-panel {
    border-radius: 1.05rem;
    border: 1px solid rgba(229, 193, 88, 0.24);
    background: linear-gradient(160deg, rgba(16, 3, 6, 0.85) 0%, rgba(8, 1, 3, 0.94) 100%);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 24px 50px -28px rgba(0, 0, 0, 0.95),
        inset 0 1px 0 rgba(255, 229, 150, 0.14);
}

@media (min-width: 640px) {
    .wr-brief-panel {
        padding: 1.85rem;
    }
}

.wr-brief-swap {
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.wr-brief-swap.is-swapping {
    opacity: 0;
    transform: translateY(6px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .wr-orbit-dash,
    .wr-orbit-dash-rev,
    .wr-hub-ping,
    .wr-mote,
    .wr-live-dot::after,
    .wr-ticker-track,
    .wr-collab-beam {
        animation: none !important;
    }
    .wr-parallax-layer,
    .wr-card-parallax-wrap,
    .wr-partner-card {
        transform: none !important;
        transition: none !important;
    }
}
