/* ===========================================================
   adict — Landing page hero
   Layout positioned as percentages of the Figma design canvas
   (2560×2106), locked via aspect-ratio on .hero, so composition
   stays proportional to the source design at any desktop width.
   This hero is content-rich (video + testimonials + CTAs), so
   unlike a simple hero it's expected to be taller than one
   viewport on most screens — normal page scroll, not clamped.
   Mobile (<980px) switches to a normal stacked flow.
   =========================================================== */

@font-face {
  font-family: 'SF Pro Display';
  src: url('assets/fonts/SFPRODISPLAYREGULAR.OTF') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('assets/fonts/SFPRODISPLAYMEDIUM.OTF') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Very Vogue Display';
  src: url('assets/fonts/VeryVogue-Display-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #090909;
  --violet: #9850F3;
  --white: #FFFFFF;
  --white-70: rgba(255, 255, 255, 0.7);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-30: rgba(255, 255, 255, 0.3);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-05: rgba(255, 255, 255, 0.05);
}

* { box-sizing: border-box; }

/* Custom cursor: the exact path from assets/icons/Vector.svg (a
   427×427 rounded arrow-pointer, user-supplied), drawn as an inline
   SVG data-URI here for the native idle cursor and as a matching
   clip-path: path() (.click-cursor-arrow, same "d" string, scaled via
   transform since clip-path: path() coordinates aren't relative to
   the element's own box) for the hover overlay below — vector both
   ways rather than a small raster PNG stretched up to size, which was
   reading as pixelated/soft (especially on hi-DPI screens). Hotspot
   1 0 is the path's own start/close point (23.8, 0.07 in its native
   427-unit space), which is the arrow's tip. The hover cursor's animated ring
   (.click-cursor-halo) can't be baked into a native cursor file either
   way — CSS `cursor: url()` doesn't animate — so on clickable elements
   the native cursor is swapped for a JS-tracked overlay (#clickCursor,
   positioned in script.js) built from that same arrow shape plus a
   looping CSS ring-draw. `auto`/`pointer` after the url()s are the
   fallback if that data-URI ever fails to parse — never omit those.
   The hover elements below only go to `cursor: none` once
   `.js-cursor-ready` confirms the overlay is actually tracking the
   mouse, so a JS failure never leaves the cursor invisible. */
body {
  margin: 0;
  font-family: 'SF Pro Display', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  cursor: auto;  /* the drawn arrow is gone everywhere (Timo 2026-11-04 23:00: "this cursor should never be on any site again") */
}

a, button {
  cursor: pointer;  /* the drawn arrow is gone everywhere (Timo 2026-11-04 23:00: "this cursor should never be on any site again") */
}

.js-cursor-ready a,
.js-cursor-ready button,
.js-cursor-ready .play-btn,
.js-cursor-ready .reference-mockup,
.js-cursor-ready .reference-video,
.js-cursor-ready .reference-play-btn {
  cursor: none;
}

/* JS-tracked overlay cursor shown on hover of clickable elements —
   see script.js for the mousemove/hover wiring. */
.click-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.15s ease;
  /* Dark outline (stacked zero-offset drop-shadows, not box-shadow —
     this is a raster img plus a masked pseudo-element, so only a
     filter can trace their actual alpha silhouette) so the white
     arrow + ring stay legible over light backgrounds like the
     reference mockup screenshot, not just the dark hero. */
  filter:
    drop-shadow(0 0 0.6px rgba(0, 0, 0, 0.85))
    drop-shadow(0 0 0.6px rgba(0, 0, 0, 0.85))
    drop-shadow(0 0 0.6px rgba(0, 0, 0, 0.85));
}
.click-cursor.is-visible { opacity: 1; }

/* Drawn with clip-path: path() (not an <img>) so the arrow rasterizes
   fresh at whatever the actual screen resolution is, instead of being
   stretched up from a small pre-baked bitmap — that's what was reading
   as pixelated/soft, especially on hi-DPI screens. Exact same "d"
   string as the SVG data-URI used for the native cursor: url() below.
   clip-path: path() coordinates are plain CSS px in the element's own
   box, not relative percentages — so the element is sized to the
   path's native 427×427 units and then scaled down (15/427) via
   transform, which also rasterizes crisply since it's still a vector
   transform, not a bitmap resize. The translate shifts the arrow's
   tip (the path's start point, 23.8 0.07 in its native units) onto
   the element's own origin — transform order means translate() (in
   already-scaled px) is applied after scale(), so it's a small,
   near-zero nudge rather than the full 427-unit offset. */
.click-cursor-arrow {
  position: absolute;
  top: 0;
  left: 0;
  width: 427px;
  height: 427px;
  background: #fff;
  clip-path: path("M23.8111 0.0707287C29.8338 -0.362271 33.7999 1.24648 39.2606 3.42948C48.1081 6.96698 56.9571 10.5095 65.8033 14.0512L123.49 37.126L299.331 107.46L378.718 139.151L399.146 147.309C403.863 149.193 412.376 152.259 416.281 155.13C421.836 159.199 425.518 165.332 426.496 172.147C427.441 178.888 425.643 185.725 421.503 191.129C415.398 199.098 408.261 200.463 399.033 202.317L385.071 205.105L338.751 214.369L270.248 228.027L248.148 232.439C244.213 233.222 239.061 234.387 235.146 234.889C233.796 240.769 232.473 248.237 231.316 254.274L210.846 356.602L204.303 389.424C203.242 394.754 201.929 402.554 200.5 407.649C199.604 410.917 198.08 413.977 196.013 416.662C191.662 422.194 185.278 425.754 178.284 426.549C166.903 427.852 156.112 420.772 151.932 410.304C147.854 400.092 143.716 389.897 139.631 379.684L115.592 319.577L44.7954 142.532L15.5619 69.47L7.10535 48.3395C5.4561 44.2205 3.87135 39.9522 2.1686 35.873C-4.72315 19.3637 5.4351 1.67773 23.8111 0.0707287Z");
  transform-origin: 0 0;
  transform: translate(-0.61px, 0px) scale(0.0257611241);
}

/* Registered so the browser can interpolate these as angles inside the
   conic-gradient mask below — a plain custom property has no type, so
   animating it would just jump instead of sweeping smoothly. Two
   separate properties (not one) because the arc's leading and
   trailing edges now move independently — see the animation comment
   below for why. */
