/* latin-ext */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-italic-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-normal-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-normal-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   Above Pilot — strona-wizytówka
   Marka: steel-navy akcent, ciemne hero, jasne sekcje
   ============================================================ */

:root {
  --navy: hsl(215 45% 42%);
  --navy-bright: hsl(215 70% 60%);
  /* CTA button background: minimal darkening of --navy-bright so white
     16.5px/600 text passes WCAG 4.5:1 (measured 4.58:1; 60% gives 3.36:1) */
  --navy-cta: hsl(215 70% 51%);
  --navy-deep: hsl(218 40% 12%);
  --ink: hsl(220 25% 10%);
  --ink-soft: hsl(220 12% 38%);
  --paper: hsl(220 25% 98%);
  --paper-2: hsl(218 30% 95%);
  --line: hsl(218 20% 88%);
  --radius: 18px;
  --font: "Schibsted Grotesk", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden: hidden turns body into a scroll container, which
     breaks position:sticky scenes (offer stack, AGaaS pin) */
  overflow-x: clip;
}

::selection { background: hsl(215 70% 60% / 0.25); }

img { display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 56px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: hsl(220 25% 98% / 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 hsl(218 20% 88% / 0.7);
}
.nav.on-dark:not(.scrolled) { color: white; }
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
}
.nav-brand .logo-dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: currentColor;
  -webkit-mask: url("/assets/logo.svg") center / contain no-repeat;
  mask: url("/assets/logo.svg") center / contain no-repeat;
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 30px); font-size: 14.5px; font-weight: 500; }
.nav-links a { opacity: 0.75; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--navy);
  color: white !important;
  opacity: 1 !important;
  padding: 9px 18px;
  /* solid (not glass) — the nav sits over both the dark hero and the
     light scrolled state, where glass would vanish; r9 matches the new
     button family */
  border-radius: 9px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: hsl(215 50% 36%); transform: translateY(-1px); }
