.sr-mockup-review {
  container-type: inline-size;
  scroll-margin-top: 6rem;
  font-family: var(--sr-font);
  text-align: left;
}
.sr-mockup-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem;
  padding: 0 0 .75rem;
  color: var(--sr-navy);
  font-size: .9rem;
}
.sr-mockup-nav span { margin-right: .7rem; font-weight: 650; }
.sr-mockup-nav a {
  padding: .55rem .8rem;
  border-radius: .4rem;
  color: var(--sr-blue);
  line-height: 1.35;
  text-decoration: none;
}
.sr-mockup-nav a:hover { text-decoration: underline; }
.sr-mockup-nav a[aria-current] { background: var(--sr-navy); color: white; }

#main .sr-mockup-review .sr-device-scene {
  --note-color: #304659;
  --note-rule: #afc2cf;
  display: grid;
  grid-template-columns: minmax(0, 2.65fr) minmax(0, 1fr);
  gap: 1.6rem clamp(1rem, 3.8cqi, 3rem);
  max-width: none;
  padding: clamp(1.2rem, 3.8cqi, 3rem);
  border: 1px solid #c7d8e1;
  border-radius: var(--sr-panel-radius);
  background: radial-gradient(ellipse at 23% 10%, #fff 4%, transparent 67%),
              linear-gradient(155deg, #eef5f8 15%, #d5e4ee 85%);
}
.sr-view {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  min-width: 0;
}
.sr-view-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  align-self: stretch;
}
.sr-hardware { position: relative; box-sizing: border-box; }
.sr-view--monitor .sr-hardware { width: 100%; }
.sr-display { position: relative; z-index: 1; box-sizing: border-box; }
.sr-view--monitor .sr-display {
  --monitor-rim: clamp(3px, .53cqi, 7px);
  padding: var(--monitor-rim);
  background: #19252d;
  border: 1px solid #839399;
  border-radius: clamp(5px, .8cqi, 11px);
  box-shadow: inset 0 0 0 1px #465158, 0 8px 16px -10px #17364880;
}
#main .sr-mockup-review .sr-display img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.sr-view--phone .sr-hardware {
  width: min(100%, 18cqi, 13rem);
  padding: clamp(3px, .48cqi, 6px);
  border: 1px solid #65747d;
  border-radius: 11% / 5.5%;
  background: #27333b;
  box-shadow: inset 1px 1px 0 #acb7be, inset -1px -1px 0 #7f8d95, 0 9px 12px -8px #182e4480;
}
.sr-view--phone .sr-display {
  padding: 4.8% 1.4% 3.8%;
  background: #10171c;
  border-radius: 10% / 5%;
}
.sr-view--phone .sr-display::before {
  content: "";
  position: absolute;
  top: 1%;
  left: 39%;
  width: 22%;
  height: 1px;
  border-radius: 2px;
  background: #435058;
}

