@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap');

:root {
  --ink: #38291d;
  --ink2: #60482c;
  --muted: #756656;
  --paper: #f8f5ef;
  --white: #fffdf9;
  --line: #e4d9c8;
  --sage: #eee4d3;
  --gold: #a87512;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --shadow: 0 18px 50px #38291d14;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: clamp(74px, 8vw, 100px);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(15px, 0.2vw + 14.4px, 16px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

main, .section, .hero, .footer {
  overflow-x: clip;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1, h2, h3, p, li {
  overflow-wrap: break-word;
}

h1, h2, h3 {
  hyphens: manual;
  -webkit-hyphens: manual;
  text-wrap: balance;
}

html[lang="pl"] h1,
html[lang="pl"] h2,
html[lang="pl"] h3 {
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

html[lang="pl"] .hero h1 {
  font-size: clamp(29px, 4.1vw + 11px, 64px);
}

.wrap {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.services-grid > *,
.audience-grid > *,
.steps > *,
.feature-band > *,
.about-grid > *,
.contact-band > *,
.footer-grid > *,
.hero-grid > * {
  min-width: 0;
}

/* Skip link & focus */
.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--white);
  padding: 10px;
  z-index: 100;
}

.nav a:focus-visible,
.btn:focus-visible,
.menu-toggle:focus-visible,
.read-more-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #f8f5eff2;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.head {
  min-height: clamp(64px, 7.2vw, 86px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2.8vw, 32px);
  padding: clamp(4px, 0.7vw, 8px) 0;
}

.brand {
  flex-shrink: 0;
}

.brand img {
  width: clamp(104px, 14vw, 176px);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 36px);
}

.nav a {
  text-decoration: none;
  font-size: clamp(12px, 0.25vw + 10.5px, 13.5px);
  font-weight: 600;
  letter-spacing: .035em;
  color: var(--ink2);
  white-space: nowrap;
  transition: color .2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: #896018;
}

.head-actions {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 16px);
  flex-shrink: 0;
}

.lang {
  border-left: 1px solid var(--line);
  padding-left: clamp(12px, 2vw, 24px);
}

.lang a {
  display: inline-block;
  padding: 4px 2px;
  text-decoration: none;
  font-size: clamp(12px, 0.2vw + 11.4px, 13px);
  color: var(--muted);
}

.lang a.active {
  font-weight: 700;
  color: var(--ink);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.menu-toggle:hover {
  background: var(--sage);
  border-color: #cbbba2;
}

.menu-bars {
  position: relative;
  width: 19px;
  height: 14px;
  display: block;
}

.menu-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .26s cubic-bezier(.22, 1, .36, 1), opacity .2s ease, top .26s cubic-bezier(.22, 1, .36, 1);
}

.menu-bars span:nth-child(1) { top: 0; }
.menu-bars span:nth-child(2) { top: 6px; }
.menu-bars span:nth-child(3) { top: 12px; }

.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(2) {
  opacity: 0;
  transform: scaleX(.4);
}

.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  padding: clamp(32px, 5.5vw, 72px) 0 clamp(46px, 6.5vw, 84px);
  background: linear-gradient(120deg, #eee4d3 0%, #f8f5ef 62%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  align-items: center;
  gap: clamp(28px, 6vw, 96px);
}

.eyebrow,
.overline {
  font-size: clamp(10.5px, 0.15vw + 10px, 11.5px);
  letter-spacing: clamp(.14em, 0.05vw + .13em, .19em);
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 clamp(12px, 1.4vw, 17px);
}

.eyebrow { color: #916114; }
.overline { color: var(--gold); }

.hero h1 {
  font: 600 clamp(30px, 4.4vw + 12px, 68px)/1.1 var(--serif);
  letter-spacing: -.025em;
  margin: 0 0 clamp(16px, 2vw, 24px);
  max-width: 690px;
}

.hero h1 span {
  display: block;
  color: #8c681e;
  font-weight: 500;
}

.hero-lead {
  font-size: clamp(15px, 0.45vw + 13.5px, 18px);
  line-height: 1.72;
  color: #5c4a35;
  max-width: 620px;
  margin: 0 0 clamp(22px, 2.5vw, 28px);
}

.hero .btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  padding: clamp(12px, 1.2vw, 14px) clamp(20px, 2vw, 24px);
  border-radius: 3px;
  font-size: clamp(13px, 0.2vw + 12.5px, 14px);
  font-weight: 600;
  letter-spacing: .025em;
  transition: background .2s ease, transform .2s ease;
}

