/* Opening landscape and the passage from the paper into the portfolio. */
.return-curtain{position:fixed;inset:0;z-index:60;background:#0b1922;opacity:0;pointer-events:none}
.inward-journey .journey{position:relative;height:auto;background:#0b1922}
.inward-journey .journey-stage{position:relative;height:auto;overflow:clip;background:#0b1922}
.inward-journey .opening-stage{position:relative;height:100svh;min-height:0;overflow:clip;isolation:isolate}
.opening-world{position:absolute;inset:0;transform-origin:0 0}
.inward-journey.is-enhanced .site-header{
  background-image:linear-gradient(#0b1922ba,transparent);
  transition:background-color .28s,backdrop-filter .28s;
}
.inward-journey .vestlys-scrollbar{transition:opacity .24s cubic-bezier(.23,1,.32,1)}
.inward-journey.is-before-projects .vestlys-scrollbar:not(:focus-visible){
  opacity:0;
  pointer-events:none;
}
.inward-journey .story-scene.scene-opening{position:absolute;inset:0;height:100%;min-height:0;opacity:1;transform:none;pointer-events:auto;will-change:auto}
.inward-journey .hero-material{transform-origin:0 0}
/* Skyggen følger fjordens utsnitt fra første bilde, også i reservevisningen. */
@media (min-width:1100px), (width > 760px) and (min-aspect-ratio:50/41), (540px <= width <= 760px) and (min-aspect-ratio:5/4){
  .opening-world{
    --shade-left:calc(0px - var(--land-x,0px));
    --shade-top:calc(0px - var(--land-y,0px));
    --shade-bottom:calc(var(--land-height,var(--vh)) + var(--land-y,0px) - var(--vh));
    --shade-width:var(--camera-stage-width,100%);
    --shade-height:var(--vh);
  }
  .opening-stage .hero-material{overflow:visible}
  .opening-stage .hero-material::before,
  .opening-stage .opening-world>.light-veil{
    inset:var(--land-y,0px) auto auto var(--land-x,0px);
    width:var(--land-width,100%);
    height:var(--land-height,100%);
  }
}
.inward-journey #depth-canvas,.inward-journey .landscape{display:none!important}
.inward-journey .scene-art,.inward-journey .journey-progress{display:none}
.inward-journey .light-veil{background:
  linear-gradient(90deg,#07151bc9 var(--shade-left,0px),transparent calc(var(--shade-left,0px) + var(--shade-width,100%) * .68)),
  linear-gradient(0deg,#0b1922c9 var(--shade-bottom,0px),transparent calc(var(--shade-bottom,0px) + var(--shade-height,100%) * .16));opacity:.74}
.fjord-passage{
  --fjord-weather:1;
  --fjord-shade:1;
  --fjord-overlap:clamp(88px,15svh,142px);
  position:relative;
  height:clamp(360px,76svh,730px);
  margin-block-start:calc(-1 * var(--fjord-overlap));
  pointer-events:none;
  overflow:clip;
  isolation:isolate;
  mask-image:linear-gradient(transparent calc(var(--fjord-overlap) * .23),#000 var(--fjord-overlap));
}
.fjord-passage__frame{
  position:absolute;
  inset:0;
  overflow:hidden;
  transform-origin:0 0;
}
.fjord-passage__frame :is(img,video,.fjord-passage__weather){
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  object-fit:cover;
  object-position:72% 57%;
}
.fjord-passage__frame :is(video,.fjord-passage__weather){
  opacity:0;
  transition:opacity .55s cubic-bezier(.23,1,.32,1);
}
.fjord-passage.is-live .fjord-passage__weather{opacity:var(--fjord-weather)}
.fjord-passage__weather[hidden]{display:none}
.fjord-passage::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,#102229 0%,#102229db 5%,#10222965 17%,transparent 37%),
    radial-gradient(ellipse at 57% 46%,transparent 50%,#0b192263);
  opacity:var(--fjord-shade);
}
.fjord-salmon{position:absolute;inset:0 auto auto 0;width:260px;height:200px;transform-origin:0 0;pointer-events:none}
.fjord-boat{position:absolute;inset:0 auto auto 0;width:140px;height:80px;transform-origin:0 0;pointer-events:none}
.inward-journey.is-depth .journey{height:calc(var(--vh)*3.08)}
.inward-journey.is-depth .journey-stage{position:sticky;top:0;height:var(--vh);min-height:0}
.inward-journey.is-depth .opening-stage{position:absolute;inset:0;height:100%;min-height:0}
.is-depth .fjord-passage{
  --fjord-weather:0;
  --fjord-shade:0;
  position:absolute;
  z-index:1;
  inset:0;
  height:auto;
  margin:0;
  mask-image:none;
  opacity:0;
}
.is-depth .fjord-passage__frame{
  inset:0 auto auto 0;
  width:1860px;
  height:845px;
  border-radius:40px;
}
.is-still .journey-stage{--still-fjord-overlap:clamp(68px,12svh,116px)}
.is-still .fjord-passage{--fjord-overlap:var(--still-fjord-overlap);height:clamp(270px,60svh,560px)}
.inward-journey:not(.is-depth) .opening-stage{height:auto;min-height:max(100svh,var(--paper-reading-height,0px))}
.inward-journey:not(.is-depth) .story-scene.scene-opening{position:relative;inset:auto;height:auto;min-height:100svh}
.inward-journey:not(.is-depth) .hero-material{height:100%;max-height:none}
/* I stillvisning får teksten og papirbåndet rom i selve siden før første oppmåling. */
@media (width < 540px), (max-width:760px) and (aspect-ratio < 5/4){
  .inward-journey.is-still:not([data-startup-fallback]) .opening-stage .story-scene.scene-opening{
    padding-bottom:calc(18px + min(407px,(100% - 24px) * .943) + max(5.75rem,11svh));
  }
}
/* La den neste himmelen komme til syne først når den korte skjermen rulles. */
@media (min-width:540px) and (max-height:420px) and (orientation:landscape){
 .inward-journey.is-still .opening-stage{min-height:calc(100svh + var(--still-fjord-overlap))}
}
.inward-journey .scene-projects{position:relative;inset:auto;opacity:1;transform:none;pointer-events:auto;will-change:auto;min-height:0;padding-bottom:100px}
.inward-journey .scene-projects .project-gallery.is-project-rail .project-visual{height:clamp(280px,35vw,520px)}
.inward-journey .scene-projects .section-heading>p{display:block}
@media(max-width:760px){
 .inward-journey:not(.is-still):not(.is-depth) .fjord-passage{height:115svh}
 .inward-journey .scene-projects{padding:70px 0 80px;display:block}
 .inward-journey .scene-projects .section-heading{margin:0 var(--gutter) 24px}
 .inward-journey .scene-projects .project-controls{margin:0 var(--gutter) 20px}
 .inward-journey .scene-projects .project-gallery.is-project-rail .project-visual{height:390px}
 .inward-journey .light-veil{background:
   linear-gradient(0deg,#0b1922 var(--shade-bottom,0px),transparent calc(var(--shade-bottom,0px) + var(--shade-height,100%) * .14)),
   linear-gradient(180deg,#07151b91 var(--shade-top,0px),transparent calc(var(--shade-top,0px) + var(--shade-height,100%) * .48));opacity:.9}
}
@media(prefers-reduced-motion:reduce){
  .fjord-passage__frame :is(video,.fjord-passage__weather){display:none}
  .inward-journey.is-enhanced .site-header,.inward-journey .vestlys-scrollbar{transition:none}
}

.inward-journey.is-still .site-header{position:fixed}
.site-header .site-nav>a:first-child,.site-header .site-nav>.nav-feedback{display:inline-flex}
.site-header .site-nav .nav-full,.site-header .site-nav .nav-short{margin:0;font:inherit}
.site-header .site-nav .nav-full{display:inline}
.site-header .site-nav .nav-short{display:none}
.site-header .site-nav .nav-music{flex:0 0 66px;width:66px;height:44px;padding:0;gap:6px;cursor:pointer}
.site-header .nav-music .music-icon{width:27px;height:27px}
.site-header .nav-music .music-icon svg{width:19px;height:19px}
.site-header .nav-music .music-note{display:block;flex:none;width:16px;height:16px;fill:currentColor}
@media(max-width:760px){
 .site-header{display:flex;flex-wrap:wrap;align-items:center;align-content:center;height:auto;min-height:64px;gap:3px 8px;padding:8px clamp(12px,4vw,24px)}
 .site-header .site-nav{margin-inline-start:auto;max-width:100%;gap:2px}
 .site-header .site-nav .glass-control{min-height:44px;padding:0 9px;font-size:12px;white-space:nowrap}
 .site-header .site-nav .nav-music{flex-basis:60px;width:60px;padding:0}
 .inward-journey .opening-stage .scene-opening{padding-top:140px}
}
@media(max-width:440px){
 .site-header .site-nav>a.glass-control{padding-inline:7px}
 .site-header .site-nav .nav-full{display:none}
 .site-header .site-nav .nav-short{display:inline}
}
