/* ══ featured installation (.fx) ══════════════════════════════════════════════════════════════
   One film at its own 16:9 frame, never cropped, never shown wider than its 1280px source. A soft blue
   spill behind it comes up when the film starts, the way the lights do on site. Full screen on request.
   Used on the homepage (#projects) and the gallery (#featured). Photos for the installation go in .fx-ph
   on gallery.html; the row stays hidden while it is empty. */
.fx{position:relative;margin:0 0 clamp(2.8rem,6.4vw,5rem)}
.fx-stage{position:relative;max-width:min(1280px, calc(80svh * 16 / 9));margin-inline:auto}
.fx-glow{position:absolute;z-index:0;left:5%;right:5%;top:-9%;bottom:-13%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(34,62,255,.5),rgba(34,62,255,.16) 60%,transparent);
  filter:blur(38px);opacity:0;transform:scale(.94);transition:opacity 1.6s var(--e),transform 1.6s var(--e)}
.fx-film.on~.fx-glow,.fx-stage.on .fx-glow{opacity:.85;transform:none}
.fx-film{position:relative;z-index:1;display:block;width:100%;aspect-ratio:1280/720;overflow:hidden;
  border-radius:12px;background:var(--ink);box-shadow:inset 0 0 0 1px var(--line);cursor:zoom-in;line-height:0}
.fx-film video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#000;
  opacity:0;transition:opacity 1.1s var(--e)}
.fx-film.go video{opacity:1}
.fx-film noscript video{opacity:1}

/* full screen pill: same glass as the site's other film buttons */
.fx-fs,.fx-x{position:absolute;z-index:3;display:inline-flex;align-items:center;justify-content:center;gap:.6em;
  border:0;border-radius:999px;font:inherit;color:#fff;cursor:pointer;
  background:rgba(0,0,0,.62);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.32);transition:background .3s,box-shadow .3s}
.fx-fs{right:clamp(10px,1.4vw,20px);bottom:clamp(10px,1.4vw,20px);height:44px;padding:0 1.15em 0 .95em;
  font-size:.64rem;font-weight:660;font-stretch:112%;letter-spacing:.2em;text-transform:uppercase}
.fx-fs svg,.fx-x svg{width:16px;height:16px;flex:none;fill:none;stroke:var(--amber);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fx-fs:hover,.fx-x:hover{background:rgba(0,0,0,.72);box-shadow:inset 0 0 0 1px rgba(198,166,110,.7)}
/* two tone, so the ring reads over the bright fire pit frames too */
.fx-fs:focus-visible,.fx-x:focus-visible{outline:2px solid #fff;outline-offset:3px;box-shadow:0 0 0 6px rgba(0,0,0,.55),inset 0 0 0 1px rgba(255,255,255,.32)}
.fx-x{display:none;top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));width:48px;height:48px}
.fx-x svg{width:18px;height:18px;stroke:#fff}

/* in full screen: the whole frame on black, letterboxed, with a close button */
.fx-film:fullscreen{width:100%;height:100%;max-width:none;aspect-ratio:auto;border-radius:0;background:#000;cursor:auto;box-shadow:none}
.fx-film:fullscreen video{object-fit:contain}
.fx-film:fullscreen .fx-fs{display:none}
.fx-film:fullscreen .fx-x{display:inline-flex}
.fx-film:-webkit-full-screen{width:100%;height:100%;max-width:none;border-radius:0;background:#000;cursor:auto;box-shadow:none}
.fx-film:-webkit-full-screen video{object-fit:contain}
.fx-film:-webkit-full-screen .fx-fs{display:none}
.fx-film:-webkit-full-screen .fx-x{display:inline-flex}

/* the words, under the film */
.fx-copy{position:relative;z-index:1;display:grid;gap:.9rem 3.2rem;max-width:min(1280px, calc(80svh * 16 / 9));
  margin:clamp(1.3rem,2.8vw,2.2rem) auto 0}
.fx-eb{display:flex;align-items:center;gap:.8em;margin:0;font-size:.64rem;font-weight:660;font-stretch:116%;
  letter-spacing:.26em;text-transform:uppercase;line-height:1.4;color:var(--amber)}
.fx-eb::before{content:"";width:28px;height:1px;background:currentColor;flex:none}
.fx-t{margin:.6rem 0 0;font-size:clamp(1.65rem,3.7vw,2.7rem);font-weight:320;font-stretch:100%;line-height:1.04;
  letter-spacing:-.032em;text-transform:none;color:var(--wh);text-wrap:balance;max-width:18ch}
.fx-d{margin:0;color:var(--gr);font-size:.98rem;line-height:1.62;max-width:54ch;text-wrap:pretty}
.fx-act{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem 1.8rem;margin-top:1rem}
.fx-more{display:inline-flex;align-items:center;gap:.7em;min-height:44px;color:var(--wh);font-size:.7rem;font-weight:660;
  font-stretch:112%;letter-spacing:.2em;text-transform:uppercase}
.fx-more i{font-style:normal;color:var(--amber);font-size:1rem;letter-spacing:0;transition:transform .3s var(--e)}
.fx-more:hover i{transform:translateX(5px)}
@media(min-width:860px){.fx-copy{grid-template-columns:minmax(0,5fr) minmax(0,6fr);align-items:end}}

/* photos from the same installation (gallery.html); every image keeps its own ratio */
.fx-ph{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(10px,1.4vw,18px);
  max-width:min(1280px, calc(80svh * 16 / 9));margin:clamp(1.6rem,3.4vw,2.6rem) auto 0;align-items:start}
.fx-ph:empty{display:none}
.fx-ph figure{margin:0}
.fx-ph img{display:block;width:100%;height:auto;border-radius:8px;background:var(--ink)}
.fx-ph figcaption{font-size:.72rem;letter-spacing:.05em;color:var(--gr3);padding:.5rem 2px 0;line-height:1.45}
@media(min-width:860px){.fx-ph{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* phones: the film runs edge to edge, as large as the screen allows */
@media(max-width:599px){
  .fx-stage{margin-inline:calc(-1 * var(--pad))}
  .fx-film{border-radius:0;box-shadow:none}
  .fx-glow{left:0;right:0}
  .fx-fs{width:44px;padding:0;gap:0}
  .fx-fs span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .fx-fs svg{stroke:#fff}   /* icon only on phones: white clears 3:1 over every frame */
}
@media(prefers-reduced-motion:reduce){.fx-glow,.fx-film video,.fx-more i{transition:none}}
.fxs .fx{margin-bottom:0}
/* desktop: share the left edge of the page's other content */
@media(min-width:860px){.fx-stage,.fx-copy,.fx-ph{margin-inline:0}}
/* gallery: land below the sticky header when linked to #featured */
.fxs{scroll-margin-top:73px}
@media(min-width:860px){.fxs{scroll-margin-top:89px}}
