:root {
  --bg: #FDFEFE;
  --bg-alt: #F4F5F7;
  --text: #15161A;
  --muted: #6E7480;
  --muted-soft: #9AA0AB;
  --border: #EEF0F4;
  --border-em: #DDE0E5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.6;
}

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

.fr { font-family: 'Fraunces', Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
.fr em, .fr i { font-style: italic; }
.muted { color: var(--muted); }

.lab {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 14px;
}

.display-hero {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
}

@media (min-width: 768px) {
  .display-hero { font-size: 44px; }
}

/* === Header === */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 56px;
  border-bottom: 0.5px solid var(--border);
  max-width: 1080px;
  margin: 0 auto;
}

.identifier {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}

.identifier .dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--border);
}

.identifier em {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
}

.nav-link {
  position: relative;
  padding-bottom: 2px;
  cursor: pointer;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 0.5px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.lang-toggle {
  font-size: 11px;
  letter-spacing: 0.04em;
  margin-left: 6px;
}

.lang-toggle .lang-pl { color: var(--text); }
.lang-toggle .lang-en { color: var(--muted); }

@media (max-width: 600px) {
  .site-header { padding: 18px 22px; }
  .nav { gap: 14px; font-size: 11px; }
}

/* === Section spacing === */

.sec {
  padding: 80px 56px 96px;
  max-width: 1080px;
  margin: 0 auto;
}

.sec-tight { padding-top: 0; }

@media (max-width: 600px) {
  .sec { padding: 48px 22px 64px; }
}

/* === Selected work rows === */

.work-list {
  display: flex;
  flex-direction: column;
}

.row-project {
  display: grid;
  grid-template-columns: 60px 36px 1fr 50px;
  gap: 14px;
  padding: 13px 0;
  border-top: 0.5px solid var(--border);
  align-items: center;
  cursor: pointer;
  transition: background 0.25s ease;
}

.row-project:hover {
  background: rgba(21, 22, 26, 0.02);
}

.row-project:hover .row-title {
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 4px;
}

.work-list .row-project:last-child {
  border-bottom: 0.5px solid var(--border);
}

.row-project svg.thumb {
  width: 60px;
  height: 42px;
  border-radius: 3px;
  border: 0.5px solid var(--border);
  display: block;
}

.row-num { font-size: 11px; color: var(--muted); }
.row-title { font-family: 'Fraunces', Georgia, serif; font-size: 15px; line-height: 1.3; }
.row-meta { font-family: 'Manrope', system-ui, sans-serif; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.row-year { font-size: 11px; color: var(--muted); text-align: right; }

@media (max-width: 600px) {
  .row-project { grid-template-columns: 50px 1fr 50px; gap: 10px; }
  .row-project .row-num { display: none; }
  .row-title { font-size: 13.5px; }
}

/* === Services rows === */

.svc-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 0.5px solid var(--border);
  align-items: baseline;
}

.svc-row:last-child { border-bottom: 0.5px solid var(--border); }

.svc-name { font-family: 'Fraunces', Georgia, serif; font-size: 18px; }

.svc-desc {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 600px) {
  .svc-row { grid-template-columns: 1fr; gap: 6px; }
}

/* === Process rows === */

.proc-row {
  display: grid;
  grid-template-columns: 60px 200px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 0.5px solid var(--border);
  align-items: baseline;
}

.proc-row:last-child { border-bottom: 0.5px solid var(--border); }

.proc-num { font-size: 11px; color: var(--muted); }
.proc-name { font-family: 'Fraunces', Georgia, serif; font-size: 18px; }
.proc-desc { font-size: 13px; line-height: 1.6; color: var(--muted); }

@media (max-width: 600px) {
  .proc-row { grid-template-columns: 1fr; gap: 4px; }
  .proc-num { display: none; }
}

/* === Footer === */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 56px;
  border-top: 0.5px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  max-width: 1080px;
  margin: 0 auto;
}

