:root {
  --bg: #0B0F0D;
  --bg-deep: #060908;
  --tx: #EEF2EF;
  --mu: #B5C2BC;
  --dim: #8FA39A;
  --ac: #3ECBA5;
  --red: #C9716B;
  --line: rgba(238, 242, 239, 0.10);
  --line-ac: rgba(62, 203, 165, 0.35);
  --gutter: 64px;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--tx); text-decoration: none; }
a:hover { color: var(--ac); }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.hide-m { display: initial; }

/* ---------- Labels, buttons ---------- */
.label {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim);
}
.label .line { display: block; width: 24px; height: 1px; background: var(--ac); flex-shrink: 0; }
.label.dim .line { background: #5A6B64; }
.label.ac { color: var(--ac); }
.label.light { color: #C3CEC8; }

.btn-p {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 52px; padding: 0 30px;
  border: 1px solid rgba(62, 203, 165, 0.6); border-radius: 2px; background: transparent;
  color: var(--tx); font-size: 15px; letter-spacing: 0.01em; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn-p:hover { color: var(--tx); background: rgba(62, 203, 165, 0.10); border-color: var(--ac); }
.btn-s {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 4px; border: 0; background: transparent;
  color: #C3CEC8; font-size: 15px; letter-spacing: 0.01em; cursor: pointer;
  transition: color .2s;
}
.btn-s:hover { color: var(--ac); }
.btn-s svg { flex-shrink: 0; }

h2 { font-weight: 300; font-size: 44px; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-weight: 300; font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; }
.h2 { font-weight: 300; font-size: 50px; line-height: 1.12; letter-spacing: -0.02em; }
.muted { color: var(--mu); }
.sec-head { display: flex; flex-direction: column; gap: 22px; }

/* ---------- Header ---------- */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) 0;
  display: flex; justify-content: space-between; align-items: center;
}
.brand { display: block; padding: 10px 0; }
.brand img { height: 20px; width: auto; }
.top nav { display: flex; align-items: center; gap: 40px; font-size: 14px; letter-spacing: 0.02em; }
.top nav a { padding: 12px 0; color: #C3CEC8; }
.top nav a:hover { color: var(--tx); }
.top nav a.active { color: var(--tx); border-bottom: 1px solid var(--ac); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--bg); }
#flow { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-vignette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 58%, rgba(11,15,13,0) 45%, rgba(11,15,13,0.6) 100%); }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,15,13,0) 0%, rgba(11,15,13,0.9) 100%); }
.hero-inner {
  position: relative; z-index: 2; max-width: var(--max); margin: 0 auto;
  min-height: 100vh; min-height: 100svh; padding: 140px var(--gutter) 72px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-title { display: flex; flex-direction: column; gap: 28px; max-width: 900px; padding: 20px 0 0; }
.hero h1 { max-width: 820px; font-weight: 300; font-size: 64px; line-height: 1.15; letter-spacing: -0.02em; }
.hero .rule { display: block; width: 88px; height: 1px; background: var(--ac); }
.hero-actions { display: flex; align-items: center; gap: 36px; }

/* ---------- Bransjen -> Hos oss ---------- */
.bransjen { position: relative; height: 200vh; }
.bransjen .sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--bg); }
.calm { position: absolute; left: 50%; top: 4%; width: 760px; height: 92%; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(62,203,165,0.22), rgba(62,203,165,0.07) 55%, rgba(62,203,165,0) 100%); }
.clutter { position: absolute; inset: 0; transform-origin: 62% 50%; }
.clutter span {
  position: absolute; padding: 10px 16px; border-radius: 12px; white-space: nowrap; font-size: 14px; color: var(--dim);
  background: rgba(26,34,31,0.92); border: 1px solid rgba(237,239,235,0.06);
}
.clutter span.red { color: var(--red); }
.c1 { left: 6%; top: 11%; transform: rotate(-4deg); }
.c2 { left: 30%; top: 17%; transform: rotate(3deg); }
.c3 { left: 10%; top: 73%; transform: rotate(-2deg); }
.c4 { left: 35%; top: 84%; transform: rotate(4deg); }
.c5 { left: 44%; top: 10%; transform: rotate(-3deg); }
.c6 { left: 84%; top: 12%; transform: rotate(5deg); }
.c7 { left: 87%; top: 39%; transform: rotate(-4deg); }
.c8 { left: 83%; top: 69%; transform: rotate(3deg); }
.c9 { left: 44%; top: 67%; transform: rotate(-5deg); }
.c10 { left: 21%; top: 90%; transform: rotate(2deg); }
.c11 { left: 82%; top: 89%; transform: rotate(-2deg); }
.c12 { left: 49%; top: 33%; transform: rotate(4deg); }

