/* =========================================
   BACKGROUND EFFECTS LIBRARY (REFINED)
   ========================================= */

/* Base Styles */
html {
    overflow-x: hidden;
}

body {
    background-color: transparent;
    position: relative;
    z-index: 1;
}

section {
    position: relative;
    /* overflow: hidden; */
}

/* Common Layers */
.effect-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

canvas.effect-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* =========================================
   HERO: BOKEH PARTICLES (Clean)
   ========================================= */
.hero-canvas-blur {
    /* filter: blur(80px); Removed for crisp "Jewel" look */
    opacity: 0.8;
    background: transparent;
    /* Keep the bokeh canvas strictly behind all section content
       (image is z-10, speech bubbles are z-20/z-40) on every screen size */
    z-index: 0 !important;
}

/* =========================================
   STORIES: FLOATING TEXT (CSS)
   ========================================= */
.effect-stories {
    overflow: hidden;
}

.floating-text {
    position: absolute;
    font-family: "Caveat", cursive;
    color: #56a031;
    font-weight: bold;
    opacity: 0.6;
    pointer-events: none;
    animation: floatUpStory var(--duration) linear infinite;
    bottom: -50px;
    white-space: nowrap;
    z-index: 0;
}

@keyframes floatUpStory {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-800px) rotate(15deg) scale(1.1);
        opacity: 0;
    }
}

/* =========================================
   ANALYSIS: TECH CIRCUIT
   A grid-based pattern that simulates circuit board
   paths with pulsing connection nodes.
   ========================================= */
.circuit-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image:
        linear-gradient(90deg, #56a031 0.5px, transparent 0.5px),
        linear-gradient(0deg, #56a031 0.5px, transparent 0.5px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
}

.circuit-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #56a031;
    border-radius: 50%;
    box-shadow: 0 0 10px #56a031;
    animation: pulseNode 12s infinite;
}

@keyframes pulseNode {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
}

/* =========================================
   BEHIND SCENES: FLOATING CLOUDS
   Soft, moving SVG clouds for the "Behind the Scenes"
   storytelling section.
   ========================================= */
#Clouds {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    height: 100%;
    overflow: hidden;
    animation: FadeInCloud 6s ease-out;
    user-select: none;
    pointer-events: none;
    z-index: 5;
}

@keyframes FadeInCloud {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.Cloud {
    position: absolute;
    width: 200px;
    height: auto;
    fill: hsla(40, 100%, 94%, 0.8);
    /* Creamy Color */
    animation-duration: 80s;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;
    animation-timing-function: linear;
    animation-name: FloatCloud, FadeFloatCloud;
    z-index: 1;
}

.Cloud.Foreground {
    width: 300px;
    z-index: 3;
    fill: hsla(40, 100%, 90%, 0.9);
}

.Cloud.Background {
    width: 150px;
    animation-duration: 140s;
    fill: hsla(40, 100%, 96%, 0.5);
}

@keyframes FloatCloud {
    from {
        transform: translateX(110vw) translateZ(0);
    }

    to {
        transform: translateX(-30vw) translateZ(0);
    }
}

@keyframes FadeFloatCloud {

    0%,
    100% {
        opacity: 0;
    }

    10%,
    90% {
        opacity: 1;
    }
}

/* Cloud Variations (Positioning \u0026 Delays) */
.Cloud:nth-child(1) {
    animation-delay: -12s;
    top: 10%;
}

.Cloud:nth-child(2) {
    animation-delay: -32s;
    top: 25%;
}

.Cloud:nth-child(3) {
    animation-delay: -52s;
    top: 40%;
}

.Cloud:nth-child(4) {
    animation-delay: -72s;
    top: 55%;
}

.Cloud:nth-child(5) {
    animation-delay: -92s;
    top: 70%;
}

.Cloud:nth-child(6) {
    animation-delay: -112s;
    top: 85%;
}

.Cloud:nth-child(7) {
    animation-delay: -22s;
    top: 15%;
}

.Cloud:nth-child(8) {
    animation-delay: -42s;
    top: 5%;
}

.Cloud:nth-child(9) {
    animation-delay: -62s;
    top: 75%;
}

/* =========================================
   NEWSLETTER: WARM BLOBS
   ========================================= */
.blob-news-1 {
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 40vw;
    height: 40vw;
    background: #ffe0b2;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    animation: morph-blob 40s infinite alternate;
}

.blob-news-2 {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 40vw;
    height: 40vw;
    background: #fff9c4;
    filter: blur(80px);
    opacity: 0.5;
    border-radius: 50%;
    animation: morph-blob 50s infinite alternate-reverse;
}

/* =========================================
   GLOBAL RIPPLE
   ========================================= */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(86, 160, 49, 0.3);
    transform: scale(0);
    animation: ripple-anim 0.6s ease-out forwards;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(86, 160, 49, 0.2);
}

