/* ── Google Fonts loaded via functions.php ───────────── */

/* ── Zalando Sans (place font files in assets/fonts/) ── */
@font-face {
  font-family: 'Zalando Sans';
  src: url('../fonts/ZalandoSans-ExtraBold.woff2') format('woff2'),
       url('../fonts/ZalandoSans-ExtraBold.woff')  format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Zalando Sans';
  src: url('../fonts/ZalandoSans-Bold.woff2') format('woff2'),
       url('../fonts/ZalandoSans-Bold.woff')  format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --blue:    #6D28D9;
  --blue-10: rgba(109,40,217,.08);
  --blue-20: rgba(109,40,217,.18);
  --orange:  #FF5400;
  --bg:      #F4F3EE;
  --white:   #FFFFFF;
  --black:   #0A0A08;
  --text:    #1C1C1A;
  --muted:   #6E6E68;
  --border:  #E0DED8;
  --surface: #FFFFFF;
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.87, 0, 0.13, 1);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 8px 32px rgba(0,0,0,.1),  0 2px 8px rgba(0,0,0,.06);
  --shadow-lg:  0 20px 64px rgba(0,0,0,.13), 0 6px 20px rgba(0,0,0,.07);
  --shadow-xl:  0 32px 80px rgba(0,0,0,.16), 0 8px 24px rgba(0,0,0,.08);
  --glass-bg:   rgba(255,255,255,.55);
  --glass-border: rgba(255,255,255,.75);
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Urbanist', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
@media (hover: none) { body { cursor: auto; } }
a, button { color: inherit; text-decoration: none; cursor: none; }
@media (hover: none) { a, button { cursor: pointer; } }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Custom cursor ──────────────────────────────────── */
.cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  top: 0; left: 0;
}
.cursor__dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s;
}
.cursor__ring {
  position: absolute;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  transform: translate(-50%, -50%);
  opacity: .45;
  transition: width .35s var(--ease), height .35s var(--ease), border-color .2s, opacity .2s;
}
body.cur-hover .cursor__dot  { width: 14px; height: 14px; background: var(--orange); }
body.cur-hover .cursor__ring { width: 60px; height: 60px; border-color: var(--orange); opacity: .35; }

/* ── Layout ─────────────────────────────────────────── */
.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: 120px; }

/* ── Type ───────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Zalando Sans', 'Urbanist', system-ui, sans-serif;
}
h1 {
  font-size: clamp(3rem, 6.5vw, 5.75rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.035em;
}
h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.03em;
}
h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.label::before {
  content: '';
  width: 18px; height: 1.5px;
  background: var(--blue);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 700;
  border: none;
  white-space: nowrap;
  transition: box-shadow .3s, transform .4s var(--ease);
  will-change: transform;
}
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn--orange {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(255,84,0,.35);
}
.btn--orange:hover { box-shadow: 0 8px 40px rgba(255,84,0,.5); }
.btn--outline {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
  border: 1.5px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}
.btn--outline:hover { border-color: rgba(0,0,0,.25); box-shadow: var(--shadow-md); }
.btn--blue {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(109,40,217,.28);
}
.btn--blue:hover { box-shadow: 0 8px 40px rgba(109,40,217,.45); }
.btn--lg { padding: 1.1rem 2.25rem; font-size: 1rem; }

/* ── NAV ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: 1.25rem;
  transition: background .3s, box-shadow .3s;
}
.nav.stuck {
  background: rgba(244,243,238,.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--glass-border), var(--shadow-md);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav__logo { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.3rem; font-weight: 800; letter-spacing: -.04em; color: var(--black); }
.nav__logo img { height: 32px; width: auto; display: block; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav__links a {
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  transition: color .2s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1.5px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__links a:hover { color: var(--black); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__end { display: flex; gap: .75rem; }
.nav__ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav__ham span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: .2s;
}

/* ── HERO ─────────────────────────────────────────────── */
.hero { padding-block: 188px 120px; position: relative; overflow: hidden; }

