/* intro v23 — BAPE grunge wizard: film strip, giant numbers, clip-path wipe hover, height-expand step */

/* Full-width step photo — cinematic banner, object-fit has no BS utility */
.intro-grit__photo {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
}

/* Progress track height (no BS h-N utility) */
.intro-grit__track { height: 0.25rem; }

/* Clip-path reveal on hover: primary wipe grows from the corner */
.intro-grit__wipe {
    clip-path: circle(0% at 90% 10%);
    opacity: 0.12;
    transition: clip-path 420ms ease;
}
.intro-grit__card:hover .intro-grit__wipe {
    clip-path: circle(150% at 90% 10%);
}

/* Height-expand accordion-style step entrance */
.intro-grit__step {
    animation: intro-grit-expand 420ms ease;
    transform-origin: top;
}
@keyframes intro-grit-expand {
    from { opacity: 0; transform: scaleY(0.96) translateY(-0.5rem); }
    to   { opacity: 1; transform: scaleY(1) translateY(0); }
}

/* Progress bar transition */
.intro-grit__bar { transition: width 360ms ease; width: 0; }

/* Stepper dots — state via opacity, colour stays a Tailwind class */
.intro-grit__dot {
    width: 0.625rem;
    height: 0.625rem;
    opacity: 0.35;
    transition: opacity 200ms ease, transform 200ms ease;
}
.intro-grit__dot.is-active {
    opacity: 1;
    transform: scale(1.35);
}

@media (prefers-reduced-motion: reduce) {
    .intro-grit__step { animation: none; }
    .intro-grit__wipe { transition: none; }
}

/* -- Feature card hover -- */
.feat-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feat-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.12) !important;
}

/* -- Icon box sizing -- */
.feat-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 2.5rem;
    min-height: 2.5rem;
}
.feat-icon-box--lg {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
}
.feat-icon-box--xl {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
}
.feat-icon-box--circle {
    border-radius: 50%;
}

/* -- Nav/filmstrip button hover -- */
.feat-btn-nav {
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.feat-btn-nav:hover {
    transform: scale(1.1);
}

/* -- Table row hover -- */
.feat-table-row-hover {
    transition: background-color 0.15s ease;
}
.feat-table-row-hover:hover {
    background-color: var(--bs-primary-bg-subtle) !important;
}

/* -- Accordion item hover -- */
.feat-accordion-hover summary:hover {
    background-color: var(--bs-primary-bg-subtle);
    border-radius: 0.75rem;
}

/* -- DL item hover -- */
.feat-dl-item-hover {
    transition: background-color 0.15s ease;
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.feat-dl-item-hover:hover {
    background-color: var(--bs-primary-bg-subtle);
}

/* -- Deck button hover -- */
.feat-deck-btn {
    transition: filter 0.2s ease, transform 0.15s ease;
}
.feat-deck-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* whyus v16 — ransom-note table layout: pulse rings, scrim, giant row numbers, scroll-snap track */
/* No colors below: only white/black shade-as-opacity for the scrim (per project exception), everything else is layout/size/animation/transform. */

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

.mxw-3xl {
    max-width: 48rem !important;
}

.mxw-md {
    max-width: 28rem !important;
}

.whyus-ransom__head,
.whyus-ransom__media {
    margin-bottom: 4rem;
}

.whyus-ransom__note {
    margin-top: 4rem;
}

.whyus-ransom__foot {
    margin-top: 4rem;
}

.whyus-ransom__title {
    font-size: 1.875rem;
    letter-spacing: 0.025em;
}

.whyus-ransom__subtitle {
    font-size: 1rem;
}

.whyus-ransom__caption {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.whyus-ransom__icon {
    font-size: 1.875rem;
}

.whyus-ransom__item-title {
    font-size: 1.125rem;
    transition: letter-spacing 300ms ease;
}

.whyus-ransom__item-title:hover {
    letter-spacing: 0.025em;
}

.whyus-ransom__cta {
    padding: 1rem 2.5rem;
    letter-spacing: 0.025em;
    transition: transform 300ms ease;
}

.whyus-ransom__cta--hover:hover {
    transform: scale(1.05);
}

.whyus-ransom__decor {
    contain: layout style;
}

.whyus-ransom__pulse-ring {
    top: 50%;
    left: 50%;
    width: 12rem;
    height: 12rem;
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    --bs-border-opacity: 0.2;
    animation: whyus-ransom-pulse 4s ease-out infinite;
}

/* content-first: rings start after the heading's fade-in has already begun */
.whyus-ransom__pulse-ring--1 {
    --bs-border-opacity: 0.3;
    animation-delay: 0.8s;
}

.whyus-ransom__pulse-ring--2 {
    width: 20rem;
    height: 20rem;
    animation-delay: 1.6s;
}

.whyus-ransom__pulse-ring--3 {
    width: 28rem;
    height: 28rem;
    animation-delay: 2.4s;
}

@keyframes whyus-ransom-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0.6;
    }
    70% {
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

.whyus-ransom__fade-in {
    animation: whyus-ransom-fade-in 0.5s ease-out both;
}

@keyframes whyus-ransom-fade-in {
    from {
        opacity: 0;
        transform: translateY(0.75rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* radial vignette over the hero illustration only — pure lightness/opacity fade, not a hue */
.whyus-ransom__scrim {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 70%);
}

@media (prefers-color-scheme: dark) {
    .whyus-ransom__scrim {
        background: radial-gradient(circle at center, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 70%);
    }
}

.whyus-ransom__accent {
    display: block;
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    transform: rotate(-1deg);
}

.whyus-ransom__row-group {
    overflow: hidden;
}

.whyus-ransom__row-number {
    top: -1.5rem;
    right: 0;
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    z-index: 0;
    --bs-text-opacity: 0.05;
}

.whyus-ransom__row-track {
    flex-direction: column;
    gap: 2rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.whyus-ransom__row-item {
    padding-inline-start: 1.5rem;
    scroll-snap-align: start;
}

.whyus-ransom__row-item:first-child {
    border-inline-start-width: 0;
}

.whyus-ransom__snippet pre {
    white-space: pre-wrap;
}

@media (min-width: 768px) {
    .whyus-ransom__section--py {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }

    .whyus-ransom__head,
    .whyus-ransom__media {
        margin-bottom: 6rem;
    }

    .whyus-ransom__note {
        margin-top: 6rem;
    }

    .whyus-ransom__foot {
        margin-top: 5rem;
    }

    .whyus-ransom__title {
        font-size: 3rem;
    }

    .whyus-ransom__accent {
        display: inline;
        font-size: 3.75rem;
    }

    .whyus-ransom__subtitle {
        font-size: 1.125rem;
    }

    .whyus-ransom__row-number {
        font-size: 8rem;
    }

    .whyus-ransom__row-track {
        flex-direction: row;
        gap: 1.5rem;
    }

    .whyus-ransom__row-item {
        flex: 1 1 0%;
        padding-inline-start: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whyus-ransom__cta--hover:hover {
        transform: none;
    }
}

.essence-card-hover {
    transition: transform 0.3s ease;
}

.essence-card-hover:hover {
    transform: scale(1.05);
}

