/* ================================================================
   Filmen: signaturögonblicket på delsidorna (2 december). Samma uttryck som husbygget i flaggskeppet,
   i Leadrions Natt: scenen står still medan man scrollar, rubrik och steg till vänster, scenen till höger.
   Markup i mallar/delar/film.js, logik i site/delar/film.js. Inga övergångar som släpar efter: scrollen styr allt.
   Ingen backdrop-filter i scenerna (allt rör sig); glaset är fyllnad, ljus kant och skugga.
   ================================================================ */
.fm {
  --r0: 1; --r1: 0; --r2: 0; --r3: 0; --r4: 0; --r5: 0; --r6: 0; --c: 0;
  --fe: cubic-bezier(.16,1,.3,1);
  --fm-ink: var(--n-ink, #F3F5F8); --fm-mute: var(--n-muted, #9AA3AF); --fm-faint: var(--n-faint, #5F6773);
  --fm-line: rgba(255,255,255,.09); --fm-pink: var(--n-pink, #FF4FAB); --fm-ok: #5FD39A;
  position: relative; height: calc(100svh + (var(--n) - 1) * 82svh); background: var(--n-bg, #07090D); color: var(--fm-ink);
}
.fm-scen {
  position: sticky; top: 0; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
  column-gap: clamp(32px, 5vw, 96px);
  padding: 100px max(var(--gutter, 20px), calc((100vw - 1200px) / 2)) 24px;
}
/* Mjukt färgat ljus bakom scenen, stilla. Glider bara lite i takt med filmen. */
.fm-ljus { position: absolute; inset: -10% -5%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(34vw 30vw at 74% 30%, rgba(43,58,140,.42), transparent 70%),
    radial-gradient(26vw 24vw at 92% 76%, rgba(91,43,134,.32), transparent 70%),
    radial-gradient(28vw 26vw at 6% 88%, rgba(14,92,107,.28), transparent 70%);
  transform: translate3d(0, calc(var(--c) * -3%), 0); }
.fm-ljus::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 68% 50%, transparent, rgba(7,9,13,.5)); }

/* bransch.css ger body overflow-x: hidden, som gör body till en scrollruta och stoppar position: sticky. clip klipper utan det. */
body:has(.fm) { overflow-x: clip; }

/* ----- Texten ----- */
.fm-text { align-self: center; display: grid; gap: 0; min-width: 0; }
.fm-k { margin: 0 0 18px; }
.fm-k a { color: inherit; }
.fm h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 4.4vw, 68px); line-height: 1; letter-spacing: -.025em; text-wrap: balance; }
.fm h1 span { display: block; }
.fm-lede { margin: 20px 0 0; max-width: 40ch; font-size: 16px; line-height: 1.6; color: var(--fm-mute); text-wrap: pretty; }
.fm-steg { list-style: none; margin: 30px 0 0; padding: 0; display: grid; border-left: 1px solid var(--fm-line); }
.fm-steg li { position: relative; padding-left: 18px; }
.fm-steg li::before { content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--fm-ink); transform: scaleY(0); transform-origin: top; transition: transform .6s var(--fe); }
.fm-steg li.on::before { transform: none; }
.fm-steg button { display: flex; align-items: baseline; gap: 12px; width: 100%; min-height: 40px; padding: 7px 0; border: 0; background: none; color: rgba(243,245,248,.62); font: inherit; text-align: left; cursor: pointer; transition: color .4s var(--fe); }
.fm-steg button:hover { color: rgba(243,245,248,.8); }
.fm-steg button:focus-visible { outline: 2px solid var(--fm-ink); outline-offset: 2px; border-radius: 4px; }
.fm-n { font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.fm-steg b { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.12; letter-spacing: -.01em; }
.fm-steg li.on button { color: var(--fm-ink); }
.fm-steg p { margin: 0; max-width: 42ch; max-height: 0; overflow: hidden; opacity: 0; font-size: 15px; line-height: 1.55; color: var(--fm-mute); text-wrap: pretty; transition: max-height .6s var(--fe), opacity .5s var(--fe), margin .6s var(--fe); }
.fm-steg li.on p { max-height: 7.5em; opacity: 1; margin: 0 0 12px; }
.fm-steg p a { color: var(--fm-ink); text-underline-offset: 3px; white-space: nowrap; }

/* ----- Foten: tips, steg, mätare, länkar ----- */
.fm-fot { position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(120px, 1fr) auto; align-items: center; gap: 24px; padding-top: 16px; font-size: 13px; color: var(--fm-mute); }
.fm-tips { position: absolute; left: 0; bottom: calc(100% + 6px); display: inline-flex; align-items: center; gap: 10px; transition: opacity .5s var(--fe); }
.fm-tips i { width: 1px; height: 22px; background: currentColor; transform-origin: top; animation: fm-tips 2.2s var(--fe) infinite; }
@keyframes fm-tips { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.fm[data-steg-nu]:not([data-steg-nu="0"]) .fm-tips { opacity: 0; }
.fm-nu { font-variant-numeric: tabular-nums; }
.fm-nu b { color: var(--fm-ink); font-weight: 500; }
.fm-matare { height: 1px; background: var(--fm-line); }
.fm-matare i { display: block; height: 100%; background: var(--fm-ink); transform: scaleX(0); transform-origin: left; }
.fm-br { display: flex; gap: 22px; }
.fm-br a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fm-ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.fm-br a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fm-br a:last-child { color: var(--fm-mute); }

/* ----- Scenen ----- */
.fm-stage { position: relative; min-width: 0; min-height: 0; }
.fm-box { position: absolute; left: 50%; top: 50%; width: var(--bw); height: var(--bh); translate: -50% -50%;
  transform: scale(calc(var(--sk, 1) * (1 + .045 * var(--c)))); transform-origin: 50% 55%; will-change: transform;
  font-family: var(--sans); font-size: 14px; line-height: 1.4; color: var(--fm-ink); }
.fm-box * { box-sizing: border-box; }
.fm-box p { margin: 0; }
.fm-box .k { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fm-mute); }
/* Ett lager glas: fyllnad, ljus kant uppifrån och en mjuk skugga */
.fm-kort { border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -28px rgba(0,0,0,.85); }
/* Tonas in med sitt steg (--r) och ut med ett senare (--o) */
.fu { opacity: calc(var(--r, 1) * (1 - var(--o, 0))); transform: translate3d(0, calc((1 - var(--r, 1)) * 14px - var(--o, 0) * 10px), 0); }
/* Avslöjas uppifrån och ned med en mjuk kant, som husbygget */
.fm-wipe { --kant: 22%; -webkit-mask-image: linear-gradient(to bottom, #000 calc(var(--r) * (100% + var(--kant)) - var(--kant)), transparent calc(var(--r) * (100% + var(--kant)))); mask-image: linear-gradient(to bottom, #000 calc(var(--r) * (100% + var(--kant)) - var(--kant)), transparent calc(var(--r) * (100% + var(--kant)))); }
.fm-skriver::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: fm-mark 1s steps(1) infinite; }
@keyframes fm-mark { 50% { opacity: 0; } }

/* ===== Hemsidor: sidan byggs ===== */
.hs2-win { position: absolute; left: 0; top: 34px; width: 400px; border-radius: 12px; overflow: hidden; background: #0E1117; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 40px 80px -30px rgba(0,0,0,.9); }
.hs2-bar { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; background: rgba(255,255,255,.05); border-bottom: 1px solid var(--fm-line); }
.hs2-bar > i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.18); }
.hs2-url { position: relative; flex: 1; height: 16px; margin-left: 8px; }
.hs2-url em { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4px; font-style: normal; font-size: 10.5px; color: var(--fm-mute); }
.hs2-url svg { width: 10px; height: 10px; fill: none; stroke: var(--fm-ok); stroke-width: 1.3; }
.hs2-live { color: var(--fm-ink) !important; }
.hs2-sida { position: relative; height: 250px; overflow: hidden; }
.hs2-rut { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 14px 14px; opacity: calc(1 - var(--r3)); }
.hs2-ram { position: absolute; inset: 0; background: #F2EEE8; color: #2A1F1A; }
.hs2-nav { position: absolute; left: 22px; right: 22px; top: 14px; display: flex; gap: 10px; }
.hs2-nav i { width: 34px; height: 5px; border-radius: 3px; background: rgba(42,31,26,.18); }
.hs2-nav i:nth-child(2) { margin-left: auto; }
.hs2-rad { position: absolute; left: 22px; height: 30px; }
.hs2-rad.r1 { top: 52px; } .hs2-rad.r2 { top: 86px; }
.hs2-rad i { position: absolute; left: 0; top: 6px; height: 20px; border-radius: 4px; background: rgba(42,31,26,.14); }
.hs2-rad.r1 i { width: 196px; } .hs2-rad.r2 i { width: 112px; }
.hs2-rad b { position: absolute; left: 0; top: 0; white-space: nowrap; font-family: var(--serif); font-weight: 400; font-size: 33px; line-height: 1; letter-spacing: -.02em; }
.hs2-brod { position: absolute; left: 22px; top: 134px; display: grid; gap: 6px; }
.hs2-brod i { width: 160px; height: 5px; border-radius: 3px; background: rgba(42,31,26,.14); }
.hs2-brod i + i { width: 120px; }
.hs2-knapp { position: absolute; left: 22px; top: 166px; width: 74px; height: 26px; border-radius: 99px; background: rgba(42,31,26,.16); display: grid; place-items: center; }
.hs2-knapp b { font-size: 10px; font-weight: 500; color: #fff; }
.hs2-knapp:has(b) { background: color-mix(in oklch, #9C4A2E calc(var(--r2) * 100%), rgba(42,31,26,.16)); }
.hs2-valv { position: absolute; right: 24px; top: 40px; width: 110px; height: 150px; border-radius: 55px 55px 6px 6px; background: rgba(42,31,26,.12); }
.hs2-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hs2-lapp { position: absolute; left: 18px; top: 300px; width: 230px; padding: 14px 16px; border-radius: 14px; background: #FFF3B8; color: #2A2410; box-shadow: 0 24px 40px -20px rgba(0,0,0,.8); rotate: -2deg; }
.hs2-lapp .k { color: rgba(42,36,16,.6); }
.hs2-lapp p { margin-top: 6px !important; font-size: 13px; }
.hs2-lapp b { display: block; margin-top: 2px; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.1; }
.hs2-mob { position: absolute; right: 0; top: 150px; width: 138px; height: 236px; margin: 0; padding: 5px; border-radius: 24px; background: #0B0D12; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 40px 70px -24px rgba(0,0,0,.95); }
.hs2-mob img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 19px; }
.hs2-toast { position: absolute; left: 96px; top: 338px; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 12px; border-radius: 14px; background: rgba(20,24,32,.96); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 24px 40px -18px rgba(0,0,0,.9); }
.hs2-toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--fm-pink); box-shadow: 0 0 0 4px rgba(255,79,171,.18); }
.hs2-toast b { display: block; font-size: 12px; font-weight: 500; }
.hs2-toast span { font-size: 12px; color: var(--fm-mute); }

/* ===== AEO: svaret före och efter ===== */
.ae2 { position: absolute; inset: 0; padding: 22px; }
.ae2-q { display: flex; gap: 10px; align-items: flex-start; }
.ae2-av { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 500; background: rgba(255,255,255,.1); }
.ae2-q p { padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: rgba(255,255,255,.08); font-size: 14px; }
.ae2-sok { position: absolute; left: 22px; right: 22px; top: 86px; }
.ae2-sk { font-size: 12px; color: var(--fm-mute); }
.ae2-chips { display: flex; gap: 6px; margin-top: 8px; }
.ae2-chips i { font-style: normal; font-size: 11.5px; padding: 5px 9px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  opacity: calc(.28 + .72 * clamp(0, var(--r1) * 5 - var(--k), 1)); }
.ae2-prog { display: block; height: 1px; margin-top: 12px; background: var(--fm-line); }
.ae2-prog i { display: block; height: 100%; background: var(--fm-ink); transform: scaleX(var(--r1)); transform-origin: left; }
.ae2-svar { position: absolute; left: 22px; right: 22px; top: 172px; height: 150px; }
.ae2-sok .ae2-chips i { transition: none; }
.ae2-sok { opacity: calc(var(--r1) * (1 - .45 * var(--r2))); }
.ae2-a { position: absolute; inset: 0; }
.ae2-lbl { display: inline-block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fm-mute); }
.ae2-a p { margin-top: 8px !important; font-family: var(--serif); font-size: 24px; line-height: 1.18; letter-spacing: -.005em; text-wrap: pretty; }
.ae2-fore p { color: rgba(243,245,248,.62); }
.ae2-efter mark { color: inherit; background: linear-gradient(var(--fm-pink), var(--fm-pink)) no-repeat 0 100% / calc(clamp(0, var(--r3) * 1.6 - .5, 1) * 100%) 2px; padding-bottom: 1px; }
.ae2-src { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ae2-src li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 4px; border-radius: 99px; font-size: 11.5px; background: rgba(255,255,255,.06); opacity: clamp(0, var(--r3) * 2.4 - 1.4, 1); }
.ae2-src b { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; font-weight: 600; background: var(--fm-ink); color: #07090D; }
.ae2-mat { position: absolute; left: 22px; right: 22px; bottom: 22px; padding-top: 16px; border-top: 1px solid var(--fm-line); }
.ae2-mat-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--fm-mute); }
.ae2-mat-h b { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--fm-ink); font-variant-numeric: tabular-nums; vertical-align: -3px; }
.ae2-mat-h small { font-size: 11px; }
.ae2-dots { display: flex; gap: 7px; margin-top: 10px; }
.ae2-dots i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.26); }
.ae2-dots i.hit { background: var(--fm-ink); box-shadow: none; opacity: calc(.2 + .8 * clamp(0, var(--r4) * 5 - var(--k), 1)); }
.ae2-tj { display: flex; gap: 14px; margin-top: 12px; font-size: 11.5px; color: var(--fm-faint); }

