/* A short, scroll-driven introduction. Scoped to the home page. */
.story-home {
    --story-paper: #f7f9fc;
    --story-ink: #172c43;
    --story-muted: #607188;
    background: var(--story-paper);
    color: var(--story-ink);
}

.story-home .container {
    width: min(1180px, calc(100% - 80px));
}

.story-home .site-header {
    height: 80px;
    background: rgba(247, 249, 252, .94);
    box-shadow: none;
    border-bottom: 1px solid #e3e8ef;
    backdrop-filter: blur(16px);
}

.story-home .nav-shell {
    height: 80px;
}

.story-home .brand {
    font-size: 21px;
    letter-spacing: -.7px;
}

.story-home .brand img {
    width: 32px;
    height: 30px;
}

.story-home #site-nav {
    gap: 30px;
}

.story-home #site-nav a,
.story-home .nav-contact {
    font-size: 12px;
    color: #53667c;
}

.story-home .btn {
    border-radius: 7px;
    box-shadow: none;
    background: #245fe5;
    font-weight: 500;
}

.story-home .btn:hover {
    background: #174fc7;
}

.story-home .btn.outline {
    background: transparent;
    color: #245fe5;
    border-color: #b8cbea;
}

.story-home .btn:disabled {
    background: #e8edf5;
    color: #6b7f99;
    cursor: default;
}

.story-home .nav-actions .btn {
    font-size: 12px;
    padding: 10px 16px;
}

.story-home a:focus-visible,
.story-home button:focus-visible,
.story-home summary:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 5px;
}

.move-story {
    position: relative;
}

.story-stage {
    position: relative;
    min-height: 750px;
    height: calc(100svh - 80px);
    max-height: 1000px;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 24%, #eaf1fc88, transparent 55%);
}

.story-ready .move-story {
    height: 285svh;
}

.story-ready .story-stage {
    position: sticky;
    top: 80px;
    min-height: 580px;
    max-height: none;
}

.story-topline {
    position: absolute;
    top: 27px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6a7c91;
    font-size: 11px;
}

.story-topline>span {
    display: flex;
    align-items: center;
    gap: 9px;
}

.story-topline>span:before {
    content: '';
    height: 5px;
    width: 5px;
    background: #2563eb;
    border-radius: 50%;
}

.story-topline a {
    color: #526b89;
}

.story-topline a span {
    margin-inline-start: 10px;
}

.story-art {
    position: absolute;
    top: 12%;
    width: min(740px, 85%);
    height: 30%;
    min-height: 160px;
    left: 50%;
    transform: translateX(-50%);
}

