/* Give diagrams and footage their own proportions, including on short screens. */
#p07 .ah-vision {
  grid-template-columns: minmax(0, 3.05fr) minmax(205px, 1fr);
  gap: clamp(24px, 3.4vw, 58px);
  align-items: center;
}
#p07 .ah-vision .enlarge img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
}
#p07 .ah-promises .ah-list > div { padding-block: clamp(11px, 1.6vw, 28px); }
#p07 .ah-promises dt { line-height: 1.3; }
#p07 .ah-promises dd { text-wrap: pretty; }
#p13 .ah-spatial-tab {
  grid-template-columns: minmax(0, 2.8fr) minmax(215px, 1fr);
  gap: clamp(20px, 3.4vw, 50px);
  align-items: center;
}
#p13 .video-frame, #p13 .launch-video {
  width: 100%;
  aspect-ratio: 16 / 9;
}
#p13 .video-frame :is(img, video) {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
#p13 .ah-spatial-tab .ah-list > div { padding-block: clamp(11px, 1.35vw, 22px); }
#p15 .atlas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 30px);
}
#p15 .atlas-grid.atlas-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#p15 .atlas-grid article, #p15 .atlas-grid figure { margin: 0; min-width: 0; }
#p15 .atlas-grid .enlarge { border-radius: 5px; background: #cad6d0; }
#p15 .atlas-grid .enlarge img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.7;
  max-height: none;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
#p15 .atlas-pair .enlarge img { aspect-ratio: 2.04; }
#p15 .atlas-grid .enlarge:is(:hover, :focus-visible) img { transform: scale(1.025); }
#p15 .atlas-grid figcaption {
  font-size: clamp(17px, 1.55vw, 25px);
  margin-top: 10px;
  line-height: 1.35;
  font-weight: 620;
  color: #153c46;
}
#p15 .atlas-grid article > p { margin: 4px 0 0; color: #49616a; text-wrap: pretty; }
#p15 .atlas-note { font-size: 12px; margin: 13px 0 0; color: #51686d; }
#p15 .atlas-safety-intro {
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
}
#p15 .atlas-safety-intro h3 { margin: 0; color: #17575c; font-size: clamp(18px, 1.65vw, 27px); }
#p15 .atlas-safety-intro p { margin: 0; color: #466068; }
#p15 .atlas-more {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  gap: 8px;
  font-size: 14px;
  color: #075f60;
  font-weight: 600;
}
#p15 .atlas-overview { margin: 0; }
#p15 .atlas-overview .enlarge { background: transparent; }
#p15 .atlas-overview .enlarge img { display: block; width: 100%; height: auto; max-height: none; }
@media (max-width: 800px) {
  #p07 .ah-vision, #p13 .ah-spatial-tab { grid-template-columns: 1fr; gap: 14px; }
  #p07 .ah-promises .ah-list, #p13 .ah-spatial-tab .ah-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  #p15 .atlas-grid { gap: 15px; }
}
@media (max-width: 620px) {
  #p15 .atlas-grid, #p15 .atlas-grid.atlas-pair { grid-template-columns: 1fr; gap: 24px; }
  #p15 .atlas-grid .enlarge img { aspect-ratio: 1.9; }
  #p07 .ah-promises .ah-list, #p13 .ah-spatial-tab .ah-list { display: block; }
  #p07 .ah-promises .ah-list > div, #p13 .ah-spatial-tab .ah-list > div {
    display: grid;
    grid-template-columns: minmax(5em, .85fr) minmax(0, 1.5fr);
    gap: 12px;
    padding-block: 10px;
    align-items: baseline;
  }
  #p07 .ah-promises .ah-list dt { font-size: 18px; }
  #p13 .ah-spatial-tab .ah-list dt { font-size: 15px; }
  #p07 .ah-promises dd, #p13 .ah-spatial-tab dd { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #p15 .atlas-grid .enlarge img { transition: none; }
  #p15 .atlas-grid .enlarge:is(:hover, :focus-visible) img { transform: none; }
}

