/* ==========================================================================
   04 Manifesto — scroll-lit statement over the exploded-logo line graphic, big counter, stats
   ========================================================================== */
#manifesto { overflow: clip; }

/* clip keeps the sticky backdrop (which ends a viewport below the scene) from showing under the stats;
   the cut lands on the stats grid's top hairline. overflow:clip does not break position:sticky. */
#manifesto .mf-scene { position: relative; overflow: clip; }
/* the backdrop dissolves into the canvas before the cut instead of ending on a hard edge */
#manifesto .mf-scene::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36vh; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg) 92%);
}

/* sticky backdrop: stays put while statement + counter scroll over it */
#manifesto .mf-bg {
  position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh;
  display: grid; grid-template: 100% / 100%; place-items: center; overflow: hidden; pointer-events: none; perspective: 1100px;
}
#manifesto .mf-bg > * { grid-area: 1 / 1; }
/* exploded logo (inline SVG, see manifesto.html): neutral line work with gradient strokes that fade to
   transparent, one red dot. GSAP scrubs its build-in, turn and final tilt; CSS adds a slow idle pulse. */
#manifesto .mf-glow {
  width: min(1100px, 120vw); aspect-ratio: 1.6; border-radius: 50%; filter: blur(80px);
  background: radial-gradient(ellipse at 62% 50%, rgba(255,255,255,.045), transparent 62%);
}
#manifesto .mf-loop-wrap { width: min(1320px, 150vw); aspect-ratio: 1; transform-origin: 50% 50%; will-change: transform; }
#manifesto .mf-loop {
  width: 100%; height: 100%; display: block; overflow: visible;
  -webkit-mask-image: radial-gradient(circle, #000 58%, transparent 74%); mask-image: radial-gradient(circle, #000 58%, transparent 74%);
}
#manifesto .mf-turn, #manifesto .mf-dial { transform-box: view-box; transform-origin: 50% 50%; }
#manifesto .mf-turn { transform: rotate(calc(var(--mf-turn, 0) * 1deg)); }
#manifesto .mf-dial { transform: rotate(calc(var(--mf-dial, 0) * 1deg)); }
#manifesto .mf-tk { transform: translateX(calc(var(--tk, 0) * 1px)); }
#manifesto .mf-dial line { stroke: #fff; stroke-opacity: .1; stroke-width: 1.2; stroke-linecap: round; }
#manifesto .mf-dial line.major { stroke-opacity: .28; }
#manifesto .mf-dot-ring { transform-box: fill-box; transform-origin: 50% 50%; animation: mf-ping 3.2s var(--ease-out) infinite; }
@keyframes mf-ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
/* soft dark pool behind the text so the statement reads over the render */
#manifesto .mf-scrim {
  width: 100%; height: 100%;
  background: radial-gradient(ellipse min(640px, 62vw) min(300px, 40vh) at 50% 50%, rgba(5,5,6,.78), rgba(5,5,6,.42) 58%, transparent 100%);
}
/* statement */
#manifesto .mf-statement-wrap {
  position: relative; z-index: 1; min-height: 100vh; min-height: 100svh;
  display: grid; place-content: center; justify-items: center; gap: 30px; text-align: center; padding-block: 12vh;
}
#manifesto .mf-statement { max-width: 1000px; font-size: clamp(32px, 4.3vw, 62px); line-height: 1.1; }

/* big counter (Axiora "425") */
#manifesto .mf-big {
  position: relative; z-index: 1; min-height: 88vh; min-height: 88svh;
  display: grid; place-content: center; justify-items: center; gap: 22px; text-align: center; padding-bottom: 14vh;
}
#manifesto .mf-big-n {
  display: block; font-size: clamp(88px, 14vw, 216px); font-weight: 400; line-height: .9; letter-spacing: -0.065em;
  padding-right: .04em;
  background: linear-gradient(180deg, #fff 35%, #a1a1a1 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,.6));
}
#manifesto .mf-big-cap { color: var(--text-2); }
/* live pill: neutral tag, the pulsing dot is the section's one red signal */
#manifesto .mf-big .pill { background: rgba(5,5,6,.55); }
#manifesto .mf-big .pill-tag { background: rgba(255,255,255,.07); color: var(--text); }

/* stats row */
#manifesto .mf-stats { position: relative; z-index: 1; padding-bottom: var(--sec-y); }
#manifesto .mf-stat { display: flex; flex-direction: column; gap: 22px; min-height: 250px; }
#manifesto .mf-stat-k { display: flex; justify-content: space-between; color: var(--text-2); }
#manifesto .mf-stat b {
  margin-top: auto; font-size: clamp(44px, 4.6vw, 68px); font-weight: 400; letter-spacing: -0.055em; line-height: 1; color: var(--text);
}
#manifesto .mf-stat-l { display: grid; gap: 4px; font-size: 15px; color: var(--text); }
#manifesto .mf-meter { height: 2px; background: var(--line); position: relative; overflow: hidden; }
#manifesto .mf-meter i {
  position: absolute; inset: 0; transform-origin: left center; transform: scaleX(var(--w));
  background: linear-gradient(90deg, rgba(237,237,237,.12), var(--text));
}
#manifesto .mf-stat:nth-child(1) .mf-meter i::after {
  content: ""; position: absolute; right: 0; top: -1px; width: 3px; height: 4px; background: var(--red);
}

@media (prefers-reduced-motion: reduce) {
  #manifesto .mf-dot-ring { animation: none; opacity: 0; }
}
@media (max-width: 991px) {
  #manifesto .mf-stat { min-height: 220px; }
}
@media (max-width: 767px) {
  #manifesto .mf-statement-wrap { min-height: 82svh; padding-block: 10vh; gap: 24px; }
  #manifesto .mf-statement { font-size: clamp(30px, 8.4vw, 40px); }
  #manifesto .mf-big { min-height: 70svh; padding-bottom: 8vh; }
  #manifesto .mf-big .pill { font-size: 12px; }
  #manifesto .mf-loop-wrap { width: 170vw; }
  #manifesto .mf-stat { min-height: 0; gap: 18px; }
}
