/* PREVIEW ONLY (flstx-effects-preview, 2026-11-12)
   Loaded after components.css. Each block is tagged [FX-*] so it can be toggled.
   See ../../CHANGES.md. Uses only tokens from tokens.css and the three shadow tokens. */

/* [FX-TYPE] Newsreader headings / Source Sans 3 body (self-hosted, css/fonts.css) */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }
h1, h2 { font-weight: 600; letter-spacing: -0.01em; }
h3, h4, h5, h6 { font-weight: 500; }
.btn, strong, .eyebrow, .nav a, .clients__label,
.footer-brand__tag, .phone-link, .footer-nav a,
.offer-card__num, .work-mosaic__tag, .link-quiet { font-weight: 600; }
/* Footer column labels are small uppercase labels, keep them in the body face */
.site-footer h4.small { font-family: var(--font-body); font-weight: 600; }
.eyebrow { color: var(--accent); }

/* [FX-DEPTH] three surface steps: cards always sit one step above their band */
.offer-card, .principles-rail__item, .stories-teaser__quote, .engage-steps__item,
.work-pick__card, .craft-bento__card, .offer-editorial--four .offer-editorial__item,
.card, .work-mosaic__item, .insight-card, .case-row, .process-rail, .contact-aside,
.stories-teaser__aside {
  background: var(--color-surface);
  box-shadow: var(--shadow-med);              /* rest-state cards = med */
}
.section--surface .offer-card, .section--surface .principles-rail__item,
.section--surface .stories-teaser__quote, .section--surface .engage-steps__item,
.section--surface .work-pick__card, .section--surface .craft-bento__card,
.section--surface .card, .section--surface .work-mosaic__item, .section--surface .insight-card,
.section--surface .case-row, .section--surface .process-rail, .section--surface .contact-aside,
.section--surface .stories-teaser__aside,
.section--surface .offer-editorial--four .offer-editorial__item {
  background: var(--color-surface-2);
}
/* ONE featured object gets --shadow-high: the home "Featured story notes" panel */
.stories-teaser--finished .stories-teaser__aside {
  box-shadow: var(--shadow-high);
  border-color: var(--color-border-strong);
}
/* Controls = low (buttons already use --shadow-low; inputs) */
.form-group input, .form-group textarea, .form-group select { background: var(--color-surface-2); box-shadow: var(--shadow-low); }
.cta-band { background: var(--color-surface); border-color: var(--brand-purple-soft); }

/* [FX-ACCENT] orange stays the primary CTA; purple (logo) carries the rest of the chrome. */
.btn--primary, .btn--primary:hover { color: var(--accent-ink); }
.nav__cta.btn--primary { color: var(--accent-ink); }
.nav__cta.btn--primary:hover { color: var(--accent-ink); }

/* [FX-PURPLE] 2026-11-21: use the main logo purple (#7022FC) much more, tastefully.
   Small text always uses --brand-purple-text (#B79CFF, 9.15:1 on Space Black). */
.eyebrow { color: var(--brand-purple-text); }
main > section:nth-of-type(even) .eyebrow { color: var(--accent); }
.craft-bento__eyebrow { color: var(--brand-purple-text); }

.btn--secondary {
  border-color: var(--brand-purple-text);
  color: var(--brand-purple-text);
  background: transparent;
}
.btn--secondary:hover {
  border-color: var(--brand-purple-text);
  background: var(--brand-purple-soft);
  color: var(--color-ink);
}

a { text-decoration-color: var(--brand-purple-text); }
a:hover { text-decoration-color: var(--accent); }
.link-quiet { color: var(--accent); border-bottom-color: var(--brand-purple-text); }
.link-quiet:hover { color: var(--accent-hover); border-bottom-color: var(--accent); }