@keyframes ripple-anim {
    to {
        transform: scale(3);
        opacity: 0;
    }
}

@keyframes morph-blob {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: rotate(0deg);
    }

    100% {
        border-radius: 60% 30% 30% 70% / 60% 40% 60% 40%;
        transform: rotate(20deg);
    }
}

/* =========================================
   PEEK INSIDE: SPARKLES
   ========================================= */

/* =========================================
   PEEK INSIDE: SPARKLES
   ========================================= */
.sparkle-bg {
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
}

/* Enhanced Analysis Styles */
.circuit-path {
    position: absolute;
    background: rgba(86, 160, 49, 0.4);
    box-shadow: 0 0 10px rgba(86, 160, 49, 0.2);
    z-index: 0;
}

@keyframes pulseNode {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.6);
        opacity: 0.9;
    }
}

/* =========================================
   OLI READS: ANIMATED POLYGON BORDER
   ========================================= */

/* Perimeter of the viewBox polygon \u2248 390 SVG units.
   A short 40-unit dash travels the full loop in 3s. */
.oli-border-travel {
    stroke-dasharray: 40 350;
    /* dash length, gap (gap = perimeter - dash) */
    stroke-dashoffset: 390;
    /* start at the beginning of the path */
    animation: oli-border-run 16s linear infinite;
}

/* Amber glow layer pulses in sync but slightly offset for depth */
.oli-border-glow {
    stroke-dasharray: 60 330;
    stroke-dashoffset: 390;
    animation: oli-border-run 16s linear infinite 0.4s,
        oli-border-pulse 6s ease-in-out infinite alternate;
}

/* Hide border animation on small screens to declutter */
@media (max-width: 1023px) {
    .oli-border-travel,
    .oli-border-glow,
    .purple-border-path,
    .newsletter-border-path,
    .privacy-border-path,
    .learning-border-path {
        display: none !important;
    }
}

@keyframes oli-border-run {
    to {
        stroke-dashoffset: -390;
        /* travel the full perimeter */
    }
}

@keyframes oli-border-pulse {
    from {
        stroke-opacity: 0.25;
        stroke-width: 1.2;
    }

    to {
        stroke-opacity: 0.65;
        stroke-width: 2.2;
    }
}

/* =========================================
   PURPLE PANEL: ANIMATED BORDER
   ========================================= */
.purple-border-path {
    stroke-dasharray: 40 350;
    stroke-dashoffset: 390;
    animation: purple-border-run 16s linear infinite;
}

.oli-border-glow.purple-border-path {
    stroke-dasharray: 60 330;
    stroke-dashoffset: 390;
    animation: purple-border-run 16s linear infinite 0.4s,
        purple-border-pulse 6s ease-in-out infinite alternate;
}

@keyframes purple-border-run {
    to {
        stroke-dashoffset: -390;
    }
}

@keyframes purple-border-pulse {
    from {
        stroke-opacity: 0.25;
        stroke-width: 1.2;
    }

    to {
        stroke-opacity: 0.65;
        stroke-width: 2.2;
    }
}

/* =========================================
   NEWSLETTER: ANIMATED BORDER
   ========================================= */
.newsletter-border-path {
    stroke-dasharray: 40 350;
    stroke-dashoffset: 390;
    animation: newsletter-border-run 16s linear infinite;
}

