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

/* vault-story — centered statement, pulsing badge, sticky phone mockup + scroll-story services */
.vault-story {
    overflow-x: clip;
}

.vault-story__eyebrow {
    letter-spacing: 0.12em;
}

.vault-story__heading {
    letter-spacing: -0.02em;
}

/* Pulsing concentric badge */
.vault-story__badge {
    width: 7.5rem;
    height: 7.5rem;
}

.vault-story__badge-core {
    width: 4.5rem;
    height: 4.5rem;
}

.vault-story__pulse {
    animation: vault-story-pulse 2.4s ease-out infinite;
}

@keyframes vault-story-pulse {
    0% {
        transform: scale(0.85);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.vault-story__guide {
    width: 0;
    height: 5rem;
}

.vault-story .vault-story__guide {
    border-left-style: dashed !important;
}

/* Phone stage + rings */
.vault-story__stage {
    min-height: 34rem;
}

.vault-story__ring--outer {
    width: 40rem;
    height: 40rem;
}

.vault-story__ring--middle {
    width: 30rem;
    height: 30rem;
}

.vault-story__ring--inner {
    width: 21rem;
    height: 21rem;
}

.vault-story__phone {
    width: 16rem;
    aspect-ratio: 9 / 19;
    padding: 0.55rem;
    border-radius: 2.75rem;
    margin: 0;
}

.vault-story__screen {
    border-radius: 2.25rem;
}

.vault-story__notch {
    width: 5.5rem;
    height: 1.4rem;
}

.vault-story__status {
    font-size: 0.75rem;
}

.vault-story__status i {
    margin-left: 0.2rem;
    font-size: 0.65rem;
}

.vault-story__coin {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.7rem;
}

.vault-story__micro {
    font-size: 0.7rem;
    line-height: 1.2;
}

.vault-story__chart {
    min-height: 7rem;
    overflow: visible;
}

.vault-story__chart-svg {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 7rem;
    overflow: visible;
}

.vault-story__chart-fill {
    transform-origin: center bottom;
    animation: vault-story-chart-fill 4.2s ease-in-out infinite;
}

.vault-story__chart-line {
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    animation: vault-story-chart-draw 4.2s ease-in-out infinite;
}

.vault-story__chart-dot {
    transform-box: fill-box;
    transform-origin: center;
    animation: vault-story-chart-dot 4.2s ease-in-out infinite;
}

@keyframes vault-story-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 vault-story-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 vault-story-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); }
}

.vault-story__periods {
    margin: 0;
    list-style: none;
}

/* Progress rail */
.vault-story__track {
    width: 2.75rem;
    min-height: 18rem;
    margin: 0;
    list-style: none;
}

.vault-story__mark {
    width: 2.25rem;
    height: 2.25rem;
}

.vault-story__mark-dot {
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 250ms ease, transform 250ms ease;
}

.vault-story__mark.is-active .vault-story__mark-dot {
    opacity: 1;
    transform: scale(1);
}

.vault-story__step {
    transition: opacity 300ms ease;
}

.vault-story__stage {
    position: relative;
}

