/* Hero home — #gora (components-map priority 1) */
.ax-hero {
  position: relative;
  min-height: 100svh;
  background: var(--ax-ink);
  overflow: hidden;
  color: var(--ax-paper);
}

/* LCP text uses system UI until html.is-ax-fonts — avoids webfont delaying LCP. */
.ax-hero__title,
.ax-hero__lead {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
html.is-ax-fonts .ax-hero__title,
html.is-ax-fonts .ax-hero__lead {
  font-family: var(--ax-font);
}

.ax-hero__parallax {
  position: absolute;
  top: -8%;
  left: 0;
  right: 0;
  height: 116%;
  will-change: transform;
}

.ax-hero__media,
.ax-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ax-hero__grad-a {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(20, 24, 51, 0.86) 0%, rgba(20, 24, 51, 0.4) 52%, rgba(20, 24, 51, 0.24) 100%);
  pointer-events: none;
}

.ax-hero__grad-b {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 24, 51, 0.7) 0%, transparent 34%);
  pointer-events: none;
}

.ax-hero__inner {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 132px var(--ax-gutter) 0;
  pointer-events: none;
}

.ax-hero__shell {
  max-width: var(--ax-maxw);
  width: 100%;
  margin: 0 auto;
  padding-bottom: clamp(64px, 9.5vh, 132px);
  pointer-events: none;
}

.ax-hero__title {
  position: relative;
  z-index: 3;
  margin: 0 0 clamp(-46px, -3.4vh, -26px);
  color: var(--ax-paper);
  font-weight: 600;
  font-size: clamp(48px, 8.4vw, 152px);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

/*
 * Home desktop: pull the glass under the italic line so glyph ink sits on
 * the frost (O nas already reads this way; home’s 3-line stack left a gap
 * because the old -3.4vh only ate line-box padding below the letters).
 */
@media (min-width: 901px) {
  .ax-hero--home .ax-hero__title {
    margin-bottom: clamp(-64px, -5.8vh, -46px);
  }

  .ax-hero--home .ax-hero__line--italic {
    overflow: visible;
    position: relative;
    z-index: 4;
  }

  .ax-hero--home .ax-hero__card {
    z-index: 1;
  }
}

.ax-hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.ax-hero__line--italic {
  padding-left: clamp(40px, 16vw, 300px);
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

/* Reference home: riseIn under overflow mask (transform only). */
.ax-hero__line-inner {
  display: block;
  animation: ax-riseIn 1.15s cubic-bezier(.16, 1, .3, 1) both;
}

.ax-hero__line:nth-child(1) .ax-hero__line-inner {
  animation-delay: .95s;
}

.ax-hero__line:nth-child(2) .ax-hero__line-inner {
  animation-delay: 1.08s;
}

.ax-hero__line:nth-child(3) .ax-hero__line-inner {
  animation-delay: 1.21s;
}

.ax-hero__line--italic .ax-hero__line-inner {
  font-weight: 400;
  font-style: italic;
  font-size: 1.02em;
  letter-spacing: -0.02em;
}

.ax-hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(18px, 2.4vw, 40px);
}

.ax-hero__card {
  position: relative;
  opacity: 0;
  animation: ax-glassIn 1s cubic-bezier(.16, 1, .3, 1) 1.5s forwards;
  pointer-events: auto;
  flex: 1 1 min(540px, 100%);
  max-width: 600px;
  border-radius: 14px;
  background: rgba(20, 24, 51, 0.34);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: clamp(24px, 2.6vw, 40px);
  color: var(--ax-paper);
  isolation: isolate;
}

/* W23-A6 — static veil under glass text (strength 0 until owner picks variant) */
.ax-hero__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(20, 24, 51, var(--ax-hero-veil, 0));
  pointer-events: none;
  z-index: 0;
}
.ax-hero__card > * {
  position: relative;
  z-index: 1;
}

.ax-hero__card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(244, 241, 235, 0.2);
  padding-bottom: 16px;
  margin-bottom: 20px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 241, 235, 0.6);
}

.ax-hero__lead {
  margin: 0 0 28px;
  font-weight: 400;
  font-size: 17.5px;
  line-height: 1.66;
  letter-spacing: -0.004em;
  max-width: 52ch;
  color: rgba(244, 241, 235, 0.86);
  text-wrap: pretty;
}

.ax-hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.ax-hero__cta {
  border-radius: 10px;
  padding: 17px 26px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background 380ms ease, color 380ms ease, border-color 380ms ease;
  text-decoration: none;
}

.ax-hero__cta--primary {
  background: var(--ax-paper);
  color: var(--ax-ink);
}

@media (hover: hover) and (pointer: fine) {
.ax-hero__cta--primary:hover {
  background: var(--ax-steel);
  color: var(--ax-ink);
}
}


.ax-hero__cta--ghost {
  border: 1px solid rgba(244, 241, 235, 0.4);
  color: var(--ax-paper);
  background: transparent;
}

