/*
 * MARI homepage — content, typography and process refinement v6.
 * Loaded after polish-v5.css.
 */

/* About: calmer copy, visible tools and one icon language. */

.about-copy {
  display: flex;
  flex-direction: column;
}

.about-copy > p {
  max-width: 405px;
  font-size: 15px;
  line-height: 1.62;
}

.about-tools {
  margin-top: 23px;
}

.about-tools > span {
  display: block;
  color: #8596ad;
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-tools ul {
  margin: 11px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.about-tools li {
  width: 48px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(181, 207, 239, 0.22);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  color: #dce7f6;
  font-size: 13px;
  font-weight: 570;
  letter-spacing: -0.025em;
}

.about-tools li:last-child {
  width: 55px;
  color: #a8d6ff;
}

.signature {
  margin-top: 25px;
}

.stat-icon,
.stat-icon--experience,
.stat-icon--spark,
.stat-icon--type,
.stat-icon--education {
  position: relative;
  width: 26px;
  height: 26px;
  margin-left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  filter: none;
  color: #dbe5f3;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 430;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: none;
}

.stat-icon::before,
.stat-icon::after,
.stat-icon--experience::before,
.stat-icon--experience::after,
.stat-icon--type::before,
.stat-icon--type::after,
.stat-icon--education::before,
.stat-icon--education::after {
  content: none;
  display: none;
}

.stat-icon--experience {
  font-size: 27px;
}

.stat-icon--spark {
  font-size: 23px;
  font-weight: 350;
}

.stat-icon--type {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.09em;
}

.stat-icon--education {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.12em;
}

/* Supporting copy must read as content, not decorative fine print. */

.works-heading > p,
.process-intro > p.process-lead:last-child {
  max-width: 405px;
  font-size: clamp(15px, 1.16vw, 17px);
  line-height: 1.58;
}

.faq-heading > p:last-child {
  max-width: 335px;
  font-size: clamp(14px, 1.03vw, 15.5px);
  line-height: 1.58;
}

/* Keep the hero dense; loosen only the long editorial headings. */

.works-heading h2,
.process-title-group h2,
.faq-heading h2 {
  line-height: 0.94;
  letter-spacing: -0.046em;
}

/* Process: a restrained linear system from start to delivery. */

.process-section {
  background:
    linear-gradient(158deg, transparent 0 55%, rgba(255, 255, 255, 0.035) 55.1% 65%, transparent 65.1%),
    linear-gradient(180deg, #07101f 0%, #06389f 18%, #075df1 47%, #0745c4 77%, #070f1e 100%);
}

.process-section::before {
  inset: 0 0 auto;
  width: auto;
  height: 255px;
  border: 0;
  border-radius: 0;
  opacity: 1;
  background: linear-gradient(180deg, #07101f 0%, rgba(7, 16, 31, 0) 100%);
  background-size: auto;
  box-shadow: none;
}

.process-section::after {
  height: 255px;
  background: linear-gradient(180deg, rgba(7, 15, 30, 0), #070f1e);
  background-size: auto;
}

.process-title-group h2 {
  line-height: 0.92;
}

.process-lead {
  padding-left: 24px;
}

.process-flow {
  position: relative;
  margin-top: 54px;
  overflow: hidden;
  border: 1px solid rgba(205, 230, 255, 0.28);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 38%),
    rgba(4, 34, 102, 0.56);
  box-shadow:
    0 34px 74px rgba(0, 22, 86, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.process-flow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 108px;
  height: 3px;
  background: var(--mari-coral);
}

.process-flow-rail {
  min-height: 78px;
  padding: 0 27px;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid rgba(205, 230, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-flow-rail > div {
  position: relative;
  height: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.process-flow-rail > div::before {
  content: "";
  position: absolute;
  right: 12.5%;
  left: 12.5%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, var(--mari-coral), rgba(225, 239, 255, 0.48));
  transform: translateY(-50%);
}

.process-flow-rail i {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 2px;
  background: #0a52cd;
  transform: rotate(45deg);
}

.process-flow-rail i:first-child {
  border-color: #ffc0cc;
  background: var(--mari-coral);
}

.process-flow .process-list {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 0;
  list-style: none;
}

.process-flow .process-list li,
.process-flow .process-list li:first-child,
.process-flow .process-list li:last-child,
.process-flow .process-list li:nth-child(1),
.process-flow .process-list li:nth-child(2),
.process-flow .process-list li:nth-child(3),
.process-flow .process-list li:nth-child(4) {
  position: relative;
  inset: auto;
  width: auto;
  min-height: 286px;
  height: auto;
  margin: 0;
  padding: 29px 27px 31px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 50px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid rgba(205, 230, 255, 0.2);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  transform: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background 0.28s ease;
}

.process-flow .process-list li:last-child,
.process-flow .process-list li:nth-child(4) {
  border-right: 0;
}

.process-flow .process-list li:hover {
  background: rgba(255, 255, 255, 0.055);
  transform: none;
}

.process-flow .process-list li::before {
  content: none;
  display: none;
}

.process-flow .process-list li::after {
  content: "";
  position: absolute;
  right: auto;
  bottom: auto;
  left: 27px;
  top: 0;
  width: 38px;
  height: 2px;
  display: block;
  border: 0;
  border-radius: 0;
  background: rgba(225, 239, 255, 0.28);
  box-shadow: none;
  transform: none;
}

.process-flow .process-list li:first-child::after {
  background: var(--mari-coral);
}

.process-flow .process-list li > span {
  position: relative;
  z-index: 2;
  width: auto;
  height: auto;
  margin: 0;
  display: block;
  border: 0;
  border-radius: 0;
  background: none;
  color: rgba(255, 255, 255, 0.22);
  font: 500 clamp(46px, 4.6vw, 68px)/0.9 var(--display);
  letter-spacing: -0.075em;
}

.process-flow .process-list li > div {
  position: relative;
  z-index: 2;
}

.process-flow .process-list strong {
  display: block;
  color: #fff;
  font-size: clamp(21px, 1.65vw, 26px);
  font-weight: 570;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.process-flow .process-list p {
  max-width: 250px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13.5px;
  line-height: 1.5;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .process-flow .process-list li,
  .process-flow .process-list li:first-child,
  .process-flow .process-list li:last-child,
  .process-flow .process-list li:nth-child(1),
  .process-flow .process-list li:nth-child(2),
  .process-flow .process-list li:nth-child(3),
  .process-flow .process-list li:nth-child(4) {
    min-height: 300px;
    padding: 26px 22px 28px;
  }

  .process-flow .process-list li::after {
    left: 22px;
  }

  .process-flow .process-list p {
    font-size: 12.5px;
  }
}

@media (max-width: 900px) {
  .about-copy > p {
    max-width: 520px;
  }

  .process-flow {
    margin-top: 38px;
  }

  .process-flow .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-flow .process-list li,
  .process-flow .process-list li:first-child,
  .process-flow .process-list li:last-child,
  .process-flow .process-list li:nth-child(1),
  .process-flow .process-list li:nth-child(2),
  .process-flow .process-list li:nth-child(3),
  .process-flow .process-list li:nth-child(4) {
    min-height: 244px;
    padding: 25px;
    border-right: 1px solid rgba(205, 230, 255, 0.2);
    border-bottom: 1px solid rgba(205, 230, 255, 0.2);
  }

  .process-flow .process-list li:nth-child(2n) {
    border-right: 0;
  }

  .process-flow .process-list li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .process-flow .process-list li::after {
    left: 25px;
  }
}

@media (max-width: 700px) {
  .about-copy > p {
    font-size: 14px;
  }

  .about-tools {
    margin-top: 21px;
  }

  .about-tools ul {
    gap: 7px;
  }

  .about-tools li {
    width: 47px;
    height: 38px;
  }

  .signature {
    margin-top: 27px;
  }

  .works-heading > p,
  .faq-heading > p:last-child {
    font-size: 14px;
    line-height: 1.56;
  }

  .process-intro > p.process-lead:last-child {
    font-size: 14px;
    line-height: 1.56;
  }

  .works-heading h2,
  .process-title-group h2,
  .faq-heading h2 {
    line-height: 0.96;
    letter-spacing: -0.04em;
  }

  .process-lead {
    padding-left: 17px;
  }

  .process-flow {
    border-radius: 23px;
  }

  .process-flow-rail {
    min-height: 66px;
    padding: 0 16px;
    grid-template-columns: auto minmax(130px, 1fr) auto;
    gap: 13px;
    font-size: 8px;
  }

  .process-flow-rail > div::before {
    right: 10%;
    left: 10%;
  }

  .process-flow-rail i {
    width: 7px;
    height: 7px;
  }

  .process-flow .process-list {
    grid-template-columns: 1fr;
  }

  .process-flow .process-list li,
  .process-flow .process-list li:first-child,
  .process-flow .process-list li:last-child,
  .process-flow .process-list li:nth-child(1),
  .process-flow .process-list li:nth-child(2),
  .process-flow .process-list li:nth-child(3),
  .process-flow .process-list li:nth-child(4) {
    min-height: 166px;
    padding: 22px 20px 23px;
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: start;
    justify-content: initial;
    gap: 17px;
    border-right: 0;
    border-bottom: 1px solid rgba(205, 230, 255, 0.2);
  }

  .process-flow .process-list li:last-child,
  .process-flow .process-list li:nth-child(4) {
    border-bottom: 0;
  }

  .process-flow .process-list li::after {
    left: 20px;
    width: 32px;
  }

  .process-flow .process-list li > span {
    padding-top: 3px;
    font-size: 43px;
  }

  .process-flow .process-list strong {
    font-size: 20px;
  }

  .process-flow .process-list p {
    max-width: 245px;
    margin-top: 10px;
    font-size: 12.5px;
  }
}
