
/* Trueway Visual Direction V2, editorial studio system. */
:root {
  --content: 1280px;
  --measure-wide: 760px;
  --measure-copy: 640px;
  --radius: 2px;
  --radius-lg: 3px;
}
body::before { display: none; }
.page-shell { width: min(var(--content), calc(100% - 56px)); }
.site-header {
  position: relative;
  min-height: 70px;
  background: transparent;
  backdrop-filter: none;
  gap: 34px;
}
.brand { font-size: .86rem; }
.brand::before { width: 5px; height: 5px; box-shadow: none; }
.brand::after { font-size: .58rem; }
.site-nav { gap: 24px; font-size: .8rem; }
.site-nav a { padding: 8px 0; }
.header-actions { gap: 20px; }

.breadcrumbs { margin-top: 12px; font-size: .72rem; }
.hero {
  max-width: 880px;
  padding: 54px 0 50px;
}
.page-hero { min-height: auto; }
.eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--accent-cyan);
  font-size: .66rem;
  letter-spacing: .14em;
}
.eyebrow::before { display: none; }
h1 {
  max-width: 860px;
  font-size: clamp(2.75rem, 4.4vw, 4.05rem);
  line-height: .99;
  letter-spacing: -.043em;
}
.lead {
  margin-top: 20px;
  max-width: 620px;
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.6;
}
.actions { margin-top: 28px; gap: 9px; }

.button {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 2px;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .015em;
  transform: none;
}
.button:hover { transform: none; }
.primary {
  color: #dff8ff;
  background: rgba(113, 215, 246, .09);
  border-color: rgba(113, 215, 246, .52);
}
.primary:hover { background: rgba(113, 215, 246, .15); }
.secondary { background: transparent; color: var(--muted-strong); }
.content-section {
  padding: clamp(46px, 5vw, 64px) 0;
  border-top: 0;
}
.content-section::before,
.content-section[data-section-index]::after { display: none; }
.section-heading { max-width: 760px; margin-bottom: 26px; }
.section-heading h2 {
  max-width: 720px;
  font-size: clamp(1.95rem, 2.8vw, 2.75rem);
  line-height: 1.04;
}

.section-heading > p:not(.eyebrow) {
  margin-top: 14px;
  max-width: 620px;
  font-size: .96rem;
  line-height: 1.65;
}
.card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 38px;
}
.card {
  min-height: 0;
  padding: 21px 0 22px;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}
.card::before { display: none; }
.card:hover {
  transform: none;
  border-color: var(--accent-cyan);
  background: transparent;
}
.card h3 { margin: 0 0 9px; font-size: 1.04rem; }
.card p { font-size: .91rem; line-height: 1.62; }
.card-meta { margin-bottom: 8px; font-size: .62rem; }
.text-link { margin-top: 15px; font-size: .78rem; font-weight: 750; }
.tag-list { margin-top: 14px; }
.tag-list li { border-radius: 2px; padding: 4px 7px; font-size: .66rem; }

.pipeline-grid {
  gap: 0 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pipeline-grid li {
  min-height: 0;
  padding: 18px 0 20px;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}
.pipeline-index { margin-bottom: 18px; font-size: .64rem; }
.pipeline-grid h3 { font-size: 1rem; }
.pipeline-grid p { font-size: .88rem; line-height: 1.58; }
.spec-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 30px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.spec-grid > div {
  display: block;
  padding: 18px 0 20px;
  border-top: 1px solid var(--line-strong);
  background: transparent;
}
.spec-grid dt { margin-bottom: 10px; font-size: .64rem; }
.spec-grid dd { font-size: .9rem; line-height: 1.6; }

.split-layout {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 5vw, 68px);
}
.asset-frame {
  border-radius: 2px;
  border-color: rgba(255,255,255,.12);
}
.asset-frame::before,
.asset-frame::after { opacity: .34; }
.hero-split {
  min-height: auto;
  max-width: none;
}
.hero-layout {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(44px, 6vw, 76px);
}
.hero-split h1 {
  max-width: 650px;
  font-size: clamp(2.7rem, 4.1vw, 3.95rem);
}
.hero-facts {
  margin-top: 26px;
  border-radius: 2px;
}
.hero-facts div { padding: 11px 12px; }
.hero-facts dd { font-size: .72rem; }
.site-footer { margin-top: 40px; padding: 24px 0 30px; font-size: .76rem; }

