@font-face { font-family: "Gilroy"; src: url("../fonts/gilroy-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("../fonts/gilroy-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("../fonts/gilroy-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("../fonts/gilroy-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0b0b0c;
  --paper: #ffffff;
  --soft: #f2f2ef;
  --black: #0b0b0c;
  --blue: #1736e6;
  --red: #d8261d;
  --pad: clamp(16px, 3.4vw, 52px);
  --max: 1440px;
  --display: "Gilroy", system-ui, -apple-system, sans-serif;
  --font: "Gilroy", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  --fg: var(--ink);
  --bgc: var(--paper);
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body {
  --muted: rgba(11, 11, 12, .6); --soft-fg: rgba(11, 11, 12, .8); --faint: rgba(11, 11, 12, .38); --hover: rgba(11, 11, 12, .08);
}
body[data-theme="dark"], html:not(.motion) :is(.about, .final, .footer, .it, .design), .final, .footer {
  --fg: #ffffff; --bgc: var(--black);
  --muted: rgba(255, 255, 255, .66); --soft-fg: rgba(255, 255, 255, .84); --faint: rgba(255, 255, 255, .42); --hover: rgba(255, 255, 255, .14);
}
body.lock { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p { margin: 0; }
b { font-weight: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }

/* each section carries its own colour; with motion on, the page colour glides between them instead */
.hero, .services, .clients { background: var(--paper); color: var(--ink); }
.about { background: var(--black); color: #fff; }
.it { background: var(--blue); color: #fff; }
.final, .footer { color: #fff; background: var(--black); animation: cycle 18s ease-in-out infinite; }
@keyframes cycle {
  0%, 26% { background-color: #0b0b0c; }
  33%, 59% { background-color: #1736e6; }
  66%, 92% { background-color: #d8261d; }
  100% { background-color: #0b0b0c; }
}
.design { background: var(--red); color: #fff; }
.motion .hero, .motion .services, .motion .clients, .motion .about,
.motion .it, .motion .design { background: transparent; color: inherit; }

/* ---------- buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h);
  padding: 0 22px;
  border-radius: 14px;
  font: 500 15px/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: background .4s, color .4s, box-shadow .5s var(--ease);
}
.btn svg { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn-ink { background: var(--fg); color: var(--bgc); }
.btn-ink:hover { box-shadow: 0 16px 36px -18px color-mix(in srgb, var(--fg) 70%, transparent); }
.btn-line { box-shadow: inset 0 0 0 1px var(--hover); }
.btn-line:hover { background: var(--hover); }
.btn-paper { background: #fff; color: var(--ink); }
.btn-paper:hover { box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .45); }
.btn-glass { color: #fff; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn-glass:hover { background: rgba(255, 255, 255, .24); }
.btn-soft { background: var(--soft); color: var(--ink); }
.btn-soft:hover { background: #e8e8e4; }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.btn-lg { --h: 58px; padding: 0 30px; font-size: 16px; border-radius: 16px; }
.magnetic { will-change: transform; }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--black); color: #fff;
  display: grid; place-items: center;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-io);
  animation: plAuto .9s var(--ease-io) 4s forwards; /* never blocks the page, even if scripts fail */
}
.preloader.done { clip-path: inset(0 0 100% 0); }
@keyframes plAuto { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
.pl-logo { width: clamp(130px, 13vw, 190px); opacity: 0; animation: plIn .8s .1s var(--ease) forwards; }
@keyframes plIn { to { opacity: 1; } }
.pl-bar { position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad); height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }
.pl-count { position: absolute; right: var(--pad); bottom: calc(var(--pad) + 18px); font: 600 clamp(48px, 7vw, 110px)/.8 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* ---------- cursor label ---------- */
.cursor {
  position: fixed; left: 0; top: 0;
  z-index: 250;
  pointer-events: none;
  padding: 10px 14px;
  border-radius: 12px;
  font: 500 13px/1 var(--font);
  color: var(--ink);
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .3);
  scale: 0;
  transition: scale .35s var(--ease);
  white-space: nowrap;
}
.cursor.on { scale: 1; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- nav ---------- */
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding: 12px var(--pad) 0; }
.nav {
  max-width: var(--max);
  margin: 0 auto;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 10px 0 20px;
  border-radius: 17px;
  color: var(--fg);
  background: color-mix(in srgb, var(--bgc) 62%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 8%, transparent), 0 12px 40px -26px rgba(0, 0, 0, .35);
  transition: color .5s, background .5s;
}
.nav-logo img { height: 16px; width: auto; filter: brightness(0); transition: filter .5s; }
body[data-theme="dark"] .nav-logo img { filter: none; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 9px 13px; border-radius: 10px; font-size: 14px; color: var(--muted); transition: color .25s, background .25s; }
.nav-links a:hover { color: currentColor; background: var(--hover); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; display: flex; padding: 3px; border-radius: 11px; background: var(--hover); }
.lang button { position: relative; z-index: 1; width: 44px; height: 34px; font-size: 13px; border-radius: 8px; color: var(--muted); transition: color .3s; }
.lang button[aria-pressed="true"] { color: var(--ink); }
.lang-thumb { position: absolute; top: 3px; left: 3px; width: 44px; height: 34px; border-radius: 8px; background: #fff; box-shadow: 0 2px 10px -3px rgba(0, 0, 0, .2); transition: transform .5s var(--ease); }
.lang[data-active="en"] .lang-thumb { transform: translateX(44px); }

/* ---------- hero ---------- */
.hero { position: relative; height: 220vh; }
.hero-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; contain: layout paint; }
.hero-top {
  position: absolute; left: 0; right: 0; top: clamp(104px, 15vh, 150px);
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: end; gap: 24px 56px;
}
.hero-title { font: 600 clamp(38px, 4.8vw, 84px)/.98 var(--display); letter-spacing: -.03em; }
.line { display: block; overflow: hidden; padding: 0 .04em .1em; margin-bottom: -.06em; }
.line-in { display: inline-block; will-change: transform; text-wrap: balance; }
.hero-side { padding-bottom: .4em; }
.hero-sub { font-size: clamp(16px, 1.25vw, 18px); color: var(--muted); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-media {
  position: absolute;
  top: calc(clamp(104px, 15vh, 150px) + clamp(120px, 11vw, 190px) + 40px);
  left: var(--pad); right: var(--pad); bottom: var(--pad);
  border-radius: 24px;
  overflow: hidden;
  background: #111113;
  cursor: pointer;
  will-change: top, left, right, bottom;
}
.sr-slides { position: absolute; inset: -16px; }
.sr-slides img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0;
  transform: scale(var(--srs, 1.06));
}
/* the next screen wipes in over the current one: no see-through blending */
.sr-slides img.on { opacity: 1; z-index: 2; animation: wipe 1s var(--ease-io) both; }
.sr-slides img.prev { opacity: 1; z-index: 1; }
@keyframes wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
.hm-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 22px;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent);
}
.hm-name { font-size: 15px; font-weight: 500; }
.hm-progress { display: flex; gap: 6px; }
.hm-progress i { width: 34px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.hm-progress i b { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.hm-progress i.past b { transform: scaleX(1); }
.hm-progress i.on b { animation: hmFill 3.2s linear forwards; }
@keyframes hmFill { to { transform: scaleX(1); } }

/* ---------- about ---------- */
.about { padding: clamp(90px, 15vh, 170px) var(--pad) clamp(100px, 16vh, 180px); }
.about > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.st-text { font: 500 clamp(26px, 3.4vw, 54px)/1.12 var(--display); letter-spacing: -.025em; max-width: 26ch; margin-left: 0; }
.st-text .sw { opacity: .2; }
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: clamp(56px, 10vh, 110px); }
.num { display: flex; flex-direction: column; gap: 10px; }
.num b { font: 600 clamp(56px, 6.4vw, 104px)/.9 var(--display); letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.num:nth-child(1) b { color: #5c79ff; }
.num:nth-child(3) b { color: #ff5a4a; }
.num span { font-size: 16px; color: var(--muted); }

/* ---------- section heads ---------- */
.sec-head {
  max-width: var(--max);
  margin: 0 auto clamp(28px, 5vh, 56px);
  padding: 0 var(--pad);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap;
}
.sec-title { font: 600 clamp(36px, 4.6vw, 72px)/1 var(--display); letter-spacing: -.03em; }
.sec-head p { color: var(--muted); }

/* ---------- IT projects: stacking cards ---------- */
.it { padding-top: clamp(100px, 16vh, 180px); }
.stack { position: relative; }
.panel { position: sticky; top: 0; height: 100svh; }
.card {
  --tint: #f2f2ef; --accent: var(--ink);
  position: absolute; inset: 86px clamp(10px, 1.8vw, 28px) clamp(10px, 1.8vw, 28px);
  border-radius: 30px;
  background: #fff;
  color: var(--ink);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.8fr);
  transform-origin: 50% 0;
  box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, .35);
  cursor: pointer;
  will-change: transform;
}
.c-dim { position: absolute; inset: 0; z-index: 5; background: #000; opacity: 0; pointer-events: none; }
.c-text { position: relative; z-index: 2; padding: clamp(24px, 3vw, 46px); display: flex; flex-direction: column; min-height: 0; }
.c-idx { font-size: 13px; color: rgba(11, 11, 12, .45); }
.c-name { margin-top: auto; font: 600 clamp(34px, 3.8vw, 64px)/.95 var(--display); letter-spacing: -.03em; }
.c-lead { margin-top: 16px; font-size: clamp(15px, 1.15vw, 17px); color: rgba(11, 11, 12, .64); max-width: 36ch; }
.c-stats { display: flex; gap: 30px; margin-top: 24px; }
.c-stats div { display: flex; flex-direction: column; }
.c-stats b { font: 600 clamp(28px, 2.6vw, 42px)/1 var(--display); letter-spacing: -.03em; color: var(--accent); }
.c-stats span { font-size: 13px; color: rgba(11, 11, 12, .5); margin-top: 4px; }
.c-tags { margin-top: 20px; font-size: 14px; color: rgba(11, 11, 12, .55); }
.c-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.c-actions .btn { --h: 46px; padding: 0 20px; font-size: 14px; }
.c-actions .btn-dark { background: var(--ink); color: #fff; }
.c-actions .btn-site { background: var(--soft); color: var(--ink); }
.c-actions .btn-site:hover { background: #e8e8e4; }
.c-stage {
  position: relative;
  container-type: size;
  min-height: 0;
  background: linear-gradient(150deg, var(--tint), #fff 75%);
}
.c-item {
  position: absolute;
  left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  width: min(calc(var(--w) * 1cqw), calc(var(--wh) * 1cqh));
  rotate: calc(var(--r, 0) * 1deg);
  will-change: transform;
}
.c-item-in { border-radius: 12px; overflow: hidden; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .45); }
.c-item.phone .c-item-in { border-radius: clamp(14px, 1.8vw, 26px); }
.c-item img { width: 100%; height: auto; }

/* ---------- design ---------- */
.design { padding: clamp(100px, 16vh, 180px) 0 clamp(90px, 14vh, 160px); overflow: hidden; }
.d-rows { display: flex; flex-direction: column; gap: 14px; cursor: pointer; }
.d-row { display: flex; gap: 14px; width: max-content; will-change: transform; backface-visibility: hidden; }
.d-it { flex: none; height: clamp(180px, 27vh, 300px); border-radius: 16px; overflow: hidden; background: rgba(0, 0, 0, .15); }
.d-row:nth-child(2) .d-it { height: clamp(150px, 21vh, 240px); }
.d-it img { height: 100%; width: auto; transition: scale 1s var(--ease); }
.d-it:hover img { scale: 1.05; }
.d-foot {
  max-width: var(--max);
  margin: clamp(36px, 6vh, 64px) auto 0;
  padding: 0 var(--pad);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.d-text { max-width: 54ch; font-size: clamp(16px, 1.3vw, 19px); color: var(--soft-fg); }

/* ---------- kinetic ---------- */
.kinetic { overflow: hidden; padding-bottom: clamp(60px, 10vh, 110px); }
.k-row { display: flex; width: max-content; will-change: transform; }
.k-item {
  display: inline-flex; align-items: center; gap: .3em;
  padding-right: .3em;
  font: 600 clamp(40px, 5.4vw, 88px)/1.1 var(--display);
  letter-spacing: -.03em;
  white-space: nowrap;
}
.k-item i { font-style: normal; color: var(--red); }
.k-item:nth-child(2n) i { color: var(--blue); }

/* ---------- services ---------- */
.services { padding-top: clamp(100px, 16vh, 180px); }
.svc-list { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: flex; flex-direction: column; gap: 4px; }
.svc {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 380px) 44px;
  align-items: center;
  gap: 12px 24px;
  padding: clamp(18px, 2.4vw, 30px) clamp(14px, 1.6vw, 24px);
  border-radius: 20px;
  transition: background .4s var(--ease);
}
.svc { transition: background .45s var(--ease), color .45s var(--ease); }
.svc:hover { background: var(--blue); color: #fff; }
.svc:hover .svc-d, .svc:hover .svc-n { color: rgba(255, 255, 255, .75); }
.svc-n { font-size: 14px; color: rgba(11, 11, 12, .4); }
.svc-name { font: 600 clamp(28px, 3.4vw, 52px)/1 var(--display); letter-spacing: -.03em; transition: transform .7s var(--ease); }
.svc:hover .svc-name { transform: translateX(10px); }
.svc-d { color: rgba(11, 11, 12, .6); font-size: 15px; }
.svc-arrow { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--soft); transition: background .3s, color .3s, transform .6s var(--ease); }
.svc-arrow svg { width: 14px; height: 14px; }
.svc:hover .svc-arrow { background: #fff; color: var(--blue); transform: rotate(45deg); }
.svc-preview {
  position: fixed; left: 0; top: 0; z-index: 40;
  width: clamp(220px, 20vw, 320px); aspect-ratio: 4 / 3;
  border-radius: 18px; overflow: hidden; pointer-events: none;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .4);
  scale: 0; transition: scale .5s var(--ease);
}
.svc-preview.on { scale: 1; }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (hover: none) { .svc-preview { display: none; } }

/* ---------- clients ---------- */
.clients { padding: clamp(100px, 16vh, 180px) 0 clamp(100px, 16vh, 180px); }
.logo-wall { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 var(--pad); gap: 6px; }
.lw { height: clamp(96px, 9vw, 136px); display: grid; place-items: center; padding: 12px; border-radius: 18px; transition: background .4s; }
.lw:hover { background: var(--soft); }
.lw img { height: var(--lh, 34px); width: auto; max-width: 66%; filter: brightness(0); transition: transform .6s var(--ease); }
.lw:hover img { transform: scale(1.06); }
.wordmark { font: 600 clamp(16px, 1.5vw, 21px)/1.1 var(--display); letter-spacing: -.035em; color: var(--ink); text-align: center; }

/* ---------- final ---------- */
.final { position: relative; min-height: 88svh; display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; }
.final-wall { position: absolute; inset: -10% 0; z-index: -2; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: .32; rotate: -6deg; }
.fw-row { display: flex; gap: 14px; width: max-content; animation: fw 70s linear infinite; will-change: transform; }
.final:not(.live) .fw-row { animation-play-state: paused; }
.fw-row:nth-child(2) { animation-direction: reverse; animation-duration: 80s; }
.fw-row img { height: clamp(120px, 18vh, 200px); width: auto; border-radius: 14px; }
@keyframes fw { to { transform: translateX(-50%); } }
.final::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #0b0b0c; animation: cycle 18s ease-in-out infinite;
  -webkit-mask: radial-gradient(64% 60% at 50% 50%, #000 40%, rgba(0, 0, 0, .7));
  mask: radial-gradient(64% 60% at 50% 50%, #000 40%, rgba(0, 0, 0, .7));
}
.final-in { padding: 120px var(--pad); display: flex; flex-direction: column; align-items: center; }
.final-kicker { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.final-title { font: 600 clamp(28px, 6.4vw, 108px)/1 var(--display); letter-spacing: -.035em; white-space: nowrap; }
.final-sub { margin: 22px 0 36px; font-size: 18px; color: var(--muted); }
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: clamp(28px, 4vw, 48px); }

/* ---------- footer ---------- */
.footer {
  padding: clamp(36px, 6vh, 64px) var(--pad) 32px;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px 32px;
  font-size: 14px;
}
.footer > * { color: var(--muted); }
.footer-logo { height: 18px; width: auto; opacity: 1 !important; }
.footer-links { display: flex; gap: 20px; }
.footer a { color: var(--soft-fg); cursor: pointer; transition: color .25s; }
.footer a:hover { color: currentColor; }

/* ---------- viewer ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%);
  color: var(--ink);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  clip-path: var(--clip-from, inset(0 round 0));
  opacity: 0;
  transition: clip-path .8s var(--ease-io), opacity .35s;
}
.viewer.open { clip-path: inset(0 round 0); opacity: 1; }
.v-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--pad); }
.v-title { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.v-title b { font: 600 20px/1.2 var(--display); letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-title span { font-size: 14px; color: rgba(11, 11, 12, .45); font-variant-numeric: tabular-nums; }
.v-top-end { display: flex; align-items: center; gap: 8px; }
.v-close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--soft); transition: background .25s; }
.v-close:hover { background: #e8e8e4; }
.v-close svg { width: 16px; height: 16px; }
.v-stage { position: relative; overflow: hidden; touch-action: pan-y; cursor: grab; }
.v-stage.drag { cursor: grabbing; }
.v-track { display: flex; height: 100%; transition: transform .8s var(--ease); }
.v-track.dragging { transition: none; }
.v-slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; padding: 8px clamp(16px, 7vw, 120px); }
.v-slide img { max-width: 100%; max-height: 100%; border-radius: 16px; object-fit: contain; user-select: none; -webkit-user-drag: none; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .35); transform: scale(.92); opacity: .3; transition: transform .9s var(--ease), opacity .6s; }
.v-slide.cur img { transform: none; opacity: 1; }
.v-nav { position: absolute; top: 50%; width: 50px; height: 50px; margin-top: -25px; display: grid; place-items: center; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .3); transition: opacity .25s; }
.v-nav:disabled { opacity: .2; pointer-events: none; }
.v-nav svg { width: 18px; height: 18px; }
.v-prev { left: var(--pad); }
.v-next { right: var(--pad); }
.v-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 32px; padding: 14px var(--pad) max(18px, env(safe-area-inset-bottom)); }
.v-lead { font-size: 14px; color: rgba(11, 11, 12, .62); max-width: 600px; }
.v-thumbs { display: flex; gap: 6px; overflow-x: auto; max-width: 60vw; padding: 6px 0 2px; scrollbar-width: none; }
.v-thumbs::-webkit-scrollbar { display: none; }
.v-thumbs button { flex: none; width: 54px; height: 54px; border-radius: 10px; overflow: hidden; opacity: .35; transition: opacity .3s, transform .5s var(--ease); }
.v-thumbs button img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.v-thumbs button[aria-current="true"] { opacity: 1; transform: translateY(-4px); }
.v-thumbs button:hover { opacity: .8; }

/* ---------- motion initial states ---------- */
.motion .line-in { transform: translateY(110%); }
.motion .hero-fade { opacity: 0; transform: translateY(24px); }
.motion [data-reveal] { opacity: 0; transform: translateY(36px); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .svc { grid-template-columns: 36px minmax(0, 1fr) 44px; grid-template-areas: "n name arrow" "n desc arrow"; align-items: center; gap: 6px 16px; }
  .svc-n { grid-area: n; align-self: start; padding-top: .55em; }
  .svc-name { grid-area: name; line-height: 1.05; }
  .svc-d { grid-area: desc; text-align: left; }
  .svc-arrow { grid-area: arrow; align-self: center; }
  .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-links a { padding: 9px 9px; }
  .v-bottom { grid-template-columns: 1fr; }
  .v-thumbs { max-width: 100%; }
  .v-nav { display: none; }
  .v-slide { padding: 8px 16px; }
}
@media (max-width: 860px) {
  /* cards still stack on phones: screens on top, text below, everything inside one screen height */
  .card { inset: 72px 8px 10px; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; border-radius: 24px; }
  .c-stage { order: -1; }
  .c-item { left: calc(var(--mx) * 1%); top: calc(var(--my) * 1%); width: min(calc(var(--mw) * 1cqw), calc(var(--mwh) * 1cqh)); }
  .c-text { padding: 20px 20px 22px; }
  .c-name { margin-top: 6px; font-size: clamp(30px, 8vw, 44px); }
  .c-lead { margin-top: 10px; font-size: 15px; }
  .c-stats { margin-top: 14px; }
  .c-stats b { font-size: 26px; }
  .c-tags { margin-top: 12px; font-size: 13px; }
  .c-actions { margin-top: 16px; }
  .c-actions .btn { --h: 44px; flex: 1 1 auto; }
  .c-idx { display: none; }
}
@media (max-width: 760px) {
  :root { --pad: 16px; }

  /* header: language left, logo in the centre, button right */
  .nav-wrap { padding: 10px 10px 0; }
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; height: 56px; padding: 0 8px; border-radius: 16px; }
  .nav-links { display: none; }
  .nav-end { display: contents; }
  .nav-logo { grid-column: 2; grid-row: 1; justify-self: center; }
  .nav-logo img { height: 14px; }
  .lang { grid-column: 1; grid-row: 1; justify-self: start; }
  .lang button, .lang-thumb { width: 38px; height: 32px; }
  .lang[data-active="en"] .lang-thumb { transform: translateX(38px); }
  .nav-end > .btn { grid-column: 3; grid-row: 1; justify-self: end; --h: 38px; padding: 0 12px; font-size: 13px; }

  /* hero: headline, buttons, then the screen window in the same shape as the screenshots */
  .hero { height: auto; }
  .hero-sticky { position: relative; height: auto; overflow: visible; contain: none; padding: 92px 0 40px; }
  .hero-top { position: static; grid-template-columns: 1fr; gap: 14px; padding: 0 var(--pad); }
  .hero-title { font-size: clamp(31px, 9.2vw, 44px); line-height: 1.02; }
  .hero-side { padding-bottom: 0; }
  .hero-sub { font-size: 15px; max-width: none; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
  .hero-actions .btn { padding: 0 10px; font-size: 14px; }
  .hero-media { position: relative; inset: auto !important; margin: 22px var(--pad) 0; aspect-ratio: 16 / 10; border-radius: 16px; }
  .sr-slides { inset: 0; }
  .hm-bar { padding: 10px 12px; }
  .hm-name { font-size: 13px; }
  .hm-progress { gap: 4px; }
  .hm-progress i { width: 14px; }

  /* about */
  .about { padding: 56px var(--pad) 64px; }
  .st-text { font-size: 25px; }
  .numbers { margin-top: 36px; gap: 10px; }
  .num { gap: 6px; }
  .num b { font-size: clamp(34px, 10.5vw, 46px); }
  .num span { font-size: 12px; line-height: 1.3; }

  /* section heads */
  .sec-head { margin-bottom: 18px; gap: 6px; }
  .sec-title { font-size: 34px; }
  .sec-head p { font-size: 14px; }

  /* IT projects */
  .it { padding-top: 64px; padding-bottom: 12px; }
  .c-text { padding: 18px 16px; }
  .c-name { font-size: 28px; }
  .c-lead { font-size: 14px; margin-top: 8px; }
  .c-stats { gap: 22px; margin-top: 14px; }
  .c-stats b { font-size: 24px; }
  .c-tags { font-size: 13px; margin-top: 10px; }
  .c-actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; }
  .c-actions .btn { --h: 44px; padding: 0 10px; }

  /* design */
  .design { padding: 64px 0 56px; }
  .d-rows { gap: 10px; }
  .d-row { gap: 10px; }
  .d-it { height: 150px; border-radius: 12px; }
  .d-row:nth-child(2) .d-it { height: 118px; }
  .d-foot { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 22px; }
  .d-text { font-size: 15px; }
  .d-foot .btn { width: 100%; }

  /* services */
  .services { padding-top: 56px; }
  .kinetic { padding-bottom: 32px; }
  .k-item { font-size: 34px; }
  .svc-list { padding: 0 8px; }
  /* number, title and text share one clean left edge; the arrow sits centred on the right */
  .svc {
    grid-template-columns: 28px minmax(0, 1fr) 40px;
    grid-template-areas: "n name arrow" "n desc arrow";
    align-items: center;
    gap: 6px 12px;
    padding: 16px 12px;
    border-radius: 16px;
  }
  .svc-n { grid-area: n; align-self: start; padding-top: 6px; font-size: 13px; }
  .svc-name { grid-area: name; font-size: 26px; line-height: 1.05; }
  .svc-d { grid-area: desc; font-size: 13px; line-height: 1.4; margin: 0; }
  .svc-arrow { grid-area: arrow; width: 40px; height: 40px; align-self: center; }
  .svc:hover .svc-name { transform: none; }

  /* clients: compact three columns */
  .clients { padding: 64px 0; }
  .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 0 10px; }
  .lw { height: 76px; padding: 8px; border-radius: 14px; background: var(--soft); }
  .lw img { height: calc(var(--lh) * .62); max-width: 80%; }
  .wordmark { font-size: 12.5px; line-height: 1.15; }

  /* final */
  .final { min-height: 0; }
  .final-in { padding: 80px var(--pad); }
  .final-title { font-size: 7.4vw; }
  .final-actions { width: 100%; display: grid; grid-template-columns: 1fr; gap: 8px; }
  .final-actions .btn { width: 100%; }

  /* footer: centred */
  .footer { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 36px var(--pad) 30px; }
  .footer-logo { height: 18px; }
  .footer-tag { display: block; font-size: 13px; }
}
@media (max-width: 420px) {
  .btn-sm { padding: 0 12px; }
  .nav-end { gap: 6px; }
  #vLink { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .hero { height: auto; }
  .hero-sticky { position: relative; height: auto; padding-bottom: 40px; }
  .hero-top { position: relative; top: auto; padding-top: 140px; }
  .hero-media { position: relative; inset: auto; height: 60vh; margin: 40px var(--pad) 0; }
}
