:root {
  --biel: #F4F1EB;
  --piasek: #E6E1D7;
  --zielen: #2B332C;
  --tekst: #6B6F66;
  --meta: #8C9086;
  --linia: rgba(43, 51, 44, 0.14);
  --archivo: Archivo, "Helvetica Neue", sans-serif;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--biel);
  color: var(--zielen);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--zielen); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--tekst); }
:focus-visible { outline: 1px solid var(--zielen); outline-offset: 3px; }
::selection { background: var(--zielen); color: var(--biel); }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--meta);
}
h1, h2, h3 {
  font-family: var(--archivo);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(32px, 4.4vw, 60px); }
h2 { font-size: clamp(28px, 3.4vw, 44px); max-width: 22ch; }
h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.14; }
p { text-wrap: pretty; }

/* nagłówek */
.head {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 56px;
  background: rgba(244, 241, 235, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43, 51, 44, 0.12);
}
.brand { display: flex; flex-direction: column; gap: 1px; }
.brand strong {
  font-family: var(--archivo);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.brand span {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--meta);
}
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  padding-bottom: 3px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tekst);
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--zielen); }
.nav a[aria-current="page"] { color: var(--zielen); border-bottom-color: var(--zielen); }

.nav__panel { display: none; }
.nav-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid rgba(43, 51, 44, 0.24);
  cursor: pointer;
}
.nav-btn span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 0 auto;
  background: var(--zielen);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* sekcje */
.sec {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: 112px 56px;
}
.sec--tight { padding-top: 96px; padding-bottom: 96px; }
.sec--rule { border-top: 1px solid var(--linia); }
.sec--dark { background: var(--zielen); color: var(--biel); }
.sec--dark .eyebrow, .sec--dark p { color: rgba(244, 241, 235, 0.7); }
.sec__head { display: flex; flex-direction: column; gap: 20px; }
.sec__head p { max-width: 50ch; font-size: 17px; color: var(--tekst); }
.sec__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.btn {
  display: inline-block;
  padding: 16px 30px;
  border: 0;
  background: var(--zielen);
  color: var(--biel);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.btn:hover { background: #3A443B; color: var(--biel); }
.btn--light { background: var(--biel); color: var(--zielen); }
.btn--light:hover { background: #fff; color: var(--zielen); }
.btn--ghost {
  padding: 15px 29px;
  background: transparent;
  color: var(--zielen);
  border: 1px solid rgba(43, 51, 44, 0.35);
}
.btn--ghost:hover { background: rgba(43, 51, 44, 0.06); color: var(--zielen); }
.btn--outline {
  padding: 15px 29px;
  background: transparent;
  color: var(--biel);
  border: 1px solid rgba(244, 241, 235, 0.4);
}
.btn--outline:hover { background: rgba(244, 241, 235, 0.1); color: var(--biel); }

/* hero */
.hero {
  position: relative;
  height: 78vh;
  min-height: 520px;
  background: var(--piasek);
  overflow: hidden;
}
.hero > img { width: 100%; height: 100%; object-fit: cover; }
.hero__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 26px;
  padding: 56px;
  color: var(--biel);
  background: linear-gradient(to top, rgba(43, 51, 44, 0.86) 0%, rgba(43, 51, 44, 0.68) 55%, rgba(43, 51, 44, 0.15) 85%, transparent 100%);
}
.hero__inner .eyebrow { color: #F4F1EB; }
.hero__inner h1 { font-size: clamp(36px, 5.4vw, 76px); line-height: 1.04; max-width: 24ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 6px; }
.hero--case { height: 62vh; min-height: 380px; }

/* siatka projektów */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card__shot { display: block; aspect-ratio: 4 / 3; background: var(--piasek); overflow: hidden; }
.card__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1); }
.card:hover .card__shot img { transform: scale(1.03); }
.card__cat { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--meta); }
.card h3 { font-size: 23px; line-height: 1.2; letter-spacing: -0.01em; }
.card__meta { font-size: 14px; color: var(--tekst); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters button {
  padding: 9px 17px;
  background: transparent;
  color: var(--zielen);
  border: 1px solid rgba(43, 51, 44, 0.28);
  cursor: pointer;
  font-family: inherit;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.filters button[aria-pressed="true"] { background: var(--zielen); color: var(--biel); }

/* split */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.split--wide { grid-template-columns: 1.1fr 0.9fr; }
.split--even { grid-template-columns: 1fr 1fr; gap: 40px; }
.split p { font-size: 18px; color: var(--tekst); max-width: 46ch; }
.col { display: flex; flex-direction: column; gap: 22px; }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* case study */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: rgba(43, 51, 44, 0.16); list-style: none; }
.facts li { display: flex; flex-direction: column; gap: 7px; padding: 22px 24px 26px; background: var(--biel); }
.facts span { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--meta); }
.facts strong { font-family: var(--archivo); font-weight: 400; font-size: 18px; }
.case__lead { max-width: 48ch; font-size: 19px; color: var(--tekst); }
.case__body p { font-size: 17px; color: var(--tekst); }
.case__wide { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.case__wide--flat { aspect-ratio: 16 / 10; }
.case__text { max-width: 60ch; font-size: 17px; color: var(--tekst); }

/* proces */
.steps { display: flex; flex-direction: column; border-bottom: 1px solid rgba(43, 51, 44, 0.18); }
.step {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  padding: 38px 0;
  border-top: 1px solid rgba(43, 51, 44, 0.18);
}
.step__no { display: flex; align-items: baseline; gap: 20px; }
.step__no span { font-family: var(--archivo); font-size: 15px; letter-spacing: 0.1em; color: var(--meta); }
.step__body { display: flex; flex-direction: column; gap: 12px; }
.step__body p { font-size: 17px; color: var(--tekst); }
.step__meta { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--meta); }
.banner { width: 100%; height: 340px; object-fit: cover; }

