@keyframes rotateSquare {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.intro-pattern-overlay {
    background-image: repeating-linear-gradient(45deg, transparent, transparent 20px, currentColor 20px, currentColor 40px);
    opacity: 0.03;
    top: -20%;
    left: -30%;
    width: 100%;
    height: 100%;
    animation: rotateSquare 20s linear infinite;
}

.intro-pattern-content {
    max-width: 56rem;
}

.features-card-layout__icon-wrap {
    transition: transform 0.3s ease;
}
.features-card-layout__item--group:hover .features-card-layout__icon-wrap {
    transform: rotate(12deg);
}

.features-card-layout__icon {
    transition: transform 0.3s ease;
}
.features-card-layout__item--group:hover .features-card-layout__icon {
    transform: scale(1.1);
}

.features-card-layout__title {
    transition: color 0.3s ease;
}

/* -- 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 v17 — bookshelf pill grid (layout/animation only, no colors) */

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

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

.whyus-shelf-pills__wash,
.whyus-shelf-pills__half {
    width: 50%;
}

.whyus-shelf-pills__wash {
    --bs-bg-opacity: 0.05;
}

.whyus-shelf-pills__head {
    margin-bottom: 0.75rem;
}

.whyus-shelf-pills__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.025em;
}

.whyus-shelf-pills__title {
    font-size: 1.5rem;
}

.whyus-shelf-pills__pill-icon {
    font-size: 1rem;
    margin-top: 0.125rem;
}

.whyus-shelf-pills__pill-desc {
    font-size: 0.75rem;
}

.whyus-shelf-pills__cta {
    padding: 0.625rem 1.5rem;
}

/* shelf row spacing — ultra-tight external gaps */
.whyus-shelf-pills__shelf {
    position: relative;
    gap: 0.75rem;
}

.whyus-shelf-pills__shelf + .whyus-shelf-pills__shelf {
    margin-top: 0.25rem;
}

.whyus-shelf-pills__shelf--last {
    margin-bottom: 0;
    border-bottom-width: 0;
}

/* pill — magnetic pull toward cursor, driven by JS-set custom properties */
.whyus-shelf-pills__pill {
    max-width: 20rem;
    gap: 0.75rem;
    transition: box-shadow 150ms ease-out, transform 150ms ease-out;
    --tilt-x: 0;
    --tilt-y: 0;
    will-change: transform;
    transform: translate(calc(var(--tilt-x) * 1px), calc(var(--tilt-y) * 1px));
    transition: transform 150ms ease-out;
}

.whyus-shelf-pills__items {
    display: flex;
    flex-direction: column;
}

.whyus-shelf-pills__pill-body {
    min-width: 0;
}

/* pill hover lift — Bootstrap has no hover utility; `:where()` keeps specificity at 0-1-0
   so Tailwind's own `hover:shadow-md` still wins in the Tailwind build. Theme token only. */
:where(.whyus-shelf-pills__pill):hover {
    box-shadow: var(--bs-box-shadow);
}

/* diamond decor shapes */
.whyus-shelf-pills__diamond {
    position: absolute;
    transform: rotate(45deg);
    --bs-border-opacity: 0.3;
}

.whyus-shelf-pills__diamond--a {
    top: 1.5rem;
    left: 1rem;
    --bs-border-opacity: 0.4;
}

.whyus-shelf-pills__diamond--b {
    top: 33.333333%;
    right: 2rem;
}

.whyus-shelf-pills__diamond--c {
    bottom: 2.5rem;
    left: 25%;
}

.whyus-shelf-pills__diamond--d {
    bottom: 1.5rem;
    right: 33.333333%;
}

.whyus-shelf-pills__diamond--sm {
    width: 0.5rem;
    height: 0.5rem;
}

.whyus-shelf-pills__diamond--md {
    width: 0.875rem;
    height: 0.875rem;
}

.whyus-shelf-pills__diamond--lg {
    width: 1.25rem;
    height: 1.25rem;
}

/* lightning flash — brief full-bleed opacity spike, no color set here */
.whyus-shelf-pills__flash {
    animation: whyus-shelf-pills-flash 7s ease-in-out infinite;
}

@keyframes whyus-shelf-pills-flash {
    0%, 90%, 100% {
        opacity: 0;
    }
    93% {
        opacity: 0.15;
    }
    96% {
        opacity: 0;
    }
}

/* variable font-weight axis animation on the heading */
.whyus-shelf-pills__heading-weight {
    animation: whyus-shelf-pills-weight 5s ease-in-out infinite alternate;
}

@keyframes whyus-shelf-pills-weight {
    from {
        font-weight: 400;
    }
    to {
        font-weight: 800;
    }
}

/* CTA is the only element with an entrance animation */
.whyus-shelf-pills__cta {
    animation: whyus-shelf-pills-cta-in 0.8s ease-out 0.3s both;
}

@keyframes whyus-shelf-pills-cta-in {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .whyus-shelf-pills__title {
        font-size: 2.25rem;
    }
}

.tour-panel-hover {
    transition: box-shadow 0.2s ease;
}

.tour-panel-hover:hover {
    box-shadow: var(--bs-box-shadow);
}

details[open] .tour-open-icon {
    transform: scale(1.05);
}

details[open] .tour-chevron {
    transform: rotate(180deg);
}

.tour-open-icon,
.tour-chevron {
    transition: transform 0.3s ease;
}