/* Themed background: dot grid + brand blobs */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(109,40,217,.12) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 100%);
}
.blob {
  position: absolute;
  filter: blur(90px);
  will-change: transform, border-radius;
}
.blob-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(109,40,217,.5), rgba(109,40,217,.12));
  top: -160px; right: -60px;
  animation: blobMorph1 14s ease-in-out infinite alternate;
}
.blob-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,84,0,.38), rgba(255,84,0,.08));
  bottom: -80px; left: 15%;
  animation: blobMorph2 17s ease-in-out infinite alternate;
  animation-delay: -5s;
}
.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(167,139,250,.45), transparent);
  top: 30%; left: -60px;
  animation: blobMorph3 11s ease-in-out infinite alternate;
  animation-delay: -9s;
}
@keyframes blobMorph1 {
  0%   { transform: translateY(0) scale(1);     border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
  33%  { transform: translateY(-28px) scale(1.04); border-radius: 40% 60% 45% 55% / 60% 40% 60% 40%; }
  66%  { transform: translateY(-18px) scale(1.08); border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%; }
  100% { transform: translateY(-44px) scale(1.05); border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%; }
}
@keyframes blobMorph2 {
  0%   { transform: translateY(0) scale(1);     border-radius: 50% 60% 40% 55% / 55% 45% 60% 40%; }
  40%  { transform: translateY(-22px) scale(1.06); border-radius: 65% 35% 55% 45% / 40% 60% 45% 55%; }
  70%  { transform: translateY(-12px) scale(1.03); border-radius: 40% 60% 65% 35% / 60% 40% 50% 50%; }
  100% { transform: translateY(-36px) scale(1.07); border-radius: 55% 45% 40% 60% / 50% 50% 40% 60%; }
}
@keyframes blobMorph3 {
  0%   { transform: translateY(0) scale(1);     border-radius: 40% 60% 50% 50% / 55% 50% 50% 45%; }
  50%  { transform: translateY(-30px) scale(1.1); border-radius: 60% 40% 45% 55% / 45% 55% 60% 40%; }
  100% { transform: translateY(-16px) scale(1.05); border-radius: 50% 50% 60% 40% / 40% 60% 45% 55%; }
}
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

@keyframes bgKenBurns1 {
  from { transform: scale(1)    translate(0, 0); }
  to   { transform: scale(1.08) translate(-2%, 1.5%); }
}
@keyframes bgKenBurns2 {
  from { transform: scale(1.06) translate(1.5%, 0); }
  to   { transform: scale(1)    translate(-1%, -2%); }
}
@media (prefers-reduced-motion: reduce) {
  .why::before, .cta-s::after, .hero__bg-photo { animation: none; }
}

.hero > .container { position: relative; z-index: 1; }

/* Line reveal: words slide up from clip */
.lw { overflow: hidden; }
.lw .l {
  display: block;
  transform: translateY(110%);
  transition: transform .95s var(--ease);
}
.h1-anim.go .lw .l             { transform: translateY(0); }
.h1-anim.go .lw:nth-child(2) .l { transition-delay: .07s; }
.h1-anim.go .lw:nth-child(3) .l { transition-delay: .14s; }

/* Hero centered */
.hero__inner { text-align: center; max-width: 900px; margin-inline: auto; }
.hero h1 { color: var(--black); margin-bottom: 0; }
.hero__blue { color: var(--blue); }

/* Underline draw */
.hero__underline {
  display: block;
  height: 3px;
  background: var(--blue);
  width: 0;
  border-radius: 2px;
  margin: .4rem auto 0;
  transition: width 1s var(--ease) .6s;
}
.h1-anim.go .hero__underline { width: 100%; }

/* Glassmorphism hero panel */
.hero__panel {
  margin-top: 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.25rem 2.75rem;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.9);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease .45s, transform .7s ease .45s;
}
.hero__panel.go { opacity: 1; transform: none; }
.hero__sub {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}
.hero__ctas { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* Stats — glass pills */
.hero__stats {
  display: flex;
  gap: 0;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease .7s, transform .6s ease .7s;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.9);
  overflow: hidden;
}
.hero__stats.go { opacity: 1; transform: none; }
.hero__stat {
  flex: 1;
  padding: 1.25rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,.6);
  text-align: center;
}
.hero__stat:last-child { border-right: none; }
.hstat__val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -.04em;
  line-height: 1;
}
.hstat__val em { font-style: normal; color: var(--blue); }
.hstat__lbl { font-size: .78rem; color: var(--muted); margin-top: .3rem; font-weight: 500; }

