/* Keep captions, numbers and interface copy readable at the distance used for film viewing. */
body {
  --film-small: clamp(10px, .84vw, 13px);
  --film-label: clamp(12px, .98vw, 15px);
  --film-copy: clamp(14px, 1.13vw, 18px);
}
.film-header, .scene .eyebrow, .access .eyebrow { font-size: var(--film-small); }
.scene .device-note, .scene .image-caption, .access .access-device-note,
.film-controls #chapter-label, .film-controls .film-buttons button { font-size: var(--film-small); }
.scene .signature-note { font-size: var(--film-label) !important; letter-spacing: .12em; }
.invitation-scene .lead, .address-outlook, .global-story > p,
.scene .station-headline p, .scene .citizen-thesis + .project-label,
.access-detail { font-size: var(--film-copy); }
.market-heading .market-current span, .market-charts .chart-kpi > span,
.market-charts figcaption small, .footfall-hero > span:last-child,
.network-stations small, .network-stations em, .network-directions,
.station-distance > span, .scene .station-distance small, .scene #arrival-play, .scene .station-note, .scene .arrival-editorial small,
.scene .source, .market-sources .source, .global-scale small,
.destination-stage .global-source, .scene .chart-note, .footfall-scale,
.portfolio-foot, .scene .portfolio-numbers p, .destination-card small,
.showcase-bottom, .access .showcase-bottom > div > span, .showcase-bottom button, .access-foot, .access-foot button {
  font-size: var(--film-small);
  line-height: 1.45;
}
.scene .market-charts figcaption, .market-charts .record-caption,
.data-stage.footfall-stage figcaption, .footfall-row > div:first-child,
.network-stations strong, .portfolio-numbers dt, .global-scale strong span,
.brand-principles strong, .destination-heading, .access form label,
.password-line button, .access form .enter { font-size: var(--film-label); }
.portfolio-row h3, .brand-principles span { font-size: var(--film-small); }
.scene .record-caption { line-height: 1.5; }
.market-sources { column-gap: 16px; row-gap: 4px; }
.access .access-detail { line-height: 1.55; }
.access .access-foot { flex-wrap: wrap; row-gap: 8px; }
.market-charts figcaption, .destination-heading { flex-wrap: wrap; row-gap: 2px; }

@media (max-width: 700px) {
  .scene .market-sources .source, .portfolio-numbers .source, .portfolio-foot .source,
  .destination-stage .global-source { font-size: var(--film-small); }
  .market-charts svg { height: clamp(110px, 14svh, 140px); }
  .market-heading { margin-bottom: 9px; }
  .scene .market-current { margin-top: 9px; }
  .market-charts { row-gap: 9px; }
  .market-charts .data-stage { padding-top: 7px; }
  .market-charts .chart-kpi { margin-top: 4px; }
  .market-charts .tourism-chart, .market-charts #revenue-chart { margin-top: 7px; }
  .market-sources { margin-top: 8px; }
  .market-charts .chart-axis { font-size: 21px; }
  .market-charts .growth-annotation text, .market-charts .revenue-value { font-size: 21px; }
  .market-charts .growth-annotation text:not(:first-of-type), .market-charts .chart-covid-label { font-size: 18px; }
  .global-scale { column-gap: 14px; }
  .destination-heading { justify-content: flex-start; column-gap: 10px; }
  .portfolio-numbers dt { line-height: 1.2; }
  .portfolio-row { grid-template-columns: 74px minmax(0,1fr); gap: 5px; }
  .network-stations { gap: 2px; }
  .network-stations strong { font-size: clamp(10px, 3vw, 13px); }
  .film-controls .film-buttons { gap: 10px; }
  .citizen-heading { gap: clamp(12px, 4vw, 25px); }
  .citizen-reveal { width: clamp(85px, 26vw, 115px); }

}

@media (max-width: 700px) and (max-height: 900px), (min-width: 701px) and (max-height: 760px) {
  /* Leave the chapter controls in place when a short screen needs more vertical reading space. */
  .scene.market-scene .market-content, .scene .portfolio-content, .scene .global-content,
  .scene.address-scene .scene-content, .scene .transit-intro {
    max-height: calc(100svh - 156px);
    padding-block: 5px 8px;
    margin-block: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .scene:not(.signature-scene) .scene-content {
    max-height: calc(100svh - 112px);
    padding-block: 6px 12px;
    margin-block: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  body .film-header { padding-block: 12px; }
  body .film-controls { padding-block: 8px; }
  .scene .transit-intro, .scene .citizen-heading { margin-block: 0 10px; }
}

@media (min-width: 701px) and (max-width: 1180px) and (min-height: 880px) and (orientation: portrait) {
  body { --film-small: 12px; --film-label: 14px; --film-copy: 16px; }
  .citizen-heading { gap: clamp(24px, 4vw, 45px); }
  .citizen-reveal { width: clamp(140px, 19vw, 190px); }
  .citizen-scene .citizen-heading h2 { font-size: clamp(76px, 10vw, 112px); }
}

.film-header { align-items: center; }
.film-header .film-location { margin-inline-start: auto; }
.intro-language {
  display: inline-flex;
  flex: none;
  align-items: center;
  width: max-content;
  padding: 3px;
  border: 1px solid #b0c2c1;
  border-radius: 24px;
  background: #3f495a;
  color: #fff;
  font: 500 13px/1.2 Work, sans-serif;
  letter-spacing: normal;
  text-transform: none;
}
.intro-language a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding-inline: 13px;
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
}
.intro-language a[aria-current="true"] { background: #fff; color: #3f495a; }
.intro-language a:hover { text-decoration: underline; text-underline-offset: 3px; }
.intro-language a:focus-visible { outline: 2px solid #e0be14; outline-offset: -2px; }
.access > .intro-language { position: absolute; z-index: 3; top: 20px; right: 4.8vw; }
.access .access-layout { padding-top: max(76px, 7vh); }
.access-mode .film-header, .signature-mode .film-header { visibility: hidden; }
@media (max-width: 700px) {
  .film-header { padding-block: 12px; gap: 10px; }
  .film-header .film-location { display: none; }
  .film-header > span:first-child { max-width: 16em; }
  .intro-language { font-size: 12px; }
  .intro-language a { min-height: 36px; padding-inline: 10px; }
  .access > .intro-language { top: 18px; right: 7vw; }
  .access .access-layout { padding-top: 30px; }
  .access .access-logo { width: min(124px, 35%); }
  .access-mode .film-controls { position: relative; }
}
