/* Small additions on top of ndc.css for the standalone site. */
@font-face{font-family:"Figtree";font-style:normal;font-weight:300 900;font-display:swap;src:url(../fonts/figtree-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Figtree";font-style:normal;font-weight:300 900;font-display:swap;src:url(../fonts/figtree-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
img,video{max-width:100%}
picture{display:contents}
picture>source{display:none}
img[data-src]:not([src]){visibility:hidden}
.slides,.play{touch-action:pan-y}

/* Navigation slides away when scrolling down (not on the home page), comes back when scrolling up */
.nav{transition:transform .7s var(--ease)}
.nav.hidden{transform:translateY(-100%)}
html.menu-open{overflow:hidden}

/* ---------- CURSOR ----------
   A pink ring follows the mouse. Over the main links the ring closes into a pupil and a single eye opens around it,
   right at the pointer, then blinks now and then. The eye is open in the middle, so the word underneath shows through.
   Other clickable things fill the ring pink. Mouse/trackpad only. */
html.has-cursor,html.has-cursor *{cursor:none!important}
.cursor,.cursor-eye{position:fixed;left:0;top:0;z-index:9999;pointer-events:none;opacity:0;transition:opacity .35s var(--ease)}
.cursor.visible,.cursor-eye.visible{opacity:1}
.cur-shape{position:absolute;left:0;top:0;width:16px;height:16px;transform:translate(-50%,-50%);background:var(--pink);border-radius:999px;
  transition:width .5s var(--morph),height .5s var(--morph),transform .3s var(--ease),opacity .4s var(--ease) .25s}
/* Dot → eye: the dot is the eye's own pupil. Over a link or button the eye opens around it, then the dot hands over to the pupil. */
.cursor{--morph:cubic-bezier(.65,0,.35,1)}
.cursor.on .cur-shape{opacity:0;transition:opacity .25s var(--ease) .35s}
.cursor.press .cur-shape{transform:translate(-50%,-50%) scale(.75)}
.cur-eyes{position:absolute;left:0;top:0;width:56px;height:46px;transform:translate(-50%,-50%) scale(.45);overflow:visible;opacity:0;
  transition:opacity .3s var(--ease),transform .45s cubic-bezier(.65,0,.35,1)}
.cursor-eye.on .cur-eyes{opacity:1;transform:translate(-50%,-50%) scale(1);
  transition:opacity .45s var(--ease) .1s,transform .8s var(--ease-out) .05s}
.cur-eyes .eye-in{transform-box:fill-box;transform-origin:center;transform:scaleY(.04);transition:transform .35s cubic-bezier(.65,0,.35,1)}
.cursor-eye.on .cur-eyes .eye-in{transform:scaleY(1);transition:transform .85s var(--ease-out) .15s}
.cursor-eye.blink .cur-eyes .eye-in{animation:blink .32s cubic-bezier(.65,0,.35,1)}
.cursor-eye.on.press .cur-eyes{transform:translate(-50%,-50%) scale(.88);transition:transform .25s var(--ease)}
@keyframes blink{0%,100%{transform:scaleY(1)}45%{transform:scaleY(.05)}}

@media (prefers-reduced-motion:reduce){
  .cursor-eye.on .cur-eyes .eye-in{transform:scaleY(1)}
  .cursor-eye.on .cur-eyes{opacity:1}
}

/* Menu links: no underline, they just turn pink */
.nav-links a::after{display:none!important}

/* ---------- Crew on project pages ---------- */
.crew-list{padding:0 var(--gutter) clamp(1.6rem,3.6vw,4.4rem);display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);gap:clamp(1rem,4vw,5rem);align-items:start}
.crew-h{margin:0;font-size:clamp(.8rem,.95vw,1.05rem);font-weight:500;opacity:.6;letter-spacing:.06em;text-transform:uppercase;line-height:1.3;padding:0}
.crew-list dl{margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,15rem),1fr));gap:clamp(.9rem,1.6vw,1.6rem) clamp(1.5rem,4vw,4rem)}
.crew-list dl>div{display:flex;flex-direction:column;gap:.15em}
.crew-list dt{font-weight:500;font-size:clamp(.8rem,.95vw,1.05rem);opacity:.6;line-height:1.3}
.crew-list dd{margin:0;font-size:clamp(1.05rem,1.6vw,1.8rem);line-height:1.2}
@media (max-width:640px){.crew-list{grid-template-columns:minmax(0,1fr);gap:.8rem}}

/* ---------- "Neste prosjekt": same pill as "Bla ned" on the home page, always at hand ---------- */
.next-pill{position:sticky;bottom:calc(clamp(1rem,4vh,2.6rem) + env(safe-area-inset-bottom,0px));z-index:60;display:flex;width:fit-content;align-items:center;gap:.6em;
  margin:clamp(2.5rem,6vw,5rem) auto clamp(1.6rem,3vw,2.6rem);padding:.75em 1.6em;border-radius:999px;background:var(--veil);color:var(--pink);font-size:clamp(.85rem,1.3vw,1.4rem);letter-spacing:.01em;
  text-transform:uppercase;white-space:nowrap;box-shadow:0 2px 18px rgba(0,0,0,.08);
  transition:background-color .3s var(--ease),opacity .4s var(--ease)}
.next-pill:hover{background:rgba(255,255,255,.92)}
.next-pill .arr{width:1.5em;height:.75em;animation:nudgeX 2.2s var(--ease) infinite}
html.menu-open .next-pill{opacity:0;pointer-events:none}
@media (prefers-reduced-motion:reduce){.next-pill .arr{animation:none}}

/* ---------- Opening images from the middle, done on the graphics card ---------- */
html.rv-curtains .reveal-scroll,html.rv-curtains .reveal-scroll.is-in{clip-path:none!important;animation:none!important;overflow:hidden}
.rv-host{display:block;position:relative;overflow:hidden}
.rv-host>img,.rv-host>picture>img,.rv-host>video{display:block}
.rv-c{position:absolute;top:-1px;bottom:-1px;width:calc(50% + 1px);z-index:3;pointer-events:none;
  transition:transform 1.6s cubic-bezier(.16,1,.3,1)}
.rv-l{left:0}
.rv-r{right:0}
.is-in>.rv-l{transform:translate3d(-100%,0,0)}
.is-in>.rv-r{transform:translate3d(100%,0,0)}

/* ---------- Phones: in the project list the name (and description) take their own full row above the picture ---------- */
@media (max-width:640px){
  .proj-list .proj-head{flex:1 1 100%}
  .proj-list .proj-desc{margin-bottom:.7rem}
}

/* ---------- Touch screens (phones, iPad) ---------- */
@media (hover:none){
  /* project list: the picture is always shown, there is no hover to open it */
  .proj-list .proj-media{grid-template-rows:1fr}
  .proj-list .proj-media .ph{opacity:1}
}
@media (pointer:coarse){
  /* small links get a bigger invisible touch area, without moving anything */
  .back,.footer a,.proj-open,.nav-links a,.bar-name,.crew-intro a,.person-txt a{position:relative}
  .back::before,.footer a::before,.proj-open::before,.nav-links a::before,.bar-name::before,.crew-intro a::before,.person-txt a::before{content:"";position:absolute;inset:-12px -6px}
  .next-pill{padding:.9em 1.8em}
}
