/* intro v18 — Emigre clay: blurred photo, ECG draw, typewriter caret */

/* Blurred background photo, sharp panel sits over it */
.intro-clay [data-photo] {
    width: 66%;
    aspect-ratio: 4 / 3;
}
.intro-clay__img {
    object-fit: cover;
    filter: blur(5px) saturate(1.05);
    transform: scale(1.06);
}

/* Heartbeat / ECG line draw (stroke colour = currentColor from Tailwind text-*) */
.intro-clay__ecg-path {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: intro-clay-ecg 4s linear infinite;
}
@keyframes intro-clay-ecg {
    0%   { stroke-dashoffset: 1400; }
    60%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1400; }
}

/* Typewriter caret while typing */
.intro-clay__type .is-typing {
    border-right: 2px solid currentColor;
    animation: intro-clay-caret 800ms step-end infinite;
}
@keyframes intro-clay-caret {
    50% { border-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
    .intro-clay__ecg-path { animation: none; stroke-dashoffset: 0; }
}

.content-disclaimer-logo__mark {
    width: 5rem;
    height: 5rem;
}

.content-disclaimer-logo__mark--small {
    width: 3rem;
    height: 3rem;
}

.content-disclaimer-logo__mark--large {
    width: 6rem;
    height: 6rem;
}

.content-disclaimer-logo__mark svg {
    display: block;
    width: 100%;
    height: 100%;
}

.content-disclaimer-ticker__rail {
    animation: content-disclaimer-drift 9s ease-in-out infinite alternate;
}

.content-disclaimer-orb--large {
    width: 12rem;
    height: 12rem;
    animation: content-disclaimer-float 8s ease-in-out infinite;
}

.content-disclaimer-orb--small {
    width: 7rem;
    height: 7rem;
    animation: content-disclaimer-float 7s ease-in-out infinite reverse;
}

.content-disclaimer-corner {
    width: 4rem;
    height: 4rem;
    pointer-events: none;
}

.content-disclaimer-orbit__ring {
    animation: content-disclaimer-spin 14s linear infinite;
}

.content-disclaimer-rail__accent {
    width: 100%;
    height: 0.75rem;
    flex-shrink: 0;
    animation: content-disclaimer-grow 5s ease-in-out infinite alternate;
}

.content-disclaimer-pattern {
    pointer-events: none;
}

.content-disclaimer-pulse {
    width: 0.75rem;
    height: 0.75rem;
    animation: content-disclaimer-pulse 1.8s ease-in-out infinite;
}

@media (min-width: 768px) {
    .content-disclaimer-rail__accent {
        width: 0.75rem;
        height: auto;
    }
}

@keyframes content-disclaimer-drift {
    from { transform: translateX(-1rem); }
    to { transform: translateX(1rem); }
}

@keyframes content-disclaimer-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(0.75rem); }
}

@keyframes content-disclaimer-spin {
    from { transform: rotate(0deg) scale(1); }
    to { transform: rotate(360deg) scale(1.04); }
}

@keyframes content-disclaimer-grow {
    from { transform: scaleX(0.75); }
    to { transform: scaleX(1); }
}

@keyframes content-disclaimer-pulse {
    0%, 100% { transform: scale(1); opacity: 0.65; }
    50% { transform: scale(1.35); opacity: 1; }
}


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

.process__hover-lift:hover {
    transform: scale(1.04);
}

.process__step-group:hover .process__badge-rise,
.process__step-group:hover .process__icon-rise {
    transform: scale(1.08);
}

/* Менш «важка» анімація (soft / fluid варіанти) */
.process--hover-soft .process__hover-lift:hover,
.process--hover-fluid .process__hover-lift:hover {
    transform: translateY(-3px);
}

.process--hover-soft .process__step-group:hover .process__badge-rise,
.process--hover-soft .process__step-group:hover .process__icon-rise,
.process--hover-fluid .process__step-group:hover .process__badge-rise {
    transform: scale(1.025);
}

