/* ==========================================================================
   BevisstUng — designsystem
   Retning: editorial. Varm, menneskelig og redaksjonell, med den samme
   svart-hvite profilen på tvers av hovedside, tjenestesider og karriereside.
   ========================================================================== */

:root {
  /* Farger */
  --paper:      #f7f4ee;
  --paper-warm: #f0ebe2;
  --paper-deep: #e5ded3;
  --ink:        #171819;
  --ink-soft:   #383a3c;
  --muted:      #696c6f;
  --deep:       #202224;
  --deep-2:     #303336;
  --slate:      #4c4f52;
  --ember:      #c45d43;
  --ember-lo:   #df8069;
  --moss:       #45484a;
  --line:       rgba(20, 24, 29, .13);
  --line-soft:  rgba(20, 24, 29, .07);
  --line-dark:  rgba(246, 243, 238, .16);

  /* Typografi */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Rom */
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --col: 1240px;
  --col-narrow: 740px;
  --sec: clamp(4.5rem, 10vw, 9rem);

  /* Bevegelse */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.08;
  margin: 0;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 40;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 4.9rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.28rem, 2vw, 1.6rem); line-height: 1.25; }
p  { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--ember); color: #fff; }

/* --------------------------------------------------------------- primitives */
.wrap { width: min(var(--col), 100% - 2 * var(--gut)); margin-inline: auto; }
.narrow { width: min(var(--col-narrow), 100% - 2 * var(--gut)); margin-inline: auto; }
.section { padding-block: var(--sec); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.eyebrow {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .17em;
  font-weight: 600;
  color: var(--ember);
  margin: 0 0 1.1rem;
}
.eyebrow--muted { color: var(--muted); }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Knapper */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.6rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: .93rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); background: var(--ember); border-color: var(--ember); color: #fff; }
.btn svg { width: 17px; height: 17px; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn--ember { background: var(--ember); border-color: var(--ember); color: #fff; }
.btn--ember:hover { background: var(--ink); border-color: var(--ink); }

.btn--light { background: transparent; color: var(--paper); border-color: var(--line-dark); }
.btn--light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: .18rem;
  transition: gap .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.link:hover { gap: .85rem; color: var(--ember); border-color: var(--ember); }
.link svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------------- header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 243, 238, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease-soft), background .4s var(--ease-soft);
}
.site-head.is-stuck { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--ink);
  border-radius: 8px;
  flex-shrink: 0;
}
.brand__mark img { width: 20px; height: auto; }
.brand__name {
  font-family: var(--display);
  font-size: 1.16rem;
  letter-spacing: -.01em;
  line-height: 1;
}
.brand__name b { font-weight: 600; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 1.7vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  text-decoration: none;
  font-size: .9rem;
  font-weight: 450;
  color: var(--ink-soft);
  position: relative;
  padding-block: .3rem;
  transition: color .28s var(--ease);
  white-space: nowrap;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 0;
  background: var(--ember);
  transition: width .38s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { width: 100%; }
.nav__links a[aria-current="page"] { color: var(--ink); }

.nav__cta { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.nav__cta .btn { padding: .68rem 1.15rem; font-size: .86rem; }

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.burger span + span { margin-top: 4.5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1120px) {
  .burger { display: grid; }
  .nav__links {
    position: fixed;
    inset: 76px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gut) 1.5rem;
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .35s var(--ease);
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: .95rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1.02rem; }
  .nav__cta .btn { display: none; }
}

/* --------------------------------------------------------------------- hero */
.hero {
  position: relative;
  background: var(--deep);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 38%;
  opacity: .42;
  transform: scale(1.07);
  will-change: transform;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16,20,25,.72) 0%, rgba(16,20,25,.5) 42%, rgba(16,20,25,.94) 100%),
    radial-gradient(120% 80% at 15% 20%, rgba(255,255,255,.13), transparent 60%);
}
.hero__inner {
  padding-block: clamp(6rem, 15vw, 11rem) clamp(4rem, 9vw, 7rem);
  position: relative;
}
.hero h1 { color: var(--paper); max-width: 15ch; }
.hero h1 em {
  font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 60;
  color: var(--ember-lo);
}
.hero .lede { color: rgba(246,243,238,.8); margin-top: 1.6rem; max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.4rem; }
.hero .eyebrow { color: var(--ember-lo); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
}
.hero__meta div { min-width: 120px; }
.hero__meta dt {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(246,243,238,.55);
  margin-bottom: .35rem;
}
.hero__meta dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--paper);
}

