/* One full hero landscape, with true transparent paper and metal in front. */
.hero-material{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:clip;background:#0b1922;--stacked-shade:linear-gradient(180deg,rgba(5,19,27,.88),rgba(5,19,27,.67) 29%,rgba(5,19,27,.16) 48%,transparent 65%)}
.hero-material__world,.hero-material__clouds,.hero-material__cloud-banks,.hero-material__cloud-image,.hero-material__terrain{position:absolute;inset:0;width:100%;height:100%;max-width:none;pointer-events:none}
.hero-material__world{object-fit:cover;object-position:68% center}
/* Samme utsnitt som fitHeroLandscape, også før oppstartsmodulen er lastet. */
@supports (width:1cqw){
  .opening-world{
    container-type:size;
    --camera-stage-width:100cqw;
    --land-width:max(100cqw,calc(100cqh * 1677 / 938));
    --land-height:max(100cqh,calc(100cqw * 938 / 1677));
    --land-x:calc((100cqw - var(--land-width)) * .68);
    --land-y:min(calc((100cqh - var(--land-height)) * .5),calc(100cqh - var(--land-height) * 894 / 938));
  }
  .hero-material{container-type:size}
  .hero-material:not([data-hero-fit]) :is(.hero-material__world,.hero-material__terrain){
    width:var(--land-width);
    height:var(--land-height);
    left:var(--land-x);
    top:var(--land-y);
  }
}
.hero-material__clouds{
  -webkit-mask:url('./assets/hero-original/cloud-mask.svg') center / 100% 100% no-repeat;
  mask:url('./assets/hero-original/cloud-mask.svg') center / 100% 100% no-repeat;
}
.hero-material__cloud-banks{
  -webkit-mask:url('./assets/hero-original/cloud-banks-mask.svg') center / 100% 100% no-repeat;
  mask:url('./assets/hero-original/cloud-banks-mask.svg') center / 100% 100% no-repeat;
}
@supports not ((mask-image:linear-gradient(#fff,#fff)) or (-webkit-mask-image:linear-gradient(#fff,#fff))){
  .hero-material__clouds{display:none}
}
.hero-material__cloud-image{will-change:transform}
.hero-material__terrain{display:none;z-index:3}
@supports (mask-image:url("assets/hero-original/shore-mask.webp")){
  .hero-material__terrain{display:block;mask:url("assets/hero-original/shore-mask.webp") 0 0 / 100% 100% no-repeat}
}
.hero-material::before{content:'';position:absolute;inset:0;z-index:4;pointer-events:none;
  background:linear-gradient(90deg,#0b19224d var(--shade-left,0px),transparent calc(var(--shade-left,0px) + var(--shade-width,100%) * .58))}
.hero-material__picture{position:absolute;inset:0 0 auto auto;width:auto;height:100%;aspect-ratio:1677/938;z-index:2;transform-origin:72% 45%;will-change:transform}
.hero-material__fallback,.hero-material__canvas,.hero-material__type{position:absolute;inset:0;width:100%;height:100%;max-width:none;pointer-events:none}
.hero-material__fallback{object-fit:fill}
.is-fitting-paper .hero-material:not([data-hero-fit]) .hero-material__picture{visibility:hidden}
@media(max-width:760px) and (orientation:portrait){
  .hero-material:not([data-hero-fit]) .hero-material__picture{width:calc((100% - 24px) * .98 * 1677 / 810);height:auto;top:auto;bottom:5%;right:-4%}
}
.hero-material__canvas{z-index:1}
.hero-material__type{z-index:2;font-family:Hanken,'Segoe UI',sans-serif;overflow:visible}
.hero-material__brand{color:#29251f}
.hero-material picture{display:contents}
.inward-journey.is-preparing .hero-material[data-paper-print]{visibility:visible}
.paper-rest-ink{visibility:hidden;overflow:hidden}
.has-rest-ink .paper-rest-ink{visibility:visible}
.has-live-ink .paper-rest-ink{visibility:hidden}
:is(.has-rest-ink,.has-live-ink) .hero-material__brand>:is(image,text),
:is(.has-rest-ink,.has-live-ink) .paper-copy-ink{opacity:0}
.opening-signature {
  display: flex;
  align-items: center;
  gap: .8em;
  margin-bottom: clamp(8px, 1.4vh, 16px);
  color: #efd9b5;
  font-size: clamp(.8125rem, 1vw, .9375rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .12em;
}
.opening-signature::after {
  content: "";
  width: 2em;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.scene-opening .scene-copy {
  position: relative;
  isolation: isolate;
}
/* Skyggen følger tekstfeltet når linjene brytes eller skriften forstørres. */
.scene-opening .scene-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1.15rem -2.5rem -1.1rem calc(-1 * var(--gutter));
  background: radial-gradient(ellipse 94% 79% at 24% 60%, #05151de6 25%, #07181fc2 58%, #0919225c 80%, transparent);
  filter: blur(clamp(.75rem, 1.8vw, 1.75rem));
  pointer-events: none;
}
.scene-opening .scene-copy > p {
  color: #efece2;
}
.scene-opening .scene-copy h1 {
  text-wrap: balance;
}
.scene-opening .hero-headline-accent {
  display: block;
  color: #f0d7ab;
}
.opening-stage[data-hero-layout=wide] .scene-copy::before {
  opacity: .68;
}
.hero-material:is([data-hero-fit=stacked],[data-hero-fit=compact])::before{background:var(--stacked-shade)}
@media (width < 540px), (max-width:760px) and (aspect-ratio < 5/4), (width < 1100px) and (aspect-ratio < 50/41){
  .hero-material:not([data-hero-fit])::before{background:var(--stacked-shade)}
}
@media(max-width:1000px){
  .is-enhanced .scene-opening{align-items:flex-start;padding-top:102px}
  .scene-opening .scene-copy{width:100%;max-width:570px}
  .scene-opening .scene-copy h1{max-width:570px;font-size:clamp(34px,6vw,52px);line-height:1.04}
  .scene-opening .scene-copy h1 br{display:none}
  .scene-opening .scene-copy>p{max-width:490px!important;margin-top:15px;font-size:15px!important;line-height:1.5}
  .scene-opening .scene-actions{margin-top:18px;gap:10px}
  .scene-opening .scene-actions a{min-height:42px;font-size:13px}
  .hero-material::before{background:linear-gradient(180deg,#0b192233 var(--shade-top,0px),transparent calc(var(--shade-top,0px) + var(--shade-height,100%) * .60))}
  .journey-stage[data-scene="0"] .light-veil{background:linear-gradient(0deg,#0b192240,transparent 28%)}
  .hero-material__picture{transform-origin:63% 46%}
  html:not(.is-enhanced) .scene-opening{min-height:850px;padding-top:105px}
  html:not(.is-enhanced) .hero-material{height:850px;max-height:none;opacity:1}
}
:is(.journey-stage,.opening-stage-wrapper,.opening-stage)[data-hero-layout=stacked] .scene-opening{padding:106px var(--gutter) 0;align-items:flex-start}
:is(.journey-stage,.opening-stage-wrapper,.opening-stage)[data-hero-layout=stacked] .scene-opening .scene-copy{width:100%;max-width:680px}
:is(.journey-stage,.opening-stage-wrapper,.opening-stage)[data-hero-layout=stacked] .scene-opening .scene-copy h1{font-size:clamp(38px,5.6vw,56px);max-width:680px;line-height:1.04}
:is(.journey-stage,.opening-stage-wrapper,.opening-stage)[data-hero-layout=stacked] .scene-opening .scene-copy h1 br{display:none}
:is(.journey-stage,.opening-stage-wrapper,.opening-stage)[data-hero-layout=stacked] .scene-opening .scene-copy>p{max-width:630px!important;margin-top:16px;font-size:17px!important;line-height:1.5}
:is(.journey-stage,.opening-stage-wrapper,.opening-stage)[data-hero-layout=stacked] .scene-opening .scene-actions{margin-top:20px;gap:12px}
@media(max-width:420px){.is-enhanced .scene-opening{padding-top:96px}.scene-opening .scene-copy h1{font-size:34px}.scene-opening .scene-copy>p{font-size:14px!important;line-height:1.45;margin-top:13px}.scene-opening .scene-actions{margin-top:15px}}
@media(prefers-reduced-motion:reduce){
  .hero-material__picture,.hero-material__world{will-change:auto}
  .hero-material__clouds{display:none}
}
