/* Landing page motion. Scroll effects use CSS view timelines,
   with a class fallback where animation-timeline is unavailable. */

.page-home {
    background: #ffffff;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 300;
    width: 100%;
    height: 3px;
    background: #A90A1E;
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
}

@supports (animation-timeline: scroll()) {
    .scroll-progress {
        animation: scroll-grow linear both;
        animation-timeline: scroll(root);
    }
}

@keyframes scroll-grow {
    to { transform: scaleX(1); }
}

.spider {
    display: inline-block;
    width: 1.05rem;
    height: 1.05rem;
    flex: none;
    background-color: currentColor;
    -webkit-mask: url("/web/spider.svg?v=20261126o") center / contain no-repeat;
    mask: url("/web/spider.svg?v=20261126o") center / contain no-repeat;
}

.home-kicker {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    color: #A90A1E;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.page-home .container {
    max-width: 1080px;
}

.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    padding: 13rem 0 12.5rem;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 7% 18%, rgba(255, 255, 255, 0.42) 0 1px, transparent 1.2px),
        radial-gradient(circle at 15% 42%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1.2px),
        radial-gradient(circle at 4% 67%, rgba(255, 255, 255, 0.34) 0 1px, transparent 1.2px),
        radial-gradient(circle at 12% 86%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.2px),
        radial-gradient(circle at 24% 12%, rgba(255, 255, 255, 0.46) 0 1px, transparent 1.2px),
        radial-gradient(circle at 31% 33%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.2px),
        radial-gradient(circle at 21% 58%, rgba(255, 255, 255, 0.3) 0 1px, transparent 1.2px),
        radial-gradient(circle at 36% 78%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.2px),
        radial-gradient(circle at 44% 8%, rgba(255, 255, 255, 0.38) 0 1px, transparent 1.2px),
        radial-gradient(circle at 53% 27%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1.2px),
        radial-gradient(circle at 47% 49%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1.2px),
        radial-gradient(circle at 58% 71%, rgba(255, 255, 255, 0.4) 0 1px, transparent 1.2px),
        radial-gradient(circle at 42% 91%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.2px),
        radial-gradient(circle at 66% 16%, rgba(255, 255, 255, 0.32) 0 1px, transparent 1.2px),
        radial-gradient(circle at 73% 38%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.2px),
        radial-gradient(circle at 69% 62%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.2px),
        radial-gradient(circle at 78% 84%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.2px),
        radial-gradient(circle at 86% 11%, rgba(255, 255, 255, 0.36) 0 1px, transparent 1.2px),
        radial-gradient(circle at 94% 29%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1.2px),
        radial-gradient(circle at 88% 54%, rgba(255, 255, 255, 0.42) 0 1px, transparent 1.2px),
        radial-gradient(circle at 96% 73%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.2px),
        radial-gradient(circle at 82% 93%, rgba(255, 255, 255, 0.3) 0 1px, transparent 1.2px),
        radial-gradient(circle at 18% 24%, rgba(169, 10, 30, 0.5) 0 1px, transparent 1.2px),
        radial-gradient(circle at 61% 44%, rgba(169, 10, 30, 0.4) 0 1px, transparent 1.2px),
        radial-gradient(circle at 91% 66%, rgba(169, 10, 30, 0.45) 0 1px, transparent 1.2px),
        radial-gradient(520px 520px at 78% 46%, rgba(169, 10, 30, 0.28), transparent 68%),
        #111111;
}

.home-hero::before,
.home-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.home-hero::before {
    width: 280px;
    height: 280px;
    right: 14%;
    top: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transform: translateY(-50%);
}

.home-hero::after {
    width: 420px;
    height: 420px;
    right: 6%;
    top: 46%;
    border: 1px solid rgba(169, 10, 30, 0.45);
    transform: translateY(-50%);
}

.home-hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    gap: 3rem;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.home-hero-copy h1 {
    color: #ffffff;
    max-width: 14ch;
    font-size: clamp(2.6rem, 4.8vw, 4.2rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
    font-weight: 800;
}

.hero-name {
    display: block;
    font-size: 1.14em;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.hero-highlight {
    color: #A90A1E;
}

.hero-express {
    color: #ffffff;
}

.home-hero-copy h1::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin-top: 1rem;
    border-radius: 999px;
    background: #A90A1E;
}

.home-lede {
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
    font-weight: 500;
}

.home-hero .btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
}

