/* The portfolio grid composes the text and exhibits. Each demo keeps its own layout. */
.product-editorial {
  --plate-gutter: clamp(14px, 2.35cqw, 30px);
  --plate-space: clamp(52px, 8.5cqw, 106px);
}
.product-editorial .product-opening,
.product-editorial > .text-spread,
.product-editorial .product-facing-pages {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--plate-gutter);
  align-items: start;
}
.product-editorial .product-opening > .case-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 3.8cqw, 42px);
  min-width: 0;
}
.product-editorial .case-header .role,
.product-editorial .work-visual > figcaption,
.product-editorial .product-material-plate figcaption,
.product-editorial .pull-quote figcaption {
  color: var(--muted);
  font: 400 var(--folio-caption)/1.48 var(--type);
}
.product-editorial .case-header .deck {
  max-width: 26ch;
  font: 400 clamp(1.12rem, 2.4cqw, 1.6rem)/1.3 var(--type);
  letter-spacing: -.036em;
}
.product-editorial > .text-spread,
.product-editorial .product-facing-pages { margin-top: var(--plate-space); }
.product-editorial .text-spread > h2 {
  grid-column: 1 / 6;
  max-width: 15ch;
  font: 400 clamp(1.65rem, 3.8cqw, 2.6rem)/1.08 var(--type);
  letter-spacing: -.052em;
}
.product-editorial .text-spread > .reading {
  grid-column: 6 / -1;
  min-width: 0;
  max-width: 59ch;
  font-size: 1rem;
}
.product-editorial .screen-caption { margin-top: 12px; }
.product-editorial > .next-case {
  margin-top: var(--plate-space);
}

