/* Squish Pictures — the screening room (/films).
   A dark auditorium inside the light maison: the house fonts, lilac only on italics, and the films do the talking. */

.fm {
  --fm-bg: #140f19;
  --fm-bg-2: #1c1622;
  --fm-ink: #f4ede5;
  --fm-ink-2: #b7adb9;
  --fm-ink-3: #8a7f8d;
  --fm-line: rgba(244, 237, 229, .14);
  --fm-lilac: #cdb9f0;
  --fm-glow: 205, 185, 240;
  background: var(--fm-bg);
  color: var(--fm-ink);
  overflow: clip;
}
.fm h1, .fm h2, .fm h3 { color: var(--fm-ink); font-family: var(--f-display); font-weight: 400; }
.fm h1 em, .fm h2 em { color: var(--fm-lilac); }
.fm a { color: inherit; }
.fm-wrap { width: min(1240px, 100% - 2 * var(--gutter, 24px)); margin-inline: auto; }
.fm-narrow { width: min(760px, 100% - 2 * var(--gutter, 24px)); }
.fm-eyebrow { font: var(--lx-caps); letter-spacing: .32em; text-transform: uppercase; color: var(--fm-ink-2); margin: 0 0 18px; }

/* ---------- Premiere ---------- */
.fm-premiere { position: relative; isolation: isolate; min-height: min(calc(100svh - 80px), 980px); display: grid; align-items: center; padding: clamp(56px, 8vw, 110px) 0; }
.fm-premiere-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.fm-premiere-loop { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(34px) saturate(1.25) brightness(.42); transform: scale(1.06); }
.fm-premiere::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 70% at 72% 50%, rgba(var(--fm-glow), .22), transparent 70%),
    radial-gradient(120% 90% at 50% 50%, transparent 40%, rgba(10, 7, 13, .85) 100%),
    linear-gradient(180deg, rgba(20, 15, 25, .55), transparent 18%, transparent 78%, var(--fm-bg)); }
.fm-grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.fm-premiere-inner { width: min(1240px, 100% - 2 * var(--gutter, 24px)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.fm-studio { display: flex; align-items: center; gap: 14px; font: var(--lx-caps); letter-spacing: .4em; text-transform: uppercase; color: var(--fm-ink-2); margin: 0 0 clamp(36px, 6vw, 72px);
  opacity: 0; animation: fm-rise 1.6s var(--ease) .15s forwards; }
.fm-studio-mark { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--fm-line); background: radial-gradient(circle at 35% 35%, #f3d3d4 0 22%, transparent 23%), radial-gradient(circle at 65% 62%, var(--fm-lilac) 0 18%, transparent 19%); }
.fm-premiere .fm-eyebrow { color: var(--fm-lilac); opacity: 0; animation: fm-rise 1.4s var(--ease) .5s forwards; }
.fm-premiere h1 { font-size: clamp(3.4rem, 8.4vw, 8rem); line-height: .9; letter-spacing: -.015em; margin: 0 0 28px; text-wrap: balance;
  opacity: 0; animation: fm-title 2s var(--ease) .65s forwards; }
.fm-premiere h1 em { display: block; }
.fm-logline { max-width: 34ch; font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.7; color: var(--fm-ink-2); margin: 0 0 26px;
  opacity: 0; animation: fm-rise 1.4s var(--ease) 1.05s forwards; }
.fm-meta { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 38px; font: var(--lx-caps); letter-spacing: .24em; text-transform: uppercase; color: var(--fm-ink-3);
  opacity: 0; animation: fm-rise 1.4s var(--ease) 1.2s forwards; }
.fm-meta span + span::before { content: "·"; margin: 0 14px; color: var(--fm-ink-3); }
.fm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; opacity: 0; animation: fm-rise 1.4s var(--ease) 1.35s forwards; }

.fm-play { display: inline-flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 30px 0 10px; border: 0; border-radius: 999px; background: var(--fm-ink); color: var(--fm-bg) !important; font: var(--lx-caps); letter-spacing: .24em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 0 rgba(var(--fm-glow), .0); transition: box-shadow .6s var(--ease), transform .6s var(--ease), background .4s var(--ease); }
.fm-play:hover { box-shadow: 0 0 46px 4px rgba(var(--fm-glow), .38); transform: translateY(-1px); }
.fm-play:focus-visible, .fm-ghost:focus-visible, .fm-poster:focus-visible, .fm-screen:focus-visible, .fm-theatre button:focus-visible { outline: 2px solid var(--fm-lilac); outline-offset: 4px; }
.fm-play-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--fm-bg); color: var(--fm-ink); }
.fm-play-ico svg { width: 16px; height: 16px; margin-left: 2px; }
.fm-play-light { padding: 0 32px; }
.fm-ghost { font: var(--lx-caps); letter-spacing: .24em; text-transform: uppercase; text-decoration: none; color: var(--fm-ink-2) !important; border-bottom: 1px solid var(--fm-line); padding-bottom: 6px; transition: color .4s, border-color .4s; }
.fm-ghost:hover { color: var(--fm-ink) !important; border-color: var(--fm-ink); }