.home-hero .btn-ghost:hover {
    color: #ffffff;
    border-color: #ffffff;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.home-hero-copy {
    animation: home-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@supports (animation-timeline: view()) {
    .home-hero-copy {
        animation: home-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both, hero-drift linear both;
        animation-timeline: auto, view();
        animation-range: normal, exit 0% exit 100%;
    }
}

@keyframes home-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

@keyframes hero-drift {
    to { transform: translateY(-28px); }
}

.hero-orbit {
    position: relative;
    z-index: 1;
    width: min(100%, 320px);
    aspect-ratio: 1;
    justify-self: end;
}

.orbit-ring {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    border: 1.5px dashed rgba(169, 10, 30, 0.7);
}

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    margin: -26px;
    display: grid;
    place-items: center;
    animation: orbit 22s linear infinite;
    animation-delay: calc(var(--i) * -3.666s);
}

.orbit-item svg,
.orbit-chip {
    width: 46px;
    height: 46px;
    padding: 2px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 22px -14px rgba(17, 17, 17, 0.65);
}

.orbit-chip {
    display: grid;
    place-items: center;
}

.orbit-chip .spider {
    width: 28px;
    height: 28px;
    color: #A90A1E;
}

.orbit-truck {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 148px;
    height: 148px;
    margin: -74px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #111111;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 22px 40px -24px rgba(169, 10, 30, 0.55);
}

.orbit-truck svg {
    width: 92px;
    height: auto;
}

.truck-spider {
    position: absolute;
    left: 22px;
    top: 36px;
    width: 34px;
    height: 34px;
    color: #ffffff;
}

@keyframes orbit {
    from { transform: rotate(0deg) translateX(118px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(118px) rotate(-360deg); }
}

@keyframes orbit-sm {
    from { transform: rotate(0deg) translateX(102px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(102px) rotate(-360deg); }
}

@supports (animation-timeline: view()) {
    .hero-orbit {
        animation: scene-drift linear both;
        animation-timeline: view();
        animation-range: cover 0% cover 100%;
    }
}

@keyframes scene-drift {
    from { transform: translateY(16px); }
    to { transform: translateY(-20px); }
}

.marquee {
    overflow: hidden;
    background: #111111;
    color: #ffffff;
    border-top: 3px solid #A90A1E;
}

.marquee-track {
    display: flex;
    width: max-content;
    padding: 0.85rem 0;
}

.marquee.is-ready .marquee-track {
    animation: ticker linear infinite;
}

.marquee-group {
    display: flex;
    flex-shrink: 0;
    gap: 2.5rem;
    padding-right: 2.5rem;
}

.marquee-track span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.marquee-track span::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 2.5rem;
    background: #A90A1E;
    -webkit-mask: url("/web/spider.svg?v=20261126o") center / contain no-repeat;
    mask: url("/web/spider.svg?v=20261126o") center / contain no-repeat;
    transform: translateY(-1px);
}

@keyframes ticker {
    to { transform: translateX(-50%); }
}

.home-services {
    padding: 9rem 0;
    background: #f6f6f6;
}

.home-head {
    max-width: 40rem;
    margin-bottom: 3.5rem;
}

.home-head h2,
.home-about h2,
.home-cta h2 {
    font-size: clamp(1.9rem, 3.4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.home-head p:last-child {
    margin-top: 0.75rem;
    color: #5c5c5c;
    font-weight: 500;
}

.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
}

.bento-card {
    grid-column: span 2;
    min-height: 190px;
    padding: 1.6rem 1.5rem;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e6e6e6;
}

.bento-feature {
    position: relative;
    overflow: hidden;
    grid-column: span 4;
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.bento-feature::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -34px;
    z-index: 0;
    width: 108px;
    height: 108px;
    background: rgba(169, 10, 30, 0.55);
    -webkit-mask: url("/web/spider.svg?v=20261126o") center / contain no-repeat;
    mask: url("/web/spider.svg?v=20261126o") center / contain no-repeat;
    pointer-events: none;
}

.bento-feature > * {
    position: relative;
    z-index: 1;
}

.bento-feature p {
    max-width: 28rem;
}

.bento-wide {
    grid-column: span 4;
}

.bento-index {
    display: inline-block;
    margin-bottom: 0.85rem;
    color: #A90A1E;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.bento-card h3 {
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
}

.bento-card p {
    max-width: 36rem;
    color: #5c5c5c;
    font-weight: 500;
}

.bento-feature p,
.bento-feature .bento-index {
    color: rgba(255, 255, 255, 0.86);
}

.bento-card:hover {
    box-shadow: 0 18px 40px -24px rgba(17, 17, 17, 0.45);
}

.route {
    padding: 9rem 0;
    background: #A90A1E;
    color: #ffffff;
}

.route .home-kicker {
    color: #ffffff;
}

.route .home-kicker .spider {
    color: #111111;
}

.route h2,
.route h3 {
    color: #ffffff;
}

@property --route {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
}

.route-board {
    position: relative;
    margin-top: 0.5rem;
    --route: 0;
}

@supports (animation-timeline: view()) {
    .route-board {
        animation: route-progress linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 70%;
    }

    .route-fill {
        transform: scaleX(var(--route));
        transform-origin: left center;
    }
}

@keyframes route-progress {
    to { --route: 1; }
}

.route-track {
    position: absolute;
    top: 28px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: rgba(255, 255, 255, 0.28);
}

.route-fill {
    display: block;
    height: 100%;
    background: #ffffff;
}

.route-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    position: relative;
}

.route-step {
    text-align: center;
}

.route-node {
    width: 58px;
    height: 58px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #111111;
    color: #ffffff;
    border: 3px solid #ffffff;
    position: relative;
    z-index: 1;
}

.route-node svg {
    width: 26px;
    height: 26px;
}

.route-step h3 {
    font-size: 1.05rem;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}

.route-step p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    font-weight: 500;
}