.nav-cta-icon { display: none; width: 16px; height: 16px; flex-shrink: 0; }
/* mobile menu toggle (CSS-only disclosure) — hidden on desktop */
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.nav-burger { display: none; }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-switch .globe { color: hsl(218 25% 55%); flex-shrink: 0; }
.lang-switch a {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  /* invisible padding keeps the prototype look while meeting the
     24x24px minimum target size (WCAG 2.2) */
  padding: 6px 4px;
  margin: -6px -4px;
  border: none;
  background: transparent;
  color: hsl(218 25% 65%);
  cursor: pointer;
  transition: color 0.2s;
}
.lang-switch a:hover { color: white; }
.lang-switch a.active { color: white; font-weight: 600; }
@media (max-width: 720px) {
  /* show the hamburger; links collapse into a toggled dropdown panel */
  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 11px;
    margin: -6px -8px -6px 0; cursor: pointer; color: inherit;
  }
  .nav-burger span {
    display: block; height: 2px; width: 100%;
    background: currentColor; border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--navy-bright); outline-offset: 2px; border-radius: 6px; }
  .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px 16px 16px;
    background: hsl(218 42% 10% / 0.98);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid hsl(215 40% 60% / 0.18);
    box-shadow: 0 18px 40px hsl(218 50% 6% / 0.45);
    display: none;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a { color: white; opacity: 0.92; min-height: 44px; padding: 11px 8px; display: flex; align-items: center; }
  .nav-links a:hover { opacity: 1; }
  /* CTA full-width with its label restored inside the panel */
  .nav-cta { width: 100%; justify-content: center; margin-top: 6px; padding: 13px; }
  .nav-cta-icon { display: block; }
  .nav-cta-text { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-burger span { transition: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(120% 90% at 70% -10%, hsl(215 55% 26%) 0%, transparent 55%),
    radial-gradient(100% 80% at 10% 110%, hsl(215 45% 20%) 0%, transparent 50%),
    var(--navy-deep);
  color: white;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 1000px; }
.hero-logo {
  width: clamp(64px, 8vw, 92px); height: clamp(64px, 8vw, 92px);
  margin: 0 auto 36px;
  border-radius: 50%;
  background: white;
  -webkit-mask: url("/assets/logo.svg") center / contain no-repeat;
  mask: url("/assets/logo.svg") center / contain no-repeat;
}
.hero h1 {
  font-size: clamp(44px, 7.5vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--navy-bright); }
.hero p.sub {
  margin: 28px auto 0;
  max-width: 620px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  color: hsl(218 30% 78%);
  text-wrap: pretty;
}
.hero-ctas { margin-top: 44px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* Buttons: soft r11 shape + a light sheen that sweeps across on hover.
   .btn-primary is navy-tinted glass (reads as primary on the dark hero /
   glass contact band); .btn-ghost is lighter glass. The sheen lives on
   ::before, painted under the label; gated off under reduced motion. */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px;
  border-radius: 11px;
  font-size: 16.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 42%;
  background: linear-gradient(105deg, transparent, hsl(0 0% 100% / 0.45), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn:hover::before { left: 135%; }

.btn-primary {
  color: white;
  background: linear-gradient(120deg, hsl(215 70% 60% / 0.34), hsl(215 70% 60% / 0.18));
  border-color: hsl(215 70% 70% / 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-primary:hover {
  background: linear-gradient(120deg, hsl(215 70% 60% / 0.5), hsl(215 70% 60% / 0.28));
  border-color: hsl(215 80% 78% / 0.8);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px hsl(215 70% 45% / 0.4);
}
.btn-ghost {
  color: white;
  background: hsl(0 0% 100% / 0.05);
  border-color: hsl(0 0% 100% / 0.24);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: hsl(0 0% 100% / 0.13);
  border-color: hsl(0 0% 100% / 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn::before { display: none; }
  .btn:hover { transform: none; }
}

/* ---------- Sekcje wspólne ---------- */
.section { padding: clamp(80px, 11vw, 150px) clamp(20px, 5vw, 56px); }
.section-inner { max-width: 1180px; margin: 0 auto; }
.kicker {
  display: inline-block;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
}
.section h2 {
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 760px;
  text-wrap: balance;
}
.section .lead {
  margin-top: 20px;
  font-size: clamp(16px, 1.8vw, 19.5px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 640px;
  text-wrap: pretty;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Oferta (bento z duszą) ---------- */
.offer-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .offer-grid { grid-template-columns: 1fr; } }

.offer-card {
  position: relative;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 36px;
  display: flex; flex-direction: column; gap: 14px;
  justify-content: flex-end;
  min-height: 270px;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s, border-color 0.4s;
}
.offer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 52px hsl(218 40% 20% / 0.11);
  border-color: hsl(215 45% 42% / 0.35);
}
.offer-card--wide { grid-column: span 2; }
.offer-card--full { grid-column: 1 / -1; min-height: 0; }
@media (max-width: 980px) {
  .offer-card--wide { grid-column: span 2; }
}
@media (max-width: 620px) {
  .offer-card--wide, .offer-card--full { grid-column: auto; }
}

/* duchowy numer w tle */
.offer-ghost {
  position: absolute;
  top: -22px; right: 6px;
  font-size: 132px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: hsl(218 30% 95%);
  user-select: none;
  pointer-events: none;
  transition: color 0.4s, transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.offer-card:hover .offer-ghost { color: hsl(215 45% 42% / 0.1); transform: translateY(-6px); }

/* znak graficzny — język logo: szczyt + horyzont */
.offer-mark {
  position: relative;
  width: 72px; height: 46px;
  color: var(--navy);
  margin-bottom: auto;
}
.offer-mark svg { width: 100%; height: 100%; overflow: visible; }
.offer-mark .up { transition: transform 0.45s cubic-bezier(.2,.7,.2,1); }
.offer-card:hover .offer-mark .up { transform: translateY(-4px); }
.offer-mark .float { transition: transform 0.45s cubic-bezier(.2,.7,.2,1); }
.offer-card:hover .offer-mark .float { transform: translateY(-5px); }

.offer-card h3 { position: relative; font-size: 22px; letter-spacing: -0.02em; line-height: 1.22; }
.offer-card p { position: relative; font-size: 15px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }

/* linia horyzontu — sweep przy hoverze */
.offer-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--navy-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.offer-card:hover::after { transform: scaleX(1); }

/* karta wyróżniona — granatowa */
.offer-card--dark {
  background:
    radial-gradient(130% 110% at 85% -20%, hsl(215 55% 28%) 0%, transparent 55%),
    var(--navy-deep);
  border-color: hsl(215 40% 28%);
  color: white;
}
.offer-card--dark p { color: hsl(218 30% 76%); }
.offer-card--dark .offer-ghost { color: hsl(216 40% 20% / 0.85); }
.offer-card--dark:hover .offer-ghost { color: hsl(215 60% 55% / 0.22); }
.offer-card--dark .offer-mark { color: var(--navy-bright); }

/* karta pełnej szerokości — układ poziomy */
.offer-card--full {
  flex-direction: row;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: 34px clamp(28px, 4vw, 48px);
}
.offer-card--full .offer-mark { margin-bottom: 0; flex-shrink: 0; }
.offer-card--full .offer-body { display: flex; flex-direction: column; gap: 10px; max-width: 700px; }
.offer-card--full .offer-ghost { top: 50%; transform: translateY(-50%); right: 22px; }
.offer-card--full:hover .offer-ghost { transform: translateY(-50%); }
@media (max-width: 620px) {
  .offer-card--full { flex-direction: column; align-items: flex-start; gap: 16px; min-height: 270px; justify-content: flex-end; }
  .offer-card--full .offer-mark { margin-bottom: auto; }
  .offer-card--full .offer-ghost { top: -22px; right: 6px; transform: none; }
}

/* ---------- Proces (jeden ciemny blok, sceny) ---------- */
.process { background: var(--navy-deep); color: white; }
.process .kicker { color: var(--navy-bright); }
.process-track { position: relative; }
.process-step {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  padding: 6vh 0;
}
@media (max-width: 860px) { .process-step { grid-template-columns: 1fr; min-height: auto; padding: 60px 0; } }
.process-step .num {
  font-size: clamp(90px, 14vw, 190px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px hsl(215 60% 60% / 0.6);
}
.process-step h3 { font-size: clamp(26px, 3.4vw, 42px); letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 16px; }
.process-step p { font-size: clamp(15.5px, 1.7vw, 18px); line-height: 1.65; color: hsl(218 30% 75%); max-width: 480px; text-wrap: pretty; }
.process-step .tagchips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.tagchip {
  font-size: 13px; font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: hsl(215 50% 50% / 0.16);
  border: 1px solid hsl(215 60% 60% / 0.35);
  color: hsl(215 80% 80%);
}

/* ---------- Big statement (skalująca typografia) ---------- */
.statement {
  background: var(--paper-2);
  text-align: center;
  overflow: hidden;
}
.statement h2 {
  max-width: 1000px;
  margin: 0 auto;
  font-size: clamp(34px, 5.4vw, 72px);
  transform-origin: center;
  will-change: transform, opacity;
}
/* 56% lightness: minimal darkening so large text passes 3:1 on --paper-2
   (3.08:1 measured; the prototype's 72% gave 1.83:1) */
.statement h2 .dim { color: hsl(218 15% 56%); }

/* ---------- Portale: cloud / apps ---------- */
.portal-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 860px) { .portal-grid { grid-template-columns: 1fr; } }
.portal-card {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  justify-content: flex-end;
  min-height: 300px;
  padding: 38px clamp(28px, 3.5vw, 42px);
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s, border-color 0.4s;
}
.portal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 52px hsl(218 40% 20% / 0.13);
  border-color: hsl(215 45% 42% / 0.35);
}
.portal-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--navy-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.portal-card:hover::after { transform: scaleX(1); }
.portal-card--dark {
  background:
    radial-gradient(130% 110% at 85% -20%, hsl(215 55% 28%) 0%, transparent 55%),
    var(--navy-deep);
  border-color: hsl(215 40% 28%);
  color: white;
}
.portal-mark {
  width: 76px; height: 50px;
  color: var(--navy);
  margin-bottom: auto;
}
.portal-card--dark .portal-mark { color: var(--navy-bright); }
.portal-mark svg { width: 100%; height: 100%; overflow: visible; }
.portal-mark .up, .portal-mark .float { transition: transform 0.45s cubic-bezier(.2,.7,.2,1); }
.portal-card:hover .portal-mark .up { transform: translateY(-4px); }
.portal-card:hover .portal-mark .float { transform: translateY(-5px); }
.portal-domain {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  display: inline-flex; align-items: baseline; gap: 8px;
  color: inherit;
}
.portal-card:not(.portal-card--dark) .portal-domain { color: var(--navy); }
.portal-arrow {
  display: inline-block;
  font-size: 0.8em;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
}
.portal-card:hover .portal-arrow { transform: translate(4px, -4px); }
.portal-card p { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; max-width: 440px; }
.portal-card--dark p { color: hsl(218 30% 76%); }
.portal-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* ---------- Produkty chmurowe ---------- */
.products-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .products-grid { grid-template-columns: 1fr; } }
.product-card {
  position: relative;
  border-radius: var(--radius);
  padding: 30px 26px 34px;
  background: white;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  justify-content: flex-end;
  min-height: 280px;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s, border-color 0.4s;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 52px hsl(218 40% 20% / 0.11);
  border-color: hsl(215 45% 42% / 0.35);
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% -30%, hsl(215 45% 42% / 0.07) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.product-card:hover::before { opacity: 1; }
.product-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--navy-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.product-card:hover::after { transform: scaleX(1); }
.product-card .pmark {
  position: relative;
  width: 76px; height: 50px;
  color: var(--navy);
  margin-bottom: auto;
}
.product-card .pmark svg { width: 100%; height: 100%; overflow: visible; }
.product-card .pmark .up { transition: transform 0.45s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .pmark .up { transform: translateY(-4px); }
.product-card .pmark .float { transition: transform 0.45s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .pmark .float { transform: translateY(-5px); }
.product-card .pmark .roll { transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .pmark .roll { transform: translateX(8px); }
.product-card h3 { position: relative; font-size: 21px; letter-spacing: -0.02em; }
.product-card p { position: relative; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }
.product-card .domain {
  position: relative;
  margin-top: 12px;
  font-size: 13px; font-weight: 600; color: var(--navy);
  display: inline-flex; align-items: center; gap: 6px;
}
.product-card .domain::after {
  content: "→";
  transition: transform 0.3s;
}
.product-card:hover .domain::after { transform: translateX(4px); }

/* ---------- Provider agnostic ---------- */
.providers { background: var(--navy-deep); color: white; text-align: center; }
.providers .kicker { color: var(--navy-bright); }
.providers h2 { margin-inline: auto; }
.providers .lead { margin-inline: auto; color: hsl(218 30% 75%); }
.provider-row {
  margin-top: 56px;
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 14px;
}
.provider-pill {
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 16px 30px;
  border-radius: 999px;
  border: 1px solid hsl(0 0% 100% / 0.18);
  background: hsl(0 0% 100% / 0.05);
  color: hsl(218 30% 82%);
  transition: transform 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
}
.provider-pill:hover {
  transform: translateY(-3px);
  background: hsl(215 60% 55% / 0.18);
  border-color: hsl(215 70% 65% / 0.5);
  color: white;
}
.providers .note { margin-top: 36px; font-size: 15px; color: hsl(218 25% 60%); }

/* ---------- Kontakt ---------- */
.contact { background: var(--paper); }
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-wrap > * { min-width: 0; }
.contact-info .email-line {
  margin-top: 30px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 600;
  color: var(--navy);
}
.contact-info .email-line:hover { text-decoration: underline; }
.contact-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(26px, 3.5vw, 40px);
  display: grid;
  gap: 18px;
  box-shadow: 0 20px 60px hsl(218 40% 20% / 0.06);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: white;
  box-shadow: 0 0 0 3px hsl(215 45% 42% / 0.15);
}
.field .err { font-size: 12.5px; color: hsl(0 65% 48%); display: none; }
.field.invalid input, .field.invalid textarea { border-color: hsl(0 65% 55%); }
.field.invalid .err { display: block; }
/* ---------- Chipy tematu ---------- */
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  background: hsl(215 45% 42% / 0.07);
  border: 1px solid hsl(215 45% 42% / 0.22);
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.topic-chip:hover { background: hsl(215 45% 42% / 0.13); transform: translateY(-1px); }
.topic-chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.form-error {
  display: none;
  color: hsl(0 65% 48%);
  font-size: 14.5px;
  font-weight: 500;
  margin: -4px 0 0;
}
.form-error.show { display: block; }
.form-submit { margin-top: 6px; }
/* the form submit is the sole full-width action — keep it solid (not
   glass) and opaque-bordered for maximum prominence */
.form-submit .btn-primary { background: var(--navy); border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; width: 100%; justify-content: center; }
.form-submit .btn-primary:hover { background: hsl(215 50% 36%); box-shadow: 0 12px 32px hsl(215 45% 42% / 0.3); }
.form-sent {
  display: none;
  text-align: center;
  padding: 40px 10px;
}
.form-sent.show { display: block; }
.form-sent .check {
  width: 56px; height: 56px; border-radius: 50%;
  background: hsl(150 45% 42% / 0.12); color: hsl(150 45% 34%);
  display: grid; place-items: center; margin: 0 auto 18px;
}
.form-sent h3 { font-size: 22px; margin-bottom: 8px; }
.form-sent p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Stopka ---------- */
.footer {
  background: var(--navy-deep);
  color: hsl(218 25% 65%);
  padding: 56px clamp(20px, 5vw, 56px) 40px;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
}
.footer .brand { display: flex; align-items: center; gap: 10px; color: white; font-weight: 700; font-size: 16px; }
.footer .brand .logo-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: white;
  -webkit-mask: url("/assets/logo.svg") center / contain no-repeat;
  mask: url("/assets/logo.svg") center / contain no-repeat;
}
.footer a { transition: color 0.2s; }
.footer a:hover { color: white; }
.footer .meta { font-size: 13.5px; display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom {
  max-width: 1180px;
  margin: 26px auto 0;
  padding-top: 18px;
  border-top: 1px solid hsl(218 30% 24% / 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ============================================================
   Port additions: accessibility + form plumbing
   (everything below is invisible in the default visual state
   or required by the WCAG/security specs)
   ============================================================ */

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy-deep);
  color: white;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
}
.skip-link:focus-visible {
  left: 0;
}

/* ---------- Visible focus, tuned per background ---------- */
:focus-visible {
  outline: 3px solid var(--navy-cta);
  outline-offset: 2px;
  border-radius: 4px;
}
.hero :focus-visible,
.process :focus-visible,
.providers :focus-visible,
.footer :focus-visible,
.offer-card--dark :focus-visible,
.portal-card--dark :focus-visible,
.nav.on-dark:not(.scrolled) :focus-visible {
  outline-color: white;
}

/* fixed nav must not obscure anchored/focused headings (WCAG 2.2) */
/* anchor offset handled uniformly by html { scroll-padding-top } */

/* ---------- Topic chips as native radios ---------- */
fieldset.field { border: 0; min-width: 0; }
fieldset.field legend {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
  margin-bottom: 7px;
}
/* relative anchors the visually-hidden radio inside its chip; the
   .field input.chip-input specificity beats the form-wide
   `.field input { width: 100% }` that was inflating it to ~318px and
   forcing horizontal scroll on phones */
.topic-chip { display: inline-flex; position: relative; }
.field input.chip-input {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.topic-chip:has(.chip-input:checked) {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.topic-chip:has(.chip-input:focus-visible) {
  outline: 3px solid var(--navy-cta);
  outline-offset: 2px;
}

/* ---------- Per-field errors / failure line ---------- */
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: hsl(0 65% 55%); }

/* ---------- Honeypot: off-screen, inert for humans and AT ---------- */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- No-JS notice ---------- */
.form-noscript {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---------- Turnstile widget slot ----------
   height reserved up-front so the lazy-rendered widget never
   shifts layout (CLS) when the user jumps straight to #kontakt */
.cf-turnstile-slot { min-height: 65px; }

/* ---------- Form hints ---------- */
.field ::placeholder { color: hsl(220 12% 44%); opacity: 1; }

/* ---------- Contact: glass card on a dark band (variant f6) ----------
   the section turns navy-deep full-bleed with two radial glows; intro
   goes light; the form becomes white glass (8% + blur); palette only */
.contact {
  background:
    radial-gradient(1100px 720px at 82% 10%, hsl(215 70% 60% / 0.20), transparent 62%),
    radial-gradient(900px 640px at 6% 96%, hsl(215 45% 42% / 0.30), transparent 66%),
    var(--navy-deep);
}
.contact .kicker { color: var(--navy-bright); }
.contact h2 { color: hsl(0 0% 100%); }
.contact .lead { color: hsl(0 0% 100% / 0.78); }
.contact .contact-info .email-line { color: var(--navy-bright); }
.contact .contact-info .email-line:hover { color: hsl(0 0% 100%); }

.contact .contact-form {
  position: relative;
  isolation: isolate;
  border: 1px solid hsl(0 0% 100% / 0.18);
  border-radius: 24px;
  background: hsl(0 0% 100% / 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow:
    0 30px 80px hsl(218 40% 12% / 0.55),
    inset 0 1px 0 hsl(0 0% 100% / 0.14);
  transition: box-shadow 0.4s;
}
.contact .contact-form:focus-within {
  box-shadow:
    0 34px 90px hsl(218 40% 12% / 0.65),
    inset 0 1px 0 hsl(0 0% 100% / 0.18);
}
.contact .contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(165deg, hsl(0 0% 100% / 0.10), hsl(0 0% 100% / 0) 46%);
  pointer-events: none;
}

.contact .field label,
.contact fieldset.field legend { color: hsl(0 0% 100% / 0.92); }

.contact .field input,
.contact .field select,
.contact .field textarea {
  background: hsl(0 0% 100% / 0.07);
  border-color: hsl(0 0% 100% / 0.24);
  color: var(--paper);
  caret-color: var(--navy-bright);
}
.contact .field input:focus,
.contact .field select:focus,
.contact .field textarea:focus {
  background: hsl(0 0% 100% / 0.12);
  border-color: var(--navy-bright);
  box-shadow: 0 0 0 3px hsl(215 70% 60% / 0.35);
}
.contact .field ::placeholder { color: hsl(0 0% 100% / 0.62); }

.contact .topic-chip {
  background: hsl(215 70% 60% / 0.13);
  border-color: hsl(215 70% 60% / 0.40);
  color: hsl(0 0% 100% / 0.92);
}
.contact .topic-chip:hover { background: hsl(215 70% 60% / 0.24); }
.contact .topic-chip:has(.chip-input:checked) {
  background: var(--navy-cta);
  border-color: var(--navy-bright);
  color: hsl(0 0% 100%);
}
.contact .topic-chip:has(.chip-input:focus-visible) {
  outline: 3px solid hsl(0 0% 100% / 0.9);
  outline-offset: 2px;
}

/* errors stay in-palette: light text with a paper "!" badge, no red */
.contact .field .err,
.contact .form-error {
  color: hsl(0 0% 100% / 0.95);
  font-weight: 600;
}
.contact .field .err::before,
.contact .form-error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--navy-deep);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(2px);
}
.contact .field.invalid input,
.contact .field.invalid textarea,
.contact .field input[aria-invalid="true"],
.contact .field textarea[aria-invalid="true"] {
  border-color: hsl(0 0% 100% / 0.85);
  background: hsl(0 0% 100% / 0.13);
}

.contact .form-sent .check {
  background: hsl(215 70% 60% / 0.18);
  color: var(--navy-bright);
}
.contact .form-sent h3 { color: hsl(0 0% 100%); }
.contact .form-sent p { color: hsl(0 0% 100% / 0.78); }
.contact .form-noscript { color: hsl(0 0% 100% / 0.82); }

.contact .form-submit .btn-primary {
  background: var(--navy-bright);
  color: var(--navy-deep);
  border-color: transparent;
  box-shadow: 0 14px 36px hsl(215 70% 60% / 0.25);
}
.contact .form-submit .btn-primary:hover {
  background:
    linear-gradient(hsl(0 0% 100% / 0.16), hsl(0 0% 100% / 0.16)),
    var(--navy-bright);
  box-shadow: 0 16px 40px hsl(215 70% 60% / 0.4);
}

.contact a:focus-visible,
.contact button:focus-visible {
  outline: 3px solid hsl(0 0% 100% / 0.9);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .contact .contact-form,
  .contact .topic-chip,
  .contact .field input,
  .contact .field textarea,
  .contact .form-submit .btn-primary { transition: none; }
}

/* ---------- AGaaS cards (products section reuses portal cards) ---------- */
.portal-card h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.22; }

/* ============================================================
   Final design layer: offer sticky-stack (v3) + AGaaS scene (v7)
   + scroll-storytelling. Base styles below render the full static
   page; everything kinetic lives behind prefers-reduced-motion
   and @supports gates further down.
   ============================================================ */

/* ---------- Offer: full-width stacked anchor cards ---------- */
#oferta .offer-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
#oferta .offer-card {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 14px;
  min-height: clamp(300px, 36vh, 430px);
  padding: clamp(28px, 4vw, 52px);
  cursor: pointer;
}
#oferta .offer-card h3 { font-size: clamp(24px, 3vw, 38px); max-width: 720px; }
#oferta .offer-card p { font-size: clamp(15px, 1.6vw, 17.5px); line-height: 1.62; max-width: 620px; }
#oferta .offer-mark { width: 86px; height: 55px; margin-bottom: auto; }
#oferta .offer-ghost { font-size: clamp(110px, 15vw, 190px); top: -0.13em; right: 12px; }
/* on light cards the prototype's near-white ghost fill fails contrast
   scanners (1.13:1); outline it like the process pillar numbers instead —
   transparent fill carries no measurable text color, stroke stays subtle */
#oferta .offer-card:not(.offer-card--dark) .offer-ghost {
  color: transparent;
  -webkit-text-stroke: 1.5px hsl(215 45% 42% / 0.3);
}
#oferta .offer-card:not(.offer-card--dark):hover .offer-ghost {
  color: transparent;
  -webkit-text-stroke-color: hsl(215 70% 60% / 0.55);
}

.offer-go {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.offer-card--dark .offer-go { color: var(--navy-bright); }
.offer-go .arr { display: inline-block; transition: transform 0.3s cubic-bezier(.2,.7,.2,1); }
.offer-card:hover .offer-go .arr,
.offer-card:focus-visible .offer-go .arr { transform: translateX(5px); }
#oferta .offer-card:focus-visible { outline: 3px solid var(--navy-cta); outline-offset: 4px; }
#oferta .offer-card--dark:focus-visible { outline-color: white; }

/* ---------- AGaaS: static base (scene activates under motion) ---------- */
.section--agaas .section-inner { text-align: center; }
.section--agaas .section-inner > .portal-grid { text-align: left; margin-top: clamp(40px, 6vw, 64px); }
.agaas-pin-inner h2 { margin-inline: auto; }
.agaas-lead { margin-inline: auto; }

.agaas-scene-chips {
  margin-top: clamp(22px, 3vw, 36px);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
/* in the static (light) render the dark-background chip colors would
   vanish — restyle to the light-context chip language */
.agaas-scene-chips .tagchip {
  background: hsl(215 45% 42% / 0.07);
  border-color: hsl(215 45% 42% / 0.22);
  color: var(--navy);
}

.agaas-values {
  margin-top: clamp(44px, 6vw, 76px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
@media (max-width: 760px) { .agaas-values { grid-template-columns: 1fr; } }
.agaas-value {
  text-align: center;
  padding: clamp(10px, 2vw, 18px) 12px 0;
}
.agaas-value strong {
  display: block;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.agaas-value span {
  display: block;
  margin: 10px auto 0;
  max-width: 36ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
/* the AGaaS section runs tighter than generic sections: the scene above
   provides the drama, the values row closes it without dead air */
.section--agaas { padding-bottom: clamp(48px, 7vw, 90px); }
.section--agaas .agaas-values { margin-bottom: 0; }

/* ============================================================
   MOTION LAYER — only without prefers-reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {

  /* --- Global stack: pinned scenes get covered by what follows ---
     sections need to be positioned and opaque so a later section
     paints over a pinned earlier one (DOM order wins) */
  main > .section, main > .hero { position: relative; }
  #oferta, #produkty { background: var(--paper); }

  /* hero pins and the offer slides over it while the content recedes
     and the backdrop dims (--hero-dim driven by SDA or the rAF fallback) */
  .hero { position: sticky; top: 0; }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--navy-deep);
    opacity: var(--hero-dim, 0);
    pointer-events: none;
  }

  /* statement pins as a full-viewport interlude; the dark AGaaS scene
     slides directly over it — no white seam between the two */
  .statement {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
  }
  .section--agaas { padding-top: 0; }
  .section--agaas .agaas-scene { margin-top: 0; }

  /* --- Offer: ~stacked scene; cards pin and the covered one recedes --- */
  #oferta .offer-grid {
    display: block;
    view-timeline-name: --offer-stack;
    padding-bottom: 6vh;
  }
  #oferta .offer-card {
    position: sticky;
    min-height: min(60vh, 620px);
    transform-origin: 50% 0;
    will-change: transform;
    box-shadow: 0 -18px 60px hsl(218 40% 12% / 0.18);
  }
  #oferta .offer-card:nth-child(1) { top: 88px; }
  #oferta .offer-card:nth-child(2) { top: 106px; margin-top: 30vh; }
  #oferta .offer-card:nth-child(3) { top: 124px; margin-top: 30vh; }
  /* cards are scroll-staged, the base reveal transform would fight it */
  #oferta .offer-card.reveal { opacity: 1; transform: none; transition: box-shadow 0.4s, border-color 0.4s; }

  /* --- AGaaS: full-viewport pinned scene --- */
  .agaas-scene {
    height: 300vh;
    margin: clamp(28px, 5vw, 56px) calc(50% - 50vw) 0;
  }
  .agaas-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    place-items: center;
    padding: 80px 24px;
    overflow: hidden;
    background:
      radial-gradient(110% 80% at 50% -20%, hsl(215 55% 26%) 0%, transparent 60%),
      radial-gradient(90% 70% at 50% 125%, hsl(215 45% 20%) 0%, transparent 55%),
      var(--navy-deep);
    color: white;
  }
  .agaas-pin-inner { max-width: 940px; text-align: center; }
  .agaas-pin .kicker { color: var(--navy-bright); }
  .agaas-pin h2 { color: white; }
  .section--agaas .agaas-pin .agaas-lead {
    color: white;
    font-size: clamp(19px, 2.5vw, 31px);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.015em;
    max-width: 36ch;
    margin: clamp(22px, 3vw, 36px) auto 0;
  }
  /* on the dark pin the chips return to their dark-context colors */
  .agaas-pin .agaas-scene-chips .tagchip {
    background: hsl(215 50% 50% / 0.16);
    border-color: hsl(215 60% 60% / 0.35);
    color: hsl(215 80% 80%);
  }
  /* word-by-word lead + chips finale (driven by site.js) */
  .motion-ok .agaas-lead .w-word { opacity: 0.13; transition: opacity 0.18s linear; }
  .motion-ok .agaas-scene-chips { opacity: 0; transform: translateY(14px); transition: opacity 0.6s cubic-bezier(.2,.7,.2,1), transform 0.6s cubic-bezier(.2,.7,.2,1); }
  .motion-ok .agaas-scene-chips.on { opacity: 1; transform: none; }

  /* --- section headings reveal per word (split by site.js) --- */
  .w-split.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .w-split .w-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.5em);
    transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
    transition-delay: calc(var(--wi, 0) * 50ms);
  }
  .w-split.words-in .w-word { opacity: 1; transform: none; }

  /* --- IO/rAF fallback states (browsers without scroll-driven CSS) --- */
  .no-sda #proces .process-step,
  .no-sda .agaas-value {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
  }
  .no-sda .fx-in { opacity: 1; transform: translateY(0); }
  .no-sda .agaas-value:nth-child(2) { transition-delay: 0.1s; }
  .no-sda .agaas-value:nth-child(3) { transition-delay: 0.2s; }
}

/* ============================================================
   SCROLL-DRIVEN ANIMATIONS (browsers with animation-timeline)
   ============================================================ */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

    @keyframes stack-back-a { to { transform: scale(0.88); } }
    @keyframes stack-back-b { to { transform: scale(0.94); } }
    #oferta .offer-card:nth-child(1) {
      animation: stack-back-a linear both;
      animation-timeline: --offer-stack;
      animation-range: cover 25% cover 75%;
    }
    #oferta .offer-card:nth-child(2) {
      animation: stack-back-b linear both;
      animation-timeline: --offer-stack;
      animation-range: cover 50% cover 75%;
    }

    @keyframes fx-rise { from { opacity: 0; transform: translateY(26px); } }
    #proces .process-step {
      animation: fx-rise linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 45%;
    }
    /* mist drifts across as its pillar traverses the viewport:
       odd pillars left→right, even pillars right→left */
    @keyframes mist-ltr { from { transform: translateX(-14%) translateY(4%); } to { transform: translateX(10%) translateY(-4%); } }
    @keyframes mist-rtl { from { transform: translateX(14%) translateY(4%); } to { transform: translateX(-10%) translateY(-4%); } }
    .process-pillar::before {
      animation: mist-ltr linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    .process-pillar:nth-of-type(even)::before { animation-name: mist-rtl; }
    .agaas-values { view-timeline-name: --vals; }
    .agaas-value { animation: fx-rise linear both; animation-timeline: --vals; }
    .agaas-value:nth-child(1) { animation-range: cover 0% cover 28%; }
    .agaas-value:nth-child(2) { animation-range: cover 8% cover 36%; }
    .agaas-value:nth-child(3) { animation-range: cover 16% cover 44%; }

    @keyframes hero-out { to { opacity: 0.2; transform: translateY(-46px) scale(0.96); } }
    .hero-inner {
      animation: hero-out linear both;
      animation-timeline: scroll();
      animation-range: 0px 90vh;
    }
    @keyframes hero-dim { to { opacity: 0.55; } }
    .hero::after {
      animation: hero-dim linear both;
      animation-timeline: scroll();
      animation-range: 0px 100vh;
    }
  }
}