/* ===== Uppföljning: telefonen ===== */
.uf2-tel { position: absolute; left: 0; top: 0; width: 236px; height: 440px; padding: 7px; border-radius: 38px; background: #0B0D12; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 50px 90px -30px rgba(0,0,0,.95); }
.uf2-skarm { position: relative; height: 100%; border-radius: 31px; overflow: hidden; background: linear-gradient(180deg, #151922, #0F1218); }
.uf2-skarm header { position: relative; z-index: 2; height: 62px; padding-top: 22px; text-align: center; background: rgba(15,18,24,.96); border-bottom: 1px solid var(--fm-line); }
.uf2-skarm header small { display: block; font-size: 9.5px; color: var(--fm-mute); }
.uf2-skarm header b { font-size: 12.5px; font-weight: 500; }
.uf2-tr { position: absolute; left: 0; right: 0; top: 62px; bottom: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18px); mask-image: linear-gradient(to bottom, transparent, #000 18px); }
.uf2-msgs { display: grid; gap: 7px; padding: 14px 12px; transform: translate3d(0, calc(var(--r3) * -76px + var(--r4) * -118px), 0); }
.uf2-msgs p { max-width: 84%; padding: 8px 11px; border-radius: 15px; font-size: 12.5px; line-height: 1.38; }
.uf2-msgs .in { justify-self: start; border-bottom-left-radius: 5px; background: rgba(255,255,255,.1); }
.uf2-msgs .ut { justify-self: end; border-bottom-right-radius: 5px; background: #E9EDF3; color: #0B0E13; }
.uf2-stj { color: #F5B83D; letter-spacing: 1px; }
.uf2-notis { position: absolute; left: 14px; right: 14px; top: 16px; z-index: 3; display: flex; gap: 9px; align-items: center; padding: 10px 11px; border-radius: 16px; background: rgba(38,43,54,.97); box-shadow: 0 18px 30px -12px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.1); }
.uf2-notis i { flex: none; width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(160deg, #F3F5F8, #B9C0CB); }
.uf2-notis span { font-size: 11.5px; line-height: 1.3; color: var(--fm-mute); }
.uf2-notis b { display: block; color: var(--fm-ink); font-weight: 500; }
.uf2-tl { position: absolute; left: 264px; right: 0; top: 34px; list-style: none; margin: 0; padding: 0; }
.uf2-tl li { display: grid; gap: 2px; padding: 11px 0; border-top: 1px solid var(--fm-line); opacity: calc(.3 + .7 * var(--r)); }
.uf2-tl time { font-size: 11.5px; color: var(--fm-mute); font-variant-numeric: tabular-nums; }
.uf2-tl b { font-size: 13.5px; font-weight: 500; }
.uf2-kpi { position: absolute; left: 264px; bottom: 0; }
.uf2-kpi b { display: block; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; }
.uf2-kpi span { font-size: 12px; color: var(--fm-mute); }

/* ===== Kopplingar: bokningen flyter ut ===== */
.ko2-lines { position: absolute; inset: 0; width: 420px; height: 440px; overflow: visible; fill: none; }
.ko2-base { stroke: rgba(255,255,255,.08); stroke-width: 1.2; }
.ko2-dra { stroke: rgba(243,245,248,.75); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--r)); }
.ko2-puls { position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--fm-ink); box-shadow: 0 0 0 5px rgba(255,255,255,.12), 0 0 18px rgba(255,255,255,.5);
  offset-distance: calc(var(--r) * 100%); offset-rotate: 0deg; offset-anchor: 50% 50%; opacity: calc(min(var(--r) * 10, 1) * min((1 - var(--r)) * 10, 1)); }
.ko2-in { position: absolute; left: 0; top: 160px; width: 156px; padding: 14px 14px 13px; display: grid; gap: 2px; }
.ko2-in b { margin-top: 6px; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.05; }
.ko2-in span:not(.k) { font-size: 12.5px; color: var(--fm-mute); }
.ko2-tel { font-variant-numeric: tabular-nums; }
.ko2-hand { position: absolute; left: 0; top: 300px; width: 156px; display: grid; }
.ko2-hand b { font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1; }
.ko2-hand span { font-size: 12px; color: var(--fm-mute); }
.ko2-sys { position: absolute; left: 236px; width: 184px; height: 92px; padding: 13px 12px; display: flex; gap: 10px; align-items: flex-start;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255, calc(.08 + .14 * clamp(0, var(--r) * 3 - 2, 1))), 0 30px 60px -28px rgba(0,0,0,.85); }
.ko2-sys .lg-ic { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--fm-ink); }
.ko2-sys .lg-ic svg { width: 15px; height: 15px; fill: currentColor; }
.ko2-sys .lg-ic.txt { font: 600 10px/1 var(--sans); }
.ko2-txt { position: relative; flex: 1; min-width: 0; display: grid; }
.ko2-txt b { font-size: 13px; font-weight: 500; }
.ko2-txt small { font-size: 11px; color: var(--fm-mute); }
.ko2-txt em { grid-area: 3 / 1; margin-top: 7px; font-style: normal; font-size: 12px; line-height: 1.3; }
.ko2-f { color: var(--fm-faint); opacity: calc(1 - clamp(0, var(--r) * 3 - 2, 1)); }
.ko2-e { opacity: clamp(0, var(--r) * 3 - 2, 1); }
.ko2-ok { position: absolute; right: 10px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--fm-ok); opacity: clamp(0, var(--r) * 3 - 2, 1); }

/* ===== Vaktmästaren: avbrottet ===== */
.va2 { position: absolute; left: 0; right: 0; top: 0; height: 302px; padding: 18px 20px; }
.va2-h { display: flex; justify-content: space-between; align-items: center; }
.va2-h small { display: block; font-size: 11px; color: var(--fm-mute); }
.va2-h b { font-size: 15px; font-weight: 500; }
.va2-pill { position: relative; width: 196px; height: 30px; }
.va2-pill em { position: absolute; right: 0; top: 0; height: 30px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 99px; font-style: normal; font-size: 12.5px; white-space: nowrap; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--fm-line); }
.va2-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--fm-ok); }
.va2-fel { color: #FFD3E8; background: rgba(255,79,171,.12) !important; box-shadow: inset 0 0 0 1px rgba(255,79,171,.4) !important; }
.va2-fel i { background: var(--fm-pink) !important; }
.va2-ticks { display: grid; grid-template-columns: repeat(36, 1fr); gap: 3px; height: 54px; margin-top: 20px; }
.va2-ticks i { border-radius: 2px; background: rgba(95,211,154,.7); opacity: var(--v); transform: scaleY(calc(.4 + .6 * var(--v))); transform-origin: bottom; }
.va2-ticks i.fel { background: var(--fm-pink); }
.va2-ax { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10.5px; color: var(--fm-faint); font-variant-numeric: tabular-nums; }
.va2-checks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.va2-checks li { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); }
.va2-checks i { grid-row: span 2; width: 7px; height: 7px; border-radius: 50%; background: var(--fm-ok); }
.va2-checks .va2-form i { background: color-mix(in oklch, var(--fm-pink) calc(var(--r1) * (1 - var(--r3)) * 100%), var(--fm-ok)); }
.va2-checks b { font-size: 12.5px; font-weight: 500; }
.va2-checks small { position: relative; display: grid; font-size: 11px; color: var(--fm-mute); }
.va2-checks small em { grid-area: 1 / 1; font-style: normal; }
.va2-log { position: absolute; left: 0; right: 0; top: 318px; list-style: none; margin: 0; padding: 0; }
.va2-log li { position: absolute; left: 0; right: 0; display: grid; grid-template-columns: 82px 1fr; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--fm-line); font-size: 13px; }
.va2-log li:nth-child(1), .va2-log li:nth-child(2) { top: 0; }
.va2-log li:nth-child(3) { top: 40px; } .va2-log li:nth-child(4) { top: 96px; } .va2-log li:nth-child(5) { top: 152px; border-bottom: 1px solid var(--fm-line); }
.va2-log time { color: var(--fm-mute); font-variant-numeric: tabular-nums; }
.va2-log b { display: block; font-weight: 500; }
.va2-log span { color: var(--fm-mute); }
.va2-log li:not(:first-child) span { color: var(--fm-ink); }
.va2-log li span:has(b) { color: var(--fm-mute); }
.va2-log li span:has(b) b { color: var(--fm-ink); }
.va2-l-fel span { color: #FFB4D9 !important; }
.va2-l-larm b { color: var(--fm-pink) !important; }
.va2-ex { position: absolute; right: 2px; bottom: 0; font-size: 11px; color: var(--fm-faint); }

/* ===== Rapporten: siffrorna byggs upp ===== */
.ra2 { position: absolute; left: 20px; right: 20px; top: 0; bottom: 0; padding: 20px 22px; display: block; }
.ra2-h { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--fm-line); }
.ra2-h small { display: block; font-size: 11px; color: var(--fm-mute); }
.ra2-h b { font-size: 15px; font-weight: 500; }
.ra2-tid { font-size: 11.5px; color: var(--fm-mute); font-variant-numeric: tabular-nums; }
.ra2-kallor { display: flex; gap: 6px; margin-top: 12px; }
.ra2-kallor i { font-style: normal; font-size: 11px; padding: 4px 8px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); color: var(--fm-mute); opacity: calc(1 - .55 * var(--r1)); }
.ra2-stor { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 16px; }
.ra2-stor small { display: block; font-size: 12px; color: var(--fm-mute); }
.ra2-stor b { display: block; font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: .9; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ra2-stor > div > span { font-size: 12px; color: var(--fm-mute); }
.ra2-bars { display: flex; gap: 8px; align-items: flex-end; height: 86px; }
.ra2-bars span { display: grid; justify-items: center; gap: 5px; width: 30px; height: 100%; align-content: end; }
.ra2-bars i { width: 100%; height: calc(var(--h) * 66px); border-radius: 5px 5px 2px 2px; background: rgba(255,255,255,.18); transform: scaleY(clamp(0, var(--r1) * 3 - var(--k), 1)); transform-origin: bottom; }
.ra2-bars .nu i { background: var(--fm-ink); }
.ra2-bars small { font-size: 10.5px; color: var(--fm-mute); }
.ra2-rader { list-style: none; margin: 16px 0 0; padding: 0; }
.ra2-rader li { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--fm-line); font-size: 13px; opacity: var(--r); transform: translateY(calc((1 - var(--r)) * 8px)); }
.ra2-rader b { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.ra2-tolk { margin-top: 12px !important; min-height: 42px; font-size: 13.5px; line-height: 1.5; color: rgba(243,245,248,.86); }
.ra2-nasta { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.07); font-size: 13px; line-height: 1.4; }
.ra2-nasta small { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fm-mute); }
.ra2-ex { position: absolute; right: 22px; bottom: 14px; font-size: 10.5px; color: var(--fm-faint); }
.ra2-skickad { position: absolute; right: 0; top: -14px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 99px; font-size: 12px; background: rgba(20,24,32,.96); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 18px 30px -14px rgba(0,0,0,.9); }
.ra2-skickad i { width: 7px; height: 7px; border-radius: 50%; background: var(--fm-pink); }

