/* intro v29 — Rolls-Royce thread: circle-expand reveal, half-ring, chat alignment, dual-layer parallax */

.intro-thread { min-height: 88vh; }

/* Clip-path circle expand from centre on load */
.intro-thread__reveal {
    animation: intro-thread-expand 900ms ease forwards;
}
@keyframes intro-thread-expand {
    from { clip-path: circle(0% at 50% 50%); }
    to   { clip-path: circle(150% at 50% 50%); }
}

/* Half-ring at the boundary (fixed size — no BS w-N/h-N utility) */
.intro-thread__half {
    width: 16rem;
    height: 8rem;
    opacity: 0.7;
    filter: blur(2px);
}
.intro-thread__sun { width: 6rem; height: 6rem; }
.intro-thread [data-msg] { max-width: 28rem; }

/* Dual-layer parallax offset (set by JS via custom props) */
.intro-thread__island [data-layer] {
    transition: transform 200ms ease-out;
    transform: translate(var(--px, 0), var(--py, 0));
}

/* Chat thread alternate alignment + retro corner tails */
.intro-thread [data-msg] { border-bottom-left-radius: 0.25rem; }
.intro-thread [data-msg]:nth-child(even) {
    margin-left: auto;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
    .intro-thread__reveal { animation: none; }
    .intro-thread__island [data-layer] { transition: none; }
}

.services-minimal__serif,
[data-serif] {
    font-family: Georgia, "Times New Roman", Times, serif;
}

.services-minimal__body {
    min-width: 0;
}