/* Technology hub reference layout. */
.matrix-list { border-top: 1px solid var(--line-strong); }
.matrix-item {
  display: grid;
  grid-template-columns: 42px minmax(190px, .75fr) minmax(0, 1.35fr);
  gap: 18px 28px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.matrix-index {
  color: var(--quiet);
  font: 650 .62rem/1 var(--font-tech);
  letter-spacing: .1em;
}
.matrix-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.matrix-name img { width: 24px; height: 24px; object-fit: contain; opacity: .86; }
.matrix-mark {
  width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); color: var(--accent-cyan);
  font: 700 .58rem/1 var(--font-tech);
}
.matrix-name h3 { margin: 0; font-size: 1rem; }
.matrix-item > p { margin: 0; max-width: 660px; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.matrix-item-link { color: inherit; text-decoration: none; cursor: pointer; }
.matrix-item-link:hover .matrix-name h3,
.matrix-item-link:focus-visible .matrix-name h3 { color: var(--accent-cyan); }
.matrix-item-link:focus-visible { outline: 1px solid var(--accent-cyan); outline-offset: 5px; }

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 34px;
}
.principle-grid article {
  padding: 18px 0 4px;
  border-top: 1px solid var(--line-strong);
}
.principle-grid article > span {
  display: block;
  margin-bottom: 28px;
  color: var(--quiet);
  font: 650 .62rem/1 var(--font-tech);
  letter-spacing: .1em;
}
.principle-grid h3 { margin: 0 0 10px; font-size: 1rem; }
.principle-grid p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.62; }
.cta-band {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 30px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.cta-band h2 { margin: 0; max-width: 620px; font-size: clamp(1.8rem, 2.7vw, 2.55rem); line-height: 1.05; }
.cta-band > div > p:not(.eyebrow) { max-width: 560px; margin: 13px 0 0; color: var(--muted); line-height: 1.6; }

@media (max-width: 920px) {
  .page-shell { width: min(var(--content), calc(100% - 36px)); }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matrix-item { grid-template-columns: 34px minmax(170px, .8fr) minmax(0, 1.2fr) 24px; gap: 16px 20px; }
  .hero-layout { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 680px) {
  .page-shell { width: min(100% - 28px, var(--content)); }
  .hero { padding: 42px 0 38px; }
  h1, .hero-split h1 { font-size: clamp(2.05rem, 9.4vw, 2.75rem); }
  .lead { font-size: .98rem; }
  .content-section { padding: 38px 0; }
  .section-heading { margin-bottom: 22px; }
  .section-heading h2 { font-size: clamp(1.75rem, 7.6vw, 2.25rem); }
  .card-grid, .spec-grid, .principle-grid { grid-template-columns: 1fr; gap: 0; }
  .matrix-item { grid-template-columns: 30px minmax(0, 1fr); gap: 10px 14px; align-items: start; }
  .matrix-name { grid-column: 2; }
  .matrix-item > p { grid-column: 2; }
  .cta-band { display: block; padding: 24px 0; }
  .cta-band .button { margin-top: 22px; }
  .pipeline-grid { grid-template-columns: 1fr; gap: 0; }
}

/* V2 polish: hero actions are editorial links, not SaaS buttons. */
.hero .actions { gap: 20px; align-items: center; }
.hero .actions .button {
  min-height: 0;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--muted-strong);
  font-size: .78rem;
}
.hero .actions .button::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translateY(-1px) rotate(45deg); color: var(--accent-cyan); }
.hero .actions .primary { border-bottom-color: rgba(113,215,246,.58); color: var(--text); }
.hero .actions .button:hover { color: var(--accent-cyan); background: transparent; }
@media (max-width: 680px) {
  .hero { padding: 36px 0 30px; }
  h1, .hero-split h1 { font-size: clamp(1.95rem, 8.6vw, 2.45rem); }
  .content-section { padding: 32px 0; }
  .section-heading h2 { font-size: clamp(1.6rem, 7vw, 2.05rem); }
}