@property --sweep-start {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@property --sweep-end {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.click-cursor-halo {
  position: absolute;
  top: 0;
  left: 0;
  width: 10.35px;
  height: 10.35px;
  transform: translate(-4.58px, -4.55px);
}
.click-cursor-halo::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.1px solid #fff;
  /* Ring geometry measured directly off assets/icons/clicking (1).png
     (connected-component analysis: ring center, radius, gap angle, and
     its offset from the arrow's tip) rather than guessed — the original
     -35deg guess put the gap on the wrong side entirely; the real gap
     sits between 97.6deg and 172.4deg (absolute, 0=12 o'clock, clockwise),
     centered at 135deg. Widened here to 110deg (still centered on 135deg,
     `from 190deg` for up to a 250deg sweep) so the ring's two ends stop
     short of the arrow instead of touching it, per request.
     --sweep-start/--sweep-end are the arc's two edges, both measured
     clockwise from that same 190deg anchor. Drawing in moves only
     --sweep-end (0deg → 250deg) while --sweep-start stays at 0 — same
     as before. But erasing now ALSO moves clockwise: --sweep-start
     chases --sweep-end from 0deg up to 250deg while --sweep-end holds
     still, so the arc's tail sweeps forward to catch its own head
     rather than the head reversing direction back to the tail — same
     concept as a line whose fill and wipe both run left→right instead
     of drawing right then un-drawing leftward. Ring size/position stay
     fixed throughout. Only applies (see .click-cursor.is-visible below)
     while actually hovering, so every hover restarts the draw from a
     clean 0% instead of a background loop that's already mid-cycle by
     the time you land on it. */
  -webkit-mask-image: conic-gradient(from 190deg, transparent 0deg var(--sweep-start), #000 var(--sweep-start) var(--sweep-end), transparent var(--sweep-end) 360deg);
          mask-image: conic-gradient(from 190deg, transparent 0deg var(--sweep-start), #000 var(--sweep-start) var(--sweep-end), transparent var(--sweep-end) 360deg);
}
.click-cursor.is-visible .click-cursor-halo::before {
  animation: click-halo-draw 2.7s ease-in-out infinite;
}
/* Segments (of the 2.7s total): 0–300ms hold at 0 (delay before the
   draw-in starts), 300–1000ms draw in (--sweep-end runs out), 1000–2000ms
   hold at full (the ~1s pause before the catch-up starts), 2000–2700ms
   catch-up (--sweep-start runs out to meet --sweep-end). */
@keyframes click-halo-draw {
  0%      { --sweep-start: 0deg;   --sweep-end: 0deg; }
  11.11%  { --sweep-start: 0deg;   --sweep-end: 0deg; }
  37.04%  { --sweep-start: 0deg;   --sweep-end: 250deg; }
  74.07%  { --sweep-start: 0deg;   --sweep-end: 250deg; }
  100%    { --sweep-start: 250deg; --sweep-end: 250deg; }
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.accent-italic {
  font-family: 'Very Vogue Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.2em;
  color: var(--violet);
  text-shadow: 0 0 40px rgba(152, 80, 243, 0.9), 0 0 80px rgba(152, 80, 243, 0.5);
}

.accent { color: var(--violet); }

/* -------------------- Pills (shared glass style) -------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.pill-glass {
  background: var(--white-10);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 8px 13px rgba(0, 0, 0, 0.25), inset 4px 5px 6px rgba(255, 255, 255, 0.25), inset -1px -3px 4px rgba(255, 255, 255, 0.15);
}

.pill-icon { width: 1.1em; height: 1.1em; object-fit: contain; flex-shrink: 0; }

/* -------------------- Hero -------------------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 2560 / 2106;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  mix-blend-mode: color-dodge;
  /* color-dodge divides the (near-black #090909) backdrop by (1 - blend
     pixel) — so it only lights up where the image gets close to white.
     CSS has no direct "highlights" slider like Figma's image adjustments,
     so pushing brightness hard is what gets enough of the image near
     white for the dodge to actually read as bright streaks. */
  filter: brightness(2.1) contrast(1.5);
}

.hero-glow {
  position: absolute;
  z-index: -2;
  left: 26.6%;
  top: 47.01%;
  width: 46.25%;
  height: 34.09%;
  background: rgba(152, 80, 243, 0.52);
  filter: blur(100px);
  border-radius: 50%;
}

/* -------------------- Page-load entrance -------------------- */
/* One-shot, staggered via animation-delay on each element in reading
   order (nav → badge → headline → sub → pills → video → testimonials →
   CTAs) — see the `animation:` line on each of those rules below.
   `both` fill-mode: holds the "from" state during the delay so nothing
   flashes at full opacity before its turn, then holds "to" afterward.
   Elements centered with left:50%+translateX(-50%) fold that into the
   keyframe itself, since a running animation replaces the transform's
   used value outright — it can't layer on top of a separate
   `transform` declaration. */

@keyframes hero-enter-down {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-enter-up-centered {
  from { opacity: 0; transform: translateX(-50%) translateY(18px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Same as above but settles at .hero-pills' own resting opacity (0.7,
   an intentional dim) instead of 1. */
@keyframes hero-enter-up-centered-pills {
  from { opacity: 0; transform: translateX(-50%) translateY(18px); }
  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); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes testimonial-enter-left {
  from { opacity: 0; transform: translate(-22px, 14px); }
  to   { opacity: 1; transform: translate(0, 0); }
}

@keyframes testimonial-enter-right {
  from { opacity: 0; transform: translate(22px, 14px); }
  to   { opacity: 1; transform: translate(0, 0); }
}

/* Several of these elements (badge, headline, sub, pills) are
   shrink-to-fit boxes centered with left:50%+translateX(-50%), so
   their rest position depends on their own rendered width — which
   depends on which font is currently applied. The custom fonts use
   font-display: swap, so text first paints in a fallback font and
   later swaps to the real one once it loads; if the entrance animation
   is already mid-flight when that swap lands, the width change reads
   as the element jumping sideways. Fix: hold every entrance animation
   paused at its (invisible) starting frame — animation-delay doesn't
   tick down while paused — until script.js confirms document.fonts is
   ready and adds .fonts-ready, so the very first visible frame already
   uses final font metrics. The `paused` half of this lives on each
   element's own rule below (not here) — here would put it earlier in
   the cascade than each element's `animation:` shorthand, which resets
   animation-play-state back to its initial (running) value regardless
   of source order otherwise. */
html.fonts-ready .site-nav, html.fonts-ready .hero-badge,
html.fonts-ready .hero-headline, html.fonts-ready .hero-sub,
html.fonts-ready .hero-pills, html.fonts-ready .hero-video-wrap,
html.fonts-ready .testimonial-enter, html.fonts-ready .hero-cta-row {
  animation-play-state: running;
}

.hero-content {
  position: absolute;
  inset: 0;
}

/* -------------------- Nav -------------------- */

.site-nav {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 4.4%;
  min-height: 4rem;
  background: linear-gradient(180deg, #0F0F0F 0%, #141414 100%);
  border-bottom: 1px solid var(--white-20);
  display: flex;
  align-items: center;
  /* backwards, not both: this element's own entrance transform must
     not persist after the animation finishes — .nav-dropdown lives
     inside it (position:fixed) and its backdrop-filter blur needs
     .site-nav to have a plain, transform-less computed style once
     settled. A lingering non-none transform (which `both`'s forwards
     half would leave behind, even though visually it's an identical
     translateY(0)/no-op) makes this element a new containing block for
     fixed descendants — backdrop-filter on one then silently stops
     sampling the actual page behind it. backwards alone still keeps it
     hidden during the animation-delay/paused period; it just stops
     holding the final frame's transform in place once the animation
     is actually done. */
  animation: hero-enter-down 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-play-state: paused; /* released once html.fonts-ready lands, see below */
}

.nav-inner {
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
}

.brand-mark { height: clamp(1rem, 1.15vw + 0.5rem, 1.6rem); width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.2vw, 2.75rem);
}

.nav-links a {
  font-size: 0.8125rem;
  letter-spacing: -0.02em;
  color: var(--white-50);
  border-radius: 0.5rem;
  padding: 0.6em 1em;
  margin: -0.6em -1em;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* -------------------- Nav dropdown (mega-menu) --------------------
   Values (blur, bg, border, shadow, radius, padding, item hover
   opacity, scale/timing) matched against Linear's actual production
   CSS (linear.app/homepage — Header component), not guessed. Content
   layout (Core Services / Mehr columns) is adict's own from the
   reference screenshot. */

.nav-item { position: relative; }

/* Trigger pill: also lights up via .nav-item:hover (not just its own
   :hover) so it stays highlighted for as long as the panel below it
   is open, even once the cursor has moved off the word itself and
   down into the dropdown — matches Linear's [data-state=open] anchor,
   which a pure a:hover can't replicate since hover drops the instant
   the cursor leaves that specific element. */
.nav-item.is-open > a,
.nav-item:hover > a {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Centered on the viewport rather than anchored under the trigger, so
   it's detached from .nav-item's (narrow, off-center) position. That
   means crossing the visual gap between a trigger and the panel would
   normally pass over unrelated elements and drop :hover mid-transit —
   and now that one shared dropdown serves every trigger (so it can
   stay put and swap content instead of closing/reopening between
   them), it's no longer even a descendant of .nav-item, so :hover on
   the item can't reach it at all. Both cases are handled the same way:
   script.js owns .nav-dropdown.is-open directly, with a short close
   delay on leaving every trigger + the panel (grace period, cancelled
   on re-entry). */
.nav-dropdown {
  position: fixed;
  top: 3.65rem;
  left: 50%;
  /* top center origin + scale-only (no translateY) means it grows
     from the top edge in place rather than the position shifting. */
  transform-origin: top center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) scale(0.9);
  pointer-events: none;
  transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out, visibility 0s linear 0.15s;
}

.nav-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
  transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out, visibility 0s linear 0s;
}

/* Outer frame: same border as the nav bar itself (.site-nav), with a
   small gap to the actual glass panel nested inside it. */
/* Trying to transition backdrop-filter in sync with opacity still read
   as a pop (blur is expensive enough that the browser's render lags
   behind the transition's own timeline). Instead: apply full blur the
   instant the dropdown opens — no transition on this property at all
   — so the browser starts that expensive work immediately, with the
   opacity/transform fade (which starts at the same moment) giving it
   a head start to actually finish rendering before the panel is
   visible enough for a half-rendered blur to be noticeable. */
.nav-dropdown-frame {
  border: 1px solid var(--white-20);
  border-radius: 0.9rem;
  padding: 0.35rem;
  background: rgba(0, 0, 0, 0.15);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.75);
}

.nav-dropdown.is-open .nav-dropdown-frame {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* No padding/flex role of its own anymore — that moved to
   .dropdown-panel, since this box now needs to just be a plain sized
   container multiple panels sit inside (stacked via position:
   absolute) so one can slide out while the other slides in. Its
   width/height are set inline by script.js exactly once, measured
   from the Produkt panel — every other panel shares that same fixed
   box rather than resizing per-panel (see .dropdown-feature's
   flex: 1, which fills leftover space for shorter content). */
.nav-dropdown-inner {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-dropdown.is-open .nav-dropdown-inner {
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* Panels stack on top of each other; script.js toggles which classes
   are present to drive the swipe. Resting/hidden panels sit fully
   transparent and un-interactive so only the active one is clickable. */
.dropdown-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  padding: 0.3rem 1rem 1.5rem 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(0);
  transition: opacity 0.18s ease-in-out, transform 0.18s ease-in-out;
}

.dropdown-panel.panel-active { opacity: 1; pointer-events: auto; transform: translateX(0); }

/* Starting point for an incoming panel (set right before the class
   flips to panel-active on the next frame) and resting point for an
   outgoing one — 40px is deliberately modest (Linear's own uses 48px),
   a nudge rather than a full swipe off/on screen. */
.dropdown-panel.slide-in-right,
.dropdown-panel.slide-out-right { transform: translateX(40px); opacity: 0; pointer-events: none; }

.dropdown-panel.slide-in-left,
.dropdown-panel.slide-out-left { transform: translateX(-40px); opacity: 0; pointer-events: none; }

.dropdown-col {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 12rem;
  padding: 0.5rem 0.75rem;
}

/* flex: 1 makes this stack fill the rest of the column's stretched
   height (after the label), and justify-content: space-between then
   pushes its first/last item to the very top/bottom of that space —
   so Webdevelopment lines up with Mehr's row 1 and Social Ads with
   Mehr's row 3, rather than sitting together as one compact block. */
.dropdown-links-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.dropdown-col-wide { min-width: 21.5rem; }

.dropdown-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  align-self: stretch;
  flex-shrink: 0;
  /* .dropdown-divider and .dropdown-col are siblings inside
     .nav-dropdown-inner, but .dropdown-col has its own top padding
     (0.5rem) inset before the label starts — so a bare align-self:
     stretch put the divider's top 0.5rem *above* the label. This
     margin-top matches that same column padding so both start flush;
     the bottom still reaches the container edge via stretch, already
     level with the last row (see margin-top: auto on Core Services'
     last item). */
  margin: 0.5rem 1.25rem 0;
}

.dropdown-label {
  display: block;
  padding: 0.5rem 0 0.1rem 0;
  font-size: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--white-30);
}

.dropdown-grid { display: flex; gap: 1.5rem; }

.dropdown-subcol { display: flex; flex-direction: column; gap: 0; flex: 1; min-width: 0; }

/* margin cancels .dropdown-col's own horizontal padding, then padding
   restores it — so the link's TEXT lands at exactly the same inset as
   .dropdown-label (both ultimately derive from .dropdown-col's single
   padding value, rather than two separately-set values that merely
   happened to match), while the hover background still reaches flush
   to the column's outer edge for a full-width hit target. */
.dropdown-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0 -0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.dropdown-link:hover { background: rgba(255, 255, 255, 0.03); }

.dropdown-link strong {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
}

.dropdown-link span {
  font-size: 0.7rem;
  letter-spacing: -0.01em;
  color: var(--white-50);
}

/* Case Studies' left column: one big highlighted block instead of
   Produkt's two small items. margin: -0.75rem cancels .dropdown-col's own padding on every side
   (same trick .dropdown-link uses horizontally, extended to all four
   sides here) so the card sits flush against the column's edges and
   its own uniform padding below is the only inset — giving it the
   same gap on all sides instead of stretching the full column height
   and centering short content inside, which left huge top/bottom gaps. */
.dropdown-feature {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: -0.75rem;
  padding: 1.25rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.2s ease;
  /* The media block below is flex:1, so it always fills exactly
     whatever space is left after the eyebrow+headline — but the
     panel's overall height is locked in px by script.js (measured
     once from the Produkt panel), not sized to this panel's own
     content, so that "leftover space" isn't a fixed, predictable
     number. overflow:hidden here is what turns "however much space
     happens to be left" into the flat, cropped-at-the-card's-edge
     look in the mockup, regardless of what that amount actually is. */
  overflow: hidden;
}

/* Own hover rule rather than relying on .dropdown-link:hover — that
   generic rule sets the exact same background .dropdown-feature
   already has at rest, so without this override hovering the card
   produced no visible change at all. */
.dropdown-feature:hover {
  background: rgba(255, 255, 255, 0.07);
}

/* flex:1 (not a fixed aspect-ratio) so it reliably fills the card
   down to its bottom edge — object-fit:cover on the image then crops
   to that box without distorting it. */
/* Bleeds only to the card's own bottom edge (negative margin
   cancelling .dropdown-feature's padding on that side only — top
   keeps its normal gap below the headline via the parent's own flex
   gap, and left/right keep a small inset instead of also bleeding
   flush, so the video has breathing room from the card's frame on
   both sides). Since no corner sits exactly on the card's own corner
   anymore, all four corners share the same smaller radius rather than
   matching the card's. No border of its own: the card's existing
   border already frames it, a separate inner border would double up. */
.dropdown-feature-media {
  flex: 1;
  min-height: 3.5rem;
  margin: 0.35rem -0.55rem -1.25rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

/* object-position top: crop only happens at the bottom (against the
   frame's own cut-off edge) — the top of the shot, which is what the
   viewer actually reads the composition by, stays fully in frame
   instead of being cropped equally from both ends. */
.dropdown-feature-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Produkt's panel padding is intentionally asymmetric (tight top, so
   its label sits close to the nav; extra bottom, for the touching-gap
   links). Case Studies has no top label to hug, so that same asymmetry
   just pushed its feature card past the bottom instead — give it its
   own even padding on all four sides. */
.dropdown-panel[data-panel="case-studies"] { padding: 1rem; }

/* .dropdown-col's shared padding is asymmetric (0.5rem top/bottom vs
   0.75rem left/right) to hug Produkt's label above its links. Case
   Studies' left column has no label — just the feature card filling
   the full height — so that asymmetry throws off its top/bottom gap
   to the frame while the left/right gap is already correct. Even it
   out to match. */
.dropdown-panel[data-panel="case-studies"] .dropdown-col:not(.dropdown-col-wide) {
  padding: 0.75rem;
}

/* Right column: 2 items per sub-column (vs. Produkt's 3), so the same
   shared gap: 0 (see .dropdown-subcol) left them small and stacked at
   the top with empty space below instead of filling the column. Here
   each link itself grows (flex: 1) to take up an even, equal share of
   the sub-column's full height — not just repositioned with space
   between them, but actually resized — matching the feature card's
   height on the left. Scoped to this panel only, since Produkt's
   items should stay their natural size and touching, not stretched. */
.dropdown-panel[data-panel="case-studies"] .dropdown-subcol {
  gap: 0.5rem;
}

.dropdown-panel[data-panel="case-studies"] .dropdown-subcol .dropdown-link {
  flex: 1;
  justify-content: center;
}

.dropdown-feature-eyebrow {
  padding: 0;
  margin-bottom: 0.25rem;
  color: var(--violet);
  text-transform: uppercase;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  /* Forces this text's full width to be the flex column's own
     min-width (the default min-width:auto on a flex item factors in
     its content's min-content size, and nowrap text's min-content
     width is its full rendered width) — so the column can't shrink
     narrower than the eyebrow needs, whatever the headline next to it
     happens to wrap to. Without this, the column's width floor came
     from whichever sibling text happened to be longest, which broke
     once the headline got a manual <br> and stopped being that
     sibling. */
  white-space: nowrap;
}

.dropdown-feature strong {
  font-size: 1.1rem;
  line-height: 1.3;
}

/* Ressourcen: same "no top label on the left column" shape as Case
   Studies (a feature card filling the full column instead of a
   labelled link stack), so it gets the same even four-side padding
   override for the same reason. */
.dropdown-panel[data-panel="ressourcen"] { padding: 1rem; }

.dropdown-panel[data-panel="ressourcen"] .dropdown-col:not(.dropdown-col-wide) {
  padding: 0.75rem;
  /* Wider than the shared 12rem default — just this card, not the
     overall (fixed, Produkt-locked) box. flex-basis fixes it at an
     exact width (0 grow, 0 shrink) instead of just raising the
     min-width floor — a floor alone doesn't stop the row's combined
     natural width from exceeding the locked box and overflowing it;
     it needs to actually give back space from the right column below
     to stay the same total. 14rem/25.5rem (vs. the original 12rem/
     21.5rem split) was sized against the actual measured text: the
     right column's longest card title ("Made by adict - Library")
     needs ~182px including its own padding, so 2 cards + gap + column
     padding ≈ 400px is the real floor for keeping every title on one
     line — giving the left column more than this leaves would wrap
     the resource cards, which is its own separate requirement. */
  flex: 0 0 14rem;
}

/* min-width has to be overridden too: the shared .dropdown-col-wide
   rule's 21.5rem floor otherwise still wins over this smaller
   flex-basis (min-width always beats a smaller basis). */
.dropdown-panel[data-panel="ressourcen"] .dropdown-col-wide {
  flex: 0 0 25.5rem;
  min-width: 0;
}

/* Fanned-out hero screenshot stack (assets/images/heros/), 12 separate
   elements — each its own card so they stay individually interactive
   later, rather than one flattened composite image. flex:1 fills
   whatever's left below the eyebrow+headline, same as
   .dropdown-feature-media does for Case Studies' video; the fan is
   deliberately wider/taller than this box and gets cropped by
   .dropdown-feature's own overflow:hidden, matching the reference. */
.hero-stack {
  position: relative;
  flex: 1;
  min-height: 3.5rem;
  margin: 0.35rem -0.55rem -1.25rem;
}

/* Each card is its own glass frame around the raw screenshot (see
   .glass-edge in index.html — a translucent gradient ring, not a flat
   border, so the frame reads as glass rather than a solid black
   outline), not a bare <img>. All 12 share the exact same rotation —
   the reference stacks them like a deck pushed diagonally, every
   card's edges staying parallel to the others — with only a uniform
   per-card translate offset (below) doing the staggering, rather than
   each card rotating at its own angle around a shared pivot (that
   read as a curved fan instead of an aligned stack). */
.hero-stack-item {
  position: absolute;
  left: -10%;
  top: 40%;
  width: 8.5rem;
  aspect-ratio: 470 / 266;
  border-radius: 0.4rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.hero-stack-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.95;
}

/* Uniform diagonal stagger: each card offset the same fixed amount
   further down-right than the last, all at the same -22deg rotation —
   negative, so each card leans left (not right) — with the stagger
   step mostly horizontal and only a slight vertical drift, so the
   whole composition reads as a wide left-to-right spread instead of a
   compact diagonal cascade, fitting all 13 cards across the width.
   z-index follows DOM order so later (further right) cards sit on
   top, same as a deck fanned toward the viewer. */
.hero-stack-item:nth-child(n)  { transform: rotate(-38deg); }
.hero-stack-item:nth-child(1)  { translate: 0rem 0rem;      z-index: 1; }
.hero-stack-item:nth-child(2)  { translate: 1.6rem 0.5rem;  z-index: 2; }
.hero-stack-item:nth-child(3)  { translate: 3.2rem 1rem;    z-index: 3; }
.hero-stack-item:nth-child(4)  { translate: 4.8rem 1.5rem;  z-index: 4; }
.hero-stack-item:nth-child(5)  { translate: 6.4rem 2rem;    z-index: 5; }
.hero-stack-item:nth-child(6)  { translate: 8rem 2.5rem;    z-index: 6; }
.hero-stack-item:nth-child(7)  { translate: 9.6rem 3rem;    z-index: 7; }
.hero-stack-item:nth-child(8)  { translate: 11.2rem 3.5rem; z-index: 8; }
.hero-stack-item:nth-child(9)  { translate: 12.8rem 4rem;   z-index: 9; }
.hero-stack-item:nth-child(10) { translate: 14.4rem 4.5rem; z-index: 10; }
.hero-stack-item:nth-child(11) { translate: 16rem 5rem;     z-index: 11; }
.hero-stack-item:nth-child(12) { translate: 17.6rem 5.5rem; z-index: 12; }
.hero-stack-item:nth-child(13) { translate: 19.2rem 6rem;   z-index: 13; }

/* Right column: a true 2×2 grid of individually-bordered cards (not
   Produkt/Case Studies' plain text-link stacks), each roughly equal
   width/height. flex:1 stretches the grid itself to fill the column's
   full locked height, same technique .dropdown-links-stack uses. */
.dropdown-resource-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
}

/* Same look as .dropdown-link (Produkt/Case Studies' right-side
   links) — no border/background at rest, only a hover fill — just
   arranged in a 2x2 grid instead of a stacked column. */
.dropdown-resource-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.dropdown-resource-card:hover {
  background: rgba(255, 255, 255, 0.03);
}

.dropdown-resource-card strong {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
}

.dropdown-resource-card span {
  font-size: 0.7rem;
  letter-spacing: -0.01em;
  color: var(--white-50);
}

.btn-nav {
  background: var(--white);
  color: var(--bg);
  border-radius: 0.5rem;
  padding: 0.65em 1.1em;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* -------------------- Badge -------------------- */

.hero-badge {
  position: absolute;
  top: 11%;
  left: 50%;
  transform: translateX(-50%);
  animation: hero-enter-up-centered 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
  animation-play-state: paused;
}

.hero-badge .pill {
  padding: 0.85em 1.6em;
  font-size: clamp(0.85rem, 1vw, 1.15rem);
  font-weight: 700;
}

.hero-badge .accent { font-weight: 700; }

/* -------------------- Headline -------------------- */

.hero-headline {
  position: absolute;
  top: 17.4%;   /* up a little with the bigger size (2026-11-10) */
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90%;
  margin: 0;
  text-align: center;
  font-size: clamp(2.85rem, 5.7vw, 5.13rem);   /* bigger twice (Timo 2026-11-10 15:04 + 15:18), was 4.72vw */
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: -0.02em;
  animation: hero-enter-up-centered 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
  animation-play-state: paused;
}

.hero-headline-sub {
  display: inline-block;
  font-size: 0.7em;
}

/* -------------------- Subheadline -------------------- */

.hero-sub {
  position: absolute;
  top: 32.24%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 42%;
  margin: 0;
  text-align: center;
  font-size: clamp(0.95rem, 1.25vw, 1.4rem);
  letter-spacing: -0.02em;
  color: var(--white-50);
  animation: hero-enter-up-centered 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
  animation-play-state: paused;
}

/* -------------------- Pills row -------------------- */

.hero-pills {
  position: absolute;
  top: 35.52%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1vw, 1.1rem);
  opacity: 0.7;
  animation: hero-enter-up-centered-pills 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
  animation-play-state: paused;
}

.hero-pills .pill { padding: 0.75em 1.3em; font-size: clamp(0.7rem, 0.7vw, 0.85rem); }

/* -------------------- Video mockup -------------------- */

.hero-video-wrap {
  position: absolute;
  top: 41.88%;
  left: 50%;
  transform: translateX(-50%);
  width: 52.73%;
  height: 36.85%;
  isolation: isolate;
  --edge-radius: clamp(0.6rem, 1.1vw, 1.3rem);
  --edge-pad: clamp(0.2rem, 0.35vw, 0.4rem);
  border-radius: var(--edge-radius);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--edge-pad);
  animation: hero-enter-scale-centered 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
  animation-play-state: paused;
}

/* Glass edge: instead of a flat border, a directional gradient ring
   (bright where the "light" hits, fading toward the opposite corner)
   — a masked pseudo-element rather than border-image, so it still
   respects border-radius. Shared by anything with .glass-edge. */
/* Callers must set their own position: relative/absolute — kept out
   of this rule so it can't fight a caller's own positioning in the
   cascade (e.g. .hero-video-wrap needs position: absolute). */
.glass-edge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.18) 30%,
    rgba(255, 255, 255, 0.04) 60%,
    rgba(255, 255, 255, 0.14) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Breathing, mouse-reactive violet glow sitting behind the glass
   parent (.hero-video-wrap), spilling a little past its edges.
   Two layers so the CSS breathing animation (scale/opacity on
   .video-glow) and the JS mouse-follow offset (translate on the
   wrap, in script.js) don't fight over the same transform. */
.video-glow-wrap {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transform: translate(0, 0);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-glow {
  position: absolute;
  inset: -6%;
  border-radius: inherit;
  background: radial-gradient(ellipse at center, rgba(152, 80, 243, 0.65) 0%, rgba(152, 80, 243, 0.28) 55%, transparent 80%);
  filter: blur(2.25rem);
  animation: video-glow-breathe 7s ease-in-out infinite;
}

@keyframes video-glow-breathe {
  0%, 100% { transform: scale(0.96); opacity: 0.7; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* border-radius: inherit would copy .hero-video-wrap's outer radius
   verbatim, but this box sits inset from that edge by the wrap's own
   padding — same radius on a smaller, inset rect reads as tighter
   than the outer ring, not concentric with it. Subtract the padding
   so the two curves actually nest. */
.hero-video {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--edge-radius) - var(--edge-pad));
  overflow: hidden;
  border: 1px solid var(--white-10);
  background: rgba(217, 217, 217, 0.02);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.hero-video-photo { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* the VSL in place of the photo once play is pressed (script.js) */
.hero-video-player { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: #060606; }
.hero-video-player[hidden] { display: none; }
.hero-video.is-playing .play-btn, .hero-video.is-playing .hero-video-photo { display: none; }

/* While the VSL plays (Timo 2026-10-31; .hero.vsl-on, script.js): the video grows a little from its top edge, so the
   gap to the pills above stays the same, and the two references step back — out to the sides, smaller, blurred,
   dimmed. Same curve both ways, so stop / click-out / end reverses it smoothly.
   The buttons below move down by exactly what the video grows (--vsl-grow, script.js), so that gap stays too.
   Cinema mode: .vsl-dim is a box the size and place of the video whose huge shadow darkens the rest of the hero
   (.hero clips it); it sits over everything, nav included, so the cards are dimmed even where they still cross
   the video's edge on their way out — no z-index swap, nothing gets cut off mid-motion. */
.hero-video-wrap, .vsl-dim {
  transform-origin: 50% 0;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero.vsl-on :is(.hero-video-wrap, .vsl-dim) { transform: translateX(-50%) scale(1.06); }
.hero-cta-row { transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.hero.vsl-on .hero-cta-row { transform: translateX(-50%) translateY(var(--vsl-grow, 0px)); }
.vsl-dim {
  position: absolute;
  z-index: 21;
  top: 41.88%;
  left: 50%;
  width: 52.73%;
  height: 36.85%;
  transform: translateX(-50%);
  border-radius: clamp(0.6rem, 1.1vw, 1.3rem);
  box-shadow: 0 0 0 200vmax rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero.vsl-on .vsl-dim { box-shadow: 0 0 0 200vmax rgba(0, 0, 0, 0.55); }
.testimonial-enter {
  transform-origin: 50% 50%;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero.vsl-on .testimonial-enter { filter: blur(3px); opacity: 0.5; }
.hero.vsl-on .testimonial-1 .testimonial-enter { transform: translateX(-40%) scale(0.86); }
.hero.vsl-on .testimonial-2 .testimonial-enter { transform: translateX(44%) scale(0.86); }

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(2.5rem, 6.6vw, 6.6rem);
  height: clamp(2.5rem, 6.6vw, 6.6rem);
  border: none;
  background: none;
  cursor: pointer;  /* the drawn arrow is gone everywhere (Timo 2026-11-04 23:00: "this cursor should never be on any site again") */
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--white-50);
  filter: blur(1.5rem);
}

.play-triangle {
  position: relative;
  width: 0;
  height: 0;
  border-top: 0.85em solid transparent;
  border-bottom: 0.85em solid transparent;
  border-left: 1.3em solid var(--white);
  font-size: clamp(0.9rem, 1.6vw, 1.5rem);
  margin-left: 0.2em;
}

/* -------------------- Testimonial cards -------------------- */

.testimonial {
  position: absolute;
  width: 17.81%;
  /* No CSS transition here: the JS forcefield loop (script.js) does its
     own rAF+lerp smoothing every frame — stacking a CSS transition on
     top would fight it, each racing to re-ease toward a target the
     other just moved. */
}

.testimonial-1 { left: 10.86%; top: 53%; }
.testimonial-2 { left: 70.47%; top: 48.72%; }

/* Page-load entrance, on its own layer again: .testimonial already has
   the JS forcefield transform and .testimonial-float already has the
   JS idle-drift transform, both continuous from frame one, so a CSS
   entrance animation on either of those would just get clobbered by
   the next JS write. This wrapper only exists to own that animation
   without competing with either. */
.testimonial-1 .testimonial-enter {
  animation: testimonial-enter-left 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
  animation-play-state: paused;
}

.testimonial-2 .testimonial-enter {
  animation: testimonial-enter-right 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both;
  animation-play-state: paused;
}

/* Ambient drift: a slow, idle wander independent of the cursor, driven
   by JS (continuous sine motion, see script.js) rather than CSS
   keyframes. Split from .testimonial (which the JS forcefield nudges
   on hover) into its own layer so the two transforms don't fight over
   the same property — same reasoning as .video-glow-wrap/.video-glow
   above. */
.testimonial-float {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.testimonial-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 456 / 269;
  --edge-radius: clamp(0.3rem, 0.5vw, 0.6rem);
  --edge-pad: clamp(0.12rem, 0.22vw, 0.25rem);
  border-radius: var(--edge-radius);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: var(--edge-pad);
}

/* border-radius: inherit would copy .testimonial-frame's outer radius
   verbatim onto this inset image, reading tighter than the outer ring
   instead of concentric with it — subtract the frame's own padding
   (plus its 1px border) so the two curves actually nest. */
.testimonial-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--edge-radius) - var(--edge-pad) - 1px);
  display: block;
  transition: transform 0.25s ease;
}

/* Non-uniform on purpose: the frame is much wider than it is tall
   (456/269), so an equal scale() on both axes shrinks width by more
   absolute px than height — the "press" reads lopsided, tighter gap
   top/bottom than left/right. Scaling y further than x by the frame's
   own aspect ratio keeps the inset even on all four sides. */
.testimonial-frame:hover .testimonial-image {
  transform: scale(0.99, 0.983);
}

.testimonial-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  font-size: clamp(0.7rem, 0.7vw, 0.85rem);
  letter-spacing: -0.02em;
  color: var(--white-50);
}

.testimonial-rating img { height: clamp(0.9rem, 1vw, 1.15rem); width: auto; }

/* -------------------- CTA row -------------------- */

.hero-cta-row {
  position: absolute;
  top: 83.2%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-start;
  gap: clamp(1.5rem, 3vw, 3rem);
  animation: hero-enter-up-centered 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1s both;
  animation-play-state: paused;
}

.cta-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 999px;
  padding: 0.85em 1.6em;
  font-size: clamp(0.85rem, 0.85vw, 1.05rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-cta:hover { transform: translateY(-1px); opacity: 0.92; }

.cta-icon { width: 1.3em; height: 1.3em; object-fit: contain; }

.btn-cta-white {
  background: var(--white);
  color: var(--bg);
  box-shadow: 0 0 25px 8px rgba(255, 255, 255, 0.55);
}

.btn-cta-violet {
  background: rgba(152, 80, 243, 0.2);
  color: var(--white);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 8px 13px rgba(0, 0, 0, 0.25), inset 4px 5px 6px rgba(152, 80, 243, 0.4), inset -1px -3px 4px rgba(152, 80, 243, 0.4);
}

.cta-note {
  font-size: clamp(0.7rem, 0.7vw, 0.85rem);
  color: var(--white-50);
}

/* ===========================================================
   References section — case-study spotlight below the hero. Built
   the same way the hero is: the whole card is one fixed-aspect-ratio
   canvas (1850×682, the source Figma frame) with every piece placed
   at that piece's own Figma rect expressed as a % of this box —
   NOT a CSS grid with independently-chosen column widths. That
   distinction matters here specifically because the content column
   in the source design doesn't start where the visual column ends;
   it starts at x=1050 while the video card's right edge reaches
   x=1248, so the two overlap in x (never in y — content's top rows
   sit above where the video card begins vertically). A grid can't
   express that overlap, and approximating it as two side-by-side
   non-overlapping columns silently hands the content column extra
   width it isn't supposed to have — which is exactly what happened:
   the headline had room to fit more per line than the source design
   intends, wrapping differently and throwing the whole rhythm off.
   Percentages keep it responsive without separate mobile positioning
   rules; mobile instead drops the whole canvas technique for a plain
   stacked flex column (see the media query below).
   =========================================================== */

.references {
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
  background: #060606;
}

/* Smaller than before on purpose, so the card renders smaller and the
   side margin grows with it — at least as much as the hero's own
   reference cards get (left:10.86%/right:11.72% of the viewport). */
.references-inner {
  max-width: 70rem;
  margin: 0 auto;
}

.reference-card {
  position: relative;
  aspect-ratio: 1850 / 682;
}

/* Visual column: left edge of the canvas to the video card's right
   edge (1248/1850 = 67.46%), full height. Internally still its own
   1248×682 sub-canvas (67.46% × 1850 = 1248, 100% × 682 = 682, so the
   math lines up exactly) — the mockup/video/social positions below
   are unchanged from that sub-canvas and don't need to be recomputed. */
.reference-visual {
  position: absolute;
  left: 0;
  top: 0;
  width: 67.46%;
  height: 100%;
}

/* Same two-layer split as .reference-video/.reference-video-inner —
   .reference-mockup is purely an outer positioning box (size, edge-
   radius/pad, cursor); the border, background, and overflow:hidden
   that actually clip the zoomed image live on .reference-mockup-inner
   below. Border color/width/radius are still the same values as
   before (testimonial-frame's stroke, .hero-video-wrap's scale), only
   which element they sit on changed — this split is what makes the
   image's hover-zoom clip exactly like .reference-video-photo's does,
   rather than sharing a box with the padding/border themselves. */
.reference-mockup {
  position: relative;
  width: 77.72%;
  height: 79.03%;
  --edge-radius: clamp(0.6rem, 1.1vw, 1.3rem);
  --edge-pad: clamp(0.2rem, 0.35vw, 0.4rem);
  border-radius: var(--edge-radius);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: var(--edge-pad);
  cursor: pointer;  /* the drawn arrow is gone everywhere (Timo 2026-11-04 23:00: "this cursor should never be on any site again") */
}

/* Purely a clip boundary for the zoomed image — no border/background
   of its own. Those stay on .reference-mockup (above), same as they
   always were, so the outer edge and the padding gap between it and
   this box still look exactly as before; this div's only job is to be
   the overflow:hidden container the image scales against, the same
   role .reference-video-inner plays for .reference-video-photo. */
.reference-mockup-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--edge-radius) - var(--edge-pad));
  overflow: hidden;
}

/* No border-radius of its own — same as .reference-video-photo, relies
   entirely on .reference-mockup-inner's own radius + overflow:hidden
   to clip it, rather than trying to match an inset radius by hand. */
.reference-mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: filter 0.35s ease, transform 0.4s ease;
}

/* Same zoom-the-image-not-the-box move as .reference-video-photo's own
   hover (.reference-mockup's overflow:hidden clips it the same way) —
   plus a slight blur, so the image itself reads as receding behind the
   darken overlay + "Live Webseite öffnen" label that also appear on
   this hover. */
.reference-mockup:hover .reference-mockup-img {
  transform: scale(1.08);
  filter: blur(3px);
}

/* Darkens the whole image on hover and surfaces a "view live site"
   label centered over it. inset:0 on a div matching the image's own
   inset (padding of .reference-mockup) rather than covering the
   frame's border — pointer-events:none since it's purely visual, the
   hover trigger is .reference-mockup itself underneath.
   Three separate, staggered motions instead of one flat opacity fade:
   the darken is a radial gradient centered on the same point the
   label sits at (so it reads as spreading from there, not just
   appearing), the label itself slides in from the left as it fades,
   and the icon lags slightly behind with its own overshoot/bounce
   easing so it doesn't move in perfect lockstep with the text. */
.reference-mockup-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 140% 110% at 50% 50%,
    rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0.18) 100%);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.reference-mockup:hover .reference-mockup-overlay {
  opacity: 1;
}