.oli-border-glow.newsletter-border-path {
    stroke-dasharray: 60 330;
    stroke-dashoffset: 390;
    animation: newsletter-border-run 16s linear infinite 0.4s,
        newsletter-border-pulse 6s ease-in-out infinite alternate;
}

@keyframes newsletter-border-run {
    to {
        stroke-dashoffset: -390;
    }
}

@keyframes newsletter-border-pulse {
    from {
        stroke-opacity: 0.25;
        stroke-width: 1.2;
    }

    to {
        stroke-opacity: 0.65;
        stroke-width: 2.2;
    }
}

/* =========================================
   PRIVACY SECTION: ANIMATED BORDER
   ========================================= */
.privacy-border-path {
    stroke-dasharray: 40 350;
    stroke-dashoffset: 390;
    animation: privacy-border-run 16s linear infinite;
}

.oli-border-glow.privacy-border-path {
    stroke-dasharray: 60 330;
    stroke-dashoffset: 390;
    animation: privacy-border-run 16s linear infinite 0.4s,
        privacy-border-pulse 6s ease-in-out infinite alternate;
}

@keyframes privacy-border-run {
    to {
        stroke-dashoffset: -390;
    }
}

@keyframes privacy-border-pulse {
    from {
        stroke-opacity: 0.25;
        stroke-width: 1.2;
    }

    to {
        stroke-opacity: 0.65;
        stroke-width: 2.2;
    }
}

/* =========================================
   LEARNING SECTION: ANIMATED BORDER
   ========================================= */
.learning-border-path {
    stroke-dasharray: 40 350;
    stroke-dashoffset: 390;
    animation: learning-border-run 16s linear infinite;
}

.oli-border-glow.learning-border-path {
    stroke-dasharray: 60 330;
    stroke-dashoffset: 390;
    animation: learning-border-run 16s linear infinite 0.4s,
        learning-border-pulse 6s ease-in-out infinite alternate;
}

@keyframes learning-border-run {
    to {
        stroke-dashoffset: -390;
    }
}

@keyframes learning-border-pulse {
    from {
        stroke-opacity: 0.25;
        stroke-width: 1.2;
    }

    to {
        stroke-opacity: 0.65;
        stroke-width: 2.2;
    }
}

/* =========================================
   BEHIND SCENES: AEROPLANE ANIMATION
   ========================================= */
.aeroplane-entry-wrapper {
    position: absolute;
    top: 50px;
    left: -400px;
    /* Start far left off-screen */
    z-index: 60;
    width: 180px;
    pointer-events: none;
    animation: airplane-entry 24s cubic-bezier(0.15, 0.45, 0.25, 1) forwards;
}

@media (min-width: 1024px) {
    .aeroplane-entry-wrapper {
        width: 220px;
        top: 60px;
    }
}

/* Hover-specific positioning for mobile */
@media (max-width: 639px) {
    .aeroplane-entry-wrapper {
        top: 20px;
        width: 140px;
    }
}

.aeroplane-float-item {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    animation: airplane-float 8s ease-in-out infinite;
}

