/* V2 · LINJE: installasjonen i kapittel 05 «Det vi bygger mot». Eies av agent LINJE. Prefiks l-.
   Én festet scene (2D canvas): én selskapslinje i drift → mange linjer på samme plattform → holdebilde med H2.
   Tekst (kapitteletikett, bildetekster, H2, tegnforklaring) står i HTML i et eget bånd øverst og nederst; canvas tegner bare mellom dem. */

#ambisjon .l-hog { position: relative; background: var(--night); color: var(--cream); }
#ambisjon .l-stikk { position: relative; background: var(--night); padding: calc(76 * var(--z)) var(--g) calc(64 * var(--z)); overflow: hidden; }
#ambisjon .l-c { display: none; }
#ambisjon .l-kap { position: relative; z-index: 3; }
#ambisjon .l-kap .nr { margin-left: auto; }
#ambisjon .l-bt { display: none; }
#ambisjon .l-h { position: relative; z-index: 3; margin-top: calc(40 * var(--z)); font-size: min(calc(104 * var(--z)), 7.2vw); --wd: 72; line-height: .88; }
#ambisjon .l-r { display: block; white-space: nowrap; }
#ambisjon .l-hl { position: relative; display: inline-block; padding: 0 .1em; margin: 0 .04em 0 -.04em; color: var(--ink); isolation: isolate; }
#ambisjon .l-hl::before { content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: .05em; bottom: .03em; background: var(--acid); transform: skewX(26deg); }
#ambisjon .l-leg { position: relative; z-index: 3; display: flex; gap: calc(26 * var(--z)); margin-top: calc(40 * var(--z)); font-size: calc(11 * var(--z)); }
#ambisjon .l-leg li { display: flex; align-items: center; gap: calc(9 * var(--z)); white-space: nowrap; }
#ambisjon .l-leg i { display: block; width: calc(22 * var(--z)); height: calc(9 * var(--z)); transform: skewX(26deg); border: 1.5px solid var(--cream); }
#ambisjon .l-leg .d i { background: var(--vio); border-color: var(--vio); }
#ambisjon .l-leg .a i { border-style: dashed; opacity: .7; }
#ambisjon .l-hint { display: none; }

/* ---------- med JS: festet scene ---------- */
html.l-js #ambisjon .l-hog { height: 300svh; }
html.l-js #ambisjon .l-stikk { position: sticky; top: 0; height: 100svh; padding: 0; touch-action: pan-y; }
html.l-js #ambisjon .l-c { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
html.l-js #ambisjon .l-kap { position: absolute; left: var(--g); right: var(--g); top: calc(66 * var(--z)); }
html.l-js #ambisjon .l-bt { display: block; position: absolute; z-index: 3; left: var(--g); right: var(--g); top: calc(98 * var(--z)); pointer-events: none; }
html.l-js #ambisjon .l-bt li { position: absolute; left: 0; top: 0; display: flex; align-items: baseline; gap: calc(16 * var(--z)); max-width: calc(900 * var(--z));
  font: 600 calc(34 * var(--z)) / 1.12 var(--f-text); letter-spacing: -.02em; opacity: 0; transform: translateY(8px); transition: opacity .16s ease, transform 0s .16s; }
html.l-js #ambisjon .l-bt li.on { opacity: 1; transform: none; transition: opacity .4s ease .16s, transform .5s var(--ease) .16s; }
html.l-js #ambisjon .l-bt b { flex: none; font-weight: 400; font-size: calc(11 * var(--z)); letter-spacing: .1em; opacity: .6; transform: translateY(calc(-6 * var(--z))); }
html.l-js #ambisjon .l-h { position: absolute; left: var(--g); top: calc(100 * var(--z)); width: max-content; margin: 0; opacity: 0; will-change: opacity, transform; }
html.l-js #ambisjon .l-leg { position: absolute; left: var(--g); bottom: calc(20 * var(--z)); margin: 0; opacity: 0; }
html.l-js #ambisjon .l-hint { letter-spacing: .1em; }
html.l-js #ambisjon .l-leg { background: var(--night); padding: calc(8 * var(--z)) calc(14 * var(--z)) calc(8 * var(--z)) 0; box-shadow: 0 0 calc(18 * var(--z)) calc(10 * var(--z)) var(--night); }
html.l-js #ambisjon .l-hint { display: block; position: absolute; z-index: 3; right: var(--g); bottom: calc(20 * var(--z)); font-size: calc(11 * var(--z)); opacity: 0; pointer-events: none; }

/* ---------- telefon: tekstbånd øverst, grafikkbånd under, tegnforklaring nederst ---------- */
@media (max-width: 899px) {
  #ambisjon .l-stikk { padding: 64px var(--g) 48px; }
  #ambisjon .l-kap, #ambisjon .l-leg, #ambisjon .l-bt b { font-size: 11px; }
  #ambisjon .l-h { font-size: 12.6vw; margin-top: 26px; line-height: .9; }
  #ambisjon .l-r { white-space: normal; }
  #ambisjon .l-l { display: block; white-space: nowrap; }
  #ambisjon .l-hl { display: inline; padding: 0 .08em; margin: 0; background: var(--acid); }
  #ambisjon .l-hl::before { display: none; }
  #ambisjon .l-leg { gap: 16px; margin-top: 28px; }
  #ambisjon .l-leg li { gap: 7px; }
  #ambisjon .l-leg i { width: 18px; height: 8px; }
  html.l-js #ambisjon .l-hog { height: 290svh; }
  html.l-js #ambisjon .l-kap { top: 58px; }
  html.l-js #ambisjon .l-bt { top: 86px; }
  html.l-js #ambisjon .l-bt li { font-size: 21px; line-height: 1.14; gap: 10px; max-width: none; right: 0; }
  html.l-js #ambisjon .l-bt b { font-size: 11px; transform: translateY(-3px); }
  html.l-js #ambisjon .l-h { top: 86px; }
  html.l-js #ambisjon .l-leg { bottom: 14px; }
  html.l-js #ambisjon .l-hint { display: none; }
}

/* ---------- redusert bevegelse: holdebildet står ferdig, én skjerm, ikke festet ---------- */
@media (prefers-reduced-motion: reduce) {
  html.l-js #ambisjon .l-hog { height: 100svh; }
  html.l-js #ambisjon .l-stikk { position: relative; }
  html.l-js #ambisjon .l-bt { display: none; }
  html.l-js #ambisjon .l-h, html.l-js #ambisjon .l-leg { opacity: 1; }
}
