/* Fill the full hero width; keep the products grounded and suppliers visible. */
@media (min-width:1081px) {
  .hero.home-hero { height:max(640px,50vw); max-height:none; }
  .home-hero .hero-scene img { object-fit:cover; object-position:center bottom; }
  .home-hero .hero-copy { max-width:min(490px,calc(46vw - max(52px,(100vw - 1320px) / 2) - 28px)); }
}
.home-hero .hero-scene::after {
  content:""; position:absolute; inset:auto 0 0; height:12%;
  background:linear-gradient(transparent,#101b28); pointer-events:none;
}
.home-hero .hero-scene figcaption { z-index:1; }
.home-hero + .supplier-band { border-top:0; }

/* Keep the supplier rows balanced as the range grows. */
@media (min-width:601px) {
  .supplier-band-logos { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; }
  .supplier-band-logos>a { flex:0 0 calc((100% - 36px) / 4); min-width:0; }
}
@media (min-width:1081px) {
  .supplier-band-logos>a { flex-basis:calc((100% - 60px) / 6); }
}

/* The introduction pairs the software with its actual interface. */
.software-intro {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:56px; align-items:center; margin-bottom:64px;
}
.software-intro > * { min-width:0; }
.software-intro .section-head { margin-bottom:28px; }
.software-intro .section-head h1 { font-size:clamp(36px,3.7vw,52px); }
.software-intro .software-jumps { margin:0; }
.software-intro-visual { margin:0; }
.software-intro-visual a { display:block; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.software-intro-visual img { display:block; width:100%; height:auto; }
.software-intro-visual figcaption { margin-top:14px; font-size:.875rem; line-height:1.6; color:var(--muted); }
.about-narrative a[href="/tjenester/#fabrikksamarbeid"] { text-decoration:underline; text-underline-offset:3px; }
#fabrikksamarbeid { scroll-margin-top:120px; }
@media (max-width:1000px) {
  .software-intro { grid-template-columns:1fr; gap:30px; margin-bottom:48px; }
  .software-intro-visual { width:100%; max-width:720px; }
}
@media (max-width:700px) {
  .software-intro { gap:26px; margin-bottom:40px; }
  .software-intro .section-head h1 { font-size:clamp(35px,9.5vw,43px); }
}

/* Version 40: retain matching rack/outdoor picture heights on phones. */
@media(max-width:700px){.rack-photo-crop-v40{--rack-crop-height:460px;max-height:125vw}}

/* Keep the headline in two deliberate lines at every content width. */
.home-hero .hero-copy { container-type:inline-size; }
.home-hero h1 { font-size:clamp(1.5rem,9.5cqi,3.5rem); line-height:1.12; }
.home-hero h1 .hero-title-line { display:block; white-space:nowrap; }
.home-hero h1 span.hero-title-line { color:inherit; }

/* Preserve the wide installation photo and the foreground sensor. */
.ph-hub-intro .ph-photo img { aspect-ratio:16/10; object-fit:cover; object-position:center; }

/* Keep the suppliers in the first desktop viewport without covering the scene. */
@media (min-width:1081px) {
  .home-opening { display:grid; grid-template-rows:minmax(460px,1fr) auto; height:calc(100svh - 106px); min-height:600px; }
  .home-opening .hero.home-hero { height:100%; min-height:0; }
  .home-opening .hero-inner { padding-block:24px; }
  .home-opening .hero-scene img { object-position:right center; }
  .home-opening .supplier-band { padding:16px 0 18px; }
  .home-opening .supplier-band-head { margin-bottom:10px; }
  .home-opening .supplier-band-logos { display:grid; grid-template-columns:repeat(11,minmax(0,1fr)); gap:16px; }
  .home-opening .supplier-band-logos>a { min-height:50px; padding:7px 0; }
  .home-opening .supplier-band-logos .supplier-band-parkhelp { padding:7px 0!important; }
  .home-opening .supplier-band-logos img { width:100%; height:32px; }
}
