:root {
  --grid-size: 32px;
  --grid-sub-size: 8px;
}
.homepage .what-we-do {
    margin-top: -80px; /* I feel the shame as you read this... */
    position: relative;
    padding: 150px 0;
    background-color: #0D0D0D;
    background-image:
        /* main horizontal lines */
        linear-gradient(
          rgba(255, 255, 255, 0.06) 1px,
          transparent 1px
        ),
        /* main vertical lines */
        linear-gradient(
          90deg,
          rgba(255, 255, 255, 0.06) 1px,
          transparent 1px
        ),
        /* subtle horizontal lines (sub-grid) */
        linear-gradient(
          rgba(255, 255, 255, 0.02) 1px,
          transparent 1px
        ),
        /* subtle vertical lines (sub-grid) */
        linear-gradient(
          90deg,
          rgba(255, 255, 255, 0.02) 1px,
          transparent 1px
        );
    background-size:
        var(--grid-size) var(--grid-size),
        var(--grid-size) var(--grid-size),
        var(--grid-sub-size) var(--grid-sub-size),
        var(--grid-sub-size) var(--grid-sub-size);
}
.homepage .what-we-do .vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,rgba(0, 0, 0, 1) 9%, rgba(181, 181, 181, 0) 50%, rgba(0, 0, 0, 1) 92%);
}
.homepage .what-we-do .left-decor {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: RGBA(217, 217, 217, 0.1);
    width: 110px;
    height: 65px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
    width: 0px;
}
.homepage .what-we-do.in-view .left-decor {
    width: 110px;
}
.homepage .what-we-do .left-decor::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 120px;
    width: 2px;
    height: 65px;
    background: RGBA(217, 217, 217, 0.1);
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.45s;
    transform: translateY(-50%);
    height: 0px;
}
.homepage .what-we-do.in-view .left-decor::after {
    height: 65px;
}
.homepage .what-we-do .content-gutters {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.homepage .what-we-do .text-section {
    max-width: 690px;
    will-change: transform;
}
.homepage .what-we-do .left-decor {
    will-change: transform;
}
.homepage .what-we-do .animation-block {
    will-change: transform;
}

/* Scroll animations for text section */
.homepage .what-we-do .text-section .title,
.homepage .what-we-do .text-section .paragraph,
.homepage .what-we-do .button {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.homepage .what-we-do.in-view .text-section .title {
    opacity: 1;
    transform: translateY(0);
}
.homepage .what-we-do.in-view .text-section .paragraph:not(.ascii) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}
.homepage .what-we-do.in-view .text-section .paragraph.ascii {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}
.homepage .what-we-do.in-view .button {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}
.homepage .what-we-do .text-section .title {
    position: relative;
    display: inline-block;
}
.homepage .what-we-do .text-section .title::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + 25px);
    width: 0;
    height: 1px;
    background: RGBA(255, 255, 255, 0.25);
    transform: translateY(-50%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}
.homepage .what-we-do.in-view .text-section .title::after {
    width: 75px;
}
.homepage .what-we-do .text-section b {
    color: white;
}
.homepage .what-we-do .text-section .ascii {
    margin-top: 15px;
    color: RGBA(255, 255, 255, 0.25);
}
.homepage .what-we-do .button {
    position: relative;
    color: white;
    background-color: RGBA(45, 45, 45, 0.57);
    padding: 5px 20px;
    padding-right: 30px;
    white-space: nowrap;
    cursor: pointer;
}
.homepage .what-we-do .button::after {
    content: "";
    background-color: RGBA(45, 45, 45, 0.57);
    position: absolute;
    top: 0;
    left: calc(100% + 5px);
    width: 2px;
    height: 100%;
}

/* Animation Block */
.homepage .what-we-do .animation-block {
    position: relative;
    display: flex;
    justify-content: space-around;
    padding: 0 25px;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: "Lexend";
    margin: 0 50px;
    height: 100px;
    width: 715px;
    border: 1px dashed RGBA(255, 255, 255, 0.25);
    background: linear-gradient(180deg,rgba(0, 0, 0, 0.4) 9%, rgba(181, 181, 181, 0) 50%, rgba(0, 0, 0, 0.4) 92%);
    border-top: none;
    border-bottom: none;
}
.homepage .what-we-do .animation-block .dot {
    position: relative;
    width: 5px;
    height: 5px;
    border-radius: 10px;
    background-color: white;
}
.homepage .what-we-do .animation-block .dot .char {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
}
.homepage .what-we-do .animation-block .line {
    position: relative;
    width: 20%;
    height: 1px;
    background-color: white;
    margin: 0 10px;
}

/* Animation States - Initial hidden state */
.homepage .what-we-do .animation-block .dot {
    opacity: 0;
}
.homepage .what-we-do .animation-block .dot .char {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
}
.homepage .what-we-do .animation-block .line {
    background: transparent;
}
.homepage .what-we-do .animation-block .line::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        white 0%,
        white 50%,
        rgba(255,255,255,0.6) 80%,
        transparent 100%
    );
    transform: scaleX(0);
    transform-origin: left center;
}
.homepage .what-we-do .animation-block .line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    transform: scaleX(0);
    transform-origin: left center;
}

