/* One design pixel at 1920 × 1080. In portrait, use reading sizes instead of scaling the page down. */
.slide {
  --px: calc(100cqw / 1920);
  --family: Lato, Arial, sans-serif;
  --cover-type: 900 calc(200 * var(--px))/0.96 var(--family);
  --title-type: 900 calc(76 * var(--px))/1.05263 var(--family);
  --headline-type: 700 calc(44 * var(--px))/1.18182 var(--family);
  --card-type: 700 calc(38 * var(--px))/1.15789 var(--family);
  --body-type: 400 calc(32 * var(--px))/1.3125 var(--family);
  --metric-type: 900 calc(64 * var(--px))/1.0625 var(--family);
  --data-type: 400 calc(28 * var(--px))/1.28571 var(--family);
  --note-type: 400 calc(24 * var(--px))/1.25 var(--family);
  --gutter: calc(80 * var(--px));
  --card-gap: calc(24 * var(--px));
  --card-pad: calc(24 * var(--px));
  --text-gap: calc(12 * var(--px));
}
@media (orientation:portrait), (orientation:landscape) and (max-width:950px) and (max-height:480px) {
  .slide {
    --cover-type: 900 68px/66px var(--family);
    --title-type: 900 36px/39px var(--family);
    --headline-type: 700 26px/32px var(--family);
    --card-type: 700 22px/27px var(--family);
    --body-type: 400 18px/25px var(--family);
    --metric-type: 900 36px/40px var(--family);
    --data-type: 400 16px/22px var(--family);
    --note-type: 400 15px/20px var(--family);
    --gutter: 20px;
    --card-gap: 12px;
    --card-pad: 16px;
    --text-gap: 8px;
  }
}
/* Role rules are ordered from general text to deliberately distinct editorial uses. */
#presentation .standard {--gutter:calc(80 * var(--px));--gap:var(--card-gap)}
#presentation :where(.standard, .tile, p, li, .brand, .s2 tbody th, .s2 tbody td) {font:var(--body-type)}
#presentation :where(h1) {font:var(--title-type)}
#presentation .cover-title {font:var(--cover-type)}
#presentation :where(h2,h3,figcaption,.bar strong,.corner-icon p,.s8 .source .brand,.s2 thead th) {font:var(--card-type)}
#presentation :where(.s5 .tile h3,.s13 .tile h3,.s14 .tile h3,.s21 .tile h3+h3) {font:var(--body-type);font-weight:700}
#presentation :where(.cover-subtitle,footer p.strong,.s5 footer p,.s8 footer p,.s19 footer p,.s37 h2,.s39 .last-line,.machine h3) {font:var(--headline-type)}
#presentation :where(.metric.accent,.quantity,.money,.price h3,.s30 header strong.accent,.s31 header strong.accent) {font:var(--metric-type);font-variant-numeric:tabular-nums}
#presentation :where(td,th,.legend,.hours-row,.stack span,.flow li,.delivery li,.s11 .source p,.s11 .source .brand,.s13 .source p,.s13 .source .brand,.s9 .example,.bar-item>span) {font:var(--data-type)}
#presentation :where(.s2 tbody th,.s2 tbody td,.s20 .metric,.s29 footer p.strong) {font:var(--body-type)}
#presentation .s2 thead th {font:var(--card-type)}
#presentation :where(.note,.slide-number,.round-num,small,.agent-photo-label,.s38 footer p,.bar-item>b,.brands .brand,.infra .brand,.logos .brand,.vps p+p) {font:var(--note-type)}
#presentation :where(.slide-number,.round-num,.agent-photo-label,thead th,.stack span,.hours-row>b,.s11 .source .brand,.bar-item>b,.s29 td,.budget td,.s29 footer p.strong,.strong:not(footer p),.brand,.flow li) {font-weight:700}
#presentation :where(.cover-footer p,.s6 .bullets li) {font-weight:400}
#presentation .slide-number {white-space:nowrap}
#presentation .standard .grid {gap:var(--card-gap)}
#presentation .tile {padding:var(--card-pad)}
#presentation .corner-icon {padding-right:calc(var(--card-pad) + 1.1em)}
#presentation .tile h3+p {margin-top:var(--text-gap)}
#presentation .s18 .step-meta img {width:calc(106 * var(--px));height:calc(106 * var(--px))}
@media (orientation:landscape) and (min-width:951px), (orientation:landscape) and (min-height:481px) {
  #presentation .standard {gap:var(--card-gap)}
  #presentation .standard:not(.s18,.s39)>header+.contents {margin-top:var(--card-gap)}
  #presentation .s3 .tile h3,#presentation .s12 .tile h3 {min-height:2lh}
  #presentation .s39 {padding-inline:var(--gutter)}
  #presentation .s18 {column-gap:calc(48 * var(--px))}
  #presentation .s18 .tile {row-gap:0}
}
@media (orientation:portrait), (orientation:landscape) and (max-width:950px) and (max-height:480px) {
  #presentation .standard {--gutter:20px}
  #presentation .s18 .step-meta img {width:60px;height:60px}
  #presentation .corner-icon {padding:var(--card-pad);padding-bottom:36px}
}