.hero .btn:hover {
  background: #654a27;
}

.portrait-frame {
  position: relative;
  width: min(100%, clamp(260px, 34vw, 380px));
  justify-self: end;
  padding: 0 0 clamp(12px, 1.6vw, 18px) clamp(12px, 1.6vw, 18px);
}

.portrait-frame::before {
  content: '';
  position: absolute;
  inset: clamp(12px, 1.6vw, 18px) 0 0 0;
  border: 1px solid var(--gold);
}

.portrait-frame img {
  position: relative;
  width: 100%;
  aspect-ratio: 380 / 445;
  height: auto;
  object-fit: cover;
  object-position: center 26%;
  filter: saturate(.78);
}

.hero-caption {
  position: absolute;
  bottom: 0;
  right: clamp(8px, 3%, 14px);
  background: var(--white);
  padding: clamp(11px, 1.4vw, 15px) clamp(15px, 1.8vw, 21px);
  box-shadow: var(--shadow);
  max-width: calc(100% - 24px);
}

.hero-caption strong,
.hero-caption span {
  display: block;
}

.hero-caption strong {
  font: 500 clamp(16px, 0.5vw + 14.5px, 19px) var(--serif);
}

.hero-caption span {
  font-size: clamp(10px, 0.15vw + 9.5px, 11px);
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Sections */
.section {
  padding: clamp(50px, 7.5vw, 96px) 0;
}

.section.alt {
  background: var(--white);
}

.section.deep {
  background: var(--ink);
  color: var(--paper);
}

.section-head {
  max-width: 740px;
  margin: 0 0 clamp(26px, 3.8vw, 44px);
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.section-head h2,
.feature-title,
.area-box h2 {
  font: 500 clamp(23px, 3vw + 12px, 46px)/1.18 var(--serif);
  letter-spacing: -.02em;
  margin: 0 0 clamp(12px, 1.6vw, 17px);
}

.feature-title {
  margin: 0;
}

.section-head p {
  color: var(--muted);
  margin: 0;
  font-size: clamp(14.5px, 0.25vw + 13.8px, 16px);
  max-width: 700px;
}

.section.deep .section-head p {
  color: #dccdb5;
}

/* Services: 2x2 on wide screens, 1 col automatically below ~840px */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(12px, 1.6vw, 16px);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(20px, 2.6vw, 30px);
  min-height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.service-card .num {
  font: 500 14px var(--serif);
  color: #9b701b;
  letter-spacing: .08em;
}

.service-card h3 {
  font: 500 clamp(19px, 0.7vw + 16.5px, 23px)/1.3 var(--serif);
  margin: clamp(8px, 1vw, 10px) 0 clamp(12px, 1.5vw, 17px);
}

.service-card p,
.service-card li {
  color: #6b5b48;
  font-size: clamp(14px, 0.15vw + 13.6px, 14.5px);
}

.service-card ul {
  margin: 0;
  padding-left: 19px;
}

.service-card li {
  padding: 3px 0;
}

.service-card .lead-item {
  font-weight: 600;
  color: var(--ink);
  margin-top: 9px;
}

.description {
  margin-top: 12px;
  color: #6b5b48;
}

.description p {
  margin: 0;
  color: #6b5b48;
}

/* Why / Feature band */
.feature-band {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(26px, 5vw, 60px);
  align-items: start;
}

.feature-tagline {
  margin: clamp(12px, 1.5vw, 18px) 0 0;
  font-size: clamp(14px, 0.2vw + 13.4px, 15px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 380px;
}

.feature-content > .description {
  margin: 0 0 clamp(18px, 2.2vw, 25px);
  color: #6b5b48;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(12px, 1.6vw, 16px) clamp(18px, 2.5vw, 26px);
}

.check-list li {
  padding: 0 0 0 24px;
  position: relative;
  font-size: clamp(14px, 0.15vw + 13.6px, 14.5px);
  color: #594832;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #916114;
  font-weight: 700;
}

/* Process steps: fluid columns above 820px, vertical timeline below */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(20px, 2.6vw, 30px);
}

.step {
  border-top: 1px solid #705d45;
  padding: clamp(18px, 2.2vw, 26px) 0 0;
}

.step .stepno {
  font: 500 clamp(26px, 1.2vw + 21px, 34px) var(--serif);
  color: #bd8d2c;
}

.step h3 {
  font: 500 clamp(18px, 0.4vw + 16.5px, 20px)/1.35 var(--serif);
  margin: clamp(8px, 1.2vw, 14px) 0 clamp(8px, 1vw, 10px);
}

.step p {
  font-size: clamp(13.5px, 0.15vw + 13px, 14px);
  line-height: 1.7;
  color: #e1d3be;
  margin: 0;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(26px, 5.5vw, 70px);
  align-items: center;
}

.about-mark {
  display: grid;
  place-items: center;
  background: var(--paper);
  padding: 8px 0;
}

.about-mark img {
  width: min(100%, clamp(260px, 38vw, 440px));
  height: auto;
}

.about-copy p {
  color: #6b5b48;
}

/* Industries / Audience: intrinsically fluid 5 -> 4 -> 3 -> 2 -> 1 columns */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  gap: clamp(12px, 1.4vw, 14px);
}

.audience {
  background: #f4eee4;
  border: 1px solid var(--line);
  padding: clamp(18px, 2vw, 22px) clamp(17px, 1.8vw, 20px);
}

.audience .index {
  font: 500 clamp(21px, 0.6vw + 19px, 25px) var(--serif);
  color: #a07824;
}

.audience h3 {
  font: 500 clamp(17px, 0.3vw + 16px, 18.5px)/1.3 var(--serif);
  margin: clamp(8px, 1vw, 12px) 0;
}

.audience .description {
  margin-top: 10px;
  font-size: clamp(13.5px, 0.15vw + 13px, 14.5px);
}

/* Contact */
.contact-band {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: clamp(26px, 4.5vw, 54px);
  align-items: center;
}

.contact-band .section-head {
  margin: 0;
}

.contact-band .section-head p {
  max-width: 620px;
}

.contact-card {
  background: var(--white);
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  font: 500 clamp(20px, 0.4vw + 18.5px, 22px) var(--serif);
  margin: 0 0 14px;
}

.contact-card p {
  margin: 8px 0;
  color: #6b5b48;
  font-size: 14px;
}

.contact-card a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 8px 0;
  font-size: clamp(14.5px, 0.2vw + 14px, 15.5px);
  overflow-wrap: anywhere;
}