/* Keep product silhouettes, faces and equipment visible in the scene photographs. */
#p10 .ah-design-photo { aspect-ratio: 16 / 9; align-self: center; height: auto; min-height: 0; }
@media (min-width: 801px) and (max-height: 850px) {
  .presenting #p10 .ah-design-lens {
    grid-template-columns: minmax(0, min(53%, 68svh)) minmax(0, 1fr);
    align-items: center;
  }
}

/* In projection, put commentary beside the footage to dedicate the available height to the frame. */
@media (min-width: 1000px) and (min-height: 540px) {
  .presenting #p07.active, .presenting #p13.active {
    display: grid;
    column-gap: clamp(24px, 4vw, 68px);
    row-gap: 10px;
    align-content: center;
    align-items: start;
    padding-top: clamp(18px, 3vh, 40px);
    min-height: calc(100svh - var(--mast));
  }
  .presenting #p07.active {
    grid-template-columns: minmax(250px,1fr) minmax(0,min(68%,calc((100svh - var(--mast) - var(--footer) - 100px) * 1.777)));
    grid-template-areas: "head media" "benefits media";
  }
  .presenting #p07 .scene-body, .presenting #p07 .ah-vision,
  .presenting #p13 :is(.scene-body,.ah-spatial,.switcher,.switch-content:not([hidden]),.ah-spatial-tab) { display: contents; }
  .presenting :is(#p07,#p13) .page-head { grid-area: head; margin: 0; align-self: end; }
  .presenting :is(#p07,#p13) .page-head h2 { font-size: clamp(28px,2.5vw,46px); text-wrap: balance; }
  .presenting #p07 .asset, .presenting #p13 .player { grid-area: media; align-self: center; }
  .presenting #p07 .ah-promises { grid-area: benefits; }
  .presenting #p07 .ah-promises .ah-list > div { padding-block: clamp(6px,1.1vh,13px); }
  .presenting #p07 .ah-promises dt { font-size: clamp(19px,1.75vw,29px); }
  .presenting #p13.active {
    grid-template-columns: minmax(275px,1fr) minmax(0,min(67%,calc((100svh - var(--mast) - var(--footer) - 166px) * 1.777)));
    grid-template-areas: "head media" "controls media" "steps media" "facts facts";
  }
  .presenting #p13 .switch-list { grid-area: controls; margin: 0; padding-bottom: 0; border: 0; align-self: center; }
  .presenting #p13 .ah-spatial-tab .ah-list { grid-area: steps; }
  .presenting #p13 .ah-spatial-tab .ah-list > div { padding-block: clamp(4px,.8vh,10px); }
  .presenting #p13 .ah-facts { grid-area: facts; margin: 5px 0 0; }
  .presenting #p15.active:has(.switch-content:not([hidden]) :is(.atlas-overview,.atlas-pair)) {
    display: grid;
    grid-template-columns: minmax(190px,.58fr) minmax(0,1.42fr);
    grid-template-areas: "head atlas" "filters atlas";
    gap: 16px clamp(24px,3vw,52px);
    align-content: center;
    min-height: calc(100svh - var(--mast));
  }
  .presenting #p15:has(.switch-content:not([hidden]) :is(.atlas-overview,.atlas-pair)) :is(.scene-body,.ah-panorama,.switcher) { display: contents; }
  .presenting #p15:has(.switch-content:not([hidden]) :is(.atlas-overview,.atlas-pair)) .page-head { grid-area: head; align-self: end; margin: 0; }
  .presenting #p15:has(.switch-content:not([hidden]) :is(.atlas-overview,.atlas-pair)) .switch-list { grid-area: filters; align-self: start; }
  .presenting #p15:has(.switch-content:not([hidden]) :is(.atlas-overview,.atlas-pair)) .switch-content:not([hidden]) { grid-area: atlas; align-self: center; }
}

@media (min-width: 621px) {
  #p15 .atlas-grid { grid-template-columns: 1.73fr 2.23fr 2.23fr; }
  #p15 .atlas-grid.atlas-pair { grid-template-columns: 1.333fr 1.5fr; }
  #p15 .atlas-grid.atlas-pair:has(img[src$="pan-safe.webp"]) { grid-template-columns: 2.229fr 1.5fr; }
}
#p15 .atlas-grid .enlarge img { aspect-ratio: auto; }
.presenting main { overflow-x: clip; }