@media (min-width: 1024px) {
    .vault-story__phone {
        width: 18rem;
    }

    .vault-story .vault-story__stage {
        position: sticky;
        top: 6rem;
        min-height: calc(100vh - 8rem);
    }

    .vault-story__rail {
        position: sticky;
        top: 35vh;
    }

    .vault-story__step {
        min-height: 75vh;
    }

    .vault-story.is-ready .vault-story__step {
        opacity: 0.3;
    }

    .vault-story.is-ready .vault-story__step.is-active {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vault-story__pulse,
    .vault-story__chart-fill,
    .vault-story__chart-line,
    .vault-story__chart-dot {
        animation: none;
    }

    .vault-story__chart-fill,
    .vault-story__chart-dot {
        opacity: 1;
        transform: none;
    }

    .vault-story__chart-line {
        opacity: 1;
        stroke-dashoffset: 0;
    }

    .vault-story__step,
    .vault-story__mark-dot {
        transition: none;
    }
}

/* time-range chips inside the phone mock: never spill out of the frame; extra chips scroll sideways */
ul:has(> li.vault-story__micro) { overflow-x: auto; scrollbar-width: none; }
ul:has(> li.vault-story__micro)::-webkit-scrollbar { display: none; }
li.vault-story__micro { flex-shrink: 0; white-space: nowrap; }

/* v25 - chat bubble speech tail (border-triangle trick has no TW/BS utility) */
[data-chat-bubble] {
    position: relative;
}

/* fixed max-widths matching the TW max-w-3xl / max-w-2xl utilities (no BS equivalent) */
.dialogue-thread__wrap {
    max-width: 48rem;
}

.dialogue-thread__subtitle-max {
    max-width: 42rem;
}

/* fixed avatar size matching TW w-8 h-8 (no BS utility beyond 25/50/75/100%) */
.dialogue-thread__avatar {
    width: 2rem;
    height: 2rem;
}

/* fixed bubble max-width matching TW max-w-md (no BS equivalent) */
.dialogue-thread__bubble {
    max-width: 28rem;
}

[data-bubble-side="left"] [data-chat-bubble]::before {
    content: "";
    position: absolute;
    top: 1.25rem;
    left: -0.5rem;
    width: 0;
    height: 0;
    border-top: 0.5rem solid transparent;
    border-bottom: 0.5rem solid transparent;
    border-right: 0.5rem solid currentColor;
    color: inherit;
    opacity: 0.15;
}

[data-bubble-side="right"] [data-chat-bubble]::before {
    content: "";
    position: absolute;
    top: 1.25rem;
    right: -0.5rem;
    width: 0;
    height: 0;
    border-top: 0.5rem solid transparent;
    border-bottom: 0.5rem solid transparent;
    border-left: 0.5rem solid currentColor;
    color: inherit;
    opacity: 0.15;
}

/* quote v16 — grid bookshelf (quote-grid-shelf__* — isolated from quote v12 quote-shelf__*) */

.quote-grid-shelf__art--mesh {
    background-image:
        radial-gradient(circle at 20% 30%, currentColor 0, transparent 42%),
        radial-gradient(circle at 78% 18%, currentColor 0, transparent 38%),
        radial-gradient(circle at 62% 82%, currentColor 0, transparent 45%),
        radial-gradient(circle at 12% 72%, currentColor 0, transparent 36%);
    opacity: 0.18;
}

.quote-grid-shelf__art--hatch {
    background-image: repeating-linear-gradient(
        -38deg,
        transparent,
        transparent 6px,
        currentColor 6px,
        currentColor 7px
    );
    opacity: 0.12;
    mix-blend-mode: overlay;
}

.quote-grid-shelf__art--grain {
    background-image:
        repeating-conic-gradient(from 0deg at 50% 50%, currentColor 0deg 2deg, transparent 2deg 7deg),
        repeating-linear-gradient(90deg, transparent 0 3px, currentColor 3px 4px);
    opacity: 0.08;
}

.quote-grid-shelf__ripple-pool {
    width: 28rem;
    height: 28rem;
    left: var(--ripple-x, 50%);
    top: var(--ripple-y, 50%);
    transform: translate(-50%, -50%) scale(0.35);
    opacity: 0;
    transition: transform 450ms ease, opacity 600ms ease;
    will-change: transform, opacity;
}

.quote-grid-shelf__ripple-pool.is-pulsing {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .quote-grid-shelf__ripple-pool {
        display: none;
    }
}

.quote-grid-shelf__bracket {
    width: 0.5rem;
}

.quote-grid-shelf__bracket--left {
    left: 1rem;
}

.quote-grid-shelf__bracket--right {
    right: 1rem;
}

.quote-grid-shelf__scroll {
    max-height: 36rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.quote-grid-shelf__parent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(8.25rem, auto));
    gap: 1rem;
}

@media (min-width: 768px) {
    .quote-grid-shelf__parent-grid {
        gap: 1.5rem;
    }
}

.quote-grid-shelf__child-grid {
    display: grid;
    grid-row: span 1;
    min-height: 100%;
    grid-template-rows: subgrid;
}