.contact-card a:hover {
  text-decoration: underline;
}

.location {
  display: inline-flex;
  background: var(--sage);
  padding: 5px 10px;
  max-width: 100%;
  margin-bottom: 10px;
  font-size: 12px;
}

/* Area box */
.area-box {
  border-left: 2px solid var(--gold);
  padding: 5px 0 5px clamp(16px, 2.2vw, 25px);
  max-width: 820px;
}

.area-box p {
  max-width: 700px;
  color: #6b5b48;
  margin: 0;
}

/* Footer: intrinsically fluid 3 -> 2 -> 1 columns */
.footer {
  background: #34291f;
  color: #f7f1e6;
  padding: clamp(40px, 5vw, 54px) 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(24px, 3.6vw, 40px);
  padding-bottom: clamp(24px, 3.2vw, 35px);
}

.footer-brand img {
  width: clamp(145px, 16vw, 190px);
  height: auto;
}

.footer p {
  font-size: clamp(13px, 0.15vw + 12.5px, 14px);
  line-height: 1.7;
  color: #e1d3be;
  max-width: 340px;
}

.footer h3 {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #c69a42;
  margin: 0 0 14px;
}

.footer-links {
  display: grid;
  gap: 6px;
}

.footer a {
  display: inline-block;
  padding: 3px 0;
  color: #f7f1e6;
  text-decoration: none;
  font-size: clamp(13px, 0.15vw + 12.6px, 14px);
  overflow-wrap: anywhere;
}

.footer a:hover {
  text-decoration: underline;
}

.footline {
  border-top: 1px solid #66533d;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  color: #d8c8ae;
  font-size: clamp(11px, 0.15vw + 10.6px, 12px);
}

