/* r20: keep the depth journey, with a deliberate compact composition. */
.is-enhanced .journey-stage{min-height:0}
.site-header nav{flex-shrink:0}
.is-enhanced .scene-structure .form-showcase{min-height:0}
.form-floating-layer[data-form-compact=true][data-form-shallow=true] .form-piece-budskap .form-piece-content{padding:10px 12px}
.form-floating-layer[data-form-compact=true][data-form-shallow=true] .form-piece-budskap h3{font-size:22px;line-height:1.04;margin-top:10px}
.form-floating-layer[data-form-compact=true][data-form-shallow=true] .form-piece-brand{font-size:12px}
.form-floating-layer[data-form-compact=true][data-form-shallow=true] .form-piece-brand img{width:20px;height:16px}
.form-floating-layer[data-form-compact=true][data-form-shallow=true] .form-piece-budskap p{display:none}
.form-floating-layer[data-form-compact=true][data-form-shallow=true] .form-piece-veien-videre .form-piece-handle{top:0;left:0;height:28px;min-height:28px;font-size:11px;color:var(--paper)}
.experience-options{max-width:calc(100% - var(--gutter)*2);bottom:calc(16px + env(safe-area-inset-bottom))}
footer{padding-bottom:110px}
@media(min-width:761px){
  .opening-stage[data-hero-layout=wide] .scene-opening{align-items:safe center}
  .scene-opening .scene-copy{width:46%;max-width:44rem}
  .scene-opening .scene-copy h1{
    max-width:100%;
    font-size:clamp(2.5rem,min(.25rem + 5.55vw,3rem + 2.6vw,11.1svh),6.5rem);
    line-height:1.03;
  }
  .scene-opening .scene-copy>p{
    max-width:min(100%,38ch)!important;
    margin-top:clamp(1rem,1.55vw,1.5rem);
    font-size:clamp(1rem,.8rem + .45vw,1.1875rem)!important;
    line-height:1.5;
  }
}
@media(min-width:761px) and (max-width:1200px){
  .is-enhanced .scene-opening{padding-top:100px;align-items:center}
  .scene-opening .scene-copy h1 br{display:initial}
  .scene-opening .scene-actions{gap:10px;margin-top:25px;flex-wrap:wrap}
  .scene-opening .scene-actions a{min-height:44px;font-size:13px}
  .hero-material::before{opacity:.5}
}
@media(min-width:761px) and (max-height:640px){
  .is-enhanced .scene-opening{padding-top:85px;padding-bottom:100px}
  .scene-opening .scene-copy>p{margin-top:18px;font-size:15px!important;line-height:1.5}
  .scene-opening .scene-actions{margin-top:20px}
}
@media(max-width:760px){
  :root{--gutter:clamp(16px,5.3vw,30px)}
  .site-header{height:80px;gap:10px}
  .site-header .brand{font-size:22px;gap:8px}
  .site-header nav .nav-contact{padding:0 12px;min-height:44px;font-size:12px}
  .inward-journey .opening-stage .story-scene.scene-opening{
    padding:max(calc(var(--opening-header-height,4rem) + .75rem),clamp(76px,12svh,112px)) var(--gutter) 0;
    align-items:flex-start;
  }
  .scene-opening .scene-copy{width:100%;max-width:570px}
  .scene-opening .scene-copy h1{font-size:clamp(34px,9.2vw,48px);line-height:1.04;max-width:520px}
  .scene-opening .scene-copy h1 br{display:none}
  .scene-opening .scene-copy>p{font-size:16px!important;line-height:1.45;margin-top:14px;max-width:490px!important}
  .scene-opening .scene-actions{margin-top:18px;gap:8px;flex-wrap:nowrap}
  .scene-opening .scene-actions a{font-size:12px;min-height:44px;padding:0 15px;white-space:nowrap}
  .experience-options{bottom:calc(10px + env(safe-area-inset-bottom))}
  .experience-options #music-toggle{min-width:142px;padding:6px 10px 6px 7px}
  .is-enhanced .scene-structure{padding-top:106px;padding-bottom:92px;align-items:flex-start}
  .scene-structure .form-layout{gap:12px}
  .scene-structure .scene-copy h2{font-size:32px}
  .scene-structure .scene-copy>p:not(.form-kicker){font-size:14px!important;line-height:1.4;max-width:42ch!important;margin-top:12px}
  .is-enhanced .scene-structure .form-workspace{height:calc(var(--vh) - 338px);min-height:286px;max-height:440px}
  .is-enhanced .scene-projects{padding-top:108px;padding-bottom:94px}
  .scene-projects .section-heading h2{font-size:32px}
  .scene-projects .project-controls,.is-enhanced .scene-projects .project-controls{gap:5px;padding:3px}
  .scene-projects .project-controls .round-button{min-width:60px;padding:0 9px;font-size:12px}
  .scene-projects .project-gallery.is-project-rail .project-info h3{font-size:22px}
  .is-enhanced .scene-projects .project-gallery.is-project-rail .project-visual{height:clamp(160px,calc(var(--vh) - 385px),420px)}
  .contact-form textarea,.contact-form input{font-size:16px}
}
@media(max-width:760px) and (max-height:640px){
  .scene-opening .scene-copy h1{font-size:32px}
  .scene-opening .scene-copy>p{font-size:16px!important;line-height:1.4;margin-top:10px}
  .scene-opening .scene-actions{margin-top:12px}
  .is-enhanced .scene-structure{padding-top:101px;padding-bottom:84px}
  .scene-structure .scene-copy h2{font-size:29px}
  .scene-structure .scene-copy>p:not(.form-kicker){font-size:13px!important;margin-top:9px}
  .scene-structure .scene-copy>p:not(.form-kicker){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}
  .is-enhanced .scene-structure .form-workspace{height:calc(var(--vh) - 250px);min-height:285px}
  .scene-structure .form-layout{gap:8px}
  .scene-projects .section-heading h2{font-size:28px}
  .scene-projects .project-gallery.is-project-rail .project-info h3{font-size:20px}
}
@media(min-width:540px) and (max-width:760px) and (min-aspect-ratio:5/4){
  .inward-journey .opening-stage .story-scene.scene-opening{
    padding-block:max(calc(var(--opening-header-height,4rem) + .75rem),22svh) 1rem;
  }
  .scene-opening .scene-copy{width:min(52vw,22rem)}
  .scene-opening .scene-copy h1{font-size:clamp(2rem,5.8vw,2.5rem)}
  .inward-journey .opening-stage .scene-copy::before{
    opacity:1;
    background:radial-gradient(ellipse 106% 84% at 35% 60%,#05151dec 30%,#07181fd6 61%,#09192275 82%,transparent);
  }
}
@media(max-width:360px){
  .site-header .brand{font-size:20px;gap:6px}
  .site-header .brand-mark{width:30px;flex-basis:30px}
  .site-header nav .nav-contact{font-size:11px;padding:0 10px}
  .scene-opening .scene-actions a{font-size:11px;padding:0 11px}
}
/* Behold plass til knappens glød, men klipp ved skjermkanten på smale visninger. */
@media (max-width:440px){body > footer{overflow-x:clip}}