/* V3 UX pass: stronger navigation, bands and CTA hierarchy. */
:root {
  --content: 1180px;
  --band: #0a0e14;
  --band-accent: #0b1119;
}
body { background: #05070a; }
main { min-width: 0; }
.content-section[id] { scroll-margin-top: 68px; }

.quick-nav {
  position: sticky;
  top: 0;
  z-index: 18;
  display: flex;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(5, 7, 10, .94);
  backdrop-filter: blur(14px);
}
.quick-nav a {
  padding: 8px 12px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 750;
  border-radius: 3px;
}
.quick-nav a:hover { color: var(--text); background: var(--surface-2); }

.section-tone-band,
.section-tone-accent {
  box-shadow: 0 0 0 100vmax var(--band);
  clip-path: inset(0 -100vmax);
}
.section-tone-accent {
  background: linear-gradient(135deg, rgba(113,215,246,.035), transparent 45%);
  box-shadow: 0 0 0 100vmax var(--band-accent);
}
.section-tone-plain { border-bottom: 1px solid rgba(255,255,255,.055); }
.section-tone-cta { padding-top: 54px; padding-bottom: 54px; }

.content-section { padding: clamp(56px, 6vw, 78px) 0; }
.section-heading { margin-bottom: 30px; }
.section-heading h2 { max-width: 680px; }
.section-heading > p:not(.eyebrow) { color: #b5c0cf; font-size: 1rem; }
.card p,
.matrix-item > p,
.pipeline-grid p,
.principle-grid p,
.spec-grid dd { color: #aeb9c8; font-size: .94rem; }

/* Buttons must read as buttons. */
.button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 800;
}
.primary {
  background: #e8f5f8;
  color: #071015;
  border-color: #e8f5f8;
}
.primary:hover { background: #fff; color: #05090c; }
.secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,.24);
}
.secondary:hover { background: rgba(255,255,255,.055); }

.hero .actions { gap: 10px; }
.hero .actions .button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
}
.hero .actions .button::after { display: none; }
.hero .actions .primary {
  background: #e8f5f8;
  color: #071015;
  border-color: #e8f5f8;
}
.hero .actions .primary:hover { background: #fff; color: #05090c; }
.hero .actions .secondary:hover { background: rgba(255,255,255,.055); color: #fff; }

.section-tone-band .media-proof,
.section-tone-accent .asset-frame {
  background: #070a0f;
  border-color: rgba(255,255,255,.16);
}
.section-tone-band .media-caption { background: rgba(255,255,255,.018); }

.matrix-item {
  padding: 20px 12px;
  margin: 0 -12px;
  transition: background 140ms ease;
}
.matrix-item:hover { background: rgba(255,255,255,.035); }
.matrix-name h3 { font-size: 1.04rem; }

.pipeline-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 18px; }
.pipeline-grid li { padding-top: 20px; }
.pipeline-index { color: var(--accent-cyan); margin-bottom: 14px; }

.cta-band {
  padding: 38px 0;
  align-items: center;
}
.cta-band .button { min-width: 150px; }

@media (max-width: 920px) {
  .pipeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .quick-nav {
    margin-inline: -14px;
    padding: 8px 14px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .quick-nav::-webkit-scrollbar { display: none; }
  .quick-nav a { flex: 0 0 auto; padding: 8px 10px; font-size: .74rem; }
  .content-section { padding: 46px 0; }
  .section-tone-cta { padding-top: 40px; padding-bottom: 40px; }
  .hero .actions { display: grid; grid-template-columns: 1fr; max-width: 280px; }
  .hero .actions .button { width: 100%; }
  .pipeline-grid { grid-template-columns: 1fr; }
  .cta-band .button { width: 100%; margin-top: 24px; }
}

/* V3 band correction: stable contained bands, no viewport shadow hack. */
.section-tone-band,
.section-tone-accent {
  box-shadow: none;
  clip-path: none;
  margin-inline: -28px;
  padding-inline: 28px;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: var(--band);
}
.section-tone-accent {
  background: linear-gradient(135deg, rgba(113,215,246,.055), transparent 46%), var(--band-accent);
}

@media (max-width: 920px) {
  .split-layout { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 680px) {
  .section-tone-band,
  .section-tone-accent { margin-inline: -14px; padding-inline: 14px; }
  .split-layout { grid-template-columns: 1fr; gap: 24px; }
  .section-visual { min-width: 0; }
  .section-visual .asset-frame { width: 100%; }
}

/* V3 persistent orientation without SaaS glass styling. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(5, 7, 10, .97);
  backdrop-filter: blur(10px);
}
.quick-nav { top: 70px; }
@media (max-width: 680px) {
  .site-header { position: sticky; top: 0; }
  .quick-nav { position: static; top: auto; }
}

/* V3 tablet band geometry, match the 18px page-shell gutter exactly. */
@media (min-width: 681px) and (max-width: 920px) {
  .section-tone-band,
  .section-tone-accent {
    margin-inline: -18px;
    padding-inline: 18px;
  }
}

/* V3.1, software logo marquee. */
.section-software-marquee { padding: 24px 0 34px; }
.section-software-marquee .section-heading {
  max-width: none; margin-bottom: 14px;
  display: flex; align-items: baseline; gap: 18px;
}
.section-software-marquee .section-heading .eyebrow { margin: 0; white-space: nowrap; }
.section-software-marquee .section-heading h2 {
  margin: 0; color: var(--muted); font-size: .92rem;
  line-height: 1.25; letter-spacing: -.01em; font-weight: 700;
}
.software-marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255,255,255,.012);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.software-marquee-track {
  width: max-content; display: flex; align-items: stretch;
  animation: trueway-software-scroll 38s linear infinite;
  will-change: transform;
}
.software-marquee-set {
  flex: none; display: flex; align-items: stretch;
  margin: 0; padding: 0; list-style: none;
}
.software-marquee-set li {
  min-width: max-content; min-height: 68px;
  display: flex; align-items: center; gap: 11px;
  padding: 14px 26px;
  border-right: 1px solid var(--line);
  color: var(--muted-strong);
}
.software-marquee-set img {
  width: 27px; height: 27px; object-fit: contain; opacity: .9;
}
.software-marquee-set span { font-size: .88rem; font-weight: 800; letter-spacing: -.01em; }
.software-mark {
  width: 29px; height: 29px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(113,215,246,.35); color: var(--accent-cyan);
  font: 750 .62rem/1 var(--font-tech); letter-spacing: .03em;
}
.software-marquee:hover .software-marquee-track { animation-play-state: paused; }
@keyframes trueway-software-scroll { to { transform: translateX(-50%); } }
@media (max-width: 680px) {
  .section-software-marquee { padding: 18px 0 28px; }
  .section-software-marquee .section-heading { display: block; }
  .section-software-marquee .section-heading .eyebrow { margin-bottom: 7px; }
  .software-marquee {
    overflow-x: auto; overscroll-behavior-inline: contain;
    -webkit-mask-image: none; mask-image: none; scrollbar-width: none;
  }
  .software-marquee::-webkit-scrollbar { display: none; }
  .software-marquee-track { animation: none; }
  .software-marquee-set[aria-hidden="true"] { display: none; }
  .software-marquee-set li { min-height: 60px; padding: 12px 20px; }
  .software-marquee-set img { width: 24px; height: 24px; }
  .software-marquee-set span { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .software-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .software-marquee-track { animation: none; }
  .software-marquee-set[aria-hidden="true"] { display: none; }
}

/* V3.2, representational logo-only production stack. */
.section-software-marquee { padding: 26px 0 38px; }
.section-software-marquee .section-heading { margin-bottom: 18px; }
.section-software-marquee .section-heading h2 {
  font-size: .86rem;
  color: #8f9bab;
  font-weight: 650;
}
.software-marquee-track { animation-duration: 58s; }
.software-marquee-set { align-items: center; }
.software-marquee-set li.software-logo-item {
  min-width: 128px;
  min-height: 92px;
  justify-content: center;
  padding: 18px 34px;
  gap: 0;
  opacity: .72;
  transition: opacity 160ms ease, background 160ms ease;
}
.software-marquee-set li.software-logo-item:hover {
  opacity: 1;
  background: rgba(255,255,255,.025);
}
.software-marquee-set li.software-logo-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: 1;
}
.software-marquee-set li.software-logo-item span { display: none; }
@media (max-width: 680px) {
  .section-software-marquee { padding: 20px 0 30px; }
  .software-marquee-set li.software-logo-item {
    min-width: 104px;
    min-height: 78px;
    padding: 14px 24px;
  }
  .software-marquee-set li.software-logo-item img {
    width: 40px;
    height: 40px;
  }
}

/* V3.3, interactive momentum brand rail. */
.software-marquee {
  overflow-x: auto;
  cursor: grab;
  scrollbar-width: none;
  touch-action: pan-x;
  overscroll-behavior-inline: contain;
  user-select: none;
}
.software-marquee::-webkit-scrollbar { display: none; }
.software-marquee-track {
  animation: none !important;
  will-change: auto;
}
.software-marquee:hover .software-marquee-track { animation-play-state: running; }
.software-marquee.is-dragging { cursor: grabbing; }
.software-marquee-set li {
  min-width: 132px;
  min-height: 104px;
  justify-content: center;
  padding: 18px 38px;
}
.software-marquee-set img {
  width: auto;
  height: 52px;
  max-width: 96px;
  object-fit: contain;
  opacity: .82;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}
.software-marquee-set li:hover img {
  opacity: 1;
  transform: scale(1.04);
}
@media (max-width: 680px) {
  .software-marquee-set li {
    min-width: 108px;
    min-height: 84px;
    padding: 14px 28px;
  }
  .software-marquee-set img {
    height: 42px;
    max-width: 78px;
  }
}

/* V3.4, final brand rail scale. */
.software-marquee-set li {
  min-width: 148px;
  min-height: 116px;
  padding: 20px 42px;
}
.software-marquee-set img {
  height: 60px;
  max-width: 112px;
}
@media (max-width: 680px) {
  .software-marquee-set li {
    min-width: 120px;
    min-height: 94px;
    padding: 16px 30px;
  }
  .software-marquee-set img {
    height: 48px;
    max-width: 90px;
  }
}

/* Technologies sales page: dedicated hero hierarchy. */
body[data-route="/technologies"] .hero-facts,
body[data-route="/pl/technologie"] .hero-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
body[data-route="/technologies"] .hero-split,
body[data-route="/pl/technologie"] .hero-split {
  padding-bottom: 58px;
}
body[data-route="/technologies"] .section-software-marquee,
body[data-route="/pl/technologie"] .section-software-marquee {
  padding-top: 30px;
  padding-bottom: 42px;
}
@media (max-width: 680px) {
  body[data-route="/technologies"] .hero-facts,
  body[data-route="/pl/technologie"] .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-route="/technologies"] .hero-split,
  body[data-route="/pl/technologie"] .hero-split { padding-bottom: 38px; }
}

/* Case study V2: proof-first editorial layout. */
body[data-route^="/work/"] .page-hero h1,
body[data-route^="/pl/realizacje/"] .page-hero h1 {
  max-width: 590px;
  font-size: clamp(2.35rem, 3.35vw, 3.3rem);
  line-height: 1.01;
}
body[data-route^="/work/"] .page-hero .lead,
body[data-route^="/pl/realizacje/"] .page-hero .lead { max-width: 610px; }
body[data-route^="/work/"] .page-hero,
body[data-route^="/pl/realizacje/"] .page-hero { padding-top: 54px; padding-bottom: 46px; }
body[data-route^="/work/"] .hero-facts,
body[data-route^="/pl/realizacje/"] .hero-facts { margin-top: 20px; }
@media (max-width: 680px) {
  body[data-route^="/work/"] .page-hero h1,
  body[data-route^="/pl/realizacje/"] .page-hero h1 { font-size: clamp(1.85rem, 8vw, 2.3rem); }
  body[data-route^="/work/"] .page-hero,
  body[data-route^="/pl/realizacje/"] .page-hero { padding-top: 32px; padding-bottom: 28px; }
}

/* Case study V3: denser sales flow, contribution before context. */
body[data-route^="/work/"] .content-section,
body[data-route^="/pl/realizacje/"] .content-section { padding-top: 48px; padding-bottom: 48px; }
body[data-route^="/work/"] .section-heading,
body[data-route^="/pl/realizacje/"] .section-heading { margin-bottom: 22px; }
body[data-route^="/work/"] .hero-facts dt,
body[data-route^="/pl/realizacje/"] .hero-facts dt { display: none; }
body[data-route^="/work/"] .hero-facts dd,
body[data-route^="/pl/realizacje/"] .hero-facts dd { margin: 0; color: var(--text); font-size: .84rem; line-height: 1.4; }
body[data-route^="/work/"] #attribution,
body[data-route^="/pl/realizacje/"] #attribution { padding-top: 28px; padding-bottom: 28px; }
body[data-route^="/work/"] #attribution .section-heading,
body[data-route^="/pl/realizacje/"] #attribution .section-heading { max-width: 820px; margin-bottom: 0; }
@media (min-width: 921px) {
  body[data-route^="/work/"] .hero-layout,
  body[data-route^="/pl/realizacje/"] .hero-layout { grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); gap: 54px; }
}
@media (max-width: 680px) {
  body[data-route^="/work/"] .content-section,
  body[data-route^="/pl/realizacje/"] .content-section { padding-top: 38px; padding-bottom: 38px; }
}
/* P14.3a Services mobile LCP follow-up. Keep below-fold content out of initial layout work. */
body[data-route="/services"] #problems,
body[data-route="/services"] #ai,
body[data-route="/services"] #proof,
body[data-route="/services"] #process,
body[data-route="/services"] #contact,
body[data-route="/pl/uslugi"] #problems,
body[data-route="/pl/uslugi"] #ai,
body[data-route="/pl/uslugi"] #proof,
body[data-route="/pl/uslugi"] #process,
body[data-route="/pl/uslugi"] #contact {
  content-visibility: auto;
  contain-intrinsic-size: 640px;
}