/* Clamping & Collapsible Lists */
.footline a{font-size:inherit;color:#d8c8ae;text-decoration:underline;padding:0}

.social{display:flex;gap:10px;margin-top:16px}
.social a{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:1px solid #66533d;border-radius:50%;color:#f7f1e6;transition:background .2s,border-color .2s,color .2s}
.social a:hover{background:#c69a42;border-color:#c69a42;color:#34291f;text-decoration:none}
.social svg{width:18px;height:18px;fill:currentColor}

.audience{position:relative}
.audience.featured{background:var(--white);border-color:var(--gold);box-shadow:inset 0 3px 0 var(--gold),var(--shadow)}
.audience .badge{display:inline-block;margin:0 0 10px;padding:3px 9px;background:var(--gold);color:var(--white);font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;border-radius:2px}

.legal{padding:clamp(40px,6vw,80px) 0}
.legal .wrap{max-width:780px}
.legal h1{font:500 clamp(30px,3.5vw + 14px,46px)/1.15 var(--serif);margin:0 0 clamp(20px,3vw,32px)}
.legal h2{font:500 clamp(19px,.8vw + 16px,24px)/1.3 var(--serif);margin:clamp(24px,3vw,34px) 0 8px}
.legal p{margin:0 0 10px;color:#594832}
.legal a{color:var(--ink);font-weight:600}
.legal .todo{background:#fff3c4;padding:0 4px;border-radius:2px}
.legal-back{display:inline-block;margin-bottom:20px;text-decoration:none;font-size:14px;font-weight:600;color:var(--gold)}

/* Clamping & Collapsible Lists */
.clamp-target.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--clamp-lines, 3);
  overflow: hidden;
}

.collapsible-list .list-item-extra {
  display: none;
}

.collapsible-list.is-expanded .list-item-extra {
  display: list-item;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 0;
  background: none;
  border: 0;
  font: 600 13.5px/1.4 var(--sans);
  letter-spacing: .02em;
  color: var(--gold);
  cursor: pointer;
  transition: color .2s;
}

.read-more-btn:hover {
  color: var(--ink);
}

.read-more-btn::after {
  content: '▾';
  font-size: 11px;
  display: inline-block;
  transition: transform .2s;
}

.read-more-btn[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.read-more-btn[hidden] {
  display: none;
}

.section.deep .read-more-btn {
  color: #d9ae54;
}

.section.deep .read-more-btn:hover {
  color: var(--white);
}

/* Single structural breakpoint: switches desktop nav & asymmetric 2-col bands to mobile hamburger & vertical stack */
@media (max-width: 820px) {
  .header {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .lang {
    border-left: 0;
    padding-left: 0;
  }

  .lang a {
    padding: 8px 4px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 44px #38291d26;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .24s ease, transform .24s cubic-bezier(.22, 1, .36, 1), visibility .24s;
  }

  .header.menu-open .nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a {
    display: block;
    padding: 14px 4px;
    font-size: 15px;
    color: var(--ink);
    border-bottom: 1px solid #e4d9c8b3;
    white-space: normal;
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .hero-grid,
  .feature-band,
  .about-grid,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .portrait-frame {
    justify-self: center;
    width: min(100%, 340px);
    margin-inline: auto;
  }

  .about-mark img {
    width: min(100%, 300px);
    margin-inline: auto;
  }

  /* Vertical gold-dot timeline on stacked screens */
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step {
    border-top: 0;
    border-left: 1px solid #705d45;
    padding: 0 0 26px 20px;
    position: relative;
  }

  .step:last-child {
    padding-bottom: 4px;
  }

  .step::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 7px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #bd8d2c;
  }
}

/* Scroll-reveal fade-in animations */
html.js-anim .reveal {
  opacity: 0;
  transform: translateY(clamp(12px, 1.8vw, 18px));
  transition: opacity .58s cubic-bezier(.22, 1, .36, 1), transform .58s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

html.js-anim .reveal.reveal-soft {
  transform: translateY(12px) scale(.985);
}

html.js-anim .reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

html.js-anim .service-card.reveal.is-visible:hover {
  transition: transform .2s ease, box-shadow .2s ease;
  transition-delay: 0ms;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js-anim .reveal,
  html.js-anim .reveal.reveal-soft {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