.reference-mockup-overlay-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: var(--white);
  font-size: clamp(1rem, 1.15vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  transform: translateX(-16px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.reference-mockup:hover .reference-mockup-overlay-label {
  transform: translateX(0);
  opacity: 1;
}

.reference-mockup-overlay-icon {
  width: 1em;
  height: 1em;
  object-fit: contain;
  transform: scale(0.5) rotate(-25deg);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s;
}

.reference-mockup:hover .reference-mockup-overlay-icon {
  transform: scale(1) rotate(0deg);
}

/* Mockup and video are siblings with the mockup coming first in the
   DOM, so a plain ~ sibling selector (only ever matches later
   siblings) can't reach backwards from video:hover to it — :has() on
   their shared parent is what makes that direction possible. Trades
   places with the video's own saturate(0)→saturate(1) above: hovering
   the video pulls color into it and drains color from the mockup. */
.reference-visual:has(.reference-video:hover) .reference-mockup-img {
  filter: saturate(0);
}

/* Exact match to .hero-video-wrap's glass-edge treatment on the hero
   (same --edge-radius/--edge-pad values, same glass ring + backdrop
   blur) — like .reference-mockup above, not scaled down with the rest
   of this section, so the two genuinely read as the same style. Split
   into this outer wrap + .reference-video-inner below for the same
   reason .hero-video-wrap/.hero-video are split: the outer ring sits a
   little proud of the actual content (via --edge-pad), so the inner
   box needs its own, smaller radius to stay concentric with it rather
   than just inheriting the outer curve onto a smaller box. */
.reference-video {
  position: absolute;
  left: 52.08%;
  top: 43.84%;
  width: 47.92%;
  height: 56.16%;
  --edge-radius: clamp(0.6rem, 1.1vw, 1.3rem);
  --edge-pad: clamp(0.2rem, 0.35vw, 0.4rem);
  border-radius: var(--edge-radius);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--edge-pad);
  cursor: pointer;  /* the drawn arrow is gone everywhere (Timo 2026-11-04 23:00: "this cursor should never be on any site again") */
}

.reference-video-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--edge-radius) - var(--edge-pad));
  overflow: hidden;
  border: 1px solid var(--white-10);
  background: rgba(217, 217, 217, 0.02);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.reference-video-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0);
  transform: scale(1);
  transition: filter 0.35s ease, transform 0.35s ease;
}

