.collection {
  --frame: min(calc(100% - 2 * max(var(--gutter), env(safe-area-inset-left), env(safe-area-inset-right))), var(--content-width));
  position: relative;
  max-width: 1920px;
  margin-inline: auto;
}
.family-skip {
  position: fixed;
  top: 12px;
  left: var(--gutter);
  z-index: 20;
  transform: translateY(-180%);
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
}
.family-skip:focus { transform: none; color: var(--bg); }
.collection-title {
  position: absolute;
  top: clamp(22px, 2.65vw, 52px);
  left: 50%;
  z-index: 1;
  width: var(--frame);
  transform: translateX(-50%);
  pointer-events: none;
  color: #181511;
}
.collection-title h1 {
  width: fit-content;
  font-size: clamp(3.2rem, 5.4vw, 6rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.collection-title em {
  font-weight: 400;
  letter-spacing: -.035em;
  color: inherit;
}
.studio { position: relative; --portrait-height: min(37vw, 710px); --portrait-headroom: calc(var(--portrait-height) * .18); }
.studio-portrait {
  height: var(--portrait-height);
  object-fit: cover;
  object-position: center 62%;
  background: #a99b8d;
}
.device-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: var(--frame);
  margin-inline: auto;
  padding-block: clamp(24px, 2.8vw, 43px) clamp(29px, 3vw, 48px);
}
.device-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding-inline: clamp(20px, 2.8vw, 52px);
  color: var(--ink);
}
.device-link:first-child { padding-left: 0; }
.device-link:last-child { padding-right: 0; }
.device-link + .device-link { border-left: 1px solid var(--line); }
/* Each product in the portrait and its caption share one native link and one tab stop. */
.device-link::before {
  content: "";
  position: absolute;
  inset-block-start: var(--portrait-headroom);
  inset-inline-start: 0;
  width: calc(100% / 3);
  height: calc(var(--portrait-height) - var(--portrait-headroom));
}
.device-link:nth-child(2)::before { inset-inline-start: calc(100% / 3); }
.device-link:nth-child(3)::before { inset-inline-start: calc(200% / 3); }
.collection h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7em;
  width: 100%;
  font-size: clamp(1.9rem, 2.6vw, 3.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.04em;
}
.collection h2::after {
  content: "";
  flex: none;
  width: 19px;
  height: 19px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.collection a p {
  max-width: 34ch;
  margin-block: .65rem 1rem;
  color: #c4bbb2;
  font-size: clamp(1rem, 1.15vw, 1.14rem);
  line-height: 1.5;
}
.product-status {
  margin-top: auto;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
}
.device-link:first-child .product-status { color: var(--amber); }
.collection a { touch-action: manipulation; -webkit-tap-highlight-color: #ff902e30; }
.collection a:focus-visible { outline-offset: 5px; }
.collection a:focus-visible h2 { color: var(--amber); }
.collection ::selection { background: #f3c08e; color: #19130f; }
.collection-extras {
  width: var(--frame);
  margin: 0 auto;
  padding-block: clamp(23px, 2.8vw, 44px) clamp(42px, 5vw, 80px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2vw, 32px);
}
.extra-link {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(230px, 21vw, 324px);
  overflow: hidden;
  background: #171614;
}
.extra-link img, .extra-link::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 77%;
  height: 100%;
  object-fit: cover;
}
.extra-os { background: #22211f; }
.extra-os img { width: 52%; object-fit: cover; object-position: 50% 48%; }
.extra-stand img { width: 66%; object-position: 48% 50%; }
.extra-link::before {
  content: "";
  z-index: 0;
  width: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, #22211f 49%, transparent 66%);
}
.extra-stand::before { background: linear-gradient(90deg, #171614 34%, #171614d9 46%, transparent 68%); }
.extra-copy {
  position: relative;
  width: 52%;
  margin: clamp(20px, 2.2vw, 35px);
}
.extra-copy h2 { width: fit-content; font-size: clamp(1.7rem, 2.3vw, 2.65rem); gap: .4em; }
.extra-copy h2::after { width: 16px; height: 16px; }
.collection .extra-copy p { margin-bottom: 0; max-width: 26ch; }
@media (hover: hover) {
  .collection a:hover h2 { color: var(--amber); }
}
@media (prefers-reduced-motion: no-preference) {
  .collection h2::after { transition: transform 180ms ease-out; }
  .collection a:is(:hover, :focus-visible) h2::after { transform: translateX(3px); }
}
@media (min-width: 741px) and (max-width: 880px) {
  .collection-title { top: 16px; }
  .collection-title h1 { font-size: 4.8vw; }
  .collection-extras .extra-os img { width: 46%; object-fit: contain; }
}
@media (max-width: 880px) {
  .collection-extras { grid-template-columns: 1fr; }
  .extra-link { min-height: 230px; }
  .extra-copy { align-self: center; width: 42%; }
  .extra-os img { width: 52%; }
}
@media (max-width: 740px) {
  .collection-title {
    position: static;
    width: var(--frame);
    margin-inline: auto;
    padding-block: 24px 21px;
    transform: none;
    color: var(--ink);
  }
  .collection-title h1 { font-size: clamp(2.5rem, 9vw, 3.5rem); }
  .studio { --portrait-height: clamp(150px, 39vw, 255px); --portrait-headroom: 0px; }
  .studio-portrait { object-position: center 66%; }
  .device-index { grid-template-columns: 1fr; padding-block: 0; }
  .device-link, .device-link:first-child, .device-link:last-child {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "name status" "use use";
    gap: 8px 10px;
    align-items: center;
    padding: 18px 0;
  }
  .device-link + .device-link { border-left: 0; border-top: 1px solid var(--line); }
  .device-link h2 { grid-area: name; width: fit-content; font-size: 1.8rem; gap: .35em; }
  .device-link h2::after { width: 16px; height: 16px; }
  .collection .device-link p { grid-area: use; max-width: 46ch; margin: 0; }
  .product-status { grid-area: status; margin: 0; text-align: end; }
  .collection-extras { padding-block: 24px 38px; gap: 12px; }
  .extra-link {
    display: grid;
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
    min-height: 173px;
  }
  .extra-link::before { content: none; }
  .extra-link img {
    position: relative;
    grid-area: 1 / 2;
    width: 100%;
    align-self: stretch;
    mask-image: linear-gradient(90deg, transparent, black 24%);
  }
  .extra-os img { object-fit: cover; }
  .extra-stand img { object-position: 45% center; }
  .extra-copy {
    grid-area: 1 / 1;
    width: auto;
    margin: 15px 0 15px clamp(14px, 4vw, 24px);
  }
  .extra-copy h2 { font-size: clamp(1.45rem, 5.6vw, 1.8rem); }
  .collection .extra-copy p { font-size: .9375rem; line-height: 1.45; margin-top: 8px; }
}
