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

/* Liked state: the icon brightens and grows (works with every icon pack) */
.intro-thread__like i {
    display: inline-block;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.intro-thread__like[aria-pressed="true"] i {
    opacity: 1;
    transform: scale(1.2);
}

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

.services__panel--lift:hover {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  transform: translateY(-0.5rem);
}

.services__link--lift {
  transition: filter 0.2s ease;
}

.services__link--lift:hover {
  filter: brightness(1.1);
}

/* process glassmorphism — fog blobs, backdrop blur, rune decor, num sizing */
.process-glass__fog {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.process-glass__fog::before {
    content: '';
    position: absolute;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    filter: blur(5rem);
    opacity: 0.1;
    top: -10rem;
    left: -5rem;
    background: var(--bs-primary);
}

.process-glass__fog::after {
    content: '';
    position: absolute;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    filter: blur(5rem);
    opacity: 0.07;
    bottom: -8rem;
    right: -5rem;
    background: var(--bs-primary);
}

.process-glass__card {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.process-glass__card-hov:hover,
.process-glass__card-hov:focus-within {
    transform: translateY(-0.35rem);
    box-shadow: var(--bs-box-shadow-lg);
}

.process-glass__detail {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 280ms ease, opacity 220ms ease, margin-top 220ms ease;
}

.process-glass__card-hov:hover .process-glass__detail,
.process-glass__card-hov:focus-within .process-glass__detail {
    max-height: 12rem;
    opacity: 1;
    margin-top: 0.25rem;
}

.process-glass__rune {
    position: absolute;
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.04;
    bottom: -0.5rem;
    right: 1rem;
    pointer-events: none;
    user-select: none;
}

.process-glass__num {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    .process-glass__card,
    .process-glass__detail {
        transition: none;
    }

    .process-glass__card-hov:hover,
    .process-glass__card-hov:focus-within {
        transform: none;
    }

    .process-glass__detail {
        max-height: none;
        opacity: 1;
        overflow: visible;
    }
}

/* Bootstrap: explicit grid + gap (row gutters often collapse) */
.tips-grid__bs-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

.tips-grid__min-shrink {
    min-width: 0;
}

@media (min-width: 768px) {
    .tips-grid__bs-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.tips-grid__subtitle {
    max-width: 42rem;
}

.tips-grid__thumb {
    width: 3rem;
    height: 3rem;
}

.faq-reader__tab, .faq-reader__step { appearance: none; -webkit-appearance: none; font: inherit; cursor: pointer; }
.faq-reader__tab { transition: background-color 250ms ease, border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease; }
.faq-reader__tab:hover { transform: translateX(.25rem); }
.faq-reader__arrow { opacity: 0; transform: translateX(-.5rem); transition: opacity 250ms ease, transform 250ms ease; }
.faq-reader__tab.is-active .faq-reader__arrow { opacity: 1; transform: none; }
.faq-reader__q { min-width: 0; }

.faq-reader__seg { height: .375rem; }
.faq-reader__fill { width: 0; }
.faq-reader__step { width: 2.75rem; height: 2.75rem; }
.faq-reader__bulb { width: 2.25rem; height: 2.25rem; }

.faq-reader__stage { min-height: 16rem; }
@keyframes faq-reader-in { from { opacity: 0; transform: translateX(1.5rem); } to { opacity: 1; transform: none; } }
.faq-reader__panel.is-current { animation: faq-reader-in 500ms cubic-bezier(.2, .8, .2, 1) both; }

@media (min-width: 992px) {
    .faq-reader__stage { min-height: 20rem; }
}

@media (prefers-reduced-motion: reduce) {
    .faq-reader__tab, .faq-reader__arrow { transition: none; }
    .faq-reader__tab:hover { transform: none; }
    .faq-reader__panel.is-current { animation: none; }
}

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

/* Production builds compile the sem classes after the utility layer, so the toggled utilities cannot restyle the active tab; give it its own ring. */
.faq-reader__tab.is-active { outline: 2px solid; outline-offset: -2px; }