.story-wordmark {
    text-align: center;
    position: absolute;
    top: 12%;
    width: 100%;
    font-size: clamp(70px, 8.6vw, 132px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -7px;
    color: #152b44;
}

.story-wordmark>span {
    color: #2563eb;
}

.story-wordmark small {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #66809f;
    letter-spacing: 1.1px;
    margin-top: 22px;
}

.story-routes {
    width: 100%;
    height: 100%;
    overflow: visible;
    opacity: 0;
}

.story-speed,
.story-final-mark {
    opacity: 0;
}

.art-caption {
    position: absolute;
    top: 96%;
    width: 100%;
    text-align: center;
    color: #65809e;
    font-size: 11px;
    opacity: 0;
}

.story-copy {
    position: absolute;
    top: 45%;
    left: 20px;
    right: 20px;
    height: 33%;
    text-align: center;
}

.story-frame {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
}

.story-frame.is-current {
    opacity: 1;
    visibility: visible;
}

.story-kicker {
    display: block;
    color: #5b7695;
    font-size: 11px;
    margin-bottom: 15px;
    font-weight: 400;
}

.story-frame h1,
.story-frame h2 {
    font-size: clamp(38px, 4.4vw, 67px);
    line-height: 1.23;
    letter-spacing: -1.9px;
    font-weight: 500;
}

.story-frame h1 span,
.story-frame h2 span {
    color: #2563eb;
}

.story-frame p {
    font-size: 15px;
    line-height: 1.85;
    color: #61748a;
    margin: 20px auto 0;
    max-width: 590px;
}

.story-actions {
    position: absolute;
    top: 80%;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.story-actions .btn {
    font-size: 13px;
    padding: 13px 21px;
    gap: 28px;
}

.story-contact {
    font-size: 12px;
    color: #526a86;
}

.story-bottom {
    position: absolute;
    bottom: 24px;
    left: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    color: #718198;
}

.story-scroll-cue {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
}

.story-scroll-cue>span {
    font-size: 22px;
    color: #2563eb;
}

.story-pagination {
    direction: ltr;
    font-family: var(--font-mono);
    flex: 1;
    text-align: left;
    font-size: 10px;
    color: #9aa6b6;
}

.story-pagination>span {
    color: #315f9a;
}

.story-chapters {
    display: flex;
    gap: 27px;
}

.story-chapters button {
    background: transparent;
    color: #60758f;
    padding: 10px 0;
    border-bottom: 1px solid transparent;
    display: flex;
    gap: 8px;
    font-size: 10px;
    align-items: center;
}

.story-chapters button b {
    font-family: var(--font-mono);
    font-weight: 400;
    color: #8495aa;
    font-size: 9px;
}

.story-chapters button[aria-current] {
    color: #1e5cdb;
    border-color: #2563eb;
}

.story-chapters button[aria-current] b {
    color: #2563eb;
}

.story-progress {
    position: absolute;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: #e4eaf2;
    direction: ltr;
}

.story-progress>span {
    display: block;
    height: 100%;
    width: 100%;
    background: #2563eb;
    transform: scaleX(0);
    transform-origin: left;
}

/* The explanation is one working example, not several repeated feature grids. */
.story-home .connected-section {
    padding-block: 90px 25px;
}

.story-home .section-intro {
    align-items: end;
    margin-bottom: 38px;
    gap: 40px;
}

.story-home .section-intro h2,
.story-home .faq-section h2 {
    font-size: clamp(30px, 3.4vw, 46px);
    font-weight: 500;
    letter-spacing: -1.1px;
    line-height: 1.3;
}

.story-home h2 em {
    color: #6e8096;
    font-weight: 400;
}

.story-home .section-intro>p {
    color: #65788e;
    font-size: 14px;
    line-height: 1.9;
    max-width: 400px;
}

.story-home .eyebrow {
    font-size: 11px;
    color: #496d9c;
}

.story-home .connected-demo {
    background: #fff;
    border: 1px solid #dce5ef;
    border-radius: 12px;
    box-shadow: 0 16px 50px -30px #223f6c30;
    overflow: hidden;
}

.story-home .connected-demo-head {
    background: transparent;
    padding: 22px 26px;
    border-bottom: 1px solid #e5ebf2;
}

.story-home .connected-demo-head strong {
    font-size: 16px;
    font-weight: 500;
}

.story-home .connected-demo-head span {
    font-size: 12px;
    color: #6f8096;
    margin-top: 4px;
}

.story-home .connected-demo-head button {
    font-size: 11px;
}

.story-home .proof-pane {
    min-height: 355px;
    padding: 28px;
    background: #fff;
}

.story-home .proof-pane+.proof-pane {
    border-color: #e1e8f1;
}

.story-home .proof-pane header>span {
    color: #6580a1;
    font-size: 10px;
}

.story-home .proof-pane header>strong {
    font-size: 19px;
    color: #1a3554;
    font-weight: 500;
}

.story-home .proof-shipment small,
.story-home .proof-pane dt,
.story-home .proof-stop>small,
.story-home .proof-driver-identity small,
.story-home .proof-customer>p,
.story-home .proof-context {
    color: #6e829d;
}

.story-home .proof-pane .btn {
    font-size: 12px;
    min-height: 43px;
}

.story-home .proof-explanation {
    background: #eef4fc;
    color: #3b5a80;
    border-top: 1px solid #dde7f5;
    min-height: 55px;
    font-size: 12px;
}

.story-home .proof-history {
    font-size: 10px;
    color: #627b9b;
}

.story-home .proof-rules {
    font-size: 11px;
    color: #5f7693;
}

.story-home .proof-rules summary {
    color: #436b9c;
}

.story-home .connected-disclosure {
    font-size: 10px;
    color: #75879e;
    margin-top: 16px;
}

.proof-tabs,
.proof-mobile-next {
    display: none;
}

.workspace-section {
    margin-block: 12px 70px;
}

.workspace-details {
    border-bottom: 1px solid #d9e2ee;
    border-top: 1px solid #d9e2ee;
}

.workspace-details>summary {
    list-style: none;
    padding: 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 20px;
}

.workspace-details>summary::-webkit-details-marker {
    display: none;
}

.workspace-details>summary>span:first-child {
    display: grid;
    grid-template-columns: auto auto;
    gap: 5px 25px;
    align-items: center;
}

.workspace-details>summary small {
    grid-column: 1/-1;
    font-size: 10px;
    color: #647e9d;
}

.workspace-details>summary strong {
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -.4px;
}

.workspace-details>summary>span>span {
    font-size: 12px;
    color: #6b7e94;
}

.workspace-toggle {
    font-size: 28px;
    font-weight: 300;
    color: #2563eb;
    line-height: 1;
    width: 38px;
    height: 38px;
    border: 1px solid #cddbed;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform .2s;
}

.workspace-details[open] .workspace-toggle {
    transform: rotate(45deg);
}

.workspace-content {
    padding-bottom: 25px;
}

.story-home .workspace-content .product-stage {
    margin: 12px 0 0;
    width: 100%;
}

.story-home .workspace-content .dispatch-layout {
    grid-template-columns: 34% 66%;
}

.story-home .workspace-content .map-area {
    min-height: 450px;
}

.workspace-scenarios {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 20px;
    font-size: 12px;
    color: #667d98;
}

.workspace-scenarios button {
    background: none;
    color: #2563eb;
    padding: 5px 0;
    font-size: 12px;
}

.story-pricing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 34px 0 60px;
}

.story-pricing h2 {
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -.7px;
    margin-top: 10px;
}

.story-pricing p {
    font-size: 13px;
    color: #677b92;
    margin-top: 10px;
}

.story-pricing>a {
    white-space: nowrap;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.story-home .faq-section {
    border-top: 1px solid #dae3ed;
    padding-block: 65px;
    gap: 70px;
}

.story-home .faq-list summary {
    font-size: 14px;
    padding-block: 20px;
    font-weight: 400;
}

.story-home .faq-list p {
    font-size: 12px;
    line-height: 1.9;
    color: #657a94;
}

.story-home .contact-section {
    margin-block: 0 55px;
    padding: 55px 65px;
    border-radius: 14px;
    /* background: #eaf1fc; */
    border: 1px solid #dae6f6;
    box-shadow: none;
    display: grid;
    grid-template-columns: 1fr .65fr;
}

.story-home .contact-section h2 {
    font-size: 43px;
    font-weight: 500;
    letter-spacing: -1px;
    line-height: 1.3;
    margin-top: 13px;
}

.story-home .contact-section p {
    max-width: 440px;
    font-size: 14px;
    color: #617a99;
    line-height: 1.9;
    margin-top: 18px;
}

.story-home .contact-note {
    font-size: 10px;
    color: #6b809b;
}

.contact-signature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.contact-signature img {
    width: 130px;
    height: auto;
}

.contact-signature span {
    font-size: 22px;
    color: #6d89ad;
    letter-spacing: -.5px;
}

.story-home .footer {
    border-top: 1px solid #dfe6ef;
    padding-block: 30px;
}

/* Without JS or with reduced motion, the opening is a readable, single-screen hero. */
html:not(.story-ready) .story-frame:not(:first-child) {
    display: none;
}

html:not(.story-ready) .story-chapters {
    display: none;
}

html:not(.story-ready) .story-scroll-cue {
    visibility: hidden;
}

@media(min-width:1600px) {

    .story-topline,
    .story-bottom {
        left: calc((100vw - 1450px)/2);
        right: calc((100vw - 1450px)/2);
    }
}

@media(max-width:1050px) {
    .story-home .container {
        width: calc(100% - 48px);
    }

    .story-home #site-nav {
        gap: 20px;
    }

    .story-home .nav-contact {
        display: none;
    }

    .story-home .proof-pane {
        padding: 22px 18px;
    }

    .story-home .proof-pane header>strong {
        font-size: 16px;
    }

    .story-home .contact-section {
        padding: 45px;
    }

    .story-home .faq-section {
        gap: 35px;
    }
}

@media(max-width:760px) {
    .story-home .container {
        width: calc(100% - 36px);
    }

    .story-home .site-header {
        height: 66px;
    }

    .story-home .nav-shell {
        height: 66px;
        gap: 12px;
    }

    .story-home .brand {
        font-size: 19px;
        gap: 7px;
    }

    .story-home .brand img {
        width: 28px;
        height: 27px;
    }

    .story-home .nav-actions {
        margin-right: auto;
        gap: 12px;
    }

    .story-home .nav-actions .btn {
        font-size: 11px;
        padding: 9px 13px;
    }

    .story-home #site-nav {
        top: 66px;
        background: #f7f9fc;
        border-color: #e1e8f1;
    }

    .story-home .menu-toggle {
        color: #274d81;
    }

    .story-stage {
        height: calc(100svh - 66px);
        min-height: 660px;
    }

    .story-ready .move-story {
        height: 265svh;
    }

    .story-ready .story-stage {
        top: 66px;
        min-height: 560px;
    }

    .story-topline {
        top: 20px;
        left: 20px;
        right: 20px;
        font-size: 9px;
    }

    .story-topline>span {
        gap: 6px;
    }

    .story-topline a span {
        margin-inline-start: 3px;
    }

    .story-art {
        top: 16%;
        width: 95%;
        height: 23%;
        min-height: 120px;
    }

    .story-wordmark {
        font-size: clamp(61px, 13.7vw, 100px);
        letter-spacing: -4px;
        top: 19%;
    }

    .story-wordmark small {
        font-size: 12px;
        margin-top: 18px;
        letter-spacing: .5px;
    }

    .story-copy {
        top: 44%;
        height: 32%;
        left: 18px;
        right: 18px;
    }

    .story-kicker {
        font-size: 10px;
        margin-bottom: 14px;
    }

    .story-frame h1,
    .story-frame h2 {
        font-size: clamp(31px, 7.6vw, 49px);
        letter-spacing: -1px;
        line-height: 1.3;
    }

    .story-frame p {
        font-size: 12px;
        line-height: 1.85;
        max-width: 360px;
        margin-top: 17px;
    }

    .story-actions {
        top: 80%;
        gap: 18px;
    }

    .story-actions .btn {
        font-size: 12px;
        padding: 11px 15px;
        gap: 16px;
    }

    .story-contact {
        font-size: 10px;
    }

    .art-caption {
        font-size: 10px;
        top: 103%;
    }

    .story-bottom {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .story-scroll-cue {
        font-size: 9px;
        gap: 7px;
    }

    .story-chapters {
        gap: 12px;
    }

    .story-chapters button {
        padding: 10px 2px;
    }

    .story-chapters button b {
        font-size: 10px;
    }

    .story-chapters button span {
        display: none;
    }

    .story-pagination {
        display: none;
    }

    .story-home .connected-section {
        padding-block: 55px 20px;
    }

    .story-home .section-intro {
        display: block;
        margin-bottom: 25px;
    }

    .story-home .section-intro h2,
    .story-home .faq-section h2 {
        font-size: 33px;
    }

    .story-home .section-intro>p {
        font-size: 13px;
        margin-top: 18px;
        max-width: 420px;
    }

    .story-home .connected-demo-head {
        padding: 20px;
    }

    .story-home .connected-demo-head strong {
        font-size: 14px;
    }

    .story-home .connected-demo-head span {
        font-size: 11px;
    }

    .story-home .connected-demo-head button {
        font-size: 10px;
    }

    .story-home .connected-panes {
        grid-template-columns: 1fr;
    }

    .story-home .proof-pane {
        padding: 24px;
        min-height: 370px;
    }

    .story-home .proof-pane+.proof-pane {
        border-right: 0;
    }

    .story-home .proof-pane header>strong {
        font-size: 21px;
    }

    .story-home .proof-pane dl {
        font-size: 12px;
    }

    .story-home .proof-pane .btn {
        font-size: 13px;
    }

    .story-home .proof-context {
        font-size: 11px;
    }

    .story-home .proof-stop>strong {
        font-size: 17px;
    }

    .story-home .proof-driver-identity small,
    .story-home .proof-stop>small {
        font-size: 11px;
    }

    .proof-interactive .proof-tabs {
        display: flex;
        border-bottom: 1px solid #dfe7f1;
        background: #f4f7fc;
    }

    .proof-tabs button {
        flex: 1;
        background: transparent;
        color: #5f7590;
        font-size: 11px;
        padding: 16px 5px;
        border-bottom: 2px solid transparent;
    }

    .proof-tabs button[aria-selected=true] {
        color: #215dd4;
        border-color: #2563eb;
        background: #fff;
    }

    .proof-interactive .proof-mobile-next {
        display: block;
        background: none;
        font-size: 11px;
        color: #2563eb;
        margin-top: 17px;
        padding: 0;
    }

    .story-home .proof-history {
        display: none;
    }

    .story-home .proof-explanation {
        padding: 18px 22px;
        font-size: 11px;
    }

    .story-home .proof-rules {
        padding: 17px 22px;
        font-size: 10px;
    }

    .story-home .connected-disclosure {
        font-size: 9px;
    }

    .workspace-section {
        margin-block: 10px 25px;
    }

    .workspace-details>summary {
        padding: 23px 0;
        gap: 12px;
    }

    .workspace-details>summary>span:first-child {
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 5px;
    }

    .workspace-details>summary strong {
        font-size: 18px;
    }

    .workspace-details>summary>span>span {
        font-size: 10px;
    }

    .workspace-toggle {
        width: 32px;
        height: 32px;
        font-size: 24px;
    }

    .story-home .workspace-content .dispatch-layout {
        grid-template-columns: 1fr;
    }

    .story-home .workspace-content .map-area {
        min-height: 380px;
    }

    .workspace-scenarios {
        flex-wrap: wrap;
        gap: 14px;
        font-size: 11px;
    }

    .workspace-scenarios button {
        font-size: 11px;
    }

    .story-pricing {
        display: block;
        padding-block: 25px 45px;
    }

    .story-pricing h2 {
        font-size: 25px;
    }

    .story-pricing p {
        font-size: 12px;
    }

    .story-pricing>a {
        margin-top: 21px;
        width: fit-content;
        gap: 25px;
        font-size: 12px;
    }

    .story-home .faq-section {
        display: block;
        padding-block: 40px;
    }

    .story-home .faq-list {
        margin-top: 25px;
    }

    .story-home .faq-list summary {
        font-size: 13px;
        padding-block: 18px;
    }

    .story-home .contact-section {
        padding: 32px 25px;
        grid-template-columns: 1fr;
        margin-bottom: 30px;
    }

    .story-home .contact-section h2 {
        font-size: 35px;
    }

    .story-home .contact-section p {
        font-size: 12px;
    }

    .contact-signature {
        display: none;
    }

    .story-home .footer {
        gap: 20px;
    }
}

@media(max-height:740px) and (min-width:761px) {
    .story-ready .story-stage {
        min-height: 530px;
    }

    .story-art {
        top: 10%;
        height: 27%;
    }

    .story-wordmark {
        font-size: 95px;
    }

    .story-copy {
        top: 42%;
    }

    .story-frame h1,
    .story-frame h2 {
        font-size: 46px;
    }

    .story-frame p {
        font-size: 13px;
        margin-top: 14px;
    }

    .story-kicker {
        margin-bottom: 10px;
    }

    .story-actions {
        top: 81%;
    }
}

@media(prefers-reduced-motion:reduce) {
    .story-ready .move-story {
        height: auto;
    }

    .story-ready .story-stage {
        position: relative;
        top: 0;
    }

    .story-scroll-cue,
    .story-chapters,
    .story-pagination,
    .story-progress {
        display: none;
    }
}

@media(max-width:760px) and (max-height:680px) {

    .story-ready .story-stage,
    .story-stage {
        min-height: 490px;
    }

    .story-art {
        top: 12%;
        height: 24%;
    }

    .story-copy {
        top: 41%;
    }

    .story-frame h1,
    .story-frame h2 {
        font-size: 30px;
    }

    .story-kicker {
        margin-bottom: 8px;
    }

    .story-frame p {
        margin-top: 12px;
        font-size: 11px;
    }

    .story-wordmark {
        font-size: 61px;
        top: 12%;
    }

    .story-wordmark small {
        margin-top: 12px;
    }

    .story-actions {
        top: 80%;
    }

    .story-bottom {
        bottom: 12px;
    }
}

@media(max-width:380px) {
    .story-actions {
        gap: 12px;
        left: 18px;
        right: 18px;
    }

    .story-actions .btn {
        font-size: 11px;
        padding: 10px 12px;
        gap: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .story-contact {
        font-size: 9px;
        white-space: nowrap;
    }
}

@media(max-width:760px) and (max-height:680px) {
    .story-actions {
        top: 78%;
    }
}

/* The speed strokes gently travel in sequence after the mark has assembled. */
.final-speed path {
    animation: move-speed-stroke 2.8s ease-in-out infinite;
    animation-play-state: paused;
}

.final-speed path:nth-child(2) {
    animation-delay: .16s;
}

.final-speed path:nth-child(3) {
    animation-delay: .32s;
}

.story-ready .move-story.is-on-screen:is([data-chapter="2"], [data-chapter="3"]) .final-speed path {
    animation-play-state: running;
}

@keyframes move-speed-stroke {

    0%,
    20%,
    100% {
        transform: translateX(0);
        opacity: 1;
    }

    43% {
        transform: translateX(-2.5px);
        opacity: .5;
    }

    66% {
        transform: translateX(0);
        opacity: 1;
    }
}

@media(prefers-reduced-motion:reduce) {
    .final-speed path {
        animation: none;
    }
}

@media(max-width:760px) {
    .story-routes {
        transform: scale(1.25);
    }

    .route-labels {
        font-size: 20px;
    }
}