/* ==========================================================================
   JEED INNOVATIONS — animations.css
   All animation, transition and motion-related styles.
   Load after style.css, before responsive.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. GLOBAL MOTION TOKENS
   -------------------------------------------------------------------------- */
:root {
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --dur-fast: 0.15s;
    --dur-base: 0.25s;
    --dur-slow: 0.45s;
    --dur-reveal: 0.35s;
}

/* --------------------------------------------------------------------------
   1. SCROLL-REVEAL BASE
   Content is NEVER hidden by default — if JS or GSAP fails, everything is
   visible. Only when JS adds the `.js-ready` class does the reveal system
   engage.
   -------------------------------------------------------------------------- */

[data-reveal],
.reveal-fade,
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-zoom {
    opacity: 1;
    transform: none;
}

/* Once JS is active, hide the elements that will be revealed. */
.js-ready [data-reveal],
.js-ready .reveal-fade,
.js-ready .reveal-up,
.js-ready .reveal-left,
.js-ready .reveal-right,
.js-ready .reveal-zoom {
    opacity: 0;
    will-change: opacity, transform;
}

.js-ready .reveal-up {
    transform: translate3d(0, 28px, 0);
}

.js-ready .reveal-left {
    transform: translate3d(-28px, 0, 0);
}

.js-ready .reveal-right {
    transform: translate3d(28px, 0, 0);
}

.js-ready .reveal-zoom {
    transform: scale(0.94);
}

/* Final visible state — applied by IntersectionObserver / GSAP. */
.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition:
        opacity var(--dur-reveal) var(--ease-out),
        transform var(--dur-reveal) var(--ease-out);
}

/* Stagger helpers — combine with `.is-visible` on a parent. */
.is-visible .stagger>* {
    transition-delay: 0s;
}

.is-visible .stagger>*:nth-child(1) {
    transition-delay: 0.02s;
}

.is-visible .stagger>*:nth-child(2) {
    transition-delay: 0.05s;
}

.is-visible .stagger>*:nth-child(3) {
    transition-delay: 0.08s;
}

.is-visible .stagger>*:nth-child(4) {
    transition-delay: 0.11s;
}

.is-visible .stagger>*:nth-child(5) {
    transition-delay: 0.14s;
}

.is-visible .stagger>*:nth-child(6) {
    transition-delay: 0.17s;
}

.is-visible .stagger>*:nth-child(7) {
    transition-delay: 0.20s;
}

.is-visible .stagger>*:nth-child(8) {
    transition-delay: 0.23s;
}

/* --------------------------------------------------------------------------
   2. HERO — BACKGROUND KEN BURNS
   -------------------------------------------------------------------------- */
@keyframes kenburns {
    0% {
        transform: scale(1) translate3d(0, 0, 0);
    }

    100% {
        transform: scale(1.08) translate3d(-1%, -1%, 0);
    }
}

.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: kenburns 16s var(--ease-in-out) infinite alternate;
}

.hero-slide.swiper-slide-active {
    animation-play-state: running;
}

.hero-slide:not(.swiper-slide-active) {
    animation-play-state: paused;
}

/* --------------------------------------------------------------------------
   3. HERO — TEXT REVEAL ON SLIDE CHANGE
   Uses a `.is-active` class toggled by Swiper events in slider.js.
   -------------------------------------------------------------------------- */
.hero-content>* {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
        opacity 0.7s var(--ease-out),
        transform 0.7s var(--ease-out);
}

.hero-slide.is-active .hero-content>* {
    opacity: 1;
    transform: none;
}

.hero-slide.is-active .hero-content>*:nth-child(1) {
    transition-delay: 0.10s;
}

.hero-slide.is-active .hero-content>*:nth-child(2) {
    transition-delay: 0.22s;
}

.hero-slide.is-active .hero-content>*:nth-child(3) {
    transition-delay: 0.34s;
}

.hero-slide.is-active .hero-content>*:nth-child(4) {
    transition-delay: 0.46s;
}

