@keyframes driftLeftRight {
    0% { transform: translateX(-15%); }
    50% { transform: translateX(15%); }
    100% { transform: translateX(-15%); }
}

@keyframes driftRightLeft {
    0% { transform: translateX(15%); }
    50% { transform: translateX(-15%); }
    100% { transform: translateX(15%); }
}

.intro-drift-strip-a {
    width: 33%;
    height: 6rem;
    animation: driftLeftRight 14s ease-in-out infinite;
}

.intro-drift-strip-b {
    width: 50%;
    height: 4rem;
    animation: driftRightLeft 18s ease-in-out infinite;
}

.intro-drift-strip-c {
    width: 25%;
    height: 5rem;
    animation: driftLeftRight 12s ease-in-out infinite;
    animation-delay: 3s;
}

.intro-drift-container {
    max-width: 80rem;
}

.intro-drift-textbox {
    max-width: 48rem;
}

.steps-primary-row__card-col {
    max-width: 28rem;
}

.steps-primary-row__badge-circle {
    width: 4rem;
    height: 4rem;
}

/* 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. */

.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;
    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 {
    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 {
    transform: rotate(-1deg);
}

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

.whyus-ransom__row-number {
    top: -1.5rem;
    right: 0;
    line-height: 1;
    z-index: 0;
}

.whyus-ransom__row-track {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.whyus-ransom__row-item {
    scroll-snap-align: start;
}

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

/* quote — featured academic quote + supporting cards */

/* serif lead + drop-cap. BS has no font-serif utility; font-family here is allowed (it is not a color) */
.quote-essay__lead {
    font-family: ui-serif, Georgia, "Times New Roman", serif;
}

.quote-essay__lead::first-letter {
    float: left;
    font-size: 3.25rem;
    line-height: 0.8;
    padding-right: 0.5rem;
    font-weight: 700;
}

/* author avatar: fixed size + cover (neither has a BS utility) */
.quote-essay__avatar {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
}

.quote-essay__glow {
    width: 16rem;
    height: 16rem;
    filter: blur(64px);
}

/* stepping-stone offset rhythm on supporting cards — layout only */
@media (min-width: 1024px) {
    .quote-essay__step:nth-child(odd) {
        transform: translateY(0.75rem);
    }
    .quote-essay__step:nth-child(even) {
        transform: translateY(-0.25rem);
    }
}
/* hover + focus affordances (layout/outline via theme token) */
@media (hover: hover) {
    .quote-essay-root [role="listitem"]:hover,
    .quote-essay-root article:hover,
    .quote-essay-root [class*="quote-essay__card"]:hover,
    .quote-essay-root .quote-essay__book:hover,
    .quote-essay-root .quote-essay__step:hover,
    .quote-essay-root .quote-essay__index-card:hover,
    .quote-essay-root .quote-essay__pill:hover,
    .quote-essay-root .quote-essay__item:hover {
        transform: translateY(-0.125rem);
    }
}

.quote-essay-root [role="listitem"],
.quote-essay-root article,
.quote-essay-root [class*="quote-essay__card"],
.quote-essay-root .quote-essay__book,
.quote-essay-root .quote-essay__step,
.quote-essay-root .quote-essay__index-card,
.quote-essay-root .quote-essay__pill {
    transition: transform 200ms ease;
}

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

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