/* ===== Animeringar: stillbild, klipp, logga, 9:16 ===== */
.an2-ram { position: absolute; top: calc(64px - var(--r3) * 30px); left: calc((420px - (420px - var(--r3) * 222px)) / 2); width: calc(420px - var(--r3) * 222px); height: calc(236px + var(--r3) * 116px);
  border-radius: calc(12px + var(--r3) * 18px); overflow: hidden; background: #111; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 50px 90px -30px rgba(0,0,0,.95); }
.an2-ram img, .an2-ram video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.an2-ram img { filter: saturate(calc(.55 + .45 * var(--r1))) brightness(calc(.82 + .18 * var(--r1))); transform: scale(calc(1.06 - .06 * var(--r1))); }
.an2-ram video { opacity: 0; }
.an2-ljus { position: absolute; inset: -20%; background: linear-gradient(105deg, transparent 38%, rgba(255,236,200,.22) 50%, transparent 62%); transform: translateX(calc(-60% + var(--r1) * 120%)); opacity: calc(var(--r1) * (1 - var(--r2))); }
.an2-logga { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; background: radial-gradient(60% 60% at 50% 50%, rgba(0,0,0,calc(.45 * var(--r2))), transparent); }
.an2-logga b { display: flex; font-family: var(--serif); font-weight: 400; font-size: calc(46px - var(--r3) * 12px); line-height: 1; letter-spacing: -.01em; color: #F6EFE4; }
.an2-logga i { font-style: normal; display: inline-block; opacity: clamp(0, var(--r2) * 14 - var(--k) * .9, 1); transform: translateY(calc((1 - clamp(0, var(--r2) * 14 - var(--k) * .9, 1)) * 12px)); }
.an2-logga small { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: rgba(246,239,228,.8); opacity: clamp(0, var(--r2) * 2 - 1, 1); }
.an2-fmt { position: absolute; left: 0; right: 0; top: 0; height: 20px; text-align: center; font-size: 12px; color: var(--fm-mute); }
.an2-fmt em { position: absolute; left: 0; right: 0; font-style: normal; }
.an2-vecka { list-style: none; margin: 0; padding: 0; }
.an2-vecka li { position: absolute; width: 96px; padding: 10px 11px; display: grid; gap: 1px; opacity: var(--r); transform: translate3d(calc((1 - var(--r)) * var(--dx, -14px)), 0, 0); }
.an2-vecka li:nth-child(1) { left: 0; top: 96px; } .an2-vecka li:nth-child(2) { left: 0; top: 196px; }
.an2-vecka li:nth-child(3) { right: 0; top: 96px; --dx: 14px; } .an2-vecka li:nth-child(4) { right: 0; top: 196px; --dx: 14px; }
.an2-vecka b { font-size: 11px; color: var(--fm-mute); font-weight: 500; }
.an2-vecka span { font-family: var(--serif); font-size: 19px; line-height: 1.05; }
.an2-vecka small { margin-top: 4px; font-size: 10.5px; color: var(--fm-ok); }

/* ===== Eget OS: offerten blir ett projekt ===== */
.os2-app { filter: brightness(calc(1 - .3 * var(--r4))); position: absolute; left: 0; top: 18px; width: 400px; height: 318px; display: grid; grid-template-columns: 100px 1fr; overflow: hidden; border-radius: 14px; background: linear-gradient(180deg, #121620, #0D1017); }
.os2-nav { display: grid; align-content: start; gap: 2px; padding: 14px 8px; border-right: 1px solid var(--fm-line); background: rgba(255,255,255,.02); }
.os2-logo { width: 26px; height: 26px; margin: 0 0 12px 6px; border-radius: 8px; display: grid; place-items: center; font-family: var(--serif); font-size: 16px; background: var(--fm-ink); color: #07090D; }
.os2-ni { position: relative; display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 8px; border-radius: 7px; font-size: 11.5px; color: rgba(243,245,248, calc(.5 + .5 * var(--a))); background: rgba(255,255,255, calc(.08 * var(--a))); }
.os2-ni i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; }
.os2-main { position: relative; }
.os2-vy { position: absolute; inset: 0; padding: 18px 18px; }
.os2-k { font-size: 11px; color: var(--fm-mute); }
.os2-vy h4 { margin: 2px 0 14px; font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.05; }
.os2-lista { list-style: none; margin: 0; padding: 0; }
.os2-lista li { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--fm-line); font-size: 12.5px; }
.os2-lista b { font-weight: 500; color: var(--fm-mute); font-variant-numeric: tabular-nums; }
.os2-off { margin: 0; display: grid; gap: 0; }
.os2-off div { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--fm-line); font-size: 12.5px; }
.os2-off dt { color: var(--fm-mute); } .os2-off dd { margin: 0; font-variant-numeric: tabular-nums; }
.os2-status { position: relative; display: block; height: 30px; margin-top: 14px; }
.os2-status em { position: absolute; left: 0; top: 0; height: 30px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 99px; font-style: normal; font-size: 12px; background: rgba(255,255,255,.07); }
.os2-ja { background: var(--fm-pink) !important; color: #1A0812; font-weight: 500; }
.os2-proj { list-style: none; margin: 0; padding: 0; }
.os2-proj li { display: grid; gap: 7px; padding: 9px 0; border-top: 1px solid var(--fm-line); }
.os2-proj span { display: flex; justify-content: space-between; font-size: 12.5px; }
.os2-proj small { color: var(--fm-mute); font-size: 11px; }
.os2-proj > li > i { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--fm-ink) calc(var(--p) * 100%), rgba(255,255,255,.1) 0); }
.os2-proj .ny { opacity: clamp(0, var(--r2) * 2 - .6, 1); transform: translateY(calc((1 - clamp(0, var(--r2) * 2 - .6, 1)) * -8px)); }
.os2-proj .ny b { font-weight: 500; }
.os2-stap { display: flex; gap: 18px; align-items: flex-end; height: 160px; padding-top: 10px; }
.os2-stap span { position: relative; display: grid; justify-items: center; align-content: end; gap: 6px; flex: 1; height: 100%; }
.os2-stap i { width: 100%; height: calc(var(--h) * 110px); border-radius: 6px 6px 2px 2px; background: rgba(255,255,255,.16); transform: scaleY(clamp(0, var(--r3) * 3 - var(--k), 1)); transform-origin: bottom; }
.os2-stap span:first-child i { background: var(--fm-ink); }
.os2-stap small { font-size: 11px; color: var(--fm-mute); }
.os2-stap b { position: absolute; top: calc(100% - var(--h) * 110px - 44px); font-family: var(--serif); font-weight: 400; font-size: 18px; opacity: clamp(0, var(--r3) * 3 - var(--k), 1); }
.os2-tel { position: absolute; right: 0; top: 150px; width: 150px; height: 290px; padding: 5px; border-radius: 28px; background: #0B0D12; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 40px 70px -24px rgba(0,0,0,.95); }
.os2-tel-in { height: 100%; border-radius: 23px; padding: 34px 8px 0; background: radial-gradient(120% 70% at 30% 0%, rgba(43,58,140,.7), transparent), radial-gradient(90% 60% at 90% 90%, rgba(91,43,134,.6), transparent), #10131B; }
.os2-klocka { display: block; text-align: center; font-size: 34px; font-weight: 300; letter-spacing: -.02em; }
.os2-notis { display: flex; gap: 7px; margin-top: 22px; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.14); }
.os2-notis i { flex: none; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-family: var(--serif); font-size: 13px; background: var(--fm-ink); color: #07090D; }
.os2-notis span { font-size: 10px; line-height: 1.3; }
.os2-notis b { display: block; font-weight: 500; }
.os2-ex { position: absolute; left: 0; bottom: 4px; font-size: 11px; color: var(--fm-faint); }

/* ===== Översikten: sju delar längs rutten ===== */
.hb-kort { position: absolute; left: 0; right: 0; top: 0; height: 280px; }
.hb-k { position: absolute; inset: 0; padding: 20px 22px; opacity: var(--a); transform: translate3d(0, calc((1 - var(--a)) * 12px), 0) scale(calc(.97 + .03 * var(--a))); }
.hb-nr { font-size: 11.5px; color: var(--fm-mute); font-variant-numeric: tabular-nums; }
.hb-n { display: block; margin-top: 4px; font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1; letter-spacing: -.015em; }
.hb-v { position: absolute; left: 22px; right: 22px; bottom: 20px; height: 150px; border-radius: 12px; overflow: hidden; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px var(--fm-line); }
.hb-web { padding: 30px 18px 0; background: #F2EEE8; color: #2A1F1A; }
.hb-bar { position: absolute; left: 0; right: 0; top: 0; height: 18px; display: flex; gap: 4px; align-items: center; padding-left: 8px; background: rgba(0,0,0,.06); }
.hb-bar i { width: 5px; height: 5px; border-radius: 50%; background: rgba(0,0,0,.2); }
.hb-web b { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1; }
.hb-l { display: block; width: 60%; height: 5px; margin-top: 10px; border-radius: 3px; background: rgba(42,31,26,.15); } .hb-l.s { width: 42%; margin-top: 6px; }
.hb-web em { display: inline-block; margin-top: 12px; padding: 5px 12px; border-radius: 99px; font-style: normal; font-size: 10px; color: #fff; background: #9C4A2E; }
.hb-ai { padding: 16px 18px; display: grid; align-content: start; gap: 10px; }
.hb-ai .q { justify-self: start; padding: 5px 10px; border-radius: 10px; font-size: 12px; background: rgba(255,255,255,.08); }
.hb-ai p:not(.q) { font-family: var(--serif); font-size: 21px; line-height: 1.15; }
.hb-ai mark { color: inherit; background: linear-gradient(var(--fm-pink), var(--fm-pink)) no-repeat 0 100% / 100% 2px; }
.hb-sms { padding: 16px 18px; display: grid; gap: 7px; align-content: start; }
.hb-sms p { max-width: 70%; padding: 7px 11px; border-radius: 13px; font-size: 12.5px; }
.hb-sms .in { justify-self: start; background: rgba(255,255,255,.1); }
.hb-sms .ut { justify-self: end; background: #E9EDF3; color: #0B0E13; }
.hb-sms small { justify-self: end; font-size: 10.5px; color: var(--fm-mute); }
.hb-ko { display: flex; align-items: center; justify-content: center; gap: 0; padding: 0 18px; }
.hb-ko span { padding: 9px 12px; border-radius: 10px; font-size: 12.5px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--fm-line); }
.hb-ko i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.7), rgba(255,255,255,.1)); }
.hb-an img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hb-an b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-weight: 400; font-size: 34px; color: #F6EFE4; background: rgba(0,0,0,.28); }
.hb-ra { display: flex; justify-content: space-between; align-items: flex-end; padding: 16px 20px; }
.hb-ra small { display: block; font-size: 11px; color: var(--fm-mute); }
.hb-ra b { font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: .9; }
.hb-st { display: flex; gap: 6px; align-items: flex-end; height: 90px; }
.hb-st i { width: 22px; height: calc(var(--h) * 90px); border-radius: 4px 4px 2px 2px; background: rgba(255,255,255,.18); }
.hb-st i.nu { background: var(--fm-ink); }
.hb-va { padding: 18px 20px; display: grid; align-content: start; gap: 18px; }
.hb-ok { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.hb-ok i { width: 7px; height: 7px; border-radius: 50%; background: var(--fm-ok); }
.hb-t { display: grid; grid-template-columns: repeat(28, 1fr); gap: 3px; height: 60px; }
.hb-t i { border-radius: 2px; background: rgba(95,211,154,.7); }
.hb-rutt { position: absolute; left: 0; top: 300px; width: 420px; height: 130px; overflow: visible; fill: none; }
.hb-bas { stroke: rgba(255,255,255,.12); stroke-width: 1.2; stroke-dasharray: 3 5; }
.hb-dra { stroke: rgba(243,245,248,.85); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--c)); }
.hb-punkter i { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #07090D; box-shadow: inset 0 0 0 1.5px rgba(255,255,255, calc(.25 + .75 * var(--r))); }
.hb-punkter i::after { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--fm-ink); transform: scale(var(--r)); }
.hb-punkter i.mal { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
.hb-punkter i.mal::after { background: var(--fm-pink); }
.hb-mal { position: absolute; transform: translate(-100%, -34px); white-space: nowrap; font-family: var(--serif); font-size: 18px; opacity: calc(.4 + .6 * var(--r6)); }

/* ----- Mobilen: rubriken överst, det aktiva steget, scenen och mätaren ----- */
@media (max-width: 760px) {
  .fm { height: calc(100svh + (var(--n) - 1) * 72svh); }
  .fm-scen { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; min-height: 600px; padding: 84px var(--gutter, 20px) max(14px, env(safe-area-inset-bottom)); row-gap: 8px; }
  .fm-text { align-self: start; }
  .fm-k, .fm-lede { display: none; }
  .fm h1 { font-size: clamp(32px, 9vw, 40px); }
  .fm-steg { margin-top: 14px; border-left: 0; min-height: 106px; align-content: start; }
  .fm-steg li { display: none; padding: 0; }
  .fm-steg li.on { display: block; }
  .fm-steg li::before { display: none; }
  .fm-steg button { padding: 0; min-height: 32px; }
  .fm-steg b { font-size: 22px; }
  .fm-steg li.on p { margin: 2px 0 0; font-size: 14px; max-height: 6em; }
  .fm-fot { gap: 14px; padding-top: 4px; }
  .fm-tips { display: none; }
  .fm-br a:last-child { display: none; }
  .fm-br a { min-height: 40px; font-size: 13px; }
}
@media (min-width: 761px) and (max-height: 820px) {
  .fm-lede { display: none; }
  .fm-steg { margin-top: 22px; }
}

/* ----- Minskad rörelse: en stilla bild av sluttillståndet ----- */
@media (prefers-reduced-motion: reduce) {
  .fm { height: auto; }
  .fm-scen { position: relative; height: auto; min-height: 100svh; }
  .fm-steg li::before, .fm-steg p, .fm-steg button { transition: none; }
  .fm-tips { display: none; }
  .fm-box { transform: scale(var(--sk, 1)); will-change: auto; }
  .fm-ljus { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .fm-text > * { animation: fm-upp 1.1s var(--fe) both; }
  .fm-text > h1 { animation-delay: .05s; } .fm-text > .fm-lede { animation-delay: .15s; } .fm-text > .fm-steg { animation-delay: .25s; }
  .fm-stage { animation: fm-in 1.4s var(--fe) .2s both; }
  .fm-fot { animation: fm-upp 1.1s var(--fe) .4s both; }
}
@keyframes fm-upp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fm-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