@media (hover: hover) and (pointer: fine) {
.ax-hero__cta--ghost:hover {
  background: rgba(244, 241, 235, 0.12);
  border-color: var(--ax-paper);
  color: var(--ax-paper);
}
}


.ax-hero__coords {
  opacity: 0;
  animation: ax-softIn 1s ease 1.8s forwards;
  margin-left: auto;
  align-self: flex-end;
  padding-bottom: 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  color: rgba(244, 241, 235, 0.82);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: right;
  text-shadow: 0 1px 12px rgba(20, 24, 51, 0.55);
}

.ax-hero__coords-geo,
.ax-hero__coords-scroll {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

@keyframes ax-hero-soft {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ax-hero__coords-rule {
  width: 1px;
  height: 38px;
  background: rgba(244, 241, 235, 0.5);
  display: block;
  margin: 6px 0 2px;
}

@media (max-width: 900px) {
  .ax-hero__parallax {
    position: absolute;
    inset: 0;
    top: 0;
    height: 100%;
    transform: none !important;
    will-change: auto;
  }

  /* W23-A1.3 — content starts below fixed nav (82px) */
  .ax-hero__inner {
    padding-top: calc(var(--ax-navh) + 28px);
  }

  .ax-hero__line--italic {
    padding-left: 0;
  }

  h1.ax-hero__title {
    margin-bottom: 32px; /* breathing room before frozen card */
  }

  /* W23-B3 — meta stacked, full width (no city wrap) */
  .ax-hero__card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ax-hero__card-meta > span {
    white-space: normal;
    max-width: 100%;
  }

  /* W23-B4 — CTAs full width, equal, touch >= 44 */
  .ax-hero__cta-row {
    flex-direction: column;
    gap: 10px; /* DOBIERZ middle (8/10/14) */
    width: 100%;
  }

  .ax-hero__cta {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    box-sizing: border-box;
  }

  /*
   * Mobile footer of hero: coords in one row on the right,
   * scroll cue on the left — cuts stacked dead height.
   */
  .ax-hero__row {
    width: 100%;
  }

  /*
   * Home mobile: park PRZEWIŃ + coords near the section bottom.
   * Desktop shell pad (9.5vh) left a dead band under the cue.
   */
  .ax-hero--home .ax-hero__shell {
    padding-bottom: max(22px, calc(12px + env(safe-area-inset-bottom, 0px)));
  }

  .ax-hero--home .ax-hero__inner {
    padding-bottom: 0;
  }

  .ax-hero--home .ax-hero__coords {
    padding-bottom: 0;
  }

  .ax-hero__coords {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-right: 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    text-align: left;
  }

  .ax-hero__coords-scroll {
    order: -1;
    align-items: flex-start;
    gap: 4px;
  }

  .ax-hero__coords-geo {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: baseline;
    gap: 14px 18px;
    text-align: right;
  }

  .ax-hero__coords-rule {
    height: 28px;
    margin: 0 0 2px;
  }

  /* W23-A6 mid — veil under glass ≤900 (home) */
  .ax-hero__card {
    --ax-hero-veil: 0.34;
  }

  /*
   * Subpage heroes — vertically center the content block below the nav
   * (text stays left-aligned; only the stack moves in Y).
   * Component CSS (katalog / o-nas / investment) may restate these so they
   * win the cascade when those files load after hero.css.
   * Home hero keeps flex-end (card + coords at bottom).
   */
  .ax-hero--katalog,
  .ax-hero--onas,
  .ax-hero--investment {
    min-height: 100svh;
  }

  .ax-hero--katalog .ax-hero__inner--katalog,
  .ax-hero--onas .ax-hero__inner--onas,
  .ax-hero--investment .ax-hero__inner--investment {
    justify-content: center;
    padding-top: var(--ax-navh);
    padding-bottom: 0;
    min-height: 100svh;
  }

  .ax-hero--katalog .ax-hero__shell,
  .ax-hero--onas .ax-hero__shell,
  .ax-hero--investment .ax-hero__shell {
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ax-hero__line-inner,
  .ax-hero__card,
  .ax-hero__coords {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


/* Beat .ax-on-ink :where(a) — primary stays ink on paper. */
.ax-site .ax-hero__cta--primary {
  color: var(--ax-ink);
}
@media (hover: hover) and (pointer: fine) {
.ax-site .ax-hero__cta--primary:hover {
  color: var(--ax-ink);
}
}

.ax-site .ax-hero__cta--ghost {
  color: var(--ax-paper);
}
@media (hover: hover) and (pointer: fine) {
.ax-site .ax-hero__cta--ghost:hover {
  color: var(--ax-paper);
}
}



/* LCP: hero bitmap must paint immediately — never opacity:0 on media. */
.ax-hero__media,
.ax-hero__media img,
[data-lcp-media] {
  opacity: 1 !important;
  visibility: visible !important;
}


@media (hover: hover) and (pointer: fine) {
  .ax-hero__card {
    background: rgba(20, 24, 51, 0.34);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
  }
}