/* ── TECH STRIP ───────────────────────────────────────── */
.tech { padding-block: 24px; border-block: 1px solid var(--border); background: var(--white); overflow: hidden; }
.tech__label { text-align: center; margin-bottom: 1rem; }
.tech__overflow {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.tech__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .tech__track { animation: none; } }
.tech__set {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  padding-right: 2.75rem; /* matches gap → seamless join */
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ti {
  display: flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: #C4C2BA; white-space: nowrap; transition: color .2s;
}
.ti:hover { color: var(--muted); }
.ti svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── SERVICES ─────────────────────────────────────────── */
.services__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3.5rem;
}
.services__head h2 { color: var(--black); margin-top: .75rem; }
.services__head p  { color: var(--muted); max-width: 340px; font-size: .95rem; line-height: 1.75; }
.scards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.sc {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.9);
  transition: box-shadow .4s var(--ease), border-color .3s, transform .4s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
  opacity: 0;
  transform: translateY(44px);
}
.sc.in {
  transition:
    opacity .7s var(--ease),
    transform .7s var(--ease),
    box-shadow .4s var(--ease),
    border-color .3s;
  opacity: 1;
  transform: translateY(0) perspective(900px) rotateX(0deg) rotateY(0deg);
}
.sc:nth-child(2).in { transition-delay: .1s; }
.sc:nth-child(3).in { transition-delay: .2s; }
.sc:hover {
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(109,40,217,.2), inset 0 1px 0 rgba(255,255,255,.95);
  border-color: rgba(109,40,217,.35);
}
/* Accent card variants */
.sc--violet {
  background: linear-gradient(135deg, #6D28D9 0%, #4C1D95 100%);
  border-color: rgba(255,255,255,.2);
  box-shadow: 0 8px 40px rgba(109,40,217,.45), inset 0 1px 0 rgba(255,255,255,.2);
}
.sc.sc--violet .sc__num  { color: rgba(255,255,255,.5) !important; }
.sc.sc--violet .sc__icon { color: rgba(255,255,255,.9); }
.sc.sc--violet h3        { color: #fff; }
.sc.sc--violet p         { color: rgba(255,255,255,.7); }

.sc--dark {
  background: linear-gradient(135deg, #0A0A08 0%, #1a1a16 100%);
  border-color: rgba(255,255,255,.1);
  box-shadow: 0 8px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
}
.sc.sc--dark .sc__num  { color: rgba(255,255,255,.4) !important; }
.sc.sc--dark .sc__icon { color: var(--orange); }
.sc.sc--dark h3        { color: #fff; }
.sc.sc--dark p         { color: rgba(255,255,255,.5); }

.sc__num {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  color: #D0CEC8; margin-bottom: 1.75rem;
}
.sc__icon { width: 44px; height: 44px; color: var(--blue); margin-bottom: 1.5rem; }
.sc h3 { color: var(--black); margin-bottom: .75rem; }
.sc p  { color: var(--muted); font-size: .9rem; line-height: 1.75; }
.sc__more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1.5rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--blue);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .2s, transform .2s, gap .2s;
}
.sc:hover .sc__more { opacity: 1; transform: none; }
.sc__more:hover { gap: .6rem; }

/* ── WHY US ────────────────────────────────────────────── */
.why { background: var(--white); position: relative; overflow: hidden; }
.why::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/bartechit-3.webp') center/cover no-repeat;
  opacity: .13;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
  animation: bgKenBurns1 8s ease-in-out infinite alternate;
}
.why .container { position: relative; z-index: 1; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.why__l h2 { color: var(--black); margin-block: .75rem 1rem; }
.why__l > p { color: var(--muted); margin-bottom: 2.25rem; }
.why__item {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateX(-24px);
  transition: opacity .55s ease, transform .55s ease;
}
.why__item.in { opacity: 1; transform: none; }
.why__item:nth-child(1) { transition-delay: 0s; }
.why__item:nth-child(2) { transition-delay: .07s; }
.why__item:nth-child(3) { transition-delay: .14s; }
.why__item:nth-child(4) { transition-delay: .21s; }
.why__chk {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-10); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); margin-top: 2px;
}
.why__item strong { display: block; color: var(--black); font-weight: 700; margin-bottom: .25rem; }
.why__item p { color: var(--muted); font-size: .875rem; }
.why__stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(255,255,255,.4);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.wstat {
  background: rgba(255,255,255,.55);
  padding: 2rem;
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.wstat.in { opacity: 1; transform: none; }
.wstat:nth-child(2) { transition-delay: .08s; }
.wstat:nth-child(3) { transition-delay: .16s; }
.wstat:nth-child(4) { transition-delay: .24s; }
.wstat__n {
  font-size: 2.8rem; font-weight: 800; color: var(--black);
  letter-spacing: -.04em; line-height: 1;
}
.wstat__n em { font-style: normal; color: var(--blue); }
.wstat__l { font-size: .8rem; color: var(--muted); margin-top: .4rem; font-weight: 500; }
.why__quote {
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--blue);
  border-radius: 12px;
  padding: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.9);
}
.why__quote p { font-style: italic; font-size: .9rem; color: var(--muted); line-height: 1.75; }
.why__quote-by { font-size: .75rem; font-weight: 700; color: #BBBBBB; text-transform: uppercase; letter-spacing: .07em; margin-top: .75rem; }

/* ── PROCESS ──────────────────────────────────────────── */
.process__head { max-width: 500px; margin-bottom: 4.5rem; }
.process__head h2 { color: var(--black); margin-top: .75rem; }
.process__wrap { position: relative; }
/* connecting line */
.proc-line {
  position: absolute; top: 26px;
  left: 26px; right: 26px;
  height: 1px; background: var(--border);
  overflow: hidden;
}
.proc-line__fill {
  height: 100%; background: var(--blue);
  width: 0; transition: width 1.4s var(--ease);
}
.proc-line__fill.in { width: 100%; }
.proc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
.ps {
  opacity: 0; transform: translateY(32px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.ps.in { opacity: 1; transform: none; }
.ps:nth-child(2) { transition-delay: .1s; }
.ps:nth-child(3) { transition-delay: .2s; }
.ps:nth-child(4) { transition-delay: .3s; }
.ps__num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800; color: var(--blue);
  margin-bottom: 1.5rem;
  transition: background .25s, border-color .25s, box-shadow .3s, color .25s;
}
.ps:hover .ps__num {
  background: var(--blue); border-color: var(--blue); color: var(--white);
  box-shadow: 0 8px 32px rgba(109,40,217,.4), var(--shadow-sm);
}
.ps h3 { color: var(--black); font-size: 1rem; margin-bottom: .625rem; }
.ps p  { color: var(--muted); font-size: .875rem; line-height: 1.7; }

/* ── CTA ──────────────────────────────────────────────── */
.cta-s {
  background: var(--black);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* animated bg dot */
.cta-s::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109,40,217,.18), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}
.cta-s::after {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/bartechit-4.webp') center/cover no-repeat;
  opacity: .22;
  mix-blend-mode: luminosity;
  pointer-events: none;
  z-index: 0;
  animation: bgKenBurns2 10s ease-in-out infinite alternate;
}
.cta-s__inner { position: relative; z-index: 2; }
.cta-s h2 { color: var(--white); max-width: 680px; margin-inline: auto; }
.cta-s h2 span { color: var(--blue); }
.cta-s__sub { color: rgba(255,255,255,.45); margin-block: 1.25rem 2.5rem; max-width: 500px; margin-inline: auto; }
.cta-s__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.cta-s__link {
  font-size: .875rem; font-weight: 600;
  color: rgba(255,255,255,.35);
  display: inline-flex; align-items: center; gap: .35rem;
  transition: color .2s;
}
.cta-s__link:hover { color: rgba(255,255,255,.7); }

/* ── POPUP ────────────────────────────────────────────── */
.bt-popup {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.bt-popup.open {
  pointer-events: all;
  opacity: 1;
}
.bt-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,8,.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.bt-popup__box {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem 3rem;
  max-width: 580px;
  width: 100%;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(109,40,217,.08);
  transform: translateY(20px) scale(.97);
  transition: transform .35s var(--ease);
}
.bt-popup.open .bt-popup__box {
  transform: none;
}
.bt-popup__close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
  cursor: none;
}
.bt-popup__close:hover { background: var(--blue); color: var(--white); }
.bt-popup__title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--black);
  margin-bottom: .5rem;
}
.bt-popup__sub {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}
/* WP form plugin reset inside popup */
.bt-popup__body .wpcf7-form,
.bt-popup__body form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.bt-popup__body input,
.bt-popup__body textarea,
.bt-popup__body select {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: .9rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s;
  outline: none;
}
.bt-popup__body input:focus,
.bt-popup__body textarea:focus { border-color: var(--blue); }
.bt-popup__body textarea { min-height: 100px; resize: vertical; }
.bt-popup__body .wpcf7-submit,
.bt-popup__body input[type="submit"],
.bt-popup__body button[type="submit"] {
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 100px;
  padding: .9rem 2rem;
  font-size: .95rem;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 4px 20px rgba(255,84,0,.35);
  cursor: none;
  transition: box-shadow .3s;
}
.bt-popup__body .wpcf7-submit:hover,
.bt-popup__body input[type="submit"]:hover,
.bt-popup__body button[type="submit"]:hover {
  box-shadow: 0 8px 40px rgba(255,84,0,.5);
}