/* Zooms the photo itself, not its box — .reference-video-inner's own
   overflow:hidden (and its border/radius) stay exactly as they are, so
   this reads as the image pushing in behind a fixed frame rather than
   the frame growing. */
.reference-video:hover .reference-video-photo {
  filter: saturate(1);
  transform: scale(1.08);
}

.reference-video-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.9) 100%);
}

/* Play button: base is assets/icons/playbutton.png (not the hero's
   CSS-drawn glow+triangle); .reference-play-hue is a pure-CSS soft
   violet arc — about 1/6 of the ring, matching the site's --violet
   glow elsewhere — that script.js continuously rotates to face the
   cursor, like an eye. Drawn with a conic-gradient (not the old raster
   crescent asset) so it stays crisp at any size and its color/softness
   are just CSS values, not baked into a bitmap. */
.reference-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(2.5rem, 6.6vw, 6.6rem);
  height: clamp(2.5rem, 6.6vw, 6.6rem);
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;  /* the drawn arrow is gone everywhere (Timo 2026-11-04 23:00: "this cursor should never be on any site again") */
}

.reference-play-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Ring sized to ~50% of the button box, roughly matching the base
   image's own solid-circle rim so the glow reads as sitting right on
   the button's edge. The conic-gradient is a 60deg (1/6 circle) violet
   arc that fades to transparent at both ends, centered on "from -30deg"
