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

/* group-hover та картка */
.services__tile--lift {
  transition: box-shadow 0.5s ease, transform 0.5s ease;
}

.services__tile--lift:hover {
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  transform: translateY(-0.75rem);
}

@media (min-width: 640px) {
  .services__tile--lift:hover {
    transform: translateY(-0.75rem) scale(1.05);
  }
}

.services__media {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services__row:hover .services__media {
  transform: scale(1.1);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.services__heading {
  transition: color 0.3s ease;
}

.services__row:hover .services__heading {
  color: #2563eb;
}

.dark .services__row:hover .services__heading {
  color: #60a5fa;
}

[data-bs-theme="dark"] .services__row:hover .services__heading {
  color: var(--bs-primary, #6ea8fe);
}

.services__accent {
  transition: width 0.3s ease;
}

.services__row:hover .services__accent {
  width: 6rem;
}

.services__badge--offset {
  top: 2rem;
  inset-inline-end: 2rem;
}

.services__decor--blur {
  filter: blur(64px);
}

.services__decor-root {
  z-index: -1;
}

/* BS: розміри блобів (TW — через w-72 / w-96 у sem) */
.services__blob-a {
  width: 18rem;
  height: 18rem;
}

.services__blob-b {
  width: 24rem;
  height: 24rem;
}

/* process polaroid — card rotation, frame aspect ratio, image fit */
.process-pol__card {
    transition: transform 200ms ease;
}
.process-pol__card--0 { transform: rotate(-2deg); }
.process-pol__card--1 { transform: rotate(1.5deg); }
.process-pol__card--2 { transform: rotate(-1deg); }
.process-pol__card--3 { transform: rotate(2.5deg); }
.process-pol__card--4 { transform: rotate(-1.5deg); }
.process-pol__card--5 { transform: rotate(2deg); }
.process-pol__card:hover {
    transform: rotate(0deg) scale(1.03);
    z-index: 1;
}
.process-pol__frame {
    aspect-ratio: 1;
    overflow: hidden;
}
.process-pol__img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

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

.mxw-4xl {
    max-width: 56rem !important;
}

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

.whyus-tundra__head {
    margin-bottom: 2.5rem;
}

.whyus-tundra__steps,
.whyus-tundra__kicker {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.whyus-tundra__title {
    font-size: 1.875rem;
    letter-spacing: 0.05em;
}

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

.whyus-tundra__feature {
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.whyus-tundra__feature-text {
    font-size: 1.25rem;
}

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

.whyus-tundra__card {
    transition: box-shadow 150ms ease;
}

/* hover ring — `:where()` keeps specificity at 0-1-0 so Tailwind's hover:ring-2 wins there */
:where(.whyus-tundra__card):hover {
    box-shadow: 0 0 0 2px var(--bs-primary-border-subtle);
}

.whyus-tundra__card-title {
    font-size: 1rem;
    letter-spacing: 0.025em;
}

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

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

    .whyus-tundra__head,
    .whyus-tundra__feature {
        margin-bottom: 3.5rem;
    }

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

    .whyus-tundra__lead,
    .whyus-tundra__card-title {
        font-size: 1.125rem;
    }

    .whyus-tundra__feature {
        padding: 2rem;
    }

    .whyus-tundra__feature-text {
        font-size: 1.5rem;
    }

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

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

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

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

/* whyus v25 — tundra split-diagonal decor + benefit card grid */

/* Diagonal divider line — skewed accent spanning corner to corner */
.whyus-tundra__divider {
    top: 38%;
    left: -10%;
    width: 120%;
    height: 2px;
    transform: rotate(-7deg);
    transform-origin: center;
}

/* Tundra semicircles — sparse organic accents at the section edges */
.whyus-tundra__semicircle {
    border-radius: 999px;
    overflow: hidden;
}

.whyus-tundra__semicircle--left {
    top: -3rem;
    left: -4rem;
    width: 10rem;
    height: 10rem;
}

.whyus-tundra__semicircle--right {
    top: 15%;
    right: -5rem;
    width: 8rem;
    height: 8rem;
}

.whyus-tundra__semicircle--bottom {
    bottom: -6rem;
    left: 20%;
    width: 14rem;
    height: 14rem;
}

/* Frosted-glass CTA accent — blur, padding and hover lift for both frameworks */
.whyus-tundra__glass {
    padding: 0.75rem 1.5rem;
    letter-spacing: 0.05em;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    --bs-bg-opacity: 0.3;
    transition: transform 150ms ease;
}

:where(.whyus-tundra__glass):hover {
    transform: scale(1.05);
}

/* Benefit cards — staggered entrance */
.whyus-tundra__card {
    animation: whyus-tundra-card-in 0.55s ease both;
}

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

@keyframes whyus-tundra-card-in {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Choreographed entrance — heading, featured panel, CTA */
@keyframes whyusTundraEnter {
    from {
        opacity: 0;
        transform: translateY(0.75rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.whyus-tundra__enter {
    animation: whyusTundraEnter 600ms ease-out both;
}

.whyus-tundra__enter--1 {
    animation-delay: 0ms;
}

.whyus-tundra__enter--2 {
    animation-delay: 200ms;
}

.whyus-tundra__enter--3 {
    animation-delay: 400ms;
}

@media (prefers-reduced-motion: reduce) {
    .whyus-tundra__enter,
    .whyus-tundra__card {
        animation: none;
    }
}

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

/* Image: zoom on card hover */
.portfolio-item-hover .portfolio-img-hover {
    transition: transform 0.3s ease;
}
.portfolio-item-hover:hover .portfolio-img-hover {
    transform: scale(1.05);
}

/* Overlay: fade in on card hover */
.portfolio-overlay-hover {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.portfolio-item-hover:hover .portfolio-overlay-hover {
    opacity: 1;
}


.beacon-signal__section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.beacon-signal__inner {
    max-width: 64rem;
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 1.5rem;
}

@keyframes beacon-signal-pin-blink-seq {
    0%, 100% { opacity: 1; }
    50%       { opacity: .5; }
}
.beacon-signal__pin--blink {
    animation: beacon-signal-pin-blink-seq 2s cubic-bezier(.4,0,.6,1) infinite;
}

.beacon-signal__slab--glow:hover { transform: scale(1.05); transition: transform .2s ease; }

.beacon-signal__record--glow:hover { transform: scale(1.05); transition: transform .2s ease; }

.beacon-signal__prompt--glow:hover { transform: scale(1.05); transition: transform .2s ease; }

.beacon-signal__action--glow:hover { transform: scale(1.05); transition: transform .2s ease; }

/* Equal columns + row/column gap (flex-wrap + content width caused uneven cards) */
.beacon-signal__surround-row-bs {
    display: grid;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 1.5rem;
}

@media (min-width: 768px) {
    .beacon-signal__surround-row-bs {
        column-gap: 1.25rem;
        row-gap: 1.75rem;
    }
}

@media (min-width: 992px) {
    .beacon-signal__surround-row-bs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 1.5rem;
        row-gap: 1.75rem;
    }
}

.beacon-signal__surround-row-bs > .beacon-signal__record--glow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    min-width: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

