/* intro — summit lead: split hero with swash highlight + finance showcase */
.summit-lead__eyebrow {
    letter-spacing: 0.12em;
}

.summit-lead__title {
    letter-spacing: -0.03em;
}

.summit-lead__swash {
    height: 0.32em;
    margin-top: -0.05em;
}

.summit-lead__stack {
    padding-left: 0.75rem;
}

.summit-lead__avatar {
    width: 3rem;
    height: 3rem;
    margin-left: -0.75rem;
    line-height: 1;
}

.summit-lead__panel {
    min-height: 24rem;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .summit-lead__panel {
        padding: 2.5rem;
    }
}

.summit-lead__cloud {
    filter: blur(40px);
}

.summit-lead__cloud--one {
    width: 18rem;
    height: 10rem;
    transform: translate(10%, 20%);
}

.summit-lead__cloud--two {
    width: 22rem;
    height: 12rem;
    transform: translate(120%, 140%);
}

.summit-lead__cloud--three {
    width: 16rem;
    height: 9rem;
    transform: translate(40%, 300%);
}

.summit-lead__connector {
    width: 55%;
    height: 2.5rem;
    flex-shrink: 0;
    border-style: dashed;
}

.summit-lead__dash {
    border-top-style: dashed !important;
}

.summit-lead__widget {
    padding: 1.25rem;
}

.summit-lead__widget--glass {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.summit-lead__caption {
    font-size: 0.75rem;
    line-height: 1rem;
}

.summit-lead__chart {
    min-height: 6.5rem;
    overflow: visible;
}

.summit-lead__chart-fill {
    transform-origin: center bottom;
    animation: summit-lead-chart-fill 4.2s ease-in-out infinite;
}

.summit-lead__chart-line {
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    animation: summit-lead-chart-draw 4.2s ease-in-out infinite;
}

.summit-lead__chart-guide {
    animation: summit-lead-chart-guide 4.2s ease-in-out infinite;
}

.summit-lead__chart-dot {
    animation: summit-lead-chart-dot 4.2s ease-in-out infinite;
}

@keyframes summit-lead-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 summit-lead-chart-draw {
    0% {
        stroke-dashoffset: 420;
        opacity: 0.35;
    }
    38% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    72% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 420;
        opacity: 0.35;
    }
}

@keyframes summit-lead-chart-guide {
    0%, 18% { opacity: 0; }
    40%, 72% { opacity: 1; }
    88%, 100% { opacity: 0; }
}

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

.summit-lead__photo {
    min-height: 22rem;
}

.summit-lead__photo-img {
    object-fit: cover;
}

@media (min-width: 1024px) {
    .summit-lead__panel {
        min-height: 32rem;
    }

    .summit-lead__photo {
        min-height: 32rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .summit-lead__chart-fill,
    .summit-lead__chart-line,
    .summit-lead__chart-guide,
    .summit-lead__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 */
.summit-lead__caption { min-width: 0; overflow-wrap: anywhere; }

/* Вертикальний таймлайн — позиція рейки та вузлів */
.services__rail {
  position: absolute;
  left: 1.3rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2px;
  background-color: var(--bs-border-color, #dee2e6);
  border-radius: 1px;
}

.dark .services__rail {
  background-color: rgba(148, 163, 184, 0.45);
}

.services__node {
  position: relative;
  padding-left: 3.5rem;
  padding-bottom: 1.5rem;
}

.services__node:last-child {
  padding-bottom: 0;
}

@media (max-width: 575.98px) {
  .services__node {
    padding-left: 3.25rem;
  }

  .services__rail {
    left: 1.4rem;
  }
}

.services__badge {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
}

/* process editor — brand mark sizing */
.process-editor__brand {
    letter-spacing: 0.04em;
}

/* process editor — hero bar between mega words */
.process-editor__hero-bar {
    flex: 1 1 6rem;
    height: 0.65rem;
    min-width: 3rem;
    max-width: 100%;
    align-self: flex-end;
    margin-bottom: 0.35em;
}

/* process editor — oversized condensed display type */
.process-editor__mega {
    letter-spacing: -0.06em;
    line-height: 0.82;
}

.process-editor__mega--lead {
    font-size: clamp(3.5rem, 16vw, 11rem);
}


.process-editor__mega--stack {
    font-size: clamp(3rem, 13vw, 9rem);
    margin-top: -0.08em;
}

/* process editor — italic accent word in kicker */
.process-editor__kicker {
    font-size: clamp(1.75rem, 4.5vw, 3.75rem);
}

.process-editor__kicker-accent {
    display: inline-block;
    font-size: clamp(2.25rem, 6vw, 5rem);
    line-height: 0.95;
    vertical-align: baseline;
    margin-inline: 0.15em;
}

/* process editor — vertical step nav */
.process-editor__nav-btn {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
    outline-offset: -2px;
    transition: opacity 200ms ease, transform 200ms ease;
}

.process-editor__nav-btn.is-active {
    transform: translateX(0.25rem);
}

.process-editor__nav-btn.is-active .process-editor__nav-label {
    color: var(--tw-primary-900, var(--bs-primary));
    font-weight: 700;
}

.process-editor__nav-btn:not(.is-active) .process-editor__nav-label {
    opacity: 0.72;
}

.process-editor__panel {
    animation: process-editor-panel-in 280ms ease;
}

@keyframes process-editor-panel-in {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }

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

@media (max-width: 1023px) {
    .process-editor__hero-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .process-editor__hero-bar {
        width: 70%;
        flex: none;
        margin-bottom: 0;
    }

    .process-editor__kicker {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .process-editor__nav-btn,
    .process-editor__panel {
        animation: none;
        transition: none;
    }

    .process-editor__nav-btn.is-active {
        transform: 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);
}

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