@supports not (grid-template-rows: subgrid) {
    .quote-grid-shelf__child-grid {
        grid-template-rows: auto 1fr auto;
        height: 100%;
    }
}

.quote-grid-shelf__ledge:nth-child(1) {
    top: 25%;
}

.quote-grid-shelf__ledge:nth-child(2) {
    top: 50%;
}

.quote-grid-shelf__ledge:nth-child(3) {
    top: 75%;
}

.quote-grid-shelf__ledge {
    height: 0.25rem;
}

.quote-grid-shelf__book--linocut {
    clip-path: polygon(
        0% 1.5%, 3% 0%, 8% 1%, 15% 0%, 24% 1.2%, 35% 0%, 48% 0.8%, 62% 0%, 75% 1%, 88% 0%, 96% 1.5%, 100% 0.5%,
        100% 98%, 97% 100%, 90% 98.5%, 80% 100%, 68% 98%, 55% 100%, 42% 98.5%, 28% 100%, 14% 98%, 5% 100%, 0% 97%
    );
}

.quote-grid-shelf__opening {
    font-variant: common-ligatures;
    letter-spacing: -0.04em;
}

.quote-grid-shelf__reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 550ms ease, transform 550ms ease;
    transition-delay: calc(var(--shelf-stagger, 0) * 90ms);
}

.quote-grid-shelf__reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .quote-grid-shelf__reveal {
        opacity: 1;
        transform: none;
        transition: none;
        transition-delay: 0ms;
    }
}
/* hover + focus affordances (layout/outline via theme token) */
@media (hover: hover) {
    .quote-grid-shelf-root [role="listitem"]:hover,
    .quote-grid-shelf-root article:hover,
    .quote-grid-shelf-root [class*="quote-grid-shelf__card"]:hover,
    .quote-grid-shelf-root .quote-grid-shelf__book:hover,
    .quote-grid-shelf-root .quote-grid-shelf__step:hover,
    .quote-grid-shelf-root .quote-grid-shelf__index-card:hover,
    .quote-grid-shelf-root .quote-grid-shelf__pill:hover,
    .quote-grid-shelf-root .quote-grid-shelf__item:hover {
        transform: translateY(-0.125rem);
    }
}

.quote-grid-shelf-root [role="listitem"],
.quote-grid-shelf-root article,
.quote-grid-shelf-root [class*="quote-grid-shelf__card"],
.quote-grid-shelf-root .quote-grid-shelf__book,
.quote-grid-shelf-root .quote-grid-shelf__step,
.quote-grid-shelf-root .quote-grid-shelf__index-card,
.quote-grid-shelf-root .quote-grid-shelf__pill {
    transition: transform 200ms ease;
}

.quote-grid-shelf-root a:focus-visible,
.quote-grid-shelf-root button:focus-visible,
.quote-grid-shelf-root [tabindex="0"]:focus-visible,
.quote-grid-shelf-root input:focus-visible,
.quote-grid-shelf-root summary:focus-visible,
.quote-grid-shelf-root [role="slider"]:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

@media (hover: hover) {
    .quote-grid-shelf-root button:hover,
    .quote-grid-shelf-root a:hover,
    .quote-grid-shelf-root summary:hover {
        opacity: 0.92;
    }
}

/* contact-bento — CSS Grid bento layout (applies to both TW and BS) */
.contact-bento__grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .contact-bento__grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 14rem 10rem;
    }

    .contact-bento__cell--title   { grid-column: 1 / 3; grid-row: 1; }
    .contact-bento__cell--image   { grid-column: 3 / 4; grid-row: 1; }
    .contact-bento__cell--phone   { grid-column: 1 / 2; grid-row: 2; }
    .contact-bento__cell--email   { grid-column: 2 / 3; grid-row: 2; }
    .contact-bento__cell--address { grid-column: 3 / 4; grid-row: 2; }
}

/* contact-bento — icon cell fixed size (TW w-10 h-10 has no BS util) */
.contact-bento__icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* contact-bento — image fill (no BS object-fit util) */
.contact-bento__img {
    object-fit: cover;
    min-height: 12rem;
}

