/* The loader: Departures (js/loader.js), picked Nov 17. Airmail and Postmark live in versions/r18-loader-options. */

html[data-ld] .intro { background: transparent; }
.ldo { position: absolute; inset: 0; overflow: hidden; }
.ldo-bg { position: absolute; inset: 0; background: var(--paper); }
.ldo-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- the board, and the wall of flaps it turns into ---------- */
.ldo--board .ldo-bg { background: linear-gradient(170deg, #FFF8EA 0%, #FFEFD0 55%, #FFE0A6 100%); }
.ldo-board {
  position: absolute; left: 50%; top: 50%; padding: 30px 38px 38px; border-radius: 22px;   /* centred by GSAP (xPercent, yPercent) */
  background: #FFFDF8; box-shadow: 0 34px 80px rgba(150, 100, 30, .18), 0 3px 10px rgba(150, 100, 30, .1);
}
.ldo-board__head { display: flex; align-items: center; gap: 14px; font: 500 13px/1 var(--mono); letter-spacing: .22em; color: rgba(15, 59, 64, .65); margin-bottom: 22px; }
.ldo-board__head svg { width: 36px; height: auto; }
.ldo-board__clock { margin-left: auto; color: var(--accent); }
.ldo-board__big { display: flex; gap: 8px; margin-bottom: 28px; }
.ldo-board__rows { display: grid; gap: 10px; }
.ldo-row { display: flex; gap: 3px; align-items: center; }
.ldo-row i { width: 18px; }
.ldo-flap {
  --fold: 0; display: inline-grid; place-items: center; width: 32px; height: 44px; border-radius: 5px;
  font: 500 25px/1 var(--mono); color: var(--ink); transform: scaleY(calc(1 - var(--fold) * .75));
  background: linear-gradient(#F4EEE2 0 49%, #DCD3C2 49% 51%, #F8F3EA 51%);
  box-shadow: inset 0 -1px 0 rgba(15, 59, 64, .08), 0 1px 2px rgba(15, 59, 64, .08);
}
.ldo-flap--big { width: 92px; height: 122px; font: 800 84px/1 var(--display); letter-spacing: -.02em; border-radius: 9px; }
.ldo-flap--hot { color: var(--accent); }
/* the mosaic the board flips into: each tile's back is its slice of the film's first frame */
.ldo-tiles { position: absolute; z-index: 5; pointer-events: none; }   /* each tile has its own perspective (GSAP transformPerspective), so they flip in place */
.ldo-tile { position: absolute; }
.ldo-tile__in { position: absolute; inset: 0; transform-style: preserve-3d; }
.ldo-tile__front { position: absolute; inset: 0; opacity: 0; visibility: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background: linear-gradient(transparent calc(50% - .5px), rgba(15, 59, 64, .12) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)), #FFF6E4;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), inset 0 0 0 2px rgba(15, 59, 64, .05); }
.ldo-tile__back { position: absolute; inset: 0; background-repeat: no-repeat; transform: rotateX(180deg); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.ldo-tiles .ldo-shot { opacity: 0; visibility: hidden; }

@media (max-width: 760px) {
  .ldo-board { padding: 16px 14px 20px; border-radius: 14px; }
  .ldo-board__head { font-size: 8.5px; gap: 8px; margin-bottom: 12px; }
  .ldo-board__big { gap: 4px; justify-content: center; }
  .ldo-flap--big { width: 40px; height: 56px; font-size: 38px; border-radius: 5px; }
  .ldo-row { gap: 2px; }
  .ldo-row i { width: 6px; }
  .ldo-flap { width: 16px; height: 24px; font-size: 13px; border-radius: 3px; }
}