/* playbutton_hue.png is a near-twin canvas to playbutton.png (358×358
   vs 359×359) — they're built to overlay at 100%/100%, not scaled
   relative to each other. Verified directly from the pixel data: the
   crescent's own weighted centroid sits at ~51% of the hue canvas's
   half-width, essentially matching the base's solid-circle radius at
   ~54% of its half-width — i.e. already right on the rim at native
   size. (An earlier version of this rule scaled it to 85%, calibrated
   against a since-replaced, much smaller 86×86 hue asset — that ratio
   doesn't apply to this pair.) */
.reference-play-hue {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: center center;
  object-fit: contain;
  pointer-events: none;
  transition: transform 0.25s ease-out;
}

/* Play icon (assets/icons/playbutton_icon.png — the base image no
   longer has the triangle baked in). Sized relative to the button, but
   well under the base's own ~54%-of-width circle so it doesn't crowd
   it — keeps the icon's native 40:48 aspect ratio (height = width ×
   48/40). Shrinks slightly on hover — the button's own :hover, not the
   icon's, so hovering anywhere on the button (not just directly over
   the small icon) triggers it. */
.reference-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8%;
  height: 9.6%;
  transform: translate(-50%, -50%) scale(1);
  object-fit: contain;
  pointer-events: none;
  transition: transform 0.2s ease;
}