.home-about {
    position: relative;
    overflow: hidden;
    padding: 9rem 0;
    background: #111111;
    color: #ffffff;
}

.home-about::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-image:
        radial-gradient(circle at 6% 14%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.2px),
        radial-gradient(circle at 14% 31%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.2px),
        radial-gradient(circle at 9% 58%, rgba(255, 255, 255, 0.35) 0 1px, transparent 1.2px),
        radial-gradient(circle at 18% 76%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.2px),
        radial-gradient(circle at 4% 88%, rgba(255, 255, 255, 0.4) 0 1px, transparent 1.2px),
        radial-gradient(circle at 27% 9%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1.2px),
        radial-gradient(circle at 33% 24%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.2px),
        radial-gradient(circle at 22% 47%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1.2px),
        radial-gradient(circle at 38% 63%, rgba(255, 255, 255, 0.32) 0 1px, transparent 1.2px),
        radial-gradient(circle at 29% 91%, rgba(255, 255, 255, 0.24) 0 1px, transparent 1.2px),
        radial-gradient(circle at 46% 7%, rgba(255, 255, 255, 0.38) 0 1px, transparent 1.2px),
        radial-gradient(circle at 52% 19%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.2px),
        radial-gradient(circle at 41% 36%, rgba(255, 255, 255, 0.42) 0 1px, transparent 1.2px),
        radial-gradient(circle at 57% 52%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.2px),
        radial-gradient(circle at 48% 71%, rgba(255, 255, 255, 0.3) 0 1px, transparent 1.2px),
        radial-gradient(circle at 61% 84%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.2px),
        radial-gradient(circle at 68% 12%, rgba(255, 255, 255, 0.46) 0 1px, transparent 1.2px),
        radial-gradient(circle at 74% 28%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1.2px),
        radial-gradient(circle at 63% 44%, rgba(255, 255, 255, 0.34) 0 1px, transparent 1.2px),
        radial-gradient(circle at 79% 61%, rgba(255, 255, 255, 0.26) 0 1px, transparent 1.2px),
        radial-gradient(circle at 71% 93%, rgba(255, 255, 255, 0.4) 0 1px, transparent 1.2px),
        radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.2px),
        radial-gradient(circle at 93% 22%, rgba(255, 255, 255, 0.48) 0 1px, transparent 1.2px),
        radial-gradient(circle at 88% 39%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.2px),
        radial-gradient(circle at 96% 57%, rgba(255, 255, 255, 0.32) 0 1px, transparent 1.2px),
        radial-gradient(circle at 84% 73%, rgba(255, 255, 255, 0.24) 0 1px, transparent 1.2px),
        radial-gradient(circle at 91% 89%, rgba(255, 255, 255, 0.38) 0 1px, transparent 1.2px),
        radial-gradient(circle at 16% 18%, rgba(169, 10, 30, 0.55) 0 1px, transparent 1.2px),
        radial-gradient(circle at 55% 33%, rgba(169, 10, 30, 0.4) 0 1px, transparent 1.2px),
        radial-gradient(circle at 77% 48%, rgba(169, 10, 30, 0.45) 0 1px, transparent 1.2px);
}

.home-about-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
    align-items: start;
}

.home-about p {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
    font-size: 1.08rem;
}

.home-about p + p {
    margin-top: 0.9rem;
}

.home-cta {
    background: #ffffff;
    color: #111111;
    padding: 9rem 0;
}

.home-cta h2 {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    max-width: 16ch;
}

.home-cta h2 .spider {
    width: 2rem;
    height: 2rem;
    color: #A90A1E;
}

