/* intro v21 — Loewe fold: vertical heading, watercolor blob, sketch figure, load rise */

/* Rotated 90° vertical heading */
.intro-fold__vtitle {
    writing-mode: vertical-rl;
    white-space: nowrap;
    line-height: 1;
}
@media (max-width: 767.98px) {
    .intro-fold__vtitle { writing-mode: horizontal-tb; }
}

/* Wax-seal / watercolor blob */
.intro-fold__blob {
    width: 24rem;
    height: 24rem;
    filter: blur(56px);
    opacity: 0.4;
    border-radius: 42% 58% 63% 37% / 45% 38% 62% 55%;
}

/* Drop-cap lead (framework-agnostic ::first-letter, no TW variant dependency) */
.intro-fold__lead::first-letter {
    font-size: 3rem;
    font-weight: 900;
    float: left;
    line-height: 0.9;
    margin-right: 0.75rem;
}

/* Like button fixed size (no BS w-N/h-N utility) */
.intro-fold__like {
    width: 2.25rem;
    height: 2.25rem;
}

/* Hand-drawn sketch treatment on the figure */
.intro-fold [data-figure] { aspect-ratio: 16 / 9; }
.intro-fold__img {
    object-fit: cover;
    filter: grayscale(0.35) contrast(1.12) saturate(0.9);
}

/* Subtle scale-up on load (0.92 → 1) */
.intro-fold__rise {
    opacity: 0;
    transform: scale(0.92);
    animation: intro-fold-rise 620ms ease forwards;
}
@keyframes intro-fold-rise {
    to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .intro-fold__rise { opacity: 1; transform: none; animation: none; }
}

/* glossary invert — hover lift supplied via Tailwind on @sem('block'). */


.content-v40-thumb-wrap {
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .content-v40-thumb-wrap {
        width: 50rem;
        max-width: 50rem;
    }
}

.content-col-grow {
    flex: 1 1 0%;
    min-width: 0;
}

.content-img-ratio {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    flex-shrink: 0;
}

.folio-bodycopy__figure--lift:hover { transform: scale(1.05); transition: transform .2s ease; }

.folio-bodycopy__action--lift:hover { transform: scale(1.05); transition: transform .2s ease; }

.content-grid-gap {
    gap: 2rem;
}

.content-heading-gap {
    margin-bottom: 2rem;
}

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