/* ── FOOTER ───────────────────────────────────────────── */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,.07);
  padding-block: 60px 36px;
  position: relative; overflow: hidden;
}
.footer .container { position: relative; z-index: 1; }
.footer__top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem;
  margin-bottom: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer__logo { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .875rem; font-size: 1.25rem; font-weight: 800; letter-spacing: -.04em; color: var(--white); }
.footer__logo img { height: 28px; width: auto; display: block; filter: brightness(0) invert(1); }
.footer__tag { color: rgba(255,255,255,.3); font-size: .875rem; max-width: 200px; line-height: 1.6; }
.footer__soc { display: flex; gap: .5rem; margin-top: 1.5rem; }
.footer__soc a {
  width: 34px; height: 34px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.3); transition: border-color .2s, color .2s;
}
.footer__soc a:hover { border-color: var(--blue); color: var(--blue); }
.footer__col h4 {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.2); margin-bottom: 1.25rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: .625rem; }
.footer__col a { font-size: .875rem; color: rgba(255,255,255,.4); transition: color .2s; }
.footer__col a:hover { color: var(--blue); }
.footer__bot {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer__copy { font-size: .78rem; color: rgba(255,255,255,.2); }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { font-size: .78rem; color: rgba(255,255,255,.2); transition: color .2s; }
.footer__legal a:hover { color: rgba(255,255,255,.45); }

/* ── Reveal helpers ─────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.in { opacity: 1; transform: none; }
.fade-up.d1 { transition-delay: .1s; }
.fade-up.d2 { transition-delay: .2s; }

/* ── Hero bg photo ──────────────────────────────────── */
.hero__bg-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0.09;
  z-index: 0;
  mix-blend-mode: multiply;
  animation: bgKenBurns1 8s ease-in-out infinite alternate;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services__head { flex-direction: column; align-items: flex-start; }
  .scards { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .proc-grid { grid-template-columns: 1fr 1fr; }
  .proc-line { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding-block: 80px; }
  .nav__links, .nav__end .btn--outline { display: none; }
  .nav__ham { display: flex; }
  .hero { padding-block: 148px 80px; }
  .hero__row { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero__ctas { flex-wrap: wrap; }
  .hero__stats { gap: 2.5rem; flex-wrap: wrap; }
  .proc-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bot { flex-direction: column; align-items: flex-start; }
  .bt-popup__box { padding: 1.75rem; }
}
@media (max-width: 480px) {
  h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .hero__ctas { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .wstat__n { font-size: 2.2rem; }
}
