/* Home hero with a background film. Loaded after site.css on the home page only. Logical properties (the scrim is mirrored for Arabic).
   Layers inside .hero (it isolates): film (-2) < lattice texture (.hero::before, -1) < content. */
.hero-media{position:absolute;inset:0;z-index:-2;overflow:hidden;background:var(--nuit)}
.hero-media picture,.hero-media img,.hero-media video{position:absolute;inset:0;display:block;width:100%;height:100%}
.hero-media img,.hero-media video{object-fit:cover;object-position:58% 50%}
.hero-video{opacity:0;transition:opacity 1.4s var(--ease)}
.hero-media.is-playing .hero-video{opacity:1}
/* scrim: navy where the words are (start side, header, search card), clear where the picture is */
.hero-media::after{content:"";position:absolute;inset:0;pointer-events:none;background:
  linear-gradient(180deg,rgba(10,53,88,.6) 0,rgba(10,53,88,0) 180px),
  linear-gradient(0deg,rgba(10,53,88,.86) 0,rgba(10,53,88,.3) 24%,rgba(10,53,88,0) 46%),
  linear-gradient(90deg,rgba(10,53,88,.8) 0,rgba(10,53,88,.56) 32%,rgba(10,53,88,.1) 62%,rgba(10,53,88,0) 100%)}
[dir="rtl"] .hero-media::after{transform:scaleX(-1)}
.hero.has-video::before{opacity:.045}

/* narrow / portrait screens: the whole frame is shown and the words sit on top of it, so the scrim is an even veil */
@media (orientation:portrait){
.hero-media img,.hero-media video{object-position:50% 42%}
.hero-media::after{background:
  linear-gradient(180deg,rgba(10,53,88,.72) 0,rgba(10,53,88,.5) 35%,rgba(10,53,88,.42) 60%,rgba(10,53,88,.88) 100%)}
}

/* the framed photo of the agency competes with the film on small screens: there the film is the picture */
@media (max-width:899.98px){.has-video .hero-arch{display:none}
.has-video .hero-copy{grid-column:1 / -1}}

/* play / pause (WCAG 2.2.2): bottom corner of the picture, clear of the header and the search card */
.hero-toggle{position:absolute;z-index:3;inset-block-start:calc(var(--header-h) + .9rem);inset-inline-end:max(1.5rem,calc((100% - 1280px) / 2));display:inline-grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid rgba(255,255,255,.55);border-radius:50%;background:rgba(10,53,88,.5);color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:background .2s,border-color .2s}
.hero-toggle[hidden]{display:none}
.hero-toggle:hover{background:rgba(10,53,88,.8);border-color:#fff}
.hero-toggle:focus-visible{outline:2px solid #fff;outline-offset:3px}
.hero-toggle .i-play,.hero-toggle.is-paused .i-pause{display:none}
.hero-toggle.is-paused .i-play{display:block}

@media (prefers-reduced-motion:reduce){.hero-video,.hero-toggle{display:none}}