@media (max-width: 680px) {
  body[data-route="/services"] .hero-split h1,
  body[data-route="/pl/uslugi"] .hero-split h1 {
    max-width: 360px;
    font-size: clamp(1.78rem, 7.8vw, 2.2rem);
    line-height: .98;
  }
}

/* Premium pass P0.1, proof-first homepage hierarchy. */
.hero-proof {
  margin-top: 26px;
  max-width: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 22px;
  padding: 15px 0 16px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.hero-proof-kicker {
  grid-column: 1 / -1;
  color: var(--accent-cyan);
  font: 700 .62rem/1.2 var(--font-tech);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-proof > strong { font-size: 1rem; letter-spacing: -.015em; }
.hero-proof > p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.hero-proof-link {
  grid-column: 2;
  grid-row: 2 / span 2;
  align-self: center;
  color: var(--muted-strong);
  font-size: .74rem;
  white-space: nowrap;
}
.hero-proof:hover .hero-proof-link,
.hero-proof:hover > strong { color: var(--accent-cyan); }
body[data-route="/"] #work .section-heading,
body[data-route="/pl"] #work .section-heading { max-width: 850px; }
body[data-route="/"] #work .media-grid,
body[data-route="/pl"] #work .media-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, .75fr);
  gap: 20px;
}
body[data-route="/"] #work .media-proof:first-child,
body[data-route="/pl"] #work .media-proof:first-child {
  border-color: rgba(113,215,246,.28);
  background: linear-gradient(180deg, rgba(15,23,32,.98), rgba(7,11,16,.99));
}
body[data-route="/"] #work .media-proof:first-child .video-frame,
body[data-route="/pl"] #work .media-proof:first-child .video-frame { aspect-ratio: 16 / 8.4; }
body[data-route="/"] #work .media-proof:first-child .media-caption h3,
body[data-route="/pl"] #work .media-proof:first-child .media-caption h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
}
body[data-route="/"] #work .card-grid,
body[data-route="/pl"] #work .card-grid { margin-top: 32px; }
@media (max-width: 920px) {
  body[data-route="/"] #work .media-grid,
  body[data-route="/pl"] #work .media-grid { grid-template-columns: 1fr; }
  body[data-route="/"] #work .media-proof:first-child .video-frame,
  body[data-route="/pl"] #work .media-proof:first-child .video-frame { aspect-ratio: 16 / 9; }
}
@media (max-width: 680px) {
  .hero-proof { grid-template-columns: 1fr; gap: 7px; margin-top: 22px; }
  .hero-proof-link { grid-column: 1; grid-row: auto; margin-top: 4px; }
}