/* zespół */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.team div { display: flex; flex-direction: column; gap: 9px; padding-top: 22px; border-top: 1px solid rgba(43, 51, 44, 0.2); }
.team strong { font-family: var(--archivo); font-weight: 400; font-size: 21px; line-height: 1.2; }
.team em { font-style: normal; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--meta); }
.team p { font-size: 15px; color: var(--tekst); }

/* kontakt */
.contact-list { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; list-style: none; }
.contact-list li { display: flex; flex-direction: column; gap: 5px; padding-top: 16px; border-top: 1px solid rgba(43, 51, 44, 0.16); }
.contact-list span { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--meta); }
.contact-list strong { font-weight: 300; font-size: 18px; }

/* stopka */
.foot { padding: 72px 56px 36px; background: var(--zielen); color: rgba(244, 241, 235, 0.7); }
.foot a { color: rgba(244, 241, 235, 0.7); }
.foot a:hover { color: var(--biel); }
.foot__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(244, 241, 235, 0.16);
}
.foot__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot__col .label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(244, 241, 235, 0.42); }
.foot__brand { display: flex; flex-direction: column; gap: 12px; max-width: 32ch; }
.foot__brand strong {
  font-family: var(--archivo);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--biel);
}
.foot__brand p { font-size: 14px; }
.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(244, 241, 235, 0.42);
}

@media (max-width: 1000px) {
  .head { position: relative; padding: 18px 32px; }
  .nav { display: none; }
  .nav-btn { display: flex; }
  .nav__panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    background: var(--biel);
    border-bottom: 1px solid var(--linia);
  }
  .nav__panel[data-open="true"] { display: flex; }
  .nav__panel a {
    padding: 16px 32px;
    border-top: 1px solid rgba(43, 51, 44, 0.12);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tekst);
  }
  .nav__panel a[aria-current="page"] { background: var(--zielen); color: var(--biel); }
  .sec { padding-left: 32px; padding-right: 32px; }
  .hero__inner { padding: 32px; }
  .split, .split--wide, .split--even, .step { grid-template-columns: 1fr; gap: 40px; }
  .grid3, .grid2, .team { grid-template-columns: 1fr 1fr; }
  .hero { height: 62vh; min-height: 420px; }
  .foot { padding: 56px 32px 32px; }
  .foot__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 620px) {
  .head { padding: 16px 20px; }
  .nav__panel a { padding-left: 20px; padding-right: 20px; }
  .sec { padding: 64px 20px; gap: 40px; }
  .hero__inner { padding: 24px 20px; }
  .grid3, .grid2, .team { grid-template-columns: 1fr; }
  .foot { padding: 48px 20px 28px; }
  .foot__top { grid-template-columns: 1fr; }
  .banner { height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
