/* Paris -> Belgrade: the flight of 23 February 2024 at the end of the Paris page, after the Terminus. Scoped to
   main[data-place="paris"] .flight. Three pinned zooms, the way Amsterdam's 24 works: the letters, as outlines, are an SVG
   that masks the footage, and the mask grows about a point inside a stroke until the footage fills the screen.
   CDG over the take-off, the plane over the cabin, then BEG over the landing, coming out of the footage onto Belgrade's
   red. Behind each mask, plain colour copies of it (ghosts) split and echo as you scroll. Only transform, opacity and
   mask change; no blend modes. Without script: the letters in white over each film. With reduced motion: each zoom is one
   screen, still, with a button to play the film.
   The type is Hind (Indian Type Foundry, SIL Open Font License 1.1, hind-OFL.txt), a humanist sans near Frutiger, the
   face of the signs at Charles de Gaulle: bold for the codes, light for the lines under them. The pictograms are drawn
   here in the manner of the 1970s airport signs; the JAT logo is from Wikimedia Commons (File:Yugoslavia_JAT_Logo.svg, PD-textlogo; a trademark). */

@font-face { font-family: "Hind"; src: url("hind-300-latin.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Hind"; src: url("hind-500-latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Hind"; src: url("hind-700-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }


main[data-place="paris"] .flight { --revolt: #d40a1e; --cyan: #12dcf0; background: #000; color: #fff; }
/* The ghosts' colours: the split in red and cyan (cyan and white on the red), the echoes in white; their opacity is
   set by the script, low. */
main[data-place="paris"] .flight .fz { --bg: #000; --f1: var(--revolt); --f2: var(--cyan); --e1: #fff; --e2: #fff; position: relative; }
main[data-place="paris"] .flight .fz.beg { --bg: var(--revolt); --f1: var(--cyan); --f2: #fff; }
main[data-place="paris"] .flight .fz .pin { position: relative; height: 100svh; min-height: 420px; overflow: hidden; background: var(--bg); }
main[data-place="paris"] .flight .fz.deep { height: 270svh; }
main[data-place="paris"] .flight .fz.air.deep { height: 210svh; }
main[data-place="paris"] .flight .fz.deep .pin { position: sticky; top: 0; }

main[data-place="paris"] .flight .fz .room { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
main[data-place="paris"] .flight .fz .ghosts { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
main[data-place="paris"] .flight .fz.masked .room { mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat; }
main[data-place="paris"] .flight .fz.through .room { mask-image: none !important; -webkit-mask-image: none !important; }
main[data-place="paris"] .flight .fz.through .ghosts { visibility: hidden; }

/* The letters. In white over the film until the script draws them into the mask; then the type stays for reading and
   for the link, in clear, and the pieces of the sign that are not footage (the line with its plane, the JAT logo) stay
   white. The script moves the whole block with the mask. */
main[data-place="paris"] .flight .fz .code { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; color: #fff; line-height: 1; z-index: 1; transform-origin: 0 0; }
main[data-place="paris"] .flight .fz .code a { color: inherit; text-decoration: none; }
main[data-place="paris"] .flight .fz .lock { display: flex; align-items: center; gap: 0.16em; font: 700 min(50svh, 26vw)/1 "Hind", "Frutiger", "Segoe UI", Arial, sans-serif; letter-spacing: -0.015em; }
main[data-place="paris"] .flight .fz .wbox { position: relative; display: block; }
main[data-place="paris"] .flight .fz .word { display: block; }
main[data-place="paris"] .flight .fz .disc { display: block; width: 0.74em; height: 0.74em; flex: none; margin-top: -0.08em; }
main[data-place="paris"] .flight .fz .jat { display: block; width: 1.18em; height: auto; flex: none; margin-top: -0.08em; color: #fff; }
main[data-place="paris"] .flight .fz.beg .lock { font-size: min(46svh, 21vw); gap: 0.2em; }
/* The line through the letters, with the plane on it head-on. */
main[data-place="paris"] .flight .fz .cross { position: absolute; left: -0.22em; right: -0.22em; top: 42%; height: max(2px, 0.008em); background: #fff; color: #fff; }
main[data-place="paris"] .flight .fz.beg .cross { right: -0.42em; }
main[data-place="paris"] .flight .fz .rail { position: absolute; inset: 0; transform: translate(calc((var(--jx, 0.5) - 0.5) * 100%), calc(var(--jy, 0) * 1em)); }
main[data-place="paris"] .flight .fz .jet { position: absolute; left: 50%; top: 50%; width: 0.46em; height: 0.138em; transform: translate(-50%, -54%); }
main[data-place="paris"] .flight .fz.air .code svg { display: block; width: min(72svh, 84vw); height: min(72svh, 84vw); transform: rotate(90deg); }
main[data-place="paris"] .flight .fz.masked .code { color: transparent; }
main[data-place="paris"] .flight .fz.through .cross, main[data-place="paris"] .flight .fz.through .jat { visibility: hidden; }
/* Belgrade: at the end of the travel the film settles into the letters of the sign, white on the red, as the page
   opens. */
main[data-place="paris"] .flight .fz.beg.masked .code { transition: color 0.7s ease-out; }
main[data-place="paris"] .flight .fz.beg.landed .code { color: #fff; }
main[data-place="paris"] .flight .fz.through .code a { pointer-events: none; }
main[data-place="paris"] .flight .fz .code a:focus-visible { outline: 3px solid #fff; outline-offset: 8px; color: #fff; }
@media (max-width: 599px) {
  /* On a phone the disc goes under CDG and the logo over BEG, so the codes can be as wide as the screen. */
  main[data-place="paris"] .flight .fz .lock { flex-direction: column; gap: 0.1em; font-size: 38vw; }
  main[data-place="paris"] .flight .fz.beg .lock { font-size: 34vw; gap: 0.1em; }
  main[data-place="paris"] .flight .fz.beg .cross { right: -0.3em; }
  main[data-place="paris"] .flight .fz.beg .lock .jat { width: 1.05em; }
}

/* Where and when, from the camera's clock, set as a departures line: the pictogram, the flight, the place, the time. */
main[data-place="paris"] .flight .fz .cap { position: absolute; left: var(--gut, 20px); right: var(--gut, 20px); bottom: max(18px, 3svh); margin: 0; z-index: 2;
  font: 300 clamp(18px, 1.7vw, 26px)/1.3 "Hind", Arial, sans-serif; color: #fff; }
main[data-place="paris"] .flight .fz .cap b { font-weight: 700; margin-right: 0.35em; }
main[data-place="paris"] .flight .fz .cap .t { white-space: nowrap; margin-left: 0.35em; }
main[data-place="paris"] .flight .fz .cap .pict { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.28em; margin-right: 0.45em; }
main[data-place="paris"] .flight .fz .cap .pp { font: inherit; color: inherit; background: none; border: 0; padding: 8px 0; margin-left: 12px; text-decoration: underline; cursor: pointer; }

/* ---- From the landing straight into Belgrade: the next stub on the same red, no gap, no card. */
main[data-place="paris"] > .flight + .stub.fl-next { width: auto; margin: 0; padding: clamp(28px, 5svh, 56px) var(--gut, 20px) clamp(36px, 7svh, 72px); border: 0;
  background: #d40a1e; color: #fff; font-family: "Hind", Arial, sans-serif; }
main[data-place="paris"] > .flight + .stub.fl-next a { color: #fff; }
main[data-place="paris"] > .flight + .stub.fl-next .next { font: 300 clamp(34px, 5vw, 72px)/1 "Hind", Arial, sans-serif; font-style: normal; letter-spacing: -0.01em; margin: 0 0 18px; }
main[data-place="paris"] > .flight + .stub.fl-next .next a { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
main[data-place="paris"] > .flight + .stub.fl-next p:not(.next) { display: inline; margin: 0 1.2em 0 0; font: 300 18px/1.4 "Hind", Arial, sans-serif; }

main[data-place="paris"] > .flight + .stub.fl-next p.credit { display: block; margin: 28px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.82); }