/* Page hero (undersider) */
.page-hero {
  background: var(--deep);
  color: var(--paper);
  padding-block: clamp(5rem, 11vw, 8rem) clamp(3.5rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 70% at 85% 10%, rgba(255,255,255,.11), transparent 62%);
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { color: var(--paper); max-width: 17ch; }
.page-hero .lede { color: rgba(246,243,238,.75); margin-top: 1.5rem; }
.page-hero .eyebrow { color: var(--ember-lo); }

.crumbs {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .78rem;
  color: rgba(246,243,238,.5);
  margin-bottom: 1.6rem;
  list-style: none;
  padding: 0;
}
.crumbs a { text-decoration: none; color: inherit; transition: color .3s var(--ease); }
.crumbs a:hover { color: var(--ember-lo); }

/* ------------------------------------------------------------------ moduler */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.4rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--wide { grid-template-columns: 1.05fr .95fr; }
.split--start { align-items: start; }
@media (max-width: 860px) { .split, .split--wide { grid-template-columns: 1fr; } }

.head-2col {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 800px) { .head-2col { grid-template-columns: 1fr; align-items: start; } }

/* Kort */
.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  will-change: transform;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px -30px rgba(20, 24, 29, .3);
  border-color: var(--line);
}
.card__ico {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--paper-warm);
  color: var(--ember);
  margin-bottom: 1.2rem;
}
.card__ico svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card__num {
  font-family: var(--display);
  font-size: .95rem;
  color: var(--ember);
  display: block;
  margin-bottom: .8rem;
  letter-spacing: .04em;
}

.card--flat { background: transparent; border: 0; padding: 0; }
.card--flat:hover { transform: none; box-shadow: none; }
.card--line {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 1.8rem 0 0;
}
.card--line:hover { transform: none; box-shadow: none; }

/* Bilder */
.figure { position: relative; overflow: hidden; border-radius: 18px; background: var(--paper-deep); }
.figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.figure:hover img { transform: scale(1.035); }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--wide { aspect-ratio: 16 / 10; }
.figure--square { aspect-ratio: 1; }
.figure figcaption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: rgba(16,20,25,.72);
  backdrop-filter: blur(8px);
  color: var(--paper);
  padding: .45rem .85rem;
  border-radius: 999px;
  font-size: .76rem;
  letter-spacing: .02em;
}

/* Tall / statistikk */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } }
.stat { border-top: 2px solid var(--ink); padding-top: 1.4rem; }
.stat__n {
  font-family: var(--display);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  line-height: 1;
  display: block;
  font-variation-settings: "opsz" 60;
}
.stat__l { color: var(--muted); font-size: .95rem; margin-top: .6rem; }

/* Sitat */
.quote {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.35;
  font-variation-settings: "SOFT" 40, "opsz" 40;
  margin: 0;
}
.quote__by {
  display: block;
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--muted);
  margin-top: 1.2rem;
  letter-spacing: .02em;
}
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.quotes .quote { font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.45; }
.quote-card {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}

/* Mørke seksjoner */
.dark {
  background: var(--deep);
  color: var(--paper);
}
.dark h1, .dark h2, .dark h3 { color: var(--paper); }
.dark .lede { color: rgba(246,243,238,.72); }
.dark .eyebrow { color: var(--ember-lo); }
.dark .rule { background: var(--line-dark); }
.dark .stat { border-top-color: var(--ember); }
.dark .stat__l { color: rgba(246,243,238,.6); }
.dark .quote__by { color: rgba(246,243,238,.55); }
.dark .quote-card { border-top-color: var(--line-dark); }
.dark .card {
  background: rgba(246,243,238,.04);
  border-color: var(--line-dark);
}
.dark .card:hover { background: rgba(246,243,238,.07); box-shadow: none; }
.dark .card p { color: rgba(246,243,238,.65); }
.dark .card__ico { background: rgba(255,255,255,.1); color: var(--ember-lo); }
.dark .link { border-color: var(--line-dark); }
.dark .link:hover { color: var(--ember-lo); border-color: var(--ember-lo); }

/* CTA-bånd */
.cta-band {
  background: var(--deep-2);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 120% at 80% 100%, rgba(255,255,255,.12), transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--paper); max-width: 18ch; }
.cta-band p { color: rgba(246,243,238,.7); max-width: 46ch; }
.cta-band__row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.cta-band .btn-row { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ------------------------------------------------------------------- footer */
.site-foot {
  background: var(--deep);
  color: rgba(246,243,238,.7);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
  font-size: .92rem;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot__grid { grid-template-columns: 1fr; } }
.foot__grid h4 {
  font-family: var(--sans);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(246,243,238,.45);
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.foot__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.foot__grid a { text-decoration: none; transition: color .3s var(--ease); }
.foot__grid a:hover { color: var(--ember-lo); }
.foot__brand .brand__mark { background: rgba(246,243,238,.1); }
.foot__brand .brand__name { color: var(--paper); }
.foot__brand p { margin-top: 1.2rem; max-width: 34ch; color: rgba(246,243,238,.55); font-size: .9rem; }
.foot__bar {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: rgba(246,243,238,.45);
}
.foot__bar a { text-decoration: none; }
.foot__bar a:hover { color: rgba(246,243,238,.8); }

/* -------------------------------------------------------------------- forms */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: .45rem; align-content: start; }
.field > label {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  color: var(--ink-soft);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: .96rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: .85rem 1rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236d7078' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(23, 24, 25, .12);
}
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--ember); }
.field__err { font-size: .78rem; color: var(--ember); display: none; }
.field.has-err .field__err { display: block; }
.field__hint { font-size: .8rem; color: var(--muted); }

