/* Fimex home: the flight over Labone. The engine (scrollcraft.css) owns the stage, the legs
   and the copy windows; this file is the brand and the page's own pieces. */
:root { color-scheme: dark; }
html { background: var(--sc-canvas); }
body {
  margin: 0; background: var(--sc-canvas); color: var(--sc-ink);
  font-family: var(--sc-font-text); font-size: var(--sc-t-base); line-height: var(--sc-leading-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* 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%; object-fit: cover; }

/* ---------- copy over the film ---------- */
/* The copy sits low on the frame, mostly on the left; the scrim is densest exactly there.
   Measured against the brightest frame under each line (scrollcraft shoot.mjs). */
.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--trail { background:
    radial-gradient(120% 90% at 100% 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: 62%; background: linear-gradient(to top, rgb(15 14 12 / 0.94) 0%, rgb(15 14 12 / 0.84) 34%, rgb(15 14 12 / 0.5) 66%, rgb(15 14 12 / 0) 100%); }
.fl-copy { text-shadow: 0 1px 2px rgb(10 9 8 / 0.4), 0 3px 22px rgb(10 9 8 / 0.45); }
.fl-copy .fl-cta { text-shadow: none; }
/* The opening headline sits over the clouds and the white mist (19 October 2026): its shade
   reaches higher and is denser behind the lines, still only on the lower left, and the type is a
   touch heavier with a wider soft shadow, so it holds at the brightest frame of the descent. */
.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:has(h1) .fl-display { font-weight: 360; text-shadow: 0 1px 2px rgb(10 9 8 / 0.5), 0 4px 30px rgb(10 9 8 / 0.6), 0 0 60px rgb(10 9 8 / 0.35); }
.fl-copy:has(h1) .fl-body { color: #fbf8f2; }

.fl-copy { position: absolute; z-index: 1; max-width: 36rem; display: grid; gap: var(--sc-4); }
.fl-copy--lead { left: var(--sc-gutter); bottom: clamp(5rem, 13vh, 9rem); }
.fl-copy--trail { right: var(--sc-gutter); bottom: clamp(5rem, 13vh, 9rem); max-width: 30rem; }
.fl-copy--centre { left: 50%; bottom: clamp(6rem, 22vh, 13rem); translate: -50% 0; text-align: center; max-width: 40rem; }
.fl-copy--lead:has(h1) { max-width: 44rem; }
.fl-copy--narrow { max-width: 30rem; }

.fl-display {
  margin: 0; font-family: var(--sc-font-display); font-weight: 300; font-optical-sizing: auto;
  font-size: clamp(2.5rem, 1.5rem + 4.2vw, 5.6rem); line-height: 1.02; letter-spacing: -0.022em;
  text-wrap: balance; color: var(--sc-ink);
}
.fl-display--md { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 4rem); }
.fl-display--sm { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.12; letter-spacing: -0.015em; }
.fl-body { margin: 0; max-width: 34rem; color: var(--sc-ink-soft); font-size: var(--sc-t-base); line-height: 1.62; text-wrap: pretty; letter-spacing: 0.002em; }
.fl-links { display: flex; gap: var(--sc-5); margin: 0; }
.fl-link {
  justify-self: start; color: var(--sc-ink); font-size: var(--sc-t-sm); font-weight: 500;
  text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in oklab, var(--sc-ink) 50%, transparent);
  padding-block: 0.5rem;
}
@media (hover: hover) and (pointer: fine) { .fl-link:hover { text-decoration-color: var(--sc-accent); } }

/* ---------- the close: arrival, one action, the small print ---------- */
.fl-close { left: var(--sc-gutter); right: var(--sc-gutter); bottom: clamp(1.25rem, 3vh, 2rem); max-width: none; gap: var(--sc-4); }
.fl-close .fl-display--md { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.2rem); }
.fl-close > .fl-display, .fl-close > .fl-body { max-width: 40rem; }
.fl-actions { display: flex; align-items: center; gap: var(--sc-6); flex-wrap: wrap; }
.fl-foot {
  display: flex; flex-wrap: wrap; gap: var(--sc-2) var(--sc-5); padding-top: var(--sc-5); margin-top: var(--sc-4);
  border-top: 1px solid rgb(246 241 232 / 0.18); font-size: var(--sc-t-xs); color: var(--sc-ink-soft);
  padding-top: var(--sc-4); margin-top: var(--sc-2);
}
.fl-foot a { color: var(--sc-ink-soft); text-decoration: none; }
.fl-foot a:hover { color: var(--sc-ink); }
.fl-foot span { margin-left: auto; }

/* ---------- the map: the camera on the real Labone street plan (card itself in chrome.css) ---------- */
.flight-map { position: fixed; right: var(--sc-gutter); bottom: clamp(1.25rem, 4vh, 2.5rem); z-index: 30; transition: opacity 300ms var(--sc-ease-out); }
.map__route-all { fill: none; stroke: rgb(246 241 232 / 0.22); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.map__route { fill: none; stroke: var(--sc-accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.map__cam circle { fill: var(--sc-accent); stroke: #1b1206; stroke-width: 3; }
.map__cone { fill: rgb(243 169 28 / 0.22); stroke: rgb(243 169 28 / 0.55); stroke-width: 1.5; }
/* the close carries its own footer, so the map steps aside for it */
.is-finale .flight-map { opacity: 0; pointer-events: none; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .fl-copy--lead, .fl-copy--trail, .fl-copy--centre { left: var(--sc-gutter); right: var(--sc-gutter); bottom: 6.5rem; translate: none; text-align: left; max-width: none; }
  .fl-display { font-size: clamp(2.1rem, 1.4rem + 4vw, 2.8rem); }
  .fl-display--md { font-size: clamp(1.9rem, 1.3rem + 3vw, 2.4rem); }
  .fl-display--sm { font-size: 1.5rem; }
  .fl-scrim { height: 80%; }
  .flight-map { top: calc(var(--fl-bar-h) + 0.5rem); bottom: auto; width: 7.5rem; }
  .flight-map .map__places { display: none; }
  .fl-foot span { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .flight-map { transition: none; } }
