/* Films shelf redesign: each film is a framed card with its whole 9:16
   cover, a single play mark over it and its name beneath. Likes and the
   save button wait for the pointer so the artwork reads first. */
html[dir] body .portfolio-page .work article.card.additional-card.supplied-video-cover {
  padding:10px;border-radius:22px;background:#fff;overflow:hidden;
  border:1px solid rgba(8,35,55,.08);
  box-shadow:0 1px 2px rgba(8,35,55,.05),0 18px 36px -24px rgba(8,35,55,.45);
  transition:transform .4s cubic-bezier(.2,.7,.2,1),box-shadow .4s ease;
}
html[dir] body .portfolio-page .work article.card.additional-card.supplied-video-cover:hover,
html[dir] body .portfolio-page .work article.card.additional-card.supplied-video-cover:focus-within {
  transform:translateY(-6px);
  box-shadow:0 2px 4px rgba(8,35,55,.06),0 28px 48px -26px rgba(8,35,55,.6);
}
html[dir] body .portfolio-page .work article.card.additional-card.supplied-video-cover .card-shot {
  border-radius:14px;background:#071f2e;
}
html[dir] body .portfolio-page .work article.card.additional-card.supplied-video-cover .frame {display:none}
html[dir] body .portfolio-page .work article.card.additional-card.supplied-video-cover .card-shot .photo {
  transition:transform .7s cubic-bezier(.2,.7,.2,1)!important;
}
html[dir] body .portfolio-page .work article.card.additional-card.supplied-video-cover:hover .card-shot .photo {
  transform:scale(1.035)!important;
}

.video-card-play {
  position:absolute;top:50%;left:50%;z-index:3;width:64px;height:64px;
  display:grid;place-items:center;border-radius:50%;pointer-events:none;
  translate:-50% -50%;color:#fff;background:rgba(6,31,51,.5);
  border:1px solid rgba(255,255,255,.4);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  box-shadow:0 10px 30px rgba(0,0,0,.28);
  transition:background .3s ease,color .3s ease,scale .3s ease,border-color .3s ease;
}
.video-card-play svg {width:26px;height:26px;fill:currentColor;margin-inline-start:3px}
[dir="rtl"] .video-card-play svg {margin-inline-start:0;margin-inline-end:-3px}
article.card.supplied-video-cover:hover .video-card-play {
  background:var(--orange);border-color:var(--orange);color:var(--navy);scale:1.08;
}

html[dir] body .portfolio-page .work article.card.additional-card.supplied-video-cover .card-curation-top {
  top:20px;right:auto;left:auto;inset-inline-end:20px;
}
@media (hover:hover) {
  html[dir] body .portfolio-page .work article.card.additional-card.supplied-video-cover .card-curation-top {
    opacity:0;transform:translateY(-4px);transition:opacity .3s ease,transform .3s ease;
  }
  html[dir] body .portfolio-page .work article.card.additional-card.supplied-video-cover:hover .card-curation-top,
  html[dir] body .portfolio-page .work article.card.additional-card.supplied-video-cover:focus-within .card-curation-top {
    opacity:1;transform:none;
  }
}

