/* V24.8 — Films page: cinematic map of where the films were made.
   The section stays cinematic (dark) in both themes, like a screening room. */
.fm-map{margin-top:clamp(56px,7vw,100px);margin-bottom:clamp(40px,5vw,72px)}
.fm-stage{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);grid-template-areas:"copy map" "chips chips";align-items:end;gap:18px 30px;min-height:540px;padding:clamp(24px,3vw,40px);border:1px solid #ffffff14;border-radius:30px;overflow:hidden;background:#080d14;color:#eff4f7}
.fm-bg{position:absolute;inset:0;z-index:-2;overflow:hidden}
.fm-bg img,.fm-bg video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.1s cubic-bezier(.22,1,.36,1)}
.fm-bg img.on{opacity:1;animation:fm-drift 16s linear both}
.fm-bg video.on{opacity:1}
@keyframes fm-drift{from{transform:scale(1.07)}to{transform:scale(1)}}
.fm-stage::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(42% 58% at 75% 44%,rgba(8,13,20,.6),rgba(8,13,20,0) 100%),linear-gradient(90deg,rgba(8,13,20,.94) 0%,rgba(8,13,20,.78) 38%,rgba(8,13,20,.32) 70%,rgba(8,13,20,.58) 100%),linear-gradient(0deg,rgba(8,13,20,.92) 0%,rgba(8,13,20,0) 46%),linear-gradient(180deg,rgba(8,13,20,.55) 0%,rgba(8,13,20,0) 22%)}
html[dir=rtl] .fm-stage::before{background:linear-gradient(270deg,rgba(8,13,20,.94) 0%,rgba(8,13,20,.78) 38%,rgba(8,13,20,.32) 70%,rgba(8,13,20,.58) 100%),linear-gradient(0deg,rgba(8,13,20,.92) 0%,rgba(8,13,20,0) 46%),linear-gradient(180deg,rgba(8,13,20,.55) 0%,rgba(8,13,20,0) 22%)}