/* Muko opens with the company site. The garment studies sit beside the line-review notes. */
.case-muko .product-opening { align-items: start; }
:is(.case-muko, .case-growth) .product-opening > .case-header {
  gap: clamp(17px, 2.6cqw, 30px);
}
.case-muko .product-opening > .case-header { grid-column: 1 / 5; }
.case-muko .product-opening > .laptop-figure { grid-column: 5 / -1; width: 100%; margin: 0; }
.case-muko .product-opening .laptop { width: 94%; }
.case-muko .laptop-figure .screen-caption { margin-inline: 3%; }
.case-muko [aria-labelledby="muko-beta"] {
  grid-template-rows: auto 1fr;
  align-items: start;
}
.case-muko [aria-labelledby="muko-beta"] > .reading,
.case-muko [aria-labelledby="muko-suede"] > .reading { grid-area: 1 / 6 / span 2 / -1; }
.case-muko [aria-labelledby="muko-beta"] .pull-quote {
  grid-area: 2 / 1 / 3 / 5;
  align-self: start;
  margin: clamp(4px, 1.2cqw, 14px) 0 0;
}
.case-muko .pull-quote blockquote {
  font: italic 400 clamp(1.4rem, 3.35cqw, 2.3rem)/1.1 Georgia, serif;
  letter-spacing: -.04em;
  color: var(--ink);
}
.case-muko > .living-figure { width: 100%; margin: clamp(20px, 3.8cqw, 42px) 0 0; }
.case-muko .product-material-plate { grid-area: 2 / 1 / 3 / 6; margin: 0; }
.case-muko .product-material-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(6px, 1cqw, 12px);
}
.case-muko .product-material-pair img { width: 100%; background: #e8e5dd; }
.case-muko [aria-labelledby="muko-suede"] { grid-template-rows: auto 1fr; }
.case-muko [aria-labelledby="muko-lepere"] > .piece-live-figure {
  grid-column: 2 / -1;
  width: 100%;
  margin: clamp(4px, 1.7cqw, 20px) 0 0;
}
.case-muko .brand-spread .brand-line { max-width: 20ch; }
/* The win/loss fragment previews an account before the full-width, live briefing. */
.case-growth .product-opening { align-items: start; }
.case-growth .product-opening > .case-header { grid-column: 1 / 7; }
.case-growth .product-opening .gi-fragment {
  grid-column: 7 / -1;
  justify-self: end;
  width: min(100%, 390px);
  margin: 0;
  container: gi-fragment / inline-size;
}
.case-growth > .growth-figure { width: 100%; margin: clamp(26px, 5cqw, 58px) 0 0; }
.case-growth .product-facing-pages > .text-spread {
  display: block;
  grid-column: 1 / 7;
  padding-right: clamp(0px, 1.5cqw, 18px);
  margin: 0;
}
.case-growth .product-facing-pages > .text-spread + .text-spread {
  grid-column: 7 / -1;
  padding: 0;
}
.case-growth .product-facing-pages .reading { margin-top: 19px; }
.case-growth [aria-labelledby="growth-release"] .reading > p:last-child {
  margin-top: 22px;
  font: 400 clamp(1.2rem, 2.5cqw, 1.65rem)/1.32 var(--type);
  letter-spacing: -.03em;
}
/* Break the two alert screens across one spread: receiver on the right, evidence under the title. */
.case-alerts .product-opening { grid-template-rows: auto auto auto; }
.case-alerts .product-opening > .case-header { grid-area: 1 / 1 / 2 / 8; z-index: 1; }
.case-alerts .product-opening > .alerts-figure {
  display: grid;
  grid-template: subgrid / subgrid;
  grid-area: 1 / 1 / 4 / -1;
  container: none;
  width: 100%;
  margin: 0;
}
.case-alerts .product-opening .alerts-stage {
  grid-area: 1 / 1 / 3 / -1;
  grid-template: subgrid / subgrid;
  align-items: start;
  gap: var(--plate-gutter);
}
.case-alerts .product-opening .alert-phone {
  grid-area: 1 / 9 / 3 / -1;
  width: min(100%, 235px);
  margin: clamp(4px, 2.6cqw, 30px) auto 0;
}
.case-alerts .product-opening .alert-reading {
  grid-area: 2 / 2 / 3 / 9;
  margin-top: clamp(6px, 1.8cqw, 18px);
}
.case-alerts .product-opening .screen-caption { grid-area: 3 / 1 / 4 / -1; }
.case-alerts [aria-labelledby="alerts-research"] { grid-template-rows: auto 1fr; }
.case-alerts [aria-labelledby="alerts-research"] > :is(h2, .reading) { grid-column: 1 / 6; }
.case-alerts [aria-labelledby="alerts-research"] > .alert-fragment {
  grid-area: 1 / 7 / 3 / -1;
  width: 100%;
  max-width: none;
  align-self: center;
  margin: 0;
}
.case-alerts [aria-labelledby="alerts-message"] h2 { grid-column: 2 / 6; }
@container portfolio-case (max-width: 670px) {
  .case-muko .product-opening > .case-header,
  .case-alerts .product-opening > .case-header {
    grid-area: auto / 1 / auto / -1;
    align-self: start;
  }
  .case-muko .product-opening > .case-header {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
    align-items: start;
    gap: var(--plate-gutter);
  }
  .case-muko .product-opening > .laptop-figure { grid-column: 1 / -1; }
  .case-alerts .product-opening > .alerts-figure {
    display: block;
    grid-area: auto / 1 / auto / -1;
    container: alerts-composition / inline-size;
    margin-top: 12px;
  }
  .case-alerts .product-opening .alerts-stage { grid-template: auto / minmax(0, .72fr) minmax(0, 1fr); align-items: center; }
  .case-alerts .product-opening :is(.alert-phone, .alert-reading) { grid-area: auto; margin-top: 0; }
  .case-alerts .product-opening .alert-phone { margin-inline: auto; }
  .case-alerts .product-opening .screen-caption { margin-top: 12px; }
}
@container portfolio-case (max-width: 540px) {
  .product-editorial .product-opening > .case-header,
  .product-editorial > .text-spread,
  .product-editorial .product-facing-pages { display: block; }
  .product-editorial .product-opening .case-header .deck { margin-top: 18px; max-width: 35ch; }
  .product-editorial .text-spread > .reading { margin-top: 15px; }
  .case-muko .product-opening > .case-header { display: block; }
  :is(.case-muko, .case-growth) .product-opening { row-gap: 22px; }
  .case-muko .product-material-plate { max-width: 22rem; margin: 20px 0; }
  .case-muko [aria-labelledby="muko-beta"] .pull-quote { max-width: 22rem; margin: 22px 0 0 auto; }
  .case-muko [aria-labelledby="muko-lepere"] > .piece-live-figure { margin-top: 22px; }
  .case-growth .product-opening > .case-header { grid-column: 1 / -1; }
  .case-growth .product-opening .gi-fragment { grid-column: 1 / -1; }
  .case-growth .product-facing-pages > .text-spread { padding: 0; }
  .case-growth .product-facing-pages > .text-spread + .text-spread { margin-top: var(--plate-space); padding: 0; }
  .case-alerts .product-opening .alerts-stage { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .case-alerts [aria-labelledby="alerts-research"] > .alert-fragment { margin-top: 22px; }
}

/* The product plates use the binding's margin for the rings and the page for the work. */
.case-study .visual-case .visual-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .82fr);
  align-items: end;
  gap: clamp(24px, 5cqw, 66px);
  margin: 0 0 clamp(17px, 2.6cqw, 32px);
}
.case-study .visual-case .visual-masthead h1 {
  font-size: clamp(2.4rem, 6.3cqw, 4.6rem);
  line-height: .99;
}
.visual-masthead .title-line { gap: clamp(6px, 1.2cqw, 13px); }
.visual-masthead .project-mark { flex-basis: clamp(13px, 2cqw, 19px); width: clamp(13px, 2cqw, 19px); }
.visual-case .visual-masthead .role { margin-top: .55rem; line-height: 1.35; }
.visual-case .visual-masthead .deck {
  max-width: 39ch;
  padding: 0;
  font: 400 clamp(.95rem, 1.85cqw, 1.19rem)/1.38 var(--type);
  letter-spacing: -.021em;
}
@container portfolio-case (max-width: 590px) {
  .case-study .visual-case .visual-masthead { grid-template-columns: 1fr; gap: 9px; }
  .case-study .visual-case .visual-masthead h1 { font-size: clamp(2rem, 8.4cqw, 3rem); }
  .visual-case .visual-masthead .role { margin-top: 5px; }
}