.features-tab-grid__decor--pulse {
    top: 0;
    right: 0;
    animation: features-tab-grid-pulse-kf 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.features-tab-grid__decor--spin {
    bottom: 0;
    left: 0;
    animation: features-tab-grid-spin-kf 1s linear infinite;
}

.features-tab-grid__decor--bounce {
    top: 50%;
    left: 25%;
    transform: rotate(-6deg);
    animation: features-tab-grid-bounce-kf 1s infinite;
}

.features-tab-grid__decor--line {
    top: 33.333333%;
    right: 25%;
    transform: rotate(6deg);
}

.features-tab-grid__tab {
    cursor: pointer;
}

.features-tab-grid__tab--active {
    border-bottom-color: var(--bs-primary, #0d6efd);
    color: var(--bs-primary, #0d6efd);
}

.features-tab-grid__tab--inactive {
    border-bottom-color: transparent;
    color: inherit;
}

.features-tab-grid__tab:hover {
    border-bottom-color: var(--bs-primary, #0d6efd);
    opacity: 0.8;
}

.features-tab-grid__card {
    transition: all 0.3s ease;
}

.features-tab-grid__card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.features-tab-grid__card:hover .features-tab-grid__title {
    color: var(--bs-primary, #0d6efd);
}

@keyframes features-tab-grid-pulse-kf {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

@keyframes features-tab-grid-spin-kf {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes features-tab-grid-bounce-kf {
    0%, 100% { transform: translateY(-25%) rotate(-6deg); animation-timing-function: cubic-bezier(0.8,0,1,1); }
    50% { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1); }
}

/* -- Feature card hover -- */
.feat-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feat-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.12) !important;
}

/* -- Icon box sizing -- */
.feat-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 2.5rem;
    min-height: 2.5rem;
}
.feat-icon-box--lg {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
}
.feat-icon-box--xl {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
}
.feat-icon-box--circle {
    border-radius: 50%;
}

/* -- Nav/filmstrip button hover -- */
.feat-btn-nav {
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.feat-btn-nav:hover {
    transform: scale(1.1);
}

/* -- Table row hover -- */
.feat-table-row-hover {
    transition: background-color 0.15s ease;
}
.feat-table-row-hover:hover {
    background-color: var(--bs-primary-bg-subtle) !important;
}

/* -- Accordion item hover -- */
.feat-accordion-hover summary:hover {
    background-color: var(--bs-primary-bg-subtle);
    border-radius: 0.75rem;
}

/* -- DL item hover -- */
.feat-dl-item-hover {
    transition: background-color 0.15s ease;
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.feat-dl-item-hover:hover {
    background-color: var(--bs-primary-bg-subtle);
}

/* -- Deck button hover -- */
.feat-deck-btn {
    transition: filter 0.2s ease, transform 0.15s ease;
}
.feat-deck-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* -- BS-mode decorative shapes — subtle, non-intrusive -- */
.features-decor__bs-blob {
    background-color: var(--bs-primary-bg-subtle);
    opacity: 0.35;
    filter: blur(48px);
}
.features-decor__bs-shape {
    opacity: 0.15;
}
.features-decor__bs-line {
    border-left: 1px solid var(--bs-primary-border-subtle);
    opacity: 0.18;
}
/* process works — marquee ticker, title scale, list rows, background logo (no colors) */
.process-works__marquee-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 3rem;
    animation: process-works-marquee 32s linear infinite;
}
.process-works__marquee-item {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}
.process-works__title {
    word-break: break-word;
}
.process-works__row {
    transition: transform 200ms ease;
}
.process-works__row:hover {
    transform: translateX(0.25rem);
}
.process-works__logo {
    min-height: 16rem;
    pointer-events: none;
}
.process-works__logo-mark {
    width: 14rem;
    height: 14rem;
    flex-shrink: 0;
    animation: process-works-drift 8s ease-in-out infinite;
}
.process-works__logo-mark svg {
    display: block;
    width: 100%;
    height: 100%;
}
.process-works__logo-mark svg,
.process-works__logo-mark svg :is(path, circle, rect, polygon) {
    fill: currentColor !important;
}
@keyframes process-works-marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}
@keyframes process-works-drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0.5rem, -0.75rem, 0);
    }
}
@media (min-width: 768px) {
    .process-works__logo {
        min-height: 20rem;
    }
    .process-works__logo-mark {
        width: 18rem;
        height: 18rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .process-works__marquee-track,
    .process-works__logo-mark {
        animation: none;
    }
    .process-works__row:hover {
        transform: none;
    }
}

/* cta v38 — surge band: rising area chart + staggered copy reveal (no colors) */
.cta-surge__band { isolation: isolate; }
.cta-surge__chart { pointer-events: none; top: auto !important; bottom: 0 !important; height: 55% !important; }
.cta-surge__rise { transform-box: view-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 1400ms cubic-bezier(.2, .8, .2, 1); }
.cta-surge__rise path[data-line] { transition: stroke-dashoffset 2200ms ease 300ms; }
[data-surge].is-visible .cta-surge__rise { transform: scaleY(1); }

.cta-surge__pulse { width: .875rem; height: .875rem; opacity: 0; transform: translate(-50%, -50%); transition: opacity 400ms ease 1800ms; }
.cta-surge__pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid; animation: cta-surge-ping 2s ease-out infinite; }
[data-surge].is-visible .cta-surge__pulse { opacity: 1; }

.cta-surge__eyebrow { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cta-surge__fade { opacity: 0; transform: translateY(1.25rem); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2, .8, .2, 1); }
.cta-surge__fade--2 { transition-delay: 120ms; }
.cta-surge__fade--3 { transition-delay: 240ms; }
[data-surge].is-visible .cta-surge__fade { opacity: 1; transform: none; }

.cta-surge__stat { opacity: 0; transform: translateY(1rem); transition: opacity 600ms ease, transform 600ms ease; }
[data-surge].is-visible .cta-surge__stat { opacity: 1; transform: none; }
[data-surge].is-visible li:nth-child(2) .cta-surge__stat { transition-delay: 150ms; }
[data-surge].is-visible li:nth-child(3) .cta-surge__stat { transition-delay: 300ms; }

@keyframes cta-surge-ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3.2); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .cta-surge__rise, .cta-surge__fade, .cta-surge__stat { transition: none; transform: none; opacity: 1; }
    .cta-surge__rise path[data-line] { transition: none; }
    .cta-surge__pulse { transition: none; }
    .cta-surge__pulse::after { animation: none; }
}

/* wpg-hidden: utility classes are renamed in production builds, so hidden states must not rely on .hidden / .d-none alone */
.cta-surge[hidden], .cta-surge [hidden], .cta-surge .hidden.d-none { display: none !important; }

