@keyframes driftLeftRight {
    0% { transform: translateX(-15%); }
    50% { transform: translateX(15%); }
    100% { transform: translateX(-15%); }
}

@keyframes driftRightLeft {
    0% { transform: translateX(15%); }
    50% { transform: translateX(-15%); }
    100% { transform: translateX(15%); }
}

.intro-drift-strip-a {
    width: 33%;
    height: 6rem;
    animation: driftLeftRight 14s ease-in-out infinite;
}

.intro-drift-strip-b {
    width: 50%;
    height: 4rem;
    animation: driftRightLeft 18s ease-in-out infinite;
}

.intro-drift-strip-c {
    width: 25%;
    height: 5rem;
    animation: driftLeftRight 12s ease-in-out infinite;
    animation-delay: 3s;
}

.intro-drift-container {
    max-width: 80rem;
}

.intro-drift-textbox {
    max-width: 48rem;
}

/* process storybook — gallery height, image crop, active nav, BS row overflow fix (no colors) */
.process-cdpr__root {
    max-width: 100%;
}
.process-cdpr__gallery-wrap {
    max-width: 100%;
    overflow: hidden;
}
.process-cdpr__gallery {
    height: 16rem;
    max-width: 100%;
}
.process-cdpr__gallery.row {
    margin-left: 0;
    margin-right: 0;
}
.process-cdpr__gallery > * {
    min-width: 0;
}
.process-cdpr__img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    max-width: 100%;
}
.process-cdpr__nav-btn {
    transition: border-color 200ms ease, color 200ms ease;
}
.process-cdpr__nav-btn.is-active {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

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

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

.whyus-tabletop__head {
    margin-bottom: 3rem;
}

.whyus-tabletop__overline {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.whyus-tabletop__heading {
    font-size: 1.875rem;
}

.whyus-tabletop__field {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
}

.whyus-tabletop__card {
    padding: 1.5rem;
}

.whyus-tabletop__badge {
    top: 1rem;
    inset-inline-end: 1rem;
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
}

.whyus-tabletop__icon-box {
    width: 4rem;
    height: 4rem;
}

.whyus-tabletop__card-body {
    min-width: 0;
}

.whyus-tabletop__card-title {
    font-size: 1.125rem;
}

.whyus-tabletop__cta-line {
    font-size: 0.75rem;
    letter-spacing: 0.025em;
}

/* scattered rotations (Bootstrap has no rotate utilities) */
.whyus-tabletop__card-wrap--r1 { transform: rotate(1deg); }
.whyus-tabletop__card-wrap--r2 { transform: rotate(-2deg); }
.whyus-tabletop__card-wrap--r3 { transform: rotate(2deg); }
.whyus-tabletop__card-wrap--r4 { transform: rotate(-1deg); }
.whyus-tabletop__card-wrap--r5 { transform: rotate(3deg); }

/* hover lift — `:where()` keeps specificity at 0-1-0 so Tailwind's hover:shadow-lg wins there */
:where(.whyus-tabletop__card):hover {
    box-shadow: var(--bs-box-shadow-lg);
}

@media (min-width: 768px) {
    .whyus-tabletop__head {
        margin-bottom: 4rem;
    }

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

    .whyus-tabletop__field {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem;
    }

    .whyus-tabletop__card-wrap--featured {
        grid-column: span 2 / span 2;
    }

    .whyus-tabletop__card {
        padding: 2rem;
    }

    .whyus-tabletop__card--featured {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .whyus-tabletop__field {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 3rem;
    }

    .whyus-tabletop__card-wrap--featured {
        grid-column: span 3 / span 3;
    }
}

/* whyus v23 — tabletop-scattered patent-drawing benefit cards */

/* dot-grid decorative overlay (no color: currentColor + opacity only, adapts to inherited text color) */
.whyus-tabletop__dot-grid {
    background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: 0 0;
    opacity: 0.06;
}

/* heading entrance animation (cards stay static) */
@keyframes whyus-tabletop-fade-in {
    from {
        opacity: 0;
        transform: translateY(0.75rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.whyus-tabletop__overline {
    animation: whyus-tabletop-fade-in 600ms ease-out both;
}

.whyus-tabletop__heading {
    animation: whyus-tabletop-fade-in 700ms ease-out 120ms both;
}

/* patent-drawing numbered callout badge */
.whyus-tabletop__badge {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

/* sketch / line-art treatment on icons (monochrome, no hardcoded color) */
.whyus-tabletop__icon-sketch {
    filter: grayscale(1) contrast(1.15);
}

/* scattered card wrapper — smooth settle when reordered via drag */
.whyus-tabletop__card-wrap {
    transition: transform 200ms ease, opacity 200ms ease;
}

.whyus-tabletop__card-wrap--dragging {
    opacity: 0.45;
    transform: scale(0.97) rotate(0deg);
}

/* 3D tilt — consumes --rx / --ry custom properties set by script.js on pointermove */
.whyus-tabletop__card {
    --rx: 0deg;
    --ry: 0deg;
    transform: perspective(1000px) rotateX(var(--ry)) rotateY(var(--rx));
    transition: transform 250ms ease;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Декор картки + великі лапки — позиціонування; розміри медіа в @sem */
.quote-decor-a {
  position: absolute;
  top: 0;
  right: 0;
  width: 8rem;
  height: 8rem;
  transform: translate(4rem, -4rem);
  opacity: 0.3;
}

.quote-decor-b {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 6rem;
  height: 6rem;
  transform: translate(-3rem, 3rem);
  opacity: 0.3;
}

.quote-mark {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 6rem;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  opacity: 0.2;
}

