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

.outline-orb-top {
    top: 0;
    right: 0;
    width: 18rem;
    height: 18rem;
    filter: blur(3rem);
}

.outline-orb-bottom {
    bottom: 0;
    left: 0;
    width: 18rem;
    height: 18rem;
    filter: blur(3rem);
}

.outline-media-group:hover .outline-image-hover {
    transform: scale(1.1);
}

.outline-image-hover {
    transition: transform 0.7s ease;
}

.outline-overlay-hover {
    transition: opacity 0.5s ease;
}

.outline-media-group:hover .outline-overlay-hover {
    opacity: 1;
}

.outline-float-star {
    top: -1rem;
    right: -1rem;
}

.outline-float-check {
    bottom: -1rem;
    left: -1rem;
}

@keyframes bounce-kf {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-25%); }
}

@keyframes pulse-kf {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.35; }
}

.outline-bounce {
    animation: bounce-kf 1s infinite;
}

.outline-pulse {
    animation: pulse-kf 3s ease-in-out infinite;
}

.outline-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.outline-card-group:hover .outline-card-hover {
    transform: scale(1.05);
    box-shadow: var(--bs-box-shadow-lg);
}

.outline-icon-rotate-hover {
    transition: transform 0.3s ease;
}

.outline-card-group:hover .outline-icon-rotate-hover {
    transform: rotate(12deg);
}

.outline-title-hover {
    transition: color 0.3s ease;
}

.outline-card-group:hover .outline-title-hover {
    color: var(--bs-primary);
}

.outline-sq-6  { width: 1.5rem;  height: 1.5rem;  flex-shrink: 0; }
.outline-sq-8  { width: 2rem;    height: 2rem;    flex-shrink: 0; }
.outline-sq-14 { width: 3.5rem;  height: 3.5rem;  flex-shrink: 0; }

.accordion-playstation-timeline__chevron--open {
    transform: rotate(180deg);
}

.accordion-playstation-timeline__panel {
    max-height: 400px;
    transition: max-height 0.35s ease;
}

.accordion-playstation-timeline__panel[aria-hidden="true"],
.accordion-playstation-timeline__panel.is-closed {
    max-height: 0 !important;
}

.accordion-playstation-timeline__decor-tr {
    clip-path: polygon(100% 0, 100% 60%, 40% 0);
    top: 0;
    right: 0;
    width: 16rem;
    height: 16rem;
}

.accordion-playstation-timeline__decor-bl {
    clip-path: polygon(0 40%, 60% 100%, 0 100%);
    bottom: 0;
    left: 0;
    width: 12rem;
    height: 12rem;
}

.accordion-playstation-timeline__badge-size {
    width: 3.5rem;
    height: 2.5rem;
}

.accordion-playstation-timeline__panel--closed {
    max-height: 0;
}

.accordion-playstation-timeline__min-shrink {
  min-width: 0;
}

.values-float-card__item {
    min-width: 280px;
    max-width: 360px;
}

.values-float-card__thumb {
    margin-top: -2.5rem;
    width: 5rem;
    height: 5rem;
}

.card-photo-ribbon__cover {
    height: 16rem;
}

.card-photo-ribbon__beacon {
    width: 1.5rem;
    height: 1.5rem;
}

.card-photo-ribbon__min-shrink {
  min-width: 0;
}

/* quote v14 — nebula bento grid (BS fallback: CSS Grid row-span has no Bootstrap analog) */
.quote-nebula__bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quote-nebula__bento-item--feature {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
}

.quote-nebula__bento-item--wide {
    grid-column: span 2 / span 2;
}

.quote-nebula__bento-item--small {
    grid-column: span 1 / span 1;
}

@media (max-width: 767px) {
    .quote-nebula__bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quote-nebula__bento-item--feature {
        grid-row: span 1 / span 1;
    }
}

/* grunge torn-edge clip via jagged polygon (no BS/clip-path analog) */
.quote-nebula__torn {
    clip-path: polygon(
        0% 2%, 4% 0%, 12% 1.5%, 22% 0%, 33% 1.2%, 45% 0%, 58% 1.5%, 70% 0%, 82% 1%, 92% 0%, 100% 2%,
        100% 96%, 96% 100%, 88% 98%, 76% 100%, 64% 98.5%, 52% 100%, 40% 98%, 28% 100%, 16% 98.5%, 6% 100%, 0% 97%
    );
}

/* blurred background glow behind the featured quote, sharp content stays on top (no BS backdrop-filter analog) */
.quote-nebula__glow {
    filter: blur(48px);
}

/* fixed decorative arrow-icon sizing (no BS w/h utility for arbitrary rem sizes) */
.quote-nebula__arrow {
    display: inline-flex;
    width: 1.25rem;
    height: 1.25rem;
}

/* terminal-style annotation block */
.quote-nebula__terminal {
    white-space: pre-wrap;
    word-break: break-word;
}

/* scroll-triggered slide-in reveal — root background stays a still, non-animated texture on purpose */
.quote-nebula__reveal {
    transition: transform 700ms ease, opacity 700ms ease;
}

.quote-nebula__reveal--left {
    transform: translateX(-2.5rem);
    opacity: 0;
}

.quote-nebula__reveal--right {
    transform: translateX(2.5rem);
    opacity: 0;
}

.quote-nebula__reveal.is-visible {
    transform: translateX(0);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .quote-nebula__reveal {
        transition: opacity 200ms ease;
        transform: none;
    }

    .quote-nebula__reveal--left,
    .quote-nebula__reveal--right {
        transform: none;
    }
}
/* hover + focus affordances (layout/outline via theme token) */
@media (hover: hover) {
    .quote-nebula-root [role="listitem"]:hover,
    .quote-nebula-root article:hover,
    .quote-nebula-root [class*="quote-nebula__card"]:hover,
    .quote-nebula-root .quote-nebula__book:hover,
    .quote-nebula-root .quote-nebula__step:hover,
    .quote-nebula-root .quote-nebula__index-card:hover,
    .quote-nebula-root .quote-nebula__pill:hover,
    .quote-nebula-root .quote-nebula__item:hover {
        transform: translateY(-0.125rem);
    }
}

.quote-nebula-root [role="listitem"],
.quote-nebula-root article,
.quote-nebula-root [class*="quote-nebula__card"],
.quote-nebula-root .quote-nebula__book,
.quote-nebula-root .quote-nebula__step,
.quote-nebula-root .quote-nebula__index-card,
.quote-nebula-root .quote-nebula__pill {
    transition: transform 200ms ease;
}

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

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

