#home-study {
  --rs-ink: #2a2725;
  --rs-line: #b9b1a2;
  color: var(--rs-ink);
  scroll-margin-block-start: 76px;
}
#home-study:focus { outline: none; }
.rs-layout {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(250px,1fr);
  grid-template-areas: "stage aside";
  gap: clamp(28px,5vw,90px);
  align-items: start;
}
.rs-stage { grid-area: stage; min-width: 0; }
.rs-aside {
  grid-area: aside; display: grid; align-self: stretch; grid-template-rows: auto 1fr;
  gap: clamp(24px,3.1vw,50px); min-width: 0;
}
.rs-copy { align-self: center; padding-block-end: clamp(16px,3vw,50px); }
.rs-image {
  display: block; position: relative;
  width: 100%; aspect-ratio: 4/3;
  max-height: 71svh;
  background: #e9e5da;
  touch-action: pan-y pinch-zoom;
}
#home-study .rs-image img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  user-select: none;
}
.rs-controls, .rs-steps { display: flex; align-items: center; }
.rs-controls { justify-content: space-between; gap: 10px; border-block-end: 1px solid var(--rs-line); }
.rs-status { color: #625c50; font-size: .85rem; font-variant-numeric: tabular-nums; }
.rs-photo-details { min-width: 0; padding-block: 7px; }
.rs-photo-credit { display: block; color: #625c50; font-size: .8rem; line-height: 1.4; overflow-wrap: anywhere; }
.rs-steps { flex: none; }
.rs-steps button {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; color: var(--rs-ink); font-size: 1.15rem;
}
.rs-choices {
  display: flex; flex-wrap: wrap; align-items: stretch;
  border-block-start: 1px solid var(--rs-line);
  border-block-end: 1px solid var(--rs-line);
  gap: 0 clamp(10px,1.2vw,20px);
}
.rs-choices button {
  min-height: 44px; padding: 0 1px;
  line-height: 1.3; font-size: .91rem; color: #625c50;
}
.rs-choices button[aria-pressed=true] { box-shadow: inset 0 -2px var(--rs-ink); color: var(--rs-ink); }
.rs-choices button:hover, .rs-project-link:hover { text-decoration: underline; text-underline-offset: .22em; }
.rs-steps button:hover { background: #e8e2d7; }
.rs-copy h3 {
  font: 400 clamp(1.8rem,3.3vw,3.5rem)/1.13 var(--display-font);
  letter-spacing: -.032em; overflow-wrap: anywhere;
}
#home-study:lang(ar) h3 { letter-spacing: normal; line-height: 1.3; }
#home-study .rs-description {
  max-width: 42ch; margin-block: 18px 12px;
  font-size: clamp(.96rem,1.1vw,1.12rem); line-height: 1.65;
}
.rs-project-link {
  display: inline-flex; align-items: center; min-height: 44px; gap: .85em;
  border-block-end: 1px solid currentColor; font-size: .96rem;
}
@media(max-width: 750px) {
  .rs-layout { display: flex; flex-direction: column; gap: 14px; }
  .rs-aside { display: contents; }
  .rs-choices { order: 0; width: 100%; }
  .rs-stage { order: 1; width: 100%; }
  .rs-copy { order: 2; width: 100%; padding-block-end: 0; }
  .rs-choices button { flex: 1 0 auto; }
  .rs-image { max-height: none; }
  #home-study .rs-description { margin-block: 10px 5px; }
}
