/* NAVN (#navnet): VENTURE + ENDOW → VENDOW. Ren typografi. Eies av agent NAVN.
   Scenen er W×H designpiksler og skaleres med --z via JS (transform: scale). Alle mål under er designpiksler. */

.n-sek { position: relative; height: 220svh; background: var(--vio); }
.n-fast { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.n-stage { --z: 1px; --g: 18px; position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; background: var(--vio); overflow: hidden; color: var(--cream); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.n-stage[data-m="tel"] { --g: 16px; }

/* feltene: fulle flater, klippet med clip-path fra JS */
.n-felt { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; will-change: clip-path; }
.n-cob { background: var(--cob); z-index: 1; clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
.n-gnist { background: var(--acid); z-index: 2; clip-path: polygon(0 0, 0 0, 0 0); }
.n-blk { background: var(--ink); z-index: 3; clip-path: polygon(0 0, 0 0, 0 0); }

.n-sh { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 5; }
.n-lag { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.n-t { font-family: var(--f-big); font-weight: 900; font-stretch: calc(var(--wd, 76) * 1%); font-variation-settings: 'wght' 900, 'wdth' var(--wd, 76);
  letter-spacing: -0.02em; line-height: 1; text-transform: uppercase; white-space: pre; position: absolute; left: 0; top: 0; margin: 0; color: var(--cream); will-change: transform; transform-origin: 0 0; }
.n-probe { position: absolute; left: -9999px; top: 0; visibility: hidden; font-size: 100px; }
.n-probe .n-t { position: static; display: inline-block; transition: none !important; }

/* uten JS: pen, stablet side (alt innhold er i HTML) */
.n-ord { position: relative; padding: 0 var(--g); }
.n-ordtxt { display: block; font-size: 64px; margin-top: 24px; }
.n-def { font-family: var(--f-text); font-weight: 500; font-size: 22px; line-height: 1.32; max-width: 620px; margin-top: 10px; }
.n-sent { font-family: var(--f-text); font-weight: 600; font-size: 30px; line-height: 1.15; max-width: 700px; margin-top: 10px; }
.n-kap { position: absolute; z-index: 7; left: var(--g); top: 74px; width: calc(100% - 2 * var(--g)); color: var(--cream); }

/* uten JS: scenen blir en vanlig stablet seksjon (n-js settes av et lite skript i seksjonen) */
.n-sek:has(.n-stage:not(.n-js)) { height: auto; }
.n-sek:has(.n-stage:not(.n-js)) .n-fast { position: relative; height: auto; overflow: visible; }
.n-stage:not(.n-js) { position: relative; height: auto; overflow: visible; padding: 110px 0 70px; }
.n-stage:not(.n-js) .n-sh { position: relative; height: auto; }
.n-stage:not(.n-js) .n-lag { display: none; }
.n-stage:not(.n-js) .n-ord { margin-bottom: 26px; }
.n-stage:not(.n-js) .n-sent span { display: inline; }

/* med JS: ordene tegnes bokstav for bokstav; teksten posisjoneres av JS */
.n-js .n-ord { position: static; padding: 0; }
.n-js .n-ordtxt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; font-size: 1px; }
.n-js .n-def, .n-js .n-sent { position: absolute; left: 0; top: 0; margin: 0; max-width: none; transform-origin: 0 0; text-wrap: pretty; color: var(--cream); }
.n-js .n-def { font-size: 28px; line-height: 1.3; }
.n-js .n-sent { font-size: 64px; line-height: 1.08; letter-spacing: -.022em; text-wrap: balance; }
.n-js .n-sent span { display: block; will-change: transform; }
.n-js .n-sent span:first-child { color: var(--acid); }
.n-rl { position: absolute; left: 0; top: 0; font-family: var(--f-meta); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; line-height: 1; color: var(--cream); border-top: 1px solid rgba(246,242,232,.55); padding-top: 9px; will-change: transform; }
.n-rl.ac { color: var(--acid); border-top-color: rgba(212,255,63,.7); }

.n-stage[data-m="tel"] .n-js .n-def, .n-js.n-tel .n-def { font-size: 18px; line-height: 1.3; }
.n-stage[data-m="tel"] .n-def { font-size: 18px; }
.n-stage[data-m="tel"] .n-rl { font-size: 10.5px; padding-top: 7px; }

@media (prefers-reduced-motion: reduce) {
  .n-sek { height: auto; }
  .n-fast { position: relative; height: 100svh; }
}
