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

.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; }

.tips-interactive__badge {
    z-index: 20;
}

.tips-interactive__inner {
    z-index: 10;
}

.tips-interactive__panel {
    z-index: 50;
}

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

.tips-interactive__thumb--sm {
    width: 3rem;
    height: 3rem;
}

.tips-interactive__panel--collapsed {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-1rem);
}

.tips-interactive__panel--open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* content companion — hairline width for BS decor */
.content-companion__hair {
    width: 3rem;
}

/* numeric index column width on small screens */
.content-companion__index {
    min-width: 0;
}

.content-companion__index-digit {
    font-variant-numeric: tabular-nums;
}

/* cta particles card — animated dot field */
.cta-particles-card__root {
  position: relative;
  overflow: hidden;
}

.cta-particles-card__particles {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(circle, var(--tw-primary-500, var(--bs-primary)) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: cta-particles-card__drift 20s linear infinite;
}

@keyframes cta-particles-card__drift {
  from { transform: translateY(0); }
  to { transform: translateY(100px); }
}

