.intro-split-gradient__col-left {
    flex: 1 1 60%;
}

.intro-split-gradient__skew-decor {
    width: 8rem;
}

.intro-split-gradient__content-area {
    max-width: 42rem;
}

.intro-split-gradient__text-box {
    max-width: 36rem;
}

.intro-split-gradient__col-right {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    align-self: stretch;
}

.intro-split-gradient__media-frame {
    flex: 1 1 auto;
    position: relative;
    overflow: hidden;
    /* Завжди є «коробка» для absolute img (BS Reboot: img height:auto ламає h-100 у порожнього батька) */
    min-height: 16rem;
    aspect-ratio: 4 / 3;
}

/* Перебиваємо Bootstrap reboot для img */
.intro-split-gradient__media-frame > img.intro-split-gradient__media-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    z-index: 0;
}

@media (min-width: 992px) {
    /* Права смуга на всю висоту в’юпорту — тоді flex-grow має від чого рахувати */
    .intro-split-gradient__col-right {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .intro-split-gradient__media-frame {
        flex: 1 1 0;
        width: 100%;
        min-height: min(50vh, 24rem);
        max-height: none;
        aspect-ratio: auto;
    }

    .intro-split-gradient__media-frame > img.intro-split-gradient__media-img {
        height: 100%;
    }
}

.intro-split-gradient__media-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.services-minimal__serif,
[data-serif] {
    font-family: Georgia, "Times New Roman", Times, serif;
}

.services-minimal__body {
    min-width: 0;
}

/* steps v23 - scroll progress fill driven by a JS-set --progress custom property */

.ascent-rail__wrap {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.steps-scroll-timeline__track {
    position: relative;
    padding-left: 4rem;
}

.steps-scroll-timeline__line {
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
}

.steps-scroll-timeline__fill {
    --progress: 0%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--progress);
    transition: height 120ms linear;
}

.steps-scroll-timeline__dot {
    position: absolute;
    left: -4rem;
    top: 0;
    width: 3rem;
    height: 3rem;
}

/* Geometry shared by both CSS frameworks (Bootstrap has no utilities for it) */
.whyus-letterpress {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.mxw-4xl {
    max-width: 56rem !important;
}

.whyus-letterpress__wrap {
    padding-inline: 1rem;
}

.whyus-letterpress__head {
    margin-bottom: 2.5rem;
}

.whyus-morse {
    gap: 0.375rem;
}

.whyus-letterpress__flourish-line {
    width: 10rem;
    height: 0.75rem;
}

.whyus-letterpress__intro {
    margin-inline: 1rem;
    font-size: 1rem;
}

.whyus-letterpress__table {
    border-collapse: collapse;
}

.whyus-letterpress__cell {
    padding: 1rem;
}

.whyus-letterpress__cell--head {
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.whyus-letterpress__cell--us {
    --bs-bg-opacity: 0.6;
}

.whyus-letterpress__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.whyus-letterpress__card-title {
    font-size: 1.125rem;
}

.whyus-letterpress__card-desc {
    font-size: 0.875rem;
}

/* hover ring — `:where()` keeps specificity at 0-1-0 so Tailwind's hover:ring-2 wins there */
.whyus-highlight-card {
    transition: box-shadow 150ms ease;
}

:where(.whyus-highlight-card):hover {
    box-shadow: 0 0 0 2px var(--bs-primary-border-subtle);
}

@media (min-width: 768px) {
    .whyus-letterpress {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .whyus-letterpress__wrap {
        padding-inline: 2.5rem;
    }

    .whyus-letterpress__head {
        margin-bottom: 3.5rem;
    }

    .whyus-letterpress__intro {
        margin-inline: 6rem;
        font-size: 1.125rem;
    }

    .whyus-letterpress__cell {
        padding: 1rem 1.5rem;
    }

    .whyus-letterpress__cell--head {
        font-size: 1rem;
    }

    .whyus-letterpress__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
        margin-top: 4rem;
    }

    .whyus-letterpress__card-desc {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .whyus-letterpress__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* v26 — morse-code ornament: fixed dot/dash sizing outside the Tailwind spacing scale */
.whyus-morse__mark {
    display: inline-block;
    flex-shrink: 0;
    --bs-bg-opacity: 0.5;
}

.whyus-morse__mark--dot {
    width: 0.375rem;
    height: 0.375rem;
}

.whyus-morse__mark--dash {
    width: 1.5rem;
    height: 0.3125rem;
}

/* v26 — Art Nouveau corner flourish: placement, size and subtle organic rotation */
.whyus-flourish {
    top: -1.5rem;
    inset-inline-start: -1.5rem;
    width: 6rem;
    height: 6rem;
    transform: rotate(-6deg);
    --bs-text-opacity: 0.35;
}

/* v26 — letterpress heading: tightened, print-like leading (color/weight handled by utility classes) */
.whyus-letterpress__heading {
    font-size: 1.875rem;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

@media (min-width: 768px) {
    .whyus-letterpress__heading {
        font-size: 3rem;
    }
}

/* v26 — spring/bounce entrance, plays once on load */
@keyframes whyus-spring-in {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.96);
    }
    60% {
        opacity: 1;
        transform: translateY(-6px) scale(1.015);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.whyus-spring-in {
    animation: whyus-spring-in 900ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.whyus-spring-in--delay {
    animation-delay: 160ms;
}

.whyus-highlight-card {
    animation: whyus-spring-in 700ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.whyus-highlight-card:nth-child(1) { animation-delay: 0.1s; }
.whyus-highlight-card:nth-child(2) { animation-delay: 0.2s; }
.whyus-highlight-card:nth-child(3) { animation-delay: 0.3s; }

/* v26 — ripple-from-cursor effect on comparison cells (color applied via Tailwind class in script.js) */
.whyus-ripple {
    position: absolute;
    left: 0;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 9999px;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    animation: whyus-ripple 600ms ease-out forwards;
}

@keyframes whyus-ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(9);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whyus-spring-in,
    .whyus-ripple,
    .whyus-highlight-card {
        animation: none;
    }
}

/* Card hover: scale */
.portfolio-item-hover {
    transition: transform 0.3s ease;
}
.portfolio-item-hover:hover {
    transform: scale(1.05);
}


.spark-boost__section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.spark-boost__inner {
    min-height: 500px;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .spark-boost__inner { min-height: 600px; }
}

/* Bootstrap: как у Tailwind p-sm → md:p-lg → lg:p-xl → xl:p-4xl (без фиксированных 6rem на мобиле) */
.spark-boost__vessel-bs {
    box-sizing: border-box;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .spark-boost__vessel-bs { padding: 1.5rem; }
}

@media (min-width: 992px) {
    .spark-boost__vessel-bs { padding: 2rem; }
}

@media (min-width: 1280px) {
    .spark-boost__vessel-bs { padding: 6rem; }
}

/* Bootstrap: две колонки + стабильный gap (row/g-* часто «съедаются» сбросами) */
.spark-boost__split-grid-bs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .spark-boost__split-grid-bs { gap: 1.5rem; }
}

.spark-boost__split-grid-bs > * {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .spark-boost__split-grid-bs {
        flex-wrap: nowrap;
    }

    .spark-boost__split-grid-bs > * {
        flex: 1 1 0;
        max-width: 50%;
    }
}

.spark-boost__slab--glass { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

@keyframes spark-boost-highlight-throb-seq {
    0%, 100% { opacity: 1; }
    50%       { opacity: .5; }
}
.spark-boost__highlight--throb {
    animation: spark-boost-highlight-throb-seq 2s cubic-bezier(.4,0,.6,1) infinite;
}

.spark-boost__prompt--glow:hover { transform: scale(1.05); transition: transform .2s ease; }

.spark-boost__control--glow:hover { transform: scale(1.05); transition: transform .2s ease; }

.spark-boost__surface--glow:hover { transform: scale(1.05); transition: transform .2s ease; }


