/* ==========================================================================
   Nordvärme – demoprojekt av VisitWeb UF
   Fjordblått, isljust och en varm orange accent som står för värmen.
   Rubriker: Familjen Grotesk · Brödtext: Instrument Sans · Etiketter: Geist Mono
   Startlägen för animationer finns bara under html.js-ready (sätts av skriptet).
   ========================================================================== */

.nv {
  --fjord: #0F3B5F;
  --fjord-2: #1B5584;
  --deep: #0A2A45;
  --ice: #EAF3FA;
  --ice-2: #D9E8F4;
  --snow: #F6F9FC;
  --warm: #F28C38;
  --warm-ink: #A8520F;
  --warm-soft: #FFEBD8;
  --ink: #12202C;
  --muted: #4E5F6E;
  --line: rgba(15, 59, 95, 0.12);
  --line-2: rgba(15, 59, 95, 0.2);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 76px;
  --focus: #A8520F;
  background: var(--snow);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.nv main { overflow-x: clip; }
.nv [id] { scroll-margin-top: 72px; }
.nv :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.nv h1, .nv h2, .nv h3 {
  font-family: "Familjen Grotesk", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
.nv h2 { font-size: clamp(2.15rem, 1.3rem + 2.6vw, 3.6rem); }
.nv h3 { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.15; }
.nv-accent, .nv-grad {
  background: linear-gradient(100deg, #A8520F 0%, #C9651A 60%, #D47024 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.nv-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-ink);
}
.nv-muted { color: var(--muted); max-width: 48ch; }

.nv-skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--fjord);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.3s var(--ease);
}
.nv-skip:focus { top: 12px; }
.nv-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Scroll-progress ---------- */
.nv-progress { display: none; position: fixed; inset: 0 0 auto; z-index: 90; height: 3px; pointer-events: none; }
.js-ready .nv-progress { display: block; }
.nv-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--fjord), #3C7DB3 45%, var(--warm));
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

/* ---------- Knappar och länkar ---------- */
.nv-btn {
  --bx: 0px;
  --by: 0px;
  --lift: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  background: var(--fjord);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 28px -16px rgba(15, 59, 95, 0.75);
  transform: translate3d(var(--bx), calc(var(--by) + var(--lift)), 0);
  transition: transform 0.5s var(--ease), box-shadow 0.4s var(--ease), background-color 0.3s ease, color 0.3s ease;
}
.nv-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(140px circle at var(--gx, 50%) var(--gy, 120%), rgba(242, 140, 56, 0.6), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.nv-btn:hover { --lift: -2px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 20px 36px -16px rgba(15, 59, 95, 0.8); }
.nv-btn:hover::before { opacity: 1; }
.nv-btn:active { --lift: 1px; }
.nv-btn__icon { width: 20px; height: 20px; flex: none; transition: transform 0.45s var(--ease); }
.nv-btn:hover .nv-btn__icon { transform: translateX(4px); }
.nv-btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.95rem; border-radius: 12px; }
.nv-btn--ghost { background: rgba(255, 255, 255, 0.4); color: var(--fjord); box-shadow: inset 0 0 0 1.5px rgba(15, 59, 95, 0.28); }
.nv-btn--ghost::before { background: radial-gradient(140px circle at var(--gx, 50%) var(--gy, 120%), rgba(255, 255, 255, 0.9), transparent 70%); }
.nv-btn--ghost:hover { background: #fff; box-shadow: inset 0 0 0 1.5px rgba(15, 59, 95, 0.45), 0 16px 30px -18px rgba(15, 59, 95, 0.5); }
.nv-btn--warm { background: var(--warm); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 18px 36px -16px rgba(242, 140, 56, 0.7); }
.nv-btn--warm::before { background: radial-gradient(140px circle at var(--gx, 50%) var(--gy, 120%), rgba(255, 236, 214, 0.85), transparent 70%); }
.nv-btn--warm:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 24px 44px -16px rgba(242, 140, 56, 0.85); }

.nv-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--fjord);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.45s var(--ease);
}
.nv-link svg { width: 18px; height: 18px; flex: none; transition: transform 0.45s var(--ease); }
.nv-link--inline { display: inline; }
.nv-link--inline svg { display: inline-block; margin-left: 8px; vertical-align: -3px; }
.nv-link:hover { background-size: calc(100% - 26px) 1.5px; }
.nv-link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.nv-header { position: sticky; top: 0; z-index: 60; }
.nv-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(246, 249, 252, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}
.nv-header.is-scrolled::before { background: rgba(250, 252, 254, 0.92); box-shadow: 0 12px 30px -20px rgba(15, 59, 95, 0.4); }
.nv-header__inner { position: relative; display: flex; align-items: center; gap: 20px; height: var(--header-h); transition: height 0.5s var(--ease); }
.nv-header.is-scrolled .nv-header__inner { height: 62px; }
.nv-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Familjen Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.nv-logo svg { width: 32px; height: 32px; transition: transform 0.6s var(--ease); }
.nv-logo:hover svg { transform: rotate(-30deg); }
.nv-header.is-scrolled .nv-logo svg { width: 28px; height: 28px; }
.nv-nav { margin-left: 18px; }
.nv-nav ul { display: flex; gap: 4px; }
.nv-nav a {
  position: relative;
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.97rem;
  text-decoration: none;
  transition: color 0.3s ease;
}
.nv-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--warm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nv-nav a:hover, .nv-nav a.is-current { color: var(--fjord); }
.nv-nav a:hover::after, .nv-nav a.is-current::after { transform: scaleX(1); }
.nv-header__cta { margin-left: auto; }
.nv-menu-btn { display: none; }

/* ---------- Ord-för-ord-rubriker och reveals ---------- */
.nv-sw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  padding-right: 0.05em;
  margin-right: -0.05em;
}
.nv-sw > span {
  display: inline-block;
  transform: translate3d(0, 108%, 0) rotate(4deg);
  transform-origin: left bottom;
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0ms));
}
.is-in .nv-sw > span { transform: none; }

