/* Site motion + hero background changes (Timo 2026-10-29). Loaded after styles.css, so it wins on equal specificity. */

/* No fabric: the photo streaks behind the hero are gone, only the ASCII and the violet glow stay. */
.hero-bg { display: none; }

/* The ASCII runs from the hero into the statement section: both sit in .ascii-zone, which carries the
   background, so the two sections themselves are see-through and the canvas behind them shows. */
.ascii-zone { background: #060606; }   /* the statement's own colour, so its marquee fades and the sections below match */
.ascii-zone .hero, .ascii-zone .statement { background: transparent; }

/* No custom cursor (Timo 2026-10-29): the system arrow everywhere, the hand on things you can click. The overlay
   #clickCursor is gone from index.html, so script.js never switches the native cursor off. */
body { cursor: auto; }
a, button, .play-btn, .reference-mockup, .reference-video, .reference-play-btn { cursor: pointer; }

/* The logo strip keeps running under the mouse (Timo 2026-10-29); styles.css paused it on hover. */
.logo-marquee:hover .logo-marquee-track { animation-play-state: running; }

/* Logo strip: every logo the same visual size (Timo 2026-10-29). Measured, not guessed: each logo's ink box and how
   much of it is filled; the height is set so sqrt(ink-box area), lightly corrected for density, comes out equal. A
   wide wordmark (Objectbay, 10:1) therefore sits lower than a compact mark (Lidauer Media, 2.5:1). */
.logo-marquee { --lm: clamp(1.1rem, 1.4vw, 1.55rem); }
.logo-mark-objectbay { height: calc(var(--lm) * 0.705); }
.logo-mark-redarcs { height: calc(var(--lm) * 1.231); }
.logo-mark-baechstaedt { height: calc(var(--lm) * 0.870); }
.logo-mark-peakpv { height: calc(var(--lm) * 1.024); }
.logo-mark-lidauermedia { height: calc(var(--lm) * 0.95); }   /* the real wide Lidauer wordmark since 2026-11-11 (was the OG Fitness file) */

/* Leistungsumfang tiles keep the height they had with the long texts (171 px), whatever the text length (Timo 2026-10-29) */
@media (min-width: 761px) { .lu-c { min-height: 171px; } }

/* Navbar: see-through and blurred, a little of the ASCII shows behind it. The blur sits on a layer behind the bar,
   not on .site-nav itself: a backdrop-filter on the bar makes it the backdrop root of everything inside it, and the
   dropdown (.nav-dropdown-frame, its own backdrop-filter) then only saw the bar, not the page, and lost its blur. */
.site-nav {
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.site-nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(14, 14, 14, 0.3);
  -webkit-backdrop-filter: blur(3px) saturate(140%);
  backdrop-filter: blur(3px) saturate(140%);
}

/* Load-in: the hero's own entrance keyframes, now also coming out of a blur (same names, so the existing
   delays, stagger and the fonts-ready gate keep working). The blur is only in `from`: a `to` frame held by
   fill-mode would leave a filter on the floating cards and the video for good. */
@keyframes hero-enter-down {
  from { opacity: 0; transform: translateY(-14px); filter: blur(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-enter-up-centered {
  from { opacity: 0; transform: translateX(-50%) translateY(18px); filter: blur(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes hero-enter-up-centered-pills {
  from { opacity: 0; transform: translateX(-50%) translateY(18px); filter: blur(12px); }
  to   { opacity: 0.7; transform: translateX(-50%) translateY(0); }
}
@keyframes hero-enter-scale-centered {
  from { opacity: 0; transform: translateX(-50%) translateY(18px) scale(0.96); filter: blur(14px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes testimonial-enter-left {
  from { opacity: 0; transform: translate(-22px, 14px); filter: blur(12px); }
  to   { opacity: 1; transform: translate(0, 0); }
}
@keyframes testimonial-enter-right {
  from { opacity: 0; transform: translate(22px, 14px); filter: blur(12px); }
  to   { opacity: 1; transform: translate(0, 0); }
}

/* The ASCII background itself fades in after the content has started. */
.ascii-zone > canvas { animation: mv-canvas 1.6s ease .5s both; }
@keyframes mv-canvas { from { opacity: 0; } to { opacity: 1; } }

/* Everything below the hero comes in out of a blur when it scrolls into view. Hidden from the first paint on
   (html.mv-js is set by a line in <head>), so nothing shows and then disappears; site-motion.js adds .mv-in. */
html.mv-js :is(.statement-top > *, .testimonial-marquee-track > *, .op-kick, .op-sub, .op-list > li, .op-frame, .reference-card) {
  opacity: 0; filter: blur(12px); transform: translateY(18px);
  transition: opacity .9s cubic-bezier(.22, 1, .36, 1), filter .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--mv-d, 0s); }
html.mv-js :is(.statement-top > *, .testimonial-marquee-track > *, .op-kick, .op-sub, .op-list > li, .op-frame, .reference-card).mv-in {
  opacity: 1; filter: none; transform: none; }

/* USP tiles: hidden while the statement above writes itself; they come in one after the other once it is complete,
   and go again when scrolling up takes the statement back (site-motion.js toggles .mv-in). */
html.mv-js .us-it { opacity: 0; filter: blur(12px); transform: translateY(22px);
  transition: opacity .8s cubic-bezier(.22, 1, .36, 1), filter .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1);
  transition-delay: 0s; }
html.mv-js .us-grid { border-top-color: transparent; transition: border-color .8s ease; }
html.mv-js .us-grid.mv-in { border-top-color: var(--line); }
html.mv-js .us-it.mv-in { opacity: 1; filter: none; transform: none; transition-delay: var(--mv-d, 0s); }

/* Scenes (Timo 2026-11-02): one section on screen at a time. site-motion.js sets opacity, a slight blur and a drift on
   each section from the scroll position, so a section fades and blurs away as it is scrolled out instead of vanishing.
   The short transition only smooths the steps of a mouse wheel; it adds no delay of its own. */
html.mv-js .sc { transition: opacity .14s linear, filter .14s linear, transform .14s linear; }

/* "Dein Problem" headline written per letter: no clipped gradient, each letter carries its own colour (site-motion.js) */
.op-h2.sw { background: none; -webkit-text-fill-color: currentColor; color: var(--ink, #f7f8f8); }

/* ASCII on the headlines while they come in: the real letter keeps its place, the symbol is drawn over it. */
.mv-dec .ch { position: relative; }
.mv-dec .ch.s { -webkit-text-fill-color: transparent; }
.mv-dec .ch.s::after { content: attr(data-g); position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  -webkit-text-fill-color: rgba(255, 255, 255, .55); }

@media (prefers-reduced-motion: reduce) {
  html.mv-js :is(.statement-top > *, .testimonial-marquee-track > *, .op-kick, .op-sub, .op-list > li, .op-frame, .reference-card) { opacity: 1; filter: none; transform: none; transition: none; }
  .ascii-zone > canvas { animation: none; }
  html.mv-js .us-it { opacity: 1; filter: none; transform: none; transition: none; }
}

/* Every animated canvas on its own compositing layer (performance, Timo 2026-10-31): without it a canvas that redraws can
   make the browser repaint the whole page around it each frame (on the Kontakt page that was the whole main thread). */
canvas { will-change: transform; }

/* Phone (≤980px, launch 2026-11-17): the hero parts sit static and full-width there (styles.css), but the centred
   entrance keyframes above keep translateX(-50%) by fill-mode and override that rule's `transform: none`, so the
   whole hero slid half its width off the left edge. Same entrance without the centring offset. Only the name
   changes, so the delays, the fonts-ready gate and reduced-motion's `animation: none` still apply. */
@keyframes hero-enter-up-m {
  from { opacity: 0; transform: translateY(18px); filter: blur(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hero-enter-up-m-pills {
  from { opacity: 0; transform: translateY(18px); filter: blur(12px); }
  to   { opacity: 0.7; transform: none; }
}
@media (max-width: 980px) {
  .hero-badge, .hero-headline, .hero-sub, .hero-video-wrap, .hero-cta-row { animation-name: hero-enter-up-m; }
  .hero-pills { animation-name: hero-enter-up-m-pills; }
}
@media (max-width: 980px) and (prefers-reduced-motion: reduce) {
  .hero-badge, .hero-headline, .hero-sub, .hero-pills, .hero-video-wrap, .hero-cta-row { animation: none; }
}
