/* OEAF hero — style produkcyjne */
#oeaf-svg-metaballs,
  #oeaf-svg-metaballs * {
    box-sizing: border-box;
  }

  #oeaf-svg-metaballs {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 32rem;
    overflow: hidden;
    background: #000;
    cursor: auto;
    isolation: isolate;
    contain: layout paint;
    touch-action: pan-y;
  }

  @media (hover: hover) and (pointer: fine) {
    #oeaf-svg-metaballs.oeaf-is-interactive {
      cursor: none;
    }
  }

  #oeaf-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 2;
    pointer-events: none;
  }

  #oeaf-bg-media,
  .oeaf-bg-html,
  #oeaf-bg-image {
    width: 100%;
    height: 100%;
  }

  .oeaf-bg-html {
    overflow: hidden;
    background: transparent;
  }

  #oeaf-bg-image {
    display: block;
    max-width: none;
    object-fit: cover;
    object-position: var(--oeaf-hero-position-desktop, center center);
  }

  #oeaf-stage-lite {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  .oeaf-mobile-source {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    display: block;
    width: 2px;
    height: 2px;
    opacity: 0.001;
    pointer-events: none;
  }

  #oeaf-svg-metaballs.oeaf-webkit-lite .oeaf-mobile-source {
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    object-fit: cover;
    object-position: var(--oeaf-hero-position-mobile, center center);
  }

  @media (max-width: 1024px) {
    #oeaf-bg-image { object-position: var(--oeaf-hero-position-tablet, center center); }
  }

  @media (max-width: 767px) {
    #oeaf-bg-image { object-position: var(--oeaf-hero-position-mobile, center center); }
  }

  #oeaf-svg-metaballs.oeaf-webkit-lite #oeaf-stage {
    display: none;
  }

  #oeaf-svg-metaballs.oeaf-webkit-lite #oeaf-stage-lite {
    display: block;
  }

  #oeaf-svg-metaballs.oeaf-webkit-lite .oeaf-svg-logo-fill {
    z-index: 4;
  }

  .oeaf-hero-title {
    margin: 0;
    font: inherit;
  }

  .oeaf-svg-logo {
    position: absolute;
    left: 50%;
    top: 45.5%;
    width: 25vw;
    max-width: 395px;
    height: auto;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    pointer-events: none;
    user-select: none;
    overflow: visible;
    color: #fff;
  }

  #oeaf-svg-metaballs.oeaf-is-running .oeaf-svg-logo {
    will-change: transform, opacity;
  }

