/* A cinema programme: an editorial Featured sequence and the complete mixed-format poster wall. */
.work-library {
  --work-paper:#090b10; --work-ink:#f0eee8; --work-muted:#a7afbe; --work-line:#b6c8e02b; --work-accent:#d7c6a9;
  position:relative; isolation:isolate; color:var(--work-ink); background:var(--work-paper); border-block:1px solid var(--work-line);
}
.work-library::before { content:''; position:absolute; z-index:-1; inset:0; pointer-events:none; background:linear-gradient(180deg,#171d2b 0,#090b10 35rem,#090b10 calc(100% - 25rem),#111722 100%); }
.work-library-inner { padding-block:clamp(4rem,8vw,8.5rem); }
.work-library-heading { display:grid; grid-template-columns:minmax(0,1fr) minmax(15rem,.45fr); align-items:end; gap:2rem 5rem; margin-bottom:clamp(2.5rem,5vw,5rem); }
.work-library .eyebrow { color:var(--work-accent); margin-bottom:1.4rem; letter-spacing:.13em; }
.home .work-library h2 { font-size:clamp(3.5rem,7.6vw,8rem); line-height:.96; letter-spacing:-.07em; font-weight:600; }
.work-library h2 em { font-style:normal; color:#b4c6e4; font-weight:400; }
.work-library-heading > p { max-width:29ch; margin-bottom:.3rem; padding-left:1.4rem; border-left:1px solid #d7c6a975; font-size:1rem; line-height:1.8; color:var(--work-muted); }
.work-browser { display:grid; grid-template-columns:minmax(0,1fr) minmax(15rem,.72fr); gap:1.5rem 3rem; align-items:end; margin-bottom:1.5rem; }
.work-browser-top { display:flex; flex-wrap:wrap; align-items:center; gap:1rem 2rem; }
.work-scopes { display:flex; gap:.15rem; padding:.25rem; border:1px solid #c1d0e440; background:#070a10; }
.work-scopes button { min-height:3rem; padding:.65rem 1.15rem; border:0; border-radius:.1rem; color:#c5cfdf; background:transparent; font:700 .875rem/1.3 var(--body); transition:background .2s,color .2s; }
.work-scopes button[aria-pressed="true"] { color:#0a101b; background:#e2e8f2; }
.work-scopes button:not([aria-pressed="true"]):hover { background:#1b2537; color:#fff; }
.work-photo-jump { display:inline-flex; align-items:center; min-height:2.75rem; color:var(--work-accent); font-size:.9375rem; font-weight:600; text-underline-offset:.35em; }
.work-photo-jump:hover { color:#fff2d9; }
.work-search { display:grid; gap:.5rem; min-width:0; color:#c4cfdf; font-size:.875rem; font-weight:600; }
.work-search input { width:100%; min-width:0; min-height:3.2rem; border:1px solid #7e94b159; border-radius:.1rem; padding:.75rem 1rem; background:#080c13; color:#f1f5fb; font:400 1rem/1.4 var(--body); color-scheme:dark; }
.work-search input::placeholder { color:#8d9db3; }
.work-search input:focus { border-color:#cbd9ee; }
.work-library-bar { position:sticky; z-index:3; top:5rem; display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.9rem 0; margin-bottom:clamp(1.5rem,3vw,2.5rem); background:#090d15f2; backdrop-filter:blur(18px); border-block:1px solid var(--work-line); }
.work-filters { display:flex; flex-wrap:wrap; gap:.4rem; }
.work-filters button { min-height:2.75rem; padding:.55rem .9rem; color:#b8c5d9; background:transparent; border:1px solid transparent; border-radius:.1rem; font-size:.875rem; font-weight:600; line-height:1.2; transition:color .2s,background .2s,border-color .2s; }
.work-filters button:hover { color:#fff; border-color:#9eb4d04d; background:#182133; }
.work-filters button[aria-pressed="true"] { color:#f6e8d1; background:#d7c6a910; border-color:#d7c6a975; }
.work-library :focus-visible { outline:3px solid #d5e3fc; outline-offset:4px; }
.work-result { flex-shrink:0; min-width:5rem; color:#a5b3c9; font-size:.875rem; text-align:right; }

/* The no-JS fallback remains a complete, straightforward two-column collection. */
.project-wall { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(1.4rem,3vw,2.8rem); align-items:start; }
.project-card { min-width:0; }
.project-link { display:block; min-width:0; overflow:hidden; color:inherit; text-decoration:none; scroll-margin-top:9rem; background:#10151f; border:1px solid var(--work-line); border-radius:.2rem; box-shadow:0 .6rem 1.8rem #0003,inset 0 1px #ffffff08; transition:border-color .25s,box-shadow .25s; }
.project-link:is(:hover,:focus-visible) { border-color:#a9bfdc9c; box-shadow:0 .85rem 2.5rem #0005,inset 0 1px #ffffff14; }
.project-art { position:relative; isolation:isolate; overflow:hidden; aspect-ratio:16/9; background:#030609; border-bottom:1px solid var(--work-line); }
.project-card[data-project-shape="portrait"] .project-art { aspect-ratio:9/16; }
.project-card:has(#project-flag) .project-art { aspect-ratio:4/3; }
.project-card[data-work-kind="photography"] .project-art { aspect-ratio:4/5; }
.project-art > img,.project-preview { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; object-position:center; transform:none; transition:opacity .35s; }
.project-preview { opacity:0; pointer-events:none; }
.project-card.is-previewing .project-preview { opacity:1; }
.project-runtime { position:absolute; z-index:2; top:.85rem; right:.85rem; max-width:calc(100% - 1.7rem); padding:.35rem .65rem; border:1px solid #e6edf52b; background:#05090ee8; color:#edf2fb; font-size:.8125rem; line-height:1.4; font-weight:600; font-variant-numeric:tabular-nums; }
.project-play { position:absolute; z-index:2; bottom:.9rem; left:.9rem; display:grid; place-items:center; width:3rem; height:3rem; border:1px solid #e6edf5a6; border-radius:50%; color:#fff; background:#080e19c9; transition:background .2s,color .2s,border-color .2s; }
.project-play i { width:0; height:0; margin-left:.2rem; border-block:.4rem solid transparent; border-left:.6rem solid currentColor; }
.project-link:is(:hover,:focus-visible) .project-play { background:#e9edf5; border-color:#e9edf5; color:#101724; }
.project-expand { position:absolute; z-index:2; bottom:1rem; left:1rem; width:1.75rem; height:1.75rem; color:white; background:linear-gradient(currentColor,currentColor) top left/.6rem 2px,linear-gradient(currentColor,currentColor) top left/2px .6rem,linear-gradient(currentColor,currentColor) top right/.6rem 2px,linear-gradient(currentColor,currentColor) top right/2px .6rem,linear-gradient(currentColor,currentColor) bottom left/.6rem 2px,linear-gradient(currentColor,currentColor) bottom left/2px .6rem,linear-gradient(currentColor,currentColor) bottom right/.6rem 2px,linear-gradient(currentColor,currentColor) bottom right/2px .6rem; background-repeat:no-repeat; }
.project-caption { display:grid; align-content:start; gap:.6rem; padding:clamp(1rem,2vw,1.6rem); }
.project-caption h3 { font:500 clamp(1.4rem,2.5vw,2.5rem)/1.12 var(--display); letter-spacing:-.045em; overflow-wrap:anywhere; }
.project-caption > span { color:var(--work-muted); font-size:.875rem; line-height:1.6; }

/* Featured gives the lead its own stage and the remaining work an asymmetric rhythm. */
.project-wall[data-scope="featured"] { grid-template-columns:repeat(12,minmax(0,1fr)); gap:clamp(1.7rem,4vw,4rem) clamp(1rem,3vw,3rem); }
.project-wall[data-scope="featured"] > .project-card { grid-column:span 6; }
.project-wall[data-scope="featured"] > .project-card:first-child { grid-column:1/-1; }
.project-wall[data-scope="featured"] > .project-card:first-child .project-link { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(0,1fr); align-items:stretch; background:#141d2a; border-color:#adbedf61; box-shadow:0 1.25rem 3rem #0005; }
.project-wall[data-scope="featured"] > .project-card:first-child .project-art { align-self:center; border:0; }
.project-wall[data-scope="featured"] > .project-card:first-child .project-caption { display:flex; flex-direction:column; justify-content:center; gap:1.2rem; padding:clamp(1.5rem,3.1vw,3rem); border-left:1px solid #b1c6e32b; }
.project-wall[data-scope="featured"] > .project-card:first-child .project-caption h3 { max-width:10ch; font-size:clamp(3rem,5.2vw,5.7rem); line-height:.95; letter-spacing:-.065em; }
.project-wall[data-scope="featured"] > .project-card:first-child .project-caption > span { order:-1; max-width:22ch; color:var(--work-accent); line-height:1.65; }
.project-wall[data-scope="featured"] > .project-card:first-child .project-play { width:3.8rem; height:3.8rem; left:1.2rem; bottom:1.2rem; }
.project-wall[data-scope="featured"] > .project-card:nth-child(2) { grid-column:span 7; }
.project-wall[data-scope="featured"] > .project-card:nth-child(3) { grid-column:span 5; align-self:end; }
.project-wall[data-scope="featured"] > .project-card:nth-child(4) { grid-column:span 5; align-self:center; }
.project-wall[data-scope="featured"] > .project-card:nth-child(5) { grid-column:span 7; }
.project-wall[data-scope="featured"] > .project-card:nth-child(6) { grid-column:span 7; }
.project-wall[data-scope="featured"] > .project-card:nth-child(7) { grid-column:span 5; align-self:center; }
.project-wall[data-scope="featured"] > .project-card[data-work-kind="photography"] { grid-column:1/-1; }
.project-wall[data-scope="featured"] > .project-card[data-work-kind="photography"] .project-link { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); align-items:center; background:#111a24; }
.project-wall[data-scope="featured"] > .project-card[data-work-kind="photography"] .project-caption { padding:clamp(1.75rem,5vw,5rem); }
.project-wall[data-scope="featured"] > .project-card[data-work-kind="photography"] .project-caption h3 { font-size:clamp(2.5rem,4.5vw,4.5rem); max-width:12ch; line-height:1; letter-spacing:-.06em; }

/* The full catalogue keeps every poster's format, with no crop or invented cover art. */
.project-wall[data-scope="films"] { display:block; columns:3; column-gap:clamp(1rem,2.5vw,2rem); }
.project-wall[data-scope="films"] > .project-card { break-inside:avoid; margin-bottom:clamp(1.25rem,2.5vw,2.5rem); }
.project-wall[data-scope="films"] .project-caption { gap:.6rem; padding:1.15rem; }
.project-wall[data-scope="films"] .project-caption h3 { font-size:clamp(1.2rem,1.9vw,1.9rem); line-height:1.15; }
.project-wall[data-scope="films"][data-count="1"] { columns:1; }
.project-wall[data-count="1"] > .project-card:not([hidden]) { max-width:64rem; margin-inline:auto; }
.project-wall[data-scope="films"][data-count="1"] > .project-card[data-project-shape="portrait"] { max-width:30rem; }
.project-wall[data-count="1"] .project-caption h3 { font-size:clamp(1.75rem,3.3vw,3.3rem); }
.project-wall[data-count="2"] { columns:2; }
.work-empty { padding:clamp(2rem,5vw,4rem); border:1px solid var(--work-line); background:#111823; }
.work-empty h3 { font-size:clamp(1.75rem,3vw,2.6rem); }
.work-empty p { margin:1rem 0 1.5rem; color:var(--work-muted); }
.work-empty button { min-height:2.75rem; padding:.7rem 1rem; background:#e1e9f6; color:#0b1321; border:1px solid #e1e9f6; font:700 .875rem/1.4 var(--body); }
.work-library-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem 2rem; padding-top:2rem; margin-top:clamp(2rem,4vw,4rem); border-top:1px solid var(--work-line); }
.work-library-footer .text-link { color:#bdcbe1; font-size:.9375rem; }
.work-library-footer .text-link:hover { color:#fff; }
.home .work-library-footer .button { color:#0a1322; background:#d9e5f7; border:1px solid #d9e5f7; }
.home .work-library-footer .button:hover { background:#fff0d6; border-color:#fff0d6; }
@media(max-width:1100px) {
  .work-browser { grid-template-columns:minmax(0,1fr); gap:1.4rem; }
  .work-browser-top { justify-content:space-between; }
  .work-search { max-width:100%; }
  .project-wall[data-scope="films"] { columns:2; }
  .project-wall[data-scope="featured"] > .project-card:first-child .project-caption { padding:1.5rem; }
}
@media(max-width:900px) {
  .work-library-heading { grid-template-columns:minmax(0,1fr); gap:1.7rem; }
  .work-library-heading > p { max-width:42ch; }
  .project-wall[data-scope="featured"] > .project-card:first-child .project-link { grid-template-columns:minmax(0,1fr); }
  .project-wall[data-scope="featured"] > .project-card:first-child .project-caption { border-left:0; border-top:1px solid var(--work-line); padding:1.6rem; gap:.7rem; }
  .project-wall[data-scope="featured"] > .project-card:first-child .project-caption h3 { max-width:none; font-size:clamp(3rem,7vw,4.5rem); }
}
@media(max-width:800px) { .work-library-bar { top:4.5rem; } }
@media(max-width:680px) {
  .work-library-inner { padding-block:3.8rem; }
  .work-library-heading { margin-bottom:2.5rem; }
  .home .work-library h2 { font-size:clamp(3rem,12vw,5rem); }
  .work-browser-top { gap:.8rem; }
  .work-scopes { width:100%; }
  .work-scopes button { flex:1; }
  .work-library-bar { position:relative; top:0; display:grid; gap:.75rem; margin-bottom:1.5rem; padding-block:.8rem; }
  .work-filters { gap:.2rem; }
  .work-filters button { padding-inline:.65rem; }
  .work-result { text-align:left; }
  .project-wall { grid-template-columns:minmax(0,1fr); gap:1.5rem; }
  .project-wall[data-scope="featured"] { grid-template-columns:minmax(0,1fr); gap:1.5rem; }
  .project-wall[data-scope="featured"] > .project-card:nth-child(n) { grid-column:auto; align-self:start; }
  .project-wall[data-scope="featured"] > .project-card:first-child .project-caption h3 { font-size:clamp(2.7rem,11vw,4rem); }
  .project-wall[data-scope="featured"] > .project-card[data-work-kind="photography"] .project-link { grid-template-columns:minmax(0,1fr); }
  .project-wall[data-scope="featured"] > .project-card[data-work-kind="photography"] .project-caption { padding:1.6rem; }
  .project-wall[data-scope="featured"] > .project-card[data-work-kind="photography"] .project-caption h3 { max-width:none; font-size:2.7rem; }
  .project-wall[data-scope="films"] { columns:2; column-gap:.8rem; }
  .project-wall[data-scope="films"] > .project-card { margin-bottom:.85rem; }
  .project-wall[data-scope="films"] .project-caption { padding:.85rem; gap:.45rem; }
  .project-wall[data-scope="films"] .project-caption h3 { font-size:1rem; line-height:1.2; letter-spacing:-.025em; }
  .project-wall[data-scope="films"] .project-caption > span { font-size:.875rem; line-height:1.45; }
  .project-wall[data-scope="films"] .project-runtime { top:.45rem; right:.45rem; padding:.2rem .4rem; font-size:.75rem; }
  .project-wall[data-scope="films"] .project-play { width:2.5rem; height:2.5rem; left:.55rem; bottom:.55rem; }
  .project-wall[data-count="1"] { columns:1; }
  .project-wall[data-count="1"] .project-caption h3 { font-size:clamp(1.75rem,7vw,2.8rem); }
  .work-library-footer { align-items:start; gap:1.2rem; }
}
@media(prefers-reduced-motion:reduce) { .work-library * { transition:none !important; } }