.b-text { position: absolute; left: 50%; top: 50%; width: var(--max); max-width: 100%; transform: translate(-50%, -50%); padding: 0 var(--gutter); pointer-events: none; }
.b-old, .b-new { position: absolute; left: var(--gutter); top: 50%; translate: 0 -50%; width: 560px; display: flex; flex-direction: column; gap: 22px; }
.b-new { opacity: 0; }
.b-old .h2 { color: #D2DBD6; }
.b-new h2 { font-size: 50px; line-height: 1.12; }
.points { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.points li { display: flex; align-items: baseline; gap: 16px; font-size: 16px; line-height: 1.5; color: var(--mu); }
.points li::before { content: ""; display: block; flex-shrink: 0; width: 14px; height: 1px; background: var(--ac); transform: translateY(-4px); }

.phone-wrap { position: absolute; left: 50%; top: 50%; width: var(--max); max-width: 100%; height: 740px; transform: translate(-50%, -50%); pointer-events: none; }
.phone {
  position: absolute; right: 220px; top: 0; width: 360px; height: 740px; padding: 10px; border-radius: 54px;
  background: #050807; border: 1px solid rgba(237,239,235,0.14); box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 45px; overflow: hidden; background: #0F1513; }
.notch { position: absolute; left: 50%; top: 11px; width: 96px; height: 28px; margin-left: -48px; border-radius: 999px; background: #000; z-index: 3; }
.noisy { position: absolute; inset: 0; }
.status { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px 0; font-size: 13px; font-weight: 500; color: #EDEFEB; }
.batt { display: block; width: 16px; height: 9px; border-radius: 2px; border: 1px solid rgba(237,239,235,0.6); }
.s-head { display: flex; justify-content: space-between; align-items: baseline; padding: 30px 22px 10px; }
.s-title { font-family: 'Sora', sans-serif; font-weight: 400; font-size: 24px; letter-spacing: -0.03em; color: #EDEFEB; }
.s-head .red, .red { color: var(--red); }
.s-head .ac, .ac { color: var(--ac); }
.s-head span:last-child { font-size: 12px; }
.list { padding: 0 16px; display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid rgba(237,239,235,0.05); }
.row.msg { align-items: flex-start; }
.row.noline { border-bottom: 0; }
.calmscreen .row { padding: 14px 4px; border-bottom-color: rgba(237,239,235,0.06); }
.ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ic.grey { background: rgba(143,163,154,0.12); }
.ic.redbg { background: rgba(201,113,107,0.13); }
.ic.acbg { background: rgba(62,203,165,0.12); }
.rt { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; }
.meta { font-size: 12px; color: #6F7E78; }
.calmscreen .meta { color: var(--dim); }
.meta.red { color: var(--red); }
.txt { font-size: 14px; line-height: 1.35; color: var(--mu); }
.txt.light { color: #EDEFEB; }
.time { font-size: 12px; color: #6F7E78; }
.calmscreen { position: absolute; inset: 0; background: #0F1513; transform: translateY(100%); box-shadow: 0 -30px 60px rgba(0,0,0,0.5); }
.calmscreen .glow { position: absolute; left: 0; right: 0; top: 0; height: 320px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(62,203,165,0.16), rgba(62,203,165,0) 100%); }
.calmscreen .status, .calmscreen .s-head, .calmscreen .list { position: relative; }
.calmscreen .s-head { padding-bottom: 14px; }

/* ---------- Slik jobber vi ---------- */
.metode { padding: 150px 0; }
.metode .wrap { display: flex; flex-direction: column; gap: 110px; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-ac); }
.steps li { position: relative; display: flex; flex-direction: column; gap: 14px; padding-top: 44px; }
.dot { position: absolute; left: 0; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ac); box-shadow: 0 0 14px rgba(62,203,165,0.6); }
.st { font-weight: 300; font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; }
.sb { font-size: 15px; line-height: 1.55; color: var(--mu); }

/* ---------- Prinsipper ---------- */
.prinsipper { position: relative; overflow: hidden; background: #141C18; }
.prinsipper { background: #141C18 url('assets/bygget-poster.jpg') center / cover no-repeat; }
.prinsipper video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,15,13,0.94) 0%, rgba(11,15,13,0.74) 40%, rgba(11,15,13,0.15) 72%, rgba(11,15,13,0.05) 100%); }
.v-top { position: absolute; left: 0; right: 0; top: 0; height: 140px; background: linear-gradient(180deg, var(--bg) 0%, rgba(11,15,13,0) 100%); }
.v-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(0deg, var(--bg) 0%, rgba(11,15,13,0) 100%); }
.p-inner { position: relative; min-height: 720px; padding-top: 130px; padding-bottom: 110px; display: flex; flex-direction: column; gap: 36px; }
.p-block { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.p-block.bordered { padding-top: 36px; border-top: 1px solid rgba(238,242,239,0.16); }
.p-block p { max-width: 460px; color: #C3CEC8; }
.addr { position: absolute; right: var(--gutter); bottom: 56px; color: var(--tx); }

/* ---------- Karriere / test ---------- */
.karriere { padding: 150px 0; }
.k-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; align-items: start; }
.k-text { display: flex; flex-direction: column; gap: 22px; padding-top: 8px; }
.k-text h2 { font-size: 48px; line-height: 1.12; }
.k-text p { max-width: 440px; font-size: 17px; line-height: 1.65; color: var(--mu); }
.t-panel { display: flex; flex-direction: column; gap: 28px; padding-top: 28px; border-top: 1px solid var(--line-ac); }
.t-panel[hidden] { display: none; }
.q { font-weight: 300; font-size: 28px; line-height: 1.3; letter-spacing: -0.005em; }
.opts { display: flex; flex-direction: column; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%;
  text-align: left; padding: 18px 0; border: 0; border-bottom: 1px solid rgba(238,242,239,0.12);
  background: transparent; color: var(--mu); font-size: 15px; line-height: 1.45; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.opt svg { flex-shrink: 0; opacity: .5; }
.opt:hover { color: var(--tx); border-bottom-color: var(--ac); }
.opt:hover svg { opacity: 1; color: var(--ac); }
.form { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field input {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(238,242,239,0.25); border-radius: 0;
  background: transparent; color: var(--tx); font: inherit; font-size: 16px;
}
.field input::placeholder { color: #5A6B64; }
.field input:focus { outline: none; border-bottom-color: var(--ac); }
.err { font-size: 14px; color: var(--red); }
.err[hidden] { display: none; }

/* ---------- Partnere ---------- */
.partnere { padding: 110px 0 0; border-top: 1px solid var(--line); }
.pa-head { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 60px; }
.pa-head h2 { font-size: 40px; line-height: 1.15; }
.band {
  position: relative; height: 160px; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
}
.marq { display: flex; align-items: center; height: 160px; width: max-content; animation: marq 48s linear infinite; }
.band:hover .marq { animation-play-state: paused; }
.track { display: flex; align-items: center; gap: 600px; padding-right: 600px; flex-shrink: 0; }
.lg-phonero { width: 170px; height: 46px; }
.lg-kvad { width: 156px; height: 34px; opacity: .92; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; background: var(--bg-deep); border-top: 1px solid var(--line); padding-top: 130px; }
.f-glow { display: none; }
.f-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; align-items: start; }
.f-contact { display: flex; flex-direction: column; gap: 22px; }
.f-contact p { max-width: 400px; color: var(--mu); }
.f-contact div { padding-top: 8px; }
.f-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 8px; font-size: 15px; line-height: 1.6; }
.f-cols > div { display: flex; flex-direction: column; gap: 12px; }
.f-cols a { color: var(--mu); }
.f-cols a:hover { color: var(--tx); }
.f-logo { position: relative; display: block; width: 1312px; max-width: calc(100% - 2 * var(--gutter)); height: auto; margin: 110px auto -24px; opacity: 1; filter: brightness(0) invert(0.11);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0) 100%); }

/* ---------- Tablet ---------- */
@media (max-width: 1180px) {
  .phone { right: 64px; }
  .b-old, .b-new { width: 460px; }
  .b-new h2, .h2 { font-size: 42px; }
  .points li { font-size: 15px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  :root { --gutter: 24px; }
  .hide-m { display: none; }
  .top { padding-top: 20px; }
  .brand img { height: 16px; }
  .top nav { gap: 24px; }

  .hero-inner { padding: 120px var(--gutter) 48px; }
  .hero-title { gap: 22px; padding: 0; }
  .hero h1 { font-size: 40px; }
  .hero .rule { width: 64px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-fade { height: 220px; }

  .bransjen { height: 200vh; }
  .calm { left: -100px; top: 34%; width: 590px; height: 590px; }
  .clutter span { font-size: 13px; }
  .clutter { z-index: 2; }
  .clutter span { font-size: 13px; padding: 9px 14px; }
  .c1 { left: 5%; top: 39%; transform: rotate(-3deg); }
  .c2 { left: auto; right: 6%; top: 45%; transform: rotate(3deg); }
  .c3 { left: 4%; top: 55%; transform: rotate(-2deg); }
  .c4 { left: auto; right: 5%; top: 63%; transform: rotate(4deg); }
  .c5 { left: 3%; top: 73%; transform: rotate(2deg); }
  .c6 { left: auto; right: 4%; top: 81%; transform: rotate(-3deg); }
  .c7 { left: 10%; top: 90%; transform: rotate(-4deg); }
  .c8, .c9, .c10, .c11, .c12 { display: none; }
  .b-text { z-index: 3; }
  .phone-wrap { z-index: 1; }
  .b-text { top: 0; transform: translateX(-50%); padding: 0; }
  .b-old, .b-new { top: 72px; translate: none; left: var(--gutter); width: calc(100% - 2 * var(--gutter)); gap: 18px; }
  .b-old .h2, .b-new h2 { font-size: 34px; line-height: 1.14; }
  .points { gap: 10px; }
  .points li { font-size: 14px; }
  .phone-wrap { top: auto; bottom: 0; height: 430px; transform: translateX(-50%); overflow: hidden; }
  .phone { left: 50%; right: auto; top: 0; transform: translateX(-50%) scale(0.6667); transform-origin: top center; }
  .phone-wrap::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(0deg, var(--bg) 0%, rgba(11,15,13,0) 100%); }

  .metode { padding: 96px 0; }
  .metode .wrap { gap: 48px; }
  h2 { font-size: 34px; }
  .steps { display: flex; flex-direction: column; gap: 36px; padding-left: 32px; }
  .steps::before { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps li { padding-top: 0; gap: 10px; }
  .dot { left: -32px; top: 1px; width: 13px; height: 13px; }
  .st { font-size: 22px; }

  .v-shade { background: linear-gradient(180deg, rgba(11,15,13,0.30) 0%, rgba(11,15,13,0.72) 45%, rgba(11,15,13,0.88) 100%); }
  .p-inner { min-height: 0; padding-top: 160px; padding-bottom: 64px; gap: 28px; }
  h3 { font-size: 28px; }
  .p-block.bordered { padding-top: 28px; }
  .addr { position: static; padding-top: 8px; }

  .karriere { padding: 96px 0; }
  .k-grid { display: flex; flex-direction: column; gap: 40px; }
  .k-text { gap: 18px; padding-top: 0; }
  .k-text h2 { font-size: 34px; }
  .k-text p { font-size: 16px; }
  .q { font-size: 24px; }

  .partnere { padding-top: 80px; }
  .pa-head { flex-direction: column; align-items: flex-start; gap: 18px; padding-bottom: 48px; }
  .pa-head h2 { font-size: 28px; }
  .band, .marq { height: 120px; }
  .track { gap: 210px; padding-right: 210px; }
  .lg-phonero { width: 122px; height: 33px; }
  .lg-kvad { width: 115px; height: 25px; }

  .footer { padding-top: 96px; }
  .f-grid { display: flex; flex-direction: column; gap: 40px; }
  .f-contact { gap: 18px; }
  .f-contact h2 { font-size: 34px; }
  .f-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding-top: 32px; border-top: 1px solid var(--line); }
  .f-cols > div { gap: 10px; }
  .f-logo { margin: 20px auto -6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marq { animation: none; }
}