/* Technologies P3.1, production system flow. */
.section-system-flow .section-heading { max-width: 820px; }
.technology-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.technology-flow-stage {
  position: relative;
  min-width: 0;
  padding: 24px 26px 26px 0;
  border-right: 1px solid var(--line);
}
.technology-flow-stage:not(:first-child) { padding-left: 26px; }
.technology-flow-stage:last-child { border-right: 0; padding-right: 0; }
.technology-flow-index {
  display: block;
  margin-bottom: 26px;
  color: var(--accent-cyan);
  font: 700 .62rem/1 var(--font-tech);
  letter-spacing: .1em;
}
.technology-flow-stage h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: -.015em;
}
.technology-flow-stage p {
  margin: 0;
  color: #aeb9c8;
  font-size: .91rem;
  line-height: 1.62;
}
.technology-flow-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: 18px;
}
.technology-flow-links a {
  color: var(--muted-strong);
  font-size: .72rem;
  font-weight: 750;
  border-bottom: 1px solid rgba(113,215,246,.26);
}
.technology-flow-links a:hover { color: var(--accent-cyan); }
body[data-route="/technologies"] #outcomes,
body[data-route="/pl/technologie"] #outcomes { padding-top: 48px; }
body[data-route="/technologies"] #stack,
body[data-route="/pl/technologie"] #stack { padding-top: 34px; padding-bottom: 42px; }
@media (max-width: 920px) {
  .technology-flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .technology-flow-stage:nth-child(2) { border-right: 0; }
  .technology-flow-stage:nth-child(n+3) { border-top: 1px solid var(--line); }
  .technology-flow-stage:nth-child(3) { padding-left: 0; }
}
@media (max-width: 680px) {
  .technology-flow-grid { grid-template-columns: 1fr; }
  .technology-flow-stage,
  .technology-flow-stage:not(:first-child) {
    padding: 20px 0 22px;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .technology-flow-stage:first-child { border-top: 0; }
  .technology-flow-index { margin-bottom: 14px; }
  .technology-flow-links { margin-top: 14px; }
  body[data-route="/technologies"] #outcomes,
  body[data-route="/pl/technologie"] #outcomes { padding-top: 40px; }
}

/* Premium P4, restrained motion and interaction. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 160ms; animation-timing-function: ease-out; }

@keyframes technologyFlowSweep {
  from { transform: translateX(-120%); }
  to { transform: translateX(620%); }
}

@media (min-width: 921px) and (prefers-reduced-motion: no-preference) {
  .technology-flow-grid { position: relative; overflow: hidden; }
  .technology-flow-grid::before {
    content: ''; position: absolute; z-index: 2; top: -1px; left: 0;
    width: 18%; height: 1px; pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: .72; animation: technologyFlowSweep 7s linear infinite;
  }
}

/* Contact P6.1, optional structured project qualification. */
.project-context-fieldset {
  min-width: 0;
  margin: 2px 0 0;
  padding: 22px 0 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
}
.project-context-fieldset legend {
  padding: 0;
  color: var(--text);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.project-context-intro {
  margin: 8px 0 16px;
  max-width: 620px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.55;
}
.project-context-grid select { min-height: 47px; }
@media (max-width: 620px) {
  .project-context-fieldset { padding-top: 18px; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .technology-flow-stage { transition: background-color 180ms ease, transform 180ms ease; }
  .technology-flow-stage h3 { transition: color 180ms ease; }
  .technology-flow-stage:hover { transform: translateY(-2px); background: rgba(113,215,246,.035); }
  .technology-flow-stage:hover h3 { color: var(--accent-cyan); }
  .media-proof { transition: transform 180ms ease, border-color 180ms ease; }
  .media-proof:hover { transform: translateY(-3px); border-color: rgba(113,215,246,.34); }
  .matrix-item-link { transition: background-color 160ms ease; }
  .matrix-item-link:hover { background: rgba(113,215,246,.025); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .001ms; }
  .technology-flow-grid::before { display: none; animation: none; }
  .technology-flow-stage, .technology-flow-stage h3, .media-proof, .matrix-item-link { transition: none; transform: none; }
}

/* Homepage hero: large interactive production map. */
body[data-route="/"] .page-hero.hero-split,
body[data-route="/pl"] .page-hero.hero-split {
  padding-top: clamp(46px, 6vw, 82px);
  padding-bottom: clamp(48px, 7vw, 92px);
}
body[data-route="/"] .page-hero .hero-layout,
body[data-route="/pl"] .page-hero .hero-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(34px, 4vw, 54px);
  align-items: start;
}
body[data-route="/"] .page-hero .hero-copy,
body[data-route="/pl"] .page-hero .hero-copy {
  max-width: 930px;
}
body[data-route="/"] .page-hero .hero-copy h1,
body[data-route="/pl"] .page-hero .hero-copy h1 {
  max-width: 880px;
  font-size: clamp(3rem, 5vw, 4.85rem);
}
body[data-route="/"] .page-hero .hero-facts,
body[data-route="/pl"] .page-hero .hero-facts {
  max-width: 860px;
}
body[data-route="/"] .page-hero .hero-visual,
body[data-route="/pl"] .page-hero .hero-visual {
  position: relative;
  width: min(1440px, calc(100vw - 64px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}
body[data-route="/"] .page-hero .hero-visual .asset-frame,
body[data-route="/pl"] .page-hero .hero-visual .asset-frame {
  cursor: zoom-in;
  border-color: rgba(113,215,246,.24);
  box-shadow: 0 34px 90px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.035);
  background: #080d13;
}
body[data-route="/"] .page-hero .hero-visual img,
body[data-route="/pl"] .page-hero .hero-visual img {
  width: 100%;
  min-height: 0;
}
body[data-route="/"] .page-hero .hero-visual::after,
body[data-route="/pl"] .page-hero .hero-visual::after {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 4;
  padding: 7px 10px;
  border: 1px solid rgba(113,215,246,.25);
  background: rgba(5,9,14,.78);
  color: var(--accent-cyan);
  font: 650 .62rem/1 var(--font-tech);
  letter-spacing: .1em;
  pointer-events: none;
}
body[data-route="/"] .page-hero .hero-visual::after { content: "CLICK TO EXPAND"; }
body[data-route="/pl"] .page-hero .hero-visual::after { content: "KLIKNIJ, ABY POWIĘKSZYĆ"; }
.visual-lightbox {
  width: min(96vw, 1680px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 1px solid rgba(113,215,246,.28);
  border-radius: 8px;
  background: #05090e;
  box-shadow: 0 50px 140px rgba(0,0,0,.68);
  overflow: hidden;
}
.visual-lightbox::backdrop {
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(8px);
}
.visual-lightbox-shell { position: relative; }
.visual-lightbox img {
  display: block;
  width: 100%;
  max-height: 91vh;
  object-fit: contain;
  background: #080d13;
}
.visual-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  min-width: 42px;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(5,9,14,.86);
  color: #f4f7fb;
  font: 700 1rem/1 var(--font-tech);
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body[data-route="/"] .page-hero .hero-visual .asset-frame:hover,
  body[data-route="/pl"] .page-hero .hero-visual .asset-frame:hover {
    transform: translateY(-4px) scale(1.006);
    border-color: rgba(113,215,246,.46);
    box-shadow: 0 44px 120px rgba(0,0,0,.42), 0 0 54px rgba(113,215,246,.07);
  }
}
@media (max-width: 920px) {
  body[data-route="/"] .page-hero .hero-visual,
  body[data-route="/pl"] .page-hero .hero-visual {
    width: min(100%, calc(100vw - 36px));
  }
}
@media (max-width: 680px) {
  body[data-route="/"] .page-hero .hero-copy h1,
  body[data-route="/pl"] .page-hero .hero-copy h1 {
    font-size: clamp(2.1rem, 9.4vw, 2.9rem);
  }
  body[data-route="/"] .page-hero .hero-visual,
  body[data-route="/pl"] .page-hero .hero-visual {
    width: calc(100vw - 20px);
  }
  body[data-route="/"] .page-hero .hero-visual::after,
  body[data-route="/pl"] .page-hero .hero-visual::after {
    right: 10px;
    bottom: 9px;
    font-size: .55rem;
  }
}
@media (min-width: 1080px) {
  body[data-route="/"] .page-hero .hero-copy,
  body[data-route="/pl"] .page-hero .hero-copy {
    display: grid;
    min-width: 0;
    width: 100%;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .7fr);
    column-gap: clamp(48px, 6vw, 88px);
    align-items: start;
    max-width: none;
  }
  body[data-route="/"] .page-hero .hero-copy > .eyebrow,
  body[data-route="/pl"] .page-hero .hero-copy > .eyebrow,
  body[data-route="/"] .page-hero .hero-copy > h1,
  body[data-route="/pl"] .page-hero .hero-copy > h1,
  body[data-route="/"] .page-hero .hero-copy > .lead,
  body[data-route="/pl"] .page-hero .hero-copy > .lead,
  body[data-route="/"] .page-hero .hero-copy > .actions,
  body[data-route="/pl"] .page-hero .hero-copy > .actions { grid-column: 1; }
  body[data-route="/"] .page-hero .hero-proof,
  body[data-route="/pl"] .page-hero .hero-proof {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: end;
    margin-top: 0;
    max-width: none;
  }
  body[data-route="/"] .page-hero .hero-facts,
  body[data-route="/pl"] .page-hero .hero-facts {
    grid-column: 2;
    grid-row: 4 / span 2;
    grid-template-columns: 1fr;
    align-self: start;
    margin-top: 18px;
    max-width: none;
  }
  body[data-route="/"] .page-hero .hero-facts div,
  body[data-route="/pl"] .page-hero .hero-facts div {
    padding: 13px 15px;
  }
}
@media (min-width: 1080px) {
  body[data-route="/"] .page-hero .hero-copy,
  body[data-route="/pl"] .page-hero .hero-copy {
    grid-template-columns: minmax(0, 1.5fr) minmax(340px, .72fr);
  }
  body[data-route="/"] .page-hero .hero-proof,
  body[data-route="/pl"] .page-hero .hero-proof {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  body[data-route="/"] .page-hero .hero-proof-link,
  body[data-route="/pl"] .page-hero .hero-proof-link {
    grid-column: 1;
    grid-row: auto;
    margin-top: 5px;
    white-space: normal;
  }
}

/* Visual batch 2026-09-09: AI hero facts read as a compact 2x2 system. */
body[data-route="/ai-production-automation"] .hero-facts,
body[data-route="/pl/ai-automatyzacja"] .hero-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 620px) {
  body[data-route="/ai-production-automation"] .hero-facts,
  body[data-route="/pl/ai-automatyzacja"] .hero-facts { grid-template-columns: 1fr; }
}

/* All hero production visuals can expand for closer inspection. */
.hero-visual-expandable { position: relative; }
.hero-visual-expandable .asset-frame-expandable {
  position: relative;
  cursor: zoom-in;
  border-color: rgba(113,215,246,.22);
}
.hero-visual-expandable .asset-frame-expandable::after {
  content: attr(data-expand-label);
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 4;
  padding: 6px 9px;
  border: 1px solid rgba(113,215,246,.22);
  background: rgba(5,9,14,.78);
  color: var(--accent-cyan);
  font: 650 .58rem/1 var(--font-tech);
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-visual-expandable .asset-frame-expandable:hover {
    transform: translateY(-3px) scale(1.004);
    border-color: rgba(113,215,246,.42);
    box-shadow: 0 32px 86px rgba(0,0,0,.36), 0 0 46px rgba(113,215,246,.055);
  }
}
@media (max-width: 680px) {
  .hero-visual-expandable .asset-frame-expandable::after { right: 8px; bottom: 7px; font-size: .52rem; }
}

/* Portfolio and About heroes prioritize real production evidence. */
@media (min-width: 1080px) {
  body[data-route="/work"] .hero-layout, body[data-route="/pl/realizacje"] .hero-layout,
  body[data-route="/about"] .hero-layout, body[data-route="/pl/o-nas"] .hero-layout {
    grid-template-columns: minmax(0,.74fr) minmax(0,1.26fr);
    gap: clamp(32px,4vw,58px);
  }
}

/* Contact conversion proof, real project context beside the enquiry form. */
.contact-proof-rail { margin-top: 28px; display: grid; gap: 10px; }
.contact-proof-label { margin: 0 0 2px; color: var(--accent-cyan); font: 650 .61rem/1.2 var(--font-tech); letter-spacing: .1em; text-transform: uppercase; }
.contact-proof-card { display: grid; grid-template-columns: 112px minmax(0,1fr); min-height: 72px; overflow: hidden; border: 1px solid var(--line); background: rgba(11,15,22,.74); color: inherit; text-decoration: none; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.contact-proof-card img { width: 112px; height: 72px; object-fit: cover; display: block; }
.contact-proof-card span { min-width: 0; padding: 11px 12px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.contact-proof-card strong { color: var(--text); font-size: .77rem; line-height: 1.25; }
.contact-proof-card small { color: var(--quiet); font: 600 .59rem/1.35 var(--font-tech); letter-spacing: .035em; }
@media (hover:hover) and (pointer:fine) { .contact-proof-card:hover { transform: translateX(3px); border-color: rgba(113,215,246,.42); background: rgba(15,21,30,.9); } }
@media (max-width: 820px) { .contact-proof-rail { grid-template-columns: repeat(3,minmax(0,1fr)); } .contact-proof-label { grid-column: 1 / -1; } .contact-proof-card { display:block; } .contact-proof-card img { width:100%; height:100px; } }
@media (max-width: 620px) { .contact-proof-rail { grid-template-columns:1fr; } .contact-proof-card { display:grid; grid-template-columns:112px minmax(0,1fr); } .contact-proof-card img { width:112px; height:72px; } }

.hero-attribution{margin-top:1rem;padding:1rem 1.1rem;border:1px solid var(--line,rgba(255,255,255,.16));border-radius:14px;background:rgba(255,255,255,.035)}
.hero-attribution span{display:block;font-size:.74rem;letter-spacing:.08em;text-transform:uppercase;opacity:.72;margin-bottom:.35rem}
.hero-attribution strong{display:block;font-size:1rem}.hero-attribution p{margin:.4rem 0 0;opacity:.82;max-width:62ch}
.article-meta a{text-decoration:underline;text-underline-offset:3px}