/* [FX-ALIGN] 2026-11-21: button + text-link in a .btn-row must share one optical
   line, underline tight under the words, and wrap cleanly (Daniel, Brave Android
   ~390px). The photographed pair is Home's stories teaser ("Read the stories" /
   "Tell us yours"), not the Stories page hero. Cause: .btn-row defaulted to
   stretch, and .stories-teaser__copy .btn also had margin-top, so the link box
   grew taller than the button; the label sat at the top and the border-bottom
   floated at the button's bottom. Home hero already looked right because its
   button has no extra margin, but we still center every row the same way.
   Purple secondary-button styling is unchanged. */
.btn-row { align-items: center; }
.btn-row .link-quiet {
  display: inline-flex;
  align-items: center;
  align-self: center;
  height: auto;
  line-height: 1;
  padding: 0 0 0.12em;
  margin-top: 0;
}
.stories-teaser__copy .btn-row { margin-top: var(--space-5); }
.stories-teaser__copy .btn { margin-top: 0; }

.nav a:not(.btn).is-active {
  color: var(--brand-purple-text);
  background: var(--brand-purple-soft);
}
.nav-toggle { border-color: var(--brand-purple-text); }

.rule-accent { background: var(--gradient-underline); }

.engage-steps__num {
  background: var(--brand-purple);
  color: #F5F2EE;
}

/* [FX-FOOTER] dark footer, logo-gradient top edge, purple hover accents */
.site-footer {
  position: relative;
  background: url("../assets/preview/grain.png") repeat, var(--color-surface);
  background-size: 128px 128px, auto;
  border-top: 0;
  color: var(--color-ink);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--gradient-underline);
  pointer-events: none;
}
.site-footer .footer-brand__tag,
.site-footer .phone-link,
.site-footer .footer-nav a,
.site-footer .footer-socials a { color: var(--color-ink) !important; }
.site-footer h4, .site-footer .muted, .site-footer .small, .site-footer .footer-meta { color: var(--color-muted) !important; }
.site-footer .footer-heading { color: var(--brand-purple-text) !important; }
.site-footer .footer-nav a:hover,
.site-footer .phone-link:hover,
.site-footer .footer-socials a:hover { color: var(--brand-purple-text) !important; }
.site-footer .footer-quote { color: var(--color-muted); border-top-color: var(--color-border); }
.site-footer .footer-quote cite { color: var(--color-ink); }
.site-footer .footer-meta { border-top-color: var(--color-border); }

/* [FX-NOISE] static film grain (React Bits "Noise", not animated) on hero + dark bands.
   Background layer, so it is decorative by nature: no DOM, no pointer events, not in the a11y tree. */
.home-hero, .page-hero, .clients, .section--band-alt {
  background: url("../assets/preview/grain.png") repeat, var(--color-paper);
  background-size: 128px 128px, auto;
}

/* [FX-LOGOLOOP] React Bits "Logo Loop" port: one straight row, edge fade, pause on hover/focus (no pause button, Daniel 2026-11-12) */
.logo-loop {
  --logo-h: 88px;
  --logo-gap: clamp(3rem, 6vw, 5.5rem);
  --fade: clamp(3rem, 10vw, 9rem);
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
}
.logo-loop__track { display: flex; width: max-content; will-change: transform; }
.logo-loop__list {
  display: flex; align-items: center; gap: var(--logo-gap);
  padding: 0 calc(var(--logo-gap) / 2);
  margin: 0; list-style: none; flex: none;
}
.logo-loop__list li { flex: none; display: flex; align-items: center; }
.logo-loop__list img { height: var(--logo-h); width: auto; max-width: none; object-fit: contain; }
.logo-loop__list img[alt="Intelios"], .logo-loop__list img[data-logo="Intelios"] { height: calc(var(--logo-h) * 1.2); }
@media (max-width: 560px) { .logo-loop { --logo-h: 60px; } }
/* Reduced motion: no loop; JS leaves the original static grid (.clients__row) in place */

