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

/* cash-loop — two-card bento: gradient dashboard card + oval stage with ticker band and photo */
.cash-loop__eyebrow {
    letter-spacing: 0.12em;
}

.cash-loop__heading {
    letter-spacing: -0.02em;
}

.cash-loop__micro {
    font-size: 0.75rem;
    line-height: 1.3;
}

/* Left gradient card */
.cash-loop__panel {
    min-height: 0;
}

.cash-loop__glow {
    width: 18rem;
    height: 18rem;
    transform: translate(35%, 35%);
    filter: blur(10px);
}

.cash-loop__frost {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.cash-loop__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cash-loop__track {
    height: 0.25rem;
}

.cash-loop__fill {
    width: 0;
    animation: cash-loop-fill 1.8s ease forwards;
}

.cash-loop__fill--1 { --cash-loop-end: 84%; animation-delay: 0.15s; }
.cash-loop__fill--2 { --cash-loop-end: 52%; animation-delay: 0.4s; }
.cash-loop__fill--3 { --cash-loop-end: 68%; animation-delay: 0.65s; }

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

/* Right oval stage */
.cash-loop__stage {
    min-height: 9rem;
}

.cash-loop__band {
    left: -3rem;
    right: -3rem;
    transform: translateY(-50%);
}

.cash-loop__marquee {
    width: max-content;
    animation: cash-loop-marquee 28s linear infinite;
}

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

.cash-loop__photo {
    width: 11rem;
    aspect-ratio: 1 / 1;
}

.cash-loop__img {
    object-fit: cover;
}

.cash-loop__chip {
    transform: translate(-40%, 18%);
    min-width: 8rem;
}

.cash-loop__desc {
    max-width: 28rem;
}

@media (min-width: 768px) {
    .cash-loop__photo {
        width: 13rem;
        aspect-ratio: 21 / 20;
    }

    .cash-loop__chip {
        transform: translate(-75%, 20%);
    }

    .cash-loop__band {
        left: -7rem;
        right: -7rem;
    }

    .cash-loop__oval.cash-loop__oval {
        border-radius: 50% !important;
        min-height: 22rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cash-loop__marquee,
    .cash-loop__fill {
        animation: none;
    }

    .cash-loop__fill--1 { width: 84%; }
    .cash-loop__fill--2 { width: 52%; }
    .cash-loop__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 v18 — pulse rail: layout / motion only */
.pulse-rail__eyebrow { font-size: 0.875rem; letter-spacing: 0.2em; }
.pulse-rail__heading { letter-spacing: -0.025em; }
.pulse-rail__toggle {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
    outline-offset: -2px;
}
.pulse-rail__num { min-width: 2rem; }
.pulse-rail__plus { transition: transform 200ms ease; }
.pulse-rail__item.is-open .pulse-rail__plus { transform: rotate(45deg); }
.pulse-rail__panel { padding-left: 3.25rem; }
.pulse-rail__cloud { filter: blur(2.5rem); pointer-events: none; }
.pulse-rail__cloud--a { width: 14rem; height: 8rem; transform: translate(-3rem, -2rem); }
.pulse-rail__cloud--b { width: 18rem; height: 10rem; transform: translate(50%, 140%); }
.pulse-rail__heatmap {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
}
.pulse-rail__heat {
    aspect-ratio: 1.5 / 1;
    animation: pulse-rail-heat 2.8s ease-in-out infinite;
}
.pulse-rail__heat:nth-child(7n + 1) { animation-delay: 0s; }
.pulse-rail__heat:nth-child(7n + 2) { animation-delay: 0.2s; }
.pulse-rail__heat:nth-child(7n + 3) { animation-delay: 0.4s; }
.pulse-rail__heat:nth-child(7n + 4) { animation-delay: 0.6s; }
.pulse-rail__heat:nth-child(7n + 5) { animation-delay: 0.8s; }
.pulse-rail__heat:nth-child(7n + 6) { animation-delay: 1s; }
.pulse-rail__heat:nth-child(7n + 7) { animation-delay: 1.2s; }
@keyframes pulse-rail-heat {
    0%, 100% { opacity: 0.55; transform: scale(0.94); }
    50% { opacity: 1; transform: scale(1); }
}
.pulse-rail__tiny { font-size: 0.6875rem; line-height: 1rem; }
.pulse-rail__icon { width: 2rem; height: 2rem; font-size: 0.75rem; }
.pulse-rail__insight-body { min-width: 0; }
.pulse-rail__chart { height: 8.5rem; overflow: visible; }
.pulse-rail__chart-fill { animation: pulse-rail-fill 3.6s ease-in-out infinite; transform-origin: center bottom; }
.pulse-rail__chart-line { stroke-dasharray: 520; animation: pulse-rail-draw 4.8s ease-in-out infinite; }
.pulse-rail__chart-guide { animation: pulse-rail-guide 4.8s ease-in-out infinite; }
.pulse-rail__chart-mark,
.pulse-rail__chart-dot { animation: pulse-rail-mark 4.8s ease-in-out infinite; }
@keyframes pulse-rail-fill {
    0%, 100% { opacity: 0.7; transform: scaleY(0.92); }
    50% { opacity: 1; transform: scaleY(1); }
}
@keyframes pulse-rail-draw {
    0% { stroke-dashoffset: 520; opacity: 0.35; }
    35% { stroke-dashoffset: 0; opacity: 1; }
    70%, 100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes pulse-rail-guide {
    0%, 20% { opacity: 0; }
    45%, 100% { opacity: 1; }
}
@keyframes pulse-rail-mark {
    0%, 30% { opacity: 0; transform: translateY(6px); }
    45%, 100% { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .pulse-rail__heat,
    .pulse-rail__chart-fill,
    .pulse-rail__chart-line,
    .pulse-rail__chart-guide,
    .pulse-rail__chart-mark,
    .pulse-rail__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 */
.pulse-rail__panel[hidden] { display: none !important; }

/* month labels under the heatmap: one line each, trimmed if long, so neighbours never collide */
.pulse-rail__heatmap.pulse-rail__tiny > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* testimonials — tower reel: sticky header + vertical marquee */
.tower-reel__eyebrow {
    letter-spacing: 0.12em;
}

.tower-reel__title {
    letter-spacing: -0.025em;
}

.tower-reel__aside {
    position: sticky;
    top: 6rem;
}

.tower-reel__stage {
    height: 36rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

.tower-reel__track {
    width: 100%;
    animation: tower-reel-up 55s linear infinite;
    will-change: transform;
}

.tower-reel__track--down {
    animation-name: tower-reel-down;
}

.tower-reel__stage:hover .tower-reel__track,
.tower-reel__stage:focus-within .tower-reel__track {
    animation-play-state: paused;
}

.tower-reel__list {
    gap: 1.25rem;
    padding-bottom: 1.25rem;
}

.tower-reel__card {
    width: 100%;
    min-height: 14rem;
}

.tower-reel__avatar {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
}

@keyframes tower-reel-up {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

@keyframes tower-reel-down {
    from { transform: translateY(-50%); }
    to { transform: translateY(0); }
}

@media (min-width: 992px) {
    .tower-reel__stage {
        height: 42rem;
    }

    .tower-reel__card {
        min-height: 15rem;
    }
}

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

    .tower-reel__stage {
        height: auto;
        overflow-y: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

