/* intro v18 — Emigre clay: blurred photo, ECG draw, typewriter caret */

/* Blurred background photo, sharp panel sits over it */
.intro-clay [data-photo] {
    width: 66%;
    aspect-ratio: 4 / 3;
}
.intro-clay__img {
    object-fit: cover;
    filter: blur(5px) saturate(1.05);
    transform: scale(1.06);
}

/* Heartbeat / ECG line draw (stroke colour = currentColor from Tailwind text-*) */
.intro-clay__ecg-path {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: intro-clay-ecg 4s linear infinite;
}
@keyframes intro-clay-ecg {
    0%   { stroke-dashoffset: 1400; }
    60%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1400; }
}

/* Typewriter caret while typing */
.intro-clay__type .is-typing {
    border-right: 2px solid currentColor;
    animation: intro-clay-caret 800ms step-end infinite;
}
@keyframes intro-clay-caret {
    50% { border-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
    .intro-clay__ecg-path { animation: none; stroke-dashoffset: 0; }
}

/* Steps v29 — Split-Screen Steps with Sticky Icon Panel and Scrollable List */

/* Shared split-screen grid: sticky rail (narrow) + scrollable list (wide).
   No Bootstrap equivalent for an arbitrary grid-template-columns split,
   so this single custom class drives the layout in both TW and BS renders. */
.twin-pane__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
}

@media (min-width: 992px) {
    .twin-pane__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    }
}

/* Sticky icon/intro rail — position:sticky is standard CSS, framework-agnostic */
@media (min-width: 992px) {
    .twin-pane__rail {
        position: sticky;
        top: 6rem;
        align-self: flex-start;
    }
}

/* Fixed-size icon badge — no Bootstrap utility matches this exact box size */
.twin-pane__icon-box {
    width: 3rem;
    height: 3rem;
}

/* Remove trailing divider/spacing on the last step item (no BS :last-child utility) */
.twin-pane__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

/* process split — shell split, deck grid, marker, step numbers, stagger, panel borders */
.process-split__shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 992px) {
    .process-split__shell {
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
    }
}

.process-split__deck {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

.process-split__marker {
    width: 0.625rem;
    height: 0.625rem;
}

.process-split__num {
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    line-height: 0.9;
    letter-spacing: -0.03em;
}

.process-split__rule {
    width: 100%;
    height: 1px;
}

.process-split__col .process-split__blade:last-child {
    border-bottom-width: 0;
}

@media (min-width: 992px) {
    .process-split__deck--ruled {
        border-left: 1px solid var(--bs-border-color);
        border-top-width: 0;
        padding-top: 3.5rem;
    }

    .process-split__col--shift {
        margin-top: -3.5rem;
    }
}

@media (max-width: 991px) {
    .process-split__col--shift {
        margin-top: 0;
    }
}

.process-split__blade {
    transition: transform 200ms ease;
}

.process-split__blade:hover {
    transform: translateY(-2px);
}

.dashboard-metrics-timeline__grid-lines {
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 39px, currentColor 39px, currentColor 40px),
        repeating-linear-gradient(90deg, transparent, transparent 79px, currentColor 79px, currentColor 80px);
}

@keyframes dashboard-metrics-timeline__pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.dashboard-metrics-timeline__pulse {
    width: 0.5rem;
    height: 0.5rem;
    animation: dashboard-metrics-timeline__pulse 2s ease infinite;
}

.dashboard-metrics-timeline__watermark {
    font-size: clamp(60px, 12vw, 140px);
    opacity: 0.03;
}

.dashboard-metrics-timeline__icon {
    width: 2rem;
    height: 2rem;
}

.dashboard-metrics-timeline__metric {
    font-size: 2rem;
}

.dashboard-metrics-timeline__bar {
    height: 4px;
}

.dashboard-metrics-timeline__progress {
    height: 4px;
    width: var(--dashboard-metrics-timeline__width, 0%);
}

.dashboard-metrics-timeline__index-dot {
    width: 6px;
    height: 6px;
}

@keyframes dashboard-metrics-timeline__count {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dashboard-metrics-timeline__line {
    height: 1px;
}

/* Bootstrap branch: explicit grid + gap (row gutters often collapse with overflow / theme resets) */
.dashboard-metrics-timeline__bs-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .dashboard-metrics-timeline__bs-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .dashboard-metrics-timeline__bs-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2.25rem;
    }
}

.dashboard-metrics-timeline__min-shrink {
  min-width: 0;
}

/* Лише hover scale — розміри в @sem (tw) та width/height на img (bs) */
.quote-author-media-hover {
  transition: transform 0.3s ease;
}

.quote-author-media-hover:hover {
  transform: scale(1.05);
}

/* cta v41 — nest calculator card: floating motion, stacked bars (no colors) */
.cta-nest__float { animation: cta-nest-float 7s ease-in-out infinite; }
.cta-nest__card { opacity: 0; transform: translateY(2rem) scale(.98); transition: opacity 700ms ease, transform 800ms cubic-bezier(.2, .8, .2, 1); }
.cta-nest__card.is-visible { opacity: 1; transform: none; }
.cta-nest__icon { width: 3rem; height: 3rem; }
.cta-nest__micro { font-size: .75rem; line-height: 1.15rem; }
.cta-nest__info { margin-top: .2rem; }
.cta-nest__range { cursor: pointer; }
.cta-nest__dot { display: inline-block; width: .625rem; height: .625rem; }

.cta-nest__chart { height: 10rem; }
.cta-nest__stack { height: 4%; min-height: .375rem; transition: height 600ms cubic-bezier(.2, .8, .2, 1); }
.cta-nest__seg { flex: 0 0 auto; height: 0; transition: height 600ms cubic-bezier(.2, .8, .2, 1); }

@keyframes cta-nest-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -.5rem; } }

@media (prefers-reduced-motion: reduce) {
    .cta-nest__float { animation: none; }
    .cta-nest__card { opacity: 1; transform: none; transition: none; }
    .cta-nest__stack, .cta-nest__seg { transition: none; }
}

.cta-nest__chart > * { min-width: 0; flex-basis: 0; }
/* phones: only every other period label fits under the columns */
@media (max-width: 767.98px) {
    .cta-nest__chart > :nth-child(even) [data-year] { visibility: hidden; }
}
/* card captions stay small in both frameworks; period labels never wrap under narrow columns, the badge never pushes the total out */
.cta-nest__card .cta-nest__micro { font-size: .75rem !important; line-height: 1.15rem !important; }
.cta-nest__chart [data-year] { white-space: nowrap; font-size: .6875rem !important; text-align: center; }
.cta-nest__card .cta-nest__micro:not([data-year]) { min-width: 0; overflow-wrap: anywhere; }
.cta-nest :has(> [data-total]) + .cta-nest__micro { max-width: 50%; }
.cta-nest :has(> [data-total]) { min-width: 0; }

/* wpg-hidden: utility classes are renamed in production builds, so hidden states must not rely on .hidden / .d-none alone */
.cta-nest[hidden], .cta-nest [hidden], .cta-nest .hidden.d-none { display: none !important; }
.cta-nest output[data-total] { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem) !important; overflow-wrap: anywhere; }
.cta-nest :has(> output[data-total]) > :first-child { overflow-wrap: anywhere; }

