/* intro — tape mast: full masthead, metric rail, dual cards, letterbox */
.tape-mast__eyebrow {
    letter-spacing: 0.14em;
}

.tape-mast__title {
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.tape-mast__rule {
    height: 0;
}

.tape-mast__rail-item {
    min-width: 0;
}

@media (min-width: 992px) {
    .tape-mast__rail-item + .tape-mast__rail-item {
        border-left: 1px solid var(--bs-border-color);
        padding-left: 1.25rem;
    }
}

.tape-mast__card {
    padding: 1.25rem;
    min-height: 12rem;
}

.tape-mast__caption {
    font-size: 0.75rem;
    line-height: 1rem;
}

.tape-mast__chart {
    min-height: 6rem;
    overflow: visible;
}

.tape-mast__chart-fill {
    transform-origin: center bottom;
    animation: tape-mast-chart-fill 4.2s ease-in-out infinite;
}

.tape-mast__chart-line {
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    animation: tape-mast-chart-draw 4.2s ease-in-out infinite;
}

.tape-mast__chart-dot {
    animation: tape-mast-chart-dot 4.2s ease-in-out infinite;
}

.tape-mast__photo {
    min-height: 14rem;
}

.tape-mast__photo-img {
    object-fit: cover;
}

@keyframes tape-mast-chart-fill {
    0%, 12% { opacity: 0; transform: scaleY(0.55); }
    40%, 72% { opacity: 1; transform: scaleY(1); }
    88%, 100% { opacity: 0; transform: scaleY(0.55); }
}

@keyframes tape-mast-chart-draw {
    0% { stroke-dashoffset: 420; opacity: 0.35; }
    38% { stroke-dashoffset: 0; opacity: 1; }
    72% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: 420; opacity: 0.35; }
}

@keyframes tape-mast-chart-dot {
    0%, 28% { opacity: 0; transform: translateY(6px) scale(0.6); }
    42%, 72% { opacity: 1; transform: translateY(0) scale(1); }
    88%, 100% { opacity: 0; transform: translateY(6px) scale(0.6); }
}

