/* ============================================================
   Bygglund: hero.css, the hero with the form (22.11.2026), built after Sverre's own picture of it: «Du skal prøve å gjenskape
   dette akkurat som jeg forteller deg på heroen», «bruk det bakgrunnsbilde de har på mitt anbud i hero pagen», «gjør
   kontaktskjemaet funksjonelt!». The live hero (the drawing that becomes the photo) is in ../nettside/, the proposal before
   this one in ../hero-forslag-roa-stil/.
   One screen: the Mittanbud cover photo over the whole hero, pushed to the right so the bathtub stands between the text and
   the form; a deep blue shade on the left under the text; a white card with the form on the right; a light slanted band at
   the foot with the approvals, and the review mark on it at the right. Every colour is a token in tokens.css.
   Motion: the photo settles once on load and drifts a little with the scroll (transform only, js/hero-skjema.js); the text and
   the card rise in. All of it behind html.js-anim, so without the script or with reduced motion the hero is whole and still.
   Sizes follow the window's height as well as its width (svh), so the whole hero fits Sverre's windows (1440 x 778 and
   1210 x 654). Under 1024 px the text, the form and the band stand under each other.
   ============================================================ */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100svh, 600px);
  background: var(--skifer-dyp); color: var(--tekst-lys);
  --fokus: var(--hvit);
}

/* ---------- the photo and the shade ---------- */
.hero-bilde { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-foto {
  position: absolute; top: 0; left: 10%; width: 116%; max-width: none; height: 100%;
  object-fit: cover; object-position: 50% 78%;
}
.hero-slor {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, var(--hero-slor-meny) 0, transparent 20%),
    linear-gradient(90deg, var(--skifer-dyp) 0, var(--skifer-dyp) 15%, var(--hero-slor-a) 30%, var(--hero-slor-b) 43%, var(--hero-slor-c) 56%, transparent 72%);
}

/* ---------- the frame: text on the left, the form on the right ---------- */
.hero-ramme {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(336px, 30.2vw, 468px);
  column-gap: clamp(1.5rem, 4vw, 4.5rem); align-items: start;
  min-height: inherit;
  padding: calc(var(--meny-h) + clamp(1.3rem, 6.2svh, 4.6rem)) var(--marg) 0;
}
/* the text keeps clear of the band, the card only of the review mark, so a message in the card never makes the hero taller */
.hero-innhold { min-width: 0; padding-bottom: clamp(118px, 17.4svh, 190px); }

.hero h1 { margin: 0; font-weight: 600; }
.hero-merke {
  display: flex; align-items: center; gap: 1.05rem;
  font-size: clamp(0.72rem, 0.25rem + 0.62vw, 0.9rem); font-weight: 500; letter-spacing: 0.17em; text-transform: uppercase;
  line-height: 1.3; color: var(--tekst-lys);
}
.hero-merke::before { content: ""; flex: none; width: clamp(2rem, 4vw, 3.8rem); height: 1.5px; background: var(--himmel); }
.hero-linje, .hero-linje-2 {
  display: block;
  font-size: clamp(2.5rem, min(6.1vw, 10.9svh), 6.4rem); line-height: 0.93; letter-spacing: -0.028em;
  white-space: nowrap;
}
.hero-merke + .hero-linje { margin-top: clamp(0.7rem, 2.4svh, 1.5rem); }
.hero-linje-2 { font-weight: 400; color: var(--himmel); padding-bottom: 0.12em; }

.hero-ingress {
  margin: clamp(0.7rem, 2.3svh, 1.5rem) 0 0; max-width: 31em;
  font-size: clamp(1.125rem, min(1.42vw, 2.55svh), 1.42rem); line-height: 1.38; color: var(--hero-tekst-dempet);
}