.hp { position: absolute; left: -9999px; opacity: 0; }

.form__consent {
  display: flex;
  gap: .65rem;
  align-items: start;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.5;
}
.form__consent input { margin-top: .25rem; accent-color: var(--ember); flex-shrink: 0; }

.form__ok {
  display: none;
  background: rgba(69, 72, 74, .1);
  border: 1px solid rgba(69, 72, 74, .3);
  color: var(--moss);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-size: .92rem;
}
.form.is-sent .form__ok { display: block; }
.form.is-sent .form__body { display: none; }

/* Sjekkboks-sky (kompetanse, tilgjengelighet) */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  position: relative;
  display: inline-flex;
}
.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.chip span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .88rem;
  background: #fff;
  transition: all .28s var(--ease);
  user-select: none;
}
.chip input:hover + span { border-color: var(--ink); }
.chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(23, 24, 25, .18); }

/* ---------------------------------------------------------- portal / wizard */
.wizard {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 80px -60px rgba(20, 24, 29, .4);
}
.wizard__head {
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper-warm);
}
.wizard__steps {
  display: flex;
  gap: .4rem;
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  flex-wrap: wrap;
}
.wizard__steps li {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  color: var(--muted);
  padding: .3rem .7rem .3rem .35rem;
  border-radius: 999px;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.wizard__steps li b {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: .72rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: all .3s var(--ease);
}
.wizard__steps li.is-active { color: var(--ink); background: #fff; }
.wizard__steps li.is-active b { background: var(--ember); border-color: var(--ember); color: #fff; }
.wizard__steps li.is-done b { background: var(--moss); border-color: var(--moss); color: #fff; }
.wizard__steps li.is-done { color: var(--ink-soft); }

.wizard__bar {
  height: 3px;
  background: var(--paper-deep);
  border-radius: 999px;
  overflow: hidden;
}
.wizard__bar i {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--ember);
  border-radius: 999px;
  transition: width .5s var(--ease);
}

.wizard__body { padding: clamp(1.6rem, 3.4vw, 2.6rem); }
.wizard__pane { display: none; animation: pane .45s var(--ease); }
.wizard__pane.is-active { display: grid; gap: 1.2rem; }
@keyframes pane { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wizard__pane h3 { margin-bottom: .2rem; }
.wizard__pane > p { color: var(--muted); font-size: .95rem; margin: -.6rem 0 .4rem; }

.wizard__foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem clamp(1.6rem, 3.4vw, 2.6rem);
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
}
.wizard__foot .btn { padding: .8rem 1.35rem; }
.wizard__foot .btn[hidden] { display: none; }

.review { display: grid; gap: 0; border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; }
.review div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1rem;
  padding: .85rem 1.1rem;
  font-size: .92rem;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}
.review div:last-child { border-bottom: 0; }
.review dt { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.review dd { margin: 0; color: var(--ink); }
@media (max-width: 560px) { .review div { grid-template-columns: 1fr; gap: .2rem; } }

/* ------------------------------------------------- økosystem (metode-figur) */
.eco {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) { .eco { grid-template-columns: 1fr; } }

.eco__fig { position: relative; aspect-ratio: 1; max-width: 520px; margin-inline: auto; width: 100%; }
.eco__fig svg { width: 100%; height: 100%; overflow: visible; }
.eco__ring {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  transition: stroke .4s var(--ease), stroke-width .4s var(--ease);
}
.eco__node { cursor: pointer; }
.eco__node circle {
  fill: #fff;
  stroke: var(--line);
  stroke-width: 1;
  transition: all .4s var(--ease);
}
.eco__node text {
  font-family: var(--sans);
  font-size: 9.5px;
  fill: var(--ink-soft);
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  transition: fill .3s var(--ease);
  letter-spacing: .02em;
}
.eco__node:hover circle { stroke: var(--ink); }
.eco__node.is-active circle { fill: var(--ember); stroke: var(--ember); }
.eco__node.is-active text { fill: #fff; font-weight: 600; }
.eco__core circle { fill: var(--ink); stroke: var(--ink); }
.eco__core text { fill: var(--paper); font-weight: 600; font-size: 10.5px; }
.eco__panel {
  min-height: 190px;
  border-left: 2px solid var(--ember);
  padding-left: clamp(1.2rem, 2.5vw, 2rem);
}
.eco__panel h3 { margin-bottom: .7rem; }
.eco__panel p { color: var(--ink-soft); }
.eco__panel .eyebrow { margin-bottom: .7rem; }
.eco__hint { font-size: .82rem; color: var(--muted); margin-top: 1.5rem; }

/* --------------------------------------------------------------- tidslinje */
.steps { display: grid; gap: 0; counter-reset: s; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(1.6rem, 3vw, 2.2rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--ember);
  font-variation-settings: "opsz" 20;
  line-height: 1;
  padding-top: .2rem;
}
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--muted); max-width: 62ch; margin: 0; }
@media (max-width: 560px) { .step { grid-template-columns: 40px 1fr; } }

/* Liste med haker */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.checks li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: .8rem;
  align-items: start;
  font-size: .97rem;
  color: var(--ink-soft);
}
.checks svg { width: 18px; height: 18px; color: var(--ember); margin-top: .22rem; }
.dark .checks li { color: rgba(246,243,238,.75); }
.dark .checks svg { color: var(--ember-lo); }

/* Faktaboks */
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: .94rem;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: .15rem; } }

/* Tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--ink-soft);
  background: #fff;
}
.dark .tag { background: rgba(246,243,238,.06); border-color: var(--line-dark); color: rgba(246,243,238,.75); }
.tag--ember { background: rgba(23,24,25,.06); border-color: rgba(23,24,25,.22); color: var(--ember); }

/* ---------------------------------------------------------------- animasjon */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .4s; }

.reveal-mask { overflow: hidden; }
.reveal-mask > * {
  transform: translateY(105%);
  transition: transform 1s var(--ease);
}
.reveal-mask.is-in > * { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .reveal-mask > * { transform: none; }
  .hero__media img { transform: none; }
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: .5rem;
  background: var(--ink);
  color: var(--paper);
  padding: .7rem 1.2rem;
  border-radius: 8px;
  z-index: 100;
  text-decoration: none;
}
.skip:focus { left: var(--gut); }

/* ----------------------------------------------------- forside, tjenesteflyt */
.hero--video .hero__media video,
.hero--video .hero__media .hero__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  opacity: .42;
  transform: scale(1.07);
  will-change: transform;
}
.hero--video .hero__media .hero__fallback { z-index: 0; }
.hero--video .hero__media video { z-index: 1; }
.hero--video .hero__media video[hidden] { display: none; }

.service-intro { background: var(--paper-warm); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.service-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 54px -36px rgba(20, 24, 29, .38);
  border-color: var(--line);
}
.service-card__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-deep); }
.service-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .service-card__image img { transform: scale(1.04); }
.service-card__body { display: grid; align-content: start; gap: .75rem; padding: clamp(1.35rem, 2.5vw, 2rem); }
.service-card__body .eyebrow { margin: 0; }
.service-card__body strong { font-family: var(--display); font-weight: 400; font-size: clamp(1.55rem, 2.5vw, 2rem); line-height: 1.1; }
.service-card__body > span:not(.eyebrow):not(.link) { color: var(--muted); font-size: .95rem; }
.service-card__body .link { justify-self: start; margin-top: .35rem; }

.competence-points { display: grid; gap: 0; }
.competence-points article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: .2rem 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-dark);
}
.competence-points article:last-child { border-bottom: 1px solid var(--line-dark); }
.competence-points article > span { grid-row: 1 / 3; color: var(--ember-lo); font-family: var(--display); font-size: 1.2rem; }
.competence-points h3 { font-size: 1.35rem; }
.competence-points p { color: rgba(246,243,238,.65); font-size: .93rem; margin: .25rem 0 0; }

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: var(--deep);
  box-shadow: 0 35px 70px -45px rgba(20, 24, 29, .5);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.stories-section { background: var(--paper-warm); }
.story-card { overflow: hidden; border: 1px solid var(--line-soft); border-radius: 16px; background: #fff; }
.story-card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.story-card > div { padding: clamp(1.25rem, 2.3vw, 1.8rem); }
.story-card .eyebrow { margin-bottom: .65rem; }
.story-card h3 { margin-bottom: .7rem; }
.story-card p:not(.eyebrow) { color: var(--muted); font-size: .94rem; }
.story-card .link { margin-top: .35rem; }

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.newsletter__action { display: grid; justify-items: start; gap: .8rem; }
.newsletter__action small { max-width: 48ch; color: var(--muted); line-height: 1.5; }

@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card { display: grid; grid-template-columns: minmax(180px, .75fr) 1fr; }
  .service-card__image { aspect-ratio: auto; min-height: 260px; }
}