html[dir] body .portfolio-page .work article.card.additional-card.supplied-video-cover .meta {
  position:static;flex:none;height:auto;min-height:0;padding:14px 6px 6px;opacity:1;transform:none;
}
html[dir] body .portfolio-page .work .supplied-video-cover .meta .video-card-kind {
  display:flex;align-items:center;gap:7px;margin:0 0 6px;
  font-size:12px;font-weight:700;line-height:1.4;color:#c26f05!important;
}
html[dir] body .portfolio-page .work .supplied-video-cover .meta .video-card-kind::before {
  content:"";width:7px;height:7px;border-radius:50%;background:currentColor;
  box-shadow:0 0 0 3px rgba(247,173,63,.22);
}
html[dir] body .portfolio-page .work article.card.additional-card.supplied-video-cover .meta h3 {
  height:auto;min-height:calc(2 * 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:2;overflow:hidden;
}
html[dir] body .portfolio-page .work article.card.additional-card.supplied-video-cover .title-text {color:inherit;text-align:start;display:inline}

:root[data-theme="dark"] body .portfolio-page .work article.card.additional-card.supplied-video-cover {
  background:var(--navy-2);border-color:rgba(255,255,255,.08);
  box-shadow:0 18px 36px -24px rgba(0,0,0,.8);
}
:root[data-theme="dark"] body .portfolio-page .work .supplied-video-cover .meta .video-card-kind {color:var(--orange)!important}

@media (max-width:640px) {
  html[dir] body .portfolio-page .work article.card.additional-card.supplied-video-cover {padding:8px;border-radius:18px}
  html[dir] body .portfolio-page .work article.card.additional-card.supplied-video-cover .card-shot {border-radius:12px}
  .video-card-play {width:52px;height:52px}
  .video-card-play svg {width:22px;height:22px}
  html[dir] body .portfolio-page .work article.card.additional-card.supplied-video-cover .meta h3 {font-size:15px!important}
}
@media (prefers-reduced-motion:reduce) {
  html[dir] body .portfolio-page .work article.card.additional-card.supplied-video-cover,
  html[dir] body .portfolio-page .work article.card.additional-card.supplied-video-cover .card-shot .photo {transition:none!important}
}

/* Homepage films shelf: a short heading beside one row of portrait film
   covers. The row scrolls sideways once more films are added, so the
   section keeps the same compact height. */
.home-films{margin:0 clamp(12px,2vw,28px) var(--home-section-gap)}
.home-films>.wrap{width:100%;max-width:none;margin:0;padding:0}
/* The section itself is the dark panel, the way the closing call to
   action is, rather than a dark box framed inside a light one. */
html body main.home-page>section.home-films{
  position:relative;isolation:isolate;overflow:hidden;
  padding:clamp(24px,3vw,40px) var(--home-layout-x);
  border:1px solid rgba(79,213,212,.24);border-radius:var(--radius-section);color:#fff;
  background:
    radial-gradient(circle at 10% 115%,rgba(247,173,63,.22),transparent 34%),
    radial-gradient(circle at 92% -12%,rgba(41,199,201,.2),transparent 32%),
    linear-gradient(145deg,var(--navy-2),var(--navy));
}
.home-films-shell{
  display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,2fr);
  gap:clamp(22px,4vw,56px);align-items:center;
}
.home-films-head{min-width:0}
.home-films-kicker{
  display:flex;align-items:center;gap:10px;margin:0 0 12px;
  color:var(--orange);font-size:12px;font-weight:900;letter-spacing:.04em;
}
.home-films-kicker::before{content:"";width:28px;height:2px;border-radius:3px;background:var(--orange)}
.home-films-head h2{
  margin:0;font-family:var(--head);font-size:clamp(26px,2.6vw,38px);
  font-weight:850;line-height:1.3;letter-spacing:0;text-wrap:balance;color:#fff;
}
.home-films-head>p{margin:12px 0 0;color:#c4d4db;font-size:14px;line-height:1.9;max-width:360px}
.home-films-all{
  display:inline-flex;align-items:center;gap:10px;margin-top:20px;
  padding:10px 18px;border-radius:999px;background:var(--orange);color:var(--navy);
  font-size:14px;font-weight:800;text-decoration:none;
  transition:transform .25s ease,box-shadow .25s ease;
}
.home-films-all:hover{transform:translateY(-2px);box-shadow:0 10px 24px -12px rgba(247,173,63,.9)}
.home-films-row{
  --film-w:clamp(160px,14vw,196px);
  display:flex;gap:clamp(14px,1.6vw,22px);margin:0;padding:4px 2px 6px;list-style:none;
  overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.25) transparent;justify-content:flex-start;
}
.home-films-row>li{flex:0 0 var(--film-w);scroll-snap-align:start}
.home-film{display:block;color:inherit;text-decoration:none}
.home-film-cover{
  position:relative;display:block;aspect-ratio:9 / 16;overflow:hidden;
  border-radius:16px;background:#071f2e;
  box-shadow:0 18px 36px -22px rgba(0,0,0,.85),0 0 0 1px rgba(255,255,255,.1);
  transition:transform .4s cubic-bezier(.2,.7,.2,1),box-shadow .4s ease;
}
.home-film-cover img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  transition:transform .7s cubic-bezier(.2,.7,.2,1);
}
.home-film-play{
  position:absolute;top:50%;left:50%;width:52px;height:52px;translate:-50% -50%;
  display:grid;place-items:center;border-radius:50%;color:#fff;
  background:rgba(6,31,51,.5);border:1px solid rgba(255,255,255,.4);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  transition:background .3s ease,color .3s ease,scale .3s ease,border-color .3s ease;
}
.home-film-play svg{width:22px;height:22px;fill:currentColor;margin-inline-start:3px}
[dir="rtl"] .home-film-play svg{margin-inline-start:0;margin-inline-end:-3px}
.home-film-time{
  position:absolute;bottom:10px;inset-inline-start:10px;padding:3px 8px;border-radius:999px;
  background:rgba(6,31,51,.72);color:#fff;font-size:11px;font-weight:700;
  direction:ltr;font-variant-numeric:tabular-nums;
}
.home-film-meta{display:block;padding:12px 2px 0}
.home-film-meta small{display:block;color:var(--orange);font-size:11px;font-weight:800;margin-bottom:4px}
.home-film-meta strong{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
  font-size:14px;font-weight:700;line-height:1.6;color:#fff;min-height:calc(2 * 1.6em);
}
.home-film:hover .home-film-cover,.home-film:focus-visible .home-film-cover{
  transform:translateY(-5px);box-shadow:0 26px 44px -22px rgba(0,0,0,.95),0 0 0 2px var(--orange);
}
.home-film:hover .home-film-cover img{transform:scale(1.04)}
.home-film:hover .home-film-play{background:var(--orange);border-color:var(--orange);color:var(--navy);scale:1.08}
@media(max-width:820px){
  html body main.home-page>section.home-films{padding:22px 18px}
  .home-films-shell{grid-template-columns:1fr;gap:20px}
  .home-films-head{display:grid;grid-template-columns:1fr auto;align-items:end;column-gap:12px}
  .home-films-kicker{grid-column:1 / -1;margin-bottom:8px}
  .home-films-head h2{font-size:24px}
  .home-films-head>p{display:none}
  .home-films-all{margin-top:0;padding:8px 14px;font-size:13px;white-space:nowrap}
  .home-films-row{--film-w:150px;margin-inline:-18px;padding-inline:18px;scroll-padding-inline:18px}
  .home-film-play{width:44px;height:44px}
  .home-film-play svg{width:19px;height:19px}
}
@media(prefers-reduced-motion:reduce){
  .home-film-cover,.home-film-cover img,.home-films-all{transition:none}
}
