#seleccion, #process {
  padding-block: clamp(4.5rem, 7vw, 8rem);
  color: #fff;
}

.practice-heading {
  margin-inline: auto;
  max-width: 58rem;
  text-align: center;
}
.practice-heading h2 {
  color: #fff;
  font-size: clamp(2rem, 4.25vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.practice-heading em { font-style: normal; color: var(--yellow); }
.selection .work-spread {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4.2vw, 5.5rem);
  align-items: center;
}
.selection-copy h2 {
  color: #fff;
  font-size: clamp(2.15rem, 3.8vw, 3.9rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.selection-copy em { color: var(--yellow); font-style: normal; }
.selection-copy p {
  margin-top: 1.1rem;
  max-width: 51ch;
  font-size: clamp(.97rem, 1.23vw, 1.16rem);
  line-height: 1.65;
  color: #d0cfcb;
  text-wrap: pretty;
}
#seleccion { padding-block: clamp(3rem, 4.5vw, 5.25rem); }
.selection-brand {
  display: block;
  width: clamp(5.8rem, 8vw, 8.2rem);
  height: auto;
  margin-bottom: clamp(1.25rem, 2.3vw, 2rem);
}
.case-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin-top: 1.55rem;
}
.case-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 46px;
  padding: .7rem 1.25rem;
  border: 0;
  border-radius: 2rem;
  font: 600 .9rem/1.2 var(--font-body);
}
.case-link:disabled {
  opacity: 1;
  -webkit-text-fill-color: currentColor;
  cursor: default;
}
.case-link svg { width: 1rem; height: 1rem; }
.case-status { color: #c1c1be; font-size: .8rem; }

.screen-prints {
  position: relative;
  container-type: inline-size;
  width: 96%;
  max-width: 40rem;
  aspect-ratio: .82;
  margin: 0;
  justify-self: center;
}
.screen-board {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  transform: translate(-50%, -50%) rotate(12deg);
}
.screen-slot {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 3px;
  overflow: hidden;
  isolation: isolate;
  background: #121212;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .09);
}
@media (width > 700px) {
  .screen-board {
    --print-width: 21.4cqi;
    --gutter: 1.45cqi;
    --half-row: calc((var(--print-width) * 16 / 9 + var(--gutter)) / 2);
    --rise: calc((var(--print-width) + var(--gutter)) * tan(12deg));
    grid-template-columns: repeat(4, var(--print-width));
    grid-template-rows: repeat(6, var(--half-row));
    column-gap: var(--gutter);
    align-items: center;
  }
  /* One tilted grid. Offsetting the tracks along their own axis keeps both
     endpoints level, while horizontal and vertical gutters stay equal. */
  .screen-slot { width: 100%; translate: 0 calc(var(--track-offset) * var(--rise)); }
  .screen-slot:nth-child(1) { grid-area: 3 / 1 / span 2; --track-offset: 1.5; }
  .screen-slot:nth-child(2) { grid-area: 2 / 2 / span 2; --track-offset: .5; }
  .screen-slot:nth-child(3) { grid-area: 4 / 2 / span 2; --track-offset: .5; }
  .screen-slot:nth-child(4) { grid-area: 1 / 3 / span 2; --track-offset: -.5; }
  .screen-slot:nth-child(5) { grid-area: 3 / 3 / span 2; --track-offset: -.5; }
  .screen-slot:nth-child(6) { grid-area: 5 / 3 / span 2; --track-offset: -.5; }
  .screen-slot:nth-child(7) { grid-area: 3 / 4 / span 2; --track-offset: -1.5; }
}
.screen-slot iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

@media (max-width: 700px) {
  .selection .work-spread { grid-template-columns: 1fr; gap: 1.5rem; }
  .selection-copy { grid-row: 1; }
  .selection-copy h2 { max-width: none; font-size: clamp(2rem, 7.4vw, 2.7rem); }
  .selection-copy p { max-width: 46ch; margin-top: .65rem; }
  .selection-brand { margin-bottom: 1rem; }
  .case-actions { margin-top: 1.05rem; }
  .screen-prints { width: 76%; max-width: 22rem; aspect-ratio: .55; }
  .screen-board { width: 63.5%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4cqi; }
  .screen-slot:nth-child(even) { translate: 0 -5%; }
}
@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  .screen-slot:nth-child(n+6) { grid-area: 3 / 2; translate: 0 -5%; transition: opacity .28s ease; }
  .screen-board:not(.show-advisor) .screen-slot:nth-child(7),
  .screen-board.show-advisor .screen-slot:nth-child(6) { opacity: 0; }
}
@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
  .screen-prints { aspect-ratio: .42; }
  .screen-slot:nth-child(7) { width: calc((100% - 2.4cqi) / 2); grid-column: 1 / -1; justify-self: center; }
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.3rem clamp(1.4rem, 3.5vw, 4rem);
  margin-top: clamp(2.2rem, 4vw, 4rem);
  padding: 0;
  list-style: none;
}
.process-steps li { position: relative; }
.process-steps li > svg { width: 1.6rem; height: 1.6rem; color: var(--yellow); stroke-width: 1.6; }
.process-steps h3 { margin-block: .9rem .45rem; color: #fff; font-size: clamp(1.08rem, 1.55vw, 1.45rem); line-height: 1.3; font-weight: 600; }
.process-steps p { max-width: 42ch; color: #c5c5c3; line-height: 1.65; text-wrap: pretty; }
@media (min-width: 901px) {
  .process-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    inset: .8rem .15rem auto 2.65rem;
    height: 1px;
    background: #373737;
  }
}
@media (max-width: 900px) {
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .process-steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .process-steps li { padding-inline-start: 2.6rem; }
  .process-steps li > svg { position: absolute; inset: .05rem auto auto 0; }
  .process-steps h3 { margin-top: 0; }
}
