/* Hero tiles — 2026-11-02. The Mithaq offer (left) and the newest film
   (right) as two squares at the foot of the hero, on the same sides in
   both languages; on narrower screens they sit side by side under the
   buttons. The film tile opens the homepage pop-up. */
html body main.home-page .home-hero .home-hero-tiles{
  position:absolute;z-index:3;left:clamp(22px,4vw,64px);right:clamp(22px,4vw,64px);bottom:clamp(26px,3.4vw,50px);
  display:flex;justify-content:space-between;align-items:flex-end;direction:ltr;pointer-events:none;
}
html body main.home-page .home-hero .home-hero-tile{
  pointer-events:auto;position:relative;isolation:isolate;overflow:hidden;
  width:clamp(172px,14.5vw,226px);aspect-ratio:1;border-radius:22px;
  display:flex;flex-direction:column;justify-content:flex-end;gap:6px;padding:14px;
  color:#fff;text-decoration:none;text-align:start;
  box-shadow:0 26px 50px -26px rgba(0,0,0,.95),inset 0 1px 0 rgba(255,255,255,.14);
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
[dir="rtl"] body main.home-page .home-hero .home-hero-tile{direction:rtl}
html body main.home-page .home-hero .home-hero-tile:is(:hover,:focus-visible){transform:translateY(-4px)}
html body main.home-page .home-hero .home-hero-tile-copy{display:flex;flex-direction:column;gap:5px}
html body main.home-page .home-hero .home-hero-tile-copy small{
  width:max-content;max-width:100%;border-radius:999px;padding:3px 10px 5px;font-size:11px;font-weight:700;line-height:1.3;
}
html body main.home-page .home-hero .home-hero-tile-copy strong{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;
  font-size:14px;font-weight:700;line-height:1.5;
}
/* Mithaq: teal glass square with the wordmark on top */
html body main.home-page .home-hero .home-hero-mithaq{
  border:1px solid rgba(64,211,204,.62);
  background:radial-gradient(circle at 18% 0,rgba(64,211,204,.3),transparent 46%),linear-gradient(160deg,rgba(11,58,74,.96),rgba(6,31,51,.97) 70%);
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
}
html body main.home-page .home-hero .home-hero-mithaq::before{
  content:"";position:absolute;z-index:-1;inset:0 22% auto;height:3px;border-radius:0 0 999px 999px;
  background:linear-gradient(90deg,transparent,#40d3cc 22% 78%,transparent);
}
html body main.home-page .home-hero .home-hero-mithaq:is(:hover,:focus-visible){border-color:#40d3cc}
html body main.home-page .home-hero .home-hero-mithaq-mark{width:64%;height:auto;margin:4px auto auto;display:block}
html body main.home-page .home-hero .home-hero-mithaq .home-hero-tile-copy small{background:rgba(64,211,204,.16);color:#8ceae6}
html body main.home-page .home-hero .home-hero-tile-arrow{
  position:absolute;top:12px;inset-inline-end:12px;width:30px;height:30px;border-radius:50%;
  display:grid;place-items:center;font-size:15px;line-height:1;
  border:1px solid rgba(119,228,223,.55);color:#77e4df;transition:background .25s,color .25s;
}
html body main.home-page .home-hero .home-hero-mithaq:is(:hover,:focus-visible) .home-hero-tile-arrow{background:#77e4df;color:#06313f}
/* Film: the cover fills the square, the title sits on a navy fade */
html body main.home-page .home-hero .home-hero-film{border:1px solid rgba(247,173,63,.78);background:#061f33}
html body main.home-page .home-hero .home-hero-film:is(:hover,:focus-visible){border-color:#f7ad3f}
html body main.home-page .home-hero .home-hero-film-cover{
  position:absolute;z-index:-2;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 30%;
  transition:transform .5s ease;
}
html body main.home-page .home-hero .home-hero-film:hover .home-hero-film-cover{transform:scale(1.05)}
html body main.home-page .home-hero .home-hero-film::after{
  content:"";position:absolute;z-index:-1;inset:0;
  background:linear-gradient(0deg,rgba(6,31,51,.97) 0,rgba(6,31,51,.8) 34%,rgba(6,31,51,0) 68%);
}
html body main.home-page .home-hero .home-hero-film-play{
  position:absolute;top:12px;right:12px;width:42px;height:42px;
  display:grid;place-items:center;border-radius:50%;background:#f7ad3f;color:#061f33;
  box-shadow:0 0 0 7px rgba(247,173,63,.25),0 14px 28px -10px rgba(0,0,0,.8);
}
html body main.home-page .home-hero .home-hero-film-play svg{width:19px;height:19px;fill:currentColor;margin-inline-start:2px}
html body main.home-page .home-hero .home-hero-film .home-hero-tile-copy small{background:rgba(247,173,63,.18);color:#f7c46a}
@media (max-width:1099px){
  html body main.home-page .home-hero .home-hero-tiles{
    position:relative;left:auto;right:auto;bottom:auto;justify-self:center;
    width:min(460px,100%);margin-top:18px;gap:12px;
  }
  html body main.home-page .home-hero .home-hero-tile{width:calc(50% - 6px);padding:12px;border-radius:19px}
  html body main.home-page .home-hero .home-hero-tile-copy strong{font-size:12.5px}
  html body main.home-page .home-hero .home-hero-film-play{width:34px;height:34px;top:10px;right:10px}
  html body main.home-page .home-hero .home-hero-mithaq-mark{width:56%;margin-inline:0 auto}
  html body main.home-page .home-hero .home-hero-tile-arrow{width:26px;height:26px;top:10px;font-size:13px}
}

.home-film-meta strong{
  /* three lines: the law-firms film title runs longer than the episode names */
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;
  font-size:14px;font-weight:700;line-height:1.6;color:#fff;min-height:calc(3 * 1.6em);
}

html[dir] body .portfolio-page .work article.card.additional-card.supplied-video-cover .meta h3 {
  height:auto;min-height:calc(3 * 1.6em);width:auto;margin:0;padding:0;border:0;background:none;
  justify-content:flex-start;text-align:start!important;text-shadow:none;
  font-size:16px!important;font-weight:700;line-height:1.6;color:var(--ink);
  display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden; /* the law-firms film title needs a third line */
}

/* Films shelf sizing — 2 November 2026 (mirrors src/styles.css).
   Four films fill the row exactly, so no card is cut off at the edge;
   tablets put the heading above the row. Phones keep their swipe row. */
html body .home-films-shell{grid-template-columns:minmax(200px,.62fr) minmax(0,2fr);gap:clamp(22px,3.4vw,48px)}
html body .home-films-row{--film-gap:clamp(14px,1.6vw,22px);--film-w:calc((100% - 3 * var(--film-gap)) / 4);gap:var(--film-gap)}
html body .home-films-row>li{flex:0 0 var(--film-w);min-width:0}
@media(min-width:821px) and (max-width:1099px){
  html body .home-films-shell{grid-template-columns:1fr;gap:24px}
  html body .home-films-head{display:grid;grid-template-columns:1fr auto;align-items:end;column-gap:24px}
  html body .home-films-kicker,html body .home-films-head h2{grid-column:1}
  html body .home-films-head>p{grid-column:1;max-width:520px}
  html body .home-films-all{grid-column:2;grid-row:1 / span 3;align-self:end;margin-top:0}
}
@media(max-width:820px){
  html body .home-films-shell{grid-template-columns:1fr;gap:20px}
  html body .home-films-row{--film-w:clamp(164px,44vw,184px)}
}