.home-cta p {
    max-width: 34rem;
    margin: 0.9rem 0 1.4rem;
    color: #5c5c5c;
    font-weight: 500;
}

.home-cta .btn-primary {
    background: #A90A1E;
    color: #ffffff;
}

.home-cta .btn-primary:hover {
    background: #7e0716;
    color: #ffffff;
}

.reveal,
.reveal-left,
.reveal-right,
.route-step {
    animation: reveal-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
}

.reveal-left {
    animation-name: slide-left;
}

.reveal-right {
    animation-name: slide-right;
}

.bento-card:nth-child(2) { animation-range: entry 8% entry 48%; }
.bento-card:nth-child(3) { animation-range: entry 14% entry 54%; }
.bento-card:nth-child(4) { animation-range: entry 6% entry 46%; }
.bento-card:nth-child(5) { animation-range: entry 12% entry 52%; }
.bento-card:nth-child(6) { animation-range: entry 18% entry 58%; }

.route-step:nth-child(2) { animation-range: entry 12% entry 52%; }
.route-step:nth-child(3) { animation-range: entry 22% entry 62%; }
.route-step:nth-child(4) { animation-range: entry 32% entry 72%; }

.home-cta .reveal:nth-child(2) { animation-range: entry 10% entry 50%; }
.home-cta .reveal:nth-child(3) { animation-range: entry 18% entry 58%; }

@keyframes reveal-in {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}

@keyframes slide-left {
    from { opacity: 0; transform: translateX(-36px); }
    to { opacity: 1; transform: none; }
}

@keyframes slide-right {
    from { opacity: 0; transform: translateX(36px); }
    to { opacity: 1; transform: none; }
}

html.no-view-timeline .reveal,
html.no-view-timeline .reveal-left,
html.no-view-timeline .reveal-right,
html.no-view-timeline .route-step {
    animation: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

html.no-view-timeline .reveal.is-in,
html.no-view-timeline .reveal-left.is-in,
html.no-view-timeline .reveal-right.is-in,
html.no-view-timeline .route-step.is-in {
    opacity: 1;
    transform: none;
}

html.no-view-timeline .route-fill {
    transform: none;
    animation: none;
}

@media (max-width: 900px) {
    .home-hero-split,
    .home-about-grid,
    .bento,
    .route-steps {
        grid-template-columns: 1fr;
    }

    .bento-card,
    .bento-feature,
    .bento-wide {
        grid-column: auto;
    }

    .home-hero {
        padding: 7.5rem 0 7rem;
    }

    .home-services,
    .route,
    .home-about,
    .home-cta {
        padding: 5.5rem 0;
    }

    .home-hero::before,
    .home-hero::after {
        right: 50%;
        transform: translate(50%, -42%);
    }

    .home-hero::before {
        width: 220px;
        height: 220px;
    }

    .home-hero::after {
        width: 300px;
        height: 300px;
    }

    .hero-orbit {
        width: min(100%, 280px);
        justify-self: center;
    }

    .home-cta h2 {
        align-items: flex-start;
    }

    .orbit-item {
        animation-name: orbit-sm;
    }

    .home-hero-copy h1 {
        max-width: none;
        font-size: clamp(1.55rem, 6.6vw, 2rem);
    }

    .home-hero .hero-name {
        font-size: 1.05em;
    }

    .home-lede {
        font-size: 0.98rem;
    }

    .route-track {
        top: 0;
        bottom: 0;
        left: 28px;
        right: auto;
        width: 2px;
        height: auto;
    }

    .route-fill {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 900px) {
    @supports (animation-timeline: view()) {
        .route-fill {
            transform: scaleY(var(--route));
            transform-origin: top center;
        }
    }

    .route-step {
        display: grid;
        grid-template-columns: 58px 1fr;
        column-gap: 1rem;
        text-align: left;
        align-items: start;
    }

    .route-node {
        margin: 0;
        grid-row: 1 / span 2;
    }

    .route-step h3,
    .route-step p {
        grid-column: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-progress,
    .marquee-track,
    .home-hero-copy,
    .hero-orbit,
    .orbit-item,
    .reveal,
    .reveal-left,
    .reveal-right,
    .route-step,
    .route-fill {
        animation: none !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .route-step,
    html.no-view-timeline .reveal,
    html.no-view-timeline .reveal-left,
    html.no-view-timeline .reveal-right,
    html.no-view-timeline .route-step {
        opacity: 1;
        transform: none;
    }

    .route-fill {
        transform: none;
    }

    .orbit-item {
        animation: none !important;
        transform: rotate(calc(var(--i) * 60deg)) translateX(118px) rotate(calc(var(--i) * -60deg));
    }
}