/* the lit screen */
.fm-screen { position: relative; justify-self: center; width: min(100%, 400px); aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: pointer; background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 120px -20px rgba(var(--fm-glow), .45), 0 30px 60px -30px #000;
  opacity: 0; animation: fm-screen 2.2s var(--ease) .35s forwards; }
.fm-screen-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease), filter .8s; }
.fm-screen:hover .fm-screen-loop { transform: scale(1.035); filter: brightness(.9); }
.fm-screen img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.6s var(--ease), filter .8s; }
.fm-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%); transform: translateX(-120%); transition: transform 1.4s var(--ease); }
.fm-screen:hover img { transform: scale(1.035); filter: brightness(.9); }
.fm-screen:hover::after { transform: translateX(120%); }
.fm-screen-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; color: #fff;
  background: rgba(20, 15, 25, .32); border: 1px solid rgba(255, 255, 255, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .6s var(--ease), background .4s; }
.fm-screen-play svg { width: 28px; height: 28px; margin-left: 4px; }
.fm-screen:hover .fm-screen-play { transform: scale(1.08); background: rgba(20, 15, 25, .5); }

@keyframes fm-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fm-title { from { opacity: 0; transform: translateY(26px); filter: blur(10px); letter-spacing: .02em; } to { opacity: 1; transform: none; filter: none; } }
@keyframes fm-screen { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Programme ---------- */
.fm-programme { padding: clamp(80px, 10vw, 150px) 0 clamp(60px, 8vw, 120px); }
.fm-head { max-width: 640px; margin: 0 0 clamp(44px, 6vw, 72px); }
.fm-head h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1; margin: 0 0 18px; }
.fm-head p:not(.fm-eyebrow) { color: var(--fm-ink-2); line-height: 1.7; margin: 0; }
.fm-reel { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(20px, 3vw, 40px); }
.fm-card { position: relative; scroll-margin-top: 110px; }
.fm-poster { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--fm-bg-2); cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 60px -36px #000; transition: transform .9s var(--ease), box-shadow .9s var(--ease); }
.fm-poster img, .fm-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-poster img { transition: transform 1.6s var(--ease), filter .9s; }
.fm-preview { opacity: 0; transition: opacity .7s var(--ease); }
.fm-poster.is-previewing .fm-preview { opacity: 1; }
.fm-poster::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(10, 7, 13, .55)); }
.fm-poster:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 90px -30px rgba(var(--fm-glow), .5); }
.fm-poster:hover img { transform: scale(1.04); }
.fm-badge { position: absolute; z-index: 1; left: 14px; top: 14px; padding: 7px 12px; border-radius: 999px; background: rgba(20, 15, 25, .55); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font: var(--lx-caps); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fm-poster-play { position: absolute; z-index: 1; right: 14px; bottom: 14px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--fm-bg); background: var(--fm-ink); transform: scale(.85); opacity: .9; transition: transform .6s var(--ease), opacity .4s; }
.fm-poster-play svg { width: 18px; height: 18px; margin-left: 2px; }
.fm-poster:hover .fm-poster-play, .fm-poster:focus-visible .fm-poster-play { transform: scale(1); opacity: 1; }
.fm-no { font: var(--lx-caps); letter-spacing: .24em; text-transform: uppercase; color: var(--fm-ink-3); margin: 22px 0 8px; }
.fm-card h3 { font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.1; margin: 0 0 8px; }
.fm-card-log { color: var(--fm-ink-2); line-height: 1.6; margin: 0; max-width: 34ch; }

/* ---------- Between takes ---------- */
.fm-takes { padding: clamp(60px, 8vw, 110px) 0; background: linear-gradient(180deg, var(--fm-bg), var(--fm-bg-2) 40%, var(--fm-bg)); border-top: 1px solid var(--fm-line); border-bottom: 1px solid var(--fm-line); }
.fm-takes-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.fm-take { margin: 0; }
.fm-take video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 10px; background: var(--fm-bg-2); }
.fm-take figcaption { margin-top: 14px; font-family: var(--f-display); font-style: italic; font-size: 1.2rem; color: var(--fm-ink-2); }

