/* Scale the flat lay as a unit so both screens stay in frame. */
.feature-photo.photo-focus {
  display: grid;
  place-items: center;
  container-type: size;
  background: #eae6df url("img/focus-daylight.webp") center / cover;
}
.feed-comparison {
  /* Both devices use the same scale for their body dimensions in millimetres. */
  --mm: .68em;
  --baseline: 4.5%;
  position: relative;
  width: 100em;
  height: 110em;
  font-size: min(1cqw, .885cqh);
  font-family: Inter, Arial, sans-serif;
  line-height: 1;
  user-select: none;
}
.feed-panel {
  position: absolute;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  isolation: isolate;
  container-type: inline-size;
  filter: drop-shadow(.35em .65em .25em rgb(29 27 23 / 35%))
          drop-shadow(1.25em 2.2em 1.5em rgb(46 42 36 / 22%));
}
.feed-panel--off {
  left: 15.2%;
  bottom: var(--baseline);
  width: calc(71.9 * var(--mm));
  aspect-ratio: 71.9 / 150;
  background-image: url("img/iphone18-pro-reference.webp");
  transform: rotate(-1.5deg);
  filter: drop-shadow(.18em .3em .18em rgb(30 28 26 / 42%))
          drop-shadow(.9em 1.2em 1.2em rgb(47 42 39 / 24%));
}
.feed-panel--on {
  right: 12%;
  bottom: var(--baseline);
  /* Scale by the measured body height. The artwork also includes the side key. */
  height: calc(84.65 * var(--mm));
  z-index: 1;
  aspect-ratio: 713 / 740;
  background-image: url("img/pro-frame.webp");
  transform: rotate(1.4deg);
}
.device-screen {
  position: absolute;
  inset: 3.3% 7.3% 3.5% 4.5%;
  overflow: hidden;
  border-radius: 10.2% / 9.6%;
  padding-inline: 6.4%;
  color: #f7f8f7;
  background: linear-gradient(142deg, #404947, #192222 56%, #293133);
  box-shadow: inset 0 0 .6em rgb(0 0 0 / 50%);
}
.feed-panel--off .device-screen {
  font-size: 2.06cqw;
  inset: 2% 5%;
  padding-inline: 4.8%;
  border-radius: 10% / 4.8%;
  background: transparent;
  box-shadow: none;
}
.feed-panel--off .device-screen::after { display: none; }
.feed-panel--off .device-status {
  position: relative;
  z-index: 1;
  font-family: Arial, sans-serif;
}
.feed-panel--off .device-status { height: 6.8%; color: #15222d; }
.feed-panel--off .device-status span { margin-right: auto; }
.phone-app-folder {
  margin: .9em -1.2em 0;
  padding: 1.8em 1.6em 2.5em;
  border: 1px solid rgb(238 248 248 / 18%);
  border-radius: 3.8em;
  background: linear-gradient(145deg, rgb(245 250 255 / 87%), rgb(194 218 246 / 80%));
  backdrop-filter: blur(.8em);
}
.folder-heading {
  margin-bottom: .75em;
  color: #33404b;
  font: 600 2.9em/1.1 Arial, sans-serif;
}
.feed-panel--off .feed-items {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6em .65em;
}
.feed-panel--off .feed-item span {
  font-size: 2.15em;
  color: #2c3942;
}
.feed-panel--off .device-screen::before {
  content: "";
  position: absolute;
  left: 35%;
  bottom: 2.1%;
  width: 30%;
  height: .55em;
  border-radius: 1em;
  background: rgb(255 255 255 / 72%);
}
.feed-panel--on .device-screen {
  font-size: 1.65cqw;
  display: grid;
  grid-template-rows: 12% auto minmax(0, 1fr);
  padding-inline: 4.3%;
  color: #0d2920;
  background: linear-gradient(150deg, #fff 3%, #f6f6f3 48%, #e4e5e2);
}
.device-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(121deg, rgb(255 255 255 / 12%), transparent 29%, transparent 63%, rgb(255 255 255 / 5%) 85%, transparent);
}
.device-status {
  display: flex;
  gap: 1em;
  height: 12%;
  align-items: center;
  font-variant-numeric: tabular-nums;
}
.feed-panel--on .device-status { height: auto; }
.device-status span { font-size: 2.45em; font-weight: 650; }
.device-lens {
  width: 2.5em;
  height: 2.5em;
  margin-right: auto;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #35414b 0 12%, #0d0f10 34%, #030404 75%);
  box-shadow: 0 0 0 .16em rgb(0 0 0 / 48%);
}
.device-signal {
  width: 2.5em;
  height: 1.8em;
  background: currentColor;
  clip-path: polygon(0 100%, 25% 100%, 25% 72%, 36% 72%, 36% 100%, 61% 100%, 61% 43%, 72% 43%, 72% 100%, 100% 100%, 100% 0);
}
.device-battery {
  position: relative;
  width: 3.4em;
  height: 1.8em;
  border: .3em solid currentColor;
  border-radius: .5em;
  background: currentColor content-box;
  padding: .16em;
}
.device-battery::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 25%;
  height: 50%;
  width: .48em;
  background: currentColor;
}
.product-screen-name {
  display: block;
  margin: .26em 0 .5em;
  font-size: 5.35em;
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -.06em;
  color: #0b3422;
}
.feed-items {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 2.3em .65em;
}
.feed-item {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: .75em;
}
.feature-photo.photo-focus .feed-item img {
  width: min(86%, 8.3em);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 23%;
  box-shadow: 0 .15em .5em rgb(0 0 0 / 12%);
  transform: none;
}
.feed-item span { font-size: 2.65em; font-weight: 550; letter-spacing: -.042em; }
.feed-panel--on .feed-item span { font-size: 2.2em; }
.feed-panel--on .feed-items { align-content: space-evenly; row-gap: 0; padding-bottom: 5%; }
.feature-photo.photo-focus .feed-panel--on .feed-item img { width: min(90%, 10em); }
/* Keep the foreground device and its side dial inside shorter image windows. */
@container (min-aspect-ratio: 5/4) {
  .feed-comparison { --mm: .428em; font-size: min(1cqw, 1.34cqh); height: 71em; }
  .feed-panel--off { left: 25%; }
  .feed-panel--on { right: 23%; }
}
@container (min-aspect-ratio: 5/4) and (max-width: 340px) {
  .feed-panel--off { left: 20%; }
}
