/* CUT INTERACTIVE — static clone */
:root {
  --red: #e11043;
  --green: #68b680;
  --blue: #137cc0;
  --cyan: #0693e3;
  --text: #0f0f0f;
  --white: #fff;
  --header-h: 56px;
  --font: "Open Sans", system-ui, sans-serif;
  --grad-pv: linear-gradient(247deg, rgb(254, 205, 165) 0%, rgb(254, 45, 45) 30%, rgb(107, 0, 62) 70%);
  --grad-vs: linear-gradient(42deg, rgb(202, 248, 128) 0%, rgb(104, 182, 128) 43%, rgb(113, 206, 126) 100%);
  --grad-sid: linear-gradient(96deg, rgb(6, 147, 227) 0%, rgb(61, 74, 135) 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Unikaj malowania „pół” WebP w trakcie pobierania (poza hero — tam WAAPI) */
.intro-mark img,
.clients-canvas img,
.our-logo img {
  opacity: 0;
  transition: opacity 0.28s ease;
}

.intro-mark img.is-decoded,
.clients-canvas img.is-decoded,
.our-logo img.is-decoded {
  opacity: 1;
}

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

a:hover {
  text-decoration: underline;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  height: var(--header-h);
}

/* Customify .customify-container: max-width 1248px + padding 2em (border-box) */
.site-header .container {
  width: min(1248px, 100%);
  max-width: 1248px;
  padding-inline: 2em;
  box-sizing: border-box;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  line-height: 0.9;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  display: block;
  width: auto;
  max-width: 190px;
  height: auto;
}

/* Customify: .site-description.text-uppercase.text-xsmall + typography Bebas 15px */
.brand-tag {
  margin: 5px 0 -9.6px 7px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.2;
  /* body ma antialiased — Bebas na Win wygląda wtedy gorzej niż w oryginale */
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  /* Mega Menu: li margin-right 10px + a padding 0 10px → ~30px between labels */
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  padding: 0 10px;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--red);
  text-decoration: none;
}

.nav-desktop .lang,
.nav-mobile .lang {
  font: inherit;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0 10px;
  color: inherit;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  background: #fff;
  border: 0;
  border-radius: 2px;
  color: #000;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  line-height: 0;
}

.menu-toggle-glyphs {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
}

.menu-toggle svg {
  display: block;
  position: absolute;
  inset: 0;
  width: 24px;
  height: 24px;
}

.menu-toggle-close {
  opacity: 0;
  visibility: hidden;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-menu {
  opacity: 0;
  visibility: hidden;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-close {
  opacity: 1;
  visibility: visible;
}

/* Max Mega Menu mobile: white panel, 14px / 40px rows, text-align right, black */
.nav-mobile {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 999;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile li {
  margin: 0;
  border: 0;
}

.nav-mobile a,
.nav-mobile .lang {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  line-height: 40px;
  padding: 0 10px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #000;
  text-align: right;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.nav-mobile a:hover,
.nav-mobile a[aria-current="page"],
.nav-mobile .lang:hover {
  color: #000;
  background: #fff;
  text-decoration: none;
}

@media (max-width: 900px) {
  .brand-tag {
    display: none;
  }
  .nav-desktop {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
}

/* ——— Intro ——— */
.intro {
  padding: 40px 0 50px;
  background: #fff;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1.1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.intro-mark img {
  width: 180px;
  margin-inline: auto;
}

.intro h3 {
  margin: 0 0 0.75rem;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.45;
}

.intro p {
  margin: 0 0 1rem;
  font-size: 16px;
  color: #000;
}

.btn-outline {
  display: inline-block;
  padding: 0.45rem 1rem;
  border: 2px solid currentColor;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.btn-outline:hover {
  text-decoration: none;
  opacity: 0.85;
}

.btn-outline.green {
  color: var(--green);
}
.btn-outline.blue {
  color: var(--cyan);
}

@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ——— Band sections ——— */
.band {
  color: #fff;
  padding: 50px 0;
}

.band-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}

/* Oryginał WP: kolumny ~25% | 20% | 30% | 25% → copy+cloud = 50% środka (2:3) */
.band.pv .band-inner,
.band.sid .band-inner {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  width: min(50%, 620px);
  max-width: 100%;
  margin-inline: auto;
  gap: 1.25rem;
}

.band-copy {
  text-align: right;
}

.band-copy h2 {
  margin: 0 0 1rem;
  font-size: 30px;
  font-weight: 300;
  line-height: 1.216;
  color: #fff;
}

.band-copy p {
  margin: 0 0 1rem;
  font-size: 16px;
  font-weight: 300;
  color: #fff;
}

.band.pv {
  background: var(--grad-pv);
}
.band.vs {
  background: var(--grad-vs);
}
.band.sid {
  background: var(--grad-sid);
}

/* Buzzwords — 1240×600 composition */
.word-cloud {
  position: relative;
  width: 100%;
  aspect-ratio: 1240 / 600;
  color: #fff;
  font-family: "Open Sans", sans-serif;
  overflow: hidden;
  container-type: inline-size;
}

.word-cloud span {
  position: absolute;
  left: calc(var(--x) / 1240 * 100%);
  top: calc(var(--y) / 600 * 100%);
  margin: 0;
  font-size: calc(var(--fs) * 100cqw / 1240);
  font-weight: var(--fw, 300);
  letter-spacing: calc(var(--ls, 0) * 100cqw / 1240);
  line-height: 1.05;
  white-space: nowrap;
  color: #fff;
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
}

@media (max-width: 900px) {
  .band-inner,
  .band.pv .band-inner,
  .band.sid .band-inner {
    grid-template-columns: 1fr;
    /* keep .container side inset — width:100% was flush to the viewport */
    width: min(1240px, calc(100% - 48px));
    max-width: 100%;
    margin-inline: auto;
  }
  .band-copy {
    text-align: left;
  }
  .band-copy h2 {
    font-size: 29px;
  }
}

/* ——— Carousel ——— */
.carousel-wrap {
  overflow: hidden;
  border-radius: 8px;
}

.carousel-track {
  display: flex;
  gap: 0.75rem;
  /* ~40px/s filmstrip → ~100s for half-track */
  animation: scroll-x 100s linear infinite;
  width: max-content;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-track img {
  width: 320px;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.carousel-track img.is-decoded {
  opacity: 1;
}

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

/* ——— Video band (source 1280×720) ——— */
.video-band {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.video-band video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

/* ——— Contact / clients ——— */
.contact {
  padding: 75px 0 40px;
  text-align: center;
}

.contact h2 {
  margin: 0 0 1.5rem;
  font-size: 30px;
  font-weight: 300;
  line-height: 1.216;
}

.about-contact {
  padding: 40px 0 50px;
  text-align: center;
}

.about-contact h2 {
  margin: 0 0 1.5rem;
  font-size: 30px;
  font-weight: 300;
  line-height: 1.216;
}

.about-contact .contact-card {
  margin: 1.5rem auto 0;
  max-width: 28rem;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

.about-contact .contact-card a {
  color: var(--red);
  font-weight: 500;
}

/* Clients — exact layout from SR slider-7 (1240×300 stage) */
.clients {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  aspect-ratio: 1240 / 300;
  position: relative;
  overflow: hidden;
}

.clients-canvas {
  position: absolute;
  inset: 0;
}

.clients-canvas img {
  position: absolute;
  left: calc(var(--x) / 1240 * 100%);
  top: calc(var(--y) / 300 * 100%);
  width: calc(var(--w) / 1240 * 100%);
  height: calc(var(--h) / 300 * 100%);
  object-fit: contain;
  display: block;
}

.our-logo {
  display: flex;
  justify-content: center;
  margin: 0;
}

.our-logo img {
  width: 120px;
  height: auto;
}

/* ——— Footer ——— */
.site-footer {
  padding: 0;
  text-align: center;
  border-top: none;
}

.footer-bar {
  background: #111;
  padding: 1rem 0;
}

.site-footer .copyright {
  margin: 0;
  font-size: 14px;
  color: #fff;
}

.anchor-pad {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* ——— Scroll to top (WP Scroll Top plugin) ——— */
#scrollUp {
  position: fixed;
  z-index: 99999;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  border-radius: 3px;
  background: #000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 200ms ease, visibility 200ms ease;
}

#scrollUp.is-visible {
  opacity: 0.7;
  visibility: visible;
  pointer-events: auto;
}

#scrollUp.is-visible:hover {
  opacity: 1;
}

#scrollUp .scroll-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

#scrollUp .top-icon {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: bevel;
  stroke-width: 1.5px;
}

/* ——— Custom cursor (WP cursor-4: 14px #ea9999, difference) ——— */
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  body.has-cut-cursor,
  body.has-cut-cursor a,
  body.has-cut-cursor button {
    cursor: none;
  }
}

.cut-cursor {
  --cut-c: #ea9999;
  --cut-s: 14px;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100000;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cut-cursor.is-on {
  opacity: 1;
}

.cut-cursor__a,
.cut-cursor__b {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--cut-s);
  height: var(--cut-s);
  margin: calc(var(--cut-s) / -2) 0 0 calc(var(--cut-s) / -2);
  border-radius: 50%;
  background: var(--cut-c);
  mix-blend-mode: difference;
  pointer-events: none;
  will-change: transform;
}

/* el1 — opacity 0.7 + transition 200ms ease-out (źródło lagu) */
.cut-cursor__a {
  opacity: 0.7;
  transition: transform 200ms ease-out, width 200ms ease-out, height 200ms ease-out,
    margin 200ms ease-out, opacity 200ms ease-out;
}

/* el2 — bez opacity (1), jak w cursor-4 */
.cut-cursor__b {
  opacity: 1;
}

.cut-cursor.no-transition .cut-cursor__a,
.cut-cursor.no-transition .cut-cursor__b {
  transition: none !important;
}

.cut-cursor.is-hover .cut-cursor__b {
  width: calc(var(--cut-s) * 2);
  height: calc(var(--cut-s) * 2);
  margin: calc(var(--cut-s) * -1) 0 0 calc(var(--cut-s) * -1);
  opacity: 0.3;
  transition: width 200ms ease-out, height 200ms ease-out, margin 200ms ease-out,
    opacity 200ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .cut-cursor {
    display: none !important;
  }
  body.has-cut-cursor,
  body.has-cut-cursor a,
  body.has-cut-cursor button {
    cursor: auto;
  }
}