/* the two buttons: the yellow one is the clearest thing on the screen */
.hero-knapper { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(0.7rem, 1.4vw, 1.3rem); margin-top: clamp(1rem, 3.6svh, 2.4rem); }
.hero-cta, .hero-se {
  display: inline-flex; align-items: center; gap: 0.8rem;
  min-height: clamp(50px, 7.3svh, 68px); padding: 0 clamp(1.3rem, 1.9vw, 2rem);
  border-radius: var(--radius-pille); text-decoration: none; white-space: nowrap;
  font-size: clamp(1rem, min(1.26vw, 2.25svh), 1.24rem); font-weight: 600; letter-spacing: -0.005em;
  transition: background-color 0.25s var(--mykt), color 0.25s var(--mykt), border-color 0.25s var(--mykt), transform 0.25s var(--mykt), box-shadow 0.25s var(--mykt);
}
.hero-cta { background: var(--sol); color: var(--sol-tekst); box-shadow: 0 14px 34px -14px var(--sol-skygge); }
.hero-cta:hover { background: var(--sol-lys); transform: translateY(-1px); }
.hero-cta svg { flex: none; width: 1.55em; height: 1.55em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-cta svg .fyll { fill: currentColor; stroke: none; }
.hero-cta .pil { width: 1.15em; height: 1.15em; stroke-width: 1.8; transition: transform 0.25s var(--mykt); }
.hero-cta:hover .pil { transform: translateX(4px); }
.hero-cta .knapp-kort { display: none; }
.hero-se { border: 1.5px solid var(--hero-knapp-kant); color: var(--tekst-lys); padding-left: clamp(0.9rem, 1.4vw, 1.4rem); }
.hero-se:hover { background: var(--kalk); color: var(--grafitt); border-color: var(--kalk); }
.hero-se svg { flex: none; width: 1.7em; height: 1.7em; }
.hero-se .skive { fill: currentColor; }
.hero-se .trekant { fill: var(--skifer-dyp); transition: fill 0.25s var(--mykt); }
.hero-se:hover .trekant { fill: var(--kalk); }
.hero-ring {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.25rem;
  color: var(--tekst-lys); font-size: clamp(1rem, min(1.26vw, 2.25svh), 1.24rem); font-weight: 600; white-space: nowrap;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--hero-knapp-kant);
}
.hero-ring:hover { text-decoration-color: currentColor; }
.hero-ring svg { flex: none; width: 1.15em; height: 1.15em; }

/* the proofs in a row, a hairline between them */
.hero-tillit { display: flex; flex-wrap: wrap; margin: clamp(1rem, 4.2svh, 2.7rem) 0 0; padding: 0; list-style: none; }
.hero-tillit li { display: flex; align-items: center; gap: 0.8rem; padding: 0.1rem clamp(0.9rem, 1.7vw, 1.75rem); border-left: 1px solid var(--hero-strek); }
.hero-tillit li:first-child { padding-left: 0; border-left: 0; }
.hero-tillit svg { flex: none; width: clamp(2rem, 2.9vw, 2.7rem); height: clamp(2rem, 2.9vw, 2.7rem); fill: none; stroke: var(--himmel); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-tillit li > span { display: grid; line-height: 1.22; font-size: clamp(0.9rem, min(1.08vw, 2svh), 1.06rem); color: var(--hero-tekst-dempet); }
.hero-tillit strong { font-weight: 600; color: var(--tekst-lys); }

/* ---------- the form card ---------- */
.hf {
  position: relative; min-width: 0;
  padding: clamp(0.95rem, 2.5svh, 1.6rem) clamp(1.1rem, 1.7vw, 1.65rem) clamp(0.8rem, 1.9svh, 1.25rem);
  border-radius: var(--radius-skjema); background: var(--hf-flate); color: var(--hf-tekst);
  box-shadow: 0 30px 70px -24px var(--hf-skygge), 0 2px 0 var(--hf-kant-lys) inset;
  --fokus: var(--hf-valgt);
  scroll-margin-top: calc(var(--meny-h) + 1rem);
  margin-bottom: clamp(84px, 12.2svh, 128px);
}
.hf.er-pekt { animation: hf-pek 1.1s var(--mykt); }
@keyframes hf-pek { 0%, 100% { box-shadow: 0 30px 70px -24px var(--hf-skygge), 0 0 0 0 var(--sol); } 35% { box-shadow: 0 30px 70px -24px var(--hf-skygge), 0 0 0 5px var(--sol); } }

.hf-topp { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.hf-merke {
  display: inline-flex; align-items: center; gap: 0.5rem; margin: 0;
  padding: 0.38rem 0.95rem 0.38rem 0.7rem; border-radius: var(--radius-pille);
  background: var(--hf-merke-flate); color: var(--hf-tekst);
  font-size: clamp(0.88rem, min(1.02vw, 1.9svh), 1rem); font-weight: 600; line-height: 1.2;
}
.hf-merke svg { flex: none; width: 1.15em; height: 1.15em; fill: var(--hf-valgt); }
/* how far one has come: a slim bar that fills one part per step (transform only) */
.hf-fremdrift { flex: 0 1 9rem; height: 6px; border-radius: var(--radius-pille); background: var(--hf-kant); overflow: hidden; }
.hf-fremdrift span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--hf-valgt); transform: scaleX(0.2); transform-origin: 0 50%; }
html.js-anim .hf-fremdrift span { transition: transform 0.45s var(--mykt); }