/* [FX-SPOTLIGHT] React Bits "Spotlight Card" port on the four Featured offerings cards */
.offer-card.fx-spot { position: relative; isolation: isolate; }
.offer-card.fx-spot > :not(.fx-spot__light):not(.fx-spot__edge) { position: relative; z-index: 1; }
.fx-spot__light, .fx-spot__edge {
  position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; z-index: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.fx-spot__light {
  background: radial-gradient(circle 320px at var(--mx, 50%) var(--my, 50%), rgba(245, 242, 238, 0.15), transparent 70%);
}
/* faint orange edge catch: only the 1px ring shows (mask excludes content box) */
.fx-spot__edge {
  padding: 1px;
  background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%), rgba(253, 143, 50, 0.55), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.offer-card.fx-spot.is-lit .fx-spot__light,
.offer-card.fx-spot.is-lit .fx-spot__edge,
.offer-card.fx-spot:has(:focus-visible) .fx-spot__light,
.offer-card.fx-spot:has(:focus-visible) .fx-spot__edge { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .fx-spot__light, .fx-spot__edge { transition: none; }
  .btn, .work-mosaic__item, .insight-card, .case-row { transition: none; }
}

/* [FX-FOCUS] buttons set their own box-shadow, which hid the global focus ring; restore it */
.btn:focus-visible { box-shadow: var(--focus-ring), var(--shadow-low); outline: none; }

/* [FX-ACCENT] numbers/stats were gradient-clipped text; make them solid orange */
.offer-card > .offer-card__num, .process-rail__num, .home-hero__stat strong {
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: var(--accent);
}

/* [FX-ASCII] React Bits "Gradient ASCII" background (js/gradient-ascii.js).
   Same module on home (.home-hero) and inner pages (.page-hero): right-column field on
   desktop, top-weighted mobile band, scrim so type stays readable. Decorative: aria-hidden.
   Home desktop values are unchanged. */
.home-hero { background: var(--color-paper); }          /* hero grain dropped: the ASCII carries texture */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-paper);
}
.hero-ascii {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 66%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
}
/* soft dark fade behind the copy column so the brighter field never undercuts text */
.home-hero::after,
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(1, 1, 2, 0.92) 0%, rgba(1, 1, 2, 0.8) 45%, rgba(1, 1, 2, 0) 64%);
}
.page-hero::after {
  background: linear-gradient(90deg,
    rgba(1, 1, 2, 0.96) 0%,
    rgba(1, 1, 2, 0.94) 42%,
    rgba(1, 1, 2, 0.86) 58%,
    rgba(1, 1, 2, 0.50) 72%,
    rgba(1, 1, 2, 0) 86%);
}
.hero-ascii canvas { pointer-events: none; }
.home-hero__grid, .home-hero .container, .page-hero .container { position: relative; z-index: 1; }
/* Mobile / stacked hero (matches the 860px grid collapse): field is a top-weighted
   backdrop over the whole hero, not a 170px strip under the CTAs. Desktop rules above stay as-is. */
@media (max-width: 860px) {
  .hero-ascii {
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 5%, #000 11%, transparent 24%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 5%, #000 11%, transparent 24%);
  }
  .hero-ascii canvas, .gradient-ascii-canvas {
    display: block;
    width: 100%;
    height: 100%;
  }
  .home-hero::after,
  .page-hero::after {
    display: block;
    background: linear-gradient(180deg,
      rgba(1, 1, 2, 0.28) 0%,
      rgba(1, 1, 2, 0.70) 8%,
      rgba(1, 1, 2, 0.92) 14%,
      rgba(1, 1, 2, 0.96) 24%,
      rgba(1, 1, 2, 0.95) 70%,
      rgba(1, 1, 2, 0.70) 100%);
  }
  /* Inner-page mobile band: the 0–24% mask is sized for the tall home hero
     (~150px of glyphs on a 620px section). Short page-heroes (Work ~376px,
     Stories ~458px) shrink that band to ~90–110px in the padding, which can
     sit under a taller mobile chrome and read as a plain dark hero. Use a
     fixed-height band comparable to Home, and a rem-based scrim so type
     stays readable. Home rules above are unchanged. */
  .page-hero .hero-ascii {
    top: 0;
    right: 0;
    left: 0;
    bottom: auto;
    width: 100%;
    height: 13rem;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 62%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 62%, transparent 100%);
  }
  .page-hero::after {
    background: linear-gradient(180deg,
      rgba(1, 1, 2, 0.18) 0,
      rgba(1, 1, 2, 0.38) 4rem,
      rgba(1, 1, 2, 0.82) 9rem,
      rgba(1, 1, 2, 0.94) 13rem,
      rgba(1, 1, 2, 0.96) 100%);
  }
}

