/* intro — ledger rail: photo-left stack with bar chart */
.intro-ledger__eyebrow {
    letter-spacing: 0.12em;
}

.intro-ledger__title {
    letter-spacing: -0.03em;
}

.intro-ledger__mark {
    height: 0.2em;
    margin-top: 0.15em;
}

.intro-ledger__stack {
    padding-left: 0.75rem;
}

.intro-ledger__avatar {
    width: 2.75rem;
    height: 2.75rem;
    margin-left: -0.7rem;
    line-height: 1;
}

.intro-ledger__rule {
    height: 0;
    border-top-style: solid !important;
}

.intro-ledger__photo {
    min-height: 22rem;
}

.intro-ledger__photo-img {
    object-fit: cover;
}

.intro-ledger__card {
    padding: 1.25rem;
}

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

.intro-ledger__bars {
    height: 5.5rem;
}

.intro-ledger__bar {
    transform-origin: center bottom;
    animation: intro-ledger-bar 3.6s ease-in-out infinite;
}

.intro-ledger__bar--b1 { height: 45%; }
.intro-ledger__bar--b2 { animation-delay: 0.2s; height: 55%; }
.intro-ledger__bar--b3 { animation-delay: 0.4s; height: 85%; }
.intro-ledger__bar--b4 { animation-delay: 0.6s; height: 40%; }
.intro-ledger__bar--b5 { animation-delay: 0.8s; height: 70%; }

@keyframes intro-ledger-bar {
    0%, 100% {
        transform: scaleY(0.55);
        opacity: 0.55;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

@media (min-width: 1024px) {
    .intro-ledger__photo {
        min-height: 36rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .intro-ledger__bar {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* short stat captions sit in narrow columns on phones: long words break instead of spilling over */
.intro-ledger__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%; }
}

/* planning-split — layout, sizes, glass effect only (colours live in the template) */

.planning-split__photo {
    min-height: 26rem;
}

.planning-split__img {
    position: absolute;
    inset: 0;
    object-fit: cover;
}

.planning-split__glass {
    z-index: 2;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.planning-split__micro {
    font-size: 0.75rem;
    line-height: 1rem;
}

.planning-split__wide {
    letter-spacing: 0.14em;
}

.planning-split__bars {
    height: 3.5rem;
}

.planning-split__bar {
    width: 0.85rem;
}

.planning-split__bar--b1 { height: 45%; }
.planning-split__bar--b2 { height: 65%; }
.planning-split__bar--b3 { height: 80%; }
.planning-split__bar--b4 { height: 100%; }

.planning-split__figure-wrap {
    min-width: 0;
}

.planning-split__title {
    letter-spacing: -0.03em;
    max-width: 22ch;
}

.planning-split__panel {
    min-height: 24rem;
}

@media (min-width: 768px) {
    .planning-split__glass {
        max-width: 26rem;
    }
}

@media (min-width: 1024px) {
    .planning-split__photo,
    .planning-split__panel {
        min-height: 38rem;
    }
}

/* brief-split — sticky heading left + numbered step list right */
.brief-split__eyebrow {
    letter-spacing: 0.14em;
}

.brief-split__title {
    letter-spacing: -0.025em;
}

.brief-split__rule {
    width: 0;
    min-height: 12rem;
}

.brief-split__icon {
    width: 2.75rem;
    height: 2.75rem;
}

.brief-split__item {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.brief-split__item:first-child {
    padding-top: 0;
}

@media (min-width: 1024px) {
    .brief-split .brief-split__aside {
        position: sticky;
        top: 7rem;
    }

    .brief-split__rule {
        min-height: 18rem;
    }
}

/* 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;
    }
}