/* Triggered by hovering the whole video box (.reference-video), not
   just the small circular button — same hover also drives the photo's
   saturation/zoom and the mockup's desaturation below, so all four
   read as one reaction to "hovering this card" rather than needing the
   cursor to land precisely on the button. */
.reference-video:hover .reference-play-icon {
  transform: translate(-50%, -50%) scale(0.88);
}

.reference-video-caption {
  position: absolute;
  left: clamp(0.667rem, 1.667vw, 1.25rem);
  bottom: clamp(0.667rem, 1.667vw, 1.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.reference-video-name {
  font-family: 'Very Vogue Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 1.667vw, 1.5rem);
  color: var(--white);
}

.reference-video-role {
  font-size: clamp(0.7rem, 0.7vw, 0.85rem);
  color: var(--white-50);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* max-width keeps this clear of .reference-video's left edge (52.08%)
   at every size — needed unconditionally now, not just at the narrow
   end: the bigger font means even the fully-capped (wide-viewport)
   size no longer reliably fits in 3.93%–52.08% on one line. flex-wrap
   is the fallback for whenever it doesn't. */
.reference-social {
  position: absolute;
  left: 3.93%;
  top: 85.63%;
  max-width: 47%;
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.4rem;
  gap: clamp(0.833rem, 1.667vw, 1.5rem);
}

.reference-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: clamp(0.7rem, 0.7vw, 0.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white-50);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.reference-social-link:hover { color: var(--white); }
.reference-social-link img { width: 0.9em; height: 0.9em; object-fit: contain; opacity: 0.5; }

/* Content column: x=1050 to the canvas edge, i.e. left 56.76%, width
   43.24% (800/1850) — see the section-level note above for why this
   is an absolutely-positioned block rather than a grid column. Each
   child below is positioned the same way, but with left/width now
   expressed as a % of THIS box's own 800px-equivalent span (top stays
   a % of the full 682 canvas height, since this box's height:100%
   already matches the card's). display:flex only matters at the
   mobile breakpoint, where these children switch to position:static —
   at desktop it's inert since position:absolute children ignore it. */
/* This box is 43.24% × 100% of the card but only a fraction of that is
   actually visible content — the rest is transparent space around the
   tag/headline/stats/actions. Left at default pointer-events, that
   empty space still intercepts hover, which — since this box sits
   later in the DOM than .reference-visual and their edges overlap —
   silently ate hover over the right portion of the video card
   underneath it (.reference-video:hover never matched there, so
   nothing in the "hover the whole video box" effect fired). Blocking
   pointer-events here and restoring it just on the actual content
   below lets hover pass through the empty area to whatever's behind it. */
.reference-content {
  position: absolute;
  left: 56.76%;
  top: 0;
  width: 43.24%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3.333vw, 1.667rem);
  pointer-events: none;
}

.reference-tag-row,
.reference-headline,
.reference-stats,
.reference-actions {
  pointer-events: auto;
}

.reference-tag-row {
  position: absolute;
  left: 0;
  right: 0;
  top: 4.25%;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.reference-tag { padding: 0.85em 1.6em; font-size: clamp(0.7rem, 0.7vw, 0.85rem); }
.reference-tag-note { font-size: clamp(0.7rem, 0.7vw, 0.85rem); color: var(--white-50); }

.reference-headline {
  position: absolute;
  left: 0;
  top: 14.52%;
  width: 96.88%;
  margin: 0;
  font-size: clamp(1.583rem, 2.583vw, 2.667rem);
  font-weight: 500;
  line-height: 0.98em;
  letter-spacing: -0.02em;
}

/* Indented from the tag/headline, matching the source design's rhythm. */
/* right:0 (not an explicit width) so this is actually constrained to
   the content box's remaining space at every size — without it, this
   is hug-content width with nothing stopping it from overflowing past
   the card's right edge once the two stats + labels no longer fit
   the intended span, which happens well before the mobile breakpoint. */
.reference-stats {
  position: absolute;
  left: 31.3%;
  right: 0;
  top: 43.84%;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.042rem, 3.333vw, 1.25rem);
}

/* max-width forces the small subline ("6-10 zusätzliche Anfragen p.M.")
   to wrap onto a second line rather than dictate the row's width — it's
   the widest thing in here (wider even than the big number above it),
   since nothing was constraining it to less than its own natural
   single-line width. Without this, .reference-stats' flex-wrap safety
   valve (which exists so "700%"/"7k" wrap onto separate lines if they
   ever don't fit) kept getting triggered by this instead — which,
   critically, isn't the same failure: THAT wrap makes the whole row
   taller with nothing downstream accounting for it, colliding with
   .reference-actions below. Wrapping just the subline avoids ever
   reaching that state. */
.reference-stat { display: flex; flex-direction: column; gap: 0.5rem; max-width: none; white-space: nowrap; }

.reference-stat-value {
  font-size: clamp(2rem, 3.5vw, 3.333rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.94em;
  color: var(--violet);
  text-shadow: 0 0 30px rgba(152, 80, 243, 0.6), 0 0 60px rgba(152, 80, 243, 0.35);
}

.reference-stat-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: clamp(0.85rem, 0.9vw, 1.05rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--white);
}

.reference-stat-label small {
  font-size: clamp(0.7rem, 0.7vw, 0.85rem);
  font-weight: 400;
  color: var(--white-50);
}

.reference-actions {
  position: absolute;
  left: 31.3%;
  right: 0;
  top: 73%;
  display: flex;
  align-items: center;
  gap: clamp(0.833rem, 1.667vw, 1.333rem);
  flex-wrap: wrap;
}

.btn-reference-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  color: var(--bg);
  border-radius: 0.75rem;
  padding: 0.9em 1.4em;
  font-size: clamp(0.7rem, 0.7vw, 0.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-reference-primary:hover { transform: translateY(-1px); opacity: 0.92; }

/* The source icon is a white PNG (shared with .reference-social-link's
   "Live Website ansehen" use on the dark background) — invert it just
   here so it reads on this button's white background instead of
   vanishing into it. */
.btn-reference-primary .cta-icon { width: 1.1em; height: 1.1em; object-fit: contain; filter: invert(1); }

.reference-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: clamp(0.7rem, 0.7vw, 0.85rem);
  color: var(--white-50);
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.reference-link:hover { color: var(--white); }
.reference-link-icon { width: 1em; height: 1em; object-fit: contain; filter: saturate(0) brightness(20); }

/* ===========================================================
   Statement & Testimonials — headline + client-logo marquee on
   top (.statement-top, contained by a max-width/padded row, so
   both sit inset from the screen edges like the Figma comp),
   then a full-bleed testimonial/case-study marquee below it.

   Both marquees share the same trick: the track's item list is
   literally duplicated once (see index.html — every card/logo
   appears twice, second copy aria-hidden), so the track is
   exactly double the width of one full set. Animating it from
   translateX(0) to translateX(-50%) then snapping back to 0 is
   an invisible loop, because the pixels at -50% are identical to
   the pixels at 0 — no jump-cut. Edge fade is two gradient-to-bg
   overlays (::before/::after below), not mask-image — a mask's
   gradient tiles by default wherever the track overflows the
   masked box, re-triggering the fade every one box-width of
   scroll instead of just at the true edges.
   =========================================================== */

.statement {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3rem, 6vw, 5rem);
  background: #060606;
  overflow: hidden;
}

.statement-top {
  max-width: 84rem;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(3rem, 7vw, 7rem);
}

.statement-headline {
  flex-shrink: 0;
  margin: 0;
  font-size: clamp(1.75rem, 3.34vw, 3rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* flex:1 with min-width:0 is what lets this shrink below the
   track's own max-content width instead of forcing the row wider
   — overflow:hidden then has an actual boundary to clip against,
   and the two fade pseudo-elements below (::before/::after) have
   an actual box edge to anchor to. */
.logo-marquee {
  position: relative;
  flex: 1 1 24rem;
  min-width: 0;
  overflow: hidden;
}

.logo-marquee::before,
.logo-marquee::after,
.testimonial-marquee::before,
.testimonial-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(2rem, 6vw, 5rem);
  pointer-events: none;
  z-index: 2;
}

.logo-marquee::before,
.testimonial-marquee::before { left: 0; background: linear-gradient(90deg, #060606, rgba(6, 6, 6, 0)); }

.logo-marquee::after,
.testimonial-marquee::after { right: 0; background: linear-gradient(270deg, #060606, rgba(6, 6, 6, 0)); }

.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(2.25rem, 4vw, 3.75rem);
  width: max-content;
  animation: marquee-scroll 30s linear infinite reverse;
}

/* Pausing on hover of the viewport (not the track) so moving the
   cursor onto any single logo doesn't require re-aiming as the
   track keeps sliding underneath it. */
.logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logo-marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: clamp(1.35rem, 1.7vw, 1.9rem);
  opacity: 0.4;
  filter: grayscale(1) brightness(3.5);
  transition: opacity 0.25s ease;
}

.logo-marquee-item:hover { opacity: 0.85; }

/* Per-logo overrides, back again — a uniform height (one earlier
   pass) matches overall asset bounding-box height, but that's not
   the same as matching perceived size: Red Arcs' crescent icon is
   taller than its own "RED ARCS" wordmark, so scaling the whole
   asset to the same bbox height as e.g. Objectbay leaves its actual
   text noticeably smaller — same story for the OG Fitness Club
   mark, whose "FITNESS CLUB" line sits small under the icon+"OG".
   These values are calibrated by eye against the rendered wordmark
   size, not against raw asset/bbox height. */
.logo-mark { display: block; width: auto; height: clamp(0.95rem, 1.2vw, 1.35rem); object-fit: contain; }
.logo-mark-redarcs { height: clamp(1.35rem, 1.7vw, 1.9rem); }
.logo-mark-peakpv { height: clamp(1.05rem, 1.35vw, 1.5rem); }
.logo-mark-lidauermedia { height: clamp(0.85rem, 1.05vw, 1.2rem); }   /* wide wordmark (2026-11-11) */

/* ---- Testimonial / case-study marquee ---- */

.testimonial-marquee {
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  width: 100%;
  overflow: hidden;
}

/* No animation shorthand here — unlike .logo-marquee-track, this
   one's motion (auto-scroll AND drag) is driven entirely by JS
   (script.js), because a plain CSS @keyframes loop has no way to
   also respond to a pointer drag mid-animation. cursor: grab is
   the drag affordance; script.js swaps it to grabbing while a drag
   is active and adds .is-dragging (see there) to disable text
   selection for the duration of the drag. */
.testimonial-marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 1.8vw, 1.6rem);
  width: max-content;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  cursor: grab;
  touch-action: pan-y;
}

.testimonial-marquee.is-dragging .testimonial-marquee-track {
  cursor: grabbing;
  user-select: none;
}

/* Shared "glass edge" three-layer structure for both card types,
   same as .hero-video-wrap/.reference-video — an outer box (this
   rule) whose padding is the visible frame ring, a middle .*-frame
   that's the actual overflow:hidden clip boundary (border + radius
   + shadow), and an inner .*-inner that holds the content. Widths
   differ on purpose: the Figma reference has quote cards as a
   short, wide banner (655×200) and case cards closer to 16:9
   (655×366) — matching case-card's width would starve the quote
   card's 3-line copy of the room its own, wider aspect ratio gives
   it in the source design.

   The lit-edge sheen itself is the shared .glass-edge class (see
   its ::before rule near the top of the file) — same class as
   .hero-video-wrap/.reference-video, not a reimplementation, so
   the ring genuinely matches rather than just approximating it.
   .glass-edge::before is absolutely positioned, so this rule (its
   host) needs position: relative for that to anchor correctly. */
.quote-card,
.case-card {
  position: relative;
  flex-shrink: 0;
  --edge-radius: clamp(0.6rem, 1.1vw, 1.3rem);
  --edge-pad: clamp(0.2rem, 0.35vw, 0.4rem);
  border-radius: var(--edge-radius);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--edge-pad);
}

/* Quote card height is intrinsic (content-hugging), NOT the
   655:200 aspect-ratio the Figma frame uses — that ratio is tuned
   to Figma's own placeholder copy, and at this card's real (much
   wider, see above) width it reserved noticeably more height than
   any of the three real quotes actually need, leaving a visible
   empty band under the text. Hugging content means each card is
   exactly as tall as its own copy requires — the three still read
   as one family since they share width and padding, just not a
   forced-identical height. */
.quote-card { width: clamp(26rem, 40vw, 36rem); }
.case-card { width: clamp(25rem, 42vw, 31rem); aspect-ratio: 655 / 366; }

.quote-card-frame,
.case-card-frame {
  position: relative;
  width: 100%;
  border-radius: calc(var(--edge-radius) - var(--edge-pad));
  overflow: hidden;
  border: 1px solid var(--white-10);
  background: rgba(217, 217, 217, 0.02);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.case-card-frame { height: 100%; }

.quote-card-inner,
.case-card-inner {
  position: relative;
  width: 100%;
}

.case-card-inner { height: 100%; }

/* Quote cards have no photo to zoom, so the "zoom the inner layer,
   not the frame" move from .reference-video applies to the whole
   inner layer instead — a subtle scale (1.03) since it's carrying
   legible text, not just imagery, and doesn't want to blur.

   Case cards zoom ONLY .case-card-photo (below), matching
   .reference-video-photo exactly — the rating pill, logo, and
   quote overlay are siblings of the photo inside .case-card-inner,
   not scaled with it, so they stay put while just the photo pushes
   in behind them. */
.quote-card-inner { transform: scale(1); transition: transform 0.4s ease; }
.quote-card:hover .quote-card-inner { transform: scale(1.03); }

/* padding-block noticeably smaller than padding-inline, matching
   the tight top/bottom margins in the Figma reference now that the
   card's height is intrinsic to this content (see .quote-card
   above) rather than a fixed box the content had to be centered
   or top-anchored within. */
.quote-card-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(0.5rem, 0.9vw, 0.75rem);
  padding: clamp(0.65rem, 1.1vw, 0.9rem) clamp(1.1rem, 1.8vw, 1.4rem);
}

/* Rating + author name on one row (per the Figma reference — they
   sit side by side, not stacked), with the quote text below. */
.quote-card-top {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1vw, 0.9rem);
  flex-wrap: wrap;
}

.quote-card-rating { display: block; flex-shrink: 0; height: clamp(1.05rem, 1.4vw, 1.3rem); width: auto; }
.quote-card-rating img { height: 100%; width: auto; display: block; }

.quote-card-author {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-width: 0;
  font-size: clamp(0.72rem, 0.85vw, 0.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white-70);
  transition: color 0.2s ease;
}

.quote-card-author:hover { color: var(--white); }

/* Points up-right at 45° — the standard "opens elsewhere" link cue
   — not the arrow glyph's own native rightward orientation. */
.quote-card-author-arrow {
  width: 0.7em;
  height: 0.7em;
  object-fit: contain;
  opacity: 0.6;
  flex-shrink: 0;
  transform: rotate(-45deg);
}

.quote-card-text {
  margin: 0;
  font-size: clamp(0.8rem, 0.95vw, 0.95rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--white-70);
  /* Clamped to 3 lines as a safety cap — the three source quotes
     differ enough in length that, without this, the longest could
     still push a card noticeably taller than its siblings. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Resting value is a permanent tighter crop to match the Figma
     reference frame (its source photos are placed noticeably
     closer-in than a plain object-fit: cover of the raw frame
     would give); hover pushes in a bit further from there — same
     "zoom only the photo, not the frame around it" move as
     .reference-video-photo. The rating pill / logo / quote text
     are siblings, not descendants, of this element, so they never
     inherit this transform. */
  transform: scale(1.22);
  transition: transform 0.4s ease;
}

.case-card:hover .case-card-photo { transform: scale(1.32); }

.case-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.85) 100%);
}

