/* =====================================================================
   BODENOVA — Letzter Schrei
   Editorial motion, hand-drawn accents, subtle noise, elegant reveals.
   No neon. No bunt. No AI-slop. Just quiet confidence.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Splitting.js — per-character reveal for hero headline
   Elegant staggered rise. Only the hero. Never full paragraphs.
   --------------------------------------------------------------------- */
.hero__title[data-splitting] .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  filter: blur(6px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--char-index) * 22ms);
}

.hero__title[data-splitting].is-revealed .char {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Fallback for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .hero__title[data-splitting] .char {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ---------------------------------------------------------------------
   2. Rough Notation — hand-drawn accent under key words
   Only used on 1-2 words per section. Restraint.
   --------------------------------------------------------------------- */
.rn-target {
  position: relative;
  z-index: 1;
}

/* Prevent overlapping strikes on nested spans */
.hero__title .rn-target {
  color: inherit;
}

/* ---------------------------------------------------------------------
   3. NumberFlow — tabular figures for animated stats
   --------------------------------------------------------------------- */
.stat__number,
number-flow {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

number-flow {
  font-family: "Boska", "Fraunces", Georgia, serif;
  font-weight: 700;
}

/* ---------------------------------------------------------------------
   4. SVG Grain overlay — editorial analog texture
   Ultra-subtle. Never fights the content.
   --------------------------------------------------------------------- */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.85 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

@media (prefers-reduced-motion: reduce) {
  .grain-overlay { display: none; }
}

/* ---------------------------------------------------------------------
   5. Reveal-Override — services & audiences must not stay opacity:0
   Redundant with carousel.css guard, but explicit.
   --------------------------------------------------------------------- */
.services.reveal,
.audiences.reveal,
.case-studies.reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* ---------------------------------------------------------------------
   6. Section-title elegant reveal — line-mask entrance
   Softer alternative to Splitting on headlines that aren't the hero.
   --------------------------------------------------------------------- */
.section-title[data-line-mask] {
  overflow: hidden;
}

.section-title[data-line-mask] .line-inner {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-title[data-line-mask].is-revealed .line-inner {
  transform: translateY(0);
}

/* ---------------------------------------------------------------------
   7. Subtle underline-hand improvement — animated draw on view
   Extends existing .underline-hand from editorial-refinement.css
   --------------------------------------------------------------------- */
.underline-hand {
  background-size: 0% 0.18em, 0 0;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.4s;
}

.hero__title.is-revealed .underline-hand,
.section-title.is-revealed .underline-hand {
  background-size: 100% 0.18em, 0 0;
}

/* ---------------------------------------------------------------------
   8. Card hover — subtle lift & lens on service/audience cards
   --------------------------------------------------------------------- */
.service-card,
.audience-card {
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .service-card:hover,
  .audience-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -18px rgba(13, 11, 20, 0.24);
  }
}

/* ---------------------------------------------------------------------
   9. Editorial pull-quote frame — for use in future sections
   --------------------------------------------------------------------- */
.pull-quote {
  border-left: 2px solid var(--brand-indigo, #4a3aff);
  padding: 0 1.25rem;
  font-family: "Boska", "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 42ch;
}

/* ---------------------------------------------------------------------
   10. Scroll-progress indicator — thin gold line at top on scroll
   --------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: var(--scroll-progress, 0%);
  background: linear-gradient(90deg, #4a3aff 0%, #c89b3c 100%);
  z-index: 9999;
  transition: width 0.1s linear;
  transform-origin: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
}
