/* Styles the film grid, active-card halo and collage play mark. The motion owner selects one glowing card without changing media or layout. */
.work-page{
  --work-gold:var(--sx-yellow);--work-complement:var(--sx-blue);
  --work-edge:clamp(12px,2.4vw,40px);--tile-gap:3px;--tile-radius:6px;
  --tile-height:auto;--tile-fit:contain;
  --title-font:Syne,Arial,sans-serif;--title-weight:500;--title-size:28px;--title-x:5%;--title-y:16%;--title-tracking:-.035em;
  --category-font:Manrope,Arial,sans-serif;--category-weight:400;--category-size:10px;--category-x:5%;--category-y:6%;--category-tracking:.09em;
  --title-color:#f3f3f3;--category-color:#d2d2d2;--logo-x:5%;--logo-y:5%;--logo-width:46px;--logo-height:24px;--logo-scale:1;--logo-color:#fff;
  background:#101010;min-height:100svh;
}
html:has(.work-page){scrollbar-gutter:stable}
.work-main{padding:108px var(--work-edge) 190px}
/* The first row starts under the filter bar, wherever the bar ends (it wraps on narrow screens); work-filter-island.js reports its lower edge. */
.work-page:not(.archive-page):not(.work-embed) .work-main{padding-top:calc(var(--menu-submenu-bottom,92px) + 16px)}
[data-work-arrival=waiting] .work-grid,[data-work-arrival=waiting] .gallery-surface-canvas{opacity:0}
.work-grid{display:grid;grid-template-columns:var(--tile-columns,repeat(3,minmax(0,1fr)));gap:var(--tile-gap);justify-content:center;align-items:start;outline:none;background:#101010}
.film-tile{position:relative;width:100%;min-width:0;min-height:0;height:var(--tile-height);aspect-ratio:16/9;justify-self:stretch}
.film-slot{position:relative;width:100%;min-width:0;min-height:0;height:var(--tile-height);aspect-ratio:16/9;justify-self:stretch;overflow-anchor:none}
.film-slot>.film-tile{position:absolute;inset:0;height:100%;aspect-ratio:auto}
.film-placeholder{display:block;width:100%;height:100%;border-radius:var(--tile-radius);background:#141414}
.film-placeholder:focus-visible{outline:2px solid #fff;outline-offset:-3px}

.film-tile-link{position:relative;display:block;width:100%;height:100%;background:#1a1a1a;isolation:isolate;border-radius:var(--tile-radius);overflow:hidden}
.film-tile-link:focus-visible{outline:2px solid #fff;outline-offset:-3px}
.tile-stage{position:relative;height:100%;overflow:hidden;border-radius:inherit;background:#1a1a1a}
.work-page[data-motion-engine=browser] .film-slot:has(.is-card-popped){z-index:2}
.work-page[data-motion-engine=browser] .film-slot:has(.is-card-glowing){z-index:2}
.work-page[data-motion-engine=browser] .film-tile-link{box-shadow:none;transition:box-shadow .18s ease}
.work-page[data-motion-engine=browser] .is-card-glowing .film-tile-link{box-shadow:var(--work-card-glow-shadow,none)}
@media(prefers-reduced-motion:reduce){.work-page[data-motion-engine=browser] .film-tile-link{transition:none}}
.tile-picture{position:absolute;inset:0;pointer-events:none;background:#090909;filter:none!important}
.tile-picture>.tile-poster,.tile-picture>.tile-preview{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:var(--tile-fit)}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .work-page[data-motion-engine=browser] .tile-title{transition:transform .48s cubic-bezier(.2,.7,.2,1)}
  .work-page[data-motion-engine=browser] .tile-category{transition:transform .48s cubic-bezier(.2,.7,.2,1)}
  .work-page[data-motion-engine=browser] .tile-logo{transition:transform .5s cubic-bezier(.2,.7,.2,1) .12s}
  .work-page[data-motion-engine=browser]:not(.work-editing) .is-hover-parallax .tile-title{transform:translateY(-10px)}
  .work-page[data-motion-engine=browser]:not(.work-editing) .is-hover-parallax .tile-category{transform:translateY(-10px)}
  .work-page[data-motion-engine=browser]:not(.work-editing) .is-hover-parallax .tile-logo{transform:rotate(-5deg) scale(1.08)}
  .work-page[data-motion-engine=browser]:not(.work-editing) .is-hover-parallax .tile-play{opacity:1}
  .work-page[data-motion-engine=browser]:not(.work-editing) .is-hover-parallax .tile-play svg{animation:work-play-collage 2.04s ease-in-out infinite}
}
/* Hovering one film sets it apart: the others dim, and its title and category give a small springy nudge to the right (they stay written; nothing is redrawn). */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .work-page[data-motion-engine=browser] .film-tile-link::after{content:"";position:absolute;inset:0;z-index:6;background:#0a0a0a;opacity:0;transition:opacity .38s ease;pointer-events:none}
  .work-page[data-motion-engine=browser]:not(.work-editing) .work-grid:has(.is-hover-parallax) .film-tile:not(.is-hover-parallax) .film-tile-link::after{opacity:.34}
  .work-page[data-motion-engine=browser] :is(.tile-title,.tile-category){transition:transform .48s cubic-bezier(.2,.7,.2,1),translate .6s cubic-bezier(.2,1.6,.3,1)}
  .work-page[data-motion-engine=browser]:not(.work-editing) .is-hover-parallax :is(.tile-title,.tile-category){translate:12px 0}
  .work-page[data-motion-engine=browser]:not(.work-editing) .is-hover-parallax .tile-category{transition-delay:0s,.07s}
}
@keyframes work-play-collage{0%,100%{transform:translate(0,0) rotate(0deg)}12.5%{transform:translate(3px,-1.4px) rotate(-6deg)}25%{transform:translate(0,-2px) rotate(-11deg)}37.5%{transform:translate(-3px,-1.4px) rotate(-10deg)}62.5%{transform:translate(3px,1.4px) rotate(10deg)}75%{transform:translate(0,2px) rotate(11deg)}87.5%{transform:translate(-3px,1.4px) rotate(6deg)}}
.tile-preview{opacity:0;transition:opacity .22s}.tile-preview.is-ready{opacity:1}
.tile-stage::after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;box-shadow:inset 0 0 0 1px #ffffff12;border-radius:inherit;background:linear-gradient(180deg,transparent 35%,#0002 52%,#000a 100%)}
.tile-meta{position:absolute;inset:0;z-index:2;pointer-events:none}
.tile-title,.tile-category{position:absolute;isolation:isolate;margin:0;max-width:calc(94% - var(--title-x));text-shadow:0 1px 12px #0004;overflow-wrap:anywhere;text-transform:uppercase}
.tile-title-text{text-shadow:0 0 calc(var(--title-glow-radius,0px)*.28) var(--title-glow-color,transparent),0 0 var(--title-glow-radius,0px) var(--title-glow-color,transparent),0 1px 12px #0004}
.tile-category{text-shadow:0 0 calc(var(--category-glow-radius,0px)*.28) var(--category-glow-color,transparent),0 0 var(--category-glow-radius,0px) var(--category-glow-color,transparent),0 1px 12px #0004}
.tile-title-text{
  -webkit-box-decoration-break:clone;
  box-decoration-break:clone;
  background-color:var(--title-background-color,transparent);
  padding:var(--title-background-y,0px) var(--title-background-x,0px);
}
.tile-category::before{content:'';position:absolute;z-index:-1;background:#000;pointer-events:none;display:var(--category-background-display,none);inset:calc(-1 * var(--category-background-y,2px)) calc(-1 * var(--category-background-x,5px))}
/* The plate reaches out to the left of the lettering by its own padding. The whole title block is moved out by that much, so every line of a two-line title starts at the same edge in every browser (a negative margin on the lettering is not repeated on the second line by Safari). */
.tile-title{left:calc(var(--title-x) - var(--title-background-x,0px));max-width:calc(94% - var(--title-x) + 2 * var(--title-background-x,0px));bottom:var(--title-y);font-family:var(--title-font);font-weight:var(--title-weight);font-size:var(--title-size);letter-spacing:var(--title-tracking);line-height:1.04;color:var(--title-color);text-wrap:balance}
/* The category's plate starts exactly under the title's plate and touches it, whatever places the two were saved with. */
.tile-category{left:calc(var(--title-x) - var(--title-background-x,0px) + var(--category-background-x,5px));bottom:calc(var(--title-y) - var(--title-background-y,0px) - var(--category-background-y,2px) - 1.2em);max-width:calc(94% - var(--category-x));font-family:var(--category-font);font-weight:var(--category-weight);font-size:var(--category-size);letter-spacing:var(--category-tracking);line-height:1.2;color:var(--category-color)}
.tile-logo{position:absolute;right:clamp(0px,var(--logo-x),calc(100% - var(--tile-logo-width)));bottom:clamp(0px,var(--logo-y),calc(100% - var(--tile-logo-height)));width:var(--tile-logo-width);height:var(--tile-logo-height);background:transparent;opacity:.7;pointer-events:auto;--tile-logo-width:calc(var(--logo-width)*var(--logo-scale));--tile-logo-height:calc(var(--logo-height)*var(--logo-scale))}
.tile-logo[data-mask-ready=true]{background-color:var(--logo-color);mask-image:var(--tile-logo-mask);-webkit-mask-image:var(--tile-logo-mask);mask-size:contain;-webkit-mask-size:contain;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:right bottom;-webkit-mask-position:right bottom}
.tile-logo-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:right bottom;filter:grayscale(1) brightness(0) invert(1);opacity:1;pointer-events:none}
.tile-logo[data-mask-ready=true] .tile-logo-image{opacity:0}
/* The large play mark over a hovered or touched tile is not shown any more (owner's decision, 0.279.0); the markup stays for the tools that count on it. */
.work-page .tile-play{display:none!important;position:absolute;inset:0;z-index:4;place-items:center;pointer-events:none;opacity:0;transition:opacity .25s}
.work-page .tile-play svg{width:48px;height:48px;fill:var(--sx-yellow)}
.tile-gallery-badge{position:absolute;left:14px;top:14px;z-index:5;display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border:1px solid color-mix(in srgb,var(--sx-yellow) 31.37%,transparent);border-radius:999px;background:#080808d9;color:var(--work-gold);font:600 9px/1 Manrope,Arial,sans-serif;white-space:nowrap;pointer-events:none}
.tile-gallery-badge svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tile-gallery-badge[hidden]{display:none}
.work-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.work-feedback{padding:50px 20px;text-align:center;font-size:14px;color:#bbb}.work-feedback button{margin-top:20px;padding:12px 18px;background:none;border-bottom:1px solid #888}
.work-pagination{padding:40px 0 85px;display:flex;justify-content:center}
.work-editing .work-grid,.dialog-open .work-grid{filter:none!important}
@media(max-width:1050px){.work-page{--edge:40px}}
@media(max-width:900px){.work-grid{grid-template-columns:var(--tile-columns,repeat(2,minmax(0,1fr)))}}
@media(max-width:650px){
  .work-page{--work-edge:10px}.work-main{padding-top:90px;padding-bottom:230px}
  .tile-title{font-size:calc(var(--title-size)*.82)}.tile-category{font-size:max(8px,calc(var(--category-size)*.9))}
  .work-page{--logo-width:38px;--logo-height:22px}
}
@media(max-width:560px){.work-grid{grid-template-columns:var(--tile-columns,minmax(0,1fr))}.tile-title{font-size:var(--title-size)}}
@media(prefers-reduced-motion:reduce){.work-grid{filter:none!important}.tile-play,.tile-preview{transition:none}}

/* The reason of a search match, and the length and year: a row of their own that takes the category's place on hover while title and category step up. */
.tile-match{position:absolute;z-index:3;right:12px;top:12px;max-width:70%;margin:0;padding:6px 11px 6px 9px;overflow:hidden;border-radius:999px;background:var(--sx-yellow);color:#1a1204;font:700 10px/1.2 'Space Grotesk',Manrope,Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;text-overflow:ellipsis;box-shadow:0 6px 18px #0006;pointer-events:none}
.tile-match::before{content:"";display:inline-block;width:5px;height:5px;margin:0 7px 1px 0;border-radius:50%;background:#1a1204;vertical-align:middle}
.tile-facts{position:absolute;left:var(--category-x);bottom:var(--category-y);display:flex;align-items:center;gap:14px;margin:0;color:#f3f3f3;font:600 11px/1.2 'Space Grotesk',Manrope,Arial,sans-serif;letter-spacing:.12em;font-variant-numeric:tabular-nums;text-shadow:0 1px 10px #000c;opacity:0;translate:0 10px;transition:opacity .2s,translate .45s cubic-bezier(.2,.8,.2,1)}
.tile-length{display:inline-flex;align-items:center;gap:7px;color:var(--sx-yellow,#ffcb5c)}
.tile-length::before{content:"";border-left:7px solid currentColor;border-top:4.5px solid #0000;border-bottom:4.5px solid #0000}
.tile-year{color:#ffffffb8}
@media (hover:hover) and (pointer:fine){
  .work-page[data-motion-engine=browser]:not(.work-editing) .is-hover-parallax:has(.tile-facts) :is(.tile-title,.tile-category){translate:12px -22px}
  .work-page:not(.work-editing) .is-hover-parallax .tile-facts{opacity:1;translate:12px 0;transition-delay:.1s}
}

/* The list view: one film a row, with a small moving picture, title, category, match reason, length and year. */
.work-grid.is-list{grid-template-columns:minmax(0,1fr);gap:0;max-width:1290px;margin-inline:auto}
.work-grid.is-list .film-slot{height:86px;aspect-ratio:auto}
.work-grid.is-list .film-placeholder{border-radius:0;background:transparent}
.film-row{position:relative;height:100%;border-bottom:1px solid #ffffff1f}
.film-row-link{display:grid;grid-template-columns:128px minmax(0,2fr) minmax(0,1fr) minmax(0,1.2fr) 74px 54px;align-items:center;gap:22px;height:100%;padding:0 18px 0 8px;color:#f3f3f3;text-decoration:none;transition:background-color .2s,padding .3s cubic-bezier(.2,.9,.3,1)}
.film-row-link:is(:hover,:focus-visible){background:#ffffff12;padding-left:18px}
.film-row .film-row-picture{position:relative;inset:auto;display:block;width:128px;height:72px;overflow:hidden;border-radius:6px}
.film-row .film-row-picture>:is(.tile-poster,.tile-preview){object-fit:cover}
.film-row-text{display:grid;gap:4px;min-width:0}
.film-row-title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:800 clamp(15px,1.5vw,22px)/1.1 var(--title-font,Syne,Arial,sans-serif);letter-spacing:-.025em;text-transform:uppercase;transition:color .2s}
.film-row-link:is(:hover,:focus-visible) .film-row-title{color:var(--sx-yellow,#ffcb5c)}
.film-row-subtitle{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#b4b4b4;font:400 12px/1.2 var(--sx-copy-font,Manrope,Arial,sans-serif)}
.film-row-category{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--sx-blue,#5c95ff);font:600 11px/1.2 var(--sx-nav-font,'Space Grotesk',Arial,sans-serif);letter-spacing:.1em;text-transform:uppercase}
.film-row-why{justify-self:start;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:5px 10px;border-radius:999px;background:var(--sx-yellow);color:#1a1204;font:700 10px/1.2 'Space Grotesk',Manrope,Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase}
.film-row-why:empty{visibility:hidden}
.film-row-length,.film-row-year{font:600 12px/1 'Space Grotesk',Manrope,Arial,sans-serif;letter-spacing:.1em;font-variant-numeric:tabular-nums}
.film-row-length{display:inline-flex;align-items:center;gap:7px;color:var(--sx-yellow,#ffcb5c)}
.film-row-length:not(:empty)::before{content:"";border-left:7px solid currentColor;border-top:4.5px solid #0000;border-bottom:4.5px solid #0000}
.film-row-year{color:#ffffffb8}
@media(max-width:900px){.film-row-link{grid-template-columns:104px minmax(0,1fr) 62px;gap:14px;padding-right:12px}.film-row-category,.film-row-why,.film-row-year{display:none}.film-row .film-row-picture{width:104px;height:58px}.work-grid.is-list .film-slot{height:74px}}

/* The "new" mark of a recently uploaded film; a search match's reason takes its corner while a search is on. */
.tile-new{position:absolute;z-index:3;right:12px;top:12px;padding:6px 11px;border-radius:999px;background:var(--sx-yellow,#ffcb5c);color:#1a1204;font:800 11px/1 var(--sx-title-font,Syne,Arial,sans-serif);letter-spacing:.08em;text-transform:uppercase;box-shadow:0 6px 18px #0006}
.film-tile:has(.tile-match) .tile-new{display:none}
.film-row-new{display:none;margin-left:10px;padding:4px 8px;border-radius:999px;background:var(--sx-yellow,#ffcb5c);color:#1a1204;font:800 10px/1 var(--sx-title-font,Syne,Arial,sans-serif);letter-spacing:.08em;text-transform:uppercase;vertical-align:middle}
.film-row[data-new] .film-row-new{display:inline-block}
/* Phones: a long one-word title is sized to stay on one line. */
@media(max-width:560px){#work-grid .tile-title{font-size:min(var(--title-size),calc(72vw / var(--longest,8) / 1.2))}}
/* Touch screens: the card nearest the middle of the screen takes the hover's place (work-touch-focus.js). */
@media (hover:none){
  .work-page .film-tile :is(.tile-title,.tile-category){transition:translate .45s cubic-bezier(.2,.8,.2,1)}
  .work-page:not(.work-editing) .film-tile[data-touch-focus]:has(.tile-facts) :is(.tile-title,.tile-category){translate:0 -22px}
  .work-page:not(.work-editing) .film-tile[data-touch-focus] .tile-facts{opacity:1;translate:0 0;transition-delay:.1s}
  .work-page:not(.work-editing) .film-tile[data-touch-focus] .tile-play{opacity:1}
}

/* Phones: a tile shows its title and category only - no length, year or play mark, and nothing steps up when a tile is in the middle of the screen. The category stands on its black plate directly under the title's plate, starting at the same left edge (the phone's saved tile design left it bare and overlapping the title; on phones these two values no longer come from the tile editor). */
@media(max-width:700px){
 .work-page .film-tile :is(.tile-facts,.tile-play){display:none!important}
 .work-page .film-tile[data-touch-focus] :is(.tile-title,.tile-category){translate:none!important}
 .work-page .film-tile .tile-category{--category-background-display:block!important;left:calc(var(--title-x) - var(--title-background-x,0px) + var(--category-background-x,5px));bottom:calc(var(--title-y) - var(--title-background-y,0px) - var(--category-background-y,2px) - 1.2em)}
}
/* The tiles' lettering (owner's choice, 0.280.0): title and category are bold and semi-bold with their own letter spacing, whatever weight and spacing were saved with the tile design; the family and the size are the saved ones (the editor offers them; the stored default family is the site's text family, work-editor-model.js). */
.tile-title{font-weight:700!important;letter-spacing:.01em!important}
.tile-category{font-weight:600!important;letter-spacing:.12em!important}
/* The Film/Gallery window's caption wears the tiles' lettering (owner's request, 0.296.0): the families chosen for the tile title and category, with the tiles' weights and letter spacing; the title's black plate and the plate under it (category, length, year) touch, whatever gap was saved. The window's own size and place settings stay. */
#work-player,.work-player{--title-font:var(--credit-title-font,Syne,Arial,sans-serif);--category-font:var(--credit-category-font,Manrope,Arial,sans-serif);--title-weight:700;--title-tracking:.01em;--category-weight:600;--category-tracking:.12em}
.work-player .player-meta{margin-top:0!important}
.work-player .player-credit-head{row-gap:0}
/* Quiet tiles (owner's choice, 0.288.0; titles back 0.291.0): on Work and Archive a tile always shows its title and category, but toned down (less colour, a little darker) until the tile is pointed at; the gallery and "new" badges and the facts line appear only on the tile being pointed at. On a touch screen the tile nearest the middle of the screen counts as pointed at (work-touch-focus.js), with the keyboard the focused tile, and every tile a search has matched. While the tiles are being edited everything shows as saved. */
.work-page:not(.work-editing) .film-tile :is(.tile-gallery-badge,.tile-new){opacity:0;transition:opacity .3s ease}
.work-page:not(.work-editing) .film-tile:is(:hover,:focus-within,.is-hover-parallax,[data-touch-focus],:has(.tile-match)) :is(.tile-gallery-badge,.tile-new){opacity:1}
.work-page:not(.work-editing) .film-tile :is(.tile-title,.tile-category){filter:saturate(.2) brightness(.82)}
.work-page:not(.work-editing) .film-tile:is(:hover,:focus-within,.is-hover-parallax,[data-touch-focus],:has(.tile-match)) :is(.tile-title,.tile-category){filter:none}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.work-page:not(.work-editing) .film-tile :is(.tile-title,.tile-category){transition:transform .48s cubic-bezier(.2,.7,.2,1),translate .6s cubic-bezier(.2,1.6,.3,1),filter .3s ease}}
@media (hover:none) and (prefers-reduced-motion:no-preference){.work-page:not(.work-editing) .film-tile :is(.tile-title,.tile-category){transition:translate .45s cubic-bezier(.2,.8,.2,1),filter .3s ease}}
@media(prefers-reduced-motion:reduce){.work-page:not(.work-editing) .film-tile :is(.tile-title,.tile-category,.tile-gallery-badge,.tile-new){transition:none}}
/* The film's name on the tile (owner's choice, 0.307.14): the catalogue's subtitle stands before the category on the category's line, in a light colour, with a small dot between the two; the category keeps its own colour. The name comes from the data-subtitle attribute (work-cards.js) and is drawn here, so the element's own text stays the category alone. Where the two do not fit the tile, the name is cut with an ellipsis and the category stays whole. On wider screens the line is a little larger than the saved category size. */
.tile-category[data-subtitle]{display:flex;align-items:baseline;white-space:nowrap}
.tile-category[data-subtitle]::after{content:attr(data-subtitle);order:-1;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;margin-right:.75em;padding-right:calc(.75em + 4px);color:var(--tile-subtitle-color,#f5f3ec);background:radial-gradient(circle closest-side,#ffffff8c 90%,#0000) right center/4px 4px no-repeat}
@media(min-width:701px){.work-page .film-tile .tile-category[data-subtitle]{font-size:calc(var(--category-size)*1.08)}}