/* ---------- Process: centered editorial pillar tracks ----------
   one centered column per pillar, steps threaded on a vertical line;
   the .track-fill div (added by JS, motion only) fills with scroll */
#proces .section-inner { text-align: center; }
#proces .section-inner > h2 { margin-inline: auto; }

.process-pillar { margin-top: clamp(72px, 9vw, 120px); }
.process-pillar-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.process-pillar-title .ppnum {
  font-weight: 800;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px hsl(215 60% 60% / 0.9);
}

#proces .process-track {
  position: relative;
  max-width: 680px;
  margin: clamp(8px, 1.5vw, 18px) auto 0;
}
/* instead of a thread line: soft navy mist behind each pillar, hugging
   alternating sides (01 right, 02 left, 03 right); under motion it
   drifts horizontally with scroll — purely decorative, behind content */
#proces { overflow: clip; }
.process-pillar { position: relative; }
.process-pillar-title { position: relative; z-index: 1; }
.process-pillar::before {
  content: "";
  position: absolute;
  top: 8%;
  width: min(58vw, 760px);
  height: min(58vw, 760px);
  border-radius: 50%;
  background: radial-gradient(circle, hsl(215 60% 45% / 0.16) 0%, hsl(215 60% 45% / 0.06) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.process-pillar:nth-of-type(odd)::before { right: -22%; }
.process-pillar:nth-of-type(even)::before { left: -22%; }

#proces .process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  min-height: 0;
  padding: clamp(34px, 5vw, 56px) 0 clamp(22px, 3vw, 36px);
  position: relative;
}
/* no thread line anymore — the mist lives behind the text, so the steps
   need no masking plates (solid backgrounds would cut hard rectangles
   out of the mist) */
#proces .process-step .num {
  position: relative;
  z-index: 1;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1;
  padding: 10px 16px;
  /* 0.85 alpha: composited stroke clears the 3:1 contrast bar on
     navy-deep (0.6 measured 2.67:1 in the reduced-motion axe pass) */
  -webkit-text-stroke: 1px hsl(215 70% 60% / 0.85);
}
#proces .process-step > div:not(.num) {
  position: relative;
  z-index: 1;
  padding: 10px clamp(10px, 2vw, 18px) 0;
  max-width: 58ch;
}
#proces .process-step h4 {
  font-size: clamp(21px, 2.5vw, 30px);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 6px 0 12px;
}
#proces .process-step p {
  margin: 0 auto;
  max-width: 52ch;
  font-size: clamp(15px, 1.6vw, 17px);
  color: hsl(218 28% 72%);
}
#proces .process-step .tagchips { justify-content: center; margin-top: 18px; }

