/* intro v17 — Death Note noir: circuit band, pulse rings, extrude text, duotone media, scroll slide-in */

/* Circuit-board traces — colour via Tailwind text-* on the band, currentColor in the pattern */
.intro-noir__circuit {
    background-image:
        repeating-linear-gradient(0deg, currentColor 0 1px, transparent 1px 32px),
        repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 32px);
    opacity: 0.18;
    -webkit-mask: linear-gradient(180deg, black, transparent);
    mask: linear-gradient(180deg, black, transparent);
}

/* Pulse rings from the band centre (size + placement so Bootstrap has no utility gap) */
.intro-noir__ring {
    width: 6rem;
    height: 6rem;
    top: 6rem;
    left: 50%;
    margin-left: -3rem;
    opacity: 0;
    animation: intro-noir-pulse 3.4s ease-out infinite;
}
.intro-noir__ring--2 { animation-delay: 1.7s; }

@keyframes intro-noir-pulse {
    0%   { transform: scale(0.4); opacity: 0.55; }
    100% { transform: scale(3.4); opacity: 0; }
}

/* Emboss seal circle */
.intro-noir__seal {
    width: 7rem;
    height: 7rem;
    font-size: 0.75rem;
    line-height: 1.1;
    padding: 0.75rem;
    transform: rotate(-8deg);
}

/* Extrude — stacked text-shadow depth using the element's own colour */
.intro-noir__extrude {
    text-shadow: 1px 1px 0 currentColor, 2px 2px 0 currentColor, 3px 3px 0 currentColor;
}

/* Duotone media: grayscale image + primary multiply tint (colour is a Tailwind class) */
.intro-noir__img {
    height: 10rem;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
}

/* Sticky aside offset (Bootstrap position-sticky has no top-16 utility) */
@media (min-width: 992px) {
    .intro-noir__aside { top: 4rem; }
}
.intro-noir__tint {
    mix-blend-mode: multiply;
    opacity: 0.5;
}

/* Letter-spacing widen on hover */
.intro-noir__ttl { transition: letter-spacing 260ms ease; }
[data-card]:hover .intro-noir__ttl { letter-spacing: 0.08em; }

/* Slide-in entrance — pure CSS on the reliable [data-card] attribute; always ends visible */
@keyframes intro-noir-rise {
    from { opacity: 0; transform: translateY(2rem); }
    to   { opacity: 1; transform: translateY(0); }
}
.intro-noir [data-card] { animation: intro-noir-rise 560ms ease both; }

@media (prefers-reduced-motion: reduce) {
    .intro-noir__ring { animation: none; }
    .intro-noir [data-card] { animation: none; }
}

.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);
}
/* Geometry shared by both CSS frameworks (Bootstrap has no utilities for it) */
.whyus-bracket {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

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

.whyus-bracket__corner {
    width: 1.5rem;
    height: 1.5rem;
}

.whyus-bracket__corner--tl { top: 1.5rem; inset-inline-start: 1.5rem; }
.whyus-bracket__corner--tr { top: 1.5rem; inset-inline-end: 1.5rem; }
.whyus-bracket__corner--bl { bottom: 1.5rem; inset-inline-start: 1.5rem; }
.whyus-bracket__corner--br { bottom: 1.5rem; inset-inline-end: 1.5rem; }

.whyus-bracket__head {
    margin-bottom: 3rem;
}

.whyus-bracket__badge {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

.whyus-bracket__badge-text,
.whyus-bracket__num {
    font-size: 0.75rem;
}

.whyus-bracket__badge-text {
    letter-spacing: 0.025em;
}

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

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

.whyus-bracket__card {
    padding: 1.5rem;
    transition: box-shadow 150ms ease;
}

/* hover ring — `:where()` keeps specificity at 0-1-0 so Tailwind's hover:ring-2 wins there */
:where(.whyus-bracket__card):hover {
    box-shadow: 0 0 0 2px var(--bs-primary-border-subtle);
}

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

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

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

    .whyus-bracket__head {
        margin-bottom: 4rem;
    }

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

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

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

    .whyus-bracket__card {
        padding: 1.75rem;
    }

    .whyus-bracket__card-title {
        font-size: 1.25rem;
    }

    .whyus-bracket__heading {
        font-size: 2.25rem;
    }
}

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

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

/* whyus v24 — bracket-framed card grid */

.whyus-bracket__heading {
    display: inline-block;
    font-size: 1.875rem;
    transform: perspective(600px) rotateX(4deg);
    transform-origin: center bottom;
}

.whyus-bracket__card {
    animation: whyus-bracket-reveal 0.6s ease both;
}

.whyus-bracket__card:nth-child(1) { animation-delay: 0.05s; }
.whyus-bracket__card:nth-child(2) { animation-delay: 0.12s; }
.whyus-bracket__card:nth-child(3) { animation-delay: 0.19s; }
.whyus-bracket__card:nth-child(4) { animation-delay: 0.26s; }
.whyus-bracket__card:nth-child(5) { animation-delay: 0.33s; }
.whyus-bracket__card:nth-child(6) { animation-delay: 0.4s; }

@keyframes whyus-bracket-reveal {
    from {
        opacity: 0;
        transform: translateY(0.75rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .whyus-bracket__card {
        animation: none;
    }

    .whyus-bracket__heading {
        transform: none;
    }
}

.narrative-rot-neg-3 { transform: rotate(-3deg); }
.narrative-rot-neg-2 { transform: rotate(-2deg); }
.narrative-rot-neg-1 { transform: rotate(-1deg); }
.narrative-rot-0 { transform: rotate(0deg); }
.narrative-rot-1 { transform: rotate(1deg); }
.narrative-rot-2 { transform: rotate(2deg); }
.narrative-rot-3 { transform: rotate(3deg); }

.narrative-paper {
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0.25rem 0.45rem 1rem rgba(15, 23, 42, 0.16);
}

.narrative-board-pin {
    width: 0.75rem;
    height: 0.75rem;
}

.narrative-board-pin--top-start {
    top: 0.75rem;
    left: 0.75rem;
}

.narrative-board-pin--top-end {
    top: 0.75rem;
    right: 0.75rem;
}

.narrative-board-pin--bottom-start {
    bottom: 0.75rem;
    left: 0.75rem;
}

.narrative-board-pin--bottom-end {
    bottom: 0.75rem;
    right: 0.75rem;
}

.narrative-note-hover {
    transition: transform 0.3s ease, z-index 0.3s ease;
    z-index: 1;
}

.narrative-note-hover:hover {
    transform: rotate(0deg) translateY(-0.25rem) scale(1.03);
    z-index: 10;
}

.narrative-dot {
    width: 0.25rem;
    height: 0.25rem;
}

.narrative-pin-label {
    font-size: 0.55rem;
    letter-spacing: 0.15em;

}

.narrative-pin-offset {
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5rem;
    height: 1.5rem;
}

@media (min-width: 768px) {
    .narrative-pin-offset {
        top: -0.75rem;
        width: 1.75rem;
        height: 1.75rem;
    }
}

.narrative-cta-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

