/* Fimex: the parts every page shares, so the home flight and the inner pages are one site.
   The bar, the Enquire button, the Labone map card, the film hero that opens each inner page
   (a scrub act from the same scrollcraft engine, playing a leg of the home flight), and the
   cross-page view transitions. Loaded after scrollcraft.css on every page. */
:root {
  --sc-canvas:      #0f0e0c;
  --sc-surface:     #181713;
  --sc-ink:         #f6f1e8;
  --sc-ink-soft:    #ddd4c6;
  --sc-accent:      #f3a91c;   /* the Fimex mark: the action and the camera marker only */
  --sc-accent-ink:  #1b1206;
  --sc-font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sc-font-text:    "Geist", system-ui, sans-serif;
  --fl-r: 2px;
  --fl-bar-h: 4.25rem;
}

/* one page sliding into the next: the bar and the map stay, the rest cross-fades */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 420ms; animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
.fl-bar { view-transition-name: bar; }
.map { view-transition-name: map; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

.skip { position: fixed; left: var(--sc-gutter); top: -4rem; z-index: 60; background: var(--sc-ink); color: var(--sc-canvas); padding: 0.6rem 1rem; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- the bar: wordmark, links, one action ---------- */
.fl-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--fl-bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sc-5);
  padding-inline: var(--sc-gutter);
  background: linear-gradient(to bottom, rgb(15 14 12 / 0.55), rgb(15 14 12 / 0));
  color: var(--sc-ink);
  transition: background-color 260ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 260ms cubic-bezier(0.23, 1, 0.32, 1);
}
/* once the film is behind it, the bar becomes solid so it reads over the bone pages */
.fl-bar.is-solid { background: #151411; box-shadow: 0 1px 0 rgb(246 241 232 / 0.08); }
.fl-brand { display: block; color: var(--sc-ink); line-height: 0; }
.fl-brand svg { height: 1.55rem; width: auto; }
.fl-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); font-family: var(--sc-font-text); font-size: 0.93rem; }
.fl-nav a { text-decoration: none; color: var(--sc-ink); opacity: 0.92; transition: opacity 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.fl-nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1px; text-decoration-color: var(--sc-accent); }
@media (hover: hover) and (pointer: fine) { .fl-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1px; } }