/* ===================== content pages (blog / articles) ===================== */
.content-page { background: var(--paper); color: var(--ink); }
.content-page .nav {
  position: sticky;
  background: hsl(218 40% 12% / 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  color: white;
  box-shadow: 0 1px 0 hsl(215 40% 60% / 0.18);
}
.content-page .nav-links a { color: white; }
.content-page .nav-links a.active { opacity: 1; }
.content-page .nav-cta { color: white; }

.content-page main { display: block; }
.article,
.blog-index {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 32px) clamp(64px, 9vw, 96px);
}

.breadcrumb { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 26px; }
.breadcrumb a { color: var(--navy); }
.breadcrumb a:hover { text-decoration: underline; }

.article-header { margin-bottom: 36px; border-bottom: 1px solid var(--line); padding-bottom: 26px; }
.article-header h1 {
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 14px;
}
.article-meta { font-size: 13.5px; color: var(--ink-soft); }

/* long-form typography */
.prose { font-size: 17px; line-height: 1.72; color: hsl(220 20% 22%); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-top: 1.9em;
}
.prose h3 { font-size: clamp(18px, 2vw, 21px); margin-top: 1.6em; }
.prose h4 { font-size: 17px; margin-top: 1.4em; color: var(--ink); }
.prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--navy-cta); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote {
  border-left: 3px solid var(--navy-bright);
  padding: 4px 0 4px 20px;
  color: var(--ink-soft);
  font-style: italic;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}
