/* Fimex home: the flight over Labone that opens the page. The engine (scrollcraft.css) owns the stage,
   the legs and the copy windows; this file is the flight's own look, in the site's type and buttons.
   Everything is scoped to .flight and .fmap, so the ordinary page under the flight keeps site.css. */
.flight, .fmap {
  --sc-canvas: #0f0e0c;
  --sc-surface: #181713;
  --sc-ink: #ffffff;
  --sc-ink-soft: rgba(255, 255, 255, 0.86);
  --sc-accent: #f3a91c;       /* the Fimex mark: the camera marker and its route */
  --sc-accent-ink: #1b1206;
  --sc-font-display: var(--display);
  --sc-font-text: var(--text);
  --sc-gutter: var(--pad);
}
.flight { position: relative; color: var(--sc-ink); }

/* the poster sits in a <picture> (portrait and landscape crops); fill the leg like the engine's own media */
.sc-world__seg > picture { position: absolute; inset: 0; z-index: 0; }
.sc-world__seg > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* ---------- copy over the film ---------- */
/* The copy sits low on the frame, mostly on the left; the shade is densest exactly there. */
.fl-scrim {
  opacity: 0;
  position: absolute; inset: auto 0 0 0; height: 82%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(120% 90% at 0% 100%, rgb(15 14 12 / 0.66) 0%, rgb(15 14 12 / 0.38) 45%, rgb(15 14 12 / 0) 78%),
    linear-gradient(to top, rgb(15 14 12 / 0.86) 0%, rgb(15 14 12 / 0.74) 26%, rgb(15 14 12 / 0.52) 52%, rgb(15 14 12 / 0.2) 78%, rgb(15 14 12 / 0) 100%);
}
.fl-scrim--close { height: 70%; background: linear-gradient(to top, rgb(15 14 12 / 0.92) 0%, rgb(15 14 12 / 0.8) 34%, rgb(15 14 12 / 0.46) 66%, rgb(15 14 12 / 0) 100%); }
/* the opening headline sits over the clouds and the white mist: its shade reaches higher and is denser */
.fl-scrim[data-fl-hero] {
  height: 100%;
  background:
    radial-gradient(85% 95% at 0% 100%, rgb(15 14 12 / 0.82) 0%, rgb(15 14 12 / 0.62) 42%, rgb(15 14 12 / 0.22) 70%, rgb(15 14 12 / 0) 88%),
    linear-gradient(to top, rgb(15 14 12 / 0.88) 0%, rgb(15 14 12 / 0.7) 30%, rgb(15 14 12 / 0.42) 58%, rgb(15 14 12 / 0.12) 80%, rgb(15 14 12 / 0) 100%);
}

.fl-copy { position: absolute; z-index: 1; max-width: 44rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; text-shadow: 0 1px 2px rgb(10 9 8 / 0.4), 0 3px 22px rgb(10 9 8 / 0.45); }
.fl-copy--lead { left: var(--pad); right: var(--pad); bottom: 5rem; }
.fl-copy--centre { left: 50%; bottom: 22vh; translate: -50% 0; text-align: center; align-items: center; max-width: 40rem; }
.fl-copy--narrow { max-width: 34rem; }
.fl-display { margin: 0; font-family: var(--display); font-weight: 400; font-size: 4.5rem; line-height: 1.08; letter-spacing: -0.005em; text-wrap: balance; color: #fff; }
.fl-display--md { font-size: 3.6rem; }
.fl-display--sm { font-size: 2.15rem; line-height: 1.18; }
.fl-body { margin: 0; max-width: 34rem; color: var(--sc-ink-soft); font-size: 1.125rem; line-height: 1.55; text-wrap: pretty; }
.fl-actions { display: flex; align-items: center; gap: 0.8rem 1.6rem; flex-wrap: wrap; text-shadow: none; }
.fl-link { color: #fff; font-size: 0.875rem; font-weight: 400; letter-spacing: 0.03em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 0.4em; text-decoration-thickness: 1px; text-decoration-color: rgba(255, 255, 255, 0.55); padding: 0.5rem 0; text-shadow: 0 1px 10px rgb(10 9 8 / 0.5); }
.fl-link:hover { text-decoration-color: #fff; }

/* ---------- the map: the camera on the real Labone street plan ---------- */
.fmap {
  position: fixed; right: var(--pad); bottom: 2.4rem; z-index: 25; width: clamp(11rem, 15vw, 15rem);
  background: rgb(23 22 18 / 0.9); border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 2px 4px rgb(5 4 3 / 0.3), 0 14px 32px -10px rgb(5 4 3 / 0.55);
  color: #fff; font-family: var(--text); transition: opacity 300ms var(--ease);
}
.fmap__svg { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.fmap__places { list-style: none; margin: 0; padding: 0.35rem 0.6rem 0.55rem; display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.78rem; }
.fmap__places a { color: rgba(255, 255, 255, 0.8); padding: 0.35rem 0.1rem; display: inline-block; }
.fmap__places a[aria-current="true"] { color: #fff; text-decoration: underline; text-decoration-color: var(--sc-accent); text-underline-offset: 0.3em; }
.fmap__route-all { fill: none; stroke: rgb(246 241 232 / 0.22); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.fmap__route { fill: none; stroke: var(--sc-accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.fmap__cam circle { fill: var(--sc-accent); stroke: #1b1206; stroke-width: 3; }
.fmap__cone { fill: rgb(243 169 28 / 0.22); stroke: rgb(243 169 28 / 0.55); stroke-width: 1.5; }
/* the map steps aside for the close of the film, and stays away once the page is under way */
.is-finale .fmap, .flight-done .fmap { opacity: 0; pointer-events: none; }
/* the WhatsApp button waits for the film to end, so it never sits on the map */
.has-flight:not(.flight-done) .wa { opacity: 0; pointer-events: none; }
.wa { transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }

/* ---------- phones ---------- */
@media (max-width: 1000px) {
  .fl-copy--lead, .fl-copy--centre { left: var(--pad); right: var(--pad); bottom: 4.5rem; translate: none; text-align: left; align-items: flex-start; max-width: none; }
  .fl-display { font-size: 2.9rem; }
  .fl-display--md { font-size: 2.5rem; }
  .fl-display--sm { font-size: 1.7rem; }
  .fl-scrim { height: 86%; }
  .fmap { top: 5.6rem; bottom: auto; width: 7.5rem; }
  .fmap__places { display: none; }
}
@media (prefers-reduced-motion: reduce) { .fmap { transition: none; } }