/* Fallback: if JS never adds `.is-active`, keep content visible. */
.no-js .hero-content>* {
    opacity: 1;
    transform: none;
}

/* --------------------------------------------------------------------------
   4. HERO — OVERLAY SHIMMER (subtle)
   -------------------------------------------------------------------------- */
.hero-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.04) 45%,
            transparent 90%);
    transform: translateX(-100%);
    animation: heroSheen 9s var(--ease-in-out) infinite;
    pointer-events: none;
}

@keyframes heroSheen {

    0%,
    70% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* --------------------------------------------------------------------------
   5. FLOATING / DRIFT MOTION (for decorative SVG particles)
   -------------------------------------------------------------------------- */
@keyframes floatY {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

.float-y {
    animation: floatY 6s var(--ease-in-out) infinite;
}

@keyframes floatSlow {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    100% {
        transform: translate3d(6px, -10px, 0) rotate(2deg);
    }
}

.float-slow {
    animation: floatSlow 12s var(--ease-in-out) infinite alternate;
}

/* --------------------------------------------------------------------------
   6. HEADER — LOGO & NAV ENTRANCE
   -------------------------------------------------------------------------- */
.site-header .brand img {
    transition: transform var(--dur-base) var(--ease-out);
}

.site-header .brand:hover img {
    transform: scale(1.04);
}

.site-header.is-ready .brand {
    animation: brandIn 0.7s var(--ease-out) both;
}

@keyframes brandIn {
    from {
        opacity: 0;
        transform: translate3d(-14px, 0, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.site-header.is-ready .primary-nav a {
    animation: navIn 0.5s var(--ease-out) both;
}

.site-header.is-ready .primary-nav li:nth-child(1) a {
    animation-delay: 0.10s;
}

.site-header.is-ready .primary-nav li:nth-child(2) a {
    animation-delay: 0.16s;
}

.site-header.is-ready .primary-nav li:nth-child(3) a {
    animation-delay: 0.22s;
}

.site-header.is-ready .primary-nav li:nth-child(4) a {
    animation-delay: 0.28s;
}

.site-header.is-ready .primary-nav li:nth-child(5) a {
    animation-delay: 0.34s;
}

@keyframes navIn {
    from {
        opacity: 0;
        transform: translate3d(0, -8px, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Mobile nav open/close */
.primary-nav {
    transition:
        transform var(--dur-base) var(--ease-out),
        opacity var(--dur-base) var(--ease-out);
}

.nav-toggle span {
    transition: transform var(--dur-base) var(--ease-out),
        opacity var(--dur-base) var(--ease-out),
        background-color var(--dur-base) var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   7. BUTTON MICRO-INTERACTIONS
   -------------------------------------------------------------------------- */
.btn {
    position: relative;
    overflow: hidden;
    transition:
        transform var(--dur-base) var(--ease-out),
        background var(--dur-base) var(--ease-out),
        box-shadow var(--dur-base) var(--ease-out),
        color var(--dur-base) var(--ease-out);
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%),
            rgba(255, 255, 255, 0.32) 0%,
            transparent 55%);
    opacity: 0;
    transition: opacity var(--dur-base) var(--ease-out);
    pointer-events: none;
}

.btn:hover::after {
    opacity: 1;
}

/* Light sheen sweep on primary buttons */
.btn--primary::before,
.btn--green::before,
.nav-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 1;
}

.btn--primary:hover::before,
.btn--green:hover::before,
.nav-cta:hover::before {
    animation: btnShimmer 0.75s ease-out forwards;
}

@keyframes btnShimmer {
    0% {
        left: -120%;
    }
    100% {
        left: 200%;
    }
}

.btn:active {
    transform: translateY(0) scale(0.97);
}

/* Arrow-in-button micro-bounce */
.btn i.bi-arrow-right,
.btn .btn-arrow {
    display: inline-block;
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn:hover i.bi-arrow-right,
.btn:hover .btn-arrow {
    transform: translateX(6px) scale(1.15);
}

/* --------------------------------------------------------------------------
   8. CARD HOVER — ELEVATION + GLASS SHIMMER GLEAM
   -------------------------------------------------------------------------- */
.card,
.project-item,
.value-block,
.industry-card,
.culture-card {
    position: relative;
    overflow: hidden;
    transition:
        transform 0.38s var(--ease-out),
        box-shadow 0.38s var(--ease-out),
        border-color 0.38s var(--ease-out);
}

.card::before,
.project-item::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.42s var(--ease-out);
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 2;
}

/* Dynamic glass shimmer sweep */
.card::after,
.project-item::after,
.value-block::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -70%;
    width: 45%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.22) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    pointer-events: none;
    opacity: 0;
    z-index: 3;
}

.card:hover::after,
.project-item:hover::after,
.value-block:hover::after {
    animation: cardGleam 0.9s var(--ease-out) forwards;
}

@keyframes cardGleam {
    0% {
        left: -70%;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        left: 150%;
        opacity: 0;
    }
}

.card:hover,
.project-item:hover,
.industry-card:hover,
.culture-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 24px 48px rgba(10, 51, 30, 0.18), 0 0 28px rgba(133, 195, 36, 0.25);
    border-color: rgba(133, 195, 36, 0.55);
}

.card:hover::before,
.project-item:hover::before,
.industry-card:hover::before,
.culture-card:hover::before {
    transform: scaleX(1);
}

.card .card-tag {
    transition: transform var(--dur-base) var(--ease-out),
                background-color var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base) var(--ease-out);
}

.card:hover .card-tag {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(133, 195, 36, 0.35);
    background: var(--green);
    color: #fff;
}

.card .card-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        color var(--dur-base) var(--ease-out),
        box-shadow var(--dur-base) var(--ease-out);
}

.card:hover .card-icon {
    transform: translateY(-6px) scale(1.18);
    color: var(--green);
    filter: drop-shadow(0 6px 12px rgba(133, 195, 36, 0.4));
}

/* Image inside a card */
.card .card-media,
.project-item .project-media {
    overflow: hidden;
    position: relative;
    border-radius: var(--radius) var(--radius) 0 0;
}

.card .card-media img,
.project-item .project-media img {
    transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.card:hover .card-media img,
.project-item:hover .project-media img {
    transform: scale(1.1);
}

.card .card-link i,
.project-item .card-link i {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .card-link i,
.project-item:hover .card-link i {
    transform: translateX(8px) scale(1.2);
}

/* --------------------------------------------------------------------------
   9. CARD GRIDS & STANDALONE CARDS — STAGGERED SCROLL REVEAL
   -------------------------------------------------------------------------- */
.card-grid > *,
.solution-grid > *,
.industry-grid > *,
.project-grid > *,
.value-blocks > *,
.values-grid > *,
.culture-grid > *,
.card,
.project-item,
.industry-card,
.culture-card,
.value-block {
    opacity: 1;
    transform: none;
}

.js-ready .card-grid > *,
.js-ready .solution-grid > *,
.js-ready .industry-grid > *,
.js-ready .project-grid > *,
.js-ready .value-blocks > *,
.js-ready .values-grid > *,
.js-ready .culture-grid > *,
.js-ready .card:not(.is-visible):not(#contact-details .card),
.js-ready .project-item:not(.is-visible),
.js-ready .industry-card:not(.is-visible),
.js-ready .culture-card:not(.is-visible),
.js-ready .value-block:not(.is-visible) {
    opacity: 0;
    transform: translate3d(-65px, 0, 0) scale(0.96);
    will-change: opacity, transform;
}

.js-ready .card-grid.is-visible > *,
.js-ready .solution-grid.is-visible > *,
.js-ready .industry-grid.is-visible > *,
.js-ready .project-grid.is-visible > *,
.js-ready .value-blocks.is-visible > *,
.js-ready .values-grid.is-visible > *,
.js-ready .culture-grid.is-visible > *,
.js-ready .card.is-visible,
.js-ready .is-visible .card,
.js-ready [data-reveal].is-visible .card,
.js-ready .project-item.is-visible,
.js-ready .is-visible .project-item,
.js-ready .industry-card.is-visible,
.js-ready .culture-card.is-visible,
.js-ready .value-block.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    transition:
        opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-ready .card-grid.is-visible > *:nth-child(1),
.js-ready .solution-grid.is-visible > *:nth-child(1),
.js-ready .industry-grid.is-visible > *:nth-child(1),
.js-ready .project-grid.is-visible > *:nth-child(1),
.js-ready .value-blocks.is-visible > *:nth-child(1),
.js-ready .values-grid.is-visible > *:nth-child(1),
.js-ready .culture-grid.is-visible > *:nth-child(1) {
    transition-delay: 0.06s;
}

.js-ready .card-grid.is-visible > *:nth-child(2),
.js-ready .solution-grid.is-visible > *:nth-child(2),
.js-ready .industry-grid.is-visible > *:nth-child(2),
.js-ready .project-grid.is-visible > *:nth-child(2),
.js-ready .value-blocks.is-visible > *:nth-child(2),
.js-ready .values-grid.is-visible > *:nth-child(2),
.js-ready .culture-grid.is-visible > *:nth-child(2) {
    transition-delay: 0.14s;
}

.js-ready .card-grid.is-visible > *:nth-child(3),
.js-ready .solution-grid.is-visible > *:nth-child(3),
.js-ready .industry-grid.is-visible > *:nth-child(3),
.js-ready .project-grid.is-visible > *:nth-child(3),
.js-ready .value-blocks.is-visible > *:nth-child(3),
.js-ready .values-grid.is-visible > *:nth-child(3),
.js-ready .culture-grid.is-visible > *:nth-child(3) {
    transition-delay: 0.22s;
}

.js-ready .card-grid.is-visible > *:nth-child(4),
.js-ready .solution-grid.is-visible > *:nth-child(4),
.js-ready .industry-grid.is-visible > *:nth-child(4),
.js-ready .project-grid.is-visible > *:nth-child(4),
.js-ready .value-blocks.is-visible > *:nth-child(4),
.js-ready .values-grid.is-visible > *:nth-child(4),
.js-ready .culture-grid.is-visible > *:nth-child(4) {
    transition-delay: 0.30s;
}

.js-ready .card-grid.is-visible > *:nth-child(5),
.js-ready .solution-grid.is-visible > *:nth-child(5),
.js-ready .industry-grid.is-visible > *:nth-child(5),
.js-ready .project-grid.is-visible > *:nth-child(5) {
    transition-delay: 0.38s;
}

.js-ready .card-grid.is-visible > *:nth-child(6),
.js-ready .solution-grid.is-visible > *:nth-child(6),
.js-ready .industry-grid.is-visible > *:nth-child(6),
.js-ready .project-grid.is-visible > *:nth-child(6) {
    transition-delay: 0.46s;
}

.js-ready .card-grid.is-visible > *:nth-child(7),
.js-ready .solution-grid.is-visible > *:nth-child(7),
.js-ready .industry-grid.is-visible > *:nth-child(7),
.js-ready .project-grid.is-visible > *:nth-child(7) {
    transition-delay: 0.54s;
}

.js-ready .card-grid.is-visible > *:nth-child(8),
.js-ready .solution-grid.is-visible > *:nth-child(8),
.js-ready .industry-grid.is-visible > *:nth-child(8),
.js-ready .project-grid.is-visible > *:nth-child(8) {
    transition-delay: 0.62s;
}

.js-ready .card-grid.is-visible > *:nth-child(9),
.js-ready .industry-grid.is-visible > *:nth-child(9) {
    transition-delay: 0.70s;
}

.js-ready .card-grid.is-visible > *:nth-child(10),
.js-ready .industry-grid.is-visible > *:nth-child(10) {
    transition-delay: 0.78s;
}

/* --------------------------------------------------------------------------
   10. SECTION HEADING REVEAL
   -------------------------------------------------------------------------- */
.section-heading {
    position: relative;
}

.section-heading .eyebrow {
    display: inline-block;
    opacity: 1;
}

.js-ready .section-heading .eyebrow {
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity var(--dur-reveal) var(--ease-out),
        transform var(--dur-reveal) var(--ease-out);
}

.js-ready .section-heading.is-visible .eyebrow {
    opacity: 1;
    transform: none;
}

.js-ready .section-heading h2 {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity var(--dur-reveal) var(--ease-out) 0.1s,
        transform var(--dur-reveal) var(--ease-out) 0.1s;
}

.js-ready .section-heading.is-visible h2 {
    opacity: 1;
    transform: none;
}

.js-ready .section-heading p {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity var(--dur-reveal) var(--ease-out) 0.2s,
        transform var(--dur-reveal) var(--ease-out) 0.2s;
}

.js-ready .section-heading.is-visible p {
    opacity: 1;
    transform: none;
}

/* Underline accent that draws in */
.section-heading h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin-top: 14px;
    background: linear-gradient(90deg, var(--primary-green), var(--green));
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.65s var(--ease-out) 0.2s;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(133, 195, 36, 0.45);
}

.section-heading--center h2::after {
    margin-inline: auto;
    transform-origin: center;
}

.js-ready .section-heading.is-visible h2::after {
    transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   10B. SECTION SCROLLING & AMBIENT DEPTH
   -------------------------------------------------------------------------- */
.section {
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s var(--ease-out);
}

/* Smooth column entrance as sections scroll into view */
.js-ready .section .row > .col-lg-6[data-reveal]:first-child {
    transform: translate3d(-30px, 0, 0);
    opacity: 0;
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-ready .section .row > .col-lg-6[data-reveal]:last-child {
    transform: translate3d(30px, 0, 0);
    opacity: 0;
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.js-ready .section .row > .col-lg-6.is-visible[data-reveal] {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
}

/* Glowing laser beam separator between sections as you scroll */
.section-divider {
    position: relative;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(133, 195, 36, 0.22), transparent);
    overflow: hidden;
    margin: 0;
}

.section-divider::after {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(133, 195, 36, 0.85), #B6E670, transparent);
    animation: sectionDividerGlow 5s ease-in-out infinite;
}

@keyframes sectionDividerGlow {
    0% {
        left: -40%;
    }
    100% {
        left: 140%;
    }
}

/* --------------------------------------------------------------------------
   11. PROCESS TIMELINE — SIX-STAGE ANIMATION
   -------------------------------------------------------------------------- */
.process-step {
    opacity: 1;
    transform: none;
}

.js-ready .process-step {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
}

.js-ready .process-step.is-visible {
    opacity: 1;
    transform: none;
    transition:
        opacity var(--dur-reveal) var(--ease-out),
        transform var(--dur-reveal) var(--ease-out);
}

/* Connector line between steps draws in with flowing energy pulse */
.process-step::after {
    background: linear-gradient(90deg, var(--green), #B6E670, var(--green)) !important;
    background-size: 200% 100% !important;
    animation: processEnergyRun 2.5s linear infinite;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-slow) var(--ease-out) 0.2s;
}

@keyframes processEnergyRun {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.process-step.is-visible::after {
    transform: scaleX(1);
}

/* Number badge pop */
.process-num {
    display: inline-block;
    transition: transform var(--dur-base) var(--ease-out),
        color var(--dur-base) var(--ease-out);
}

.process-step.is-visible .process-num {
    animation: numPop 0.6s var(--ease-out) 0.15s both;
}

@keyframes numPop {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }

    60% {
        opacity: 1;
        transform: scale(1.08);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* --------------------------------------------------------------------------
   12. ANIMATED SVG FLOW LINES (process diagrams)
   -------------------------------------------------------------------------- */
.svg-flow-line {
    stroke-dasharray: 8 6;
    stroke-dashoffset: 0;
    animation: flowDash 3.6s linear infinite;
}

@keyframes flowDash {
    to {
        stroke-dashoffset: -56;
    }
}

.svg-flow-line--slow {
    animation-duration: 6s;
}

/* Draw-in line (for arrows that appear once) */
.svg-draw {
    stroke-dasharray: var(--len, 400);
    stroke-dashoffset: var(--len, 400);
    transition: stroke-dashoffset 1.4s var(--ease-out);
}

.is-visible .svg-draw {
    stroke-dashoffset: 0;
}

/* Pulsing node dots on diagrams */
.svg-node {
    animation: nodePulse 2.4s var(--ease-in-out) infinite;
    transform-origin: center;
}

@keyframes nodePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.18);
        opacity: 0.75;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --------------------------------------------------------------------------
   13. PARALLAX IMAGE WRAPPER
   -------------------------------------------------------------------------- */
.parallax {
    overflow: hidden;
    position: relative;
}

.parallax>img {
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transition: transform 0.1s linear;
}

/* --------------------------------------------------------------------------
   14. IMAGE MASK / REVEAL
   -------------------------------------------------------------------------- */
.img-mask {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface-2, #f3f6f9);
}

.js-ready .img-mask {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    will-change: opacity, transform;
}

.js-ready .img-mask.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition:
        opacity 0.35s var(--ease-out),
        transform 0.35s var(--ease-out);
}

.img-mask img {
    transform: none;
    transition: transform 0.35s var(--ease-out);
    will-change: transform;
}

.img-mask.is-visible img {
    transform: none;
}

/* Stagger value cards inside detail sections */
.value-card {
    transition:
        transform 0.35s var(--ease-out),
        box-shadow 0.35s var(--ease-out),
        border-color 0.35s var(--ease-out);
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(10, 51, 30, 0.12), 0 0 20px rgba(133, 195, 36, 0.15);
    border-color: rgba(133, 195, 36, 0.45);
}

.value-card .value-num {
    display: inline-block;
    transition: transform 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.value-card:hover .value-num {
    transform: scale(1.12);
    color: var(--green);
}

.js-ready [data-reveal] .value-card {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    will-change: opacity, transform;
}

.js-ready [data-reveal].is-visible .value-card {
    opacity: 1;
    transform: none;
    transition:
        opacity 0.55s var(--ease-out),
        transform 0.55s var(--ease-out);
}

.js-ready [data-reveal].is-visible .col-sm-6:nth-child(1) .value-card,
.js-ready [data-reveal].is-visible .row > *:nth-child(1) .value-card {
    transition-delay: 0.08s;
}

.js-ready [data-reveal].is-visible .col-sm-6:nth-child(2) .value-card,
.js-ready [data-reveal].is-visible .row > *:nth-child(2) .value-card {
    transition-delay: 0.18s;
}

.js-ready [data-reveal].is-visible .col-sm-6:nth-child(3) .value-card,
.js-ready [data-reveal].is-visible .row > *:nth-child(3) .value-card {
    transition-delay: 0.28s;
}

.js-ready [data-reveal].is-visible .col-sm-6:nth-child(4) .value-card,
.js-ready [data-reveal].is-visible .row > *:nth-child(4) .value-card {
    transition-delay: 0.38s;
}

/* --------------------------------------------------------------------------
   15. COUNTERS (only used for verified numerical data)
   -------------------------------------------------------------------------- */
.counter {
    font-variant-numeric: tabular-nums;
    display: inline-block;
}

/* --------------------------------------------------------------------------
   16. LINK UNDERLINE SLIDE (in-body links)
   -------------------------------------------------------------------------- */
.link-underline {
    position: relative;
    color: var(--blue);
    text-decoration: none;
}

.link-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--dur-base) var(--ease-out);
}

.link-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --------------------------------------------------------------------------
   17. FOCUS-VISIBLE ACCENT (keeps accessibility, adds polish)
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.accordion-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    border-radius: 6px;
    transition: outline-offset var(--dur-fast) var(--ease-out);
}

/* --------------------------------------------------------------------------
   18. LOADING SPINNER (used on form submit)
   -------------------------------------------------------------------------- */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
    vertical-align: -3px;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --------------------------------------------------------------------------
   19. ACCORDION (FAQ) — SMOOTH OPEN
   -------------------------------------------------------------------------- */
.accordion-button {
    transition:
        background-color var(--dur-base) var(--ease-out),
        color var(--dur-base) var(--ease-out),
        box-shadow var(--dur-base) var(--ease-out);
}

.accordion-button::after {
    transition: transform var(--dur-base) var(--ease-out);
}

.accordion-collapse {
    transition: height var(--dur-base) var(--ease-out);
}

/* --------------------------------------------------------------------------
   20. STICKY SECTION NAV (Solutions page)
   -------------------------------------------------------------------------- */
.section-nav {
    transition:
        background-color var(--dur-base) var(--ease-out),
        box-shadow var(--dur-base) var(--ease-out);
}

.section-nav a {
    position: relative;
    transition: color var(--dur-base) var(--ease-out);
}

.section-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-base) var(--ease-out);
}

.section-nav a:hover::after,
.section-nav a.is-active::after {
    transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   21. FOOTER ACCENT (removed per user request)
   -------------------------------------------------------------------------- */
.footer-accent {
    display: none !important;
}

/* --------------------------------------------------------------------------
   22. PROJECT FILTER TRANSITION
   -------------------------------------------------------------------------- */
.project-item {
    transition:
        opacity var(--dur-base) var(--ease-out),
        transform var(--dur-base) var(--ease-out);
}

.project-item.is-hidden {
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

/* --------------------------------------------------------------------------
   23. SCROLL-CUE (homepage hero, optional)
   -------------------------------------------------------------------------- */
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    z-index: 5;
}

.scroll-cue::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 3px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollDot 1.8s var(--ease-in-out) infinite;
}

@keyframes scrollDot {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }

    40% {
        opacity: 1;
    }

    80% {
        opacity: 0;
        transform: translate(-50%, 12px);
    }

    100% {
        opacity: 0;
    }
}