.prose pre {
  background: var(--navy-deep);
  color: hsl(218 30% 90%);
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}
.prose pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }
.prose img, .prose figure img { max-width: 100%; height: auto; border-radius: 12px; display: block; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }

.article-back { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; }
.article-back a { color: var(--navy); }
.article-back a:hover { text-decoration: underline; }

/* blog index — dark glass (V1) */
.blog-index-page { background: var(--navy-deep); color: white; }
.blog-index-page .nav { background: hsl(218 42% 10% / 0.92); }

.blog-index-header { margin-bottom: 46px; }
.blog-index-header .kicker { color: var(--navy-bright); margin-bottom: 16px; }
.blog-index-header h1 { color: white; font-size: clamp(36px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 14px; }
.blog-index-header .lead { font-size: clamp(16px, 2vw, 18.5px); line-height: 1.6; color: hsl(218 30% 78%); max-width: 56ch; text-wrap: pretty; }

.blog-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.blog-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid hsl(215 40% 60% / 0.18);
  border-radius: var(--radius);
  padding: 30px 32px 26px;
  background: hsl(215 40% 60% / 0.07);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: white;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
/* sheen sweep — same language as buttons/offer */
.blog-card::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 42%;
  background: linear-gradient(105deg, transparent, hsl(0 0% 100% / 0.12), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.blog-card:hover { border-color: hsl(215 60% 70% / 0.5); background: hsl(215 40% 60% / 0.12); transform: translateY(-3px); }
.blog-card:hover::before { left: 135%; }
.blog-card:focus-visible { outline: 3px solid var(--navy-bright); outline-offset: 4px; }

.blog-ghost {
  position: absolute;
  top: -14px; right: 18px;
  font-size: clamp(80px, 11vw, 120px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: hsl(215 60% 70% / 0.10);
  user-select: none;
  pointer-events: none;
  transition: color 0.4s, transform 0.5s cubic-bezier(.2, .7, .2, 1);
}
.blog-card:hover .blog-ghost { color: hsl(215 65% 70% / 0.22); transform: translateY(-5px); }

.blog-card-kicker {
  position: relative;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy-bright);
  margin-bottom: 12px;
}
.blog-card h2 {
  position: relative;
  color: white;
  font-size: clamp(20px, 2.6vw, 25px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 32ch;
  text-wrap: balance;
}
.blog-card-desc {
  position: relative;
  margin-top: 10px;
  font-size: 15.5px; line-height: 1.6;
  color: hsl(218 30% 80%);
  max-width: 62ch;
  text-wrap: pretty;
}
.blog-go {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  font-size: 14px; font-weight: 700;
  color: var(--navy-bright);
}
.blog-go .arr { display: inline-block; transition: transform 0.3s cubic-bezier(.2, .7, .2, 1); }
.blog-card:hover .blog-go .arr { transform: translateX(5px); }

@media (prefers-reduced-motion: reduce) {
  .blog-card, .blog-go .arr, .blog-ghost { transition: none; }
  .blog-card:hover { transform: none; }
  .blog-card::before { display: none; }
}

/* ===================== service / landing pages ===================== */
.service { display: block; }
.service-hero {
  background: var(--navy-deep);
  color: white;
  padding: clamp(48px, 8vw, 92px) clamp(20px, 5vw, 32px) clamp(44px, 7vw, 72px);
  text-align: center;
}
.service-hero .kicker { color: var(--navy-bright); margin-bottom: 16px; }
.service-hero h1 {
  color: white;
  font-size: clamp(32px, 5.4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 0 auto 16px;
  text-wrap: balance;
}
.service-hero .lead {
  color: hsl(218 30% 80%);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 auto 28px;
  text-wrap: pretty;
}
.service-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.service-body {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) clamp(20px, 5vw, 32px);
}

.service-closing {
  background:
    radial-gradient(70% 120% at 80% -10%, hsl(215 70% 60% / 0.22), transparent 60%),
    var(--navy-deep);
  color: white;
  text-align: center;
  padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 32px);
}
.service-closing h2 {
  color: white;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-wrap: balance;
}

/* footer "Usługi" group (homepage + content pages) */
.footer-services {
  max-width: 1180px;
  margin: 8px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding: 20px 0 4px;
  border-top: 1px solid hsl(0 0% 100% / 0.08);
  font-size: 14px;
}
.footer-services-label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: hsl(218 30% 62%);
  margin-right: 4px;
}
.footer-services a { color: hsl(218 30% 82%); transition: color 0.2s; }
.footer-services a:hover { color: white; }