.js-ready [data-reveal] {
  opacity: 0;
  transition:
    opacity 1s var(--ease) var(--d, 0ms),
    transform 1.1s var(--ease) var(--d, 0ms),
    translate 0.6s var(--ease),
    box-shadow 0.6s var(--ease),
    background-color 0.3s ease;
}
.js-ready [data-reveal="up"] { transform: translate3d(0, 44px, 0); }
.js-ready [data-reveal="left"] { transform: translate3d(-56px, 0, 0); }
.js-ready [data-reveal="right"] { transform: translate3d(56px, 0, 0); }
.js-ready [data-reveal="scale"] { transform: scale(0.94); }
.js-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.nv-hero {
  position: relative;
  padding: clamp(28px, 4vw, 52px) 0 clamp(24px, 2vw, 30px);
  background:
    radial-gradient(55% 65% at 80% 42%, rgba(242, 140, 56, 0.12), transparent 65%),
    radial-gradient(40% 50% at 8% 10%, rgba(255, 255, 255, 0.9), transparent 70%),
    linear-gradient(180deg, #F6F9FC 0%, #EAF3FA 100%);
}
.nv-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: min(calc(100svh - var(--header-h) - 250px), 580px);
}
.nv-hero__kicker { color: var(--fjord); }
.nv-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--warm); animation: nv-pulse 2.4s ease-out infinite; }
.nv-hero__title { font-size: clamp(2.7rem, 5.9vw, 4.6rem); line-height: 0.98; letter-spacing: -0.045em; }
.nv-hero__line { display: block; color: var(--fjord); }
.nv-lead { margin-top: 26px; font-size: clamp(1.08rem, 1rem + 0.3vw, 1.22rem); color: var(--muted); max-width: 46ch; }
.nv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.nv-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: 0.95rem; font-weight: 500; }
.nv-trust li { display: inline-flex; align-items: center; gap: 8px; }
.nv-trust svg { width: 20px; height: 20px; padding: 2px; border-radius: 50%; background: var(--fjord); color: #fff; }

/* Laddningsanimation (bara med JavaScript) */
.js-ready .nv-hero__title { visibility: hidden; }
.js-ready .nv-hero__title.is-split { visibility: visible; }
.js-ready .nv-hero__title .nv-sw > span { transform: none; animation: nv-word 1.25s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 140ms); }
.js-ready .nv-hero__kicker { animation: nv-fade-up 0.9s var(--ease) both; }
.js-ready .nv-hero__lead { animation: nv-fade-up 1s var(--ease) 0.55s both; }
.js-ready .nv-hero__actions { animation: nv-fade-up 1s var(--ease) 0.7s both; }
.js-ready .nv-trust li { animation: nv-fade-up 0.9s var(--ease) both; }
.js-ready .nv-trust li:nth-child(1) { animation-delay: 0.85s; }
.js-ready .nv-trust li:nth-child(2) { animation-delay: 0.93s; }
.js-ready .nv-trust li:nth-child(3) { animation-delay: 1.01s; }
.js-ready .nv-scene { animation: nv-scene-in 1.5s var(--ease) 0.15s both; }
.js-ready .nv-tempcard { animation: nv-card-in 1.1s var(--ease) 0.9s both; }

/* Vinterscenen */
.nv-hero__visual { position: relative; perspective: 1600px; }
.nv-stage { position: relative; transform-style: preserve-3d; }
.nv-scene {
  position: relative;
  aspect-ratio: 600 / 560;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  background: #16446C;
  box-shadow: 0 60px 110px -60px rgba(10, 40, 68, 0.65), 0 30px 60px -40px rgba(10, 40, 68, 0.45);
}
.nv-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 -90px 120px -70px rgba(10, 40, 68, 0.3);
}
.nv-layer {
  position: absolute;
  left: -24px;
  top: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  max-width: none;
  will-change: transform;
}
.nv-snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.nv-scene.has-snow .nv-flakes { display: none; }
.nv-scene__light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(340px circle at var(--lx, 52%) var(--ly, 66%), rgba(255, 196, 140, 0.28), transparent 62%);
  mix-blend-mode: screen;
}
.nv-fan { transform-box: fill-box; transform-origin: center; animation: nv-spin 2.6s linear infinite; }
.nv-vapor circle { opacity: 0; transform-box: fill-box; transform-origin: center; animation: nv-vapor 4.2s ease-out infinite; }
.nv-vapor circle:nth-child(2) { animation-delay: 1.4s; }
.nv-vapor circle:nth-child(3) { animation-delay: 2.8s; }
.nv-tw { animation: nv-twinkle 3.4s ease-in-out infinite; }
.nv-tw--2 { animation-delay: 1.2s; }
.nv-tw--3 { animation-delay: 2.1s; }
.nv-hero.is-paused *, .nv-seq.is-paused *, .nv-cta.is-paused * { animation-play-state: paused !important; }