@media (max-width: 700px) {
  .newsletter { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .service-card { display: block; }
  .service-card__image { aspect-ratio: 16 / 10; min-height: 0; }
  .newsletter { padding: 1.5rem; }
  .newsletter__action .btn { width: 100%; justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero--video .hero__media video,
  .hero--video .hero__media .hero__fallback { transform: none; }
}

/* ---------------------------------------------------- forside, Aberia-retning
   Forsiden følger rekkefølgen Pål viste i arbeidsmøtet: video, jobb,
   tjenesteflater, vakttelefon, aktuelle saker, mennesker og nyhetsbrev. */
.aberia-home {
  --bu-blue: #2f3133;
  --bu-blue-dark: #171819;
  --bu-green: #3e4042;
  --bu-magenta: #55585b;
  --bu-mint: #74777a;
  --bu-cyan: #989b9d;
  --bu-text: #171819;
  --bu-soft: #f7f4ee;
  --bu-accent: #c45d43;
  --sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
  color: var(--bu-text);
}

.aberia-home h1,
.aberia-home h2,
.aberia-home h3,
.aberia-home .brand__name {
  font-family: var(--sans);
  font-variation-settings: normal;
  letter-spacing: -.035em;
}

.aberia-home h2 { font-weight: 750; }
.aberia-home h3 { font-weight: 700; }
.aberia-home .site-head { background: rgba(255, 255, 255, .96); }
.aberia-home .brand__name { font-weight: 700; letter-spacing: -.025em; }
.aberia-home .nav__cta .btn {
  border-radius: 999px;
  background: var(--bu-accent);
  border-color: var(--bu-accent);
}
.aberia-home .nav__cta .btn:hover {
  background: #a94b36;
  border-color: #a94b36;
}

.bu-home-hero {
  position: relative;
  min-height: clamp(500px, 70vh, 760px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #171819;
  color: #fff;
}
.bu-home-hero__media,
.bu-home-hero__shade { position: absolute; inset: 0; }
.bu-home-hero__media video,
.bu-home-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.bu-home-hero__media video { z-index: 1; }
.bu-home-hero__media video[hidden] { display: none; }
.bu-home-hero__shade {
  z-index: 2;
  background: linear-gradient(90deg, rgba(17, 18, 19, .82), rgba(17, 18, 19, .46) 62%, rgba(17, 18, 19, .3));
}
.bu-home-hero__content {
  position: relative;
  z-index: 3;
  text-align: left;
  display: grid;
  justify-items: start;
  padding-block: 6rem;
}
.bu-home-hero h1 {
  max-width: 15ch;
  color: #fff;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: .98;
  font-weight: 800;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .24);
}
.bu-home-hero p {
  margin: 1.35rem 0 1.8rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  color: rgba(255, 255, 255, .92);
}
.bu-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1.15rem;
  background: #fff;
  color: var(--bu-blue-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: .93rem;
}
.bu-arrow-link span { font-size: 1.35rem; line-height: .6; }

.bu-home-shell { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--bu-soft); }
.bu-job-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding: clamp(2rem, 5vw, 4rem);
  color: #fff;
  background: #242628;
  border-radius: 28px;
  overflow: hidden;
}
.bu-line-icon { display: block; margin-bottom: .8rem; font-size: 1.5rem; }
.bu-job-panel__kicker {
  display: block;
  margin-bottom: .75rem;
  color: rgba(255,255,255,.67);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.bu-job-panel h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.4rem); }
