/* Modular Hero asset: the transparent device composition becomes part of the layout. */
.hero--modular {
  min-height: auto;
  padding: clamp(46px, 5.5vw, 78px) 0 52px;
}

.hero--modular .hero-grid {
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 4vw, 60px);
}

.hero--modular .hero-copy h1 {
  max-width: 640px;
  font-size: clamp(3rem, 4.3vw, 4.9rem);
}

.hero-visual--modular {
  position: relative;
  isolation: isolate;
  width: min(100%, 670px);
  min-height: 0;
  margin: 0 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-visual--modular::before {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 -10%;
  width: 56%;
  height: auto;
  border: 0;
  border-radius: 0;
  content: "";
  background: linear-gradient(90deg, #efefea 0%, rgba(239, 239, 234, .92) 25%, rgba(239, 239, 234, .3) 63%, transparent 100%);
  pointer-events: none;
}

.hero-visual--modular img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin-right: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 26px 30px rgba(37, 30, 21, .18));
  box-shadow: none;
  transform: none;
}

/* Process updates begin in the same frame as the active step changes. */
.process-step {
  transition-duration: 250ms;
}

.process-window-content {
  transition-duration: 320ms;
}

.process-placeholder span {
  transition-duration: 300ms;
}

.process-progress span {
  transition-duration: 280ms;
}

.process-visual {
  position: relative;
  top: auto;
}

@media (max-width: 900px) {
  .hero--modular .hero-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-visual--modular {
    width: min(100%, 640px);
    min-height: 0;
    margin: -8px auto 0;
  }

  .hero-visual--modular img {
    width: 100%;
    margin-right: 0;
  }
}

@media (max-width: 700px) {
  .hero--modular {
    padding: 48px 0 24px;
  }

  .hero--modular .hero-grid {
    gap: 0;
  }

  .hero-visual--modular {
    min-height: 0;
    margin: -12px auto 0;
  }

  .hero-visual--modular::before {
    left: -7%;
    width: 64%;
  }

  .hero-visual--modular img {
    width: 100%;
    margin-right: 0;
  }
}

/* Rebuilt comparison: fragmented contact paths versus a composed digital presence. */
.comparison-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  align-items: stretch;
  margin-top: 54px;
}

.comparison-side {
  min-height: 590px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .17);
}

.comparison-side header {
  display: flex;
  align-items: center;
  gap: 9px;
}

.comparison-side header > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: .54rem var(--mono);
}

.comparison-side header p {
  margin: 0;
  font: 500 .59rem var(--mono);
  letter-spacing: .12em;
}

.comparison-before {
  color: #252724;
  background: #dad9d1;
}

.comparison-after {
  color: #f8f8f3;
  background: #365d55;
}

.before-devices {
  position: relative;
  height: 318px;
  margin: 22px 0 24px;
}

.before-phone {
  position: absolute;
  width: 180px;
  height: 287px;
  overflow: hidden;
  border: 5px solid #292b29;
  border-radius: 24px;
  background: #f6f5f0;
  box-shadow: 0 18px 34px rgba(24, 24, 21, .2);
}

.before-social {
  left: 7%;
  top: 3px;
  transform: rotate(-7deg);
}

.before-chat {
  right: 8%;
  bottom: 0;
  padding: 44px 12px 12px;
  background: #e9e8e1;
  transform: rotate(6deg);
}

.before-phone-bar,
.before-chat-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  height: 37px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border-bottom: 1px solid #d4d4cd;
  background: #f8f7f2;
  font-size: .47rem;
}

.before-phone-bar i,
.before-chat-bar i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #a6a7a0;
}

.before-chat-bar span {
  color: #82958b;
  font-size: .42rem;
}

.before-profile {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 9px;
  padding: 53px 13px 15px;
  font-size: .53rem;
}

.before-profile > span {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #807664;
}

.before-profile small {
  color: #74756e;
  font-size: .43rem;
}

.before-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 0 8px;
}

.before-grid i {
  aspect-ratio: 1;
  background: #b8b7ad;
}

.before-grid i:nth-child(2),
.before-grid i:nth-child(5) {
  background: #d3cabc;
}

.before-chat p {
  max-width: 125px;
  margin: 0 0 9px;
  padding: 8px;
  border-radius: 8px 8px 8px 2px;
  background: #fff;
  font-size: .45rem;
  line-height: 1.35;
}

.before-chat p:nth-of-type(2) {
  margin-left: auto;
  border-radius: 8px 8px 2px 8px;
  background: #c6ded4;
}

.comparison-copy {
  max-width: 420px;
}

.comparison-copy h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.comparison-copy p {
  margin: 0;
  color: inherit;
  font-size: .78rem;
  opacity: .75;
}

.comparison-axis {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #b9cec7;
}

.comparison-axis span {
  width: 1px;
  height: 96px;
  background: currentColor;
  opacity: .45;
}

.comparison-axis b {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 400 .85rem var(--mono);
}

.after-presentation {
  position: relative;
  height: clamp(350px, 31vw, 430px);
  margin: 22px 0 24px;
  overflow: hidden;
  border: 5px solid #1d2926;
  border-radius: 5px;
  background: #1d2926;
  box-shadow: 14px 19px 0 rgba(210, 229, 221, .13);
}

.after-browser-bar {
  display: flex;
  height: 26px;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  color: #a7b5af;
  background: #1d2926;
  font: .43rem var(--mono);
}

.after-browser-bar i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a2c3b6;
}

.after-browser-bar span {
  margin-left: 6px;
}

.after-presentation img {
  display: block;
  width: 100%;
  height: calc(100% - 26px);
  object-fit: contain;
  object-position: center;
  background: #1d2926;
  opacity: .93;
}

.after-browser-caption {
  position: absolute;
  right: 14px;
  bottom: 13px;
  display: grid;
  gap: 2px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, .33);
  color: #fff;
  background: rgba(28, 45, 40, .76);
  backdrop-filter: blur(8px);
}

.after-browser-caption span {
  color: #c9ddd6;
  font: .46rem var(--mono);
  letter-spacing: .1em;
}

.after-browser-caption b {
  font-size: .59rem;
}

.comparison-after .comparison-copy p {
  color: #d2ded9;
  opacity: 1;
}

@media (max-width: 700px) {
  .comparison-board {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 36px;
  }

  .comparison-side {
    min-height: 0;
    padding: 20px;
  }

  .comparison-axis {
    flex-direction: row;
    min-height: 60px;
  }

  .comparison-axis span {
    width: min(32vw, 116px);
    height: 1px;
  }

  .before-devices,
  .after-presentation {
    height: 330px;
  }

  .before-phone {
    width: 153px;
    height: 244px;
  }

  .before-social {
    left: 5%;
  }

  .before-chat {
    right: 6%;
  }

  .comparison-copy {
    max-width: 100%;
  }
}