.oeaf-svg-logo-fill {
  z-index: 1;
  fill: currentColor;
}

  .oeaf-svg-logo-outline {
    z-index: 8;
    fill: none;
    stroke: currentColor;
    stroke-width: 4.2;
    stroke-linejoin: round;
    stroke-linecap: round;
    opacity: 0.96;
    vector-effect: non-scaling-stroke;
  }

  .oeaf-scroll-cue {
    position: absolute;
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    left: 50%;
    z-index: 12;
    display: block;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    appearance: none;
    box-shadow: none;
    transform: translateX(-50%);
  }

  .oeaf-scroll-cue::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 31px;
    height: 31px;
    border: 1.35px solid currentColor;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.76);
    transform: translate(-50%, -50%);
    animation: oeaf-scroll-breath 3.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }

  .oeaf-scroll-cue::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.86);
    animation: oeaf-scroll-ring 3.8s cubic-bezier(0.2, 0.72, 0.2, 1) infinite;
  }

  .oeaf-scroll-cue:hover {
    color: #000;
  }

  .oeaf-scroll-cue:hover::before {
    background: #fff;
  }

  .oeaf-scroll-cue:hover::after {
    border-color: #fff;
  }

  .oeaf-scroll-cue:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
  }

  .oeaf-scroll-wheel {
    display: none;
  }

  .oeaf-scroll-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translate(-50%, -62%) rotate(45deg);
    animation: oeaf-scroll-arrow 3.8s cubic-bezier(0.2, 0.75, 0.2, 1) infinite;
  }

  .oeaf-scroll-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    width: max-content;
    max-width: 12rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid #fff;
    border-radius: 999px;
    background: #000;
    color: #fff;
    font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity 120ms linear, transform 120ms linear;
  }

  .oeaf-scroll-cue:hover .oeaf-scroll-tooltip,
  .oeaf-scroll-cue:focus-visible .oeaf-scroll-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  #oeaf-svg-metaballs:not(.oeaf-is-running) .oeaf-scroll-wheel,
  #oeaf-svg-metaballs:not(.oeaf-is-running) .oeaf-scroll-arrow,
  #oeaf-svg-metaballs:not(.oeaf-is-running) .oeaf-scroll-cue::before,
  #oeaf-svg-metaballs:not(.oeaf-is-running) .oeaf-scroll-cue::after {
    animation-play-state: paused;
  }

  @keyframes oeaf-scroll-arrow {
    0%, 100% {
      opacity: 0.62;
      transform: translate(-50%, -72%) rotate(45deg);
    }
    50% {
      opacity: 1;
      transform: translate(-50%, -48%) rotate(45deg);
    }
  }

  @keyframes oeaf-scroll-breath {
    0%, 100% { transform: translate(-50%, -50%) scale(0.96); }
    50% { transform: translate(-50%, -50%) scale(1.035); }
  }

  @keyframes oeaf-scroll-ring {
    0% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.82);
    }
    42% {
      opacity: 0.64;
    }
    100% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(1.08);
    }
  }

  @media (max-width: 768px), (hover: none) and (pointer: coarse) {
    #oeaf-svg-metaballs {
      height: 90vh;
      height: 90svh;
      cursor: auto;
    }

    .oeaf-svg-logo {
      width: 66vw;
      top: 48%;
    }

    .oeaf-svg-logo-outline {
      stroke-width: 1.8;
    }

    .oeaf-scroll-cue {
      bottom: max(0.875rem, env(safe-area-inset-bottom));
    }
  }

  html[data-oeaf-motion="reduce"] #oeaf-svg-metaballs {
    cursor: auto;
  }

  html[data-oeaf-motion="reduce"] #oeaf-svg-metaballs .oeaf-svg-logo {
    will-change: auto;
  }

  html[data-oeaf-motion="reduce"] .oeaf-scroll-wheel,
  html[data-oeaf-motion="reduce"] .oeaf-scroll-arrow,
  html[data-oeaf-motion="reduce"] .oeaf-scroll-cue::before,
  html[data-oeaf-motion="reduce"] .oeaf-scroll-cue::after {
    animation: none;
    opacity: 1;
  }

  html[data-oeaf-motion="reduce"] .oeaf-scroll-wheel {
    transform: translate(-50%, 4px);
  }

  html[data-oeaf-motion="reduce"] .oeaf-scroll-arrow {
    transform: translate(-50%, -62%) rotate(45deg);
  }

  html[data-oeaf-motion="reduce"] .oeaf-scroll-tooltip {
    transition: none;
  }

  @media (prefers-reduced-motion: reduce) {
    html:not([data-oeaf-motion]) #oeaf-svg-metaballs {
      cursor: auto;
    }

    html:not([data-oeaf-motion]) #oeaf-svg-metaballs .oeaf-svg-logo {
      will-change: auto;
    }

    html:not([data-oeaf-motion]) .oeaf-scroll-wheel,
    html:not([data-oeaf-motion]) .oeaf-scroll-arrow,
    html:not([data-oeaf-motion]) .oeaf-scroll-cue::before,
    html:not([data-oeaf-motion]) .oeaf-scroll-cue::after {
      animation: none;
      opacity: 1;
    }

    html:not([data-oeaf-motion]) .oeaf-scroll-wheel {
      transform: translate(-50%, 4px);
    }

    html:not([data-oeaf-motion]) .oeaf-scroll-arrow {
      transform: translate(-50%, -62%) rotate(45deg);
    }

    html:not([data-oeaf-motion]) .oeaf-scroll-tooltip {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .oeaf-scroll-cue,
    .oeaf-scroll-tooltip {
      forced-color-adjust: auto;
    }
  }