/* [FX-GRADUAL-BLUR] section-edge band (in addition to the sticky header and logo-loop edges).
   A short bottom fade on inner-page heroes; does not use hero ::after (that is the text scrim). */
.gradual-blur-band {
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(1.15rem, 3vw, 2.25rem);
  pointer-events: none;
  z-index: 2;
}
.gradual-blur-band--bottom {
  bottom: 0;
  background: linear-gradient(180deg, rgba(1, 1, 2, 0) 0%, rgba(1, 1, 2, 0.55) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 100%);
}
@media (prefers-reduced-motion: reduce) {
  .gradual-blur-band {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* [FX-SPECULAR] React Bits "Specular Button" (components/specular-button), lightweight CSS port.
   A specular streak runs along the button's rim toward the pointer (plus a faint back lobe and
   an inner light pool). No WebGL per button; JS only sets --sb-* vars while easing.
   Switch off: remove initSpecular() in js/preview-fx.js (buttons fall back to the plain style). */
.btn.sb { position: relative; isolation: isolate; overflow: visible; }
.btn.sb .sb__rim, .btn.sb .sb__pool {
  position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; z-index: -1;
}
.btn.sb .sb__rim {
  padding: 1.5px;
  background: conic-gradient(from calc(var(--sb-angle, 315deg) - 180deg),
    var(--sb-back) 0deg, transparent 34deg, transparent 146deg,
    var(--sb-line) 172deg, var(--sb-line) 188deg, transparent 214deg,
    transparent 326deg, var(--sb-back) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: var(--sb-level, 0.35);
}
.btn.sb .sb__pool {
  background: radial-gradient(60% 120% at var(--sb-px, 20%) var(--sb-py, 0%), var(--sb-pool), transparent 70%);
  opacity: var(--sb-level, 0.35);
}
/* primary: Sunrise Orange fill, near-black label, warm white streak, faint lavender back lobe */
.btn--primary.sb {
  --sb-line: rgba(255, 246, 232, 0.95);
  --sb-back: rgba(112, 34, 252, 0.45);
  --sb-pool: rgba(255, 236, 214, 0.38);
  background: var(--accent);
  box-shadow: var(--shadow-low), inset 0 0 0 1px rgba(1, 1, 2, 0.18);
}
.btn--primary.sb:hover { background: var(--accent); filter: none; }
.btn--primary.sb:focus-visible { box-shadow: var(--focus-ring), var(--shadow-low); }
/* secondary / ghost on dark: warm orange streak, subtle */
.btn--secondary.sb, .btn--ghost.sb {
  --sb-line: rgba(253, 143, 50, 0.9);
  --sb-back: rgba(112, 34, 252, 0.4);
  --sb-pool: rgba(253, 143, 50, 0.10);
}
@media (prefers-reduced-motion: reduce) {
  .btn.sb .sb__rim, .btn.sb .sb__pool { transition: none; }
}


/* [FX-STEPPER] React Bits Stepper, vanilla port used on Premier GC, restyled for FlowLogic.
   Without JS every offering stacks. With JS: tablist + Back/Next. No glows or gradient blobs. */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.offer-stepper { display: grid; gap: var(--space-5); }
.offer-stepper .stepper-panel {
  border-left: 3px solid var(--accent);
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
}
.offer-stepper .stepper-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-2xl);
  line-height: 1;
  color: var(--accent);
  margin: 0 0 var(--space-2);
}
.offer-stepper .stepper-panel h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-ink);
  margin: 0 0 var(--space-3);
  text-transform: none;
  letter-spacing: -0.01em;
}
.offer-stepper .stepper-panel p {
  color: var(--color-muted);
  font-size: var(--text-base);
  margin: 0 0 var(--space-4);
  max-width: 36em;
}
.offer-stepper .stepper-panel .link-quiet { margin: 0; }