.process--hover-fluid .process__hover-lift {
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.process--hover-fluid .process__badge-rise,
.process--hover-fluid .process__deco-rise {
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease;
}

.process.process--timeline-compact .process__hover-lift:hover {
    transform: translateY(-2px);
}

/* process--timeline-compact: один відступ від осі лінії (TW/BS); картка на всю ширину ряду */
.process.process--timeline-compact .process__step {
    padding-left: 5rem;
}

@media (min-width: 768px) {
    .process.process--timeline-compact .process__step {
        padding-left: 5.5rem;
    }
}

.process.process--timeline-compact .process__card {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
}


/* Лише тінь на картці, без scale (soft) */
.process--hover-soft .process__card.process__hover-lift:hover {
    transform: none;
}

/* Контраст цифр на світлому / градієнті */
.process__num-pop {
    box-shadow:
        0 0 0 3px var(--bs-body-bg, #fff),
        0 4px 14px rgba(0, 0, 0, 0.18);
}

.process__meta-on-primary {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Вертикальна лінія: видима ширина (BS) + центр під колом w-12 (3rem) */
.process__vline--through-12 {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1.5rem;
    width: 0.25rem;
    margin-left: -0.125rem;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
}

/* Центр під колом w-16 (4rem) — v2 таймлайн */
.process__vline--through-16 {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2rem;
    width: 0.25rem;
    margin-left: -0.125rem;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
}

/* Вузол w-8, left 1.25rem → центр 2.25rem */
.process__vline--through-node-sm {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2.25rem;
    width: 0.25rem;
    margin-left: -0.125rem;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
}

/* Горизонтальна лінія таймлайну (v19) */
.process__hline--bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 0.25rem;
    top: 1.5rem;
    margin-top: -0.125rem;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
}

/* v3: номер над карточкою (BS/TW) */
.process__float-num-fix {
    top: -1.5rem;
}

.process__float--lifted {
    top: -1.35rem;
    left: 0.75rem;
}

/* Легкий блюр + темний шар (білий заголовок на світлому фото) */
.process__overlay-blur {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background-color: rgba(15, 23, 42, 0.62);
}

.process__head-glass {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* Відступ під «літаючий» номер (BS часто потребує більше) */
.process__card--float-gap {
    padding-top: 6.75rem;
}

/* v6: центральна вісь на всю висоту */
.process__vline--center-md {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 0.25rem;
    margin-left: -0.125rem;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
}

@media (min-width: 768px) {
    .process__step-row > .process__dot--center-line {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

.process__badge-rise,
.process__icon-rise {
    transition: transform 0.3s ease;
}

.process__decor-dot {
    opacity: 0.45;
    transition: opacity 0.3s ease;
}

.process__step-group:hover .process__decor-dot {
    opacity: 1;
}

.process__decor-dot--subtle {
    opacity: 0.28;
}

.process__step-group:hover .process__decor-dot--subtle {
    opacity: 0.7;
}

.process__step-group:hover .process__deco-rise {
    opacity: 0.45;
}

.process__deco-rise {
    transition: opacity 0.3s ease;
}

/* Кола з цифрами — синхрон з Tailwind w-* h-* */
.process__num-fixed--8 {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

.process__num-fixed--10 {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

.process__num-fixed--12 {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    min-height: 3rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

.process__num-fixed--16 {
    width: 4rem;
    height: 4rem;
    min-width: 4rem;
    min-height: 4rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

.process__num-fixed--20 {
    width: 5rem;
    height: 5rem;
    min-width: 5rem;
    min-height: 5rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

.process__num-fixed--24 {
    width: 6rem;
    height: 6rem;
    min-width: 6rem;
    min-height: 6rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

.process__num-fixed--32 {
    width: 8rem;
    height: 8rem;
    min-width: 8rem;
    min-height: 8rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* v2 аватар: квадратне поле + cover → рівне коло з rounded-circle */
.process__avatar-img {
    width: 6rem;
    height: 6rem;
    min-width: 6rem;
    min-height: 6rem;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* v1 @ifRandom декор: якір + розмір (щоб не «літав» у BS) */
.process__decor-blob-fix {
    position: absolute;
    width: 10rem;
    height: 10rem;
    top: -2.5rem;
    right: 1rem;
    z-index: -1;
    pointer-events: none;
}

/* v5 декор тло */
.process__decor-faint-fix {
    position: absolute;
    width: 6rem;
    height: 6rem;
    top: 25%;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

/* v14 glow */
.process__glow-fix {
    position: absolute;
    width: 16rem;
    height: 16rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .process__hover-lift,
    .process__badge-rise,
    .process__icon-rise,
    .process__decor-dot,
    .process__decor-dot--subtle,
    .process__deco-rise {
        transition: none;
    }

    .process__hover-lift:hover,
    .process--hover-soft .process__hover-lift:hover,
    .process--hover-fluid .process__hover-lift:hover,
    .process.process--timeline-compact .process__hover-lift:hover {
        transform: none;
    }

    .process__step-group:hover .process__badge-rise,
    .process__step-group:hover .process__icon-rise {
        transform: none;
    }

    .process__step-group:hover .process__decor-dot,
    .process__step-group:hover .process__decor-dot--subtle,
    .process__step-group:hover .process__deco-rise {
        opacity: unset;
    }
}

/* v27 - folded paper corner (clip-path fold has no TW/BS utility) */
[data-fold-card] {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 1.25rem 100%, 0 calc(100% - 1.25rem));
    transition: clip-path 200ms ease;
}

[data-fold-card]:hover {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0.5rem 100%, 0 calc(100% - 0.5rem));
}

/* Three-column grid — real CSS grid, framework-agnostic (never row/col-* + gap together) */
.parchment-trio__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .parchment-trio__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Fixed icon badge size — no Bootstrap utility beyond w-25/50/75/100 */
.parchment-trio__badge {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats__icon-dim {
  width: 4rem;
  height: 4rem;
  min-width: 4rem;
  min-height: 4rem;
}

.stats-icon-wrap-hover {
  transition: transform 0.3s ease;
}

.stats-group:hover .stats-icon-wrap-hover {
  transform: scale(1.05);
}


/* Geometry shared by both CSS frameworks (Bootstrap has no grid-template / inset utilities) */
.whyus-editorial-mosaic__decor-ring {
    pointer-events: none;
}

.whyus-editorial-mosaic__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.5rem;
}

.whyus-editorial-mosaic__head,
.whyus-editorial-mosaic__tile {
    grid-column: span 12 / span 12;
}

.whyus-editorial-mosaic__head {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.whyus-editorial-mosaic__decor-panel {
    grid-column: span 12 / span 12;
    min-height: 12rem;
}

.whyus-editorial-mosaic__title {
    font-size: 1.875rem;
    font-weight: 900;
}

.whyus-editorial-mosaic__tile {
    padding: 0.75rem;
}

.whyus-editorial-mosaic__tile--b,
.whyus-editorial-mosaic__tile--d {
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.whyus-editorial-mosaic__tile-title {
    font-size: 1.125rem;
    transition: font-weight 150ms ease;
}

.whyus-editorial-mosaic__tile-title:hover {
    font-weight: 700;
}

.whyus-editorial-mosaic__ordinal {
    font-size: 0.75rem;
    letter-spacing: 0.025em;
}

/* decorative layers */
.whyus-editorial-mosaic__orb {
    top: -1.5rem;
    inset-inline-end: 1.5rem;
    width: 6rem;
    height: 6rem;
    opacity: 0.2;
}

.whyus-editorial-mosaic__rule {
    top: 33.333333%;
    inset-inline-start: 0;
    opacity: 0.4;
}

.whyus-editorial-mosaic__chevron {
    bottom: 4rem;
    inset-inline-start: 25%;
    width: 2.5rem;
    height: 2.5rem;
    transform: rotate(45deg);
    opacity: 0.3;
}

.whyus-editorial-mosaic__decor-ring--outer {
    inset: 1rem;
    opacity: 0.4;
}

.whyus-editorial-mosaic__decor-ring--inner {
    inset: 2.5rem;
    border-style: dashed;
    opacity: 0.3;
}

.whyus-editorial-mosaic__decor-diamond {
    top: 50%;
    inset-inline-start: 50%;
    width: 3.5rem;
    height: 3.5rem;
    opacity: 0.5;
}

.whyus-editorial-mosaic__decor-cross {
    opacity: 0.25;
    --bs-bg-opacity: 1;
}

.whyus-editorial-mosaic__decor-cross--h {
    top: 50%;
    inset-inline-start: 1.5rem;
    inset-inline-end: 1.5rem;
    height: 1px;
}

.whyus-editorial-mosaic__decor-cross--v {
    inset-inline-start: 50%;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 1px;
}

.whyus-editorial-mosaic__decor-grid {
    opacity: 0.2;
}

/* bottom accent band */
.whyus-editorial-mosaic__band {
    margin-top: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.whyus-editorial-mosaic__pattern-layer {
    gap: 0.75rem;
    opacity: 0.1;
}

.whyus-editorial-mosaic__pattern-word {
    font-size: 0.75rem;
    letter-spacing: 0.025em;
}

.whyus-editorial-mosaic__band-title {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.025em;
}

@media (min-width: 768px) {
    .whyus-editorial-mosaic__head {
        grid-column: 1 / span 5;
        grid-row: 1;
    }

    .whyus-editorial-mosaic__decor-panel {
        grid-column: 7 / span 6;
        grid-row: 3 / span 2;
    }

    .whyus-editorial-mosaic__tile--a {
        grid-column: 6 / span 7;
        grid-row: 1;
    }

    .whyus-editorial-mosaic__tile--b {
        grid-column: 1 / span 6;
        grid-row: 2;
        margin-top: 0;
    }

    .whyus-editorial-mosaic__tile--c {
        grid-column: 7 / span 6;
        grid-row: 2;
    }

    .whyus-editorial-mosaic__tile--d {
        grid-column: 1 / span 6;
        grid-row: 3;
        margin-top: 0;
    }

    .whyus-editorial-mosaic__tile--e {
        grid-column: 1 / span 6;
        grid-row: 4;
    }

    .whyus-editorial-mosaic__title {
        font-size: 2.25rem;
    }

    .whyus-editorial-mosaic__band-title {
        font-size: 1.875rem;
    }
}

/* whyus editorial-mosaic — repeated-text decorative layer cycles a small hue-rotate amplitude only; no fixed colors are set here */
@keyframes whyus-editorial-mosaic-hue-cycle {
    0% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(15deg); }
    100% { filter: hue-rotate(0deg); }
}

.whyus-editorial-mosaic__pattern-layer {
    animation: whyus-editorial-mosaic-hue-cycle 9s ease-in-out infinite;
    pointer-events: none;
}

/* geometric decor panel — grid texture + slow ring drift, colors from Tailwind text-* on nodes */
.whyus-editorial-mosaic__decor-panel {
    isolation: isolate;
}

.whyus-editorial-mosaic__decor-grid {
    background-image:
        linear-gradient(currentColor 1px, transparent 1px),
        linear-gradient(90deg, currentColor 1px, transparent 1px);
    background-size: 1.25rem 1.25rem;
}

.whyus-editorial-mosaic__decor-diamond {
    transform: translate(-50%, -50%) rotate(45deg);
}

.whyus-editorial-mosaic__decor-ring--outer {
    animation: whyus-editorial-mosaic-ring-drift 18s ease-in-out infinite;
}

.whyus-editorial-mosaic__decor-ring--inner {
    animation: whyus-editorial-mosaic-ring-drift 24s ease-in-out infinite reverse;
}

@keyframes whyus-editorial-mosaic-ring-drift {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
    .whyus-editorial-mosaic__decor-ring--outer,
    .whyus-editorial-mosaic__decor-ring--inner {
        animation: none;
    }
}

/* tabular-figure fallback — Tailwind's tabular-nums utility is already applied in markup, this is a safety net */
.whyus-editorial-mosaic__numeral {
    font-variant-numeric: tabular-nums;
}

/* scale-up-on-scroll reveal, staggered per tile via a JS-set --delay custom property (see script.js) */
.whyus-editorial-mosaic__tile {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 500ms ease, transform 500ms ease;
    transition-delay: var(--delay, 0ms);
}

.whyus-editorial-mosaic__tile.is-visible {
    opacity: 1;
    transform: scale(1);
}

