/* 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; }
}

.services__link--lift {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.services__link--lift:hover {
  transform: translateX(2px);
  filter: brightness(1.08);
}

.features-bento__decor--pulse {
    animation: features-bento-pulse-kf 2s infinite;
}
.features-bento__decor--bounce {
    animation: features-bento-bounce-kf 2s infinite;
    transform: rotate(45deg);
}
.features-bento__decor--spin {
    animation: features-bento-spin-kf 4s linear infinite;
}
.features-bento__decor--line {
    transform: rotate(12deg);
}

.features-bento__card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.features-bento__card:hover .features-bento__title {
    color: var(--bs-primary);
}

.features-bento__item:hover {
    transform: scale(1.05);
}
.features-bento__item:hover .features-bento__title {
    color: var(--bs-primary);
}

@keyframes features-bento-pulse-kf {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}
@keyframes features-bento-bounce-kf {
    0%, 100% { transform: translateY(-25%) rotate(45deg); animation-timing-function: cubic-bezier(0.8,0,1,1); }
    50% { transform: none rotate(45deg); animation-timing-function: cubic-bezier(0,0,0.2,1); }
}
@keyframes features-bento-spin-kf {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* -- 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);
}

/* ?? BS-mode bento grid layout ?? */
.features-bento__grid-bs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.features-bento__grid-bs .features-bento__card {
    grid-column: span 2;
    grid-row: span 2;
}
@media (max-width: 767.98px) {
    .features-bento__grid-bs {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575.98px) {
    .features-bento__grid-bs {
        grid-template-columns: 1fr;
    }
    .features-bento__grid-bs .features-bento__card {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* -- BS-mode decorative shapes — subtle, non-intrusive -- */
.features-decor__bs-blob {
    background-color: var(--bs-primary-bg-subtle);
    opacity: 0.35;
    filter: blur(48px);
}
.features-decor__bs-shape {
    opacity: 0.15;
}
.features-decor__bs-line {
    border-left: 1px solid var(--bs-primary-border-subtle);
    opacity: 0.18;
}
.content-brief__float-square {
    width: 4rem;
    height: 4rem;
}

.content-brief__orbit {
    left: 50%;
    top: 50%;
    width: min(34rem, 78vw);
    height: min(34rem, 78vw);
    transform: translate(-50%, -50%);
    animation: content-brief-orbit 18s linear infinite;
}

.content-brief__float-square--slow {
    animation: content-brief-float-slow 10s ease-in-out infinite;
}

.content-brief__float-square--fast {
    animation: content-brief-float-fast 7s ease-in-out infinite;
}

@keyframes content-brief-float-slow {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(6deg);
    }
}

@keyframes content-brief-float-fast {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(8px) rotate(-7deg);
    }
}

@keyframes content-brief-orbit {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

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

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

.whyus-cryptic__bleed {
    bottom: -6rem;
    inset-inline-end: -6rem;
    width: 24rem;
    height: 24rem;
    opacity: 0.4;
    filter: blur(64px);
}

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

.whyus-cryptic__overline,
.whyus-cryptic__num,
.whyus-cryptic__chip,
.whyus-cryptic__cta-icon {
    font-size: 0.75rem;
}

.whyus-cryptic__overline {
    letter-spacing: 0.1em;
}

.whyus-cryptic__chip,
.whyus-cryptic__cta {
    letter-spacing: 0.025em;
}

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

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

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

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

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

.whyus-cryptic__cta {
    transition: transform 150ms ease;
}

/* hover — `:where()` keeps specificity at 0-1-0 so Tailwind's own hover: utilities win there */
:where(.whyus-cryptic__cta):hover {
    transform: scale(1.05);
}

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

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

    .whyus-cryptic__head,
    .whyus-cryptic__grid {
        margin-bottom: 4rem;
    }

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

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

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

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

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

    .whyus-cryptic__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* whyus v27 — architectural benefit card grid */

.whyus-cryptic__decor-lines {
    background-image:
        repeating-linear-gradient(90deg, currentColor 0, currentColor 1px, transparent 1px, transparent 96px),
        repeating-linear-gradient(0deg, currentColor 0, currentColor 1px, transparent 1px, transparent 96px);
    opacity: 0.05;
}

.whyus-cryptic__card {
    opacity: 0;
    transform: translateY(0.75rem);
    transition: opacity 600ms ease, transform 600ms ease, box-shadow 150ms ease;
}

.whyus-cryptic__card.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.whyus-cryptic__card:nth-child(1) { transition-delay: 0.05s; }
.whyus-cryptic__card:nth-child(2) { transition-delay: 0.1s; }
.whyus-cryptic__card:nth-child(3) { transition-delay: 0.15s; }
.whyus-cryptic__card:nth-child(4) { transition-delay: 0.2s; }
.whyus-cryptic__card:nth-child(5) { transition-delay: 0.25s; }
.whyus-cryptic__card:nth-child(6) { transition-delay: 0.3s; }

.whyus-cryptic__word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.6em);
    transition: opacity 550ms ease, transform 550ms ease;
    will-change: transform, opacity;
}

.whyus-cryptic__word.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.whyus-cryptic__word:nth-child(1) { transition-delay: 0ms; }
.whyus-cryptic__word:nth-child(2) { transition-delay: 70ms; }
.whyus-cryptic__word:nth-child(3) { transition-delay: 140ms; }
.whyus-cryptic__word:nth-child(4) { transition-delay: 210ms; }
.whyus-cryptic__word:nth-child(5) { transition-delay: 280ms; }
.whyus-cryptic__word:nth-child(6) { transition-delay: 350ms; }
.whyus-cryptic__word:nth-child(7) { transition-delay: 420ms; }

@media (prefers-reduced-motion: reduce) {
    .whyus-cryptic__card,
    .whyus-cryptic__word {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