@keyframes airplane-entry {
    0% {
        left: -400px;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    100% {
        left: 5%;
        opacity: 1;
    }
}

@keyframes airplane-float {

    0%,
    100% {
        transform: translateY(0) rotate(1.5deg);
    }

    50% {
        transform: translateY(-25px) rotate(-1.5deg);
    }
}

/* Mobile specific aeroplane behavior */
.aeroplane-entry-wrapper-mobile {
    position: relative;
    top: 0;
    width: 200px;
    /* Slightly smaller for 375px screens */
    margin: 40px auto;
    z-index: 60;
    pointer-events: none;
    animation: airplane-entry-mobile 20s cubic-bezier(0.1, 0.4, 0.2, 1) forwards;
}

@keyframes airplane-entry-mobile {
    0% {
        transform: translateX(-120vw);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* =========================================
   OLI SCORE: BIKE ANIMATION
   ========================================= */
.bike-entry-wrapper {
    position: absolute;
    top: 3%;
    right: -450px;
    z-index: 40;
    width: 100px;
    pointer-events: none;
    animation: bike-entry 16s cubic-bezier(0.15, 0.45, 0.25, 1) forwards;
}

@media (min-width: 768px) {
    .bike-entry-wrapper {
        width: 140px;
        top: 4%;
    }
}

@media (min-width: 1024px) {
    .bike-entry-wrapper {
        width: 220px;
        top: 5%;
    }
}

.bike-entry-wrapper2 {
    position: absolute;
    top: 10%;
    right: -450px;
    z-index: 100;
    width: 140px;
    pointer-events: none;
    animation: bike-entry 16s cubic-bezier(0.15, 0.45, 0.25, 1) forwards;
}

@media (min-width: 768px) {
    .bike-entry-wrapper2 {
        width: 140px;
        top: -45%;
    }
}

@media (min-width: 1024px) {
    .bike-entry-wrapper2 {
        width: 220px;
        top: -30%;
    }
}

.bike-float-item {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
    animation: bike-float 8s ease-in-out infinite;
}

@keyframes bike-entry {
    0% {
        right: -450px;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        right: 2%;
        opacity: 1;
    }
}

@keyframes bike-float {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-30px) rotate(2deg);
    }
}

/* =========================================
   STORY 10: AEROPLANE ENTRY ANIMATION
   ========================================= */
.aeroplane-story10-entry {
    animation: airplane-story10-entry 6s cubic-bezier(0.15, 0.45, 0.25, 1) forwards;
}

@keyframes airplane-story10-entry {
    0% {
        transform: translate(calc(-50% - 50px), -20px) scale(0.8);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, 0) scale(1);
        opacity: 1;
    }
}

/* =========================================
   GEOMETRIC: POSTCARD CUBES (Canvas)
   ========================================= */
canvas[data-effect="postcard-cubes"] {
    z-index: 0;
}


@keyframes floatCube {
    0% {
        transform: translateY(0) rotate(45deg);
        opacity: 0;
    }

    20% {
        opacity: var(--max-opacity, 0.5);
    }

    80% {
        opacity: var(--max-opacity, 0.5);
    }

    100% {
        transform: translateY(var(--translate-y, -800px)) rotate(225deg);
        opacity: 0;
    }
}

/* =========================================
   REAL-TIME: RISING BUBBLES
   ========================================= */
.bubbles-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bubble {
    position: absolute;
    bottom: -80px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: riseBubble 20s linear infinite;
    pointer-events: none;
}

.bubble:nth-child(1) {
    width: 40px;
    height: 40px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 16s;
}

.bubble:nth-child(2) {
    width: 60px;
    height: 60px;
    left: 30%;
    animation-delay: 1s;
    animation-duration: 24s;
}

.bubble:nth-child(3) {
    width: 50px;
    height: 50px;
    left: 50%;
    animation-delay: 2s;
    animation-duration: 20s;
}

.bubble:nth-child(4) {
    width: 70px;
    height: 70px;
    left: 70%;
    animation-delay: 3s;
    animation-duration: 28s;
}

.bubble:nth-child(5) {
    width: 30px;
    height: 30px;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 18s;
}

.bubble:nth-child(6) {
    width: 80px;
    height: 80px;
    left: 40%;
    animation-delay: 5s;
    animation-duration: 30s;
}

.bubble:nth-child(7) {
    width: 20px;
    height: 20px;
    left: 60%;
    animation-delay: 6s;
    animation-duration: 14s;
}

.bubble:nth-child(8) {
    width: 90px;
    height: 90px;
    left: 80%;
    animation-delay: 7s;
    animation-duration: 32s;
}

.bubble:nth-child(10) {
    width: 60px;
    height: 60px;
    left: 85%;
    animation-delay: 9s;
    animation-duration: 26s;
}

.bubble:nth-child(9) {
    width: 50px;
    height: 50px;
    left: 15%;
    animation-delay: 8s;
    animation-duration: 22s;
}