.case-card-rating {
  position: absolute;
  left: clamp(0.85rem, 1.5vw, 1.15rem);
  top: clamp(0.85rem, 1.5vw, 1.15rem);
  height: clamp(1.3rem, 1.8vw, 1.6rem);
}

.case-card-rating img { height: 100%; width: auto; display: block; }

.case-card-logo {
  position: absolute;
  right: clamp(0.85rem, 1.5vw, 1.15rem);
  top: clamp(0.95rem, 1.7vw, 1.3rem);
  height: clamp(0.65rem, 0.9vw, 0.8rem);
  width: auto;
  object-fit: contain;
}

.case-card-logo-redarcs { height: clamp(0.75rem, 1vw, 0.9rem); }

.case-card-quote {
  position: absolute;
  left: clamp(0.85rem, 1.5vw, 1.15rem);
  right: clamp(0.85rem, 1.5vw, 1.15rem);
  bottom: clamp(0.85rem, 1.5vw, 1.15rem);
  margin: 0;
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--white);
}

@media (max-width: 720px) {
  .statement-top { flex-direction: column; align-items: stretch; text-align: center; }
  .statement-headline { text-align: center; }
  .logo-marquee { flex: none; width: 100%; }
}

/* -------------------- Responsive (stacked mobile layout) -------------------- */