.site-footer .socials { letter-spacing: 0.04em; }

@media (max-width: 600px) {
  .site-footer { padding: 18px 22px; }
}

/* === Scroll fade-in === */

.scroll-anim {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-anim.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Inline link tweak === */

a.text-link {
  position: relative;
  letter-spacing: 0.02em;
  font-size: 12px;
}

a.text-link::after {
  content: '';
  position: absolute;
  left: 0; right: 30%; bottom: -2px;
  height: 0.5px;
  background: var(--text);
  transition: right 0.3s ease;
}

a.text-link:hover::after { right: 0; }

/* === Filter buttons (work page) === */

.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 0.5px solid var(--border-em);
  color: var(--muted);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.filter-btn:hover {
  border-color: var(--text);
  color: var(--text);
}

.filter-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.row-project[data-hidden="true"] { display: none; }

/* === Case study sections === */

.cs-hero {
  padding: 80px 56px 64px;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .cs-hero { padding: 48px 22px 40px; }
}

.cs-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0;
  border-top: 0.5px solid var(--border);
  margin-top: 36px;
}

.cs-meta-cell {
  padding: 16px 0 16px 0;
  border-right: 0.5px solid var(--border);
  padding-right: 24px;
  padding-left: 0;
}

.cs-meta-cell:last-child { border-right: none; }

.cs-meta-label {
  font-size: 10px;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 6px;
}

.cs-meta-value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 15px;
}

.cs-cover {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 56px 96px;
}

@media (max-width: 600px) {
  .cs-cover { padding: 0 22px 64px; }
}

.cs-cover-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-soft);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.cs-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 56px 80px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .cs-section {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 22px 56px;
  }
}

.cs-section-num {
  font-size: 11px;
  color: var(--muted);
  padding-top: 6px;
}

.cs-section-body h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.cs-section-body p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 600px;
}

.cs-section-body p:last-child { margin-bottom: 0; }

.cs-pull-quote {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  border-left: 0.5px solid var(--border-em);
  padding: 12px 0 12px 24px;
  margin: 24px 0 0;
  color: var(--text);
}

.cs-pull-quote em { font-style: italic; }

.cs-next {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 56px 96px;
  border-top: 0.5px solid var(--border);
}

@media (max-width: 600px) {
  .cs-next { padding: 48px 22px 64px; }
}

/* === About page === */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 0.5px solid var(--border);
}

.tools-col {
  padding: 28px 32px 28px 0;
  border-right: 0.5px solid var(--border);
}

.tools-col:last-child {
  border-right: none;
  padding-right: 0;
}

.tools-col-label {
  font-size: 10px;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 14px;
}

.tools-col-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  margin-bottom: 12px;
}

.tools-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tools-col ul li {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 600px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .tools-col {
    border-right: none;
    border-bottom: 0.5px solid var(--border);
    padding: 24px 0;
  }
  .tools-col:last-child { border-bottom: none; }
}

/* === Services / pricing === */

.pricing-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 24px;
  padding: 28px 0;
  border-top: 0.5px solid var(--border);
  align-items: start;
}

.pricing-row:last-child { border-bottom: 0.5px solid var(--border); }

.pricing-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 500px;
}

.pricing-desc ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.pricing-desc ul li {
  margin-bottom: 4px;
}

.pricing-price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  text-align: right;
  padding-top: 4px;
}

.pricing-price span {
  display: block;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 4px;
  text-align: right;
}

@media (max-width: 600px) {
  .pricing-row { grid-template-columns: 1fr; gap: 8px; }
  .pricing-price { text-align: left; }
}

/* === Contact form === */

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.form-input,
.form-textarea {
  background: none;
  border: none;
  border-bottom: 0.5px solid var(--border-em);
  padding: 8px 0;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--text);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  background: var(--text);
  color: var(--bg);
  border: none;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 12px 28px;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.2s;
}

.form-submit:hover { opacity: 0.82; }