.offer-stepper.is-enhanced {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  box-shadow: var(--shadow-med);
  gap: var(--space-6);
}
.offer-stepper.is-enhanced .stepper-panel {
  border-left: 0;
  padding: 0;
  min-height: 11rem;
}
.offer-stepper.is-enhanced .stepper-panel:not([hidden]) { animation: offer-step-in 0.3s ease; }

.stepper-tabs {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: var(--space-3);
}
.stepper-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  border: 0;
  padding: var(--space-2);
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  cursor: pointer;
  border-radius: var(--radius-control);
  min-height: 44px;
  text-align: left;
}
.stepper-tab .dot {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-border-strong);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.stepper-tab:hover { color: var(--color-ink); }
.stepper-tab:hover .dot { border-color: var(--color-ink); }
.stepper-tab[aria-selected="true"] { color: var(--color-ink); }
.stepper-tab[aria-selected="true"] .dot,
.stepper-tab.is-done .dot {
  background: var(--brand-purple);
  border-color: var(--brand-purple);
  color: #F5F2EE; /* 5.66:1 on #7022FC */
}
.stepper-tab:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.stepper-line {
  height: 2px;
  background: var(--color-border-strong);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-pill);
  min-width: 12px;
}
.stepper-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-underline);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.stepper-line.is-done::after { transform: scaleX(1); }

.stepper-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}
.stepper-nav .btn[hidden] { display: none; }

@keyframes offer-step-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: none; }
}

/* Narrow tablets: keep labels and scroll the row instead of cramming. */
@media (max-width: 800px) {
  .offer-stepper.is-enhanced { padding: var(--space-5); }
  .stepper-tabs {
    display: flex;
    grid-template-columns: none;
    gap: var(--space-2);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 4px;
    margin: -4px;
  }
  .stepper-line { display: none; }
  .stepper-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
  }
}

/* Phones: numbered dots and connector lines, all four visible. Labels live in the panel. */
@media (max-width: 600px) {
  .stepper-tabs {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
    overflow: visible;
    scroll-snap-type: none;
    padding: 4px;
    margin: -4px;
    gap: var(--space-2);
  }
  .stepper-line { display: block; }
  .stepper-tab {
    flex: none;
    white-space: nowrap;
    padding: var(--space-2) 2px;
    justify-content: center;
  }
  .stepper-tab .label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* [FX-FADE] React Bits Fade Content, vanilla port from Premier GC.
   JS adds .fx only when motion is allowed and some sections start offscreen. */
.fx .fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fx .fade-in.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .fx .fade-in { opacity: 1; transform: none; transition: none; }
  .offer-stepper.is-enhanced .stepper-panel:not([hidden]) { animation: none; }
  .stepper-line::after { transition: none; }
  .stepper-tab .dot { transition: none; }
}
@media print {
  .fx .fade-in { opacity: 1; transform: none; }
}


/* [FX-SCROLL-REVEAL] React Bits Scroll Reveal, vanilla. Headings only.
   Words stay at full size and opacity; they start slightly soft and sharpen on view. */
.scroll-reveal .sr-word {
  display: inline-block;
  filter: blur(4px);
  transform: translateY(0.3em);
  transition: filter 0.7s ease, transform 0.7s ease;
}
.scroll-reveal.is-in .sr-word {
  filter: none;
  transform: none;
}
.scroll-reveal.is-in .sr-word:nth-child(1) { transition-delay: 0ms; }
.scroll-reveal.is-in .sr-word:nth-child(2) { transition-delay: 55ms; }
.scroll-reveal.is-in .sr-word:nth-child(3) { transition-delay: 110ms; }
.scroll-reveal.is-in .sr-word:nth-child(4) { transition-delay: 165ms; }
.scroll-reveal.is-in .sr-word:nth-child(5) { transition-delay: 220ms; }
.scroll-reveal.is-in .sr-word:nth-child(6) { transition-delay: 275ms; }
.scroll-reveal.is-in .sr-word:nth-child(7) { transition-delay: 330ms; }
.scroll-reveal.is-in .sr-word:nth-child(8) { transition-delay: 385ms; }