.bu-job-panel p { max-width: 57ch; margin: 1rem 0 0; color: rgba(255,255,255,.82); }
.bu-panel-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.bu-panel-actions a,
.bu-tile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .75rem 1rem;
  border: 1px solid rgba(255,255,255,.68);
  background: #fff;
  color: var(--bu-blue-dark);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
}
.bu-panel-actions a + a { background: transparent; color: #fff; }

.bu-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.bu-service-tile {
  min-height: 310px;
  padding: clamp(2rem, 4.5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
  text-decoration: none;
  border-radius: 24px;
  overflow: hidden;
  transition: filter .25s ease, transform .3s var(--ease);
}
.bu-service-tile:hover { filter: brightness(.96); transform: translateY(-3px); }
.bu-service-tile--family,
.bu-service-tile--measures,
.bu-service-tile--relief { background: #242628; }
.bu-service-tile--bpa,
.bu-service-tile--child,
.bu-service-tile--competence {
  border: 1px solid rgba(20, 24, 29, .16);
  background: #fff;
  color: #14181d;
}
.bu-service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  font-size: 1.4rem;
}
.bu-service-tile h2 { color: inherit; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.bu-service-tile p { max-width: 50ch; margin: .8rem 0 1.7rem; color: inherit; font-size: .98rem; opacity: .82; }
.bu-service-tile--bpa .bu-service-icon,
.bu-service-tile--child .bu-service-icon,
.bu-service-tile--competence .bu-service-icon { border-color: rgba(20, 24, 29, .38); }
.bu-service-tile .bu-tile-link { margin-top: auto; }
.bu-tile-link b { margin-left: .65rem; font-size: 1.15rem; }

.bu-phone-band { padding: clamp(3rem, 6vw, 5rem) 0; background: #242628; color: #fff; }
.bu-phone-band h2 { color: #fff; font-size: clamp(1.55rem, 3vw, 2.2rem); }
.bu-phone-band h2 span { margin-right: .55rem; font-size: .85em; }
.bu-phone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.8rem;
}
.bu-phone-grid div { padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.28); }
.bu-phone-grid span { display: block; color: rgba(255,255,255,.72); font-size: .76rem; font-weight: 600; }
.bu-phone-grid a { color: #fff; font-size: .94rem; font-weight: 700; text-decoration: none; }

.bu-news { background: #fff; }
.bu-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.bu-section-heading h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.bu-section-heading > a { color: var(--bu-blue); font-weight: 700; text-decoration: none; }
.bu-news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.4rem); }
.bu-news-card { display: grid; grid-template-columns: minmax(180px, .8fr) 1.2fr; min-height: 250px; background: var(--bu-soft); color: var(--bu-text); text-decoration: none; }
.bu-news-card img { width: 100%; height: 100%; object-fit: cover; }
.bu-news-card div { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.4rem, 3vw, 2.4rem); }
.bu-news-card span,
.bu-people__copy > span,
.bu-newsletter__inner > div > span { color: var(--bu-blue); font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; }
.bu-news-card h3 { margin: .55rem 0 .8rem; font-size: clamp(1.25rem, 2vw, 1.7rem); }
.bu-news-card p { margin: 0; color: #65686b; font-size: .91rem; }

.bu-people { background: var(--bu-soft); }
.bu-people__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.bu-people__film { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bu-blue-dark); }
.bu-people__film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bu-people__copy h2 { margin: .75rem 0 1rem; font-size: clamp(2rem, 4vw, 3.25rem); }
.bu-people__copy p { max-width: 52ch; color: #65686b; }
.bu-solid-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-top: .9rem;
  padding: .85rem 1.1rem;
  background: var(--bu-blue);
  color: #fff;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 700;
}
.bu-solid-link b { font-size: 1.2rem; }

.bu-newsletter { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--bu-accent); color: #fff; }
.bu-newsletter__inner { display: flex; justify-content: space-between; align-items: center; gap: 3rem; }
.bu-newsletter__inner > div > span { color: rgba(255,255,255,.72); }
.bu-newsletter h2 { margin: .5rem 0 .7rem; color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); }
.bu-newsletter p { color: rgba(255,255,255,.82); }
.bu-solid-link--light { margin: 0; background: #fff; color: var(--bu-blue); white-space: nowrap; }

@media (max-width: 900px) {
  .bu-job-panel { grid-template-columns: 1fr; align-items: start; }
  .bu-phone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .bu-news-card { grid-template-columns: 1fr; }
  .bu-news-card img { aspect-ratio: 16 / 9; }
  .bu-people__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .aberia-home { --gut: 1.25rem; }
  .aberia-home .site-head .wrap { width: min(100% - 2.5rem, var(--col)); }
  .aberia-home .nav { min-height: 72px; }
  .bu-home-hero { min-height: 520px; }
  .bu-home-hero__media video { transform: scale(1.16); }
  .bu-home-hero__content { padding-block: 5rem; align-content: end; }
  .bu-home-hero h1 { max-width: 12ch; font-size: clamp(2.55rem, 11.5vw, 3.65rem); }
  .bu-home-hero p { max-width: 26ch; margin-top: 1.1rem; line-height: 1.5; }
  .bu-home-shell { padding: 1.25rem 0 4.5rem; }
  .bu-home-shell > .wrap { width: min(100% - 2.5rem, var(--col)); }
  .bu-job-panel { padding: 2.25rem 1.4rem; border-radius: 22px; }
  .bu-panel-actions { flex-direction: column; align-items: stretch; }
  .bu-panel-actions a { min-height: 50px; }
  .bu-service-grid { grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; }
  .bu-service-tile { min-height: 300px; padding: 2.25rem 1.4rem; border-radius: 22px; }
  .bu-phone-grid { grid-template-columns: 1fr; gap: 1.35rem; }
  .bu-phone-band { padding-block: 4rem; }
  .bu-section-heading { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .bu-news-grid { grid-template-columns: 1fr; }
  .bu-news-card { border-radius: 20px; overflow: hidden; }
  .bu-news, .bu-people { padding-block: 4.5rem; }
  .bu-newsletter__inner { align-items: flex-start; flex-direction: column; gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bu-home-hero__media video { display: none; }
}

/* ---------------------------------------------------------- ledige stillinger
   Samme logikk som referansen Pål viste: tydelige filtre, kompakte
   stillingskort og én direkte vei videre til kandidatportalen. */
.jobs-page { background: #fff; }

.jobs-hero {
  position: relative;
  overflow: hidden;
  background: var(--bu-blue-dark);
  color: #fff;
}
.jobs-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 9px;
  background: var(--bu-accent);
}
.jobs-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  min-height: 470px;
}
.jobs-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(3.5rem, 8vw, 7rem) clamp(2rem, 5vw, 5.5rem) clamp(3.5rem, 8vw, 7rem) 0;
}
.jobs-crumbs { display: flex; gap: .65rem; margin-bottom: 2.3rem; color: rgba(255,255,255,.72); font-size: .76rem; }
.jobs-crumbs a { color: inherit; text-decoration: none; }
.jobs-kicker { color: var(--bu-accent); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.jobs-hero .jobs-kicker { color: rgba(255,255,255,.7); }
.jobs-hero h1 { margin-top: .7rem; color: #fff; font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 800; }
.jobs-hero__copy > p { max-width: 56ch; margin: 1.25rem 0 1.1rem; color: rgba(255,255,255,.82); font-size: clamp(1.02rem, 1.7vw, 1.2rem); }
.jobs-hero__media { position: relative; min-height: 100%; overflow: hidden; }
.jobs-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bu-blue-dark), transparent 55%); }
.jobs-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.jobs-board { padding: clamp(4rem, 8vw, 7rem) 0; }
.jobs-board__head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(340px, .72fr); justify-content: space-between; gap: 3rem; align-items: end; }
.jobs-board__head h2 { margin-top: .55rem; font-size: clamp(2.25rem, 4vw, 3.7rem); }
.jobs-board__head > p { color: #65686b; }

.jobs-filters { display: grid; gap: 1.75rem; margin: 3rem 0 1.35rem; padding: clamp(1.4rem, 3vw, 2.25rem); background: var(--bu-soft); border-radius: 22px; }
.jobs-filters fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.jobs-filters legend { margin-bottom: .7rem; color: var(--bu-blue-dark); font-size: .85rem; font-weight: 800; }
.jobs-filter-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.jobs-filter-row button {
  min-height: 42px;
  padding: .65rem 1rem;
  border: 1px solid #c9cbcc;
  border-radius: 3px;
  background: #fff;
  color: var(--bu-blue-dark);
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}
.jobs-filter-row button:hover,
.jobs-filter-row button:focus-visible { border-color: var(--bu-blue); outline: 2px solid transparent; }
.jobs-filter-row button[aria-pressed="true"] { border-color: var(--bu-blue); background: var(--bu-blue); color: #fff; }
.jobs-result { margin: 0 0 1rem; color: #696c6f; font-size: .84rem; }
.jobs-list { display: grid; gap: .85rem; }

.job-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid #deded9;
  border-left: 6px solid var(--bu-mint);
  border-radius: 18px;
  background: #fff;
}
.job-card[data-service="bpa"] { border-left-color: var(--bu-magenta); }
.job-card[data-service="skole"] { border-left-color: var(--bu-cyan); }
.job-card[hidden] { display: none; }
.job-card__type { color: var(--bu-blue); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.job-card h3 { margin: .45rem 0 1.15rem; font-size: clamp(1.45rem, 2.5vw, 2.05rem); }
.job-card dl { display: flex; flex-wrap: wrap; gap: .8rem 2.4rem; margin: 0; }
.job-card dl div { min-width: 170px; }
.job-card dt { color: #74777a; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .055em; }
.job-card dd { margin: .15rem 0 0; color: #303234; font-size: .88rem; font-weight: 600; }
.job-card > a {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 46px;
  padding: .78rem 1rem;
  border: 1px solid var(--bu-blue);
  color: var(--bu-blue);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}
.job-card > a:hover { background: var(--bu-blue); color: #fff; }
.job-card > a span { font-size: 1.25rem; }
.jobs-empty { padding: 3rem; background: var(--bu-soft); text-align: center; }
.jobs-empty[hidden] { display: none; }
.jobs-empty h3 { font-size: 1.6rem; }
.jobs-empty p { margin-top: .6rem; color: #65686b; }

.jobs-contact { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--bu-soft); }
.jobs-contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.jobs-contact h2 { margin: .55rem 0 1rem; font-size: clamp(2rem, 4vw, 3.4rem); }
.jobs-contact__grid > div:first-child p { max-width: 60ch; color: #65686b; }
.jobs-contact__card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.7rem, 4vw, 3rem); background: #fff; border-left: 6px solid var(--bu-blue); }
.jobs-contact__card > span { color: #74777a; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.jobs-contact__card > strong { margin: .55rem 0 1rem; color: var(--bu-blue-dark); font-size: 1.35rem; }
.jobs-contact__card > a:not(.bu-solid-link) { color: #383a3c; text-decoration: none; font-weight: 600; }
.jobs-contact__card .bu-solid-link { margin-top: 1.25rem; }

@media (max-width: 900px) {
  .jobs-hero__grid { grid-template-columns: 1fr; }
  .jobs-hero__copy { padding-right: 0; }
  .jobs-hero__media { min-height: 310px; margin-inline: calc(-1 * var(--gut)); }
  .jobs-hero__media::after { background: linear-gradient(180deg, var(--bu-blue-dark), transparent 42%); }
  .jobs-board__head,
  .jobs-contact__grid { grid-template-columns: 1fr; }
  .job-card { grid-template-columns: 1fr; }
  .job-card > a { justify-self: start; }
}

@media (max-width: 640px) {
  .jobs-hero__grid { min-height: auto; }
  .jobs-hero__copy { min-height: 440px; padding-block: 4.5rem; }
  .jobs-hero h1 { max-width: 9ch; font-size: clamp(2.7rem, 12vw, 3.75rem); }
  .jobs-hero__copy > p { margin-top: 1.1rem; line-height: 1.58; }
  .jobs-hero__media { display: none; }
  .jobs-board { padding: 4.75rem 0; }
  .jobs-board__head { gap: 1.5rem; }
  .jobs-filters { margin-top: 2.5rem; padding: 1.4rem; border-radius: 18px; }
  .jobs-filter-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .jobs-filter-row button { width: 100%; min-height: 48px; padding-inline: .65rem; }
  .job-card { gap: 1.5rem; padding: 1.6rem 1.35rem; border-radius: 16px; }
  .job-card dl { display: grid; grid-template-columns: 1fr; gap: .75rem; }
  .job-card dl div { min-width: 0; }
  .job-card > a { width: 100%; min-height: 50px; justify-content: center; white-space: normal; text-align: center; }
  .jobs-contact { padding-block: 4.75rem; }
  .jobs-contact__card { padding: 1.6rem; border-radius: 16px; }
}

/* Kandidatportalen er et eget produktspor med samme svart-hvite identitet. */
.portal-page {
  --paper: #f7f4ee;
  --paper-warm: #f0ebe2;
  --paper-deep: #e5ded3;
  --ink: #171819;
  --ink-soft: #44474a;
  --muted: #696c6f;
  --deep: #242628;
  --deep-2: #383b3e;
  --ember: #c45d43;
  --moss: #55585b;
  --sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
}
.portal-page h1,
.portal-page h2,
.portal-page h3,
.portal-page .brand__name { font-family: var(--sans); font-variation-settings: normal; letter-spacing: -.035em; }
.portal-page h1,
.portal-page h2 { font-weight: 750; }
.portal-page .page-hero { background: var(--deep); }
.portal-page .page-hero::after { background: radial-gradient(70% 120% at 100% 0%, rgba(255,255,255,.18), transparent 70%); }
.portal-page .eyebrow { color: #d4d6d7; }
.portal-page .wizard { border-radius: 24px; box-shadow: 0 30px 70px -55px rgba(17,18,19,.55); }
.portal-page .wizard__head { background: #e4e4df; }
.portal-page .wizard__steps li.is-active b,
.portal-page .wizard__bar i { background: var(--ember); border-color: var(--ember); }
.portal-page .field input,
.portal-page .field select,
.portal-page .field textarea { min-height: 50px; }

@media (max-width: 640px) {
  .portal-page { --gut: 1.25rem; --sec: 4.75rem; }
  .portal-page .page-hero { padding-block: 4.5rem; }
  .portal-page .page-hero h1 { max-width: 10ch; font-size: clamp(2.65rem, 12vw, 3.7rem); }
  .portal-page .wizard { border-radius: 18px; }
  .portal-page .wizard__head,
  .portal-page .wizard__body,
  .portal-page .wizard__foot { padding: 1.4rem; }
  .portal-page .wizard__steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .25rem; }
  .portal-page .wizard__steps li { justify-content: center; padding: .35rem; }
  .portal-page .wizard__steps li:not(.is-active) { font-size: 0; }
  .portal-page .wizard__steps li b { width: 28px; height: 28px; font-size: .75rem; }
  .portal-page .wizard__foot { align-items: stretch; flex-wrap: wrap; }
  .portal-page .wizard__foot > span { display: none; }
  .portal-page .wizard__foot .btn { flex: 1 1 135px; justify-content: center; min-height: 50px; }
}

/* Barnevern-siden følger den samme tydelige tjenestelogikken. */
.service-page--child {
  --sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.service-page--child h1,
.service-page--child h2,
.service-page--child h3,
.service-page--child .brand__name {
  font-family: var(--sans);
  font-variation-settings: normal;
  letter-spacing: -.035em;
}
.service-page--child .page-hero {
  background: #141a19;
  color: #fff;
}
.service-page--child .page-hero::after {
  background: radial-gradient(75% 100% at 90% 10%, rgba(255,255,255,.13), transparent 65%);
}
.service-page--child .page-hero .eyebrow,
.service-page--child .page-hero .lede { color: rgba(255,255,255,.9); }
.service-page--child .page-hero h1 { font-weight: 800; max-width: 18ch; }
.service-page--child .dark { background: #141a19; }
.service-page--child .dark h2,
.service-page--child .dark h3 { font-weight: 750; }
.service-page--child .btn { border-radius: 3px; }
