/* Methodology Page Specific Styles */

/* Base Overrides for Light Theme */
body.methodology-page {
    background-color: #FFFFFF;
    color: #000000;
}

/* Re-enforcing specific colors for this page */
:root {
    --text-black: #000000;
    --text-grey: #555555;
    --border-light: #F0F0F0;
}


/* 1. Clarity Hero */
.clarity-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 72px;
    /* Consistent with services */
    padding-left: 5%;
    padding-right: 5%;
    max-width: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;
    background-color: #FFFFFF;
    text-align: center;
    border-bottom: 1px solid #E8E8E8;
}

/* Ethereal Ambient Halo - Centered & Soft */
.clarity-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140vw;
    height: 140vh;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.012) 0%, rgba(255, 255, 255, 0) 60%);
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    animation: neuralBloom 15s infinite ease-in-out;
}

@keyframes neuralBloom {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.9;
    }
}

/* Kinetic Neural Focal Point */
.neural-focal-point {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.015) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    border-radius: 50%;
    animation: focalPulse 8s infinite alternate ease-in-out;
}

.focal-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    /* Strengthened from 0.02 */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    animation: ringPulse 12s infinite ease-in-out;
}

@keyframes ringPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.4;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.8;
    }
}

/* Creative Background Typography */
.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 15vw;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.02);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 1.5s ease-out;
    /* Faster entrance */
}

.reveal-active .hero-bg-text {
    opacity: 1;
}

/* Structural Nodes */
.neural-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    z-index: 5;
    opacity: 0;
    transition: opacity 1s ease-out 0.8s;
}

.reveal-active .neural-node {
    opacity: 0.15;
}

.neural-node::after {
    content: attr(data-coord);
    position: absolute;
    top: -20px;
    left: 10px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 8px;
    color: rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    letter-spacing: 0.1em;
}

.node-1 {
    top: 30%;
    left: 20%;
    animation: floatNode 8s infinite ease-in-out;
}

.node-2 {
    bottom: 35%;
    right: 18%;
    animation: floatNode 10s infinite ease-in-out reverse;
}

@keyframes floatNode {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}

@keyframes focalPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 0.4;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.8;
    }
}

.clarity-content {
    max-width: 1100px;
    z-index: 10;
    position: relative;
    padding-bottom: 40px;
}

.clarity-headline {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-weight: 800;
    font-size: clamp(2.8rem, 6.5vw, 5rem);
    color: var(--text-black);
    margin-bottom: 28px;
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    /* Consistent with services */
    opacity: 0;
    transform: translateY(20px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-active .clarity-headline {
    opacity: 1;
    transform: translateY(0);
}

.clarity-subtext {
    font-family: var(--font-main, 'Inter', sans-serif);
    font-size: 1.1rem;
    color: #555555;
    line-height: 1.8;
    max-width: 580px;
    margin: 0 auto;
    letter-spacing: 0.005em;
    opacity: 0;
    transform: translateY(15px);
    transition: all 1s ease-out 0.3s;
    /* Perfectly synced delay with services-subtext */
}

.reveal-active .clarity-subtext {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Design Anchors */
.hero-metadata {
    position: absolute;
    bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 8px;
    color: rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5em;
    opacity: 0;
    transition: opacity 1.2s ease-out 1s;
}

.reveal-active .hero-metadata {
    opacity: 1;
}

.metadata-item {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

/* Scribble Visual Background - Cinematic Wave System */
.scribble-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 4;
    /* Above halo, below nodes & content */
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s ease-out 0.4s;
}

.reveal-active .scribble-container {
    opacity: 0.75;
    /* Boosted for maximum creative 'wow' factor */
}

#scribble-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 1s ease 0.8s;
    animation: bounceSlow 3s infinite ease-in-out 0.8s;
}

@keyframes bounceSlow {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

.reveal-active .hero-scroll-indicator {
    opacity: 1;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
}

.scroll-text {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 8px;
    letter-spacing: 0.3em;
    color: #AAA;
    text-transform: uppercase;
}

/* 2. Four-Stage Process */
.process-section {
    padding: 180px 10%;
    /* Spacing requested: 10% side padding */
    background: #FFFFFF;
}

.process-container {
    max-width: 1600px;
    margin: 0 auto;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 80px;
    margin-top: 20px;
}

.process-card {
    position: relative;
    padding: 20px 0 40px 40px;
    /* Open air layout */
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    /* Single anchor line instead of box */
    background: transparent;
    opacity: 0;
    transform: translateX(20px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-card.visible-child {
    opacity: 1;
    transform: translateX(0);
}

.process-card::after {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    width: 1px;
    height: 0;
    background: #000;
    transition: height 0.6s ease-out 0.2s;
}

.process-card.visible-child::after {
    height: 40px;
    /* High-end loading line */
}

.process-card:hover {
    border-left-color: rgba(0, 0, 0, 0.15);
}

.process-number {
    display: block;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 10px;
    color: #AAA;
    margin-bottom: 2rem;
    letter-spacing: 0.4em;
    font-weight: 600;
}

.process-title {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #000;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.process-desc {
    font-family: var(--font-main, 'Inter', sans-serif);
    font-size: 1rem;
    color: var(--text-grey);
    line-height: 1.6;
}

/* 3. Problem / Solution Showcase */
.showcase-section {
    background: #FAFAFA;
    padding: 120px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.showcase-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4%;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 60px;
    align-items: center;
}

.showcase-divider {
    height: 100%;
    background: var(--border-light);
}

.showcase-col {
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.showcase-section.visible .showcase-col {
    opacity: 1;
    transform: translateY(0);
}

.showcase-section.visible .showcase-col:nth-child(3) {
    transition-delay: 0.2s;
}

.showcase-label {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    display: block;
}

.label-problem {
    color: #999;
}

.label-solution {
    color: #000000;
    /* Monochrome black */
}

.showcase-text {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-black);
    letter-spacing: -0.04em;
}

/* 4. CTA Section */
.cta-section {
    position: relative;
    padding: 180px 0;
    text-align: center;
    background: #FFFFFF;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.008) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.cta-headline {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 3.5rem;
    color: var(--text-black);
    opacity: 0;
    transform: translateY(60px) scale(0.96);
    transition: all 1.6s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: -0.05em;
    position: relative;
    z-index: 1;
}

.cta-section.visible .cta-headline {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cta-button {
    display: inline-block;
    padding: 22px 56px;
    background: #000000;
    color: #FFFFFF;
    font-family: var(--font-main, 'Inter', sans-serif);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(20px);
}

.cta-section.visible .cta-button {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, background 0.3s ease;
}

/* CTA Footer Divider */

.cta-button:hover {
    background: #333333;
    /* Dark grey hover */
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .clarity-hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 8% 100px;
    }

    .process-section {
        padding: 120px 6%;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .showcase-divider {
        display: none;
    }

    .scribble-container {
        width: 120%;
        right: -10%;
        opacity: 0.4;
    }
}

@media (max-width: 768px) {
    .clarity-headline {
        font-size: clamp(2.4rem, 10vw, 4rem);
        margin-bottom: 24px;
    }

    .clarity-subtext {
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .hero-bg-text {
        font-size: 25vw;
        letter-spacing: 0;
    }

    .neural-node {
        display: none;
        /* Keep mobile clean */
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .hero-metadata {
        flex-direction: column;
        gap: 12px;
        bottom: 30px;
    }

    .cta-headline {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .clarity-hero {
        padding-top: 140px;
    }

    .showcase-text {
        font-size: 1.75rem;
    }
}