/* 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__panel--lift {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.services__panel--lift:hover {
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

@media (min-width: 640px) {
  .services__panel--lift:hover {
    transform: scale(1.05);
  }
}

.services__cta--lift {
  transition: filter 0.3s ease, transform 0.3s ease;
}

@media (min-width: 640px) {
  .services__cta--lift:hover {
    transform: scale(1.05);
  }
}

.services__cta--lift:hover {
  filter: brightness(0.92);
}

/* v23 - shared 2x2 grid: avoids mixing BS row/col percentage widths with a flex/CSS gap */
.panel-strip__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 575.98px) {
    .panel-strip__grid {
        grid-template-columns: 1fr;
    }
}

/* v23 - fixed circle size for the number badge (no BS utility beyond w-25/50/75/100) */
.panel-strip__badge {
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
}

/* v23 - comic halftone dot pattern (currentColor keeps it theme-safe, no literal colors) */
.steps-comic-panel__halftone {
    position: absolute;
    top: 0;
    right: 0;
    width: 6rem;
    height: 6rem;
    opacity: 0.15;
    background-image: radial-gradient(currentColor 1.2px, transparent 1.2px);
    background-size: 8px 8px;
    pointer-events: none;
}

/* integrations — unified hover (layout; shadow + lift; respect reduced motion) */
.integrations-card-hover {
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.integrations-card-hover:hover {
    box-shadow:
        0 20px 25px -5px rgb(0 0 0 / 0.1),
        0 8px 10px -6px rgb(0 0 0 / 0.1);
    transform: translateY(-2px) scale(1.03);
}

.integrations-card-hover--shadow-only {
    transition: box-shadow 0.35s ease;
}

.integrations-card-hover--shadow-only:hover {
    transform: none;
    box-shadow:
        0 20px 25px -5px rgb(0 0 0 / 0.1),
        0 8px 10px -6px rgb(0 0 0 / 0.1);
}

@media (prefers-reduced-motion: reduce) {
    .integrations-card-hover:hover {
        transform: none;
    }
}

/* Primary tile: wpg-preview --tw-primary-* | --bs-primary-scale-*; inherited --bs-primary hex */
.integrations__icon-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    --_ie-from: rgb(var(--tw-primary-500, var(--bs-primary-scale-500, 99 102 241)) / 1);
    --_ie-to: rgb(var(--tw-primary-600, var(--bs-primary-scale-600, 79 70 229)) / 1);
    background-color: var(--bs-primary, rgb(var(--tw-primary-600, var(--bs-primary-scale-600, 79 70 229)) / 1));
    background-image: linear-gradient(to bottom right, var(--_ie-from), var(--_ie-to));
}
.integrations__icon-tile i {
    color: inherit;
}
.integrations__icon-tile svg,
.integrations__icon-tile :is(path, circle, rect, polygon) {
    fill: currentColor;
}

/* Softer card hover shadow (avoids muddy stack with shadow-lg / BS cards) */
.integrations-card-hover:hover {
    box-shadow: 0 0.375rem 1rem rgba(15, 23, 42, 0.07);
}
.integrations-card-hover--shadow-only:hover {
    box-shadow: 0 0.375rem 1rem rgba(15, 23, 42, 0.07);
}

/* Diagonal stripes background */
.integrations__diagonal-stripes {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        rgba(148, 163, 184, 0.05) 40px,
        rgba(148, 163, 184, 0.05) 41px
    );
}

/* Polaroid card */
.integrations__polaroid-frame {
    width: 180px;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.integrations__polaroid-photo {
    height: 140px;
}

/* Icon tile size (w-16 h-16 equivalent for BS-branch parity) */
.integrations__polaroid-tile {
    width: 4rem;
    height: 4rem;
}

/* Card hover: frame scale (moved out of the sem directive; framework-independent) */
.integrations__polaroid-card {
    cursor: pointer;
}
.integrations__polaroid-frame {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.integrations__polaroid-card:hover > .integrations__polaroid-frame {
    transform: scale(1.1) rotate(0deg);
}
@media (prefers-reduced-motion: reduce) {
    .integrations__polaroid-card:hover > .integrations__polaroid-frame {
        transform: none;
    }
}

.integrations__polaroid-caption {
    font-family: cursive, sans-serif;
}

.integrations__polaroid-note {
    font-size: 0.7rem;
    font-family: cursive, sans-serif;
}

/* Card hover: scale */
.portfolio-item-hover {
    transition: transform 0.3s ease;
}
.portfolio-item-hover:hover {
    transform: scale(1.05);
}

.cta-minimal-carousel__section {
  min-height: 28rem;
}

.cta-minimal-carousel__wrap {
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .cta-minimal-carousel__wrap {
    padding-bottom: 7rem;
  }
}

.cta-minimal-carousel__viewport {
  position: relative;
  min-height: 22rem;
}

.cta-minimal-carousel__panel--center {
  text-align: center;
}

.cta-minimal-carousel__panel--left {
  display: flex;
  align-items: center;
  min-height: 20rem;
}

.cta-minimal-carousel__left-stack {
  width: 100%;
}

.cta-minimal-carousel__panel--split {
  min-height: 20rem;
  display: flex;
  align-items: flex-end;
}

.cta-minimal-carousel__panel.cta-minimal-carousel__slide--hidden {
  display: none;
}

.cta-minimal-carousel__slide--hidden {
  display: none;
}

.cta-minimal-carousel__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes cta-minimal-carousel__fade-in {
  from {
    opacity: 0;
    transform: translateX(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cta-minimal-carousel__slide--visible {
  animation: cta-minimal-carousel__fade-in 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.cta-minimal-carousel__eyebrow-track {
  letter-spacing: 0.22em;
}

.cta-minimal-carousel__title-track {
  letter-spacing: 0.12em;
}

.cta-minimal-carousel__nav-btn {
  width: 2.75rem;
  height: 2.75rem;
}

.cta-minimal-carousel__outline-cta {
  min-width: 9rem;
}

.cta-minimal-carousel__dot--active {
  width: 1.75rem;
  filter: brightness(1);
}

.cta-minimal-carousel__dot--idle {
  width: 0.5rem;
  filter: brightness(0.45);
}

@media (min-width: 768px) {
  .cta-minimal-carousel__viewport {
    min-height: 26rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-minimal-carousel__slide--visible {
    animation: none;
  }
}