/* --------------------------------------------------------------------------
   24. UTILITY — DELAY CLASSES
   -------------------------------------------------------------------------- */
.delay-1 {
    transition-delay: 0.05s !important;
}

.delay-2 {
    transition-delay: 0.10s !important;
}

.delay-3 {
    transition-delay: 0.15s !important;
}

.delay-4 {
    transition-delay: 0.20s !important;
}

.delay-5 {
    transition-delay: 0.25s !important;
}

.delay-6 {
    transition-delay: 0.30s !important;
}

/* --------------------------------------------------------------------------
   25. ADVANCED GREENERY & INTERACTIVE MOTION SYSTEM
   -------------------------------------------------------------------------- */

/* A. Top Viewport Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3.5px;
    background: linear-gradient(90deg, #0A331E 0%, #1C7C43 45%, #85C324 85%, #B6E670 100%);
    z-index: 10002;
    transform-origin: left;
    transform: scaleX(0);
    will-change: transform;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(133, 195, 36, 0.7), 0 0 4px rgba(28, 124, 67, 0.5);
    transition: transform 0.08s linear;
}

/* B. Organic Morphing Eco Blobs */
.shape-blob {
    animation: organicMorph 14s ease-in-out infinite alternate;
    will-change: border-radius, transform;
}

.shape-blob--green {
    animation-delay: -7s;
}