.hf-steg { margin: 0; padding: 0; border: 0; min-width: 0; min-inline-size: 0; }
.hf-steg + .hf-steg { margin-top: 1.4rem; }
.hf-tittel {
  display: block; width: 100%; margin: 0; padding: clamp(0.6rem, 1.9svh, 1.15rem) 0 0;
  font-size: clamp(1.3rem, min(1.92vw, 3.5svh), 1.9rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: var(--hf-tekst);
}
.hf-under { margin: clamp(0.2rem, 0.8svh, 0.5rem) 0 0; font-size: clamp(0.95rem, min(1.12vw, 2.05svh), 1.1rem); line-height: 1.35; color: var(--hf-tekst-2); }
.hf-under a { color: inherit; font-weight: 600; white-space: nowrap; }

.hf-fliser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(0.45rem, 1.3svh, 0.85rem) clamp(0.5rem, 0.9vw, 0.9rem); margin-top: clamp(0.65rem, 1.9svh, 1.15rem); }
.hf-fliser.hf-rad { grid-template-columns: minmax(0, 1fr); }
.hf-flis {
  position: relative; display: flex; align-items: center; gap: clamp(0.5rem, 0.85vw, 0.8rem); min-width: 0;
  min-height: clamp(44px, 6.5svh, 64px); padding: 0 clamp(0.55rem, 0.9vw, 0.9rem) 0 clamp(0.65rem, 1.05vw, 1rem);
  border: 1.5px solid var(--hf-kant); border-radius: var(--radius-flis); background: var(--hvit);
  font-size: clamp(0.9rem, min(1.14vw, 2.1svh), 1.1rem); font-weight: 500; line-height: 1.15; color: var(--hf-tekst);
  cursor: pointer; transition: border-color 0.2s var(--mykt), background-color 0.2s var(--mykt), box-shadow 0.2s var(--mykt);
}
.hf-flis:hover { border-color: var(--hf-kant-sterk); }
.hf-flis input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hf-flis svg { flex: none; width: clamp(1.4rem, 2.05vw, 1.95rem); height: clamp(1.4rem, 2.05vw, 1.95rem); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hf-flis svg.prikker { fill: currentColor; stroke: none; }
.hf-flis > span { flex: 1; min-width: 0; }
/* the tick: a filled round mark that only shows on the chosen answer */
.hf-flis i {
  position: absolute; right: clamp(0.5rem, 0.8vw, 0.85rem); top: 50%; width: clamp(1.1rem, 1.6vw, 1.45rem); height: clamp(1.1rem, 1.6vw, 1.45rem); margin-top: calc(clamp(1.1rem, 1.6vw, 1.45rem) / -2);
  border-radius: 50%; background: var(--hf-valgt); opacity: 0; transform: scale(0.6); pointer-events: none;
  transition: opacity 0.2s var(--mykt), transform 0.25s var(--mykt);
}
.hf-flis i::after {
  content: ""; position: absolute; left: 50%; top: 45%; width: 44%; height: 24%;
  border-left: 2px solid var(--hvit); border-bottom: 2px solid var(--hvit); transform: translate(-50%, -50%) rotate(-45deg);
}
.hf-flis:has(input:checked) { border-color: var(--hf-valgt); background: var(--hf-valgt-flate); box-shadow: 0 0 0 1px var(--hf-valgt); }
.hf-flis:has(input:checked) i { opacity: 1; transform: none; }
.hf-flis:has(input:focus-visible) { outline: 2px solid var(--fokus); outline-offset: 2px; }

.hf-felt { margin-top: clamp(0.55rem, 1.6svh, 0.9rem); }
.hf-felt label { display: block; margin-bottom: 0.25rem; font-size: 0.92rem; font-weight: 600; color: var(--hf-tekst-2); }
.hf-felt input {
  display: block; width: 100%; min-height: clamp(44px, 6.3svh, 54px); padding: 0 0.9rem;
  border: 1.5px solid var(--hf-kant); border-radius: var(--radius-flis); background: var(--hvit);
  font: inherit; font-size: 1.05rem; color: var(--hf-tekst);
}
.hf-felt input:focus, .hf-felt textarea:focus { outline: none; border-color: var(--hf-valgt); box-shadow: 0 0 0 1px var(--hf-valgt); }
.hf-felt input.har-feil, .hf-felt textarea.har-feil { border-color: var(--hf-feil); box-shadow: 0 0 0 1px var(--hf-feil); }
/* the last step: more about the job, with no limit on the text (the field grows as one writes, then scrolls, and can be dragged
   taller), and the photos */
.hf-felt label { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.hf-valgfritt { font-weight: 400; color: var(--hf-dempet); }
.hf-felt textarea {
  display: block; width: 100%; min-height: clamp(6.5rem, 17svh, 9rem); max-height: clamp(9rem, 27svh, 15rem); padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--hf-kant); border-radius: var(--radius-flis); background: var(--hvit);
  font: inherit; font-size: 1.05rem; line-height: 1.45; color: var(--hf-tekst); resize: vertical; overflow-y: auto;
}
.hf .bilder-rad { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; }
.hf .bilder-inndata { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.hf .bilder-knapp {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; min-height: clamp(44px, 6svh, 50px); padding: 0 1.05rem;
  border: 1.5px dashed var(--hf-kant-sterk); border-radius: var(--radius-flis); background: var(--hvit);
  font-size: 1rem; font-weight: 600; color: var(--hf-tekst); cursor: pointer; transition: border-color 0.2s var(--mykt);
}
.hf .bilder-knapp:hover { border-color: var(--hf-valgt); }
.hf .bilder-knapp svg { flex: none; width: 1.3rem; height: 1.3rem; }
.hf .bilder-inndata:focus-visible + .bilder-knapp { outline: 2px solid var(--fokus); outline-offset: 2px; }
.hf .bilder-hint { margin: 0; font-size: 0.9rem; line-height: 1.35; color: var(--hf-dempet); }
.hf .bilder-liste { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; padding: 0.55rem 0.6rem 0 0; list-style: none; }
.hf .bilder-liste li { position: relative; width: 52px; height: 52px; }
.hf .bilder-liste img, .hf .bilde-tom { display: block; width: 100%; height: 100%; border: 1px solid var(--hf-kant-sterk); border-radius: 8px; object-fit: cover; }
.hf .bilde-tom { background: var(--hf-merke-flate); }
.hf .bilde-fjern {
  position: absolute; top: -9px; right: -9px; display: grid; place-items: center; width: 26px; height: 26px; padding: 0;
  border: 2px solid var(--hvit); border-radius: 50%; background: var(--hf-knapp); color: var(--hvit); cursor: pointer;
}
.hf .bilde-fjern svg { width: 13px; height: 13px; }

.hf-feil { margin: 0.7rem 0 0; font-size: 0.95rem; font-weight: 500; line-height: 1.35; color: var(--hf-feil); }
.hf-feil a { color: inherit; font-weight: 600; white-space: nowrap; }

.hf-fot { display: flex; gap: 0.6rem; margin-top: clamp(0.75rem, 2.2svh, 1.4rem); }
.hf-neste, .hf-tilbake {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  min-height: clamp(48px, 7svh, 62px); border-radius: var(--radius-pille); cursor: pointer;
  font: inherit; font-size: clamp(1.02rem, min(1.2vw, 2.2svh), 1.18rem); font-weight: 600;
  transition: background-color 0.25s var(--mykt), border-color 0.25s var(--mykt), color 0.25s var(--mykt);
}
.hf-neste { flex: 1; border: 0; background: var(--hf-knapp); color: var(--hvit); }
.hf-neste:hover { background: var(--hf-knapp-2); }
.hf-neste[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.hf-neste svg, .hf-tilbake svg { flex: none; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--mykt); }
.hf-neste:hover svg { transform: translateX(4px); }
.hf-tilbake { flex: none; width: clamp(48px, 7svh, 62px); padding: 0; border: 1.5px solid var(--hf-kant-sterk); background: transparent; color: var(--hf-tekst); }
.hf-tilbake:hover { border-color: var(--hf-tekst); }

.hf-trygg { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin: clamp(0.5rem, 1.5svh, 0.95rem) 0 0; font-size: 0.86rem; color: var(--hf-tekst-2); }
.hf-trygg svg { flex: none; width: 1.05em; height: 1.05em; fill: var(--hf-tekst); stroke: var(--hf-tekst); stroke-width: 1.4; stroke-linejoin: round; fill-opacity: 0.9; }
.hf-trygg a { color: inherit; text-decoration: none; }
.hf-trygg a:hover { text-decoration: underline; text-underline-offset: 3px; }

.hf-takk { display: grid; justify-items: center; align-content: center; text-align: center; min-height: clamp(16rem, 44svh, 24rem); outline: none; }
.hf-takk svg { width: 3.4rem; height: 3.4rem; fill: none; stroke: var(--ja); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hf-takk .hf-tittel { padding-top: 1rem; }
.hf-felle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hf [hidden] { display: none !important; }
/* before the script has started the form (it sets data-hf-na) only the first step shows, so nothing jumps when the others are
   hidden; without JavaScript (no .js on html) every step shows and the form posts as it is */
html.js:not(.hf-uten) .hf:not([data-hf-na]) .hf-steg ~ .hf-steg { display: none; }
/* the button: in the markup it says «Send forespørsel» (what it does without the script); with the script on its way it says
   «Neste steg» from the first paint. If the script file fails to load (.hf-uten, set by the script tag), the plain form stands */
html.js:not(.hf-uten) .hf:not([data-hf-na]) [data-hf-neste-tekst] { display: inline !important; }
html.js:not(.hf-uten) .hf:not([data-hf-na]) [data-hf-send-tekst] { display: none; }
.hf-steg:focus { outline: none; }
/* a browser without :has(): the tick still shows, and the tile one is on gets a ring */
@supports not selector(:has(a)) {
  .hf-flis input:checked ~ i { opacity: 1; transform: none; }
  .hf-flis input:checked ~ span { font-weight: 600; }
  .hf-flis:focus-within { outline: 2px solid var(--fokus); outline-offset: 2px; }
}

/* the step that comes in: a short slide, behind html.js-anim */
html.js-anim .hf-steg.er-ny { animation: hf-inn 0.36s var(--mykt) both; }
html.js-anim .hf-steg.er-ny.bakover { animation-name: hf-inn-bak; }
@keyframes hf-inn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes hf-inn-bak { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

/* ---------- the light band at the foot, the approvals and the review mark ---------- */
.hero-band {
  position: absolute; inset: auto 0 0 0; z-index: -1; height: clamp(104px, 16.2svh, 168px);
  background: var(--hero-band);
  -webkit-clip-path: polygon(0 0, 100% 94%, 100% 100%, 0 100%); clip-path: polygon(0 0, 100% 94%, 100% 100%, 0 100%);
}
.hero-fot {
  position: absolute; inset: auto 0 0 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  padding: 0 var(--marg) clamp(1rem, 3.6svh, 2.6rem);
  pointer-events: none;
}
.hero-fot > * { pointer-events: auto; }
.hero-merker { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; color: var(--hf-tekst); }
.hero-merker li {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.15rem clamp(1rem, 2.3vw, 2.5rem);
  border-left: 1px solid var(--linje-sterk);
  font-size: clamp(0.72rem, min(0.92vw, 1.75svh), 0.92rem); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.25;
}
.hero-merker li:first-child { padding-left: 0; border-left: 0; }
.hero-merker li.m-stablet { flex-direction: column; gap: 0.3rem; letter-spacing: 0.14em; }
.hero-merker svg { flex: none; height: clamp(1.5rem, 3.4svh, 2.2rem); width: auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hero-merker li.m-stablet svg { height: clamp(1.1rem, 2.5svh, 1.55rem); }

.hero-omtale {
  display: flex; align-items: center; gap: clamp(0.8rem, 1.3vw, 1.3rem);
  min-height: clamp(58px, 8.3svh, 78px); padding: 0.5rem clamp(0.9rem, 1.4vw, 1.4rem) 0.5rem clamp(1rem, 1.6vw, 1.6rem);
  border-radius: var(--radius-skjema); background: var(--hvit); color: var(--hf-tekst); text-decoration: none;
  box-shadow: 0 18px 44px -18px var(--hf-skygge);
  transition: transform 0.25s var(--mykt), box-shadow 0.25s var(--mykt);
  --fokus: var(--hf-valgt);
}
.hero-omtale:hover { transform: translateY(-2px); }
.om-tekst { display: grid; gap: 0.1rem; }
.om-topp { display: flex; align-items: center; gap: 0.6rem; }
.om-topp strong { font-size: clamp(1.02rem, min(1.2vw, 2.2svh), 1.2rem); font-weight: 600; white-space: nowrap; }
.om-stjerner svg { display: block; width: clamp(5rem, 6.1vw, 6rem); height: auto; fill: var(--stjerne); }
.om-under { font-size: clamp(0.84rem, min(0.96vw, 1.8svh), 0.96rem); color: var(--hf-tekst-2); white-space: nowrap; }
.om-hvem { display: flex; padding-left: 0.5rem; }
.om-hvem span {
  display: grid; place-items: end center; overflow: hidden;
  width: clamp(2.3rem, 5.2svh, 3rem); height: clamp(2.3rem, 5.2svh, 3rem); margin-left: -0.5rem;
  border: 2px solid var(--hvit); border-radius: 50%; background: var(--hf-merke-flate); color: var(--hf-knapp);
  box-shadow: 0 0 0 1px var(--hf-kant);
}
.om-hvem span:nth-child(2) { background: var(--dis); color: var(--fjord); }
.om-hvem span:nth-child(3) { background: var(--is-lys); color: var(--grafitt-3); }
.om-hvem span:nth-child(4) { background: var(--betong); color: var(--fjord); }
.om-hvem img { display: block; width: 100%; height: 100%; object-fit: cover; }
.om-hvem svg { width: 78%; height: 78%; fill: currentColor; }
.om-pil { flex: none; width: 0.6rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- the entrance ---------- */
@keyframes hero-opp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hero-ro { from { transform: scale(1.07); } to { transform: none; } }
html.js-anim .hero-foto { animation: hero-ro 2.2s var(--mykt) both; transform-origin: 40% 70%; }
html.js-anim .hero-innhold > *, html.js-anim .hf, html.js-anim .hero-fot > * { animation: hero-opp 0.8s var(--mykt) both; }
html.js-anim .hero-innhold > :nth-child(2) { animation-delay: 0.08s; }
html.js-anim .hero-innhold > :nth-child(3) { animation-delay: 0.16s; }
html.js-anim .hero-innhold > :nth-child(4) { animation-delay: 0.24s; }
html.js-anim .hf { animation-delay: 0.2s; }
/* the entrance stays first in the list, so it does not start again when the ring's animation is taken away */
html.js-anim .hf.er-pekt { animation: hero-opp 0.8s var(--mykt) 0.2s both, hf-pek 1.1s var(--mykt); }
html.js-anim .hero-fot > * { animation-delay: 0.36s; }

/* ---------- narrower and lower windows ---------- */
/* the menu carries the number from 1360 px; under that it stands by the buttons, so it is on the first screen in every width */
@media (min-width: 1360px) { .hero-ring { display: none; } }
@media (min-width: 1024px) and (max-width: 1199px) {
  .hero-tillit .hero-t3 { display: none; }
  /* the text column reaches further over the bathtub here, so the shade does too */
  .hero-slor { background: linear-gradient(180deg, var(--hero-slor-meny) 0, transparent 20%), linear-gradient(90deg, var(--skifer-dyp) 0, var(--skifer-dyp) 15%, var(--hero-slor-a) 32%, var(--hero-slor-b) 52%, var(--hero-slor-c) 64%, transparent 78%); }
}
/* the English title is longer: a little smaller, so «bathrooms, kitchens» stays in its column */
@media (min-width: 1024px) {
  html[lang="en"] .hero-linje, html[lang="en"] .hero-linje-2 { font-size: clamp(2.3rem, min(5.1vw, 10.9svh), 6.4rem); }
}
@media (min-width: 1024px) and (max-height: 700px) {
  .hero-ramme { padding-top: calc(var(--meny-h) + clamp(0.6rem, 3svh, 2rem)); }
}

/* ---------- under 1024 px: text, form and band under each other ---------- */
@media (max-width: 1023px) {
  .hero { min-height: 0; }
  .hero-bilde { inset: 0 0 auto 0; height: min(100svh, 46rem); }
  .hero-foto { left: 0; width: 100%; object-position: 30% 60%; }
  .hero-slor {
    inset: 0 0 auto 0; height: min(100svh, 46rem);
    background: linear-gradient(180deg, var(--hero-slor-b) 0, var(--hero-slor-meny) 16%, var(--hero-slor-b) 62%, var(--skifer-dyp) 100%);
  }
  .hero-ramme { grid-template-columns: minmax(0, 1fr); row-gap: clamp(1.75rem, 5vw, 2.75rem); min-height: 0; padding: calc(var(--meny-h) + clamp(1.5rem, 6vw, 3rem)) var(--marg) clamp(1.75rem, 5vw, 2.75rem); }
  .hero-linje, .hero-linje-2 { font-size: clamp(2.5rem, 11.6vw, 5rem); white-space: normal; }
  .hero-ingress { font-size: 1.0625rem; line-height: 1.5; }
  .hero-cta, .hero-se { min-height: 54px; font-size: 1.05rem; }
  .hero-tillit li > span { font-size: 0.95rem; }
  .hero-tillit { gap: 0.85rem 1.75rem; }
  .hero-tillit li, .hero-tillit li:first-child { padding: 0; border-left: 0; }

  .hero-innhold { padding-bottom: 0; }
  .hf { width: 100%; max-width: 34rem; margin-bottom: 0; padding: 1.25rem 1.1rem 1rem; }
  .hf-flis { min-height: 54px; font-size: 1.02rem; }
  .hf-flis i { right: 0.6rem; width: 1.2rem; height: 1.2rem; margin-top: -0.6rem; }
  .hf-tittel { font-size: 1.45rem; }
  .hf-under { font-size: 1rem; }
  .hf-neste, .hf-tilbake { min-height: 56px; }
  .hf-tilbake { width: 56px; }
  .hero-band { display: none; }
  .hero-fot {
    position: static; flex-direction: column-reverse; align-items: stretch; gap: 1.5rem;
    padding: clamp(1.5rem, 5vw, 2.25rem) var(--marg);
    background: var(--hero-band);
  }
  .hero-omtale { align-self: flex-start; min-height: 64px; }
  .om-stjerner svg { width: 5.8rem; }
  .hero-merker { flex-wrap: wrap; gap: 1rem 1.75rem; }
  .hero-merker li, .hero-merker li:first-child { font-size: 0.78rem; padding: 0; border-left: 0; }
  .hero-merker li.m-stablet { flex-direction: row; gap: 0.6rem; letter-spacing: 0.1em; }
  .hero-merker li.m-stablet svg { height: 1.3rem; }
}
@media (max-width: 479px) {
  .hero-cta .knapp-lang { display: none; }
  .hero-cta .knapp-kort { display: inline; }
  .hero-cta, .hero-se { flex: 1 1 100%; justify-content: center; }
  .hero-ring { flex: 1 1 100%; justify-content: center; }
  .hf-fliser { gap: 0.5rem; }
  .hf-flis { padding: 0 0.6rem 0 0.7rem; gap: 0.55rem; font-size: 0.95rem; }
  .hf-flis svg { width: 1.45rem; height: 1.45rem; }
  .hero-omtale { align-self: stretch; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .hf-flis, .hf-flis i, .hero-cta, .hero-se, .hero-omtale { transition: none; }
}
@media (max-width: 359px) {
  .hf { padding-inline: 0.85rem; }
  .hf-flis { gap: 0.4rem; padding: 0 0.45rem 0 0.55rem; font-size: 0.875rem; }
  .hf-flis svg { width: 1.2rem; height: 1.2rem; }
  .hf-flis i { right: 0.35rem; width: 1rem; height: 1rem; margin-top: -0.5rem; }
  .hero-omtale { flex-wrap: wrap; row-gap: 0.6rem; padding-block: 0.8rem; }
  .om-tekst { flex: 1 1 100%; }
  .om-hvem { flex: 1; }
}