@keyframes riseBubble {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-900px) scale(1.2);
        opacity: 0;
    }
}

/* =========================================
   PURPLE PANEL: BUBBLE DOTS ANIMATION
   ========================================= */
.purple-panel-bubbles {
    z-index: 5;
}

.purple-panel-bubbles .bubble {
    background: rgba(255, 255, 255, 0.5);
    /* White bubbles for visibility on purple background */
}

/* =========================================
   NEWSLETTER: GOOEY BUBBLES
   ========================================= */
.gooey-bubbles-container {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    height: 80px;
    background: #2a650c;
    filter: url("#blob");
    z-index: 44;
    pointer-events: none;
}

.gooey-bubble {
    position: absolute;
    left: var(--position, 50%);
    background: #2a650c;
    border-radius: 100%;
    animation:
        bubble-size var(--time, 4s) ease-in infinite var(--delay, 0s),
        bubble-move var(--time, 4s) ease-in infinite var(--delay, 0s);
    transform: translate(-50%, 100%);
    bottom: 0;
}

@keyframes bubble-size {

    0%,
    75% {
        width: var(--size, 2rem);
        height: var(--size, 2rem);
    }

    100% {
        width: 0rem;
        height: 0rem;
    }
}

@keyframes bubble-move {
    0% {
        bottom: -2rem;
    }

    100% {
        bottom: var(--distance, 15rem);
    }
}

/* =========================================
   STORY 4: GEOMETRIC ANIMATION
   ========================================= */
.geometric-background-container {
    position: absolute;
    left: 250px !important;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.geometric-shapes-wrapper,
.particles-wrapper {
    position: absolute;
    inset: 0;
}

.shape {
    position: absolute;
    opacity: 0.22;
    transform-origin: center;
    pointer-events: none;
}

.shape.square {
    width: clamp(20px, 3vw, 40px);
    height: clamp(20px, 3vw, 40px);
    background: #2d5e15;
    animation: rotate 20s infinite linear;
}

.shape.circle {
    width: clamp(30px, 4vw, 60px);
    height: clamp(30px, 4vw, 60px);
    border-radius: 50%;
    background: #d6722c;
    animation: pulse 15s infinite alternate;
}

.shape.triangle {
    width: 0;
    height: 0;
    border-left: clamp(12px, 2vw, 25px) solid transparent;
    border-right: clamp(12px, 2vw, 25px) solid transparent;
    border-bottom: clamp(25px, 4vw, 50px) solid #c9a41e;
    animation: float 12s infinite ease-in-out;
}

.shape.rectangle {
    width: clamp(40px, 6vw, 80px);
    height: clamp(15px, 2.5vw, 30px);
    background: #4d8e31;
    animation: slide-shape 18s infinite linear;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.25;
    }

    100% {
        transform: scale(1);
        opacity: 0.1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) translateX(20px) rotate(180deg);
    }

    100% {
        transform: translateY(0px) translateX(0px) rotate(360deg);
    }
}

@keyframes slide-shape {
    0% {
        transform: translateX(-50px) rotate(0deg);
    }

    50% {
        transform: translateX(50px) rotate(180deg);
    }

    100% {
        transform: translateX(-50px) rotate(360deg);
    }
}

.particle-dot {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: #2d5e15;
    opacity: 0.4;
    border-radius: 50%;
    animation: sparkle-dot 8s infinite linear;
}

@keyframes sparkle-dot {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 0.7;
    }
}

.geometric-gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(255, 243, 234, 0.6) 80%);
    z-index: 5;
    pointer-events: none;
}

/* =========================================
   STORY 10: EXPANDING SQUARES (Adapted 'culd' effect)
   ========================================= */
.expanding-squares-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.expanding-square {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(86, 160, 49, 0.45);
    transform-origin: center;
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    animation: expanding-square-anim 12s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

@keyframes expanding-square-anim {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0.1;
    }

    15% {
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(40) rotate(360deg);
        opacity: 0;
    }
}


/* =========================================
   STORY 1: FALLING SHAPES
   ========================================= */
