/* Minimalist Agency Styles */

:root {
    --fyra-bg: #050505;
    --fyra-text: #ffffff;
    --fyra-surface: #1a1a1a;
}

/* Animations - Subtle & Smooth */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Components */

/* Structure */
body,
.wp-site-blocks {
    background-color: #050505 !important;
    background-image: none !important;
    animation: none !important;
    color: var(--fyra-text);
    min-height: 100vh;
    cursor: auto;
    overflow-x: hidden;
    width: 100%;
}

@media (pointer: fine) {

    body,
    .wp-site-blocks {
        cursor: none !important;
    }
}

@keyframes spotlightMove {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

/* INTERACTIVE CURSOR */
#cursor-dot,
#cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

#cursor-dot {
    width: 8px;
    height: 8px;
    background-color: white;
}

#cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hover State for Cursor */
body.hovering #cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

/* Scroll Indicator State for Cursor */
body.scroll-indicator #cursor-outline {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

body.scroll-indicator #cursor-outline::after {
    content: "↓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    font-weight: 300;
    animation: bounceDown 1s ease-in-out infinite;
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translate(-50%, -60%);
    }

    50% {
        transform: translate(-50%, -40%);
    }
}

/* Typography Overrides for "Massive" look */
.fyra-big-text {
    font-size: clamp(2rem, 5.5vw, 6.5rem) !important; /* Force fit */
    line-height: 0.95 !important;
    letter-spacing: -0.04em !important;
    font-weight: 700 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    white-space: nowrap !important; /* Absolutely NO breaks */
    display: inline-block !important;
    max-width: 100% !important;
    text-transform: uppercase !important; /* ALL CAPS */
}

.fyra-title-container {
    max-width: none !important;
    width: 100% !important;
}

@media (max-width: 768px) {
    .fyra-big-text {
        font-size: clamp(1.5rem, 8.5vw, 3.2rem) !important;
        line-height: 0.95 !important;
        letter-spacing: -0.04em !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        display: block !important;
        width: 100% !important;
    }
}

.fyra-section-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    margin-bottom: 2rem;
    display: block;
}

/* List Items (Services) */
.fyra-list-wrapper {
    display: flex;
    flex-direction: column;
}

.fyra-list-item {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.fyra-list-item:hover {
    border-color: #ffffff;
    padding-left: 1rem;
    /* Subtle shift */
    background: linear-gradient(to right, rgba(255, 255, 255, 0.05), transparent);
}

.fyra-list-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.fyra-list-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
}

.fyra-list-desc {
    opacity: 0.5;
    font-size: 1rem;
    max-width: 300px;
    text-align: right;
}

/* Buttons */
/* Standardized Agency Button */
.fyra-contact-btn .wp-block-button__link,
.fyra-case-link-btn,
.fyra-link-button {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: white !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    padding: 1rem 2.5rem !important;
    border-radius: 100px !important; /* Premium Pill Shape */
    display: inline-block !important;
    text-decoration: none !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    cursor: pointer;
}

.fyra-contact-btn .wp-block-button__link:hover,
.fyra-case-link-btn:hover,
.fyra-link-button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


/* Scrollytelling Performance */
.case-title,
.case-description {
    will-change: opacity, transform;
    backface-visibility: hidden;
    /* Force GPU layer */
}

/* Custom Case Button */
/* Spacing helper for buttons */
.button-mt-reduced {
    margin-top: 1.5rem !important;
}

.fyra-case-link-btn:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    opacity: 1 !important;
}

/* KILL BLOBS/TRIANGLES */
.fyra-case-link-btn::before,
.fyra-case-link-btn::after,
.wp-block-button__link::before,
.wp-block-button__link::after,
.case-card-details::before,
.case-card-details::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.case-text-card:hover .fyra-case-link-btn {
    animation: none !important; /* Stop any wobbling */
}

@keyframes blobWobble {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    33% {
        transform: scale(1.05) rotate(-2deg);
    }

    66% {
        transform: scale(1.02) rotate(2deg);
    }
}

/* Expertise Process Steps */

.expertis-section-container {
    display: block;
    width: 100%;
    position: relative;
}

.expertis-info-side {
    position: relative;
    z-index: 5;
}

.expertis-process-grid {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.expertis-step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.expertis-step-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.step-number {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.expertis-step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.expertis-step-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.7;
    margin: 0;
}

/* Responsive Expertis Grid */
@media (max-width: 1024px) {
    .expertis-grid-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .expertis-info-side {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .expertis-process-grid {
        grid-template-columns: 1fr !important;
    }

    .expertis-step-card {
        padding: 1.5rem;
    }

    .expertis-title {
        word-break: break-word;
        hyphens: auto;
    }
}

/* Cases Gallery - New Grid Layout */
.fyra-cases-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
}

.fyra-case-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #111;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    aspect-ratio: 16/10;
}

.fyra-case-card:hover {
    transform: scale(0.98);
}

.case-card-image-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.case-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fyra-case-card:hover .case-card-img {
    transform: scale(1.1);
}

.case-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    opacity: 1; /* Always visible */
    transition: background 0.4s ease;
}

.case-card-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.fyra-case-card:hover .case-card-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.case-card-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: white;
    text-align: center;
    line-height: 1.1;
    text-transform: uppercase; /* ALL CAPS */
}

/* Single Case Content Area Styling */
.fyra-case-content-area {
    line-height: 1.8;
}

.fyra-case-content-area p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.fyra-case-content-area figure {
    margin: 4rem 0;
}

.fyra-case-content-area img,
.fyra-case-content-area video {
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    display: block;
}

/* Captions or text below media */
.fyra-case-content-area figcaption,
.fyra-case-content-area .wp-block-video+p,
.fyra-case-content-area .wp-block-image+p {
    margin-top: 1.5rem;
    font-size: 1rem;
    opacity: 0.7;
    max-width: 800px;
}

@media (max-width: 768px) {
    .fyra-cases-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .case-hero-media-wrapper {
        height: 45vh !important;
        margin-bottom: 2rem !important;
    }

    .fyra-case-content-area {
        padding-top: 2vh !important;
    }
}

/* Scrolly Section Pattern Styles (fyra-really) */
.fyra-really-container {
    position: relative;
    width: 100%;
    margin: 2.5rem 0; /* Reduced from 6rem for tighter flow */
    overflow: visible;
}

.fyra-really-card {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    position: relative; /* Base for overlay */
}

.fyra-really-media img,
.fyra-really-media video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transform: scale(1.08); /* Initial scale for GSAP to animate down to 1 */
    transition: filter 0.5s ease;
}

.fyra-really-text-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 4rem 2rem 2rem; /* Fade up background */
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 10;
    pointer-events: none;
}

.fyra-really-caption {
    opacity: 0;
    transform: translateY(30px);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* SEO Optimized Case Study Components */
.fyra-case-highlights {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    margin: 4rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.highlight-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
}

.highlight-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.case-service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
}

.service-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.seo-structured-heading {
    border-left: 3px solid #fff;
    padding-left: 1.5rem;
    margin: 4rem 0 2rem 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 4rem 0;
}

.result-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(145deg, #111, #080808);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-desc {
    font-size: 0.9rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

/* Video Grid System */
.fyra-video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .fyra-video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.fyra-video-grid .fyra-really-container {
    padding: 0 !important;
    margin: 0 !important;
}

.fyra-video-grid .fyra-really-card {
    margin: 0 !important;
}