.nv-tempcard {
  position: absolute;
  left: -34px;
  top: 52px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: 0 34px 60px -28px rgba(10, 40, 68, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  transform: translateZ(60px);
}
.nv-tempcard__top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 6px 0;
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.nv-tempcard__top i { width: 7px; height: 7px; border-radius: 50%; background: #2E9E6E; box-shadow: 0 0 0 3px rgba(46, 158, 110, 0.18); }
.nv-tempcard__cells { display: flex; gap: 6px; }
.nv-tempcard__cell { display: grid; min-width: 96px; padding: 10px 16px 12px; border-radius: 14px; font-family: "Familjen Grotesk", sans-serif; }
.nv-tempcard__cell small { font-family: "Instrument Sans", sans-serif; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.nv-tempcard__cell b { font-size: 2rem; font-weight: 700; line-height: 1.05; letter-spacing: -0.04em; }
.nv-tempcard__cell--in { background: var(--warm-soft); color: var(--warm-ink); }
.nv-tempcard__cell--out { background: var(--ice); color: var(--fjord); }

/* ==========================================================================
   VÄRMEPUMPAR
   ========================================================================== */
.nv-section { position: relative; padding: clamp(84px, 10vw, 140px) 0; }
.nv-head { margin-bottom: clamp(36px, 5vw, 64px); }
.nv-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px 64px;
  align-items: end;
}
.nv-head--split .nv-muted { justify-self: end; padding-bottom: 6px; }
.nv-types { background: #fff; }
.nv-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.nv-cards__item { display: flex; min-width: 0; }
.nv-card {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  background: var(--snow);
  box-shadow: 0 0 0 1px var(--line), 0 24px 48px -38px rgba(15, 59, 95, 0.45);
  transition: translate 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.nv-card::before, .nv-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.nv-card::before { z-index: 1; background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 0%), rgba(242, 140, 56, 0.1), transparent 45%); }
.nv-card::after {
  z-index: 2;
  padding: 1.5px;
  background: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 0%), rgba(242, 140, 56, 0.75), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.nv-card:hover { translate: 0 -6px; box-shadow: 0 0 0 1px var(--line), 0 40px 70px -40px rgba(15, 59, 95, 0.5); }
.nv-card:hover::before, .nv-card:hover::after { opacity: 1; }
.nv-card__art {
  overflow: hidden;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, #E4EFF8 0%, #F4F8FC 100%);
}
.nv-card__art--ground { background: linear-gradient(180deg, #EEF5FB 0%, #DCE9F4 100%); }
.nv-card__art--room { background: #FBF3EA; }
.nv-card__art svg { width: 100%; height: auto; aspect-ratio: 320 / 200; transition: transform 0.9s var(--ease); }
.nv-card:hover .nv-card__art svg { transform: scale(1.035); }
.nv-card__body { position: relative; z-index: 3; display: grid; gap: 12px; align-content: start; flex: 1; padding: 26px 28px 30px; }
.nv-card__num { font-family: "Geist Mono", monospace; font-size: 0.75rem; letter-spacing: 0.1em; color: var(--warm-ink); }
.nv-card p { color: var(--muted); }
.nv-card__list { display: grid; gap: 8px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.nv-card__list li { display: flex; gap: 10px; }
.nv-card__list li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4 8.6 13.4 14.6 7' fill='none' stroke='%230F3B5F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.nv-chip {
  justify-self: start;
  margin-top: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--warm-soft);
  color: var(--warm-ink);
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nv-types__more { margin-top: 36px; text-align: center; }

/* Små animationer i korten (hover) */
.nv-art-fan { transform-box: fill-box; transform-origin: center; }
.nv-card:hover .nv-art-fan { animation: nv-spin 1.1s linear infinite; }
.nv-card:hover .nv-art-air { animation: nv-flow 1.2s linear infinite; }
.nv-art-heat path { transform-box: fill-box; }
.nv-card:hover .nv-art-heat path { animation: nv-heat 1.6s ease-in-out infinite; }
.nv-card:hover .nv-art-heat path:nth-child(2) { animation-delay: 0.25s; }
.nv-card:hover .nv-art-heat path:nth-child(3) { animation-delay: 0.5s; }
.nv-art-bore { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.nv-card:hover .nv-art-bore { animation: nv-draw 1.4s var(--ease) both; }
.nv-art-rise circle { opacity: 0; }
.nv-card:hover .nv-art-rise circle { animation: nv-rise 1.8s ease-in infinite; }
.nv-card:hover .nv-art-rise circle:nth-child(2) { animation-delay: 0.6s; }
.nv-card:hover .nv-art-rise circle:nth-child(3) { animation-delay: 1.2s; }
.nv-card:hover .nv-art-flow { animation: nv-flow 0.9s linear infinite; }

/* ==========================================================================
   SÅ GÅR DET TILL – sticky scroll-sekvens
   ========================================================================== */
.nv-seq { position: relative; background: linear-gradient(180deg, #EEF5FA 0%, var(--ice) 100%); }
.nv-seq__sticky { padding: clamp(64px, 8vw, 110px) 0 clamp(84px, 10vw, 140px); }
.nv-seq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.nv-seq__copy h2 { font-size: clamp(2.1rem, 1.2rem + 2.6vw, 3.5rem); }
.nv-seq__steps { position: relative; display: grid; margin-top: 34px; }
.nv-seq__steps::before, .nv-seq__steps::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  border-radius: 2px;
  background: var(--line-2);
}
.nv-seq__steps::after {
  background: linear-gradient(180deg, var(--fjord), var(--warm));
  transform-origin: top;
  transform: scaleY(var(--p, 0));
}
.nv-step { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 18px; padding: 12px 0; }
.nv-step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  font-family: "Geist Mono", monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: background-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease, transform 0.6s var(--ease);
}
.nv-step.is-done .nv-step__num { background: var(--fjord); color: #fff; box-shadow: none; }
.nv-step.is-active .nv-step__num { background: var(--warm); color: var(--ink); box-shadow: 0 0 0 6px rgba(242, 140, 56, 0.2); transform: scale(1.08); }
.nv-step h3 { padding-top: 6px; font-size: 1.3rem; }
.nv-step p { margin-top: 6px; color: var(--muted); font-size: 0.98rem; max-width: 42ch; }

.nv-seq__visual { position: relative; }
.nv-seq__caption { margin-top: 14px; font-size: 0.84rem; color: var(--muted); text-align: center; }

.nv-meter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto 14px;
  font-family: "Geist Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.nv-meter__count b { color: var(--ink); font-weight: 600; }
.nv-meter__bar { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.nv-meter__bar i { position: relative; height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.nv-meter__bar i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fjord);
  transform-origin: left;
  transform: scaleX(clamp(0, calc(var(--p, 0) * 4 - var(--n, 0)), 1));
}
.nv-meter__bar i:nth-child(2) { --n: 1; }
.nv-meter__bar i:nth-child(3) { --n: 2; }
.nv-meter__bar i:nth-child(4) { --n: 3; }
.nv-meter__bar i:nth-child(4)::after { background: var(--warm); }
.nv-meter__name { min-width: 11ch; text-align: right; color: var(--fjord); font-weight: 600; }

/* Med JavaScript: högt scroll-spår och sticky scen */
.js-ready .nv-seq__track { height: 420vh; }
.js-ready .nv-seq__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: flex-start;
  padding: calc(62px + clamp(12px, 2.5vh, 32px)) 0 20px;
  overflow: hidden;
}
.js-ready .nv-seq__copy { align-self: start; padding-top: clamp(8px, 5vh, 56px); }
.js-ready .nv-seq__grid { width: 100%; }
.js-ready .nv-seq__caption { display: none; }
.js-ready .nv-seq__visual .hs,
.js-ready .nv-meter { width: min(100%, calc((100svh - 150px) * 640 / 520)); margin-inline: auto; }
.js-ready .nv-step > div { opacity: 0.58; transition: opacity 0.5s var(--ease); }
.js-ready .nv-step.is-done > div { opacity: 0.78; }
.js-ready .nv-step.is-active > div { opacity: 1; }
.js-ready .nv-step:not(.is-done):not(.is-active) .nv-step__num { color: #66788A; }
.js-ready .nv-step p {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.7s var(--ease), opacity 0.5s ease, margin 0.7s var(--ease);
}
.js-ready .nv-step.is-active p { max-height: 8em; margin-top: 6px; opacity: 1; }

/* ---------- Illustrationen (hs = house sequence) ---------- */
.hs {
  --heat: 0;
  --pipe: 0;
  position: relative;
  container-type: inline-size;
  aspect-ratio: 640 / 520;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #EDF4FA;
  box-shadow: 0 0 0 1px rgba(15, 59, 95, 0.08), 0 50px 90px -50px rgba(15, 59, 95, 0.5);
  transition: box-shadow 1s var(--ease);
}
.hs.is-home { box-shadow: 0 0 0 1px rgba(168, 82, 15, 0.1), 0 50px 100px -50px rgba(200, 100, 30, 0.55); }
.hs__bg, .hs__bg::after { position: absolute; inset: 0; }
.hs__bg { background: linear-gradient(180deg, #D3E4F2 0%, #EAF2F9 72%); }
.hs__bg::after {
  content: "";
  background: linear-gradient(180deg, #FFE2C4 0%, #FFF4E8 72%);
  -webkit-mask-image: radial-gradient(circle at 46% 64%, #000 calc(var(--heat) * 140% - 35%), transparent calc(var(--heat) * 140%));
  mask-image: radial-gradient(circle at 46% 64%, #000 calc(var(--heat) * 140% - 35%), transparent calc(var(--heat) * 140%));
}
.hs__art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hs-tag { font-family: "Geist Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.04em; fill: #fff; stroke: none; text-anchor: middle; }

.hs-heat-in { opacity: var(--heat); }
.hs-frost, .hs-ice { opacity: calc(1 - var(--heat)); }
.hs-aura { opacity: calc(var(--heat) * 0.95); }
.hs-firs { opacity: 0.85; }

/* Steg 1 – mätning */
.hs-measure { opacity: 0; transition: opacity 0.5s ease; }
.hs.is-s1:not(.is-s2) .hs-measure { opacity: 1; }
.hs-dim { opacity: 0; transform: translateY(8px); transition: opacity 0.6s ease, transform 0.9s var(--ease); }
.hs-dim--h { transform: translateX(-8px); }
.hs.is-s1 .hs-dim { opacity: 1; transform: none; }
.hs.is-s1 .hs-dim--h { transition-delay: 0.15s; }
.hs.is-s1 .hs-dim--scan { transition-delay: 0.35s; }
.hs-dash { transform-box: fill-box; transition: transform 1.1s var(--ease); }
.hs-dim--w .hs-dash { transform-origin: left center; transform: scaleX(0); }
.hs-dim--h .hs-dash { transform-origin: center top; transform: scaleY(0); }
.hs.is-s1 .hs-dash { transform: none; }
.hs.is-s1:not(.is-s2) .hs-dash { animation: hs-march 1.4s linear infinite; }

/* Anteckningsplattan */
.hs-note {
  position: absolute;
  left: 4%;
  top: 5.5%;
  width: 33%;
  display: grid;
  gap: 1.2cqi;
  padding: 3.4cqi 2.6cqi 2.6cqi;
  border-radius: 1.8cqi;
  background: #FFFDF9;
  box-shadow: 0 0 0 1px rgba(15, 59, 95, 0.08), 0 2.4cqi 4.8cqi -2.4cqi rgba(15, 59, 95, 0.45);
  font-size: 1.8cqi;
  line-height: 1.25;
  color: var(--muted);
  opacity: 0;
  transform: translateY(5cqi) rotate(-3deg);
  transition: opacity 0.6s ease, transform 0.9s var(--ease);
}
.hs.is-s1:not(.is-s2) .hs-note { opacity: 1; transform: rotate(-3deg); }
.hs.is-s2 .hs-note { transform: translate(-6cqi, -2cqi) rotate(-8deg); }
.hs-note__clip { position: absolute; top: -1.3cqi; left: 50%; width: 10cqi; height: 2.8cqi; translate: -50% 0; border-radius: 0.8cqi; background: var(--fjord); }
.hs-note__title { font-family: "Familjen Grotesk", sans-serif; font-weight: 600; font-size: 2.6cqi; color: var(--ink); letter-spacing: -0.02em; }
.hs-note__row { display: flex; align-items: center; gap: 1.2cqi; }
.hs-note__row i { position: relative; flex: none; width: 2.4cqi; height: 2.4cqi; border-radius: 0.5cqi; box-shadow: inset 0 0 0 0.25cqi var(--fjord); }
.hs-note__row i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--fjord) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.4 8.4 13.6 15 6.6' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 90% no-repeat;
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hs.is-s1 .hs-note__row i::after { transform: scale(1); }
.hs.is-s1 .hs-note__row:nth-child(3) i::after { transition-delay: 0.5s; }
.hs.is-s1 .hs-note__row:nth-child(4) i::after { transition-delay: 0.8s; }
.hs.is-s1 .hs-note__row:nth-child(5) i::after { transition-delay: 1.1s; }

/* Steg 2 – ritning och förslag */
.hs-blueprint { opacity: 0; transition: opacity 0.8s ease; }
.hs.is-s2 .hs-blueprint { opacity: 1; }
.hs.is-s3 .hs-blueprint { opacity: 0; transition-duration: 0.35s; }
.hs-blueprint > g { transform: translateY(10px); transition: transform 1s var(--ease), opacity 0.6s ease; }
.hs.is-s2 .hs-blueprint > g { transform: none; }
.hs.is-s3 .hs-bp-tags { opacity: 0; transition-duration: 0.2s; }
.hs-lbl { transform-box: fill-box; transform-origin: center; }

.hs-card {
  position: absolute;
  left: 4%;
  top: 5.5%;
  width: 36%;
  display: grid;
  gap: 1.1cqi;
  padding: 2.4cqi 2.6cqi 2.6cqi;
  border-radius: 2cqi;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(15, 59, 95, 0.08), 0 2.6cqi 5.2cqi -2.6cqi rgba(15, 59, 95, 0.45);
  font-size: 1.75cqi;
  line-height: 1.3;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-8cqi);
  transition: opacity 0.7s ease, transform 1s var(--ease), box-shadow 0.8s ease;
}
.hs.is-s2 .hs-card { opacity: 1; transform: none; }
.hs.is-done .hs-card { box-shadow: 0 0 0 1.5px rgba(242, 140, 56, 0.5), 0 2.6cqi 5.2cqi -2.6cqi rgba(168, 82, 15, 0.45); }
.hs-card__status { position: relative; height: 2.9cqi; }
.hs-st {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  height: 2.9cqi;
  padding: 0 1.3cqi;
  border-radius: 99px;
  font-family: "Geist Mono", monospace;
  font-size: max(10.5px, 1.35cqi);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(1.2cqi);
  transition: opacity 0.4s ease, transform 0.6s var(--ease);
}
.hs-st--2 { background: var(--ice); color: var(--fjord); }
.hs-st--3 { background: var(--warm-soft); color: var(--warm-ink); }
.hs-st--4 { background: var(--warm-soft); color: var(--warm-ink); }
.hs-st--5 { background: var(--fjord); color: #fff; }
.hs.is-s2:not(.is-s3) .hs-st--2,
.hs.is-s3:not(.is-s4) .hs-st--3,
.hs.is-s4:not(.is-done) .hs-st--4,
.hs.is-done .hs-st--5 { opacity: 1; transform: none; }
.hs-card__title { font-family: "Familjen Grotesk", sans-serif; font-weight: 600; font-size: 2.7cqi; line-height: 1.08; letter-spacing: -0.025em; color: var(--fjord); }
.hs-card__row { display: flex; gap: 1cqi; }
.hs-card__row::before { content: ""; flex: none; width: 1.2cqi; height: 1.2cqi; margin-top: 0.55cqi; border-radius: 50%; background: var(--warm); }
.hs-card__bar { height: 0.7cqi; margin-top: 0.6cqi; border-radius: 1cqi; background: var(--ice); overflow: hidden; }
.hs-card__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--fjord), var(--warm)); transform-origin: left; transform: scaleX(var(--pipe)); }
.hs-stamp {
  position: absolute;
  right: -3cqi;
  top: -3cqi;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.2cqi;
  width: 10.5cqi;
  height: 10.5cqi;
  border-radius: 50%;
  background: var(--warm);
  color: var(--ink);
  font-family: "Familjen Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.8cqi;
  letter-spacing: -0.01em;
  box-shadow: 0 0 0 0.7cqi rgba(255, 255, 255, 0.85), 0 1.6cqi 3.2cqi -1cqi rgba(168, 82, 15, 0.6);
  opacity: 0;
  transform: scale(1.7) rotate(-40deg);
  transition: opacity 0.3s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hs-stamp svg { width: 3.6cqi; height: 3.6cqi; }
.hs.is-done .hs-stamp { opacity: 1; transform: rotate(-12deg); }

/* Steg 3 – installation */
.hs-unit { opacity: 0; transform: translateX(-60px); transition: opacity 0.7s ease, transform 1.1s var(--ease); }
.hs.is-s3 .hs-unit { opacity: 1; transform: none; }
.hs-fan { transform-box: fill-box; transform-origin: center; }
.hs.is-s3 .hs-fan { animation: nv-spin 1.5s linear infinite; }
.hs-facade { transform-box: fill-box; transform-origin: 50% 100%; transition: opacity 0.8s ease, transform 1.1s var(--ease); }
/* Steg 3: fasaden lyfts tydligt uppåt och tonas ut snabbare än den rör sig. */
.hs.is-s3 .hs-facade { opacity: 0; transform: translateY(-46%) rotate(-3deg); transition: opacity 0.3s ease, transform 0.9s var(--ease); }
/* Steg 4: fasaden sätts tillbaka – ett färdigt hus med lysande fönster. */
.hs.is-home .hs-facade { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 1.1s var(--ease); }
.hs-pipe {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: calc(1 - var(--pipe));
  opacity: min(1, calc(var(--pipe) * 30));
}
.hs-pipe--hot { stroke: #E0782A; }
.hs-pipe--cold { stroke: #4F86B6; }
.hs-indoor { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease 0.35s, transform 0.9s var(--ease) 0.35s; }
.hs.is-s3 .hs-indoor { opacity: 1; transform: none; }
.hs-led { transition: fill 0.6s ease; }

/* Steg 4 – varmt hem */
.hs-waves ellipse { opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity 0.8s ease; }
.hs.is-home .hs-waves ellipse { opacity: 0.55; }
.hs.is-home .hs-waves ellipse:nth-child(2) { opacity: 0.38; }
.hs.is-home .hs-waves ellipse:nth-child(3) { opacity: 0.22; }

/* Termometern */
.hs-thermo {
  position: absolute;
  right: 3.6%;
  top: 8%;
  width: 12.5%;
  display: grid;
  justify-items: center;
  gap: 1.1cqi;
  padding: 2.2cqi 1cqi 2.4cqi;
  border-radius: 2.6cqi;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(15, 59, 95, 0.08), 0 2.4cqi 4.8cqi -2.4cqi rgba(15, 59, 95, 0.45);
}
.hs-thermo__label, .hs-thermo__out { font-family: "Geist Mono", monospace; font-size: max(10.5px, 1.35cqi); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hs-thermo__out { margin-top: 2.2cqi; letter-spacing: 0.02em; text-transform: none; }
.hs-thermo__value {
  font-family: "Familjen Grotesk", sans-serif;
  font-weight: 700;
  font-size: 4.4cqi;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: rgb(calc(15 + 153 * var(--heat)) calc(59 + 23 * var(--heat)) calc(95 - 80 * var(--heat)));
}
.hs-thermo__tube { position: relative; width: 2.8cqi; height: 25cqi; margin-top: 0.6cqi; border-radius: 99px; background: #E1ECF5; }
.hs-thermo__tube::before, .hs-thermo__tube::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2.2cqi;
  width: 5cqi;
  height: 5cqi;
  translate: -50% 0;
  border-radius: 50%;
  background: #4F86B6;
  box-shadow: 0 0 0 0.5cqi #fff;
}
.hs-thermo__tube::before { background: #3F7AAE; }
.hs-thermo__tube::after { z-index: 1; background: var(--warm); box-shadow: none; opacity: 0; transition: opacity 0.6s ease; }
.hs.is-warm .hs-thermo__tube::after { opacity: 1; }
.hs-thermo__tube i {
  position: absolute;
  inset: 0.6cqi;
  border-radius: 99px;
  background: linear-gradient(0deg, #3F7AAE 0%, #8DB3D6 38%, #F7B57A 47%, #E9781F 100%);
  clip-path: inset(calc((0.6 - 0.45 * var(--heat)) * 100%) 0 0 0 round 99px);
}


/* Smal scen (telefon): egen inramning och läsbar text i överläggen (minst 11 px) */
@container (max-width: 480px) {
  .hs-note, .hs-card { left: 4%; top: 4%; width: 52%; font-size: max(11px, 3.2cqi); gap: 1.4cqi; padding: 3cqi 3.2cqi; border-radius: 3cqi; }
  .hs-note { padding-top: 4cqi; }
  .hs-note__title { font-size: max(13px, 4cqi); }
  .hs-note__row { align-items: flex-start; }
  .hs-note__row i { width: max(11px, 3.4cqi); height: max(11px, 3.4cqi); margin-top: 0.15em; }
  .hs-card__title { font-size: max(14px, 4.4cqi); }
  .hs-card__row + .hs-card__row { display: none; }
  .hs-card__status, .hs-st { height: max(20px, 6cqi); }
  .hs-st { font-size: max(11px, 3.1cqi); padding: 0 2.2cqi; letter-spacing: 0.06em; }
  .hs-card__bar { height: 1.2cqi; }
  .hs-stamp { width: 16cqi; height: 16cqi; font-size: max(11px, 3.4cqi); right: -13cqi; top: -2.5cqi; }
  .hs-stamp svg { width: 5cqi; height: 5cqi; }
  /* Termometern flyttas till nedre högra hörnet och blir kompaktare */
  .hs-thermo { width: 17%; right: 3%; top: auto; bottom: 4%; gap: 1.2cqi; padding: 2.6cqi 0.4cqi 2.8cqi; border-radius: 3.4cqi; }
  .hs-thermo__out { white-space: nowrap; letter-spacing: 0; }
  .hs-thermo__value { font-size: max(16px, 5.6cqi); }
  .hs-thermo__label, .hs-thermo__out { font-size: max(11px, 3.1cqi); letter-spacing: 0.02em; }
  .hs-thermo__out { margin-top: 2.8cqi; }
  .hs-thermo__tube { width: 3.4cqi; height: 15cqi; }
  .hs-thermo__tube::before, .hs-thermo__tube::after { width: 6cqi; height: 6cqi; bottom: -2.6cqi; }
  /* Huset något lägre och mindre i den kvadratiska scenen */
  .hs-world { transform: translate(320px, 500px) scale(0.88) translate(-332px, -500px); }
  .hs-firs use:nth-child(n+3) { display: none; }
  .hs-tag { font-size: 12.6px; }
  .hs-lbl { transform: scale(1.55); }
}

/* ==========================================================================
   GUIDE
   ========================================================================== */
.nv-guide {
  --focus: #FFC58F;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 0% 0%, rgba(43, 108, 160, 0.55), transparent 60%),
    linear-gradient(180deg, #0F3B5F 0%, #0B2F4D 100%);
  color: #fff;
}
.nv-guide__glow {
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 70%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 140, 56, 0.16), transparent);
  pointer-events: none;
}
.nv-guide__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.nv-guide .nv-kicker { color: #FFC58F; }
.nv-guide .nv-muted { margin-top: 20px; color: #C3D6E6; }
.nv-guide .nv-accent { background-image: linear-gradient(100deg, #FFD3A6, #F7A35C); }
.nv-guide__facts { display: grid; margin-top: 36px; font-size: 0.95rem; color: #D5E3EE; }
.nv-guide__facts li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.nv-guide__facts li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 4px rgba(242, 140, 56, 0.18); }

.nv-quiz {
  display: grid;
  gap: 28px;
  padding: clamp(22px, 3vw, 36px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 40px 80px -40px rgba(0, 0, 0, 0.5);
}
.nv-q { min-width: 0; margin: 0; padding: 0; border: 0; }
.nv-q legend { display: flex; align-items: baseline; gap: 12px; padding: 0; margin-bottom: 14px; font-weight: 600; font-size: 1.05rem; }
.nv-q__n { font-family: "Geist Mono", monospace; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; color: #FFC58F; }
.nv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nv-chiprad { position: relative; display: inline-flex; }
.nv-chiprad input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.nv-chiprad span {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.35s var(--ease), gap 0.35s var(--ease);
}
.nv-chiprad span::before {
  content: "";
  width: 0;
  height: 16px;
  border-radius: 50%;
  background: var(--fjord) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4 8.6 13.4 14.6 7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
  transition: width 0.35s var(--ease);
}
.nv-chiprad:hover span { background: rgba(255, 255, 255, 0.14); }
.nv-chiprad input:checked + span { gap: 8px; background: #fff; color: var(--fjord); font-weight: 600; box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.6); }
.nv-chiprad input:checked + span::before { width: 16px; }
.nv-chiprad input:active + span { transform: scale(0.96); }
.nv-chiprad input:focus-visible + span { outline: 3px solid #FFC58F; outline-offset: 3px; }

.nv-result {
  --focus: #A8520F;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 6px 18px;
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}
.nv-result__icon { position: relative; width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(160deg, var(--ice), #fff); box-shadow: inset 0 0 0 1px var(--line); }
.nv-ri { position: absolute; inset: 6px; width: 52px; height: 52px; opacity: 0; transform: scale(0.6) rotate(-14deg); transition: opacity 0.35s ease, transform 0.7s var(--ease); }
.nv-result[data-type="luft-vatten"] .nv-ri--luft-vatten,
.nv-result[data-type="berg"] .nv-ri--berg,
.nv-result[data-type="luft-luft"] .nv-ri--luft-luft { opacity: 1; transform: none; }
.nv-result__label { font-family: "Geist Mono", monospace; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--warm-ink); }
.nv-result strong { display: block; margin-top: 2px; font-family: "Familjen Grotesk", sans-serif; font-size: 1.7rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; color: var(--fjord); }
.nv-result p { margin-top: 6px; color: var(--muted); }
.nv-result__link { grid-column: 2; justify-self: start; margin-top: 6px; }
.nv-result.is-swap strong { animation: nv-swap 0.7s var(--ease) both; }
.nv-result.is-swap p { animation: nv-swap 0.7s var(--ease) 0.08s both; }
.nv-result.is-swap .nv-result__icon { animation: nv-bump 0.6s var(--ease); }
.nv-card.is-flash { animation: nv-flash 1.6s ease; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.nv-faq { background: #fff; }
.nv-faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.nv-faq__head { position: sticky; top: 104px; }
.nv-faq__head .nv-muted { margin-top: 18px; }
.nv-faq__list { display: grid; gap: 12px; }
.nv-faq details { border-radius: 18px; background: var(--snow); box-shadow: inset 0 0 0 1px var(--line); }
.nv-faq details[open] { background: #fff; box-shadow: inset 0 0 0 1px var(--line-2), 0 22px 44px -32px rgba(15, 59, 95, 0.4); }
.nv-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 18px;
  font-weight: 600;
  font-size: 1.06rem;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s ease;
}
.nv-faq summary::-webkit-details-marker { display: none; }
.nv-faq summary::after {
  content: "";
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    linear-gradient(var(--fjord), var(--fjord)) center / 12px 2px no-repeat,
    linear-gradient(var(--fjord), var(--fjord)) center / 2px 12px no-repeat,
    var(--ice);
  transition: transform 0.5s var(--ease), background-color 0.3s ease;
}
.nv-faq summary:hover { color: var(--fjord); }
.nv-faq summary:hover::after { transform: rotate(90deg); }
.nv-faq details[open] summary::after {
  transform: rotate(135deg);
  background:
    linear-gradient(var(--warm-ink), var(--warm-ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--warm-ink), var(--warm-ink)) center / 2px 12px no-repeat,
    var(--warm-soft);
}
.nv-faq summary:focus-visible { outline-offset: -3px; }
.nv-faq__a { padding: 0 22px 22px; }
.nv-faq__a p { max-width: 60ch; color: var(--muted); }

/* ==========================================================================
   KONTAKT
   ========================================================================== */
.nv-cta { padding: 0 0 clamp(84px, 10vw, 140px); background: #fff; }
.nv-cta__panel {
  --focus: #FFC58F;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 40px 64px;
  align-items: end;
  padding: clamp(32px, 6vw, 80px);
  border-radius: 36px;
  background:
    radial-gradient(45% 70% at 82% 18%, rgba(255, 170, 100, 0.2), transparent 70%),
    linear-gradient(160deg, #174C78 0%, #0B2F4D 100%);
  color: #fff;
}
.nv-cta__side { display: grid; }
.nv-cta__window { width: min(250px, 72%); height: auto; margin: 0 0 22px auto; overflow: visible; }
.nv-cta__halo { transform-box: fill-box; transform-origin: center; animation: nv-glow 5s ease-in-out infinite alternate; }
.nv-cta .nv-kicker { color: #FFC58F; }
.nv-cta h2 { font-size: clamp(2.3rem, 1.4rem + 3vw, 4rem); }
.nv-cta__text p { margin-top: 18px; max-width: 48ch; color: #C9DAE7; }
.nv-cta__actions { margin-top: 30px; }
.nv-note {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
  color: #fff !important;
}
.nv-note:empty { display: none; }
.nv-note.is-shown { animation: nv-swap 0.6s var(--ease) both; }
.nv-cta__steps { display: grid; font-size: 0.98rem; color: #E3EDF5; }
.nv-cta__steps li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.nv-cta__steps span {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-family: "Geist Mono", monospace;
  font-size: 0.8rem;
  color: #FFC58F;
}

/* ==========================================================================
   SIDFOT
   ========================================================================== */
.nv-footer { --focus: #FFC58F; padding: 64px 0 28px; background: var(--deep); color: #A9C0D3; font-size: 0.95rem; }
.nv-footer__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px 48px; align-items: center; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.nv-logo--light { color: #fff; }
.nv-footer__tag { max-width: 40ch; }
.nv-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.nv-footer a { color: #E3EDF5; text-decoration: none; }
.nv-footer__nav a:hover, .nv-footer__bottom a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nv-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 24px; font-size: 0.88rem; }

/* ==========================================================================
   KEYFRAMES
   ========================================================================== */
@keyframes nv-spin { to { transform: rotate(360deg); } }
@keyframes nv-pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 140, 56, 0.5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(242, 140, 56, 0); } }
@keyframes nv-word { from { transform: translate3d(0, 108%, 0) rotate(5deg); } to { transform: none; } }
@keyframes nv-fade-up { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
@keyframes nv-scene-in {
  from { opacity: 0; clip-path: inset(9% 7% 9% 7% round 44px); }
  to { opacity: 1; clip-path: inset(0 0 0 0 round 32px); }
}
@keyframes nv-card-in { from { opacity: 0; translate: 0 34px; } to { opacity: 1; translate: 0 0; } }
@keyframes nv-twinkle { 50% { opacity: 0.25; } }
@keyframes nv-vapor {
  0% { opacity: 0; transform: translateY(8px) scale(0.6); }
  30% { opacity: 0.32; }
  100% { opacity: 0; transform: translateY(-18px) scale(1.5); }
}
@keyframes nv-flow { to { stroke-dashoffset: -24; } }
@keyframes nv-heat { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-6px); opacity: 0.45; } }
@keyframes nv-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes nv-rise { 0% { opacity: 0; transform: translateY(16px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }
@keyframes nv-swap { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes nv-bump { 40% { transform: scale(1.08) rotate(-4deg); } }
@keyframes nv-flash { 0%, 100% { box-shadow: 0 0 0 1px var(--line), 0 24px 48px -38px rgba(15, 59, 95, 0.45); } 25% { box-shadow: 0 0 0 3px var(--warm), 0 30px 60px -30px rgba(242, 140, 56, 0.6); } }
@keyframes nv-glow { from { opacity: 0.75; transform: scale(0.94); } to { opacity: 1; transform: scale(1.04); } }
@keyframes hs-march { to { stroke-dashoffset: -18; } }
@keyframes hs-wave {
  0% { opacity: 0; transform: scale(0.82); }
  35% { opacity: 0.6; }
  100% { opacity: 0; transform: scale(1.12); }
}
@media (prefers-reduced-motion: no-preference) {
  .js-ready .hs.is-home .hs-waves ellipse { animation: hs-wave 3.6s ease-out infinite; }
  .js-ready .hs.is-home .hs-waves ellipse:nth-child(2) { animation-delay: 1.2s; }
  .js-ready .hs.is-home .hs-waves ellipse:nth-child(3) { animation-delay: 2.4s; }
}

/* ==========================================================================
   RESPONSIVT
   ========================================================================== */
@media (max-width: 1100px) {
  .nv-nav a { padding: 10px 10px; }
  .nv-nav a::after { left: 10px; right: 10px; }
  .nv-tempcard { left: -16px; }
}

@media (max-width: 900px) {
  .nv { --header-h: 64px; }
  .nv-header.is-scrolled .nv-header__inner { height: 58px; }
  .nv-header__inner { gap: 12px; }
  .nv-nav { display: none; }
  .nv-header__cta { margin-left: auto; padding: 0 14px; font-size: 0.9rem; min-height: 42px; }
  .js-ready .nv-menu-btn {
    display: inline-flex;
    order: 3;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--ice);
    color: var(--fjord);
  }
  .nv-menu-btn__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nv-menu-btn__lines { position: relative; width: 18px; height: 12px; }
  .nv-menu-btn__lines i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.45s var(--ease), top 0.45s var(--ease); }
  .nv-menu-btn__lines i:first-child { top: 2px; }
  .nv-menu-btn__lines i:last-child { top: 8px; }
  .nv-menu-btn[aria-expanded="true"] .nv-menu-btn__lines i:first-child { top: 5px; transform: rotate(45deg); }
  .nv-menu-btn[aria-expanded="true"] .nv-menu-btn__lines i:last-child { top: 5px; transform: rotate(-45deg); }
  .js-ready .nv-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px 20px 20px;
    background: #FAFCFE;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(15, 59, 95, 0.35);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.5s var(--ease), visibility 0s linear 0.5s;
  }
  .js-ready .nv-nav.is-open { clip-path: inset(0 0 -40px 0); visibility: visible; transition: clip-path 0.5s var(--ease); }
  .nv-nav ul { flex-direction: column; gap: 0; }
  .nv-nav a { display: flex; padding: 16px 2px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.2rem; font-family: "Familjen Grotesk", sans-serif; font-weight: 600; color: var(--ink); }
  .nv-nav a::after { display: none; }

  .nv-hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  .nv-hero__title { font-size: clamp(2.8rem, 8vw, 4.4rem); }
  .nv-hero__visual { max-width: 620px; width: 100%; margin-inline: auto; }
  .nv-tempcard { left: 14px; top: 14px; }
  .nv-head--split { grid-template-columns: 1fr; }
  .nv-head--split .nv-muted { justify-self: start; }
  .nv-cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .nv-guide__grid, .nv-faq__grid { grid-template-columns: 1fr; }
  .nv-faq__head { position: static; }
  .nv-cta__panel { grid-template-columns: 1fr; align-items: start; }
  .nv-footer__top { grid-template-columns: 1fr; }

  .nv-seq__grid { grid-template-columns: 1fr; gap: 36px; }
  .js-ready .nv-seq__track { height: 400vh; }
  .js-ready .nv-seq__sticky { padding: calc(70px + clamp(0px, (100svh - 760px) * 0.5, 72px)) 0 16px; }
  .js-ready .nv-seq__grid { gap: 14px; }
  .js-ready .nv-seq__copy .nv-kicker { display: none; }
  .js-ready .nv-seq__copy { padding-top: 0; }
  .js-ready .nv-seq__copy h2 { font-size: clamp(1.75rem, 1.1rem + 3vw, 2.4rem); }
  .js-ready .nv-seq__steps { grid-template-areas: "s"; margin-top: 14px; }
  .js-ready .nv-seq__steps::before, .js-ready .nv-seq__steps::after { display: none; }
  .js-ready .nv-step { grid-area: s; padding: 0; opacity: 0; transform: translateY(10px); transition: opacity 0.45s ease, transform 0.6s var(--ease); }
  .js-ready .nv-step.is-done { opacity: 0; }
  .js-ready .nv-step.is-active { opacity: 1; transform: none; }
  .js-ready .nv-step p { max-height: none; margin-top: 4px; opacity: 1; font-size: 0.94rem; }
  .js-ready .nv-step h3 { padding-top: 5px; font-size: 1.2rem; }
  .js-ready .nv-seq__visual .hs,
  .js-ready .nv-meter { width: min(100%, calc((100svh - 330px) * 640 / 520)); }
  .nv-meter__name { display: none; }
}

@media (max-width: 900px) and (max-height: 640px) {
  .js-ready .nv-seq__copy h2 { display: none; }
  .js-ready .nv-seq__visual .hs,
  .js-ready .nv-meter { width: min(100%, calc((100svh - 230px) * 640 / 520)); }
}

@media (max-width: 560px) {
  .nv-hero { padding-top: 22px; }
  .nv-hero__grid { gap: 0; }
  .nv-hero__text { display: contents; }
  .nv-hero__kicker { order: 0; justify-self: start; margin-bottom: 12px; }
  .nv-hero__title { order: 1; font-size: clamp(2.3rem, 1rem + 6.6vw, 3rem); }
  .nv-hero__visual { order: 2; margin-top: 22px; }
  .nv-hero__lead { order: 3; margin-top: 26px; }
  .nv-hero__actions { order: 4; margin-top: 24px; }
  .nv-trust { order: 5; margin-top: 22px; }
  .nv-footer__nav a, .nv-footer__bottom a { display: inline-block; padding-block: 12px; }
  .nv-actions .nv-btn { flex: 1 1 100%; }
  .nv-scene { aspect-ratio: 600 / 600; border-radius: 26px; }
  .nv-tempcard { left: 10px; top: 10px; padding: 8px; gap: 6px; border-radius: 16px; }
  .nv-tempcard__cell { min-width: 74px; padding: 7px 12px 9px; }
  .nv-tempcard__cell b { font-size: 1.5rem; }
  .nv-tempcard__top { font-size: 0.64rem; }
  .nv-card__body { padding: 22px 22px 26px; }
  .nv-result { grid-template-columns: 52px minmax(0, 1fr); padding: 18px; gap: 6px 14px; }
  .nv-result__icon { width: 52px; height: 52px; border-radius: 14px; }
  .nv-ri { inset: 4px; width: 44px; height: 44px; }
  .nv-result strong { font-size: 1.4rem; }
  .nv-result__link { grid-column: 1 / -1; }
  .nv-chiprad span { min-height: 44px; padding: 0 15px; }
  .nv-faq summary { padding: 18px; font-size: 1rem; }
  .nv-faq__a { padding: 0 18px 18px; }
  .nv-cta__panel { border-radius: 28px; }
  .nv-cta__window { width: 190px; margin: 0 auto 12px; }
  .hs { border-radius: 20px; aspect-ratio: 1 / 1; }
  .js-ready .nv-seq__visual .hs,
  .js-ready .nv-meter { width: min(100%, calc(100svh - 330px)); }
  .nv-footer__bottom { flex-direction: column; }
}

@media (max-width: 380px) {
  .nv-logo span { font-size: 1.1rem; }
  .nv-header__cta { padding: 0 12px; font-size: 0.86rem; }
}

/* ==========================================================================
   MINSKAD RÖRELSE
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .js-ready [data-reveal] { opacity: 1; transform: none; }
  .nv-sw > span, .js-ready .nv-hero__title .nv-sw > span { transform: none; animation: none; }
  .js-ready .nv-hero__kicker, .js-ready .nv-hero__lead, .js-ready .nv-hero__actions,
  .js-ready .nv-trust li, .js-ready .nv-scene, .js-ready .nv-tempcard { animation: none; }
  .nv-pulse, .nv-fan, .nv-vapor circle, .nv-tw, .nv-cta__halo, .hs-dash, .hs-fan { animation: none !important; }
  .nv-vapor circle { opacity: 0.25; }
  .nv-btn, .nv-card { transition: none; }
  .nv-card:hover { translate: none; }
  .hs-facade, .hs-unit, .hs-note, .hs-card, .hs-indoor, .hs-dim, .hs-blueprint g { transition: opacity 0.01ms; }
}
