/* intro v16 — Metropolis reel: film-perforation strips, image cover, load stagger, radius morph */

/* Film-perforation edge strips: colour comes from Tailwind bg-* on the element; mask punches holes */
.intro-reel__perf {
    -webkit-mask: radial-gradient(circle at center, transparent 0 0.28rem, black 0.3rem) center / 1.5rem 2.2rem;
    mask: radial-gradient(circle at center, transparent 0 0.28rem, black 0.3rem) center / 1.5rem 2.2rem;
    z-index: 1;
}

/* Background image fills the band, keeps aspect via object-fit (no BS utility) */
.intro-reel__row {
    min-height: 18rem;
    transition: border-radius 320ms ease;
    opacity: 0;
    animation: intro-reel-rise 520ms ease forwards;
}
.intro-reel__img {
    object-fit: cover;
    object-position: center;
}

/* Border-radius morph on hover */
.intro-reel__row:hover {
    border-radius: 2.25rem 0.5rem 2.25rem 0.5rem;
}

/* Stagger children — 80ms delay each on load */
.intro-reel__row:nth-child(1) { animation-delay: 0ms; }
.intro-reel__row:nth-child(2) { animation-delay: 80ms; }
.intro-reel__row:nth-child(3) { animation-delay: 160ms; }
.intro-reel__row:nth-child(4) { animation-delay: 240ms; }
.intro-reel__row:nth-child(5) { animation-delay: 320ms; }
.intro-reel__row:nth-child(6) { animation-delay: 400ms; }

@keyframes intro-reel-rise {
    from { opacity: 0; transform: translateY(1.5rem); }
    to   { opacity: 1; transform: translateY(0); }
}

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


.copy-document__body-stack-gap {
    gap: 4rem;
}

.content-flow-gap {
    gap: 4rem;
}

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

.content-prose-measure {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.content-article-frame {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.content-cta__lift { transition: transform 150ms ease; }
.content-cta__lift:hover { transform: translateY(-2px); }

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

.content-img-medium {
    display: block;
    width: 100%;
    height: 22rem;
    min-height: 22rem;
    flex-shrink: 0;
    object-fit: cover;
}
@media (min-width: 768px) {
    .content-img-medium {
        height: 28rem;
        min-height: 28rem;
    }
}

.content-thumb-height {
    display: block;
    width: 100%;
    height: 13rem;
    min-height: 13rem;
    flex-shrink: 0;
    object-fit: cover;
}

.tips-numbered__card {
    max-width: 24rem;
}

.tips-numbered__thumb {
    width: 4rem;
    height: 4rem;
}

.faq-sorter__pill { appearance: none; -webkit-appearance: none; font: inherit; cursor: pointer; transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease, transform 200ms ease; }
.faq-sorter__pill:active { transform: scale(.97); }
.faq-sorter__count { min-width: 1.25rem; text-align: center; }

.faq-sorter__toggle { appearance: none; -webkit-appearance: none; font: inherit; cursor: pointer; }
.faq-sorter__item { transition: border-color 250ms ease, box-shadow 250ms ease; }
.faq-sorter__chev { width: 2.5rem; height: 2.5rem; transition: transform 350ms cubic-bezier(.2, .8, .2, 1); }
.faq-sorter__item.is-open .faq-sorter__chev { transform: rotate(180deg); }

.faq-sorter__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 400ms cubic-bezier(.2, .8, .2, 1); }
.faq-sorter__item.is-open .faq-sorter__panel { grid-template-rows: 1fr; }
.faq-sorter__inner { overflow: hidden; min-height: 0; }
.faq-sorter__inner > * { opacity: 0; transform: translateY(-.5rem); transition: opacity 300ms ease, transform 300ms ease; }
.faq-sorter__item.is-open .faq-sorter__inner > * { opacity: 1; transform: none; transition-delay: 120ms; }

.faq-sorter__badge { width: 3.5rem; height: 3.5rem; }

@keyframes faq-sorter-in { from { opacity: 0; transform: translateY(.75rem); } to { opacity: 1; transform: none; } }
.faq-sorter__item.is-entering { animation: faq-sorter-in 450ms cubic-bezier(.2, .8, .2, 1) both; }

@media (prefers-reduced-motion: reduce) {
    .faq-sorter__pill, .faq-sorter__item, .faq-sorter__chev, .faq-sorter__panel, .faq-sorter__inner > * { transition: none; }
    .faq-sorter__item.is-entering { animation: none; }
}

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

/* Production builds compile the sem classes after the utility layer, so the toggled colour utilities cannot override them; mark the active filter with weight and an inset ring instead. */
.faq-sorter__pill[aria-selected="true"] { font-weight: 700; box-shadow: inset 0 0 0 2px; }

/* cta v40 — relay steps: scroll-driven progress line + node activation (no colors) */
.cta-relay__steps { --relay-p: 0; }
.cta-relay__node { width: 4rem; height: 4rem; z-index: 1; }
.cta-relay__on { opacity: 0; transform: scale(.6); transition: opacity 400ms ease, transform 500ms cubic-bezier(.2, .8, .2, 1); }
.cta-relay__step.is-active .cta-relay__on { opacity: 1; transform: none; }
.cta-relay__num { width: 1.5rem; height: 1.5rem; top: -.25rem !important; right: -.25rem !important; font-size: .75rem; z-index: 2; }
.cta-relay__body { min-width: 0; }
.cta-relay__badge { width: 3rem; height: 3rem; }

/* mobile: vertical track through node centres */
.cta-relay__track { width: .25rem; top: 2rem !important; bottom: 2rem; left: calc(2rem - .125rem) !important; z-index: 0; }
.cta-relay__fill { transform-origin: 50% 0; transform: scaleY(var(--relay-p)); transition: transform 120ms linear; }
.cta-relay__step { opacity: .55; transition: opacity 500ms ease; }
.cta-relay__step.is-active { opacity: 1; }

@media (min-width: 992px) {
    .cta-relay__steps:not(.is-row) .cta-relay__track { width: auto; height: .25rem; top: calc(2rem - .125rem) !important; bottom: auto; left: 16.666% !important; right: 16.666%; }
}
.cta-relay__steps.is-row .cta-relay__fill { transform-origin: 0 50%; transform: scaleX(var(--relay-p)); }

@media (prefers-reduced-motion: reduce) {
    .cta-relay__on, .cta-relay__fill, .cta-relay__step { transition: none; }
}

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

/* CTA bar: the button group may shrink and wrap so long labels never run past the bar */
.cta-relay :has(> a[href] + a[href]) { flex-shrink: 1 !important; min-width: 0; max-width: 100%; }
.cta-relay :has(> a[href] + a[href]) > a { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.cta-relay :has(+ :has(> a[href] + a[href])) { min-width: 0; }

