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

/* process rail — awards list rows, serif marquee */
.process-rail__stage {
    min-height: 24rem;
}

.process-rail__top {
    min-height: 18rem;
}

.process-rail__row {
    transition: background-color 0.25s ease;
}

.process-rail__row:hover {
    background-color: color-mix(in srgb, currentColor 8%, transparent);
}

.process-rail__marquee-track {
    display: flex;
    width: max-content;
    animation: process-rail-marquee 28s linear infinite;
}

.process-rail__marquee-text {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: clamp(1.5rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    padding-inline: 1rem;
    flex-shrink: 0;
}

.process-rail__animation {
    width: 8rem;
    height: 8rem;
    animation: process-rail-pulse 2s ease-in-out infinite;
}

@keyframes process-rail-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes process-rail-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .process-rail__marquee-track {
        animation: none;
    }
}

@media (min-width: 992px) {
    .process-rail__stage {
        min-height: 28rem;
    }

    .process-rail__top {
        min-height: 22rem;
    }
}

/* advantages zigzag — 50/50 split, alternating direction, image cover + hover zoom (layout only, no colors) */

.advantages-zigzag__media {
    aspect-ratio: 4 / 3;
}

.advantages-zigzag__img {
    object-fit: cover;
    transition: transform 0.4s ease;
}

.advantages-zigzag__media:hover .advantages-zigzag__img {
    transform: scale(1.05);
}

@media (min-width: 768px) {
    /* equal halves regardless of framework (BS has no responsive w-50 utility) */
    .advantages-zigzag__row > * {
        flex: 1 1 0%;
        min-width: 0;
    }

    /* first row image-left/text-right; every even row mirrors */
    .advantages-zigzag__row:nth-child(even) {
        flex-direction: row-reverse;
    }
}

/* faq wiki-nav — layout + motion (no colors) */
.faq-wiki-nav__aside {
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .faq-wiki-nav__aside {
    width: 15rem;
  }
}

.faq-wiki-nav__layout {
  min-width: 0;
}

.faq-wiki-nav__menu-body {
  min-width: 0;
}

.faq-wiki-nav__main {
  flex: 1 1 0%;
  min-width: 0;
}

.faq-wiki-nav__menu-item {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: pointer;
  outline-offset: -2px;
}

.faq-wiki-nav__panel--active {
  display: block;
}

.faq-wiki-nav__reveal-item {
  opacity: 0;
  transform: translate3d(-1.25rem, 0, 0);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-wiki-nav__reveal-item--visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.faq-wiki-nav__reveal-item:nth-child(1) {
  transition-delay: 0.05s;
}

.faq-wiki-nav__reveal-item:nth-child(2) {
  transition-delay: 0.12s;
}

.faq-wiki-nav__reveal-item:nth-child(3) {
  transition-delay: 0.19s;
}

.faq-wiki-nav__reveal-item:nth-child(4) {
  transition-delay: 0.26s;
}

.faq-wiki-nav__reveal-item:nth-child(5) {
  transition-delay: 0.33s;
}

.faq-wiki-nav__reveal-main {
  opacity: 0;
  transform: translate3d(1.5rem, 0, 0);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.15s;
}

.faq-wiki-nav__reveal-main--visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.faq-wiki-nav__panel--enter .faq-wiki-nav__panel-inner {
  animation: faq-wiki-nav-panel-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes faq-wiki-nav-panel-in {
  from {
    opacity: 0;
    transform: translate3d(0, 1rem, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-wiki-nav__reveal-item,
  .faq-wiki-nav__reveal-main {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .faq-wiki-nav__reveal-item:nth-child(n) {
    transition-delay: 0s;
  }

  .faq-wiki-nav__panel--enter .faq-wiki-nav__panel-inner {
    animation: none;
  }
}