/* [FX-ANIMATED] React Bits Animated Content, vanilla. Short vertical stagger, no tilt. */
.ac-pending > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.ac-pending.is-in > * { opacity: 1; transform: none; }
.ac-pending.is-in > *:nth-child(1) { transition-delay: 0ms; }
.ac-pending.is-in > *:nth-child(2) { transition-delay: 90ms; }
.ac-pending.is-in > *:nth-child(3) { transition-delay: 180ms; }
.ac-pending.is-in > *:nth-child(4) { transition-delay: 270ms; }
.ac-pending.is-in > *:nth-child(5) { transition-delay: 360ms; }
.ac-pending.is-in > *:nth-child(6) { transition-delay: 450ms; }
.ac-pending.is-in > *:nth-child(7) { transition-delay: 540ms; }
.ac-pending.is-in > *:nth-child(8) { transition-delay: 630ms; }

/* [FX-SCROLL-FLOAT] React Bits Scroll Float, vanilla. Small travel on the CTA title. */
.scroll-float { display: block; }
.scroll-float__inner {
  display: inline-block;
  will-change: transform;
}

/* [FX-GRADUAL-BLUR] React Bits Gradual Blur, vanilla.
   Short edge bands on the logo loop, plus a soft band under the sticky header. */
.logo-loop::before,
.logo-loop::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(2rem, 5vw, 3.5rem);
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.logo-loop::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-paper) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, transparent 100%);
}
.logo-loop::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-paper) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(270deg, #000 0%, transparent 100%);
          mask-image: linear-gradient(270deg, #000 0%, transparent 100%);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 1.15rem;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, rgba(1, 1, 2, 0.35) 0%, rgba(1, 1, 2, 0) 100%);
}

/* [FX-SCROLL-STACK] React Bits Scroll Stack, vanilla. Short stack of equal cards.
   Driven by [data-scroll-stack] / [data-scroll-stack-item] on any page.
   Static fallback under 600px and when reduced motion is on. */
@media (min-width: 601px) and (prefers-reduced-motion: no-preference) {
  [data-scroll-stack] {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  [data-scroll-stack] > [data-scroll-stack-item] {
    position: sticky;
    top: calc(var(--header-h) + 0.85rem + (var(--stack-i, 0) * var(--stack-peek, 3.5rem)));
    margin-bottom: min(10vh, 4.5rem);
    min-height: 8.5rem;
    z-index: calc(2 + var(--stack-i, 0));
    transform: scale(var(--stack-scale, 1));
    transform-origin: top center;
    box-shadow: var(--shadow-med), inset 0 2px 0 var(--brand-purple);
  }
  [data-scroll-stack] > [data-scroll-stack-item]:last-child {
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal .sr-word,
  .scroll-reveal.is-in .sr-word {
    filter: none;
    transform: none;
    transition: none;
  }
  .ac-pending > *,
  .ac-pending.is-in > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-float__inner { transform: none !important; will-change: auto; }
  .logo-loop::before,
  .logo-loop::after,
  .site-header::after {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header::after { height: 0.65rem; background: linear-gradient(180deg, rgba(1, 1, 2, 0.2), transparent); }
}
@media print {
  .scroll-reveal .sr-word,
  .ac-pending > * { opacity: 1; filter: none; transform: none; }
  .site-header::after { display: none; }
}

/* Space under stacks that sit above another grid on the same page */
.insights-featured[data-scroll-stack],
.stories-stack[data-scroll-stack] {
  margin-bottom: var(--space-7);
}
.work-list + .cta-band,
.work-list[data-scroll-stack] + .cta-band { margin-top: var(--space-6); }
