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


.copy-document__decor-1 {
    position: absolute;
    top: 1rem;
    left: 2rem;
    width: 1.5rem;
    height: 1.5rem;
    transform: rotate(45deg);
    z-index: 0;
    pointer-events: none;
}

.copy-document__decor-2 {
    position: absolute;
    top: 2rem;
    right: 1rem;
    width: 1rem;
    height: 1rem;
    transform: rotate(12deg);
    z-index: 0;
    pointer-events: none;
}

.copy-document__decor-3 {
    position: absolute;
    bottom: 1.5rem;
    left: 1rem;
    width: 2rem;
    height: 2rem;
    transform: rotate(45deg);
    z-index: 0;
    pointer-events: none;
}

.copy-document__decor-4 {
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    width: 1.25rem;
    height: 1.25rem;
    transform: rotate(-12deg);
    z-index: 0;
    pointer-events: none;
}

.copy-document__heading-row-trail { margin-bottom: 2rem; }

.copy-document__frame-section-pad {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.content-heading-gap {
    margin-bottom: 2rem;
}

.glossary-v3-accent {
    height: 2px;
    width: 64px;
}

.glossary-v3-col {
    width: 100%;
}

@media (min-width: 768px) {
    .glossary-v3-col {
        width: 33.333333%;
    }
}

.ribbon-corner-card__tile {
    min-width: 260px;
    max-width: 380px;
}

.ribbon-corner-card__fold {
    width: 84px;
    height: 84px;
}

.ribbon-corner-card__stamp {
    width: 116px;
    padding: 5px 0;
    top: 20px;
    right: -30px;
    transform: rotate(45deg);
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
}

.ribbon-corner-card__media {
    height: 12rem;
}

.ribbon-corner-card__img {
    object-fit: cover;
}
.ribbon-corner-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tips-financial__card {
    max-width: 24rem;
}

.tips-financial__thumb {
    width: 2.5rem;
    height: 2.5rem;
}

/* subscribe v30 — SVG pattern sizing, corner placement, subtle drift (layout/animation only) */
.mailing-minimal-underline__center {
    max-width: 28rem;
}

.mailing-minimal-underline__pattern {
    mask-image: radial-gradient(ellipse 72% 68% at 50% 46%, transparent 18%, black 92%);
}

.mailing-minimal-underline__corner--tl {
    animation: mailing-minimal-underline-drift 9s ease-in-out infinite;
}

.mailing-minimal-underline__corner--br {
    animation: mailing-minimal-underline-drift 11s ease-in-out infinite reverse;
}

.mailing-minimal-underline__marks {
    animation: mailing-minimal-underline-drift 7s ease-in-out infinite;
    animation-delay: 1.2s;
}

@keyframes mailing-minimal-underline-drift {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(0.35rem, -0.35rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mailing-minimal-underline__corner--tl,
    .mailing-minimal-underline__corner--br,
    .mailing-minimal-underline__marks {
        animation: none;
    }
}

@media (max-width: 767px) {
    .mailing-minimal-underline__corner--tl,
    .mailing-minimal-underline__corner--br,
    .mailing-minimal-underline__marks {
        opacity: 0.55;
    }
}

