/* Figma image mapping: four scope items beside the portrait, two over it.
   The existing article markup and reveal animations remain unchanged. */
#escopo.scope-section {
  padding-block: 100px 0;
  background: #eff5e9;
  overflow: clip;
}

#escopo > .section-width {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  column-gap: 44px;
  position: relative;
  isolation: isolate;
}

#escopo .section-heading {
  grid-column: 1;
  grid-row: 1;
  display: block;
  margin: 0 0 32px;
  position: relative;
  z-index: 2;
}

#escopo .section-heading h2 { max-width: 440px; }
#escopo .section-heading > p { max-width: 490px; margin: 17px 0 0; }

#escopo .scope-list { display: contents; }

#escopo .scope-item {
  grid-column: 1;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 17px;
  padding: 23px 0;
  margin: 0;
  min-width: 0;
  position: relative;
  z-index: 2;
  align-content: start;
  align-items: start;
}

#escopo .scope-item:nth-child(1) { grid-row: 2; }
#escopo .scope-item:nth-child(2) { grid-row: 3; }
#escopo .scope-item:nth-child(3) { grid-row: 4; }
#escopo .scope-item:nth-child(4) { grid-row: 5; }
#escopo .scope-item h3 { margin-bottom: 12px; }
#escopo .scope-item ul { line-height: 1.75; }

#escopo .scope-portrait {
  grid-column: 2;
  grid-row: 1 / 8;
  min-width: 0;
  min-height: 0;
  margin: 0 -110px 0 -60px;
  position: relative;
  z-index: 0;
  pointer-events: none;
  align-self: stretch;
}

#escopo .scope-portrait > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

#escopo .scope-item:nth-child(n + 5) {
  grid-column: 2;
  width: min(100%, 480px);
  justify-self: start;
  padding: 21px 22px;
  border: 1px solid #d9e3d4;
  border-radius: 18px;
  background: #f5f9ef;
  margin-left: 4px;
  gap: 14px;
}

#escopo .scope-item:nth-child(5) { grid-row: 4; align-self: end; margin-bottom: 10px; }
#escopo .scope-item:nth-child(6) { grid-row: 5; align-self: start; margin-top: 10px; }
#escopo .scope-item:nth-child(n + 5) h3 { font-size: 22px; }
#escopo .scope-item:nth-child(n + 5) ul { font-size: 12px; }

#escopo .technical-note {
  grid-column: 1;
  grid-row: 6;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 12px 16px;
  margin: 4px 0 0;
  padding-top: 24px;
  position: relative;
  z-index: 2;
}

#escopo .technical-note p { max-width: none; margin: 0; }
#escopo .technical-note a { grid-column: 2; margin-left: 0; justify-self: start; }
#escopo .scope-detail-note {
  grid-column: 1;
  grid-row: 7;
  margin: 22px 0 0;
  padding: 22px 0 34px;
  position: relative;
  z-index: 2;
}

@media (max-width: 1100px) and (min-width: 901px) {
  #escopo > .section-width { column-gap: 28px; }
  #escopo .scope-item { gap: 14px; }
  #escopo .scope-item h3 { font-size: 21px; }
  #escopo .scope-item:nth-child(n + 5) { padding: 18px 15px; gap: 10px; }
  #escopo .scope-item:nth-child(n + 5) h3 { font-size: 20px; }
  #escopo .scope-portrait { margin-left: -25px; margin-right: -65px; }
}

@media (max-width: 1100px) {
  #escopo.scope-section { padding-block: 70px; }
  #escopo > .section-width { grid-template-columns: minmax(0, 1fr); max-width: 660px; }
  #escopo .section-heading { grid-row: 1; margin-bottom: 28px; }
  #escopo .section-heading > p { max-width: 540px; }
  #escopo .scope-item { grid-column: 1; }
  #escopo .scope-detail-note { padding-bottom: 0; }
  #escopo .scope-portrait {
    grid-column: 1;
    grid-row: 6;
    width: 100%;
    height: auto;
    aspect-ratio: 1.2;
    margin: 32px 0 0;
    overflow: hidden;
  }
  #escopo .scope-portrait > img { object-fit: contain; object-position: center bottom; }
  #escopo .scope-item:nth-child(n + 5) {
    grid-column: 1;
    width: 100%;
    margin: 0;
    padding: 24px;
    justify-self: stretch;
    align-self: stretch;
  }
  #escopo .scope-item:nth-child(5) { grid-row: 7; margin-top: -48px; }
  #escopo .scope-item:nth-child(6) { grid-row: 8; margin-top: 16px; }
  #escopo .technical-note { grid-row: 9; margin-top: 24px; }
  #escopo .scope-detail-note { grid-row: 10; }
  #escopo .scope-item:nth-child(n + 5) h3 { font-size: 23px; }
  #escopo .scope-item:nth-child(n + 5) ul { font-size: 13px; }
}

@media (max-width: 520px) {
  #escopo.scope-section { padding-block: 60px; }
  #escopo .scope-item { grid-template-columns: 50px minmax(0, 1fr); gap: 14px; padding-block: 22px; }
  #escopo .scope-item h3,
  #escopo .scope-item:nth-child(n + 5) h3 { font-size: 22px; }
  #escopo .scope-item:nth-child(n + 5) { padding: 21px 17px; }
  #escopo .scope-portrait { aspect-ratio: 1; }
  #escopo .technical-note { gap: 12px; }
}