/* ---------- Closing credits ---------- */
.fm-credits { padding: clamp(90px, 12vw, 170px) 0; text-align: center; background: radial-gradient(50% 60% at 50% 40%, rgba(var(--fm-glow), .12), transparent 70%); }
.fm-billing { font-family: var(--f-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 clamp(36px, 5vw, 60px); }
.fm-billing a { text-decoration: none; border-bottom: 1px solid var(--fm-line); transition: border-color .4s; }
.fm-billing a:hover { border-color: var(--fm-ink); }
.fm-billing span { font-style: italic; color: var(--fm-lilac); margin: 0 .3em; }
.fm-credits h2 { font-size: clamp(2.6rem, 5.6vw, 5rem); line-height: 1; margin: 0 0 22px; }
.fm-credits-copy { color: var(--fm-ink-2); line-height: 1.7; margin: 0 auto 36px; max-width: 42ch; }
.fm-fineprint { margin: clamp(56px, 7vw, 90px) auto 0; max-width: 60ch; font-size: .82rem; line-height: 1.7; color: var(--fm-ink-3); }

/* ---------- The theatre ---------- */
.fm-theatre { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--fm-ink, #f4ede5); overflow: hidden;
  --fm-ink: #f4ede5; --fm-ink-2: #b7adb9; --fm-ink-3: #8a7f8d; --fm-bg: #140f19; --fm-lilac: #cdb9f0; --fm-line: rgba(244, 237, 229, .14); --fm-glow: 205, 185, 240; }
.fm-theatre::backdrop { background: rgba(6, 4, 8, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.fm-theatre[open] { animation: fm-lights 0.7s var(--ease) both; }
.fm-theatre[open]::backdrop { animation: fm-fade .7s ease both; }
@keyframes fm-lights { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fm-fade { from { opacity: 0; } to { opacity: 1; } }
.fm-theatre-stage { position: relative; height: 100%; display: grid; grid-template-columns: 72px auto minmax(240px, 340px) 72px; justify-content: center; align-items: center; gap: clamp(24px, 4vw, 64px); padding: 28px; }
.fm-theatre-screen { height: min(88dvh, 1000px); aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 0 140px -10px rgba(var(--fm-glow), .35); }
.fm-theatre-screen video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.fm-theatre-info h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.05; margin: 0 0 16px; color: var(--fm-ink); }
.fm-theatre-info p { color: var(--fm-ink-2); line-height: 1.7; margin: 0 0 18px; }
.fm-theatre-info .fm-eyebrow { color: var(--fm-lilac); font: var(--lx-caps); letter-spacing: .28em; text-transform: uppercase; }
.fm-theatre-count { font: var(--lx-caps); letter-spacing: .24em; text-transform: uppercase; color: var(--fm-ink-3) !important; margin-bottom: 30px !important; }
.fm-theatre .fm-play { color: var(--fm-bg) !important; }
.fm-x, .fm-nav { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 1px solid var(--fm-line); background: rgba(255, 255, 255, .04); color: var(--fm-ink); cursor: pointer; transition: background .4s, border-color .4s; }
.fm-x:hover, .fm-nav:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }
.fm-x svg, .fm-nav svg { width: 22px; height: 22px; }
.fm-x { position: absolute; top: 22px; right: 22px; z-index: 2; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .fm-theatre-stage { grid-template-columns: auto minmax(220px, 300px); padding-inline: 90px; }
  .fm-theatre-screen { height: min(84dvh, 900px); }
  .fm-nav { position: absolute; z-index: 2; top: 50%; translate: 0 -50%; }
  .fm-prev { left: 18px; } .fm-next { right: 18px; }
}
@media (max-width: 900px) {
  .fm-premiere { min-height: 0; padding-top: 40px; }
  .fm-premiere-inner { grid-template-columns: 1fr; }
  .fm-screen { width: min(78vw, 360px); order: -1; }
  .fm-premiere-copy { text-align: center; }
  .fm-studio, .fm-meta, .fm-actions { justify-content: center; }
  .fm-logline { margin-inline: auto; }
  .fm-reel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .fm-theatre-stage { display: flex; flex-direction: column; justify-content: flex-start; gap: 16px; padding: 64px 16px 24px; overflow-y: auto; }
  .fm-theatre-screen { height: auto; width: min(100%, calc((100dvh - 230px) * 9 / 16)); flex: none; }
  .fm-theatre-info { text-align: center; width: 100%; }
  .fm-theatre-info p:not(.fm-eyebrow):not(.fm-theatre-count) { display: none; }
  .fm-theatre-info h2 { font-size: 1.7rem; margin-bottom: 6px; }
  .fm-theatre-count { margin-bottom: 14px !important; }
  .fm-theatre-info .fm-play { display: none; }
  .fm-nav { top: 14px; translate: none; width: 44px; height: 44px; }
  .fm-prev { left: 14px; } .fm-next { left: 66px; right: auto; }
  .fm-x { top: 14px; right: 14px; width: 44px; height: 44px; }
  /* reel becomes a swipeable shelf */
  .fm-reel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter, 16px)); padding: 0 var(--gutter, 16px) 8px; scrollbar-width: none; }
  .fm-reel::-webkit-scrollbar { display: none; }
  .fm-card { flex: 0 0 72%; scroll-snap-align: center; }
  .fm-takes-row { grid-template-columns: 1fr 1fr; }
  .fm-take:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fm-studio, .fm-premiere .fm-eyebrow, .fm-premiere h1, .fm-logline, .fm-meta, .fm-actions, .fm-screen { animation: none; opacity: 1; }
  .fm-theatre[open], .fm-theatre[open]::backdrop { animation: none; }
  .fm-poster, .fm-poster img, .fm-screen img, .fm-screen::after { transition: none; }
  .fm-poster:hover { transform: none; }
}
.fm-card.is-linked .fm-poster { box-shadow: 0 0 0 2px var(--fm-lilac), 0 40px 90px -30px rgba(var(--fm-glow), .6); }
