/* 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-bento__serif,
[data-serif] {
    font-family: Georgia, "Times New Roman", Times, serif;
}

.services-bento__body {
    min-width: 0;
}

.services-bento__corner {
    position: absolute;
    top: -0.5rem;
    right: 1.5rem;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    transform: rotate(45deg);
    pointer-events: none;
}

.services-bento__chevron {
    transition: transform 200ms ease;
}
.services-bento__toggle[aria-expanded="true"] .services-bento__chevron {
    transform: rotate(180deg);
}

/* v26 — morse-code ornament: fixed dot/dash sizing outside the Tailwind spacing scale */
.whyus-morse__mark {
    display: inline-block;
    flex-shrink: 0;
}

.whyus-morse__mark--dot {
    width: 0.375rem;
    height: 0.375rem;
}

.whyus-morse__mark--dash {
    width: 1.5rem;
    height: 0.3125rem;
}

/* v26 — Art Nouveau corner flourish: subtle organic rotation */
.whyus-flourish {
    transform: rotate(-6deg);
}

/* v26 — letterpress heading: tightened, print-like leading (color/weight handled by Tailwind classes) */
.whyus-letterpress__heading {
    line-height: 1.15;
    letter-spacing: 0.01em;
}

/* v26 — spring/bounce entrance, plays once on load */
@keyframes whyus-spring-in {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.96);
    }
    60% {
        opacity: 1;
        transform: translateY(-6px) scale(1.015);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.whyus-spring-in {
    animation: whyus-spring-in 900ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.whyus-spring-in--delay {
    animation-delay: 160ms;
}

.whyus-highlight-card {
    animation: whyus-spring-in 700ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.whyus-highlight-card:nth-child(1) { animation-delay: 0.1s; }
.whyus-highlight-card:nth-child(2) { animation-delay: 0.2s; }
.whyus-highlight-card:nth-child(3) { animation-delay: 0.3s; }

/* v26 — ripple-from-cursor effect on comparison cells (color applied via Tailwind class in script.js) */
.whyus-ripple {
    position: absolute;
    left: 0;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 9999px;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    animation: whyus-ripple 600ms ease-out forwards;
}

@keyframes whyus-ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(9);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whyus-spring-in,
    .whyus-ripple,
    .whyus-highlight-card {
        animation: none;
    }
}

/* faq v30 — full-width horizontal index lines */
.faq-index__row:last-child {
  border-bottom-width: 0;
}

.faq-index__headline {
  letter-spacing: -0.03em;
}

.faq-index__line {
  display: grid;
  width: 100%;
  align-items: center;
  column-gap: 1.5rem;
  row-gap: 1rem;
  grid-template-columns: 1fr;
  grid-template-areas:
    'num'
    'question'
    'answer'
    'media';
}

.faq-index__cell--num {
  grid-area: num;
}

.faq-index__cell--question {
  grid-area: question;
  min-width: 0;
}

.faq-index__cell--answer {
  grid-area: answer;
  min-width: 0;
}

.faq-index__cell--media {
  grid-area: media;
  min-width: 0;
}

.faq-index__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 768px) {
  .faq-index__line {
    column-gap: 2rem;
    row-gap: 0;
    grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.25fr) minmax(12rem, 26%);
    grid-template-areas: 'num question answer media';
  }

  .faq-index__photo {
    min-height: 10rem;
  }
}

@media (min-width: 1200px) {
  .faq-index__line {
    column-gap: 3rem;
    grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.35fr) minmax(14rem, 24%);
  }
}