.falling-shapes-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.moving-shape {
    position: absolute;
    top: -300px;
    aspect-ratio: 1;
    opacity: 0;
    z-index: -1;
    animation: rotate-fall 8s linear forwards;
    pointer-events: none;
    border-radius: 0;
    will-change: transform, opacity, border-radius;
}

@keyframes rotate-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        border-radius: 0%;
        opacity: 0;
    }

    15% {
        opacity: 0.3;
    }

    50% {
        border-radius: 50%;
        opacity: 0.4;
    }

    85% {
        opacity: 0.2;
    }

    100% {
        transform: translateY(120vh) rotate(720deg);
        border-radius: 0%;
        opacity: 0;
    }
}

/* =========================================
   CUBE ANIMATION EFFECT
   ========================================= */



/* =========================================
   SCORE SUMMARY: PARTICLE BACKGROUND EFFECT
   ========================================= */
.particle-bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: transparent;
}

/* =========================================
   BEHIND SCENES: PERLIN NOISE LINES BACKGROUND
   ========================================= */
.perlin-lines-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: transparent;
}

/* =========================================
   APP SCREENSHOTS: PHYSICS SIMULATION BACKGROUND
   ========================================= */
.physics-simulation-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: transparent;
    display: block;
}

/* =========================================
   DELAUNAY TRIANGULATION BACKGROUND
   ========================================= */
#delaunay-bg {
    border-radius: inherit;
}

#delaunay-bg g {
    mix-blend-mode: lighten;
}

#delaunay-bg polygon {
    stroke: none;
    fill: white;
}

/* =========================================
   ANTIGRAVITY FLOW PARTICLES
   ========================================= */
.antigravity-particles-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.antigravity-shape {
    display: block;
    position: absolute;
    width: 24px;
    height: 24px;
    transform: translateZ(0);
    will-change: transform;
    opacity: 0.5;
}

.shape-pentahedron {
    fill: #56a031;
    width: 28px;
    height: 28px;
    opacity: 0.35;
}

.shape-rhombus path {
    fill: #56a031;
    stroke: #56a031;
}

.shape-cross path {
    fill: #FDBD00;
}

.shape-circle path {
    fill: #ED412D;
    opacity: 0.6;
}

.shape-point path {
    fill: #8491A3;
}



/* =========================================
   REAL-TIME: PULSING DOTS EFFECT
   ========================================= */
@property --stopA {
    syntax: '<percentage>';
    initial-value: 0%;
    inherits: true;
}

@property --stopB {
    syntax: '<percentage>';
    initial-value: 0%;
    inherits: true;
}

