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

/* trust-split — left caption column + two stacked opposite marquees */
.trust-split__eyebrow {
    letter-spacing: 0.18em;
}

.trust-split__count {
    letter-spacing: -0.035em;
}

.trust-split__rule {
    width: 0;
    min-height: 8rem;
}

.trust-split__viewport {
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.trust-split__track {
    width: max-content;
    animation: trust-split-slide 52s linear infinite;
}

.trust-split__track--rev {
    animation-direction: reverse;
    animation-duration: 60s;
    animation-delay: -18s;
}

.trust-split__viewport:hover .trust-split__track {
    animation-play-state: paused;
}

.trust-split__group {
    gap: 0.85rem;
    padding-right: 0.85rem;
}

.trust-split__tile {
    width: 11.5rem;
    height: 4.75rem;
}

.trust-split__name {
    letter-spacing: -0.01em;
}

@keyframes trust-split-slide {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

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

    .trust-split__rule {
        min-height: 14rem;
    }
}

@media (max-width: 767.98px) {
    .trust-split__tile {
        width: 9rem;
        height: 4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .trust-split__track {
        animation: none;
    }

    .trust-split__viewport {
        overflow-x: auto;
        mask-image: none;
        -webkit-mask-image: none;
    }
}

/* steps — relay grid: hairline frame with corner nodes */
.relay-grid__eyebrow {
    letter-spacing: 0.12em;
}

.relay-grid__title {
    letter-spacing: -0.02em;
}

/* node dots sit centred on each 1px corner; colour comes from the Tailwind/BS text class on the node layer */
.relay-grid__nodes::before,
.relay-grid__nodes::after,
.relay-grid__nodes-bottom::before,
.relay-grid__nodes-bottom::after {
    content: "";
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: currentColor;
}

.relay-grid__nodes::before {
    top: -4.5px;
    left: -4.5px;
}

.relay-grid__nodes::after {
    top: -4.5px;
    right: -4.5px;
}

.relay-grid__nodes-bottom::before {
    bottom: -4.5px;
    left: -4.5px;
}

.relay-grid__nodes-bottom::after {
    bottom: -4.5px;
    right: -4.5px;
}

.relay-grid__icon {
    width: 3.5rem;
    height: 3.5rem;
}

.relay-grid__text {
    max-width: 22rem;
}

/* our-philosophy — creed stack: copy left, stacked word cards right */
.creed-stack__eyebrow {
    letter-spacing: 0.16em;
}

.creed-stack__heading {
    letter-spacing: -0.03em;
}

.creed-stack__tick {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.625rem;
}

.creed-stack__panel {
    padding: 1.25rem;
}

.creed-stack__card {
    padding: 1.15rem;
}

.creed-stack__foot {
    padding: 1rem 1.15rem;
}

.creed-stack__caption {
    font-size: 0.75rem;
    line-height: 1rem;
}

.creed-stack__avatar {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
}

.creed-stack__chip {
    font-size: 0.7rem;
    line-height: 1;
}

@media (min-width: 1024px) {
    .creed-stack__panel {
        padding: 1.75rem;
    }
}

/* metric-ledger — stacked editorial rows with giant numbers */
.metric-ledger__eyebrow {
    letter-spacing: 0.14em;
}

.metric-ledger__heading {
    letter-spacing: -0.03em;
}

.metric-ledger__row {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.metric-ledger__row:first-child {
    padding-top: 0;
}

.metric-ledger__figure {
    letter-spacing: -0.04em;
    min-width: 7rem;
}

.metric-ledger__number {
    font-variant-numeric: tabular-nums;
}

.metric-ledger__suffix {
    top: 0;
    margin-top: 0.15em;
    vertical-align: baseline;
}

@media (min-width: 768px) {
    .metric-ledger__figure {
        min-width: 10rem;
    }
}

/* advantages — trust dashboard: layout, sizes and transforms only (no colors) */
.trust-dashboard__eyebrow {
    font-size: 0.875rem;
    letter-spacing: 0.2em;
}

.trust-dashboard__heading {
    letter-spacing: -0.025em;
}

.trust-dashboard__toggle {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
    outline-offset: -2px;
}

.trust-dashboard__num {
    min-width: 2rem;
}

.trust-dashboard__plus {
    transition: transform 200ms ease;
}

.trust-dashboard__item.is-open .trust-dashboard__plus {
    transform: rotate(45deg);
}

.trust-dashboard__panel {
    padding-left: 3.25rem;
}

.trust-dashboard__cloud {
    filter: blur(2.5rem);
    pointer-events: none;
}

.trust-dashboard__cloud--a { width: 16rem; height: 9rem; transform: translate(-4rem, -2rem); }
.trust-dashboard__cloud--b { width: 20rem; height: 11rem; transform: translate(60%, 160%); }

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

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

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

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

.trust-dashboard__tiny {
    font-size: 0.6875rem;
    line-height: 1rem;
}

.trust-dashboard__icon {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
}

.trust-dashboard__insight-body {
    min-width: 0;
}

.trust-dashboard__chart {
    height: 8.5rem;
    overflow: visible;
}

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

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

.trust-dashboard__chart-guide {
    animation: trust-chart-guide 4.8s ease-in-out infinite;
}

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

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

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

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

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

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

@media (prefers-reduced-motion: reduce) {
    .trust-dashboard__heat,
    .trust-dashboard__chart-fill,
    .trust-dashboard__chart-line,
    .trust-dashboard__chart-guide,
    .trust-dashboard__chart-mark,
    .trust-dashboard__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 */
.trust-dashboard__panel[hidden] { display: none !important; }

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

.pulse-stack__eyebrow {
    letter-spacing: 0.12em;
}

.pulse-stack__heading {
    letter-spacing: -0.02em;
}

.pulse-stack__micro {
    font-size: 0.75rem;
    line-height: 1.3;
}

.pulse-stack__double {
    border-top-style: double;
}

.pulse-stack__glow {
    width: 16rem;
    height: 16rem;
    transform: translate(30%, 30%);
    filter: blur(14px);
}

.pulse-stack__frost {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.pulse-stack__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pulse-stack__track {
    height: 0.25rem;
}

.pulse-stack__fill {
    width: 0;
    animation: pulse-stack-fill 1.8s ease forwards;
}

.pulse-stack__fill--1 { --pulse-stack-end: 84%; animation-delay: 0.15s; }
.pulse-stack__fill--2 { --pulse-stack-end: 52%; animation-delay: 0.4s; }
.pulse-stack__fill--3 { --pulse-stack-end: 68%; animation-delay: 0.65s; }

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

.pulse-stack__marquee {
    width: max-content;
    animation: pulse-stack-marquee 22s linear infinite;
}

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

.pulse-stack__band {
    margin-inline: -1rem;
    padding-inline: 1rem;
}

@media (min-width: 768px) {
    .pulse-stack__band {
        margin-inline: -1.5rem;
        padding-inline: 1.5rem;
    }
}

.pulse-stack__chip {
    width: max-content;
    max-width: 14rem;
}

.pulse-stack__copy {
    max-width: 34rem;
}

.pulse-stack__photo {
    aspect-ratio: 3 / 4;
    width: 100%;
}

.pulse-stack__img {
    object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
    .pulse-stack__marquee,
    .pulse-stack__fill {
        animation: none;
    }

    .pulse-stack__fill--1 { width: 84%; }
    .pulse-stack__fill--2 { width: 52%; }
    .pulse-stack__fill--3 { width: 68%; }
}

/* testimonials — client chorus: twin marquee rows */
.client-chorus__eyebrow {
    letter-spacing: 0.12em;
}

.client-chorus__title {
    letter-spacing: -0.02em;
}

.client-chorus__row {
    width: 100%;
}

.client-chorus__track {
    width: max-content;
    animation: client-chorus-left 70s linear infinite;
    will-change: transform;
}

.client-chorus__track--right {
    animation-name: client-chorus-right;
}

.client-chorus__row:hover .client-chorus__track,
.client-chorus__row:focus-within .client-chorus__track {
    animation-play-state: paused;
}

/* gap + trailing padding are equal so the -50% loop is seamless */
.client-chorus__list {
    gap: 1.5rem;
    padding-right: 1.5rem;
}

.client-chorus__card {
    width: 19rem;
    min-height: 17rem;
}

.client-chorus__person {
    min-width: 0;
}

.client-chorus__person-body {
    min-width: 0;
}

.client-chorus__avatar {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
}

@media (min-width: 768px) {
    .client-chorus__card {
        width: 34rem;
        min-height: 20rem;
    }

    .client-chorus__avatar {
        width: 6rem;
        height: 6rem;
    }
}

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

@keyframes client-chorus-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

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

    .client-chorus__row {
        overflow-x: auto;
    }
}