.fm-copy{grid-area:copy;display:grid;align-content:end;gap:12px;min-width:0}
.fm-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px}
.fm-top .eyebrow{margin:0;color:#8fd0f2}
.fm-stat{font:12px/1.4 monospace;color:#c9dde9}
.fm-count{font:12px monospace;color:#bfe6fb;letter-spacing:.04em}
.fm-name{margin:0;font-size:clamp(42px,5.2vw,76px);font-weight:600;line-height:1;letter-spacing:-.04em;color:#fff}
.fm-line{margin:0;max-width:470px;font-size:15px;line-height:1.6;color:#d5e2ea}
.fm-films{display:flex;gap:10px;margin-top:6px;padding:4px 2px 6px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.fm-films::-webkit-scrollbar{display:none}
.fm-film{flex:0 0 238px;scroll-snap-align:start;display:grid;grid-template-columns:78px 1fr;gap:11px;align-items:center;padding:8px;border:1px solid #ffffff1f;border-radius:15px;background:rgba(8,13,20,.55);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#fff;font:inherit;text-align:start;cursor:pointer;transition:border-color .3s,background .3s,transform .35s cubic-bezier(.22,1,.36,1)}
.fm-film:hover,.fm-film:focus-visible,.fm-film.on{border-color:#56b5e8;background:rgba(16,38,58,.72);outline:0}
.fm-film:hover{transform:translateY(-2px)}
.fm-thumb{position:relative;display:block;width:78px;height:52px;border-radius:10px;overflow:hidden;background:#0c1622}
.fm-thumb img{width:100%;height:100%;object-fit:cover}
.fm-thumb b{position:absolute;inset:0;display:grid;place-items:center;background:rgba(5,9,14,.25);transition:background .3s}
.fm-thumb b svg{width:22px;height:22px;padding:5px;border-radius:50%;background:#ffffffeb;color:#0d2a3d;box-sizing:content-box;transform:scale(.85);transition:transform .3s}
.fm-film:hover .fm-thumb b svg,.fm-film.on .fm-thumb b svg{transform:scale(1)}
.fm-film strong{display:block;font-size:13.5px;font-weight:600;line-height:1.3}
.fm-film small{display:block;margin-top:4px;font:11px monospace;color:#9fb4c3}

.fm-mapbox{grid-area:map;align-self:center;min-width:0}
.fm-svg{display:block;width:100%;height:auto;overflow:visible}
.fm-dot{fill:#ffffff40;opacity:0;transition:opacity .6s cubic-bezier(.22,1,.36,1) var(--d,0s),fill .6s}
.fm-map.is-in .fm-dot{opacity:.75}
.fm-dot.hot{fill:#8fd0f2;opacity:1!important}
.fm-coast{fill:none;stroke:#8fd0f259;stroke-width:1.2;stroke-linejoin:round;stroke-dasharray:var(--len);stroke-dashoffset:var(--len);transition:stroke-dashoffset 2.4s cubic-bezier(.22,1,.36,1)}
.fm-map.is-in .fm-coast{stroke-dashoffset:0}
.fm-arc{fill:none;stroke:#8fd0f2;stroke-width:1.8;stroke-dasharray:4 6;animation:fm-flow 1.2s linear infinite}
@keyframes fm-flow{to{stroke-dashoffset:-20}}
.fm-isle{fill:#ffffff55;font-size:12px;font-weight:600}
.fm-pin{cursor:pointer;outline:0}
.fm-halo{fill:#8fd0f2;opacity:0;transform-box:fill-box;transform-origin:center}
.fm-pin.on .fm-halo{animation:fm-halo 2.2s cubic-bezier(.22,1,.36,1) infinite}
@keyframes fm-halo{0%{transform:scale(.5);opacity:.6}100%{transform:scale(3.3);opacity:0}}
.fm-core{fill:#e8f4fb;stroke:#080d14;stroke-width:2;transition:fill .3s}
.fm-pin.on .fm-core{fill:#e44548}
.fm-label{fill:#c9dde9;font-size:14px;font-weight:700;letter-spacing:.08em;paint-order:stroke;stroke:#080d14aa;stroke-width:3px;transition:fill .3s}
.fm-pin.on .fm-label,.fm-pin:hover .fm-label,.fm-pin:focus-visible .fm-label{fill:#fff}
.fm-badge circle{fill:#56b5e8;stroke:#080d14;stroke-width:2}
.fm-badge text{fill:#082031;font-size:11px;font-weight:800;text-anchor:middle}
.fm-pin.on .fm-badge circle{fill:#fff}
.fm-map.is-more .fm-dot{opacity:.38}
.fm-map.is-more .fm-pin{opacity:.55}

.fm-chips{grid-area:chips;display:flex;flex-wrap:wrap;gap:6px}
.fm-chips button{position:relative;overflow:hidden;display:inline-flex;align-items:center;gap:7px;padding:8px 14px;border:1px solid #ffffff26;border-radius:30px;background:rgba(8,13,20,.45);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#d5e2ea;font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;white-space:nowrap;transition:background .3s,color .3s,border-color .3s}
.fm-chips button span{font:11px monospace;opacity:.65}
.fm-chips button:hover{border-color:#8fd0f2}
.fm-chips button[aria-pressed=true]{background:#e8f4fb;color:#0f2333;border-color:transparent}
.fm-chips button i{position:absolute;left:0;bottom:0;height:2px;width:0;background:#56b5e8}
.fm-chips button[aria-pressed=true] i{animation:fm-prog var(--fm-tour,6.5s) linear forwards}
.fm-map.is-paused .fm-chips button i{animation-play-state:paused}
@keyframes fm-prog{to{width:100%}}
.fm-disc{margin:10px 4px 0;font-size:11px;color:#5d7283}

/* Film row as a slider: drag with the mouse, arrows at the ends, swipe on touch */
.fm-row{position:relative;min-width:0}
.fm-films{cursor:grab;scroll-behavior:auto}
.fm-films.is-dragging{cursor:grabbing;scroll-snap-type:none;user-select:none}
.fm-films.is-dragging .fm-film{pointer-events:none}
.fm-films:focus-visible{outline:2px solid #8fd0f2;outline-offset:4px;border-radius:16px}
.fm-film img{-webkit-user-drag:none;user-select:none}
.fm-film.is-vertical .fm-thumb img{object-position:50% 35%}
.fm-arrow{position:absolute;top:50%;z-index:2;display:none;place-items:center;width:40px;height:40px;margin-top:-20px;padding:0;border:1px solid #ffffff33;border-radius:50%;background:rgba(8,13,20,.78);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#fff;cursor:pointer;transition:opacity .3s,background .3s,border-color .3s}
.fm-arrow svg{width:18px;height:18px}
.fm-arrow[data-dir="-1"]{left:-12px}
.fm-arrow[data-dir="1"]{right:-12px}
.fm-arrow:hover{background:#e8f4fb;color:#0f2333;border-color:transparent}
.fm-arrow:disabled{opacity:0;pointer-events:none}
.fm-map.has-overflow .fm-arrow{display:grid}
html[dir=rtl] .fm-arrow svg{transform:scaleX(-1)}
.fm-sep{flex:none;align-self:center;width:1px;height:22px;margin:0 6px;background:#ffffff2e}
.fm-chips button.is-collection{border-style:dashed}
.fm-chips button.is-collection[aria-pressed=true]{border-style:solid}
.fm-bg img.is-vertical,.fm-bg video.is-vertical{object-position:50% 30%}

/* The site's film window, for the films stored on the site */
#video-embed .fm-player{display:block;width:100%;max-height:78vh;aspect-ratio:16/9;object-fit:contain;background:#000;border-radius:inherit}
#video-embed .fm-player.is-vertical{width:auto;max-width:100%;height:min(78vh,760px);aspect-ratio:9/16;margin:0 auto}

/* Film track and library: reels keep their vertical frame over a soft backdrop */
.film-cover>img.film-blur,.library-poster>img.film-blur{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;filter:blur(18px) brightness(.5);transform:scale(1.2)}
.film-cover>img.is-vertical,.library-poster>img.is-vertical{position:relative;z-index:1;object-fit:contain}
.film-text button.text-link{padding:8px 0;border:0;border-bottom:1px solid currentColor;background:none;color:inherit;font-family:inherit;cursor:pointer}

@media (prefers-reduced-motion: reduce){.fm-bg img.on{animation:none}.fm-arc{animation:none}.fm-pin.on .fm-halo{animation:none}}
@media (max-width:900px){
  .fm-stage{grid-template-columns:1fr;grid-template-areas:"map" "copy" "chips";gap:14px;min-height:0;padding:16px 16px 18px;border-radius:24px}
  .fm-stage::before,html[dir=rtl] .fm-stage::before{background:linear-gradient(180deg,rgba(8,13,20,.34) 0%,rgba(8,13,20,.5) 30%,rgba(8,13,20,.88) 52%,rgba(8,13,20,.95) 100%)}
  .fm-mapbox{margin:0 -4px}
  .fm-label{font-size:20px}
  .fm-name{font-size:40px}
  .fm-line{font-size:14px}
  .fm-film{flex-basis:220px;grid-template-columns:64px 1fr}
  .fm-thumb{width:64px;height:44px}
  .fm-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:0 16px}
  .fm-chips::-webkit-scrollbar{display:none}
  .fm-chips button{flex:none}
  .fm-arrow{display:none!important}
  .fm-films{cursor:auto}
}

/* Film window title: readable on the dark window in both themes */
.video-dialog .video-heading h2{color:#eff4f7}


/* Home 3D collection: each photo sits in its own inner frame with a hidden bleed larger than the
   parallax travel (12px) and hover zoom, so the frame background can never show at an edge. */
.v10-panel .v10-media{position:absolute;inset:8px;overflow:hidden;border-radius:6px;background:#0a1a27}
.v10-panel .v10-media img{position:absolute;top:-16px;left:-16px;width:calc(100% + 32px);height:calc(100% + 32px);max-width:none;border-radius:0;object-fit:cover}
.v10-panel:after{inset:8px}

/* V24.11 — smoother 3D deck on desktop: no filter layer hint on every card, and the drag
   pull eases instead of snapping back after each frame change. */
@media (hover:hover) and (pointer:fine){
  .v10-panel{will-change:transform,opacity}
  .v10-stage.is-dragging .v10-deck{transition:translate .32s cubic-bezier(.22,1,.36,1),transform .32s cubic-bezier(.22,1,.36,1)}
  .v10-stage.is-dragging .v10-panel{transition:transform .55s cubic-bezier(.22,1,.36,1),opacity .4s ease,filter .4s ease,box-shadow .4s ease}
}