/**
 * SAI PR - Premium Mumbai PR Agency Motion & Spatial 3D System
 * Brand: SAI Communications & PR
 * Concept: SIGNAL / INFLUENCE / NARRATIVE
 */

:root {
    /* =========================================================================
       00. LUXURY MOTION TOKENS
       ========================================================================= */
    --motion-fast: 160ms;
    --motion-normal: 280ms;
    --motion-slow: 520ms;
    --motion-reveal: 800ms;
    --motion-cinematic: 1200ms;
    --ease-agency: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================================
   01. HERO: THE INFLUENCE FIELD (3D SPATIAL VISUAL)
   ========================================================================= */
.hero-sculpture-wrapper {
    position: relative;
    width: 100%;
    max-width: 33rem;
    height: clamp(24rem, 32vw, 28rem);
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    perspective-origin: 50% 50%;
    overflow: visible;
}

.sculpture-scene {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Background 3D Coordinate Grid */
.sculpture-grid {
    position: absolute;
    inset: -6%;
    background-image: 
        linear-gradient(rgba(35, 49, 110, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(35, 49, 110, 0.06) 1px, transparent 1px);
    background-size: 2rem 2rem;
    transform: translateZ(-60px);
    border-radius: var(--radius-lg);
    pointer-events: none;
    opacity: 0.85;
}

.sculpture-axis-x {
    position: absolute;
    top: 50%;
    left: -6%;
    right: -6%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(35, 49, 110, 0.25), transparent);
    transform: translateZ(-30px);
}

.sculpture-axis-y {
    position: absolute;
    left: 50%;
    top: -6%;
    bottom: -6%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(35, 49, 110, 0.25), transparent);
    transform: translateZ(-30px);
}

/* Signal Transmission Beam */
.sculpture-beam {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transform: translateZ(10px);
}

.sculpture-beam-line {
    animation: beamDash 14s linear infinite;
}

@keyframes beamDash {
    to { stroke-dashoffset: -200; }
}

/* Central Core Prism */
.sculpture-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(40px);
    width: 4.5rem;
    height: 4.5rem;
    background: linear-gradient(135deg, var(--color-primary), #080E23);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 36px rgba(35, 49, 110, 0.35), 0 0 20px rgba(35, 49, 110, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 5;
    animation: corePulse 6s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% { box-shadow: 0 12px 36px rgba(35, 49, 110, 0.35), 0 0 15px rgba(35, 49, 110, 0.15); }
    50% { box-shadow: 0 16px 48px rgba(35, 49, 110, 0.5), 0 0 30px rgba(91, 138, 199, 0.4); }
}

.sculpture-core-symbol {
    font-family: var(--font-heading);
    font-size: 1.1875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #FFFFFF;
    text-align: center;
    white-space: nowrap;
}

/* 6 Strategic Editorial Planes (The Influence Field) */
.signal-plane {
    position: absolute;
    width: 10.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(35, 49, 110, 0.16);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(8, 14, 35, 0.08);
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
    transform-style: preserve-3d;
    z-index: 4;
}

.signal-plane:hover {
    border-color: var(--color-primary);
    box-shadow: 0 14px 36px rgba(35, 49, 110, 0.16);
}

.signal-plane .plane-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 0.78125rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2px;
}

.signal-plane .index-number {
    font-size: 0.6875rem;
    color: var(--color-primary);
    font-weight: 700;
}

.signal-plane .plane-sub {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    line-height: 1.3;
}

/* Tier 1: Top Orbital Pair */
.plane-media {
    top: 2%;
    left: 0;
    right: auto;
    bottom: auto;
    transform: translateZ(50px);
    border-left: 3px solid var(--color-primary);
}

.plane-narrative {
    top: 4%;
    right: 0;
    left: auto;
    bottom: auto;
    transform: translateZ(45px);
    border-left: 3px solid #5B8AC7;
}

/* Tier 2: Mid Flanking Pair */
.plane-trust {
    top: 44%;
    left: -5%;
    right: auto;
    bottom: auto;
    transform: translateZ(60px);
    border-left: 3px solid #23316E;
    background: #FFFFFF;
}

.plane-reputation {
    top: 42%;
    right: -5%;
    left: auto;
    bottom: auto;
    transform: translateZ(35px);
    border-left: 3px solid #1C2758;
}

/* Tier 3: Bottom Grounding Pair */
.plane-stakeholders {
    bottom: 2%;
    left: 2%;
    right: auto;
    top: auto;
    transform: translateZ(55px);
    border-left: 3px solid #3667B0;
}

.plane-influence {
    bottom: 0%;
    right: 2%;
    left: auto;
    top: auto;
    transform: translateZ(65px);
    border-left: 3px solid #080E23;
    background: #FFFFFF;
}

/* Continuous 8-14s ambient drift */
@keyframes influenceDrift {
    0%, 100% { transform: rotateX(2.5deg) rotateY(-2.5deg) translateZ(0); }
    33% { transform: rotateX(-2deg) rotateY(3deg) translateZ(4px); }
    66% { transform: rotateX(2.5deg) rotateY(1.5deg) translateZ(-4px); }
}

.sculpture-scene.drifting {
    animation: influenceDrift 11s ease-in-out infinite;
}

/* =========================================================================
   02. MASKED LINE-BY-LINE TYPOGRAPHY REVEALS
   ========================================================================= */
.masked-line-wrapper {
    overflow: hidden;
    display: block;
    line-height: 1.14;
}

.masked-line {
    display: inline-block;
    transform: translateY(115%);
    opacity: 0;
    transition: transform var(--motion-reveal) var(--ease-agency),
                opacity var(--motion-reveal) var(--ease-agency);
    will-change: transform, opacity;
}