/* Studio desk: satin metal chin, tapered pedestal, and a separate graphite phone. */
.sr-device-scene--studio .sr-view--monitor picture { display: contents; }
.sr-device-scene--studio .sr-view--monitor .sr-display img { aspect-ratio: 1351 / 777; }
.sr-device-scene--studio .sr-view--monitor .sr-hardware { padding-bottom: 9.5%; }
.sr-device-scene--studio .sr-view--monitor .sr-display {
  padding-bottom: 0;
  overflow: hidden;
  background: #24313a;
}
/* The silver chin follows the screen and its bottom rim at every size. */
.sr-device-scene--studio .sr-view--monitor .sr-display::after {
  content: "";
  display: block;
  margin: var(--monitor-rim) calc(0px - var(--monitor-rim)) 0;
  aspect-ratio: 36 / 1;
  background: linear-gradient(#d9e1e5, #a6b5be);
}
.sr-device-scene--studio .sr-view--monitor .sr-display img {
  /* The ticker starts at row 694 of 777. Keep the board above it fully opaque. */
  mask-image: linear-gradient(#000 89.3%, transparent 89.5%),
              linear-gradient(to right, transparent, #000 .55% 99.45%, transparent),
              linear-gradient(to top, transparent .55%, #000 1.2%);
  mask-composite: add, intersect;
}
/* The yellow lettering is baked into the screenshot. Reposition its scanlines
   by half the lower rim to center them between the board and the silver chin. */
.sr-device-scene--studio .sr-view--monitor .sr-display::before {
  content: "";
  position: absolute;
  inset: var(--monitor-rim) var(--monitor-rim) auto;
  aspect-ratio: 1351 / 777;
  z-index: 1;
  pointer-events: none;
  background: url("gallery-board.png") center / 100% 100% no-repeat;
  transform: translateY(calc(var(--monitor-rim) / 2));
  mask-image: linear-gradient(to bottom, transparent 89.4%, #000 89.9% 98.2%, transparent 98.8%),
              linear-gradient(to right, transparent, #000 .55% 99.45%, transparent);
  mask-composite: intersect;
}
.sr-studio-ticker { display: none; }
/* Use live ticker copy in the desktop Studio desk mockup. Narrow layouts use the original captures. */
@media (min-width: 768px) {
  @container (width > 40rem) {
    .sr-device-scene--studio .sr-display {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
    }
    .sr-device-scene--studio .sr-view--monitor .sr-display {
      --ticker-height: 10.68%; /* 83 rows of the 777px screen. */
    }
    .sr-device-scene--studio .sr-view--phone .sr-display {
      --ticker-height: 6.04%; /* 80 rows of the 1324px screen. */
    }
    .sr-device-scene--studio .sr-view--monitor .sr-display::before { display: none; }
    .sr-device-scene--studio .sr-display img {
      grid-area: 1 / 1;
      clip-path: inset(0 0 var(--ticker-height));
    }
    .sr-studio-ticker {
      grid-area: 1 / 1;
      align-self: end;
      display: grid;
      place-items: center;
      container-type: inline-size;
      height: var(--ticker-height);
    }
    .sr-view--monitor .sr-studio-ticker {
      background: linear-gradient(#989898, #606060 5%, #020202 46%, #2b2b2b 74%, #1d1d1d 90%, #24313a);
      mask-image: linear-gradient(to right, transparent, #000 .55% 99.45%, transparent);
    }
    .sr-view--phone .sr-studio-ticker {
      --ticker-font-size: 8.45cqi;
      --ticker-text-offset: -.05em;
      background: linear-gradient(#989898, #606060 6%, #030303 51%, #2b2b2b 82%, #1e1e1e);
      border-radius: 0 0 5.5% 5.5% / 0 0 60% 60%;
    }
  }
}
.sr-studio-ticker > span {
  font: 700 var(--ticker-font-size, 3.25cqi)/1 Arial, sans-serif;
  white-space: nowrap;
  color: #ff0;
  transform: translateY(var(--ticker-text-offset, calc(var(--monitor-rim, 0px) / 2)));
}
.sr-device-scene--studio .sr-view--monitor .sr-hardware::before,
.sr-device-scene--studio .sr-view--monitor .sr-hardware::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  background: linear-gradient(100deg, #aab9c3, #e1e8ec 43%, #97a7b1 90%);
}
.sr-device-scene--studio .sr-view--monitor .sr-hardware::before {
  width: 17%;
  height: 16%;
  clip-path: polygon(12% 0, 88% 0, 94% 87%, 100% 100%, 0 100%, 6% 87%);
}
.sr-device-scene--studio .sr-view--monitor .sr-hardware::after {
  width: 29%;
  height: 1.15%;
  border-bottom: 1px solid #7c8b95;
  border-radius: 60% 60% 16% 16%;
  box-shadow: 0 2px 4px #223e521f;
}
.sr-device-note {
  padding-top: .85rem;
  border-top: 1px solid var(--note-rule);
  color: var(--note-color);
  font-size: clamp(.94rem, 1.27cqi, 1.04rem);
  line-height: 1.5;
}
.sr-device-note p { max-width: 43ch; margin: 0; color: inherit; }

/* Gallery wall: flush-mounted landscape display and a phone on the side. */
#main .sr-mockup-review .sr-device-scene--wall {
  --note-color: #e3edf3;
  --note-rule: #516a7e;
  grid-template-columns: minmax(0, 3.05fr) minmax(0, 1fr);
  border-color: #253f53;
  background: radial-gradient(ellipse at 25% -30%, #527080 0%, #294557 48%, #122a3d 82%);
}
.sr-device-scene--wall .sr-view-art { align-items: center; }
.sr-device-scene--wall .sr-view--monitor .sr-display {
  border-color: #647781;
  border-radius: 3px;
  padding: clamp(3px, .5cqi, 7px);
  background: #10191e;
  box-shadow: inset 0 1px #93a2aa, 0 1.2cqi 1.5cqi -.45cqi #071621b3;
}
.sr-device-scene--wall .sr-view--phone .sr-hardware { width: min(100%, 16cqi, 12rem); }

/* Phone close-up: the two devices have independent portrait and landscape panels. */
#main .sr-mockup-review .sr-device-scene--mobile {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: 0 clamp(.65rem, 1.4cqi, 1.1rem);
  padding: 0;
  border: 0;
  background: none;
}
.sr-device-scene--mobile .sr-view {
  gap: 1.25rem;
  padding: clamp(1rem, 2.5cqi, 2rem);
  border: 1px solid #c5d5df;
  border-radius: var(--sr-panel-radius);
}
.sr-device-scene--mobile .sr-view--phone {
  background: radial-gradient(ellipse at 80% 0%, #eff8fe, transparent 70%), #d7e8f3;
}
.sr-device-scene--mobile .sr-view--monitor { background: #fff; }
.sr-device-scene--mobile .sr-view-art { align-items: center; }
.sr-device-scene--mobile .sr-view--phone .sr-hardware { width: min(100%, 21cqi, 14.25rem); }

@container (max-width: 40rem) {
  .sr-mockup-nav span { flex-basis: 100%; margin-bottom: .25rem; }
  .sr-mockup-nav a { padding-inline: .6rem; }
  #main .sr-mockup-review .sr-device-scene {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
    padding: 1rem;
  }
  .sr-view { grid-row: auto; grid-template-rows: auto; gap: .85rem; }
  .sr-view--phone { grid-template-columns: minmax(0, .86fr) minmax(0, 1fr); align-items: center; }
  .sr-view--phone .sr-hardware,
  .sr-device-scene--wall .sr-view--phone .sr-hardware,
  .sr-device-scene--mobile .sr-view--phone .sr-hardware { width: min(100%, 10rem); }
  .sr-view--phone .sr-device-note { align-self: center; }
  #main .sr-mockup-review .sr-device-scene--mobile { padding: 0; gap: .75rem; }
  .sr-device-scene--mobile .sr-view { padding: 1rem; gap: 1rem; }
  .sr-device-scene--mobile .sr-view--phone { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
}
