:root {
  color-scheme: dark;
  --background: #0b1321;
  --surface: #111e31;
  --text: #f4f7fd;
  --soft: #b8c8de;
  --accent: #6de6cb;
  --blue: #79aaff;
  --line: #263951;
  --width: 1240px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); line-height: 1.62; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.06; letter-spacing: -.038em; text-wrap: balance; }
h1 { font-size: clamp(2.65rem, 6.8vw, 6rem); font-weight: 680; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.45rem); font-weight: 660; }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.85rem); font-weight: 640; }
.wrap { width: min(var(--width), calc(100% - 72px)); margin-inline: auto; }
.header { background: #0b1321f5; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner, .footer { display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.header-inner { min-height: 76px; }
.brand { width: 128px; flex: 0 0 128px; }
.brand img { width: 100%; }
nav { display: flex; align-items: center; gap: clamp(.75rem,1.65vw,1.5rem); font-size: .92rem; }
nav a, nav summary { text-decoration: none; white-space: nowrap; }
nav .nav-portfolio { color: var(--accent); font-weight: 680; }
.language { padding: 5px 9px; border: 1px solid var(--line); border-radius: 5px; }
summary, button { cursor: pointer; }
.services-menu { position: relative; }
.submenu { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; min-width: 220px; padding: .5rem; display: grid; top: calc(100% + .7rem); left: -.7rem; }
.submenu a { padding: .45rem .7rem; white-space: normal; }
.menu-toggle { display: none; }
.hero { border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 90% 0%,#233652 0%, transparent 57%), radial-gradient(ellipse at 15% 110%,#113943 0%,transparent 45%); }
.hero-inner { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); align-items: center; gap: clamp(18px,4vw,67px); min-height: 290px; padding-block: clamp(60px,8vw,120px); }
.hero-inner:has(>div:only-child) { grid-template-columns: 1fr; }
.home-hero .hero-inner { min-height: min(560px, 76vh); }
.hero p { max-width: 58ch; color: var(--soft); font-size: clamp(1rem, 2vw, 1.24rem); }
.hero figure { padding: 8px; border: 1px solid #85b2e047; border-radius: 16px; background: #20334a; transform: rotate(-2deg); box-shadow: 0 16px 65px #020b1baa; }
.hero img { width: 100%; border-radius: 10px; max-height: 370px; object-fit: cover; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.button, .menu-toggle { display: inline-block; border: 1px solid transparent; background: var(--accent); color: #092020; text-decoration: none; font: inherit; font-weight: 690; padding: .68rem 1.12rem; border-radius: 7px; }
.button:hover { background: #a8f6e6; color: #092020; }
.button.secondary, .menu-toggle { background: transparent; border-color: #55708d; color: var(--text); }
.button.secondary:hover, .menu-toggle:hover { color: var(--accent); border-color: var(--accent); }
.text-link { color: var(--accent); font-weight: 630; }
.section { padding-block: clamp(33px,6vw,84px); scroll-margin-top: 92px; }
.section-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 30px; margin-bottom: 20px; }
.section-header h2 { margin-bottom: 0; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.project-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.project-card:nth-child(1), .project-card:nth-child(2) { grid-column: span 1; }
.project-card:hover { border-color: #5480a3; }
.project-image { display: grid; place-items: center; background: #192c46; padding: 14px; aspect-ratio: 1.6; overflow: hidden; }
.project-image img { max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.project-copy { display: flex; align-items: flex-start; flex-direction: column; flex: 1; padding: clamp(16px,3vw,26px); }
.project-copy h3 a { text-decoration: none; }
.project-copy > a { margin-top: auto; }
.project-copy p, .original-content p, .project-detail p { color: var(--soft); }
.project-copy .category { color: var(--blue); font-size: .88rem; margin-bottom: .45rem; }
.filters { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 22px; }
.filters:empty { display: none; }
.pill { color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: .4rem .8rem; font: inherit; }
.pill.active { color: #092020; background: var(--accent); }
[hidden] { display: none !important; }
.project-detail { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(18px,4vw,56px); padding-block: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.project-detail:nth-child(even) figure { order: 2; }
.project-detail figure { border: 1px solid var(--line); background: var(--surface); padding: 12px; border-radius: 14px; }
.project-detail p { max-width: 58ch; }
.original-content { padding-block: 28px 65px; }
.original-content .section { border-top: 1px solid var(--line); }
.original-content .section:has(> .source-vc-column):not(:has(> .source-vc-column:not(:empty))) { display: none; }
.original-content .source-vc-column:empty { display: none; }
.original-content .section:has(> .source-vc-column:not(:empty) ~ .source-vc-column:not(:empty)) { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.original-content .section p { max-width: 75ch; }
.original-content .section img { max-height: 410px; object-fit: contain; }
.desktop-duplicate { display: none; }
#implementation .inner-row:has(> .source-vc-column-inner:nth-child(5)) { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
#implementation .inner-row.desktop-duplicate { display: none; }
#implementation .inner-row:has(> .source-vc-column-inner:nth-child(5)) > div, .panel, .source-pixxy_slider_items { border: 1px solid var(--line); background: var(--surface); padding: 18px; border-radius: 10px; }
.source-pixxy_slider_items { margin-block: 12px; }
.contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.contact-grid h3 { font-size: 1.3rem; }
.contact-form { display: grid; max-width: 650px; gap: 13px; }
.contact-form label { display: grid; gap: 4px; }
.contact-form input:not([type="checkbox"]), .contact-form textarea { width: 100%; background: var(--surface); border: 1px solid var(--line); padding: .75rem; color: var(--text); font: inherit; border-radius: 5px; }
.contact-form .checkbox { display: flex; gap: 10px; align-items: start; }
.contact-form button { justify-self: start; }
.map iframe { width: 100%; height: 400px; border: 0; margin-top: 12px; }
footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--soft); }
@media (max-width: 1030px) {
  .header-inner { position: relative; }
  .menu-toggle { display: inline-block; }
  nav { display: none; position: absolute; top: calc(100% + 1px); inset-inline: 0; background: var(--surface); padding: 18px; flex-direction: column; align-items: stretch; border: 1px solid var(--line); border-radius: 0 0 8px 8px; }
  nav.open { display: flex; }
  .submenu { position: static; margin-top: 8px; }
  .portfolio-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #implementation .inner-row:has(> .source-vc-column-inner:nth-child(5)) { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 630px) {
  .wrap { width: calc(100% - 34px); }
  .hero-inner, .portfolio-grid, .project-detail, .contact-grid, .original-content .section:has(> .source-vc-column:not(:empty) ~ .source-vc-column:not(:empty)) { grid-template-columns: 1fr; }
  .hero figure { transform: none; }
  .project-detail:nth-child(even) figure { order: 0; }
  .footer { align-items: flex-start; flex-direction: column; gap: 14px; }
  .footer .brand { flex-basis: auto; }
  #implementation .inner-row:has(> .source-vc-column-inner:nth-child(5)) { grid-template-columns: 1fr; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.footer-links small { display: block; flex-basis: 100%; }

/* Visual treatments shared by the Polish and English pages. */
:root { --accent: #a6f6d4; --blue: #a3d6ff; }
.header { background: #0b1321dd; backdrop-filter: blur(16px); }
.hero { isolation: isolate; position: relative; overflow: hidden; }
.home-hero {
  background:
    radial-gradient(ellipse at 75% 34%, #182755, transparent 46%),
    radial-gradient(ellipse at 14% 105%, #124553, transparent 58%),
    #0a1428;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -2;
  background: conic-gradient(from 45deg at 67% 49%, transparent 8%, #35aaff3b 22%, transparent 39%, #9c65ff35 54%, transparent 65%, #51ffe02e 76%, transparent 88%);
  filter: blur(40px);
  animation: hero-drift 18s ease-in-out infinite alternate;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(#a6d8ff14 1px, transparent 1px), linear-gradient(90deg, #a6d8ff14 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to left, #000, transparent 86%);
  pointer-events: none;
}
.home-hero h1 { background: linear-gradient(120deg, #fff 25%, #a2d9ff 68%, #a6f6d4); background-clip: text; color: transparent; }
.home-hero figure {
  position: relative;
  border: 0;
  padding: 1px;
  border-radius: 24px;
  background: linear-gradient(150deg, #68f2e8, #4477b6 34%, #142849 61%, #b4a0ff);
  box-shadow: 0 28px 80px #03091a, 0 0 80px #62a4ed35;
  animation: hero-float 8s ease-in-out infinite alternate;
}
.home-hero img { border-radius: 23px; width: 100%; aspect-ratio: 1.45; object-fit: cover; }
.home-hero .actions { animation: hero-arrive .75s .12s both; }
.home-hero h1 { animation: hero-arrive .7s both; }
.button { transition: box-shadow .22s, background-color .22s, color .22s, translate .22s; }
.button:hover { translate: 0 -2px; box-shadow: 0 7px 26px #6de6cb32; }
.featured .section-header { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.project-card {
  position: relative;
  isolation: isolate;
  background: linear-gradient(148deg, #172947, #101a2c 75%);
  border-radius: 20px;
  transition: translate .3s, border-color .3s, box-shadow .3s;
}
.project-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse 250px 200px at var(--light-x, 50%) var(--light-y, 20%), #72bfff38, transparent);
  opacity: 0;
  transition: opacity .28s;
  pointer-events: none;
}
.project-card:is(:hover, :focus-within) { translate: 0 -4px; border-color: #73a9cc; box-shadow: 0 16px 36px #02091785; }
.project-card:is(:hover, :focus-within)::before { opacity: 1; }
.project-image { position: relative; background: radial-gradient(ellipse at 50% 10%, #345785, #14253b 80%); }
.project-image img { transition: scale .45s cubic-bezier(.2,.7,.2,1); }
.project-card:is(:hover, :focus-within) .project-image img { scale: 1.06; }
.project-copy .category { margin-bottom: .75rem; }
.pill { transition: color .2s, background-color .2s, border-color .2s; }
.pill:hover { border-color: var(--accent); }
.has-motion [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .62s, transform .62s cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay, 0ms); }
.has-motion [data-reveal].is-visible, .has-motion [data-reveal]:focus-within { opacity: 1; transform: none; }
@media (min-width: 1031px) {
  #portfolio .portfolio-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  #portfolio .project-card { grid-column: span 2; }
  #portfolio .project-card:nth-child(1) { grid-column: span 4; }
  #portfolio .project-card:nth-child(1) .project-image { aspect-ratio: 2.5; }
  #portfolio .project-card:nth-child(2) .project-image { aspect-ratio: 1.25; }
  #portfolio .project-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  #portfolio .project-card:last-child .project-image { aspect-ratio: 2.45; }
}
@keyframes hero-drift { to { transform: rotate(14deg) scale(1.12); } }
@keyframes hero-float { from { transform: rotate(-2deg) translateY(3px); } to { transform: rotate(1deg) translateY(-9px); } }
@keyframes hero-arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .home-hero::before, .home-hero figure, .home-hero h1, .home-hero .actions { animation: none; }
  .button, .project-card, .project-card::before, .project-image img, .pill, .has-motion [data-reveal] { transition: none; }
  .button:hover, .project-card:is(:hover, :focus-within) { translate: none; }
  .project-card:is(:hover, :focus-within) .project-image img { scale: 1; }
  .has-motion [data-reveal] { opacity: 1; transform: none; }
}



.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
  margin-top: 24px;
}
.leadership-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(16px, 2.1vw, 26px);
  background: linear-gradient(155deg, #203650, #101b2d);
  border: 1px solid #385577;
  border-radius: 16px;
  box-shadow: 0 12px 28px #020b1d60;
}
.original-content .leadership-card img {
  width: 104px;
  height: 104px;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: 50%;
  border: 1px solid #658caa;
  margin-bottom: 16px;
}
.leadership-copy h3 { margin-bottom: .5rem; }
.leadership-copy .leadership-role { color: var(--accent); font-size: .9rem; line-height: 1.4; }
.leadership-copy p:last-child { margin-bottom: 0; }
@media (max-width: 800px) {
  .leadership-grid { grid-template-columns: 1fr; }
  .leadership-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; }
  .original-content .leadership-card img { width: 80px; height: 80px; margin-bottom: 0; }
}

.process-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 16px);
  list-style: none;
  margin: 0;
  padding: clamp(10px, 2vw, 22px);
  background: radial-gradient(ellipse at 58% 35%, #25476a, #101c30 75%);
  border: 1px solid #355272;
  border-radius: 21px;
}
.process-map li {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 15px;
  min-height: 118px;
  border-radius: 12px;
  border: 1px solid #658caa62;
  background: #0c192caa;
  padding: clamp(10px, 2vw, 20px);
  color: var(--text);
  line-height: 1.3;
}
.process-icon {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  color: var(--accent);
}
.process-icon::before, .process-icon::after { position: absolute; content: ''; }
.process-icon-analysis::before { inset: 1px 9px 9px 1px; border: 2px solid; border-radius: 50%; }
.process-icon-analysis::after { top: 24px; left: 21px; width: 13px; height: 2px; background: currentColor; transform: rotate(45deg); }
.process-icon-design::before { inset: 5px 7px 7px 5px; border: 2px solid; border-radius: 4px; box-shadow: 4px 4px 0 -1px #0c192c, 6px 6px 0 -1px currentColor; }
.process-icon-delivery::before { inset: 2px; border: 2px solid; border-radius: 50%; }
.process-icon-delivery::after { left: 9px; top: 10px; width: 15px; height: 8px; border: solid; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.process-icon-support::before { inset: 2px; border: 2px solid; border-radius: 50%; }
.process-icon-support::after { inset: 11px; border: 2px solid; border-radius: 50%; box-shadow: 0 0 0 3px #a6f6d43b; }
@media (min-width: 1031px) {
  .menu-toggle { display: none; }
}