.masked-line.is-visible,
.hero-content.is-loaded .masked-line {
    transform: translateY(0);
    opacity: 1;
}

.line-delay-1 { transition-delay: 0.08s; }
.line-delay-2 { transition-delay: 0.18s; }
.line-delay-3 { transition-delay: 0.28s; }
.line-delay-4 { transition-delay: 0.38s; }

/* =========================================================================
   03. EDITORIAL GHOSTED TYPOGRAPHIC WATERMARKS
   ========================================================================= */
.ghost-watermark-container,
.section-composition {
    position: relative;
    isolation: isolate;
    overflow: clip;
}

.ghost-watermark {
    position: absolute;
    font-family: var(--font-heading);
    font-size: clamp(5rem, 12vw, 13rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    color: rgba(35, 49, 110, 0.035);
    user-select: none;
    pointer-events: none;
    line-height: 0.85;
    z-index: var(--z-decoration, 1);
    white-space: nowrap;
}

.ghost-watermark-dark {
    color: rgba(255, 255, 255, 0.035);
}

.ghost-top-right {
    top: 5%;
    right: 2%;
    transform: none;
}

.ghost-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ghost-bottom-left {
    bottom: 5%;
    left: 2%;
    transform: none;
}

/* =========================================================================
   04. MANIFESTO WORD ILLUMINATION MOMENT
   ========================================================================= */
.manifesto-lead-animated {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.2vw, 3rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text-muted);
    transition: color 0.5s ease;
}

.manifesto-word {
    color: var(--color-text-light);
    transition: color 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s ease;
    display: inline-block;
}

.manifesto-word.is-illuminated {
    color: var(--color-primary);
    font-weight: 700;
    text-shadow: 0 0 1px rgba(35, 49, 110, 0.2);
}

/* =========================================================================
   05. SIGNAL PATHWAY LINE DRAWING
   ========================================================================= */
.pathway-container {
    position: relative;
    padding-top: var(--space-2);
}

.pathway-line-bg {
    position: absolute;
    top: calc(var(--space-2) + 7px);
    left: 1%;
    right: 8%;
    height: 3px;
    background: var(--color-border);
    z-index: 1;
    border-radius: 2px;
}

.pathway-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--color-primary), #5B8AC7);
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 8px rgba(35, 49, 110, 0.4);
    border-radius: 2px;
}

.pathway-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.pathway-node-bullet {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid var(--color-border);
    margin-bottom: var(--space-4);
    transition: border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 0 0 4px #F8FAFC;
    flex-shrink: 0;
}

.pathway-node.is-active .pathway-node-bullet {
    border-color: var(--color-primary);
    background: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(35, 49, 110, 0.15);
}

/* =========================================================================
   06. FINAL DARK CTA SPATIAL CONVERGENCE
   ========================================================================= */
.cta-stage-dark {
    position: relative;
    background-color: #080E23;
    overflow: hidden;
    color: #FFFFFF;
}

.cta-plane {
    position: absolute;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-plane-1 {
    width: 22rem;
    height: 14rem;
    top: -10%;
    left: 5%;
    transform: rotate(-8deg);
}

.cta-plane-2 {
    width: 18rem;
    height: 12rem;
    bottom: -5%;
    right: 8%;
    transform: rotate(6deg);
}

.cta-plane-3 {
    width: 14rem;
    height: 10rem;
    top: 25%;
    right: 25%;
    transform: rotate(-3deg);
    border-color: rgba(91, 138, 199, 0.15);
}

.cta-ambient-glow {
    position: absolute;
    width: 32rem;
    height: 32rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(35, 49, 110, 0.35) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* =========================================================================
   07. GENERAL SCROLL REVEALS & IMAGE MASKS
   ========================================================================= */
.reveal,
.reveal-fade,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity var(--motion-reveal) var(--ease-agency),
                transform var(--motion-reveal) var(--ease-agency);
    will-change: opacity, transform;
}

.reveal {
    transform: translateY(1.2rem);
}

.reveal-fade {
    transform: scale(0.97);
}

.reveal-left {
    transform: translateX(-1.5rem);
}

.reveal-right {
    transform: translateX(1.5rem);
}

.reveal.is-visible,
.reveal.is-revealed,
.reveal-fade.is-visible,
.reveal-fade.is-revealed,
.reveal-left.is-visible,
.reveal-left.is-revealed,
.reveal-right.is-visible,
.reveal-right.is-revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

.delay-1, .reveal-delay-1 { transition-delay: 0.06s; }
.delay-2, .reveal-delay-2 { transition-delay: 0.12s; }
.delay-3, .reveal-delay-3 { transition-delay: 0.18s; }
.delay-4, .reveal-delay-4 { transition-delay: 0.24s; }

/* Cinematic Image Reveal Mask */
.image-reveal-mask {
    position: relative;
    overflow: hidden;
}

.image-reveal-mask img {
    transition: transform var(--motion-cinematic) var(--ease-agency),
                filter var(--motion-slow) ease;
    transform: scale(1.05);
}

.image-reveal-mask.is-visible img,
.image-reveal-mask:hover img {
    transform: scale(1);
}

.image-reveal-mask:hover img {
    transform: scale(1.025);
}

/* Reading Progress Bar (Articles) */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--color-primary);
    z-index: 3000;
    transition: width 0.1s linear;
}

/* =========================================================================
   08. ACCESSIBILITY: REDUCED MOTION OVERRIDE
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .sculpture-scene,
    .signal-plane,
    .sculpture-core,
    .cta-plane {
        transform: none !important;
        animation: none !important;
    }
    
    .reveal,
    .reveal-fade,
    .reveal-left,
    .reveal-right,
    .masked-line {
        opacity: 1 !important;
        transform: none !important;
    }
}