@keyframes organicMorph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    33% {
        border-radius: 35% 65% 60% 40% / 55% 45% 55% 45%;
        transform: translate3d(24px, -20px, 0) rotate(45deg);
    }
    66% {
        border-radius: 70% 30% 45% 55% / 35% 30% 70% 65%;
        transform: translate3d(-18px, 16px, 0) rotate(90deg);
    }
    100% {
        border-radius: 40% 60% 50% 50% / 45% 45% 55% 55%;
        transform: translate3d(12px, -10px, 0) rotate(135deg);
    }
}

/* C. Floating Contact Buttons Radar Ripple Waves */
.floating-contact .contact-btn {
    position: relative;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.floating-contact .contact-btn::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    pointer-events: none;
    animation: contactRadar 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.floating-contact .whatsapp::before {
    border-color: #25D366;
    animation-delay: 0s;
}

.floating-contact .call::before {
    border-color: #E53935;
    animation-delay: 1.2s;
}

@keyframes contactRadar {
    0% {
        transform: scale(0.94);
        opacity: 0.85;
    }
    70% {
        transform: scale(1.48);
        opacity: 0;
    }
    100% {
        transform: scale(1.52);
        opacity: 0;
    }
}

/* D. Value Blocks & Stat Icons Living Green Micro-Interactions */
.value-block .value-icon,
.stat .stat-value {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s var(--ease-out),
        color 0.4s var(--ease-out),
        background-color 0.4s var(--ease-out);
}

.value-block:hover .value-icon {
    transform: translateY(-6px) scale(1.12);
    box-shadow: 0 10px 24px rgba(28, 124, 67, 0.28), 0 0 16px rgba(133, 195, 36, 0.38);
    background: var(--green-light);
    color: var(--forest);
}

.stat:hover .stat-value {
    transform: scale(1.08);
    color: var(--primary-green);
    text-shadow: 0 0 12px rgba(133, 195, 36, 0.35);
}

/* E. Eyebrow Subtle Breath & Expand on Hover */
.eyebrow::before {
    transition: width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.45s var(--ease-out);
}

.section-heading:hover .eyebrow::before,
.hero-content:hover .eyebrow::before {
    width: 32px;
    box-shadow: 0 0 8px rgba(133, 195, 36, 0.8);
}

/* F. Floating Leaf / Organic Icon Sway */
.topbar-item:hover i,
.project-meta-item:hover i {
    animation: leafSway 0.6s ease-in-out;
}

@keyframes leafSway {
    0%, 100% {
        transform: rotate(0deg) scale(1.15);
    }
    30% {
        transform: rotate(-12deg) scale(1.2);
    }
    70% {
        transform: rotate(10deg) scale(1.2);
    }
}

/* G. Sticky Section Nav Item Pulse Glow */
.section-nav ul li a {
    transition: color 0.3s ease, transform 0.3s ease;
}

.section-nav ul li a:hover {
    transform: translateY(-2px);
}

.section-nav ul li a.is-active {
    text-shadow: 0 0 10px rgba(133, 195, 36, 0.4);
}

/* --------------------------------------------------------------------------
   26. REDUCED-MOTION — HARD STOP FOR ALL DECORATIVE MOTION
   Essential content remains visible; only motion is disabled.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }

    .hero-slide {
        animation: none !important;
    }

    .hero-overlay::after {
        animation: none !important;
        display: none;
    }

    .svg-flow-line,
    .svg-node,
    .float-y,
    .float-slow,
    .footer-accent,
    .scroll-cue::after {
        animation: none !important;
    }

    /* Ensure nothing is left hidden */
    [data-reveal],
    .reveal-fade,
    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal-zoom,
    .card-grid>*,
    .process-step,
    .section-heading .eyebrow,
    .section-heading h2,
    .section-heading p,
    .img-mask,
    .hero-content>* {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }
}

/* --------------------------------------------------------------------------
   26. NO-JS FALLBACK — everything visible, no motion dependencies
   -------------------------------------------------------------------------- */
.no-js [data-reveal],
.no-js .reveal-fade,
.no-js .reveal-up,
.no-js .reveal-left,
.no-js .reveal-right,
.no-js .reveal-zoom,
.no-js .card-grid>*,
.no-js .process-step,
.no-js .section-heading .eyebrow,
.no-js .section-heading h2,
.no-js .section-heading p,
.no-js .img-mask,
.no-js .hero-content>* {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
}

.no-js .hero-slide {
    animation: none !important;
}