/* intro — folio line: editorial single column, twin metrics + chart */
.folio-line__eyebrow {
    letter-spacing: 0.16em;
}

.folio-line__title {
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.folio-line__rule {
    height: 0.2rem;
    width: 100%;
}

.folio-line__metrics {
    width: 100%;
}

@media (min-width: 576px) {
    .folio-line__metrics {
        width: 40%;
        flex-shrink: 0;
    }
}

.folio-line__strip {
    padding: 1.25rem;
}

.folio-line__caption {
    font-size: 0.75rem;
    line-height: 1rem;
}

.folio-line__chart {
    min-height: 5rem;
    overflow: visible;
}

.folio-line__chart-fill {
    transform-origin: center bottom;
    animation: folio-line-chart-fill 4.2s ease-in-out infinite;
}

.folio-line__chart-line {
    stroke-dasharray: 360;
    stroke-dashoffset: 360;
    animation: folio-line-chart-draw 4.2s ease-in-out infinite;
}

.folio-line__chart-dot {
    animation: folio-line-chart-dot 4.2s ease-in-out infinite;
}

@keyframes folio-line-chart-fill {
    0%, 12% { opacity: 0; transform: scaleY(0.55); }
    40%, 72% { opacity: 1; transform: scaleY(1); }
    88%, 100% { opacity: 0; transform: scaleY(0.55); }
}

@keyframes folio-line-chart-draw {
    0% { stroke-dashoffset: 360; opacity: 0.35; }
    38% { stroke-dashoffset: 0; opacity: 1; }
    72% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: 360; opacity: 0.35; }
}

@keyframes folio-line-chart-dot {
    0%, 28% { opacity: 0; transform: translateY(5px) scale(0.6); }
    42%, 72% { opacity: 1; transform: translateY(0) scale(1); }
    88%, 100% { opacity: 0; transform: translateY(5px) scale(0.6); }
}

@media (prefers-reduced-motion: reduce) {
    .folio-line__chart-fill,
    .folio-line__chart-line,
    .folio-line__chart-dot {
        animation: none;
        opacity: 1;
        transform: none;
        stroke-dashoffset: 0;
    }
}

/* short stat captions sit in narrow columns on phones: long words break instead of spilling over */
.folio-line__caption { min-width: 0; overflow-wrap: anywhere; }


@keyframes matrix-gridview-iconframe-throb-track {
    0%, 100% { opacity: 1; }
    50%       { opacity: .5; }
}
.matrix-gridview__iconframe--throb {
    animation: matrix-gridview-iconframe-throb-track 2s cubic-bezier(.4,0,.6,1) infinite;
}

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

/* Hex grid background — SVG stroke uses currentColor */
.integrations__hex-bg {
    background-image: url('data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%2256%22 height=%2248%22><path d=%22M28 2 L54 16 L54 32 L28 46 L2 32 L2 16 Z%22 fill=%22none%22 stroke=%22currentColor%22 stroke-width=%221%22/></svg>');
    color: rgb(var(--tw-primary-400, var(--bs-primary-scale-400, 129 140 248)) / 0.3);
}

.dark .integrations__hex-bg,
[data-bs-theme="dark"] .integrations__hex-bg {
    color: rgb(var(--tw-primary-500, var(--bs-primary-scale-500, 99 102 241)) / 0.4);
}

/* Hex item width */
.integrations__hex-item {
    width: 120px;
}

/* Hex cell shape + fixed size (BS has no w-24/h-24 utilities) */
.integrations__hex-cell {
    width: 6rem;
    height: 6rem;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: transform 0.3s ease;
}

/* Icon glyph transform transition (BS parity with TW transition-transform) */
.integrations__icon-tile > i {
    transition: transform 0.3s ease;
}

/* Hover lift for hex entry (BS parity with TW hover:[&_...]:scale-110) */
.integrations__hex-item:hover .integrations__icon-tile,
.integrations__hex-item:hover .integrations__icon-tile > i {
    transform: scale(1.1);
}

/* Hidden hint that fades in on entry hover (BS parity with TW opacity-0/hover:opacity-100) */
.integrations__hex-hint {
    opacity: 0;
    transition: opacity 0.2s ease;
}
.integrations__hex-item:hover .integrations__hex-hint {
    opacity: 1;
}

/* Hover effects moved out of the sem directive (custom classes, framework-independent) */
.integrations__hex-item .integrations__icon-tile,
.integrations__hex-item .integrations__icon-tile i { transition: transform 0.3s ease; }
.integrations__hex-item:hover .integrations__icon-tile,
.integrations__hex-item:hover .integrations__icon-tile i { transform: scale(1.1); }
.integrations__hex-item .integrations__hex-hint { transition: opacity 0.2s ease; }
.integrations__hex-item:hover .integrations__hex-hint { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .integrations__hex-item:hover .integrations__icon-tile,
    .integrations__hex-item:hover .integrations__icon-tile i { transform: none; }
}

/* v25 bento — featured tile layout and image (object-fit: no BS util) */
.perks-bento__grid {
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .perks-bento__grid {
        grid-template-columns: 7fr 5fr;
        grid-template-rows: auto;
    }

    .perks-bento__featured {
        grid-column: 1;
        grid-row: 1;
    }

    .perks-bento__small-grid {
        grid-column: 2;
        grid-row: 1;
    }
}

.perks-bento__featured {
    min-height: 22rem;
}

.perks-bento__featured-img {
    object-fit: cover;
}

/* icon container sizes (w-N h-N has no BS util) */
.perks-bento__featured-icon {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
}

.perks-bento__tile-icon {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
}

