

body {
/*  font-family: "Inter", sans-serif;*/
/*  background: #f4f0e8;*/
/*  color: #151515;*/
}

.intro,
.outro {
  min-height: 90vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  text-align: center;
}

.intro-content,
.outro-content {
  max-width: 760px;
}

.eyebrow {
  margin-bottom: 18px;
  padding: 8px 14px;
  display: inline-flex;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 100px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  color: #6b533d;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.45);
}

/*h1,
h2 {
  font-size: clamp(42px, 8vw, 96px);
  letter-spacing: -0.06em;
  line-height: 0.95;
  margin-bottom: 24px;
}
*/
.intro p,
.outro p {
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.6;
  color: #5d574f;
}

/*.stack-section {
  padding: 80px 20px 140px;
}*/

.stack-heading {
  max-width: 1120px;
  margin: 0 auto 50px;
}

.stack-heading h2 {
  max-width: 780px;
}

.stack-heading p {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.7;
  color: #645d55;
}

.cards {
  
  margin: 0 auto;
/*  padding-bottom: 120px;*/
}

.stack-card {
  position: sticky;
  top: 90px;
      min-height: 332px;
    height: 332px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 38px;
    align-items: center;
        padding: 24px;
  margin-bottom: 25px;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
     border-radius: 18px;

  background: var(--card-bg);
  transform: scale(var(--scale, 1));
  transform-origin: top center;
}

.stack-card:nth-child(1) {
  top: 90px;
  --card-bg: white;
}

.stack-card:nth-child(2) {
  top: 138px;
  --card-bg: white;
}

.stack-card:nth-child(3) {
  top: 186px;
  --card-bg: white;
}

.stack-card:nth-child(4) {
  top: 234px;
  --card-bg: white;
}
.stack-card:nth-child(5) {
  top: 282px;
  --card-bg: white;
}


.card-image {
  height: 100%;
 height: 289px;
      border-radius: 18px;

  overflow: hidden;
}

.card-image img {
  width: 100%;
/*  height: 100%;*/
  object-fit: cover;
}

.card-content {
  padding: 20px 16px 20px 0;
  text-align: left;
}

.card-number {
  display: inline-flex;
  margin-bottom: 24px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(0, 0, 0, 0.48);
}

.card-content h3 {
  max-width: 520px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 24px;
}

.card-content p {
  max-width: 500px;
    font-size: 14px;
  line-height: 1.7;
  color: #000000;
  margin-bottom: 32px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-meta span {
  padding: 10px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.09);
  font-size: 13px;
  font-weight: 800;
  color: #39352f;
}

/* Tablet */

@media (max-width: 900px) {
  .stack-card {
    gap: 24px;
    padding: 22px;
    min-height: 400px;
  }

/*  .card-image {
    min-height: 340px;
  }*/

  .card-content {
    padding: 16px 12px 16px 0;
  }
}

/* Mobile  */

@media (max-width: 680px) {
  .stack-card {
    position: relative;
    top: auto !important;
    grid-template-columns: 1fr;
    min-height: auto !important;
    padding: 20px;
          margin-bottom: 5%;
    border-radius: 26px;
            overflow: hidden;
  }

  .card-image {
    width: 100%;
    min-height: 0;
    height: unset;
    border-radius: 18px;
  }

  .card-content {
    padding: 4px;
  }

  .card-content h3 {
    margin-bottom: 16px;
  }

  .card-content p {
    margin-bottom: 24px;
    font-size: 16px;
  }

  .card-number {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .card-meta span {
    font-size: 12px;
    padding: 8px 12px;
  }

  .intro,
  .outro {
    min-height: 70vh;
    padding: 60px 20px;
  }
}
