@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Newsreader:opsz,wght@6..72,300;6..72,400&display=swap");

:root {
  --green: #0b3d2e;
  --green-deep: #082d23;
  --cream: #f2f0e8;
  --cream-soft: #f8f7f2;
  --ink: #17231e;
  --muted: #68736d;
  --line: rgba(11, 61, 46, 0.18);
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(24px, 4vw, 70px);
}

.brand img {
  display: block;
  width: clamp(185px, 18vw, 245px);
  height: auto;
}

.header-contact,
.section-index,
.hero-foot,
.expertise-number,
footer p,
.footer-contact {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.header-contact {
  display: flex;
  gap: 24px;
}

.header-contact a,
.footer-contact a {
  color: var(--green);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.header-contact a:hover,
.footer-contact a:hover {
  opacity: 0.55;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
  padding: 150px clamp(24px, 9vw, 150px) 60px;
  background: var(--cream-soft);
}

.parcel-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.parcel-lines svg {
  width: 100%;
  height: 100%;
}

.parcel-lines path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.parcel-lines--hero {
  right: -18%;
  left: auto;
  width: 68%;
  color: rgba(11, 61, 46, 0.11);
  transform: rotate(-5deg) scale(1.1);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  max-width: 900px;
  margin-bottom: 28px;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(64px, 9vw, 138px);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.hero-lead {
  position: relative;
  max-width: 620px;
  margin: 0 0 80px clamp(0px, 22vw, 315px);
  color: #405049;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
}

.hero-foot {
  position: absolute;
  right: clamp(24px, 4vw, 70px);
  bottom: 30px;
  left: clamp(24px, 4vw, 70px);
  display: flex;
  align-items: center;
  color: var(--muted);
}

.hero-rule {
  height: 1px;
  flex: 1;
  margin: 0 24px;
  background: var(--line);
}

.section {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 3.2fr);
  gap: clamp(40px, 7vw, 120px);
  padding: clamp(90px, 12vw, 190px) clamp(24px, 9vw, 150px);
}

.section-index {
  padding-top: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.display-copy {
  max-width: 980px;
  margin-bottom: clamp(55px, 8vw, 120px);
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.body-copy {
  max-width: 650px;
  margin-bottom: 0;
  color: #536059;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.65;
}

.intro .body-copy {
  margin-left: auto;
}

.expertise {
  background: #dedfd7;
}

.expertise-heading {
  padding-bottom: 70px;
}

.expertise-heading h2,
.models-heading h2,
.principles h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(55px, 7vw, 104px);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.expertise-list {
  padding: 0 clamp(24px, 9vw, 150px) clamp(90px, 12vw, 180px);
}

.expertise-item {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(0, 3.2fr);
  gap: clamp(40px, 7vw, 120px);
  padding: 40px 0 55px;
  border-top: 1px solid rgba(23, 35, 30, 0.2);
}

.expertise-number {
  padding-top: 8px;
  color: var(--green);
}

.expertise-item h3 {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 300;
  letter-spacing: -0.035em;
}

.expertise-item p {
  max-width: 570px;
  margin-bottom: 0;
  color: #536059;
  font-size: 16px;
  line-height: 1.7;
}

.models {
  padding-bottom: clamp(90px, 12vw, 170px);
  background: var(--cream-soft);
}

.models-heading {
  padding-bottom: clamp(65px, 8vw, 110px);
}

.models-heading h2 {
  max-width: 980px;
  margin-bottom: 45px;
}

.models-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 clamp(24px, 6vw, 100px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.model-card {
  padding: 34px clamp(22px, 3vw, 48px) 55px;
  border-right: 1px solid var(--line);
}

.model-card:first-child {
  padding-left: 0;
}

.model-card:last-child {
  padding-right: 0;
  border-right: 0;
}

.model-number {
  display: block;
  margin-bottom: clamp(70px, 8vw, 120px);
  color: var(--green);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.model-card h3 {
  min-height: 2.3em;
  margin-bottom: 25px;
  font-family: var(--serif);
  font-size: clamp(31px, 3vw, 48px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.model-card p {
  margin-bottom: 0;
  color: #536059;
  font-size: 15px;
  line-height: 1.75;
}

.models-note {
  max-width: 700px;
  margin: 45px clamp(24px, 6vw, 100px) 0 auto;
  padding-right: clamp(0px, 3vw, 48px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.7;
  text-transform: uppercase;
}

.scale {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 11vw, 170px) clamp(24px, 6vw, 100px);
  background: var(--green);
  color: var(--cream);
}

.parcel-lines--scale {
  color: rgba(242, 240, 232, 0.12);
}

.section-index--light {
  position: relative;
  margin-bottom: clamp(80px, 12vw, 170px);
  color: rgba(242, 240, 232, 0.55);
}

.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(242, 240, 232, 0.25);
}

.stat {
  min-height: 260px;
  padding: 30px 25px;
  border-right: 1px solid rgba(242, 240, 232, 0.25);
}

.stat:first-child {
  padding-left: 0;
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  margin-bottom: 30px;
  font-family: var(--serif);
  font-size: clamp(70px, 9vw, 135px);
  font-weight: 300;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.stat strong sup {
  margin-left: 5px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.12em;
  vertical-align: top;
}

.stat > span {
  display: block;
  color: rgba(242, 240, 232, 0.68);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.principles {
  align-items: start;
}

.principles h2 {
  max-width: 950px;
  margin-bottom: clamp(60px, 8vw, 110px);
}

.principles .body-copy {
  margin-left: auto;
}

.visually-hidden {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.stats-note {
  position: relative;
  margin: 35px 0 0;
  color: rgba(242, 240, 232, 0.45);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}


footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 30px;
  padding: 38px clamp(24px, 4vw, 70px);
  border-top: 1px solid var(--line);
}

footer img {
  width: 190px;
}

footer p {
  margin: 0;
  color: var(--muted);
}

.copyright {
  text-align: right;
}

.footer-contact {
  display: flex;
  gap: 24px;
}

.privacy-note {
  grid-column: 1 / -1;
  max-width: 620px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
  text-transform: none;
}

/* Animacje reveal aktywne tylko, gdy JS działa (klasa .js na <html>).
   Bez JS treść jest od razu widoczna. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.js .reveal-delay-1 {
  transition-delay: 0.1s;
}

.js .reveal-delay-2 {
  transition-delay: 0.2s;
}

.js .reveal-delay-3 {
  transition-delay: 0.3s;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    padding: 22px 20px;
  }

  .header-contact {
    flex-direction: column;
    gap: 6px;
    text-align: right;
  }

  .hero {
    min-height: 780px;
    padding: 135px 20px 80px;
  }

  .parcel-lines--hero {
    top: 35%;
    width: 100%;
    opacity: 0.8;
  }

  h1 {
    font-size: clamp(58px, 17vw, 90px);
  }

  .hero-lead {
    max-width: 500px;
    margin: 16px 0 0;
  }

  .hero-foot {
    right: 20px;
    bottom: 22px;
    left: 20px;
    justify-content: space-between;
  }

  .hero-rule {
    display: none;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .intro .body-copy,
  .principles .body-copy {
    margin-left: 0;
  }

  .expertise-heading,
  .models-heading {
    padding-bottom: 55px;
  }

  .expertise-list {
    padding-right: 20px;
    padding-left: 20px;
  }

  .expertise-item {
    grid-template-columns: 45px 1fr;
    gap: 15px;
  }

  .models-list {
    grid-template-columns: 1fr;
    margin-right: 20px;
    margin-left: 20px;
  }

  .model-card,
  .model-card:first-child,
  .model-card:last-child {
    padding: 32px 0 45px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .model-card:last-child {
    border-bottom: 0;
  }

  .model-number {
    margin-bottom: 45px;
  }

  .model-card h3 {
    min-height: auto;
  }

  .models-note {
    margin-right: 20px;
    margin-left: 20px;
    padding-right: 0;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat {
    min-height: 225px;
    border-bottom: 1px solid rgba(242, 240, 232, 0.25);
  }

  footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .copyright {
    text-align: left;
  }

  .privacy-note {
    margin-top: 10px;
  }
}

@media (max-width: 520px) {
  .brand img {
    width: 165px;
  }

  .header-contact {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  h1 {
    font-size: 49px;
    letter-spacing: -0.06em;
  }

  .hero-foot {
    font-size: 8px;
  }

  .display-copy {
    font-size: 43px;
  }

  .expertise-heading h2,
  .models-heading h2,
  .principles h2 {
    font-size: 52px;
  }

  .expertise-item {
    grid-template-columns: 1fr;
    padding: 30px 0 45px;
  }

  .expertise-item p {
    font-size: 15px;
  }

  .scale {
    padding-right: 20px;
    padding-left: 20px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    display: grid;
    min-height: 140px;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    padding: 28px 0;
    border-right: 0;
  }

  .stat strong {
    margin-bottom: 0;
    font-size: 70px;
  }

  .stat > span {
    padding-bottom: 7px;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .footer-contact {
    flex-direction: column;
    gap: 8px;
  }
}

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

  .reveal,
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
