/* Opening groups, scale pair, one-plus-three frame composition, established lower rhythm. */
.hr-page .hr-work--aligned-group {align-self:start}
/* Responsive image sources do not add a layout box around the original image. */
.hr-page .hr-work figure > .hr-cutout-picture {display:contents}
@media (min-width:961px) {
  .hr-page .hr-work {grid-column:var(--hr-column);grid-row:var(--hr-row)}
  .hr-page .hr-work figure {aspect-ratio:4/3}
  .hr-page .hr-work.hr-work--cutout img {width:72%;height:76%}
  .hr-page .hr-work[data-hr-layout="feature"] figure {aspect-ratio:1/1}
  .hr-page .hr-work[data-hr-layout="companion"] figure {aspect-ratio:2/1}
  .hr-page .hr-work[data-hr-layout="feature"] img {width:88%;height:88%}
  .hr-page .hr-work[data-hr-layout="companion"] img {width:88%;height:90%}
}
/* This subgroup owns its row spacing, not the surrounding project grid.
   Both outer columns and their top/bottom edges remain aligned with the page. */
.hr-page .hr-frame-composition {
  container-type:inline-size;grid-column:1/-1;grid-row:6 / span 2;min-width:0;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:clamp(24px,2.2vw,48px);row-gap:24px;align-items:stretch;
}
.hr-page .hr-frame-composition .hr-work {
  grid-column:var(--hr-column);grid-row:var(--hr-row);align-self:stretch;
  display:flex;flex-direction:column;
}
.hr-page .hr-frame-composition .hr-work figure {aspect-ratio:auto;flex:none;height:clamp(128px,19cqw,240px)}
.hr-page .hr-frame-composition .hr-work[data-hr-layout="frame-feature"] figure {flex:1;height:auto;min-height:0}
.hr-page .hr-frame-composition .hr-work.hr-work--cutout img {width:90%;height:clamp(94px,15.85cqw,190px);object-fit:contain;object-position:center!important}
.hr-page .hr-frame-composition .hr-work.hr-work--cutout[data-hr-layout="frame-feature"] img {height:clamp(180px,38.95cqw,430px)}
@media (max-width:960px) {
  .hr-page .hr-frame-composition {grid-row:auto;column-gap:28px}
}
/* Both closing silhouettes share one plane and image height, with no cropping. */
.hr-page .hr-work.hr-work--cutout[data-hr-layout="closing-pair"] img {width:88%;height:76%;object-fit:contain;object-position:center!important}
@media (max-width:720px) {
  .hr-page .hr-frame-composition {column-gap:22px;row-gap:20px}
  .hr-page .hr-work:is([data-hr-layout="frame-feature"],[data-hr-layout="frame-stack"],[data-hr-layout="closing-pair"]) h3 {min-height:2lh}
  /* On phones the four frames share two readable rows; desktop is unchanged. */
  .hr-page .hr-frame-composition .hr-work {grid-column:auto;grid-row:auto}
  .hr-page .hr-frame-composition .hr-work figure,
  .hr-page .hr-frame-composition .hr-work[data-hr-layout="frame-feature"] figure {flex:none;height:auto;min-height:0;aspect-ratio:4/5}
  .hr-page .hr-frame-composition .hr-work.hr-work--cutout:is([data-hr-layout="frame-feature"],[data-hr-layout="frame-stack"]) img {width:88%;height:86%}
}
/* The cloud stays above all three footer notes, in normal document flow. */
.hr-page .hr-closing .hr-footer-bottom {
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr);
  align-items:center;gap:20px;max-width:1840px;margin:0 auto;
  padding:18px var(--hr-gutter) 22px;background:#fff;
}
.hr-page .hr-closing .hr-image-credit {margin:0;padding:0;background:transparent}
.hr-page .hr-closing .hr-footer-bottom button {justify-self:end}
@media (max-width:720px) {
  .hr-page .hr-closing .hr-footer-bottom {grid-template-columns:1fr auto;gap:16px}
  .hr-page .hr-closing .hr-image-credit {grid-column:1/-1;grid-row:1}
  .hr-page .hr-closing .hr-footer-bottom > span {grid-column:1;grid-row:2}
  .hr-page .hr-closing .hr-footer-bottom button {grid-column:2;grid-row:2}
}
