/* film mode (?film=1, desktop ≥ 900 px): 06 → 07 → 08 as one continuous film over the live world. Nothing here applies without html.zx-film. */
@media (min-width: 900px) {
  html.zx-film #s05 { min-height: 170vh; }
  html.zx-film #s05 > .in { opacity: 0 !important; pointer-events: none !important; }
  html.zx-film #s06 { min-height: 170vh; }
  html.zx-film #s07 { min-height: 170vh; }
  html.zx-film #s08 { padding-top: 230vh; }
  html.zx-film #s06 > .in, html.zx-film #s07 > .pinwrap { opacity: 0 !important; pointer-events: none !important; }
  html.zx-film #s08 .top { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0 !important; }
  html.zx-film #s08 > .in { grid-template-columns: minmax(0, 1fr) !important; justify-items: center !important; }
  html.zx-film #s08 .bottom { grid-column: 1 / -1 !important; justify-self: center !important; max-width: 820px; margin-left: auto; margin-right: auto; }
  html.zx-film .zfilm { position: fixed; inset: 0; z-index: 3; pointer-events: none; visibility: hidden; }
  html.zx-film .zfilm.on { visibility: visible; }
  html.zx-film .zfilm:not(.on) * { visibility: hidden !important; }
  .zfilm .fl-h { position: absolute; left: 0; width: 100%; text-align: center; visibility: hidden; }
  .zfilm .fl-k { font: 500 15px/1 "Golos Text", system-ui, sans-serif; letter-spacing: .32em; text-transform: uppercase; color: rgba(242, 239, 232, .86); margin-bottom: 30px;
    text-shadow: 0 0 28px rgba(4, 7, 12, .95), 0 0 8px rgba(4, 7, 12, .9); }
  .zfilm .fl-k b { color: #3fe0c5; font-weight: 600; }
  .zfilm .fl-t { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 400; line-height: 1.04; letter-spacing: -.012em; color: #f2efe8;
    text-shadow: 0 0 28px rgba(4, 7, 12, .95), 0 0 8px rgba(4, 7, 12, .9); }
  .zfilm .fl-t i { font-family: "Instrument Serif", Georgia, serif; font-style: italic; color: #3fe0c5; letter-spacing: 0; }
  .zfilm .w { display: inline-block; will-change: transform, filter, opacity; }
  .zfilm .fl-trio { position: absolute; top: 75.2vh; width: 380px; margin-left: -190px; text-align: center; visibility: hidden; }
  .zfilm .fl-trio .fl-k { display: block; margin: 0; }
  .zfilm .fl-trio .nm { display: block; height: 1.12em; margin-top: 16px; font: 400 60px/1.05 "Playfair Display", Georgia, serif; color: #f2efe8; text-shadow: 0 0 34px rgba(4, 7, 12, 1), 0 0 14px rgba(4, 7, 12, .95), 0 0 4px rgba(4, 7, 12, .9); }
  .zfilm .fl-trio .nm i { line-height: 1; }
  .zfilm .fl-trio .nm i { font-family: "Instrument Serif", Georgia, serif; font-style: italic; color: #3fe0c5; }
  .zfilm .fl-trio .ln1 { display: block; margin-top: 16px; font: 400 20px/1.4 "Golos Text", system-ui, sans-serif; color: rgba(236, 240, 238, .96); white-space: nowrap;
    text-shadow: 0 0 30px rgba(4, 7, 12, 1), 0 0 12px rgba(4, 7, 12, .95), 0 0 3px rgba(4, 7, 12, .9); }
  .zfilm .fl-num { position: absolute; top: 34vh; width: 440px; margin-left: -220px; text-align: center; visibility: hidden; }
  .zfilm .fl-num .fl-k { display: block; margin: 0 0 18px; font-size: 17px; color: #f2efe8; }
  .zfilm .fl-num .nn { display: block; font: 400 200px/1 "Playfair Display", Georgia, serif; letter-spacing: -.02em; font-variant-numeric: lining-nums;
    background: linear-gradient(180deg, #ffffff 0%, #e9fffa 38%, #8ff3de 72%, #3fe0c5 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 26px rgba(4, 7, 12, .85)); }
  .zfilm .fl-num .nn small { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: .42em; margin-left: .08em; }
  .zfilm .fl-num .ln1 { display: block; margin-top: 18px; font: 400 24px/1.4 "Golos Text", system-ui, sans-serif; color: #f2efe8; white-space: nowrap;
    text-shadow: 0 0 28px rgba(4, 7, 12, .95), 0 0 8px rgba(4, 7, 12, .9); }
  .zfilm svg.fl-rings { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.zfilm svg.fl-rings-glow { filter: blur(5px); will-change: transform; }
  .zfilm .ring-t { font-family: "Playfair Display", Georgia, serif; fill: #f2efe8; }
  .zfilm .ring-t tspan.k { font-family: "Golos Text", system-ui, sans-serif; font-size: 17px; letter-spacing: .26em; fill: rgba(242, 239, 232, .86); }
  .zfilm .fl-night { position: absolute; inset: 0; opacity: 0;
    background: radial-gradient(ellipse 62vw 7vh at 50% 52%, rgba(52, 80, 170, .5), transparent 70%), radial-gradient(ellipse 38vw 40vh at 50% 46%, rgba(120, 150, 220, .14), transparent 72%), linear-gradient(to bottom, rgba(3, 5, 12, 0) 0, rgba(9, 14, 34, .55) 50%, rgba(3, 6, 14, .2) 100%); }
  .zfilm svg.fl-hz { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
  /* 08 brief in film mode: one centred, symmetric column in the film's type */
  html.zx-film #sf-home .sf-head { justify-content: center; min-height: 0; margin-bottom: 26px; }
  html.zx-film #sf-home .sf-head .sf-sprout { display: none; }
  html.zx-film #sf-home .sf-prog { justify-content: center; }
  html.zx-film #sf-home .sf-q { float: none; display: block; width: 100%; margin: 0 0 34px; text-align: center; font: 400 clamp(40px, 3.1vw, 60px)/1.06 "Playfair Display", Georgia, serif; letter-spacing: -.012em; color: #f2efe8; }
  html.zx-film #sf-home .sf-q i { font-family: "Instrument Serif", Georgia, serif; font-style: italic; color: #3fe0c5; letter-spacing: 0; }
  html.zx-film #sf-home .sf-q .sq-w { display: inline-block; font: inherit; color: inherit; }
  html.zx-film #sf-home .sf-q .sq-w i { font-family: "Instrument Serif", Georgia, serif; font-style: italic; color: #3fe0c5; }
  html.zx-film #sf-home .sf-sub { text-align: center; }
  html.zx-film #sf-home .sf-nav { justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
  html.zx-film #sf-home .sf-hint { flex: 1 0 100%; order: -1; text-align: center; min-height: 0; }
  html.zx-film #sf-home .sf-hint:empty { display: none; }
  html.zx-film #sf-home .sf-nav .btn.solid { min-width: 220px; justify-content: center; }
  html.zx-film #sf-home .sf-nav .btn, html.zx-film #sf-home .sf-send, html.zx-film #sf-home .sf-next { margin-left: 0; margin-right: 0; }
  html.zx-film #sf-home .sf-note { text-align: center; }
  html.zx-film #s08 .grow-home { text-align: center; }
  .zfilm .fl-light { position: absolute; inset: 0; mix-blend-mode: screen; opacity: 0;
    background: radial-gradient(ellipse 51vw 28vh at 50% 48%, rgba(150, 240, 220, .20), rgba(110, 160, 230, .06) 45%, transparent 72%); }
  .zfilm .fl-zx { position: absolute; left: 50%; top: 50%; width: 228px; height: 242px; overflow: visible; visibility: hidden; filter: drop-shadow(0 0 22px rgba(160, 186, 232, .32)); }
  .zfilm .fl-zr { position: absolute; left: 50%; top: 50%; width: 228px; height: 242px; overflow: visible; visibility: hidden;
    -webkit-mask-image: linear-gradient(to top, #000 0, rgba(0, 0, 0, .6) 45%, transparent 100%); mask-image: linear-gradient(to top, #000 0, rgba(0, 0, 0, .6) 45%, transparent 100%); }
}
@media (min-width: 900px) and (prefers-reduced-motion: reduce) { .zfilm .w, .zfilm .fl-trio { transition: none; } }
@media (min-width: 900px) {
  html.zx-film #s08 .bottom { max-width: 960px; }
  html.zx-film #sf-home .sf-f > label { white-space: nowrap; letter-spacing: .18em; }
}
@media (min-width: 900px) {
  /* 07→08 night tint fades out before both screen edges, so nothing ends in a hard line at the scrollbar rail */
  .zfilm .fl-night { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%); }
}
@media (min-width: 900px) {
  /* the hidden original 08 heading sits far above, so the header keeps «08 · Your seed» while the brief is on screen */
  html.zx-film #s08 .top { transform: translateY(-400vh); }
}
@media (min-width: 900px) {
  /* 02 roots in film mode: the old column is replaced by the film heading and one symmetric row of the four roots */
  html.zx-film #s02 { min-height: 170vh; }
  html.zx-film #s02 > .in { opacity: 0 !important; pointer-events: none !important; }
  .zfilm .fl-root { position: absolute; top: 76vh; text-align: center; visibility: hidden; }
  .zfilm .fl-root .nm { display: block; font: 400 52px/1.05 "Playfair Display", Georgia, serif; color: #f2efe8; text-shadow: 0 0 34px rgba(4, 7, 12, 1), 0 0 14px rgba(4, 7, 12, .95), 0 0 4px rgba(4, 7, 12, .9); }
  .zfilm .fl-root .ln1 { display: block; margin-top: 12px; font: 400 19px/1.4 "Golos Text", system-ui, sans-serif; color: rgba(236, 240, 238, .96); white-space: nowrap;
    text-shadow: 0 0 30px rgba(4, 7, 12, 1), 0 0 12px rgba(4, 7, 12, .95), 0 0 3px rgba(4, 7, 12, .9); }
}

@media (min-width: 900px) {
  html.zx-film #s03 { min-height: 335vh; }
  html.zx-film .bar { z-index: 4; }
  html.zx-film #s03 > .in, html.zx-film #s04 > .in { opacity: 0 !important; pointer-events: none !important; }
  .zfilm { --fu: min(calc(100vw / 1920), calc(100vh / 1080)); --fx: calc((100vw - var(--fu) * 1920) / 2); }
  .zfilm .fl-veil { position: absolute; inset: 0; visibility: hidden; opacity: 0; background: radial-gradient(120% 95% at 62% 48%, rgba(6, 15, 19, .8), rgba(4, 7, 12, .94)); }
  .zfilm .fl-a { position: absolute; inset: 0; visibility: hidden; }
  .zfilm .fl-stage { position: absolute; inset: 0; perspective: calc(var(--fu) * 2400); perspective-origin: 50% 46%; transform-style: preserve-3d; }
  .zfilm .fl-glass { position: absolute; border-radius: calc(var(--fu) * 18); overflow: hidden; background: #070c13; will-change: transform, opacity;
    box-shadow: 0 0 0 1px rgba(214, 255, 245, .16), 0 calc(var(--fu) * 50) calc(var(--fu) * 140) calc(var(--fu) * -30) rgba(0, 0, 0, .85); }
  .zfilm .fl-glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(118deg, rgba(255, 255, 255, .075) 0%, rgba(255, 255, 255, .02) 22%, rgba(255, 255, 255, 0) 38%);
    box-shadow: inset -1px 0 0 rgba(63, 224, 197, .55), inset 0 1px 0 rgba(255, 255, 255, .14); }
  .zfilm .fl-map { left: calc(var(--fx) + var(--fu) * 724); top: calc(var(--fu) * 176); width: calc(var(--fu) * 980); height: calc(var(--fu) * 745); transform-origin: 100% 50%;
    background: radial-gradient(110% 90% at 50% 45%, rgba(16, 32, 40, .82), rgba(5, 10, 16, .9)); }
  .zfilm .fl-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .zfilm .fl-tile { position: absolute; border-radius: calc(var(--fu) * 8); overflow: hidden; background-size: cover; background-position: center;
    box-shadow: 0 0 0 1px rgba(170, 255, 236, .55), 0 0 calc(var(--fu) * 22) rgba(63, 224, 197, .28); }
  .zfilm .fl-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 40%); }
  .zfilm .fl-home { box-shadow: 0 0 0 1.5px rgba(200, 255, 244, .85), 0 0 calc(var(--fu) * 46) rgba(63, 224, 197, .45); }
  .zfilm .fl-tname { position: absolute; transform: translateX(-50%); font: italic 400 max(22px, calc(var(--fu) * 24))/1 "Instrument Serif", "Instrument", Georgia, serif; color: #3fe0c5; white-space: nowrap;
    text-shadow: 0 0 calc(var(--fu) * 14) rgba(63, 224, 197, .4); }
  .zfilm .fl-sname { position: absolute; font: 400 max(18px, calc(var(--fu) * 18))/1 "Golos Text", system-ui, sans-serif; color: rgba(242, 239, 232, .9); white-space: nowrap; }
  .zfilm .fl-phone { left: calc(var(--fx) + var(--fu) * 850); top: calc(var(--fu) * 150); width: calc(var(--fu) * 410); height: calc(var(--fu) * 813); border-radius: calc(var(--fu) * 30); }
  .zfilm .fl-phone img { display: block; width: 100%; height: calc(var(--fu) * 813); object-fit: cover; object-position: top; }
  .zfilm .fl-req { left: calc(var(--fx) + var(--fu) * 1296); top: calc(var(--fu) * 420); width: calc(var(--fu) * 464); height: calc(var(--fu) * 333); border-radius: calc(var(--fu) * 22); }
  .zfilm .fl-req img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
  .zfilm .fl-cap4 { position: absolute; left: calc(var(--fx) + var(--fu) * 1300); top: calc(var(--fu) * 380); margin: 0; letter-spacing: .26em; visibility: hidden; }
  .zfilm .fl-col { position: absolute; left: calc(var(--fx) + var(--fu) * 160); top: calc(var(--fu) * var(--top)); width: calc(var(--fu) * var(--wd)); text-align: left; }
  .zfilm .fl-hd { visibility: hidden; }
  .zfilm .fl-col .fl-k { margin-bottom: calc(var(--fu) * 34); }
  .zfilm .fl-b { margin: calc(var(--fu) * 40) 0 0; font: 400 max(18px, calc(var(--fu) * 22))/1.5 "Golos Text", system-ui, sans-serif; color: rgba(236, 240, 238, .92); visibility: hidden;
    text-shadow: 0 0 28px rgba(4, 7, 12, .95), 0 0 8px rgba(4, 7, 12, .9); }
}
/* the film layer exists only on desktop; on phones and narrow windows it is never shown, styled or not */
.zfilm { display: none; }
@media (min-width: 900px) { html.zx-film .zfilm { display: block; } }
@media (min-width: 900px) {
  /* 04: the Ayla chat and the request card are live text (sharp at any zoom), drawn to the measures of the real Ayla screens */
  .zfilm .fl-phone, .zfilm .fl-req { background: #16202a; }
  .zfilm .fc { position: absolute; inset: 0; overflow: hidden; font-family: "Golos Text", system-ui, sans-serif; color: #e9eef2; }
  .zfilm .fc-head { display: flex; align-items: center; gap: calc(var(--fu) * 16); height: calc(var(--fu) * 100); padding: 0 calc(var(--fu) * 24); border-bottom: 1px solid rgba(160, 220, 210, .16); background: #18222c; }
  .zfilm .fc-av { flex: none; display: grid; place-items: center; width: calc(var(--fu) * 46); height: calc(var(--fu) * 46); border-radius: 50%; background: #2ed6c4; }
  .zfilm .fc-av svg { width: calc(var(--fu) * 20); height: calc(var(--fu) * 20); fill: none; stroke: #0b2a2a; stroke-width: 2; stroke-linejoin: round; }
  .zfilm .fc-who { display: grid; gap: calc(var(--fu) * 6); line-height: 1; }
  .zfilm .fc-who b { font-size: calc(var(--fu) * 19); font-weight: 600; color: #f4f7f8; }
  .zfilm .fc-who span { font-size: calc(var(--fu) * 15); color: #b7c6cf; }
  .zfilm .fc-body { display: flex; flex-direction: column; gap: calc(var(--fu) * 15); padding: calc(var(--fu) * 22) calc(var(--fu) * 22) 0; }
  .zfilm .fc-day { align-self: center; padding: calc(var(--fu) * 9) calc(var(--fu) * 16); border-radius: calc(var(--fu) * 12); background: rgba(255, 255, 255, .06); font-size: calc(var(--fu) * 15); color: #c3cfd6; }
  .zfilm .fc-m { position: relative; max-width: calc(var(--fu) * 306); margin: 0; padding: calc(var(--fu) * 15) calc(var(--fu) * 17) calc(var(--fu) * 30); border-radius: calc(var(--fu) * 18); font-size: calc(var(--fu) * 16); line-height: 1.6; }
  .zfilm .fc-m time { position: absolute; right: calc(var(--fu) * 16); bottom: calc(var(--fu) * 8); font-size: calc(var(--fu) * 13); color: rgba(220, 232, 240, .62); }
  .zfilm .fc-in { align-self: flex-end; background: #2c5479; border-bottom-right-radius: calc(var(--fu) * 5); }
  .zfilm .fc-out { align-self: flex-start; background: #1f2b37; border-bottom-left-radius: calc(var(--fu) * 5); }
  .zfilm .fr { position: absolute; inset: 0; padding: calc(var(--fu) * 26) calc(var(--fu) * 32) 0; font-family: "Golos Text", system-ui, sans-serif; background: #0f1b1f; }
  .zfilm .fr-head { display: flex; align-items: center; gap: calc(var(--fu) * 12); padding-bottom: calc(var(--fu) * 22); border-bottom: 1px solid rgba(160, 220, 210, .16); }
  .zfilm .fr-dot { width: calc(var(--fu) * 9); height: calc(var(--fu) * 9); border-radius: 50%; background: #3fe0c5; box-shadow: 0 0 calc(var(--fu) * 10) rgba(63, 224, 197, .7); }
  .zfilm .fr-head b { font-size: calc(var(--fu) * 22); font-weight: 700; letter-spacing: -.01em; color: #f2f7f6; }
  .zfilm .fr-head time { margin-left: auto; font-size: calc(var(--fu) * 16); font-weight: 600; color: #8fa7a3; }
  .zfilm .fr dl { display: grid; grid-template-columns: calc(var(--fu) * 116) 1fr; margin: 0; }
  .zfilm .fr dt, .zfilm .fr dd { margin: 0; padding: calc(var(--fu) * 14) 0; border-bottom: 1px solid rgba(160, 220, 210, .12); line-height: 1.25; }
  .zfilm .fr dt { font-size: calc(var(--fu) * 13); color: #8fa3a8; }
  .zfilm .fr dd { font-size: calc(var(--fu) * 16); color: #eef4f3; }
}
@media (min-width: 900px) {
  /* 03: each page of the map is a whole miniature first screen inside a thin glass frame: the page keeps its own margins */
  .zfilm .fl-tile { padding: calc(var(--fu) * 7); border-radius: calc(var(--fu) * 13); background: linear-gradient(150deg, rgba(222, 255, 248, .2), rgba(222, 255, 248, .05) 55%, rgba(222, 255, 248, .1)); }
  .zfilm .fl-tile > i { display: block; width: 100%; height: 100%; border-radius: calc(var(--fu) * 7); background-size: cover; background-position: center top; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
  .zfilm .fl-tile::after { border-radius: inherit; }
}
@media (min-width: 900px) {
  /* 07 → 08: only the light of the horizon stays; no dark tint over the sky, day or night */
  .zfilm .fl-night { background: radial-gradient(ellipse 62vw 7vh at 50% 52%, rgba(52, 80, 170, .5), transparent 70%), radial-gradient(ellipse 38vw 40vh at 50% 46%, rgba(120, 150, 220, .14), transparent 72%); }
}
@media (min-width: 900px) {
  /* readability comes from the type itself: a thin halo in the scene's own deep blue, never a dark smudge */
  html.zx-film .zfilm .fl-k, html.zx-film .zfilm .fl-t, html.zx-film .zfilm .fl-trio .nm, html.zx-film .zfilm .fl-trio .ln1, html.zx-film .zfilm .fl-num .ln1,
  html.zx-film .zfilm .fl-root .nm, html.zx-film .zfilm .fl-root .ln1, html.zx-film .zfilm .fl-b { text-shadow: 0 0 18px rgba(4, 7, 12, .5), 0 0 3px rgba(4, 7, 12, .45); }
  html.zx-film .zfilm .fl-num .nn { filter: drop-shadow(0 0 14px rgba(4, 7, 12, .45)); }
  html.zx-film.dl-lit .zfilm .fl-k, html.zx-film.dl-lit .zfilm .fl-t, html.zx-film.dl-lit .zfilm .fl-trio .nm, html.zx-film.dl-lit .zfilm .fl-trio .ln1, html.zx-film.dl-lit .zfilm .fl-num .ln1,
  html.zx-film.dl-lit .zfilm .fl-root .nm, html.zx-film.dl-lit .zfilm .fl-root .ln1, html.zx-film.dl-lit .zfilm .fl-b { text-shadow: 0 1px 2px rgba(6, 28, 58, .42), 0 0 14px rgba(6, 28, 58, .26); }
  html.zx-film.dl-lit .zfilm .fl-num .nn { filter: drop-shadow(0 1px 10px rgba(6, 28, 58, .3)); }
}
@media (min-width: 900px) {
  /* depth of field of the world (03–04 behind the glass, 06→07 while the tree splits): blur stacks on the day grade, follows the scroll exactly */
  /* the soft focus of the film is a veil with a fixed blur above the world (see film.js): only its opacity follows the scroll,
     so the browser never rebuilds a blur layer mid-scroll */
  html.zx-film .fl-dof { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
}