/* Persistent slide furniture is anchored to the stage, independent of the copy. */
#presentation .brand-lockup {
  position:absolute;left:var(--gutter);top:calc(24 * var(--px));z-index:2;
  display:flex;align-items:center;gap:calc(18 * var(--px));color:#121820;
  font:var(--card-type);white-space:nowrap;
}
#presentation .brand-lockup img {display:block;width:calc(216 * var(--px));height:auto}
#presentation .slide-number {
  position:absolute;right:calc(22 * var(--px));bottom:calc(22 * var(--px));
  display:grid;place-items:center;width:calc(60 * var(--px));aspect-ratio:1;
  background:#101011;color:white;border-radius:50%;margin:0;
  font:var(--note-type);font-weight:700;letter-spacing:0;font-variant-numeric:tabular-nums;
}
#presentation :where(.s34 .tile p,.s36 .tile p) {font:var(--body-type)}
@media (orientation:landscape) and (min-width:951px), (orientation:landscape) and (min-height:481px) {
  #presentation .standard {padding-top:calc(105 * var(--px));padding-bottom:calc(48 * var(--px))}
  #presentation .agent-heading>.agent.docked {margin-block:calc(-26 * var(--px))}
  #presentation .s18 .agent-heading>.agent.docked {margin:0}
  #presentation .s18 {grid-template-columns:26% minmax(0,1fr)}
  #presentation .s32 .bar-space {height:8.2cqw}
  #presentation .s32 .bars {margin-top:1.7cqw}
}
@media (orientation:portrait), (orientation:landscape) and (max-width:950px) and (max-height:480px) {
  #presentation .slide {padding-top:80px}
  #presentation .brand-lockup {top:18px;left:20px;gap:10px}
  #presentation .brand-lockup img {width:142px}
  #presentation .slide-number {right:16px;bottom:18px;width:40px}
  #presentation .standard header.agent-heading {display:flex;flex-direction:column-reverse;align-items:flex-start}
  #presentation .standard .agent-heading>.agent.docked {align-self:flex-end}
}
@media (orientation:portrait) and (max-width:480px) {
  #presentation :is(.s21,.s31) .contents .grid {grid-template-columns:1fr}
  #presentation .s32 .bars {gap:3px}
  #presentation .s32 .bar-item {min-width:0}
  #presentation .s32 .bar-item>b {max-width:100%;overflow-wrap:anywhere}
}
@media (orientation:landscape) and (min-width:951px), (orientation:landscape) and (min-height:481px) {
  #presentation .s29 :is(th,td) {padding-block:calc(6 * var(--px))}
  #presentation .standard .table-wrap {flex-shrink:0}
  #presentation .s31 .corner-icon {min-height:0}
  #presentation .s31 .corner-icon p {padding-top:0}
  #presentation .s31 .agent-heading>.agent.docked {width:18cqw}
}
