/* The Digital Solutions page (digital-solutions.html): the hero with the three rows and a section
   per solution. The base, the texture and the header above the steps are in page.css; motion.js
   brings the page in, this file is the resting state. */

/* ------------------------------------------------------------ hero: the title and the three rows */

.ds-hero {
  position: relative;
  padding: 16px 16px 0;
}

.ds-hero__card {
  position: relative;
  height: calc(100vh - 32px);
  height: calc(100svh - 32px);
  min-height: 560px;
  border-radius: 40px;
  overflow: hidden;
  background: #feeb8d;
  color: #252324;
}

.ds-hero__title {
  position: absolute;
  left: 40px;
  bottom: 31px;
  margin: 0;
  font-size: clamp(56px, 7vw, 132px);
  font-size: min(clamp(56px, 7vw, 132px), 13svh);
  font-weight: 550;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.ds-hero__title > span {
  display: block;
}

.ds-hero__title > span + span {
  color: rgba(37, 35, 36, 0.5);
}

/* the rows start on the line of the homepage's headline */
.ds-hero__rows {
  position: absolute;
  left: 50.27%;
  right: 32px;
  bottom: 38px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds-hero__rows li {
  border-bottom: 1px solid rgba(37, 35, 36, 0.2);
}

.ds-hero__rows .sb-sol-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 67px;
  color: rgba(37, 35, 36, 0.88);
  text-decoration: none;
  font-size: 25px;
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color 0.2s ease;
}

.ds-hero__rows .sb-sol-row:hover {
  color: #000000;
}

.ds-hero__rows .sb-sol-row:focus-visible {
  outline: 2px solid #252324;
  outline-offset: 4px;
}

.ds-hero__no {
  flex: none;
  width: 34px;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: rgba(37, 35, 36, 0.5);
}

.ds-hero__name {
  flex: 1;
  min-width: 0;
}

.sb-sol-ic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(37, 35, 36, 0.6);
  display: grid;
  place-items: center;
  flex: none;
  box-sizing: border-box;
  color: #252324;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sb-sol-ic svg {
  display: block;
}

.sb-sol-row:hover .sb-sol-ic {
  background: #252324;
  border-color: #252324;
  color: #feeb8d;
}

/* ------------------------------------------------------------ a solution: panel and what is included */

.ds-sol {
  position: relative;
  padding: 16px 16px 0;
}

.ds-sol__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fffce1;
  color: #000000;
  border-radius: 40px;
  padding: 16px;
}

.ds-sol--flip .ds-sol__panel {
  order: 2;
}

/* the panel: the colour of the solution's card on the homepage, until its photo or video is in */
.ds-sol__panel {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  border-radius: 28px;
  padding: 36px 40px 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ds-sol__panel--websites {
  background: #252324;
  color: #fffce1;
}

.ds-sol__panel--process {
  background: #feeb8d;
  color: #000000;
}

.ds-sol__panel--tools {
  background: #000000;
  color: #fffce1;
}

.ds-sol__panel > .pg-fx--grain {
  opacity: 0.085;
}

.ds-sol__panel--process > .pg-fx--dots {
  background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.07) 0.62px, rgba(0, 0, 0, 0) 1.05px);
}

/* the step numerals of the homepage, drawn large */
.ds-sol__no {
  position: relative;
  display: block;
  color: #feeb8d;
}

.ds-sol__panel--process .ds-sol__no {
  color: #252324;
}

.ds-sol__no svg {
  display: block;
  height: clamp(110px, 11.5vw, 200px);
  width: auto;
  overflow: visible;
}

.ds-sol__price {
  position: relative;
  align-self: flex-end;
  margin: 0;
  font-size: clamp(44px, 4.4vw, 76px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
}

.sb-from {
  margin-right: 10px;
  font-size: 20px;
  font-weight: 450;
  letter-spacing: -0.012em;
}

.ds-sol__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 40px 40px 32px 56px;
}

.ds-sol--flip .ds-sol__body {
  padding: 40px 56px 32px 40px;
}

.ds-sol__title {
  margin: 0;
  font-size: clamp(36px, 3.86vw, 74px);
  font-weight: 550;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.ds-sol__text {
  margin: 24px 0 72px;
  max-width: 24em;
  font-size: 20px;
  font-weight: 450;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: #6f6d60;
}

.ds-sol__list {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #d3d1bb;
}

.ds-sol__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0 14px;
  border-bottom: 1px solid #d3d1bb;
  font-size: 20px;
  font-weight: 450;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.ds-sol__list svg {
  display: block;
  flex: none;
}

.ds-sol__cta {
  align-self: flex-start;
  margin-top: 40px;
  height: 46px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: #252324;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.ds-sol__cta,
.ds-sol__cta:hover {
  color: #fffce1;
}

/* ------------------------------------------------------------ smaller screens */

/* the rows go under the title, the panel above the text */
@media (max-width: 1000px) {
  .ds-hero__title {
    left: 32px;
    right: 32px;
    bottom: 332px;
  }

  .ds-hero__rows {
    left: 32px;
    right: 32px;
    bottom: 32px;
  }

  .ds-sol__card {
    grid-template-columns: 1fr;
  }

  .ds-sol--flip .ds-sol__panel {
    order: 0;
  }

  .ds-sol__panel {
    min-height: 440px;
  }

  .ds-sol__body,
  .ds-sol--flip .ds-sol__body {
    padding: 36px 24px 24px;
  }

  .ds-sol__text {
    margin-bottom: 56px;
  }
}

@media (max-width: 720px) {
  .ds-hero__card {
    min-height: 600px;
  }

  .ds-hero__title {
    left: 24px;
    right: 24px;
    bottom: 296px;
    font-size: 52px;
  }

  .ds-hero__rows {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }

  .ds-hero__rows .sb-sol-row {
    height: 60px;
    gap: 14px;
    font-size: 20px;
  }

  .ds-hero__no {
    width: 26px;
    font-size: 15px;
  }

  .ds-sol__card {
    padding: 12px;
    border-radius: 32px;
  }

  .ds-sol__panel {
    min-height: 320px;
    padding: 28px 24px 24px;
    border-radius: 22px;
  }

  .ds-sol__no svg {
    height: 96px;
  }

  .ds-sol__body,
  .ds-sol--flip .ds-sol__body {
    padding: 28px 12px 16px;
  }

  .ds-sol__title {
    font-size: 38px;
  }

  .ds-sol__text,
  .ds-sol__list li {
    font-size: 18px;
  }

  .ds-sol__cta {
    margin-top: 32px;
    font-size: 18px;
  }
}