/* .reference-card gets its own, wider stacking breakpoint — separate
   from the hero's 980px one below — because the two-column fixed
   canvas breaks down well before 980px. It's not just the social row
   (handled above): .reference-stats and .reference-actions are each
   right:0-to-left:36.63%-anchored, and once that shrinks enough that
   "700%"/"7k" no longer fit side by side, they wrap — but wrapping
   makes .reference-stats taller, and .reference-actions below it is
   at a fixed top:69.06% that doesn't know that happened, so the two
   collide. Stacking early avoids the cramped zone instead of trying
   to make it survive being cramped. */
@media (max-width: 1200px) {
  .reference-card {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: clamp(1.667rem, 5vw, 2.5rem);
    text-align: center;
  }

  .reference-visual {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    aspect-ratio: 1248 / 682;
  }

  .reference-content {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
  }

  .reference-tag-row,
  .reference-headline,
  .reference-stats,
  .reference-actions {
    position: static;
    left: auto;
    top: auto;
    right: auto;
    width: 100%;
  }

  /* the company pill and its note always on two lines on a phone (2026-11-12: Trilogy's shorter pill put the note beside it) */
  .reference-tag-row { justify-content: center; flex-direction: column; gap: .55rem; }
  .reference-stats { justify-content: center; }
  .reference-stat { align-items: center; }
  .reference-actions { justify-content: center; }
}

@media (max-width: 980px) {
  .hero {
    aspect-ratio: auto;
    padding-top: 4.5rem;
    padding-bottom: 3rem;
  }

  .hero-bg { left: -30%; top: -10%; width: 160%; height: 120%; }
  .hero-glow { left: 10%; top: 30%; width: 80%; height: 25%; }

  .hero-content {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    padding: 0 1.25rem;
    text-align: center;
  }

  .site-nav { position: static; height: auto; padding: 0.75rem 1.25rem; }
  .nav-inner { flex-wrap: wrap; justify-content: center; gap: 1rem; row-gap: 0.75rem; }
  .nav-links { flex-wrap: wrap; justify-content: center; }

  .hero-badge, .hero-headline, .hero-sub, .hero-pills, .hero-video-wrap, .hero-cta-row {
    position: static;
    left: auto; top: auto; transform: none;
    width: 100%;
    max-width: 100%;
  }

  .hero-pills { flex-wrap: wrap; justify-content: center; }

  .hero-video-wrap { position: relative; aspect-ratio: 1350 / 776; }
  .hero.vsl-on .hero-video-wrap, .hero.vsl-on .hero-cta-row { transform: none; }  /* full width already: no grow */
  .vsl-dim { display: none; }

  .testimonial { display: none; }

  .hero-cta-row { flex-direction: column; align-items: center; }
}

/* Kept at the very end of the file on purpose: every element below has
   its own `animation:` shorthand declared in its own rule elsewhere
   above, and that shorthand resets animation-play-state to its default
   (running) wherever it's written — so this override only reliably
   wins if it's the LAST `animation` declaration in source order for
   each of these selectors, not just the most specific one. */
@media (prefers-reduced-motion: reduce) {
  .site-nav, .hero-badge, .hero-headline, .hero-sub, .hero-pills,
  .hero-video-wrap, .testimonial-enter, .hero-cta-row,
  .logo-marquee-track {
    animation: none;
  }
  .hero-video-wrap, .testimonial-enter, .hero-cta-row, .vsl-dim { transition: none; }
  /* .testimonial-marquee-track has no CSS animation to cancel — its
     auto-scroll is JS-driven (script.js), which checks this same
     media query itself and skips the idle drift (dragging still
     works either way). */
}

/* two-tone headlines (Timo 2026-11-04, instead of the white-to-grey gradient on the Dein Problem, 87 %, Leistungsumfang
   and FAQ headlines): one part at full white, the part in .hl-dim at half, chosen so the bright part carries the point */
.hl-dim { color: rgba(247, 248, 248, .5); }

/* Red Arcs + Objectbay case cards show a picture of the brand, not the site (Timo 2026-11-09 23:29): Red Arcs' arcs from
   their own image set, Objectbay's line drawing on black; no tighter crop, a slight push on hover */
.case-card-photo.case-card-brand { transform: none; }
.case-card:hover .case-card-photo.case-card-brand { transform: scale(1.05); }
/* the Red Arcs mark reads too small next to the stars (Timo 2026-11-09 23:29) */
.case-card .case-card-logo.case-card-logo-redarcs { height: clamp(1.1rem, 1.5vw, 1.35rem); }

/* "Mehr Referenzen" under the testimonial marquee: a quiet text link, not a button */
.tm-more { margin: clamp(1.4rem, 2.6vw, 2rem) 0 0; text-align: center; }
.tm-more a { display: inline-flex; align-items: center; gap: .4em; font-size: 14px; letter-spacing: -.01em; color: rgba(255, 255, 255, .45); text-decoration: none; padding: 6px 2px; border-bottom: 1px solid rgba(255, 255, 255, .12); transition: color .25s ease, border-color .25s ease; }
.tm-more a span { transition: transform .25s ease; }
.tm-more a:hover { color: rgba(255, 255, 255, .85); border-color: rgba(255, 255, 255, .35); }
.tm-more a:hover span { transform: translateX(3px); }

/* Nav items that are not built yet: greyed, not clickable (Timo 2026-11-11 12:46) */
.dropdown-link.is-soon, .dropdown-resource-card.is-soon { opacity: .32; cursor: default; pointer-events: none; }

/* Socials panel: three cards like the highlight cards; logo on top, what to expect, the username (Timo 2026-11-11 12:46) */
.dropdown-panel[data-panel="socials"] { padding: 1rem; }
.dropdown-socials { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.dropdown-social.dropdown-feature { margin: 0; padding: 1.25rem; gap: .45rem; justify-content: flex-start; }
.dropdown-social .ds-wordmark { display: block; width: auto; height: 1.5rem; margin-bottom: auto; align-self: flex-start; }   /* the written logo, no box (Timo 2026-11-12 12:09) */
.dropdown-social .ds-wm-instagram { height: 2rem; margin-top: -.15rem; }
.dropdown-social .ds-wordmark + .ds-txt { margin-top: 1.5rem; }
.dropdown-social strong { font-size: 1.05rem; font-weight: 500; letter-spacing: -.02em; color: var(--white); margin-top: 1.25rem; }
.dropdown-social .ds-txt { font-size: .78rem; line-height: 1.4; letter-spacing: -.01em; color: var(--white-50); }
.dropdown-social .ds-user { font-size: .72rem; letter-spacing: -.01em; color: rgba(255,255,255,.38); margin-top: .35rem; }

/* the two cards beside the VSL open their case study (Timo 2026-11-12 22:51) */
a.testimonial-float { color: inherit; text-decoration: none; cursor: pointer; }