.dots {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;

    --dot: radial-gradient(closest-side, #777, #fff calc(100%/sqrt(2)));
    --pattern: var(--dot) 0 0/ 2em 2em, var(--dot) 1em 1em/ 2em 2em;
    --map: radial-gradient(circle at 0% 0%,
            #888 0%,
            #fff var(--stopA),
            #888 var(--stopB),
            #fff 100%);

    background:
        var(--pattern),
        var(--map);
    background-blend-mode: multiply;
    mix-blend-mode: multiply;
    filter: contrast(24);
    animation: pulseDots 12s linear infinite;
    transform-origin: center;
    opacity: 0.15;
}

@keyframes pulseDots {
    0% {
        --stopA: 0%;
        --stopB: 0%;
    }

    50% {
        --stopA: 0%;
        --stopB: 100%;
    }

    100% {
        --stopA: 100%;
        --stopB: 100%;
    }
}

.coalesce-canvas {
    display: block;
    height: auto;
    width: 100%;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* =========================================
   SWEET BACKGROUND MAGIC (Replaces 3D RING LOADER)
   ========================================= */
.example-box {
    background-color: transparent;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 85%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    background-size: cover;
    /* border-radius: 50%; */
    z-index: 0;
    opacity: 0.4;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

@media (max-width: 1024px) {
    .example-box {
        left: 50%;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

.background-shapes {
    content: "";
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 5076px;
    background-image: linear-gradient(to bottom, #3A6C21, #C36B28, #C4AD3B, #3A6C21); /* Darker multi-color gradient */
    -webkit-mask-image: url(https://cdn2.hubspot.net/hubfs/53/Pricing%202017%20Assets/marketing/Header_Circles-1.svg);
    mask-image: url(https://cdn2.hubspot.net/hubfs/53/Pricing%202017%20Assets/marketing/Header_Circles-1.svg);
    -webkit-mask-size: 100%;
    mask-size: 100%;
    -webkit-mask-repeat: repeat;
    mask-repeat: repeat;
    animation: 60s infiniteScroll linear infinite;
}

@-webkit-keyframes infiniteScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -1692px, 0); }
}

@keyframes infiniteScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -1692px, 0); }
}

/* =========================================
   WHAT OLI CAN: CAMEL ANIMATION
   ========================================= */
.camel-entry-wrapper {
    position: absolute;
    top: 1%;
    right: -450px;
    z-index: 40;
    width: 140px;
    pointer-events: none;
    animation: camel-entry 16s cubic-bezier(0.15, 0.45, 0.25, 1) forwards;
}

@media (min-width: 768px) {
    .camel-entry-wrapper {
        width: 180px;
        top: 3%;
    }
}

@media (min-width: 1024px) {
    .camel-entry-wrapper {
        width: 220px;
        top: 5%;

    }
}

.camel-float-item {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.1));
    animation: bike-float 8s ease-in-out infinite;
}

@keyframes camel-entry {
    0% {
        right: -450px;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        right: 12%;
        opacity: 1;
    }
}


/* =========================================
   HOW OLI WORKS: SKATE ANIMATION
   ========================================= */
.skate-entry-wrapper {
    position: absolute;
    bottom: 5%;
    left: -450px;
    z-index: 40;
    width: 140px;
    pointer-events: none;
    animation: skate-entry 16s cubic-bezier(0.15, 0.45, 0.25, 1) forwards;
}

@media (min-width: 768px) {
    .skate-entry-wrapper {
        width: 220px;
        bottom: 8%;
    }
}

@media (min-width: 1024px) {
    .skate-entry-wrapper {
        width: 220px;
        bottom: -4%;
    }
}

.skate-float-item {
    width: 100%;
    height: auto;
    /* filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2)); */
    animation: bike-float 8s ease-in-out infinite;
}

@keyframes skate-entry {
    0% {
        left: -450px;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        left: 8%;
        opacity: 1;
    }
}

/* =========================================
   HOW OLI WORKS: TRAIN ANIMATION
   ========================================= */
.train-entry-wrapper {
    position: absolute;
    top: -2%;
    right: -450px;
    z-index: 15;
    width: 140px;
    pointer-events: none;
    animation: train-entry 18s cubic-bezier(0.15, 0.45, 0.25, 1) forwards;
}

@media (min-width: 768px) {
    .train-entry-wrapper {
        width: 180px;
        top: -5%;
    }
}

@media (min-width: 1024px) {
    .train-entry-wrapper {
        width: 220px;
        top: -8%;
    }
}

.train-float-item {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
    animation: bike-float 10s ease-in-out infinite;
}

@keyframes train-entry {
    0% {
        right: -450px;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        right: 15%;
        opacity: 1;
    }
}

/* =========================================
   WHY OLI EXIST: CAR ANIMATION
   ========================================= */
.car-entry-wrapper {
    position: absolute;
    bottom: -10%;
    right: -450px;
    z-index: 40;
    width: 140px;
    pointer-events: none;
    animation: car-entry 16s cubic-bezier(0.15, 0.45, 0.25, 1) forwards;
}

@media (min-width: 768px) {
    .car-entry-wrapper {
        width: 180px;
        bottom: -25%;
    }
}

@media (min-width: 1024px) {
    .car-entry-wrapper {
        width: 250px;
        bottom: -26%;
    }
}

.car-float-item {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.1));
    animation: bike-float 8s ease-in-out infinite;
}

@keyframes car-entry {
    0% {
        right: -450px;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        right: 5%;
        opacity: 1;
    }
}