@media (min-width: 768px) {
    .tape-mast__photo {
        min-height: 18rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tape-mast__chart-fill,
    .tape-mast__chart-line,
    .tape-mast__chart-dot {
        animation: none;
        opacity: 1;
        transform: none;
        stroke-dashoffset: 0;
    }
}

/* short stat captions sit in narrow columns on phones: long words break instead of spilling over */
.tape-mast__caption { min-width: 0; overflow-wrap: anywhere; }

.ledger-bridge__eyebrow {
    letter-spacing: 0.12em;
}

.ledger-bridge__heading {
    letter-spacing: -0.02em;
}

.ledger-bridge__micro {
    font-size: 0.75rem;
    line-height: 1.3;
}

.ledger-bridge__glow {
    width: 14rem;
    height: 14rem;
    transform: translate(-30%, -30%);
    filter: blur(12px);
}

.ledger-bridge__frost {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ledger-bridge__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ledger-bridge__track {
    height: 0.25rem;
}

.ledger-bridge__fill {
    width: 0;
    animation: ledger-bridge-fill 1.8s ease forwards;
}

.ledger-bridge__fill--1 { --ledger-bridge-end: 84%; animation-delay: 0.15s; }
.ledger-bridge__fill--2 { --ledger-bridge-end: 52%; animation-delay: 0.4s; }
.ledger-bridge__fill--3 { --ledger-bridge-end: 68%; animation-delay: 0.65s; }

@keyframes ledger-bridge-fill {
    from { width: 0; }
    to { width: var(--ledger-bridge-end); }
}

.ledger-bridge__stage {
    min-height: 8rem;
}

.ledger-bridge__band {
    transform: translateY(-50%);
}

.ledger-bridge__marquee {
    width: max-content;
    animation: ledger-bridge-marquee 26s linear infinite;
}

@keyframes ledger-bridge-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.ledger-bridge__photo {
    width: 12rem;
    aspect-ratio: 4 / 3;
}

.ledger-bridge__img {
    object-fit: cover;
}

.ledger-bridge__chip {
    transform: translate(25%, -15%);
    min-width: 7.5rem;
}

@media (min-width: 768px) {
    .ledger-bridge__photo {
        width: 16rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ledger-bridge__marquee,
    .ledger-bridge__fill {
        animation: none;
    }

    .ledger-bridge__fill--1 { width: 84%; }
    .ledger-bridge__fill--2 { width: 52%; }
    .ledger-bridge__fill--3 { width: 68%; }
}

.report-stack__img {
    object-fit: cover;
    height: 24rem;
}

/* path-rail — numbered path with dashed connectors above step cards */
.path-rail__eyebrow {
    letter-spacing: 0.12em;
}

.path-rail__title {
    letter-spacing: -0.02em;
}

.path-rail__mark {
    width: 2.25rem;
    height: 2.25rem;
    z-index: 1;
}

.path-rail__line {
    height: 0;
    top: 50%;
    left: 12.5%;
    right: 12.5%;
    border-top-style: dashed !important;
}

.path-rail__icon {
    width: 3.25rem;
    height: 3.25rem;
}

.path-rail__text {
    max-width: 20rem;
}

@media (max-width: 767.98px) {
    .path-rail__line {
        display: none;
    }
}

/* our-philosophy — mission ledger: layout, sizes and transforms only (no colors) */
.mission-ledger__eyebrow {
    font-size: 0.875rem;
    letter-spacing: 0.2em;
}

.mission-ledger__heading {
    letter-spacing: -0.025em;
}

.mission-ledger__stage {
    min-height: 26rem;
}

.mission-ledger__cloud {
    filter: blur(2.5rem);
    pointer-events: none;
}

.mission-ledger__cloud--a { width: 14rem; height: 8rem; transform: translate(-3rem, 14rem); }
.mission-ledger__cloud--b { width: 18rem; height: 10rem; transform: translate(12rem, 20rem); }
.mission-ledger__cloud--c { width: 12rem; height: 7rem; transform: translate(20rem, 2rem); }

.mission-ledger__caption {
    font-size: 0.75rem;
    line-height: 1rem;
}

.mission-ledger__skeleton {
    height: 0.5rem;
}

.mission-ledger__skeleton--short {
    width: 70%;
}

.mission-ledger__skeleton--progress {
    width: 60%;
    height: 0.25rem;
}

.mission-ledger__avatar {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
}

.mission-ledger__bars {
    height: 9rem;
}

.mission-ledger__pill {
    font-size: 0.625rem;
    line-height: 1;
    white-space: nowrap;
}

.mission-ledger__bar { min-height: 1.5rem; }
.mission-ledger__bar--h1 { height: 55%; }
.mission-ledger__bar--h2 { height: 80%; }
.mission-ledger__bar--h3 { height: 45%; }
.mission-ledger__bar--h4 { height: 70%; }
.mission-ledger__bar--h5 { height: 50%; }

.mission-ledger__tick {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.625rem;
}

@media (min-width: 640px) {
    .mission-ledger__lift {
        transform: translateY(-2.5rem);
    }
}

.mission-ledger__barcol {
    min-width: 0;
    flex-basis: 0;
}

.mission-ledger__barcol .mission-ledger__pill {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* the badge next to the card footer text wraps instead of running past the card edge */
.mission-ledger__lift :not(.mission-ledger__barcol):has(> .mission-ledger__pill) { flex-wrap: wrap; row-gap: .375rem; }
.mission-ledger__lift :not(.mission-ledger__barcol) > .mission-ledger__pill { white-space: normal; max-width: 100%; }
.mission-ledger__lift :not(.mission-ledger__barcol):has(> .mission-ledger__pill) > :first-child { min-width: 0; }

/* advantages — metric bento: layout, sizes and transforms only (no colors) */
.metric-bento__eyebrow {
    font-size: 0.875rem;
    letter-spacing: 0.18em;
}

.metric-bento__heading {
    letter-spacing: -0.025em;
}

.metric-bento__mosaic {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .metric-bento__mosaic {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .metric-bento__tile--adv-1 { grid-column: span 3; }
    .metric-bento__tile--adv-2 { grid-column: span 3; }
    .metric-bento__tile--heat { grid-column: span 4; }
    .metric-bento__tile--insights { grid-column: span 2; }
    .metric-bento__tile--adv-3 { grid-column: span 2; }
    .metric-bento__tile--adv-4 { grid-column: span 2; }
    .metric-bento__tile--adv-5 { grid-column: span 2; }
    .metric-bento__tile--chart { grid-column: span 6; }
}

.metric-bento__toggle {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
    outline-offset: -2px;
    width: 100%;
    text-align: left;
}

.metric-bento__num {
    min-width: 2rem;
    font-variant-numeric: tabular-nums;
}

.metric-bento__chevron {
    transition: transform 200ms ease;
}

.metric-bento__card.is-open .metric-bento__chevron {
    transform: rotate(180deg);
}

.metric-bento__heatmap {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
}

.metric-bento__heat {
    aspect-ratio: 1.5 / 1;
    animation: metric-heat-pulse 2.8s ease-in-out infinite;
    will-change: opacity, transform;
}

.metric-bento__heat:nth-child(7n + 1) { animation-delay: 0s; }
.metric-bento__heat:nth-child(7n + 2) { animation-delay: 0.2s; }
.metric-bento__heat:nth-child(7n + 3) { animation-delay: 0.4s; }
.metric-bento__heat:nth-child(7n + 4) { animation-delay: 0.6s; }
.metric-bento__heat:nth-child(7n + 5) { animation-delay: 0.8s; }
.metric-bento__heat:nth-child(7n + 6) { animation-delay: 1s; }
.metric-bento__heat:nth-child(7n + 7) { animation-delay: 1.2s; }

@keyframes metric-heat-pulse {
    0%, 100% {
        opacity: 0.55;
        transform: scale(0.94);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.metric-bento__tiny {
    font-size: 0.6875rem;
    line-height: 1rem;
}

.metric-bento__icon {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
}

.metric-bento__insight-body {
    min-width: 0;
}

.metric-bento__chart {
    height: 8rem;
    overflow: visible;
}

.metric-bento__chart-fill {
    animation: metric-chart-fill 3.6s ease-in-out infinite;
    transform-origin: center bottom;
}

.metric-bento__chart-line {
    stroke-dasharray: 520;
    stroke-dashoffset: 0;
    animation: metric-chart-draw 4.8s ease-in-out infinite;
}

.metric-bento__chart-guide {
    animation: metric-chart-guide 4.8s ease-in-out infinite;
}

.metric-bento__chart-mark,
.metric-bento__chart-dot {
    animation: metric-chart-mark 4.8s ease-in-out infinite;
}

@keyframes metric-chart-fill {
    0%, 100% {
        opacity: 0.7;
        transform: scaleY(0.92);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes metric-chart-draw {
    0% {
        stroke-dashoffset: 520;
        opacity: 0.35;
    }
    35% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    70%, 100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes metric-chart-guide {
    0%, 20% { opacity: 0; }
    45%, 100% { opacity: 1; }
}

@keyframes metric-chart-mark {
    0%, 30% {
        opacity: 0;
        transform: translateY(6px);
    }
    45%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-bento__heatmap > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .metric-bento__heat,
    .metric-bento__chart-fill,
    .metric-bento__chart-line,
    .metric-bento__chart-guide,
    .metric-bento__chart-mark,
    .metric-bento__chart-dot {
        animation: none;
        opacity: 1;
        transform: none;
        stroke-dashoffset: 0;
    }
}

/* utility classes are renamed in production builds, so closed panels rely on the hidden attribute */
.metric-bento__panel[hidden] { display: none !important; }

/* month labels under the heatmap: one line each, trimmed if long, so neighbours never collide */
.metric-bento__heatmap.metric-bento__tiny > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-bento__card :is(h3, h4) { overflow-wrap: anywhere; }

/* testimonials — twin belt: dual same-direction marquees + pause */
.twin-belt__eyebrow {
    letter-spacing: 0.2em;
}

.twin-belt__title {
    letter-spacing: -0.02em;
}

.twin-belt__dots {
    height: 0;
    border-top-style: dotted !important;
    width: 8rem;
}

.twin-belt__row {
    width: 100%;
}

.twin-belt__track {
    width: max-content;
    animation: twin-belt-left 80s linear infinite;
    will-change: transform;
}

.twin-belt__track--fast {
    animation-duration: 55s;
}

.twin-belt.is-paused .twin-belt__track {
    animation-play-state: paused;
}

.twin-belt__row:hover .twin-belt__track,
.twin-belt__row:focus-within .twin-belt__track {
    animation-play-state: paused;
}

.twin-belt__list {
    gap: 1.25rem;
    padding-right: 1.25rem;
}

.twin-belt__card {
    width: 20rem;
    min-height: 16rem;
}

.twin-belt__avatar {
    width: 3.25rem;
    height: 3.25rem;
    object-fit: cover;
}

@media (min-width: 768px) {
    .twin-belt__card {
        width: 30rem;
        min-height: 18rem;
    }

    .twin-belt__avatar {
        width: 4.5rem;
        height: 4.5rem;
    }
}

@keyframes twin-belt-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .twin-belt__track {
        animation: none;
        transform: none;
    }

    .twin-belt__row {
        overflow-x: auto;
    }
}