.fl-cta {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.35rem;
  background: var(--sc-accent); color: var(--sc-accent-ink) !important; opacity: 1 !important;
  font-family: var(--sc-font-text); font-weight: 500; font-size: 0.93rem; letter-spacing: 0.01em;
  text-decoration: none !important; border-radius: var(--fl-r);
  transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), background-color 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.fl-cta:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) { .fl-cta:hover { background: #f7b93f; } }
.fl-cta--bar { min-height: 2.4rem; padding: 0 1.1rem; }

/* ---------- the Labone map card ---------- */
.map {
  width: clamp(11rem, 15vw, 15rem);
  background: rgb(23 22 18 / 0.9); border: 1px solid rgb(246 241 232 / 0.16); border-radius: var(--fl-r);
  box-shadow: 0 2px 4px rgb(5 4 3 / 0.3), 0 14px 32px -10px rgb(5 4 3 / 0.55);
  color: var(--sc-ink); font-family: var(--sc-font-text);
}
.map__svg { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.map__pin { fill: var(--sc-accent); stroke: #1b1206; stroke-width: 3; }
.map__pin-ring { fill: none; stroke: var(--sc-accent); stroke-width: 2; opacity: 0.55; }
.map__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; }
.map__places a { color: var(--sc-ink-soft); text-decoration: none; padding: 0.35rem 0.1rem; display: inline-block; }
.map__places a[aria-current="true"], .map__places a[aria-current="page"] { color: var(--sc-ink); text-decoration: underline; text-decoration-color: var(--sc-accent); text-underline-offset: 0.3em; }
@media (hover: hover) and (pointer: fine) { .map__places a:hover { color: var(--sc-ink); } }

/* ---------- the film hero that opens an inner page ---------- */
.film { position: relative; background: var(--sc-canvas); color: var(--sc-ink); }
.film .sc-stage, .film [data-sc-stage] { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
.film__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film picture > img.sc-stage__poster, .film__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__scrim {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(130% 100% at 0% 100%, rgb(15 14 12 / 0.78) 0%, rgb(15 14 12 / 0.52) 45%, rgb(15 14 12 / 0) 80%),
    linear-gradient(to top, rgb(15 14 12 / 0.9) 0%, rgb(15 14 12 / 0.74) 30%, rgb(15 14 12 / 0.5) 58%, rgb(15 14 12 / 0.18) 80%, rgb(15 14 12 / 0) 94%),
    linear-gradient(to bottom, rgb(15 14 12 / 0.45) 0%, rgb(15 14 12 / 0) 20%);
}
.film__copy {
  position: absolute; z-index: 2; left: var(--sc-gutter); right: var(--sc-gutter); bottom: clamp(2.5rem, 9vh, 6.5rem);
  display: grid; gap: 1.1rem; max-width: 46rem;
  text-shadow: 0 1px 2px rgb(10 9 8 / 0.4), 0 3px 22px rgb(10 9 8 / 0.45);
}
.film__copy h1 {
  margin: 0; font-family: var(--sc-font-display); font-weight: 300; font-optical-sizing: auto; color: var(--sc-ink);
  font-size: clamp(2.6rem, 1.5rem + 4.4vw, 5.6rem); line-height: 1.02; letter-spacing: -0.022em; text-wrap: balance; max-width: 15ch;
}
.film--long .film__copy h1 { font-size: clamp(2.3rem, 1.5rem + 2.6vw, 4rem); max-width: 18ch; }
.film__copy .h1-sub { display: block; margin-top: 0.55em; font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.55rem); line-height: 1.3; letter-spacing: -0.005em; color: var(--sc-ink-soft); }
.film__copy .h1-sub::first-letter { text-transform: uppercase; }
.film__copy .breadcrumb { font-size: 0.85rem; color: var(--sc-ink); display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.film__copy .breadcrumb a { color: inherit; text-decoration: none; }
.film__copy .breadcrumb a:hover { text-decoration: underline; }
.film__copy .status { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 500; }
.film__copy .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sc-accent); display: inline-block; }
.film__copy .status.done::before { background: var(--sc-ink); }
.film__lead { margin: 0; max-width: 36rem; color: var(--sc-ink-soft); font-size: clamp(1rem, 0.96rem + 0.22vw, 1.125rem); line-height: 1.6; text-wrap: pretty; }
.film__actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; text-shadow: none; }
.film__link { color: var(--sc-ink); font-size: 0.93rem; font-weight: 500; text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1px; text-decoration-color: rgb(246 241 232 / 0.5); padding-block: 0.5rem; }
@media (hover: hover) and (pointer: fine) { .film__link:hover { text-decoration-color: var(--sc-accent); } }
.film .map { position: absolute; z-index: 2; right: var(--sc-gutter); bottom: clamp(2.5rem, 9vh, 6.5rem); }
/* a page without a film (privacy, 404): the bar is solid from the start and the page clears it */
.no-film { padding-top: var(--fl-bar-h); }

@media (max-width: 760px) {
  .fl-nav a:not(.fl-cta) { display: none; }
  .fl-brand svg { height: 1.3rem; }
  .film__copy { bottom: 2rem; }
  .film__copy h1 { font-size: clamp(2.1rem, 1.4rem + 4vw, 2.9rem); }
  .film .map { top: calc(var(--fl-bar-h) + 0.5rem); bottom: auto; width: 7.5rem; }
  .film .map .map__places { display: none; }
}
@media (prefers-reduced-motion: reduce) { .fl-bar { transition: none; } }