/* Animated state */
.homepage .what-we-do .animation-block.animate .dot {
    animation: dotFadeIn 0.15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.homepage .what-we-do .animation-block.animate .dot .char {
    animation: charClipReveal 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.homepage .what-we-do .animation-block.animate .line::before {
    animation: lineTrace 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.homepage .what-we-do .animation-block.animate .line::after {
    animation: lineFill 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Staggered timing */
.homepage .what-we-do .animation-block.animate .dot:nth-child(1) { animation-delay: 0s; }
.homepage .what-we-do .animation-block.animate .dot:nth-child(1) .char { animation-delay: 0.1s; }
.homepage .what-we-do .animation-block.animate .line:nth-child(2)::before { animation-delay: 0.2s; }
.homepage .what-we-do .animation-block.animate .line:nth-child(2)::after { animation-delay: 0.25s; }
.homepage .what-we-do .animation-block.animate .dot:nth-child(3) { animation-delay: 0.5s; }
.homepage .what-we-do .animation-block.animate .dot:nth-child(3) .char { animation-delay: 0.6s; }
.homepage .what-we-do .animation-block.animate .line:nth-child(4)::before { animation-delay: 0.7s; }
.homepage .what-we-do .animation-block.animate .line:nth-child(4)::after { animation-delay: 0.75s; }
.homepage .what-we-do .animation-block.animate .dot:nth-child(5) { animation-delay: 1.0s; }
.homepage .what-we-do .animation-block.animate .dot:nth-child(5) .char { animation-delay: 1.1s; }
.homepage .what-we-do .animation-block.animate .line:nth-child(6)::before { animation-delay: 1.2s; }
.homepage .what-we-do .animation-block.animate .line:nth-child(6)::after { animation-delay: 1.25s; }
.homepage .what-we-do .animation-block.animate .dot:nth-child(7) { animation-delay: 1.5s; }
.homepage .what-we-do .animation-block.animate .dot:nth-child(7) .char { animation-delay: 1.6s; }
.homepage .what-we-do .animation-block.animate .line:nth-child(8)::before { animation-delay: 1.7s; }
.homepage .what-we-do .animation-block.animate .line:nth-child(8)::after { animation-delay: 1.75s; }
.homepage .what-we-do .animation-block.animate .dot:nth-child(9) { animation-delay: 2.0s; }
.homepage .what-we-do .animation-block.animate .dot:nth-child(9) .char { animation-delay: 2.1s; }

/* Completed state - lock in final state and add subtle wave */
.homepage .what-we-do .animation-block.animate.complete .dot {
    opacity: 1;
    animation: subtleWave 3s ease-in-out infinite;
}
.homepage .what-we-do .animation-block.animate.complete .line::after {
    transform: scaleX(1);
    animation: subtleWave 3s ease-in-out infinite;
}
.homepage .what-we-do .animation-block.animate.complete .line::before {
    display: none;
}
.homepage .what-we-do .animation-block.animate.complete .dot:nth-child(1) { animation-delay: 0s; }
.homepage .what-we-do .animation-block.animate.complete .line:nth-child(2)::after { animation-delay: 0.15s; }
.homepage .what-we-do .animation-block.animate.complete .dot:nth-child(3) { animation-delay: 0.3s; }
.homepage .what-we-do .animation-block.animate.complete .line:nth-child(4)::after { animation-delay: 0.45s; }
.homepage .what-we-do .animation-block.animate.complete .dot:nth-child(5) { animation-delay: 0.6s; }
.homepage .what-we-do .animation-block.animate.complete .line:nth-child(6)::after { animation-delay: 0.75s; }
.homepage .what-we-do .animation-block.animate.complete .dot:nth-child(7) { animation-delay: 0.9s; }
.homepage .what-we-do .animation-block.animate.complete .line:nth-child(8)::after { animation-delay: 1.05s; }
.homepage .what-we-do .animation-block.animate.complete .dot:nth-child(9) { animation-delay: 1.2s; }

/* Keyframes */
@keyframes dotFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes charClipReveal {
    from {
        opacity: 1;
        clip-path: inset(0 100% 0 0);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

@keyframes lineTrace {
    from { transform: scaleX(0); }
    to { transform: scaleX(1.1); }
}

@keyframes lineFill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes subtleWave {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===========================================
   Responsive Styles
   =========================================== */

/* Stack vertically */
@media (max-width: 1350px) {
    .homepage .what-we-do {
        padding: 100px 0;
    }

    .homepage .what-we-do .content-gutters {
        flex-direction: column;
        align-items: flex-start;
        gap: 50px;
    }

    .homepage .what-we-do .text-section {
        max-width: 100%;
    }

    .homepage .what-we-do .animation-block {
        width: 95%;
        max-width: 700px;
        margin: 0;
        align-self: flex-start;
    }

    .homepage .what-we-do .button {
        align-self: flex-start;
    }

    .homepage .what-we-do .left-decor {
        width: 80px;
        height: 50px;
    }

    .homepage .what-we-do .left-decor::after {
        left: 90px;
        height: 50px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .homepage .what-we-do {
        padding: 80px 0;
    }

    .homepage .what-we-do .left-decor {
        display: none;
    }

    .homepage .what-we-do .content-gutters {
        gap: 40px;
    }

    .homepage .what-we-do .animation-block {
        height: 80px;
        padding: 0 15px;
    }

    .homepage .what-we-do .animation-block .line {
        margin: 0 6px;
    }

    .homepage .what-we-do .text-section .title::after {
        display: none;
    }

    .homepage .what-we-do .text-section .ascii {
        font-size: 14px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .homepage .what-we-do {
        padding: 60px 0;
    }

    .homepage .what-we-do .content-gutters {
        gap: 30px;
    }

    .homepage .what-we-do .animation-block {
        height: 70px;
        padding: 0 10px;
    }

    .homepage .what-we-do .animation-block .line {
        margin: 0 4px;
    }

    .homepage .what-we-do .animation-block .dot .char {
        font-size: 14px;
    }

    .homepage .what-we-do .text-section .ascii {
        font-size: 12px;
        letter-spacing: -0.5px;
    }

    .homepage .what-we-do .button {
        padding: 5px 15px;
        padding-right: 25px;
        font-size: 14px;
    }
}
